From 5b43185fd53e985d4b4266a1eb63837edd51be22 Mon Sep 17 00:00:00 2001 From: Jason Del Ponte Date: Fri, 7 Oct 2016 16:24:07 -0700 Subject: [PATCH] Regenerate service apis for error doc updates --- private/protocol/ec2query/build_test.go | 90 + private/protocol/ec2query/unmarshal_test.go | 81 + private/protocol/jsonrpc/build_test.go | 126 ++ private/protocol/jsonrpc/unmarshal_test.go | 63 + private/protocol/query/build_test.go | 207 ++ private/protocol/query/unmarshal_test.go | 135 ++ private/protocol/restjson/build_test.go | 261 +++ private/protocol/restjson/unmarshal_test.go | 99 + private/protocol/restxml/build_test.go | 333 +++ private/protocol/restxml/unmarshal_test.go | 117 + service/acm/api.go | 137 ++ service/apigateway/api.go | 1537 ++++++++++++++ service/applicationautoscaling/api.go | 121 ++ service/applicationdiscoveryservice/api.go | 176 ++ service/autoscaling/api.go | 757 +++++++ service/cloudformation/api.go | 269 +++ service/cloudfront/api.go | 565 +++++ service/cloudhsm/api.go | 318 +++ service/cloudsearch/api.go | 402 ++++ service/cloudsearchdomain/api.go | 42 + service/cloudtrail/api.go | 241 +++ service/cloudwatch/api.go | 150 ++ service/cloudwatchevents/api.go | 184 ++ service/cloudwatchlogs/api.go | 416 ++++ service/codecommit/api.go | 350 +++ service/codedeploy/api.go | 654 ++++++ service/codepipeline/api.go | 419 ++++ service/cognitoidentity/api.go | 343 +++ service/cognitoidentityprovider/api.go | 1224 +++++++++++ service/cognitosync/api.go | 312 +++ service/configservice/api.go | 396 ++++ service/databasemigrationservice/api.go | 488 +++++ service/datapipeline/api.go | 318 +++ service/devicefarm/api.go | 737 +++++++ service/directconnect/api.go | 315 +++ service/directoryservice/api.go | 625 ++++++ service/dynamodb/api.go | 228 ++ service/dynamodbstreams/api.go | 64 + service/ec2/api.go | 2120 +++++++++++++++++++ service/ecr/api.go | 272 +++ service/ecs/api.go | 452 ++++ service/efs/api.go | 193 ++ service/elasticache/api.go | 671 ++++++ service/elasticbeanstalk/api.go | 470 ++++ service/elasticsearchservice/api.go | 171 ++ service/elastictranscoder/api.go | 311 +++ service/elb/api.go | 439 ++++ service/elbv2/api.go | 476 +++++ service/emr/api.go | 307 +++ service/firehose/api.go | 104 + service/gamelift/api.go | 673 ++++++ service/glacier/api.go | 529 +++++ service/iam/api.go | 1809 ++++++++++++++++ service/inspector/api.go | 537 +++++ service/iot/api.go | 1074 ++++++++++ service/iotdataplane/api.go | 81 + service/kinesis/api.go | 277 +++ service/kinesisanalytics/api.go | 207 ++ service/kms/api.go | 607 ++++++ service/lambda/api.go | 425 ++++ service/machinelearning/api.go | 449 ++++ service/marketplacecommerceanalytics/api.go | 28 + service/marketplacemetering/api.go | 20 + service/mobileanalytics/api.go | 14 + service/opsworks/api.go | 1041 +++++++++ service/rds/api.go | 1377 ++++++++++++ service/redshift/api.go | 1028 +++++++++ service/route53/api.go | 769 +++++++ service/route53domains/api.go | 373 ++++ service/s3/api.go | 635 ++++++ service/servicecatalog/api.go | 161 ++ service/ses/api.go | 504 +++++ service/simpledb/api.go | 167 ++ service/snowball/api.go | 154 ++ service/sns/api.go | 509 +++++ service/sqs/api.go | 242 +++ service/ssm/api.go | 442 ++++ service/storagegateway/api.go | 840 ++++++++ service/sts/api.go | 109 + service/support/api.go | 211 ++ service/swf/api.go | 478 +++++ service/waf/api.go | 677 ++++++ service/workspaces/api.go | 187 ++ 83 files changed, 35920 insertions(+) diff --git a/private/protocol/ec2query/build_test.go b/private/protocol/ec2query/build_test.go index 7dd00a9307a..5d75c8309cf 100644 --- a/private/protocol/ec2query/build_test.go +++ b/private/protocol/ec2query/build_test.go @@ -139,6 +139,15 @@ func (c *InputService1ProtocolTest) InputService1TestCaseOperation1Request(input return } +// InputService1TestCaseOperation1 API operation for . +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for 's +// API operation, InputService1TestCaseOperation1 for more information, and other errors +// that the API operation could return. func (c *InputService1ProtocolTest) InputService1TestCaseOperation1(input *InputService1TestShapeInputService1TestCaseOperation1Input) (*InputService1TestShapeInputService1TestCaseOperation1Output, error) { req, out := c.InputService1TestCaseOperation1Request(input) err := req.Send() @@ -253,6 +262,15 @@ func (c *InputService2ProtocolTest) InputService2TestCaseOperation1Request(input return } +// InputService2TestCaseOperation1 API operation for . +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for 's +// API operation, InputService2TestCaseOperation1 for more information, and other errors +// that the API operation could return. func (c *InputService2ProtocolTest) InputService2TestCaseOperation1(input *InputService2TestShapeInputService2TestCaseOperation1Input) (*InputService2TestShapeInputService2TestCaseOperation1Output, error) { req, out := c.InputService2TestCaseOperation1Request(input) err := req.Send() @@ -369,6 +387,15 @@ func (c *InputService3ProtocolTest) InputService3TestCaseOperation1Request(input return } +// InputService3TestCaseOperation1 API operation for . +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for 's +// API operation, InputService3TestCaseOperation1 for more information, and other errors +// that the API operation could return. func (c *InputService3ProtocolTest) InputService3TestCaseOperation1(input *InputService3TestShapeInputService3TestCaseOperation1Input) (*InputService3TestShapeInputService3TestCaseOperation1Output, error) { req, out := c.InputService3TestCaseOperation1Request(input) err := req.Send() @@ -487,6 +514,15 @@ func (c *InputService4ProtocolTest) InputService4TestCaseOperation1Request(input return } +// InputService4TestCaseOperation1 API operation for . +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for 's +// API operation, InputService4TestCaseOperation1 for more information, and other errors +// that the API operation could return. func (c *InputService4ProtocolTest) InputService4TestCaseOperation1(input *InputService4TestShapeInputService4TestCaseOperation1Input) (*InputService4TestShapeInputService4TestCaseOperation1Output, error) { req, out := c.InputService4TestCaseOperation1Request(input) err := req.Send() @@ -599,6 +635,15 @@ func (c *InputService5ProtocolTest) InputService5TestCaseOperation1Request(input return } +// InputService5TestCaseOperation1 API operation for . +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for 's +// API operation, InputService5TestCaseOperation1 for more information, and other errors +// that the API operation could return. func (c *InputService5ProtocolTest) InputService5TestCaseOperation1(input *InputService5TestShapeInputService5TestCaseOperation1Input) (*InputService5TestShapeInputService5TestCaseOperation1Output, error) { req, out := c.InputService5TestCaseOperation1Request(input) err := req.Send() @@ -711,6 +756,15 @@ func (c *InputService6ProtocolTest) InputService6TestCaseOperation1Request(input return } +// InputService6TestCaseOperation1 API operation for . +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for 's +// API operation, InputService6TestCaseOperation1 for more information, and other errors +// that the API operation could return. func (c *InputService6ProtocolTest) InputService6TestCaseOperation1(input *InputService6TestShapeInputService6TestCaseOperation1Input) (*InputService6TestShapeInputService6TestCaseOperation1Output, error) { req, out := c.InputService6TestCaseOperation1Request(input) err := req.Send() @@ -823,6 +877,15 @@ func (c *InputService7ProtocolTest) InputService7TestCaseOperation1Request(input return } +// InputService7TestCaseOperation1 API operation for . +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for 's +// API operation, InputService7TestCaseOperation1 for more information, and other errors +// that the API operation could return. func (c *InputService7ProtocolTest) InputService7TestCaseOperation1(input *InputService7TestShapeInputService7TestCaseOperation1Input) (*InputService7TestShapeInputService7TestCaseOperation1Output, error) { req, out := c.InputService7TestCaseOperation1Request(input) err := req.Send() @@ -936,6 +999,15 @@ func (c *InputService8ProtocolTest) InputService8TestCaseOperation1Request(input return } +// InputService8TestCaseOperation1 API operation for . +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for 's +// API operation, InputService8TestCaseOperation1 for more information, and other errors +// that the API operation could return. func (c *InputService8ProtocolTest) InputService8TestCaseOperation1(input *InputService8TestShapeInputService8TestCaseOperation1Input) (*InputService8TestShapeInputService8TestCaseOperation1Output, error) { req, out := c.InputService8TestCaseOperation1Request(input) err := req.Send() @@ -1049,6 +1121,15 @@ func (c *InputService9ProtocolTest) InputService9TestCaseOperation1Request(input return } +// InputService9TestCaseOperation1 API operation for . +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for 's +// API operation, InputService9TestCaseOperation1 for more information, and other errors +// that the API operation could return. func (c *InputService9ProtocolTest) InputService9TestCaseOperation1(input *InputService9TestShapeInputShape) (*InputService9TestShapeInputService9TestCaseOperation1Output, error) { req, out := c.InputService9TestCaseOperation1Request(input) err := req.Send() @@ -1098,6 +1179,15 @@ func (c *InputService9ProtocolTest) InputService9TestCaseOperation2Request(input return } +// InputService9TestCaseOperation2 API operation for . +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for 's +// API operation, InputService9TestCaseOperation2 for more information, and other errors +// that the API operation could return. func (c *InputService9ProtocolTest) InputService9TestCaseOperation2(input *InputService9TestShapeInputShape) (*InputService9TestShapeInputService9TestCaseOperation2Output, error) { req, out := c.InputService9TestCaseOperation2Request(input) err := req.Send() diff --git a/private/protocol/ec2query/unmarshal_test.go b/private/protocol/ec2query/unmarshal_test.go index 2b57eddcfe8..3ef3d5f8f67 100644 --- a/private/protocol/ec2query/unmarshal_test.go +++ b/private/protocol/ec2query/unmarshal_test.go @@ -137,6 +137,15 @@ func (c *OutputService1ProtocolTest) OutputService1TestCaseOperation1Request(inp return } +// OutputService1TestCaseOperation1 API operation for . +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for 's +// API operation, OutputService1TestCaseOperation1 for more information, and other errors +// that the API operation could return. func (c *OutputService1ProtocolTest) OutputService1TestCaseOperation1(input *OutputService1TestShapeOutputService1TestCaseOperation1Input) (*OutputService1TestShapeOutputService1TestCaseOperation1Output, error) { req, out := c.OutputService1TestCaseOperation1Request(input) err := req.Send() @@ -261,6 +270,15 @@ func (c *OutputService2ProtocolTest) OutputService2TestCaseOperation1Request(inp return } +// OutputService2TestCaseOperation1 API operation for . +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for 's +// API operation, OutputService2TestCaseOperation1 for more information, and other errors +// that the API operation could return. func (c *OutputService2ProtocolTest) OutputService2TestCaseOperation1(input *OutputService2TestShapeOutputService2TestCaseOperation1Input) (*OutputService2TestShapeOutputService2TestCaseOperation1Output, error) { req, out := c.OutputService2TestCaseOperation1Request(input) err := req.Send() @@ -372,6 +390,15 @@ func (c *OutputService3ProtocolTest) OutputService3TestCaseOperation1Request(inp return } +// OutputService3TestCaseOperation1 API operation for . +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for 's +// API operation, OutputService3TestCaseOperation1 for more information, and other errors +// that the API operation could return. func (c *OutputService3ProtocolTest) OutputService3TestCaseOperation1(input *OutputService3TestShapeOutputService3TestCaseOperation1Input) (*OutputService3TestShapeOutputService3TestCaseOperation1Output, error) { req, out := c.OutputService3TestCaseOperation1Request(input) err := req.Send() @@ -482,6 +509,15 @@ func (c *OutputService4ProtocolTest) OutputService4TestCaseOperation1Request(inp return } +// OutputService4TestCaseOperation1 API operation for . +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for 's +// API operation, OutputService4TestCaseOperation1 for more information, and other errors +// that the API operation could return. func (c *OutputService4ProtocolTest) OutputService4TestCaseOperation1(input *OutputService4TestShapeOutputService4TestCaseOperation1Input) (*OutputService4TestShapeOutputService4TestCaseOperation1Output, error) { req, out := c.OutputService4TestCaseOperation1Request(input) err := req.Send() @@ -592,6 +628,15 @@ func (c *OutputService5ProtocolTest) OutputService5TestCaseOperation1Request(inp return } +// OutputService5TestCaseOperation1 API operation for . +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for 's +// API operation, OutputService5TestCaseOperation1 for more information, and other errors +// that the API operation could return. func (c *OutputService5ProtocolTest) OutputService5TestCaseOperation1(input *OutputService5TestShapeOutputService5TestCaseOperation1Input) (*OutputService5TestShapeOutputService5TestCaseOperation1Output, error) { req, out := c.OutputService5TestCaseOperation1Request(input) err := req.Send() @@ -702,6 +747,15 @@ func (c *OutputService6ProtocolTest) OutputService6TestCaseOperation1Request(inp return } +// OutputService6TestCaseOperation1 API operation for . +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for 's +// API operation, OutputService6TestCaseOperation1 for more information, and other errors +// that the API operation could return. func (c *OutputService6ProtocolTest) OutputService6TestCaseOperation1(input *OutputService6TestShapeOutputService6TestCaseOperation1Input) (*OutputService6TestShapeOutputService6TestCaseOperation1Output, error) { req, out := c.OutputService6TestCaseOperation1Request(input) err := req.Send() @@ -818,6 +872,15 @@ func (c *OutputService7ProtocolTest) OutputService7TestCaseOperation1Request(inp return } +// OutputService7TestCaseOperation1 API operation for . +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for 's +// API operation, OutputService7TestCaseOperation1 for more information, and other errors +// that the API operation could return. func (c *OutputService7ProtocolTest) OutputService7TestCaseOperation1(input *OutputService7TestShapeOutputService7TestCaseOperation1Input) (*OutputService7TestShapeOutputService7TestCaseOperation1Output, error) { req, out := c.OutputService7TestCaseOperation1Request(input) err := req.Send() @@ -928,6 +991,15 @@ func (c *OutputService8ProtocolTest) OutputService8TestCaseOperation1Request(inp return } +// OutputService8TestCaseOperation1 API operation for . +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for 's +// API operation, OutputService8TestCaseOperation1 for more information, and other errors +// that the API operation could return. func (c *OutputService8ProtocolTest) OutputService8TestCaseOperation1(input *OutputService8TestShapeOutputService8TestCaseOperation1Input) (*OutputService8TestShapeOutputService8TestCaseOperation1Output, error) { req, out := c.OutputService8TestCaseOperation1Request(input) err := req.Send() @@ -1038,6 +1110,15 @@ func (c *OutputService9ProtocolTest) OutputService9TestCaseOperation1Request(inp return } +// OutputService9TestCaseOperation1 API operation for . +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for 's +// API operation, OutputService9TestCaseOperation1 for more information, and other errors +// that the API operation could return. func (c *OutputService9ProtocolTest) OutputService9TestCaseOperation1(input *OutputService9TestShapeOutputService9TestCaseOperation1Input) (*OutputService9TestShapeOutputService9TestCaseOperation1Output, error) { req, out := c.OutputService9TestCaseOperation1Request(input) err := req.Send() diff --git a/private/protocol/jsonrpc/build_test.go b/private/protocol/jsonrpc/build_test.go index 42d9ab0eabf..6d994fd8a67 100644 --- a/private/protocol/jsonrpc/build_test.go +++ b/private/protocol/jsonrpc/build_test.go @@ -142,6 +142,15 @@ func (c *InputService1ProtocolTest) InputService1TestCaseOperation1Request(input return } +// InputService1TestCaseOperation1 API operation for . +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for 's +// API operation, InputService1TestCaseOperation1 for more information, and other errors +// that the API operation could return. func (c *InputService1ProtocolTest) InputService1TestCaseOperation1(input *InputService1TestShapeInputService1TestCaseOperation1Input) (*InputService1TestShapeInputService1TestCaseOperation1Output, error) { req, out := c.InputService1TestCaseOperation1Request(input) err := req.Send() @@ -256,6 +265,15 @@ func (c *InputService2ProtocolTest) InputService2TestCaseOperation1Request(input return } +// InputService2TestCaseOperation1 API operation for . +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for 's +// API operation, InputService2TestCaseOperation1 for more information, and other errors +// that the API operation could return. func (c *InputService2ProtocolTest) InputService2TestCaseOperation1(input *InputService2TestShapeInputService2TestCaseOperation1Input) (*InputService2TestShapeInputService2TestCaseOperation1Output, error) { req, out := c.InputService2TestCaseOperation1Request(input) err := req.Send() @@ -370,6 +388,15 @@ func (c *InputService3ProtocolTest) InputService3TestCaseOperation1Request(input return } +// InputService3TestCaseOperation1 API operation for . +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for 's +// API operation, InputService3TestCaseOperation1 for more information, and other errors +// that the API operation could return. func (c *InputService3ProtocolTest) InputService3TestCaseOperation1(input *InputService3TestShapeInputShape) (*InputService3TestShapeInputService3TestCaseOperation1Output, error) { req, out := c.InputService3TestCaseOperation1Request(input) err := req.Send() @@ -418,6 +445,15 @@ func (c *InputService3ProtocolTest) InputService3TestCaseOperation2Request(input return } +// InputService3TestCaseOperation2 API operation for . +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for 's +// API operation, InputService3TestCaseOperation2 for more information, and other errors +// that the API operation could return. func (c *InputService3ProtocolTest) InputService3TestCaseOperation2(input *InputService3TestShapeInputShape) (*InputService3TestShapeInputService3TestCaseOperation2Output, error) { req, out := c.InputService3TestCaseOperation2Request(input) err := req.Send() @@ -540,6 +576,15 @@ func (c *InputService4ProtocolTest) InputService4TestCaseOperation1Request(input return } +// InputService4TestCaseOperation1 API operation for . +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for 's +// API operation, InputService4TestCaseOperation1 for more information, and other errors +// that the API operation could return. func (c *InputService4ProtocolTest) InputService4TestCaseOperation1(input *InputService4TestShapeInputService4TestCaseOperation1Input) (*InputService4TestShapeInputService4TestCaseOperation1Output, error) { req, out := c.InputService4TestCaseOperation1Request(input) err := req.Send() @@ -654,6 +699,15 @@ func (c *InputService5ProtocolTest) InputService5TestCaseOperation1Request(input return } +// InputService5TestCaseOperation1 API operation for . +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for 's +// API operation, InputService5TestCaseOperation1 for more information, and other errors +// that the API operation could return. func (c *InputService5ProtocolTest) InputService5TestCaseOperation1(input *InputService5TestShapeInputShape) (*InputService5TestShapeInputService5TestCaseOperation1Output, error) { req, out := c.InputService5TestCaseOperation1Request(input) err := req.Send() @@ -702,6 +756,15 @@ func (c *InputService5ProtocolTest) InputService5TestCaseOperation2Request(input return } +// InputService5TestCaseOperation2 API operation for . +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for 's +// API operation, InputService5TestCaseOperation2 for more information, and other errors +// that the API operation could return. func (c *InputService5ProtocolTest) InputService5TestCaseOperation2(input *InputService5TestShapeInputShape) (*InputService5TestShapeInputService5TestCaseOperation2Output, error) { req, out := c.InputService5TestCaseOperation2Request(input) err := req.Send() @@ -750,6 +813,15 @@ func (c *InputService5ProtocolTest) InputService5TestCaseOperation3Request(input return } +// InputService5TestCaseOperation3 API operation for . +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for 's +// API operation, InputService5TestCaseOperation3 for more information, and other errors +// that the API operation could return. func (c *InputService5ProtocolTest) InputService5TestCaseOperation3(input *InputService5TestShapeInputShape) (*InputService5TestShapeInputService5TestCaseOperation3Output, error) { req, out := c.InputService5TestCaseOperation3Request(input) err := req.Send() @@ -798,6 +870,15 @@ func (c *InputService5ProtocolTest) InputService5TestCaseOperation4Request(input return } +// InputService5TestCaseOperation4 API operation for . +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for 's +// API operation, InputService5TestCaseOperation4 for more information, and other errors +// that the API operation could return. func (c *InputService5ProtocolTest) InputService5TestCaseOperation4(input *InputService5TestShapeInputShape) (*InputService5TestShapeInputService5TestCaseOperation4Output, error) { req, out := c.InputService5TestCaseOperation4Request(input) err := req.Send() @@ -846,6 +927,15 @@ func (c *InputService5ProtocolTest) InputService5TestCaseOperation5Request(input return } +// InputService5TestCaseOperation5 API operation for . +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for 's +// API operation, InputService5TestCaseOperation5 for more information, and other errors +// that the API operation could return. func (c *InputService5ProtocolTest) InputService5TestCaseOperation5(input *InputService5TestShapeInputShape) (*InputService5TestShapeInputService5TestCaseOperation5Output, error) { req, out := c.InputService5TestCaseOperation5Request(input) err := req.Send() @@ -894,6 +984,15 @@ func (c *InputService5ProtocolTest) InputService5TestCaseOperation6Request(input return } +// InputService5TestCaseOperation6 API operation for . +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for 's +// API operation, InputService5TestCaseOperation6 for more information, and other errors +// that the API operation could return. func (c *InputService5ProtocolTest) InputService5TestCaseOperation6(input *InputService5TestShapeInputShape) (*InputService5TestShapeInputService5TestCaseOperation6Output, error) { req, out := c.InputService5TestCaseOperation6Request(input) err := req.Send() @@ -1041,6 +1140,15 @@ func (c *InputService6ProtocolTest) InputService6TestCaseOperation1Request(input return } +// InputService6TestCaseOperation1 API operation for . +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for 's +// API operation, InputService6TestCaseOperation1 for more information, and other errors +// that the API operation could return. func (c *InputService6ProtocolTest) InputService6TestCaseOperation1(input *InputService6TestShapeInputService6TestCaseOperation1Input) (*InputService6TestShapeInputService6TestCaseOperation1Output, error) { req, out := c.InputService6TestCaseOperation1Request(input) err := req.Send() @@ -1156,6 +1264,15 @@ func (c *InputService7ProtocolTest) InputService7TestCaseOperation1Request(input return } +// InputService7TestCaseOperation1 API operation for . +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for 's +// API operation, InputService7TestCaseOperation1 for more information, and other errors +// that the API operation could return. func (c *InputService7ProtocolTest) InputService7TestCaseOperation1(input *InputService7TestShapeInputShape) (*InputService7TestShapeInputService7TestCaseOperation1Output, error) { req, out := c.InputService7TestCaseOperation1Request(input) err := req.Send() @@ -1205,6 +1322,15 @@ func (c *InputService7ProtocolTest) InputService7TestCaseOperation2Request(input return } +// InputService7TestCaseOperation2 API operation for . +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for 's +// API operation, InputService7TestCaseOperation2 for more information, and other errors +// that the API operation could return. func (c *InputService7ProtocolTest) InputService7TestCaseOperation2(input *InputService7TestShapeInputShape) (*InputService7TestShapeInputService7TestCaseOperation2Output, error) { req, out := c.InputService7TestCaseOperation2Request(input) err := req.Send() diff --git a/private/protocol/jsonrpc/unmarshal_test.go b/private/protocol/jsonrpc/unmarshal_test.go index e1fcac8b38a..eae4dce26c6 100644 --- a/private/protocol/jsonrpc/unmarshal_test.go +++ b/private/protocol/jsonrpc/unmarshal_test.go @@ -139,6 +139,15 @@ func (c *OutputService1ProtocolTest) OutputService1TestCaseOperation1Request(inp return } +// OutputService1TestCaseOperation1 API operation for . +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for 's +// API operation, OutputService1TestCaseOperation1 for more information, and other errors +// that the API operation could return. func (c *OutputService1ProtocolTest) OutputService1TestCaseOperation1(input *OutputService1TestShapeOutputService1TestCaseOperation1Input) (*OutputService1TestShapeOutputService1TestCaseOperation1Output, error) { req, out := c.OutputService1TestCaseOperation1Request(input) err := req.Send() @@ -265,6 +274,15 @@ func (c *OutputService2ProtocolTest) OutputService2TestCaseOperation1Request(inp return } +// OutputService2TestCaseOperation1 API operation for . +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for 's +// API operation, OutputService2TestCaseOperation1 for more information, and other errors +// that the API operation could return. func (c *OutputService2ProtocolTest) OutputService2TestCaseOperation1(input *OutputService2TestShapeOutputService2TestCaseOperation1Input) (*OutputService2TestShapeOutputService2TestCaseOperation1Output, error) { req, out := c.OutputService2TestCaseOperation1Request(input) err := req.Send() @@ -387,6 +405,15 @@ func (c *OutputService3ProtocolTest) OutputService3TestCaseOperation1Request(inp return } +// OutputService3TestCaseOperation1 API operation for . +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for 's +// API operation, OutputService3TestCaseOperation1 for more information, and other errors +// that the API operation could return. func (c *OutputService3ProtocolTest) OutputService3TestCaseOperation1(input *OutputService3TestShapeOutputService3TestCaseOperation1Input) (*OutputService3TestShapeOutputService3TestCaseOperation1Output, error) { req, out := c.OutputService3TestCaseOperation1Request(input) err := req.Send() @@ -507,6 +534,15 @@ func (c *OutputService4ProtocolTest) OutputService4TestCaseOperation1Request(inp return } +// OutputService4TestCaseOperation1 API operation for . +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for 's +// API operation, OutputService4TestCaseOperation1 for more information, and other errors +// that the API operation could return. func (c *OutputService4ProtocolTest) OutputService4TestCaseOperation1(input *OutputService4TestShapeOutputService4TestCaseOperation1Input) (*OutputService4TestShapeOutputShape, error) { req, out := c.OutputService4TestCaseOperation1Request(input) err := req.Send() @@ -553,6 +589,15 @@ func (c *OutputService4ProtocolTest) OutputService4TestCaseOperation2Request(inp return } +// OutputService4TestCaseOperation2 API operation for . +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for 's +// API operation, OutputService4TestCaseOperation2 for more information, and other errors +// that the API operation could return. func (c *OutputService4ProtocolTest) OutputService4TestCaseOperation2(input *OutputService4TestShapeOutputService4TestCaseOperation2Input) (*OutputService4TestShapeOutputShape, error) { req, out := c.OutputService4TestCaseOperation2Request(input) err := req.Send() @@ -677,6 +722,15 @@ func (c *OutputService5ProtocolTest) OutputService5TestCaseOperation1Request(inp return } +// OutputService5TestCaseOperation1 API operation for . +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for 's +// API operation, OutputService5TestCaseOperation1 for more information, and other errors +// that the API operation could return. func (c *OutputService5ProtocolTest) OutputService5TestCaseOperation1(input *OutputService5TestShapeOutputService5TestCaseOperation1Input) (*OutputService5TestShapeOutputService5TestCaseOperation1Output, error) { req, out := c.OutputService5TestCaseOperation1Request(input) err := req.Send() @@ -789,6 +843,15 @@ func (c *OutputService6ProtocolTest) OutputService6TestCaseOperation1Request(inp return } +// OutputService6TestCaseOperation1 API operation for . +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for 's +// API operation, OutputService6TestCaseOperation1 for more information, and other errors +// that the API operation could return. func (c *OutputService6ProtocolTest) OutputService6TestCaseOperation1(input *OutputService6TestShapeOutputService6TestCaseOperation1Input) (*OutputService6TestShapeOutputService6TestCaseOperation1Output, error) { req, out := c.OutputService6TestCaseOperation1Request(input) err := req.Send() diff --git a/private/protocol/query/build_test.go b/private/protocol/query/build_test.go index 1496e94da67..e347b0b9945 100644 --- a/private/protocol/query/build_test.go +++ b/private/protocol/query/build_test.go @@ -139,6 +139,15 @@ func (c *InputService1ProtocolTest) InputService1TestCaseOperation1Request(input return } +// InputService1TestCaseOperation1 API operation for . +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for 's +// API operation, InputService1TestCaseOperation1 for more information, and other errors +// that the API operation could return. func (c *InputService1ProtocolTest) InputService1TestCaseOperation1(input *InputService1TestShapeInputShape) (*InputService1TestShapeInputService1TestCaseOperation1Output, error) { req, out := c.InputService1TestCaseOperation1Request(input) err := req.Send() @@ -187,6 +196,15 @@ func (c *InputService1ProtocolTest) InputService1TestCaseOperation2Request(input return } +// InputService1TestCaseOperation2 API operation for . +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for 's +// API operation, InputService1TestCaseOperation2 for more information, and other errors +// that the API operation could return. func (c *InputService1ProtocolTest) InputService1TestCaseOperation2(input *InputService1TestShapeInputShape) (*InputService1TestShapeInputService1TestCaseOperation2Output, error) { req, out := c.InputService1TestCaseOperation2Request(input) err := req.Send() @@ -235,6 +253,15 @@ func (c *InputService1ProtocolTest) InputService1TestCaseOperation3Request(input return } +// InputService1TestCaseOperation3 API operation for . +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for 's +// API operation, InputService1TestCaseOperation3 for more information, and other errors +// that the API operation could return. func (c *InputService1ProtocolTest) InputService1TestCaseOperation3(input *InputService1TestShapeInputShape) (*InputService1TestShapeInputService1TestCaseOperation3Output, error) { req, out := c.InputService1TestCaseOperation3Request(input) err := req.Send() @@ -359,6 +386,15 @@ func (c *InputService2ProtocolTest) InputService2TestCaseOperation1Request(input return } +// InputService2TestCaseOperation1 API operation for . +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for 's +// API operation, InputService2TestCaseOperation1 for more information, and other errors +// that the API operation could return. func (c *InputService2ProtocolTest) InputService2TestCaseOperation1(input *InputService2TestShapeInputService2TestCaseOperation1Input) (*InputService2TestShapeInputService2TestCaseOperation1Output, error) { req, out := c.InputService2TestCaseOperation1Request(input) err := req.Send() @@ -477,6 +513,15 @@ func (c *InputService3ProtocolTest) InputService3TestCaseOperation1Request(input return } +// InputService3TestCaseOperation1 API operation for . +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for 's +// API operation, InputService3TestCaseOperation1 for more information, and other errors +// that the API operation could return. func (c *InputService3ProtocolTest) InputService3TestCaseOperation1(input *InputService3TestShapeInputShape) (*InputService3TestShapeInputService3TestCaseOperation1Output, error) { req, out := c.InputService3TestCaseOperation1Request(input) err := req.Send() @@ -525,6 +570,15 @@ func (c *InputService3ProtocolTest) InputService3TestCaseOperation2Request(input return } +// InputService3TestCaseOperation2 API operation for . +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for 's +// API operation, InputService3TestCaseOperation2 for more information, and other errors +// that the API operation could return. func (c *InputService3ProtocolTest) InputService3TestCaseOperation2(input *InputService3TestShapeInputShape) (*InputService3TestShapeInputService3TestCaseOperation2Output, error) { req, out := c.InputService3TestCaseOperation2Request(input) err := req.Send() @@ -641,6 +695,15 @@ func (c *InputService4ProtocolTest) InputService4TestCaseOperation1Request(input return } +// InputService4TestCaseOperation1 API operation for . +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for 's +// API operation, InputService4TestCaseOperation1 for more information, and other errors +// that the API operation could return. func (c *InputService4ProtocolTest) InputService4TestCaseOperation1(input *InputService4TestShapeInputShape) (*InputService4TestShapeInputService4TestCaseOperation1Output, error) { req, out := c.InputService4TestCaseOperation1Request(input) err := req.Send() @@ -689,6 +752,15 @@ func (c *InputService4ProtocolTest) InputService4TestCaseOperation2Request(input return } +// InputService4TestCaseOperation2 API operation for . +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for 's +// API operation, InputService4TestCaseOperation2 for more information, and other errors +// that the API operation could return. func (c *InputService4ProtocolTest) InputService4TestCaseOperation2(input *InputService4TestShapeInputShape) (*InputService4TestShapeInputService4TestCaseOperation2Output, error) { req, out := c.InputService4TestCaseOperation2Request(input) err := req.Send() @@ -809,6 +881,15 @@ func (c *InputService5ProtocolTest) InputService5TestCaseOperation1Request(input return } +// InputService5TestCaseOperation1 API operation for . +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for 's +// API operation, InputService5TestCaseOperation1 for more information, and other errors +// that the API operation could return. func (c *InputService5ProtocolTest) InputService5TestCaseOperation1(input *InputService5TestShapeInputService5TestCaseOperation1Input) (*InputService5TestShapeInputService5TestCaseOperation1Output, error) { req, out := c.InputService5TestCaseOperation1Request(input) err := req.Send() @@ -921,6 +1002,15 @@ func (c *InputService6ProtocolTest) InputService6TestCaseOperation1Request(input return } +// InputService6TestCaseOperation1 API operation for . +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for 's +// API operation, InputService6TestCaseOperation1 for more information, and other errors +// that the API operation could return. func (c *InputService6ProtocolTest) InputService6TestCaseOperation1(input *InputService6TestShapeInputService6TestCaseOperation1Input) (*InputService6TestShapeInputService6TestCaseOperation1Output, error) { req, out := c.InputService6TestCaseOperation1Request(input) err := req.Send() @@ -1033,6 +1123,15 @@ func (c *InputService7ProtocolTest) InputService7TestCaseOperation1Request(input return } +// InputService7TestCaseOperation1 API operation for . +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for 's +// API operation, InputService7TestCaseOperation1 for more information, and other errors +// that the API operation could return. func (c *InputService7ProtocolTest) InputService7TestCaseOperation1(input *InputService7TestShapeInputService7TestCaseOperation1Input) (*InputService7TestShapeInputService7TestCaseOperation1Output, error) { req, out := c.InputService7TestCaseOperation1Request(input) err := req.Send() @@ -1147,6 +1246,15 @@ func (c *InputService8ProtocolTest) InputService8TestCaseOperation1Request(input return } +// InputService8TestCaseOperation1 API operation for . +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for 's +// API operation, InputService8TestCaseOperation1 for more information, and other errors +// that the API operation could return. func (c *InputService8ProtocolTest) InputService8TestCaseOperation1(input *InputService8TestShapeInputService8TestCaseOperation1Input) (*InputService8TestShapeInputService8TestCaseOperation1Output, error) { req, out := c.InputService8TestCaseOperation1Request(input) err := req.Send() @@ -1259,6 +1367,15 @@ func (c *InputService9ProtocolTest) InputService9TestCaseOperation1Request(input return } +// InputService9TestCaseOperation1 API operation for . +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for 's +// API operation, InputService9TestCaseOperation1 for more information, and other errors +// that the API operation could return. func (c *InputService9ProtocolTest) InputService9TestCaseOperation1(input *InputService9TestShapeInputService9TestCaseOperation1Input) (*InputService9TestShapeInputService9TestCaseOperation1Output, error) { req, out := c.InputService9TestCaseOperation1Request(input) err := req.Send() @@ -1371,6 +1488,15 @@ func (c *InputService10ProtocolTest) InputService10TestCaseOperation1Request(inp return } +// InputService10TestCaseOperation1 API operation for . +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for 's +// API operation, InputService10TestCaseOperation1 for more information, and other errors +// that the API operation could return. func (c *InputService10ProtocolTest) InputService10TestCaseOperation1(input *InputService10TestShapeInputService10TestCaseOperation1Input) (*InputService10TestShapeInputService10TestCaseOperation1Output, error) { req, out := c.InputService10TestCaseOperation1Request(input) err := req.Send() @@ -1484,6 +1610,15 @@ func (c *InputService11ProtocolTest) InputService11TestCaseOperation1Request(inp return } +// InputService11TestCaseOperation1 API operation for . +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for 's +// API operation, InputService11TestCaseOperation1 for more information, and other errors +// that the API operation could return. func (c *InputService11ProtocolTest) InputService11TestCaseOperation1(input *InputService11TestShapeInputService11TestCaseOperation1Input) (*InputService11TestShapeInputService11TestCaseOperation1Output, error) { req, out := c.InputService11TestCaseOperation1Request(input) err := req.Send() @@ -1596,6 +1731,15 @@ func (c *InputService12ProtocolTest) InputService12TestCaseOperation1Request(inp return } +// InputService12TestCaseOperation1 API operation for . +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for 's +// API operation, InputService12TestCaseOperation1 for more information, and other errors +// that the API operation could return. func (c *InputService12ProtocolTest) InputService12TestCaseOperation1(input *InputService12TestShapeInputShape) (*InputService12TestShapeInputService12TestCaseOperation1Output, error) { req, out := c.InputService12TestCaseOperation1Request(input) err := req.Send() @@ -1644,6 +1788,15 @@ func (c *InputService12ProtocolTest) InputService12TestCaseOperation2Request(inp return } +// InputService12TestCaseOperation2 API operation for . +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for 's +// API operation, InputService12TestCaseOperation2 for more information, and other errors +// that the API operation could return. func (c *InputService12ProtocolTest) InputService12TestCaseOperation2(input *InputService12TestShapeInputShape) (*InputService12TestShapeInputService12TestCaseOperation2Output, error) { req, out := c.InputService12TestCaseOperation2Request(input) err := req.Send() @@ -1692,6 +1845,15 @@ func (c *InputService12ProtocolTest) InputService12TestCaseOperation3Request(inp return } +// InputService12TestCaseOperation3 API operation for . +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for 's +// API operation, InputService12TestCaseOperation3 for more information, and other errors +// that the API operation could return. func (c *InputService12ProtocolTest) InputService12TestCaseOperation3(input *InputService12TestShapeInputShape) (*InputService12TestShapeInputService12TestCaseOperation3Output, error) { req, out := c.InputService12TestCaseOperation3Request(input) err := req.Send() @@ -1740,6 +1902,15 @@ func (c *InputService12ProtocolTest) InputService12TestCaseOperation4Request(inp return } +// InputService12TestCaseOperation4 API operation for . +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for 's +// API operation, InputService12TestCaseOperation4 for more information, and other errors +// that the API operation could return. func (c *InputService12ProtocolTest) InputService12TestCaseOperation4(input *InputService12TestShapeInputShape) (*InputService12TestShapeInputService12TestCaseOperation4Output, error) { req, out := c.InputService12TestCaseOperation4Request(input) err := req.Send() @@ -1788,6 +1959,15 @@ func (c *InputService12ProtocolTest) InputService12TestCaseOperation5Request(inp return } +// InputService12TestCaseOperation5 API operation for . +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for 's +// API operation, InputService12TestCaseOperation5 for more information, and other errors +// that the API operation could return. func (c *InputService12ProtocolTest) InputService12TestCaseOperation5(input *InputService12TestShapeInputShape) (*InputService12TestShapeInputService12TestCaseOperation5Output, error) { req, out := c.InputService12TestCaseOperation5Request(input) err := req.Send() @@ -1836,6 +2016,15 @@ func (c *InputService12ProtocolTest) InputService12TestCaseOperation6Request(inp return } +// InputService12TestCaseOperation6 API operation for . +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for 's +// API operation, InputService12TestCaseOperation6 for more information, and other errors +// that the API operation could return. func (c *InputService12ProtocolTest) InputService12TestCaseOperation6(input *InputService12TestShapeInputShape) (*InputService12TestShapeInputService12TestCaseOperation6Output, error) { req, out := c.InputService12TestCaseOperation6Request(input) err := req.Send() @@ -1981,6 +2170,15 @@ func (c *InputService13ProtocolTest) InputService13TestCaseOperation1Request(inp return } +// InputService13TestCaseOperation1 API operation for . +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for 's +// API operation, InputService13TestCaseOperation1 for more information, and other errors +// that the API operation could return. func (c *InputService13ProtocolTest) InputService13TestCaseOperation1(input *InputService13TestShapeInputShape) (*InputService13TestShapeInputService13TestCaseOperation1Output, error) { req, out := c.InputService13TestCaseOperation1Request(input) err := req.Send() @@ -2030,6 +2228,15 @@ func (c *InputService13ProtocolTest) InputService13TestCaseOperation2Request(inp return } +// InputService13TestCaseOperation2 API operation for . +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for 's +// API operation, InputService13TestCaseOperation2 for more information, and other errors +// that the API operation could return. func (c *InputService13ProtocolTest) InputService13TestCaseOperation2(input *InputService13TestShapeInputShape) (*InputService13TestShapeInputService13TestCaseOperation2Output, error) { req, out := c.InputService13TestCaseOperation2Request(input) err := req.Send() diff --git a/private/protocol/query/unmarshal_test.go b/private/protocol/query/unmarshal_test.go index dbe0d99ed1b..9dd125e7f40 100644 --- a/private/protocol/query/unmarshal_test.go +++ b/private/protocol/query/unmarshal_test.go @@ -137,6 +137,15 @@ func (c *OutputService1ProtocolTest) OutputService1TestCaseOperation1Request(inp return } +// OutputService1TestCaseOperation1 API operation for . +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for 's +// API operation, OutputService1TestCaseOperation1 for more information, and other errors +// that the API operation could return. func (c *OutputService1ProtocolTest) OutputService1TestCaseOperation1(input *OutputService1TestShapeOutputService1TestCaseOperation1Input) (*OutputService1TestShapeOutputService1TestCaseOperation1Output, error) { req, out := c.OutputService1TestCaseOperation1Request(input) err := req.Send() @@ -263,6 +272,15 @@ func (c *OutputService2ProtocolTest) OutputService2TestCaseOperation1Request(inp return } +// OutputService2TestCaseOperation1 API operation for . +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for 's +// API operation, OutputService2TestCaseOperation1 for more information, and other errors +// that the API operation could return. func (c *OutputService2ProtocolTest) OutputService2TestCaseOperation1(input *OutputService2TestShapeOutputService2TestCaseOperation1Input) (*OutputService2TestShapeOutputService2TestCaseOperation1Output, error) { req, out := c.OutputService2TestCaseOperation1Request(input) err := req.Send() @@ -375,6 +393,15 @@ func (c *OutputService3ProtocolTest) OutputService3TestCaseOperation1Request(inp return } +// OutputService3TestCaseOperation1 API operation for . +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for 's +// API operation, OutputService3TestCaseOperation1 for more information, and other errors +// that the API operation could return. func (c *OutputService3ProtocolTest) OutputService3TestCaseOperation1(input *OutputService3TestShapeOutputService3TestCaseOperation1Input) (*OutputService3TestShapeOutputService3TestCaseOperation1Output, error) { req, out := c.OutputService3TestCaseOperation1Request(input) err := req.Send() @@ -486,6 +513,15 @@ func (c *OutputService4ProtocolTest) OutputService4TestCaseOperation1Request(inp return } +// OutputService4TestCaseOperation1 API operation for . +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for 's +// API operation, OutputService4TestCaseOperation1 for more information, and other errors +// that the API operation could return. func (c *OutputService4ProtocolTest) OutputService4TestCaseOperation1(input *OutputService4TestShapeOutputService4TestCaseOperation1Input) (*OutputService4TestShapeOutputService4TestCaseOperation1Output, error) { req, out := c.OutputService4TestCaseOperation1Request(input) err := req.Send() @@ -596,6 +632,15 @@ func (c *OutputService5ProtocolTest) OutputService5TestCaseOperation1Request(inp return } +// OutputService5TestCaseOperation1 API operation for . +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for 's +// API operation, OutputService5TestCaseOperation1 for more information, and other errors +// that the API operation could return. func (c *OutputService5ProtocolTest) OutputService5TestCaseOperation1(input *OutputService5TestShapeOutputService5TestCaseOperation1Input) (*OutputService5TestShapeOutputService5TestCaseOperation1Output, error) { req, out := c.OutputService5TestCaseOperation1Request(input) err := req.Send() @@ -706,6 +751,15 @@ func (c *OutputService6ProtocolTest) OutputService6TestCaseOperation1Request(inp return } +// OutputService6TestCaseOperation1 API operation for . +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for 's +// API operation, OutputService6TestCaseOperation1 for more information, and other errors +// that the API operation could return. func (c *OutputService6ProtocolTest) OutputService6TestCaseOperation1(input *OutputService6TestShapeOutputService6TestCaseOperation1Input) (*OutputService6TestShapeOutputService6TestCaseOperation1Output, error) { req, out := c.OutputService6TestCaseOperation1Request(input) err := req.Send() @@ -816,6 +870,15 @@ func (c *OutputService7ProtocolTest) OutputService7TestCaseOperation1Request(inp return } +// OutputService7TestCaseOperation1 API operation for . +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for 's +// API operation, OutputService7TestCaseOperation1 for more information, and other errors +// that the API operation could return. func (c *OutputService7ProtocolTest) OutputService7TestCaseOperation1(input *OutputService7TestShapeOutputService7TestCaseOperation1Input) (*OutputService7TestShapeOutputService7TestCaseOperation1Output, error) { req, out := c.OutputService7TestCaseOperation1Request(input) err := req.Send() @@ -926,6 +989,15 @@ func (c *OutputService8ProtocolTest) OutputService8TestCaseOperation1Request(inp return } +// OutputService8TestCaseOperation1 API operation for . +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for 's +// API operation, OutputService8TestCaseOperation1 for more information, and other errors +// that the API operation could return. func (c *OutputService8ProtocolTest) OutputService8TestCaseOperation1(input *OutputService8TestShapeOutputService8TestCaseOperation1Input) (*OutputService8TestShapeOutputService8TestCaseOperation1Output, error) { req, out := c.OutputService8TestCaseOperation1Request(input) err := req.Send() @@ -1046,6 +1118,15 @@ func (c *OutputService9ProtocolTest) OutputService9TestCaseOperation1Request(inp return } +// OutputService9TestCaseOperation1 API operation for . +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for 's +// API operation, OutputService9TestCaseOperation1 for more information, and other errors +// that the API operation could return. func (c *OutputService9ProtocolTest) OutputService9TestCaseOperation1(input *OutputService9TestShapeOutputService9TestCaseOperation1Input) (*OutputService9TestShapeOutputService9TestCaseOperation1Output, error) { req, out := c.OutputService9TestCaseOperation1Request(input) err := req.Send() @@ -1166,6 +1247,15 @@ func (c *OutputService10ProtocolTest) OutputService10TestCaseOperation1Request(i return } +// OutputService10TestCaseOperation1 API operation for . +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for 's +// API operation, OutputService10TestCaseOperation1 for more information, and other errors +// that the API operation could return. func (c *OutputService10ProtocolTest) OutputService10TestCaseOperation1(input *OutputService10TestShapeOutputService10TestCaseOperation1Input) (*OutputService10TestShapeOutputService10TestCaseOperation1Output, error) { req, out := c.OutputService10TestCaseOperation1Request(input) err := req.Send() @@ -1276,6 +1366,15 @@ func (c *OutputService11ProtocolTest) OutputService11TestCaseOperation1Request(i return } +// OutputService11TestCaseOperation1 API operation for . +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for 's +// API operation, OutputService11TestCaseOperation1 for more information, and other errors +// that the API operation could return. func (c *OutputService11ProtocolTest) OutputService11TestCaseOperation1(input *OutputService11TestShapeOutputService11TestCaseOperation1Input) (*OutputService11TestShapeOutputService11TestCaseOperation1Output, error) { req, out := c.OutputService11TestCaseOperation1Request(input) err := req.Send() @@ -1392,6 +1491,15 @@ func (c *OutputService12ProtocolTest) OutputService12TestCaseOperation1Request(i return } +// OutputService12TestCaseOperation1 API operation for . +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for 's +// API operation, OutputService12TestCaseOperation1 for more information, and other errors +// that the API operation could return. func (c *OutputService12ProtocolTest) OutputService12TestCaseOperation1(input *OutputService12TestShapeOutputService12TestCaseOperation1Input) (*OutputService12TestShapeOutputService12TestCaseOperation1Output, error) { req, out := c.OutputService12TestCaseOperation1Request(input) err := req.Send() @@ -1502,6 +1610,15 @@ func (c *OutputService13ProtocolTest) OutputService13TestCaseOperation1Request(i return } +// OutputService13TestCaseOperation1 API operation for . +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for 's +// API operation, OutputService13TestCaseOperation1 for more information, and other errors +// that the API operation could return. func (c *OutputService13ProtocolTest) OutputService13TestCaseOperation1(input *OutputService13TestShapeOutputService13TestCaseOperation1Input) (*OutputService13TestShapeOutputService13TestCaseOperation1Output, error) { req, out := c.OutputService13TestCaseOperation1Request(input) err := req.Send() @@ -1612,6 +1729,15 @@ func (c *OutputService14ProtocolTest) OutputService14TestCaseOperation1Request(i return } +// OutputService14TestCaseOperation1 API operation for . +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for 's +// API operation, OutputService14TestCaseOperation1 for more information, and other errors +// that the API operation could return. func (c *OutputService14ProtocolTest) OutputService14TestCaseOperation1(input *OutputService14TestShapeOutputService14TestCaseOperation1Input) (*OutputService14TestShapeOutputService14TestCaseOperation1Output, error) { req, out := c.OutputService14TestCaseOperation1Request(input) err := req.Send() @@ -1722,6 +1848,15 @@ func (c *OutputService15ProtocolTest) OutputService15TestCaseOperation1Request(i return } +// OutputService15TestCaseOperation1 API operation for . +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for 's +// API operation, OutputService15TestCaseOperation1 for more information, and other errors +// that the API operation could return. func (c *OutputService15ProtocolTest) OutputService15TestCaseOperation1(input *OutputService15TestShapeOutputService15TestCaseOperation1Input) (*OutputService15TestShapeOutputService15TestCaseOperation1Output, error) { req, out := c.OutputService15TestCaseOperation1Request(input) err := req.Send() diff --git a/private/protocol/restjson/build_test.go b/private/protocol/restjson/build_test.go index a12e6fb8730..062c0a2b491 100644 --- a/private/protocol/restjson/build_test.go +++ b/private/protocol/restjson/build_test.go @@ -140,6 +140,15 @@ func (c *InputService1ProtocolTest) InputService1TestCaseOperation1Request(input return } +// InputService1TestCaseOperation1 API operation for . +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for 's +// API operation, InputService1TestCaseOperation1 for more information, and other errors +// that the API operation could return. func (c *InputService1ProtocolTest) InputService1TestCaseOperation1(input *InputService1TestShapeInputService1TestCaseOperation1Input) (*InputService1TestShapeInputService1TestCaseOperation1Output, error) { req, out := c.InputService1TestCaseOperation1Request(input) err := req.Send() @@ -251,6 +260,15 @@ func (c *InputService2ProtocolTest) InputService2TestCaseOperation1Request(input return } +// InputService2TestCaseOperation1 API operation for . +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for 's +// API operation, InputService2TestCaseOperation1 for more information, and other errors +// that the API operation could return. func (c *InputService2ProtocolTest) InputService2TestCaseOperation1(input *InputService2TestShapeInputService2TestCaseOperation1Input) (*InputService2TestShapeInputService2TestCaseOperation1Output, error) { req, out := c.InputService2TestCaseOperation1Request(input) err := req.Send() @@ -364,6 +382,15 @@ func (c *InputService3ProtocolTest) InputService3TestCaseOperation1Request(input return } +// InputService3TestCaseOperation1 API operation for . +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for 's +// API operation, InputService3TestCaseOperation1 for more information, and other errors +// that the API operation could return. func (c *InputService3ProtocolTest) InputService3TestCaseOperation1(input *InputService3TestShapeInputService3TestCaseOperation1Input) (*InputService3TestShapeInputService3TestCaseOperation1Output, error) { req, out := c.InputService3TestCaseOperation1Request(input) err := req.Send() @@ -477,6 +504,15 @@ func (c *InputService4ProtocolTest) InputService4TestCaseOperation1Request(input return } +// InputService4TestCaseOperation1 API operation for . +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for 's +// API operation, InputService4TestCaseOperation1 for more information, and other errors +// that the API operation could return. func (c *InputService4ProtocolTest) InputService4TestCaseOperation1(input *InputService4TestShapeInputService4TestCaseOperation1Input) (*InputService4TestShapeInputService4TestCaseOperation1Output, error) { req, out := c.InputService4TestCaseOperation1Request(input) err := req.Send() @@ -590,6 +626,15 @@ func (c *InputService5ProtocolTest) InputService5TestCaseOperation1Request(input return } +// InputService5TestCaseOperation1 API operation for . +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for 's +// API operation, InputService5TestCaseOperation1 for more information, and other errors +// that the API operation could return. func (c *InputService5ProtocolTest) InputService5TestCaseOperation1(input *InputService5TestShapeInputService5TestCaseOperation1Input) (*InputService5TestShapeInputService5TestCaseOperation1Output, error) { req, out := c.InputService5TestCaseOperation1Request(input) err := req.Send() @@ -705,6 +750,15 @@ func (c *InputService6ProtocolTest) InputService6TestCaseOperation1Request(input return } +// InputService6TestCaseOperation1 API operation for . +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for 's +// API operation, InputService6TestCaseOperation1 for more information, and other errors +// that the API operation could return. func (c *InputService6ProtocolTest) InputService6TestCaseOperation1(input *InputService6TestShapeInputService6TestCaseOperation1Input) (*InputService6TestShapeInputService6TestCaseOperation1Output, error) { req, out := c.InputService6TestCaseOperation1Request(input) err := req.Send() @@ -820,6 +874,15 @@ func (c *InputService7ProtocolTest) InputService7TestCaseOperation1Request(input return } +// InputService7TestCaseOperation1 API operation for . +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for 's +// API operation, InputService7TestCaseOperation1 for more information, and other errors +// that the API operation could return. func (c *InputService7ProtocolTest) InputService7TestCaseOperation1(input *InputService7TestShapeInputService7TestCaseOperation1Input) (*InputService7TestShapeInputService7TestCaseOperation1Output, error) { req, out := c.InputService7TestCaseOperation1Request(input) err := req.Send() @@ -937,6 +1000,15 @@ func (c *InputService8ProtocolTest) InputService8TestCaseOperation1Request(input return } +// InputService8TestCaseOperation1 API operation for . +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for 's +// API operation, InputService8TestCaseOperation1 for more information, and other errors +// that the API operation could return. func (c *InputService8ProtocolTest) InputService8TestCaseOperation1(input *InputService8TestShapeInputService8TestCaseOperation1Input) (*InputService8TestShapeInputService8TestCaseOperation1Output, error) { req, out := c.InputService8TestCaseOperation1Request(input) err := req.Send() @@ -1064,6 +1136,15 @@ func (c *InputService9ProtocolTest) InputService9TestCaseOperation1Request(input return } +// InputService9TestCaseOperation1 API operation for . +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for 's +// API operation, InputService9TestCaseOperation1 for more information, and other errors +// that the API operation could return. func (c *InputService9ProtocolTest) InputService9TestCaseOperation1(input *InputService9TestShapeInputService9TestCaseOperation1Input) (*InputService9TestShapeInputService9TestCaseOperation1Output, error) { req, out := c.InputService9TestCaseOperation1Request(input) err := req.Send() @@ -1193,6 +1274,15 @@ func (c *InputService10ProtocolTest) InputService10TestCaseOperation1Request(inp return } +// InputService10TestCaseOperation1 API operation for . +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for 's +// API operation, InputService10TestCaseOperation1 for more information, and other errors +// that the API operation could return. func (c *InputService10ProtocolTest) InputService10TestCaseOperation1(input *InputService10TestShapeInputService10TestCaseOperation1Input) (*InputService10TestShapeInputService10TestCaseOperation1Output, error) { req, out := c.InputService10TestCaseOperation1Request(input) err := req.Send() @@ -1324,6 +1414,15 @@ func (c *InputService11ProtocolTest) InputService11TestCaseOperation1Request(inp return } +// InputService11TestCaseOperation1 API operation for . +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for 's +// API operation, InputService11TestCaseOperation1 for more information, and other errors +// that the API operation could return. func (c *InputService11ProtocolTest) InputService11TestCaseOperation1(input *InputService11TestShapeInputService11TestCaseOperation1Input) (*InputService11TestShapeInputService11TestCaseOperation1Output, error) { req, out := c.InputService11TestCaseOperation1Request(input) err := req.Send() @@ -1454,6 +1553,15 @@ func (c *InputService12ProtocolTest) InputService12TestCaseOperation1Request(inp return } +// InputService12TestCaseOperation1 API operation for . +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for 's +// API operation, InputService12TestCaseOperation1 for more information, and other errors +// that the API operation could return. func (c *InputService12ProtocolTest) InputService12TestCaseOperation1(input *InputService12TestShapeInputShape) (*InputService12TestShapeInputService12TestCaseOperation1Output, error) { req, out := c.InputService12TestCaseOperation1Request(input) err := req.Send() @@ -1503,6 +1611,15 @@ func (c *InputService12ProtocolTest) InputService12TestCaseOperation2Request(inp return } +// InputService12TestCaseOperation2 API operation for . +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for 's +// API operation, InputService12TestCaseOperation2 for more information, and other errors +// that the API operation could return. func (c *InputService12ProtocolTest) InputService12TestCaseOperation2(input *InputService12TestShapeInputShape) (*InputService12TestShapeInputService12TestCaseOperation2Output, error) { req, out := c.InputService12TestCaseOperation2Request(input) err := req.Send() @@ -1620,6 +1737,15 @@ func (c *InputService13ProtocolTest) InputService13TestCaseOperation1Request(inp return } +// InputService13TestCaseOperation1 API operation for . +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for 's +// API operation, InputService13TestCaseOperation1 for more information, and other errors +// that the API operation could return. func (c *InputService13ProtocolTest) InputService13TestCaseOperation1(input *InputService13TestShapeInputShape) (*InputService13TestShapeInputService13TestCaseOperation1Output, error) { req, out := c.InputService13TestCaseOperation1Request(input) err := req.Send() @@ -1669,6 +1795,15 @@ func (c *InputService13ProtocolTest) InputService13TestCaseOperation2Request(inp return } +// InputService13TestCaseOperation2 API operation for . +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for 's +// API operation, InputService13TestCaseOperation2 for more information, and other errors +// that the API operation could return. func (c *InputService13ProtocolTest) InputService13TestCaseOperation2(input *InputService13TestShapeInputShape) (*InputService13TestShapeInputService13TestCaseOperation2Output, error) { req, out := c.InputService13TestCaseOperation2Request(input) err := req.Send() @@ -1792,6 +1927,15 @@ func (c *InputService14ProtocolTest) InputService14TestCaseOperation1Request(inp return } +// InputService14TestCaseOperation1 API operation for . +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for 's +// API operation, InputService14TestCaseOperation1 for more information, and other errors +// that the API operation could return. func (c *InputService14ProtocolTest) InputService14TestCaseOperation1(input *InputService14TestShapeInputShape) (*InputService14TestShapeInputService14TestCaseOperation1Output, error) { req, out := c.InputService14TestCaseOperation1Request(input) err := req.Send() @@ -1841,6 +1985,15 @@ func (c *InputService14ProtocolTest) InputService14TestCaseOperation2Request(inp return } +// InputService14TestCaseOperation2 API operation for . +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for 's +// API operation, InputService14TestCaseOperation2 for more information, and other errors +// that the API operation could return. func (c *InputService14ProtocolTest) InputService14TestCaseOperation2(input *InputService14TestShapeInputShape) (*InputService14TestShapeInputService14TestCaseOperation2Output, error) { req, out := c.InputService14TestCaseOperation2Request(input) err := req.Send() @@ -1958,6 +2111,15 @@ func (c *InputService15ProtocolTest) InputService15TestCaseOperation1Request(inp return } +// InputService15TestCaseOperation1 API operation for . +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for 's +// API operation, InputService15TestCaseOperation1 for more information, and other errors +// that the API operation could return. func (c *InputService15ProtocolTest) InputService15TestCaseOperation1(input *InputService15TestShapeInputShape) (*InputService15TestShapeInputService15TestCaseOperation1Output, error) { req, out := c.InputService15TestCaseOperation1Request(input) err := req.Send() @@ -2007,6 +2169,15 @@ func (c *InputService15ProtocolTest) InputService15TestCaseOperation2Request(inp return } +// InputService15TestCaseOperation2 API operation for . +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for 's +// API operation, InputService15TestCaseOperation2 for more information, and other errors +// that the API operation could return. func (c *InputService15ProtocolTest) InputService15TestCaseOperation2(input *InputService15TestShapeInputShape) (*InputService15TestShapeInputService15TestCaseOperation2Output, error) { req, out := c.InputService15TestCaseOperation2Request(input) err := req.Send() @@ -2056,6 +2227,15 @@ func (c *InputService15ProtocolTest) InputService15TestCaseOperation3Request(inp return } +// InputService15TestCaseOperation3 API operation for . +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for 's +// API operation, InputService15TestCaseOperation3 for more information, and other errors +// that the API operation could return. func (c *InputService15ProtocolTest) InputService15TestCaseOperation3(input *InputService15TestShapeInputShape) (*InputService15TestShapeInputService15TestCaseOperation3Output, error) { req, out := c.InputService15TestCaseOperation3Request(input) err := req.Send() @@ -2105,6 +2285,15 @@ func (c *InputService15ProtocolTest) InputService15TestCaseOperation4Request(inp return } +// InputService15TestCaseOperation4 API operation for . +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for 's +// API operation, InputService15TestCaseOperation4 for more information, and other errors +// that the API operation could return. func (c *InputService15ProtocolTest) InputService15TestCaseOperation4(input *InputService15TestShapeInputShape) (*InputService15TestShapeInputService15TestCaseOperation4Output, error) { req, out := c.InputService15TestCaseOperation4Request(input) err := req.Send() @@ -2154,6 +2343,15 @@ func (c *InputService15ProtocolTest) InputService15TestCaseOperation5Request(inp return } +// InputService15TestCaseOperation5 API operation for . +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for 's +// API operation, InputService15TestCaseOperation5 for more information, and other errors +// that the API operation could return. func (c *InputService15ProtocolTest) InputService15TestCaseOperation5(input *InputService15TestShapeInputShape) (*InputService15TestShapeInputService15TestCaseOperation5Output, error) { req, out := c.InputService15TestCaseOperation5Request(input) err := req.Send() @@ -2203,6 +2401,15 @@ func (c *InputService15ProtocolTest) InputService15TestCaseOperation6Request(inp return } +// InputService15TestCaseOperation6 API operation for . +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for 's +// API operation, InputService15TestCaseOperation6 for more information, and other errors +// that the API operation could return. func (c *InputService15ProtocolTest) InputService15TestCaseOperation6(input *InputService15TestShapeInputShape) (*InputService15TestShapeInputService15TestCaseOperation6Output, error) { req, out := c.InputService15TestCaseOperation6Request(input) err := req.Send() @@ -2348,6 +2555,15 @@ func (c *InputService16ProtocolTest) InputService16TestCaseOperation1Request(inp return } +// InputService16TestCaseOperation1 API operation for . +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for 's +// API operation, InputService16TestCaseOperation1 for more information, and other errors +// that the API operation could return. func (c *InputService16ProtocolTest) InputService16TestCaseOperation1(input *InputService16TestShapeInputShape) (*InputService16TestShapeInputService16TestCaseOperation1Output, error) { req, out := c.InputService16TestCaseOperation1Request(input) err := req.Send() @@ -2397,6 +2613,15 @@ func (c *InputService16ProtocolTest) InputService16TestCaseOperation2Request(inp return } +// InputService16TestCaseOperation2 API operation for . +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for 's +// API operation, InputService16TestCaseOperation2 for more information, and other errors +// that the API operation could return. func (c *InputService16ProtocolTest) InputService16TestCaseOperation2(input *InputService16TestShapeInputShape) (*InputService16TestShapeInputService16TestCaseOperation2Output, error) { req, out := c.InputService16TestCaseOperation2Request(input) err := req.Send() @@ -2516,6 +2741,15 @@ func (c *InputService17ProtocolTest) InputService17TestCaseOperation1Request(inp return } +// InputService17TestCaseOperation1 API operation for . +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for 's +// API operation, InputService17TestCaseOperation1 for more information, and other errors +// that the API operation could return. func (c *InputService17ProtocolTest) InputService17TestCaseOperation1(input *InputService17TestShapeInputService17TestCaseOperation1Input) (*InputService17TestShapeInputService17TestCaseOperation1Output, error) { req, out := c.InputService17TestCaseOperation1Request(input) err := req.Send() @@ -2629,6 +2863,15 @@ func (c *InputService18ProtocolTest) InputService18TestCaseOperation1Request(inp return } +// InputService18TestCaseOperation1 API operation for . +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for 's +// API operation, InputService18TestCaseOperation1 for more information, and other errors +// that the API operation could return. func (c *InputService18ProtocolTest) InputService18TestCaseOperation1(input *InputService18TestShapeInputService18TestCaseOperation1Input) (*InputService18TestShapeInputService18TestCaseOperation1Output, error) { req, out := c.InputService18TestCaseOperation1Request(input) err := req.Send() @@ -2742,6 +2985,15 @@ func (c *InputService19ProtocolTest) InputService19TestCaseOperation1Request(inp return } +// InputService19TestCaseOperation1 API operation for . +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for 's +// API operation, InputService19TestCaseOperation1 for more information, and other errors +// that the API operation could return. func (c *InputService19ProtocolTest) InputService19TestCaseOperation1(input *InputService19TestShapeInputShape) (*InputService19TestShapeInputService19TestCaseOperation1Output, error) { req, out := c.InputService19TestCaseOperation1Request(input) err := req.Send() @@ -2791,6 +3043,15 @@ func (c *InputService19ProtocolTest) InputService19TestCaseOperation2Request(inp return } +// InputService19TestCaseOperation2 API operation for . +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for 's +// API operation, InputService19TestCaseOperation2 for more information, and other errors +// that the API operation could return. func (c *InputService19ProtocolTest) InputService19TestCaseOperation2(input *InputService19TestShapeInputShape) (*InputService19TestShapeInputService19TestCaseOperation2Output, error) { req, out := c.InputService19TestCaseOperation2Request(input) err := req.Send() diff --git a/private/protocol/restjson/unmarshal_test.go b/private/protocol/restjson/unmarshal_test.go index d6590c9b9c0..40b0deefb6d 100644 --- a/private/protocol/restjson/unmarshal_test.go +++ b/private/protocol/restjson/unmarshal_test.go @@ -137,6 +137,15 @@ func (c *OutputService1ProtocolTest) OutputService1TestCaseOperation1Request(inp return } +// OutputService1TestCaseOperation1 API operation for . +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for 's +// API operation, OutputService1TestCaseOperation1 for more information, and other errors +// that the API operation could return. func (c *OutputService1ProtocolTest) OutputService1TestCaseOperation1(input *OutputService1TestShapeOutputService1TestCaseOperation1Input) (*OutputService1TestShapeOutputService1TestCaseOperation1Output, error) { req, out := c.OutputService1TestCaseOperation1Request(input) err := req.Send() @@ -267,6 +276,15 @@ func (c *OutputService2ProtocolTest) OutputService2TestCaseOperation1Request(inp return } +// OutputService2TestCaseOperation1 API operation for . +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for 's +// API operation, OutputService2TestCaseOperation1 for more information, and other errors +// that the API operation could return. func (c *OutputService2ProtocolTest) OutputService2TestCaseOperation1(input *OutputService2TestShapeOutputService2TestCaseOperation1Input) (*OutputService2TestShapeOutputService2TestCaseOperation1Output, error) { req, out := c.OutputService2TestCaseOperation1Request(input) err := req.Send() @@ -387,6 +405,15 @@ func (c *OutputService3ProtocolTest) OutputService3TestCaseOperation1Request(inp return } +// OutputService3TestCaseOperation1 API operation for . +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for 's +// API operation, OutputService3TestCaseOperation1 for more information, and other errors +// that the API operation could return. func (c *OutputService3ProtocolTest) OutputService3TestCaseOperation1(input *OutputService3TestShapeOutputService3TestCaseOperation1Input) (*OutputService3TestShapeOutputService3TestCaseOperation1Output, error) { req, out := c.OutputService3TestCaseOperation1Request(input) err := req.Send() @@ -505,6 +532,15 @@ func (c *OutputService4ProtocolTest) OutputService4TestCaseOperation1Request(inp return } +// OutputService4TestCaseOperation1 API operation for . +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for 's +// API operation, OutputService4TestCaseOperation1 for more information, and other errors +// that the API operation could return. func (c *OutputService4ProtocolTest) OutputService4TestCaseOperation1(input *OutputService4TestShapeOutputService4TestCaseOperation1Input) (*OutputService4TestShapeOutputService4TestCaseOperation1Output, error) { req, out := c.OutputService4TestCaseOperation1Request(input) err := req.Send() @@ -615,6 +651,15 @@ func (c *OutputService5ProtocolTest) OutputService5TestCaseOperation1Request(inp return } +// OutputService5TestCaseOperation1 API operation for . +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for 's +// API operation, OutputService5TestCaseOperation1 for more information, and other errors +// that the API operation could return. func (c *OutputService5ProtocolTest) OutputService5TestCaseOperation1(input *OutputService5TestShapeOutputService5TestCaseOperation1Input) (*OutputService5TestShapeOutputService5TestCaseOperation1Output, error) { req, out := c.OutputService5TestCaseOperation1Request(input) err := req.Send() @@ -731,6 +776,15 @@ func (c *OutputService6ProtocolTest) OutputService6TestCaseOperation1Request(inp return } +// OutputService6TestCaseOperation1 API operation for . +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for 's +// API operation, OutputService6TestCaseOperation1 for more information, and other errors +// that the API operation could return. func (c *OutputService6ProtocolTest) OutputService6TestCaseOperation1(input *OutputService6TestShapeOutputService6TestCaseOperation1Input) (*OutputService6TestShapeOutputService6TestCaseOperation1Output, error) { req, out := c.OutputService6TestCaseOperation1Request(input) err := req.Send() @@ -841,6 +895,15 @@ func (c *OutputService7ProtocolTest) OutputService7TestCaseOperation1Request(inp return } +// OutputService7TestCaseOperation1 API operation for . +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for 's +// API operation, OutputService7TestCaseOperation1 for more information, and other errors +// that the API operation could return. func (c *OutputService7ProtocolTest) OutputService7TestCaseOperation1(input *OutputService7TestShapeOutputService7TestCaseOperation1Input) (*OutputService7TestShapeOutputService7TestCaseOperation1Output, error) { req, out := c.OutputService7TestCaseOperation1Request(input) err := req.Send() @@ -951,6 +1014,15 @@ func (c *OutputService8ProtocolTest) OutputService8TestCaseOperation1Request(inp return } +// OutputService8TestCaseOperation1 API operation for . +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for 's +// API operation, OutputService8TestCaseOperation1 for more information, and other errors +// that the API operation could return. func (c *OutputService8ProtocolTest) OutputService8TestCaseOperation1(input *OutputService8TestShapeOutputService8TestCaseOperation1Input) (*OutputService8TestShapeOutputService8TestCaseOperation1Output, error) { req, out := c.OutputService8TestCaseOperation1Request(input) err := req.Send() @@ -1061,6 +1133,15 @@ func (c *OutputService9ProtocolTest) OutputService9TestCaseOperation1Request(inp return } +// OutputService9TestCaseOperation1 API operation for . +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for 's +// API operation, OutputService9TestCaseOperation1 for more information, and other errors +// that the API operation could return. func (c *OutputService9ProtocolTest) OutputService9TestCaseOperation1(input *OutputService9TestShapeOutputService9TestCaseOperation1Input) (*OutputService9TestShapeOutputService9TestCaseOperation1Output, error) { req, out := c.OutputService9TestCaseOperation1Request(input) err := req.Send() @@ -1173,6 +1254,15 @@ func (c *OutputService10ProtocolTest) OutputService10TestCaseOperation1Request(i return } +// OutputService10TestCaseOperation1 API operation for . +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for 's +// API operation, OutputService10TestCaseOperation1 for more information, and other errors +// that the API operation could return. func (c *OutputService10ProtocolTest) OutputService10TestCaseOperation1(input *OutputService10TestShapeOutputService10TestCaseOperation1Input) (*OutputService10TestShapeOutputService10TestCaseOperation1Output, error) { req, out := c.OutputService10TestCaseOperation1Request(input) err := req.Send() @@ -1291,6 +1381,15 @@ func (c *OutputService11ProtocolTest) OutputService11TestCaseOperation1Request(i return } +// OutputService11TestCaseOperation1 API operation for . +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for 's +// API operation, OutputService11TestCaseOperation1 for more information, and other errors +// that the API operation could return. func (c *OutputService11ProtocolTest) OutputService11TestCaseOperation1(input *OutputService11TestShapeOutputService11TestCaseOperation1Input) (*OutputService11TestShapeOutputService11TestCaseOperation1Output, error) { req, out := c.OutputService11TestCaseOperation1Request(input) err := req.Send() diff --git a/private/protocol/restxml/build_test.go b/private/protocol/restxml/build_test.go index 6263877e2bb..f1de3e30977 100644 --- a/private/protocol/restxml/build_test.go +++ b/private/protocol/restxml/build_test.go @@ -140,6 +140,15 @@ func (c *InputService1ProtocolTest) InputService1TestCaseOperation1Request(input return } +// InputService1TestCaseOperation1 API operation for . +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for 's +// API operation, InputService1TestCaseOperation1 for more information, and other errors +// that the API operation could return. func (c *InputService1ProtocolTest) InputService1TestCaseOperation1(input *InputService1TestShapeInputShape) (*InputService1TestShapeInputService1TestCaseOperation1Output, error) { req, out := c.InputService1TestCaseOperation1Request(input) err := req.Send() @@ -189,6 +198,15 @@ func (c *InputService1ProtocolTest) InputService1TestCaseOperation2Request(input return } +// InputService1TestCaseOperation2 API operation for . +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for 's +// API operation, InputService1TestCaseOperation2 for more information, and other errors +// that the API operation could return. func (c *InputService1ProtocolTest) InputService1TestCaseOperation2(input *InputService1TestShapeInputShape) (*InputService1TestShapeInputService1TestCaseOperation2Output, error) { req, out := c.InputService1TestCaseOperation2Request(input) err := req.Send() @@ -238,6 +256,15 @@ func (c *InputService1ProtocolTest) InputService1TestCaseOperation3Request(input return } +// InputService1TestCaseOperation3 API operation for . +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for 's +// API operation, InputService1TestCaseOperation3 for more information, and other errors +// that the API operation could return. func (c *InputService1ProtocolTest) InputService1TestCaseOperation3(input *InputService1TestShapeInputService1TestCaseOperation3Input) (*InputService1TestShapeInputService1TestCaseOperation3Output, error) { req, out := c.InputService1TestCaseOperation3Request(input) err := req.Send() @@ -365,6 +392,15 @@ func (c *InputService2ProtocolTest) InputService2TestCaseOperation1Request(input return } +// InputService2TestCaseOperation1 API operation for . +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for 's +// API operation, InputService2TestCaseOperation1 for more information, and other errors +// that the API operation could return. func (c *InputService2ProtocolTest) InputService2TestCaseOperation1(input *InputService2TestShapeInputService2TestCaseOperation1Input) (*InputService2TestShapeInputService2TestCaseOperation1Output, error) { req, out := c.InputService2TestCaseOperation1Request(input) err := req.Send() @@ -484,6 +520,15 @@ func (c *InputService3ProtocolTest) InputService3TestCaseOperation1Request(input return } +// InputService3TestCaseOperation1 API operation for . +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for 's +// API operation, InputService3TestCaseOperation1 for more information, and other errors +// that the API operation could return. func (c *InputService3ProtocolTest) InputService3TestCaseOperation1(input *InputService3TestShapeInputShape) (*InputService3TestShapeInputService3TestCaseOperation1Output, error) { req, out := c.InputService3TestCaseOperation1Request(input) err := req.Send() @@ -533,6 +578,15 @@ func (c *InputService3ProtocolTest) InputService3TestCaseOperation2Request(input return } +// InputService3TestCaseOperation2 API operation for . +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for 's +// API operation, InputService3TestCaseOperation2 for more information, and other errors +// that the API operation could return. func (c *InputService3ProtocolTest) InputService3TestCaseOperation2(input *InputService3TestShapeInputShape) (*InputService3TestShapeInputService3TestCaseOperation2Output, error) { req, out := c.InputService3TestCaseOperation2Request(input) err := req.Send() @@ -660,6 +714,15 @@ func (c *InputService4ProtocolTest) InputService4TestCaseOperation1Request(input return } +// InputService4TestCaseOperation1 API operation for . +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for 's +// API operation, InputService4TestCaseOperation1 for more information, and other errors +// that the API operation could return. func (c *InputService4ProtocolTest) InputService4TestCaseOperation1(input *InputService4TestShapeInputService4TestCaseOperation1Input) (*InputService4TestShapeInputService4TestCaseOperation1Output, error) { req, out := c.InputService4TestCaseOperation1Request(input) err := req.Send() @@ -783,6 +846,15 @@ func (c *InputService5ProtocolTest) InputService5TestCaseOperation1Request(input return } +// InputService5TestCaseOperation1 API operation for . +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for 's +// API operation, InputService5TestCaseOperation1 for more information, and other errors +// that the API operation could return. func (c *InputService5ProtocolTest) InputService5TestCaseOperation1(input *InputService5TestShapeInputService5TestCaseOperation1Input) (*InputService5TestShapeInputService5TestCaseOperation1Output, error) { req, out := c.InputService5TestCaseOperation1Request(input) err := req.Send() @@ -896,6 +968,15 @@ func (c *InputService6ProtocolTest) InputService6TestCaseOperation1Request(input return } +// InputService6TestCaseOperation1 API operation for . +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for 's +// API operation, InputService6TestCaseOperation1 for more information, and other errors +// that the API operation could return. func (c *InputService6ProtocolTest) InputService6TestCaseOperation1(input *InputService6TestShapeInputService6TestCaseOperation1Input) (*InputService6TestShapeInputService6TestCaseOperation1Output, error) { req, out := c.InputService6TestCaseOperation1Request(input) err := req.Send() @@ -1009,6 +1090,15 @@ func (c *InputService7ProtocolTest) InputService7TestCaseOperation1Request(input return } +// InputService7TestCaseOperation1 API operation for . +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for 's +// API operation, InputService7TestCaseOperation1 for more information, and other errors +// that the API operation could return. func (c *InputService7ProtocolTest) InputService7TestCaseOperation1(input *InputService7TestShapeInputService7TestCaseOperation1Input) (*InputService7TestShapeInputService7TestCaseOperation1Output, error) { req, out := c.InputService7TestCaseOperation1Request(input) err := req.Send() @@ -1122,6 +1212,15 @@ func (c *InputService8ProtocolTest) InputService8TestCaseOperation1Request(input return } +// InputService8TestCaseOperation1 API operation for . +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for 's +// API operation, InputService8TestCaseOperation1 for more information, and other errors +// that the API operation could return. func (c *InputService8ProtocolTest) InputService8TestCaseOperation1(input *InputService8TestShapeInputService8TestCaseOperation1Input) (*InputService8TestShapeInputService8TestCaseOperation1Output, error) { req, out := c.InputService8TestCaseOperation1Request(input) err := req.Send() @@ -1235,6 +1334,15 @@ func (c *InputService9ProtocolTest) InputService9TestCaseOperation1Request(input return } +// InputService9TestCaseOperation1 API operation for . +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for 's +// API operation, InputService9TestCaseOperation1 for more information, and other errors +// that the API operation could return. func (c *InputService9ProtocolTest) InputService9TestCaseOperation1(input *InputService9TestShapeInputService9TestCaseOperation1Input) (*InputService9TestShapeInputService9TestCaseOperation1Output, error) { req, out := c.InputService9TestCaseOperation1Request(input) err := req.Send() @@ -1354,6 +1462,15 @@ func (c *InputService10ProtocolTest) InputService10TestCaseOperation1Request(inp return } +// InputService10TestCaseOperation1 API operation for . +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for 's +// API operation, InputService10TestCaseOperation1 for more information, and other errors +// that the API operation could return. func (c *InputService10ProtocolTest) InputService10TestCaseOperation1(input *InputService10TestShapeInputService10TestCaseOperation1Input) (*InputService10TestShapeInputService10TestCaseOperation1Output, error) { req, out := c.InputService10TestCaseOperation1Request(input) err := req.Send() @@ -1476,6 +1593,15 @@ func (c *InputService11ProtocolTest) InputService11TestCaseOperation1Request(inp return } +// InputService11TestCaseOperation1 API operation for . +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for 's +// API operation, InputService11TestCaseOperation1 for more information, and other errors +// that the API operation could return. func (c *InputService11ProtocolTest) InputService11TestCaseOperation1(input *InputService11TestShapeInputService11TestCaseOperation1Input) (*InputService11TestShapeInputService11TestCaseOperation1Output, error) { req, out := c.InputService11TestCaseOperation1Request(input) err := req.Send() @@ -1589,6 +1715,15 @@ func (c *InputService12ProtocolTest) InputService12TestCaseOperation1Request(inp return } +// InputService12TestCaseOperation1 API operation for . +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for 's +// API operation, InputService12TestCaseOperation1 for more information, and other errors +// that the API operation could return. func (c *InputService12ProtocolTest) InputService12TestCaseOperation1(input *InputService12TestShapeInputService12TestCaseOperation1Input) (*InputService12TestShapeInputService12TestCaseOperation1Output, error) { req, out := c.InputService12TestCaseOperation1Request(input) err := req.Send() @@ -1702,6 +1837,15 @@ func (c *InputService13ProtocolTest) InputService13TestCaseOperation1Request(inp return } +// InputService13TestCaseOperation1 API operation for . +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for 's +// API operation, InputService13TestCaseOperation1 for more information, and other errors +// that the API operation could return. func (c *InputService13ProtocolTest) InputService13TestCaseOperation1(input *InputService13TestShapeInputService13TestCaseOperation1Input) (*InputService13TestShapeInputService13TestCaseOperation1Output, error) { req, out := c.InputService13TestCaseOperation1Request(input) err := req.Send() @@ -1817,6 +1961,15 @@ func (c *InputService14ProtocolTest) InputService14TestCaseOperation1Request(inp return } +// InputService14TestCaseOperation1 API operation for . +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for 's +// API operation, InputService14TestCaseOperation1 for more information, and other errors +// that the API operation could return. func (c *InputService14ProtocolTest) InputService14TestCaseOperation1(input *InputService14TestShapeInputService14TestCaseOperation1Input) (*InputService14TestShapeInputService14TestCaseOperation1Output, error) { req, out := c.InputService14TestCaseOperation1Request(input) err := req.Send() @@ -1932,6 +2085,15 @@ func (c *InputService15ProtocolTest) InputService15TestCaseOperation1Request(inp return } +// InputService15TestCaseOperation1 API operation for . +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for 's +// API operation, InputService15TestCaseOperation1 for more information, and other errors +// that the API operation could return. func (c *InputService15ProtocolTest) InputService15TestCaseOperation1(input *InputService15TestShapeInputService15TestCaseOperation1Input) (*InputService15TestShapeInputService15TestCaseOperation1Output, error) { req, out := c.InputService15TestCaseOperation1Request(input) err := req.Send() @@ -2045,6 +2207,15 @@ func (c *InputService16ProtocolTest) InputService16TestCaseOperation1Request(inp return } +// InputService16TestCaseOperation1 API operation for . +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for 's +// API operation, InputService16TestCaseOperation1 for more information, and other errors +// that the API operation could return. func (c *InputService16ProtocolTest) InputService16TestCaseOperation1(input *InputService16TestShapeInputShape) (*InputService16TestShapeInputService16TestCaseOperation1Output, error) { req, out := c.InputService16TestCaseOperation1Request(input) err := req.Send() @@ -2094,6 +2265,15 @@ func (c *InputService16ProtocolTest) InputService16TestCaseOperation2Request(inp return } +// InputService16TestCaseOperation2 API operation for . +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for 's +// API operation, InputService16TestCaseOperation2 for more information, and other errors +// that the API operation could return. func (c *InputService16ProtocolTest) InputService16TestCaseOperation2(input *InputService16TestShapeInputShape) (*InputService16TestShapeInputService16TestCaseOperation2Output, error) { req, out := c.InputService16TestCaseOperation2Request(input) err := req.Send() @@ -2211,6 +2391,15 @@ func (c *InputService17ProtocolTest) InputService17TestCaseOperation1Request(inp return } +// InputService17TestCaseOperation1 API operation for . +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for 's +// API operation, InputService17TestCaseOperation1 for more information, and other errors +// that the API operation could return. func (c *InputService17ProtocolTest) InputService17TestCaseOperation1(input *InputService17TestShapeInputShape) (*InputService17TestShapeInputService17TestCaseOperation1Output, error) { req, out := c.InputService17TestCaseOperation1Request(input) err := req.Send() @@ -2260,6 +2449,15 @@ func (c *InputService17ProtocolTest) InputService17TestCaseOperation2Request(inp return } +// InputService17TestCaseOperation2 API operation for . +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for 's +// API operation, InputService17TestCaseOperation2 for more information, and other errors +// that the API operation could return. func (c *InputService17ProtocolTest) InputService17TestCaseOperation2(input *InputService17TestShapeInputShape) (*InputService17TestShapeInputService17TestCaseOperation2Output, error) { req, out := c.InputService17TestCaseOperation2Request(input) err := req.Send() @@ -2309,6 +2507,15 @@ func (c *InputService17ProtocolTest) InputService17TestCaseOperation3Request(inp return } +// InputService17TestCaseOperation3 API operation for . +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for 's +// API operation, InputService17TestCaseOperation3 for more information, and other errors +// that the API operation could return. func (c *InputService17ProtocolTest) InputService17TestCaseOperation3(input *InputService17TestShapeInputShape) (*InputService17TestShapeInputService17TestCaseOperation3Output, error) { req, out := c.InputService17TestCaseOperation3Request(input) err := req.Send() @@ -2358,6 +2565,15 @@ func (c *InputService17ProtocolTest) InputService17TestCaseOperation4Request(inp return } +// InputService17TestCaseOperation4 API operation for . +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for 's +// API operation, InputService17TestCaseOperation4 for more information, and other errors +// that the API operation could return. func (c *InputService17ProtocolTest) InputService17TestCaseOperation4(input *InputService17TestShapeInputShape) (*InputService17TestShapeInputService17TestCaseOperation4Output, error) { req, out := c.InputService17TestCaseOperation4Request(input) err := req.Send() @@ -2489,6 +2705,15 @@ func (c *InputService18ProtocolTest) InputService18TestCaseOperation1Request(inp return } +// InputService18TestCaseOperation1 API operation for . +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for 's +// API operation, InputService18TestCaseOperation1 for more information, and other errors +// that the API operation could return. func (c *InputService18ProtocolTest) InputService18TestCaseOperation1(input *InputService18TestShapeInputService18TestCaseOperation1Input) (*InputService18TestShapeInputService18TestCaseOperation1Output, error) { req, out := c.InputService18TestCaseOperation1Request(input) err := req.Send() @@ -2616,6 +2841,15 @@ func (c *InputService19ProtocolTest) InputService19TestCaseOperation1Request(inp return } +// InputService19TestCaseOperation1 API operation for . +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for 's +// API operation, InputService19TestCaseOperation1 for more information, and other errors +// that the API operation could return. func (c *InputService19ProtocolTest) InputService19TestCaseOperation1(input *InputService19TestShapeInputService19TestCaseOperation1Input) (*InputService19TestShapeInputService19TestCaseOperation1Output, error) { req, out := c.InputService19TestCaseOperation1Request(input) err := req.Send() @@ -2731,6 +2965,15 @@ func (c *InputService20ProtocolTest) InputService20TestCaseOperation1Request(inp return } +// InputService20TestCaseOperation1 API operation for . +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for 's +// API operation, InputService20TestCaseOperation1 for more information, and other errors +// that the API operation could return. func (c *InputService20ProtocolTest) InputService20TestCaseOperation1(input *InputService20TestShapeInputShape) (*InputService20TestShapeInputService20TestCaseOperation1Output, error) { req, out := c.InputService20TestCaseOperation1Request(input) err := req.Send() @@ -2780,6 +3023,15 @@ func (c *InputService20ProtocolTest) InputService20TestCaseOperation2Request(inp return } +// InputService20TestCaseOperation2 API operation for . +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for 's +// API operation, InputService20TestCaseOperation2 for more information, and other errors +// that the API operation could return. func (c *InputService20ProtocolTest) InputService20TestCaseOperation2(input *InputService20TestShapeInputShape) (*InputService20TestShapeInputService20TestCaseOperation2Output, error) { req, out := c.InputService20TestCaseOperation2Request(input) err := req.Send() @@ -2897,6 +3149,15 @@ func (c *InputService21ProtocolTest) InputService21TestCaseOperation1Request(inp return } +// InputService21TestCaseOperation1 API operation for . +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for 's +// API operation, InputService21TestCaseOperation1 for more information, and other errors +// that the API operation could return. func (c *InputService21ProtocolTest) InputService21TestCaseOperation1(input *InputService21TestShapeInputShape) (*InputService21TestShapeInputService21TestCaseOperation1Output, error) { req, out := c.InputService21TestCaseOperation1Request(input) err := req.Send() @@ -2946,6 +3207,15 @@ func (c *InputService21ProtocolTest) InputService21TestCaseOperation2Request(inp return } +// InputService21TestCaseOperation2 API operation for . +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for 's +// API operation, InputService21TestCaseOperation2 for more information, and other errors +// that the API operation could return. func (c *InputService21ProtocolTest) InputService21TestCaseOperation2(input *InputService21TestShapeInputShape) (*InputService21TestShapeInputService21TestCaseOperation2Output, error) { req, out := c.InputService21TestCaseOperation2Request(input) err := req.Send() @@ -2995,6 +3265,15 @@ func (c *InputService21ProtocolTest) InputService21TestCaseOperation3Request(inp return } +// InputService21TestCaseOperation3 API operation for . +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for 's +// API operation, InputService21TestCaseOperation3 for more information, and other errors +// that the API operation could return. func (c *InputService21ProtocolTest) InputService21TestCaseOperation3(input *InputService21TestShapeInputShape) (*InputService21TestShapeInputService21TestCaseOperation3Output, error) { req, out := c.InputService21TestCaseOperation3Request(input) err := req.Send() @@ -3044,6 +3323,15 @@ func (c *InputService21ProtocolTest) InputService21TestCaseOperation4Request(inp return } +// InputService21TestCaseOperation4 API operation for . +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for 's +// API operation, InputService21TestCaseOperation4 for more information, and other errors +// that the API operation could return. func (c *InputService21ProtocolTest) InputService21TestCaseOperation4(input *InputService21TestShapeInputShape) (*InputService21TestShapeInputService21TestCaseOperation4Output, error) { req, out := c.InputService21TestCaseOperation4Request(input) err := req.Send() @@ -3093,6 +3381,15 @@ func (c *InputService21ProtocolTest) InputService21TestCaseOperation5Request(inp return } +// InputService21TestCaseOperation5 API operation for . +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for 's +// API operation, InputService21TestCaseOperation5 for more information, and other errors +// that the API operation could return. func (c *InputService21ProtocolTest) InputService21TestCaseOperation5(input *InputService21TestShapeInputShape) (*InputService21TestShapeInputService21TestCaseOperation5Output, error) { req, out := c.InputService21TestCaseOperation5Request(input) err := req.Send() @@ -3142,6 +3439,15 @@ func (c *InputService21ProtocolTest) InputService21TestCaseOperation6Request(inp return } +// InputService21TestCaseOperation6 API operation for . +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for 's +// API operation, InputService21TestCaseOperation6 for more information, and other errors +// that the API operation could return. func (c *InputService21ProtocolTest) InputService21TestCaseOperation6(input *InputService21TestShapeInputShape) (*InputService21TestShapeInputService21TestCaseOperation6Output, error) { req, out := c.InputService21TestCaseOperation6Request(input) err := req.Send() @@ -3287,6 +3593,15 @@ func (c *InputService22ProtocolTest) InputService22TestCaseOperation1Request(inp return } +// InputService22TestCaseOperation1 API operation for . +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for 's +// API operation, InputService22TestCaseOperation1 for more information, and other errors +// that the API operation could return. func (c *InputService22ProtocolTest) InputService22TestCaseOperation1(input *InputService22TestShapeInputService22TestCaseOperation1Input) (*InputService22TestShapeInputService22TestCaseOperation1Output, error) { req, out := c.InputService22TestCaseOperation1Request(input) err := req.Send() @@ -3400,6 +3715,15 @@ func (c *InputService23ProtocolTest) InputService23TestCaseOperation1Request(inp return } +// InputService23TestCaseOperation1 API operation for . +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for 's +// API operation, InputService23TestCaseOperation1 for more information, and other errors +// that the API operation could return. func (c *InputService23ProtocolTest) InputService23TestCaseOperation1(input *InputService23TestShapeInputShape) (*InputService23TestShapeInputService23TestCaseOperation1Output, error) { req, out := c.InputService23TestCaseOperation1Request(input) err := req.Send() @@ -3449,6 +3773,15 @@ func (c *InputService23ProtocolTest) InputService23TestCaseOperation2Request(inp return } +// InputService23TestCaseOperation2 API operation for . +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for 's +// API operation, InputService23TestCaseOperation2 for more information, and other errors +// that the API operation could return. func (c *InputService23ProtocolTest) InputService23TestCaseOperation2(input *InputService23TestShapeInputShape) (*InputService23TestShapeInputService23TestCaseOperation2Output, error) { req, out := c.InputService23TestCaseOperation2Request(input) err := req.Send() diff --git a/private/protocol/restxml/unmarshal_test.go b/private/protocol/restxml/unmarshal_test.go index 700edb49ab8..1b11656bd27 100644 --- a/private/protocol/restxml/unmarshal_test.go +++ b/private/protocol/restxml/unmarshal_test.go @@ -137,6 +137,15 @@ func (c *OutputService1ProtocolTest) OutputService1TestCaseOperation1Request(inp return } +// OutputService1TestCaseOperation1 API operation for . +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for 's +// API operation, OutputService1TestCaseOperation1 for more information, and other errors +// that the API operation could return. func (c *OutputService1ProtocolTest) OutputService1TestCaseOperation1(input *OutputService1TestShapeOutputService1TestCaseOperation1Input) (*OutputService1TestShapeOutputShape, error) { req, out := c.OutputService1TestCaseOperation1Request(input) err := req.Send() @@ -183,6 +192,15 @@ func (c *OutputService1ProtocolTest) OutputService1TestCaseOperation2Request(inp return } +// OutputService1TestCaseOperation2 API operation for . +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for 's +// API operation, OutputService1TestCaseOperation2 for more information, and other errors +// that the API operation could return. func (c *OutputService1ProtocolTest) OutputService1TestCaseOperation2(input *OutputService1TestShapeOutputService1TestCaseOperation2Input) (*OutputService1TestShapeOutputShape, error) { req, out := c.OutputService1TestCaseOperation2Request(input) err := req.Send() @@ -317,6 +335,15 @@ func (c *OutputService2ProtocolTest) OutputService2TestCaseOperation1Request(inp return } +// OutputService2TestCaseOperation1 API operation for . +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for 's +// API operation, OutputService2TestCaseOperation1 for more information, and other errors +// that the API operation could return. func (c *OutputService2ProtocolTest) OutputService2TestCaseOperation1(input *OutputService2TestShapeOutputService2TestCaseOperation1Input) (*OutputService2TestShapeOutputService2TestCaseOperation1Output, error) { req, out := c.OutputService2TestCaseOperation1Request(input) err := req.Send() @@ -428,6 +455,15 @@ func (c *OutputService3ProtocolTest) OutputService3TestCaseOperation1Request(inp return } +// OutputService3TestCaseOperation1 API operation for . +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for 's +// API operation, OutputService3TestCaseOperation1 for more information, and other errors +// that the API operation could return. func (c *OutputService3ProtocolTest) OutputService3TestCaseOperation1(input *OutputService3TestShapeOutputService3TestCaseOperation1Input) (*OutputService3TestShapeOutputService3TestCaseOperation1Output, error) { req, out := c.OutputService3TestCaseOperation1Request(input) err := req.Send() @@ -538,6 +574,15 @@ func (c *OutputService4ProtocolTest) OutputService4TestCaseOperation1Request(inp return } +// OutputService4TestCaseOperation1 API operation for . +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for 's +// API operation, OutputService4TestCaseOperation1 for more information, and other errors +// that the API operation could return. func (c *OutputService4ProtocolTest) OutputService4TestCaseOperation1(input *OutputService4TestShapeOutputService4TestCaseOperation1Input) (*OutputService4TestShapeOutputService4TestCaseOperation1Output, error) { req, out := c.OutputService4TestCaseOperation1Request(input) err := req.Send() @@ -648,6 +693,15 @@ func (c *OutputService5ProtocolTest) OutputService5TestCaseOperation1Request(inp return } +// OutputService5TestCaseOperation1 API operation for . +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for 's +// API operation, OutputService5TestCaseOperation1 for more information, and other errors +// that the API operation could return. func (c *OutputService5ProtocolTest) OutputService5TestCaseOperation1(input *OutputService5TestShapeOutputService5TestCaseOperation1Input) (*OutputService5TestShapeOutputService5TestCaseOperation1Output, error) { req, out := c.OutputService5TestCaseOperation1Request(input) err := req.Send() @@ -758,6 +812,15 @@ func (c *OutputService6ProtocolTest) OutputService6TestCaseOperation1Request(inp return } +// OutputService6TestCaseOperation1 API operation for . +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for 's +// API operation, OutputService6TestCaseOperation1 for more information, and other errors +// that the API operation could return. func (c *OutputService6ProtocolTest) OutputService6TestCaseOperation1(input *OutputService6TestShapeOutputService6TestCaseOperation1Input) (*OutputService6TestShapeOutputService6TestCaseOperation1Output, error) { req, out := c.OutputService6TestCaseOperation1Request(input) err := req.Send() @@ -874,6 +937,15 @@ func (c *OutputService7ProtocolTest) OutputService7TestCaseOperation1Request(inp return } +// OutputService7TestCaseOperation1 API operation for . +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for 's +// API operation, OutputService7TestCaseOperation1 for more information, and other errors +// that the API operation could return. func (c *OutputService7ProtocolTest) OutputService7TestCaseOperation1(input *OutputService7TestShapeOutputService7TestCaseOperation1Input) (*OutputService7TestShapeOutputService7TestCaseOperation1Output, error) { req, out := c.OutputService7TestCaseOperation1Request(input) err := req.Send() @@ -984,6 +1056,15 @@ func (c *OutputService8ProtocolTest) OutputService8TestCaseOperation1Request(inp return } +// OutputService8TestCaseOperation1 API operation for . +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for 's +// API operation, OutputService8TestCaseOperation1 for more information, and other errors +// that the API operation could return. func (c *OutputService8ProtocolTest) OutputService8TestCaseOperation1(input *OutputService8TestShapeOutputService8TestCaseOperation1Input) (*OutputService8TestShapeOutputService8TestCaseOperation1Output, error) { req, out := c.OutputService8TestCaseOperation1Request(input) err := req.Send() @@ -1094,6 +1175,15 @@ func (c *OutputService9ProtocolTest) OutputService9TestCaseOperation1Request(inp return } +// OutputService9TestCaseOperation1 API operation for . +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for 's +// API operation, OutputService9TestCaseOperation1 for more information, and other errors +// that the API operation could return. func (c *OutputService9ProtocolTest) OutputService9TestCaseOperation1(input *OutputService9TestShapeOutputService9TestCaseOperation1Input) (*OutputService9TestShapeOutputService9TestCaseOperation1Output, error) { req, out := c.OutputService9TestCaseOperation1Request(input) err := req.Send() @@ -1212,6 +1302,15 @@ func (c *OutputService10ProtocolTest) OutputService10TestCaseOperation1Request(i return } +// OutputService10TestCaseOperation1 API operation for . +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for 's +// API operation, OutputService10TestCaseOperation1 for more information, and other errors +// that the API operation could return. func (c *OutputService10ProtocolTest) OutputService10TestCaseOperation1(input *OutputService10TestShapeOutputService10TestCaseOperation1Input) (*OutputService10TestShapeOutputService10TestCaseOperation1Output, error) { req, out := c.OutputService10TestCaseOperation1Request(input) err := req.Send() @@ -1322,6 +1421,15 @@ func (c *OutputService11ProtocolTest) OutputService11TestCaseOperation1Request(i return } +// OutputService11TestCaseOperation1 API operation for . +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for 's +// API operation, OutputService11TestCaseOperation1 for more information, and other errors +// that the API operation could return. func (c *OutputService11ProtocolTest) OutputService11TestCaseOperation1(input *OutputService11TestShapeOutputService11TestCaseOperation1Input) (*OutputService11TestShapeOutputService11TestCaseOperation1Output, error) { req, out := c.OutputService11TestCaseOperation1Request(input) err := req.Send() @@ -1448,6 +1556,15 @@ func (c *OutputService12ProtocolTest) OutputService12TestCaseOperation1Request(i return } +// OutputService12TestCaseOperation1 API operation for . +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for 's +// API operation, OutputService12TestCaseOperation1 for more information, and other errors +// that the API operation could return. func (c *OutputService12ProtocolTest) OutputService12TestCaseOperation1(input *OutputService12TestShapeOutputService12TestCaseOperation1Input) (*OutputService12TestShapeOutputService12TestCaseOperation1Output, error) { req, out := c.OutputService12TestCaseOperation1Request(input) err := req.Send() diff --git a/service/acm/api.go b/service/acm/api.go index 7b5aa1e0f79..da15b4f1a7c 100644 --- a/service/acm/api.go +++ b/service/acm/api.go @@ -56,6 +56,8 @@ func (c *ACM) AddTagsToCertificateRequest(input *AddTagsToCertificateInput) (req return } +// AddTagsToCertificate API operation for AWS Certificate Manager. +// // Adds one or more tags to an ACM Certificate. Tags are labels that you can // use to identify and organize your AWS resources. Each tag consists of a key // and an optional value. You specify the certificate on input by its Amazon @@ -73,6 +75,21 @@ func (c *ACM) AddTagsToCertificateRequest(input *AddTagsToCertificateInput) (req // To remove one or more tags, use the RemoveTagsFromCertificate action. To // view all of the tags that have been applied to the certificate, use the ListTagsForCertificate // action. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Certificate Manager's +// API operation, AddTagsToCertificate for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ResourceNotFoundException +// InvalidArnException +// InvalidTagException +// TooManyTagsException func (c *ACM) AddTagsToCertificate(input *AddTagsToCertificateInput) (*AddTagsToCertificateOutput, error) { req, out := c.AddTagsToCertificateRequest(input) err := req.Send() @@ -122,6 +139,8 @@ func (c *ACM) DeleteCertificateRequest(input *DeleteCertificateInput) (req *requ return } +// DeleteCertificate API operation for AWS Certificate Manager. +// // Deletes an ACM Certificate and its associated private key. If this action // succeeds, the certificate no longer appears in the list of ACM Certificates // that can be displayed by calling the ListCertificates action or be retrieved @@ -131,6 +150,20 @@ func (c *ACM) DeleteCertificateRequest(input *DeleteCertificateInput) (req *requ // You cannot delete an ACM Certificate that is being used by another AWS // service. To delete a certificate that is in use, the certificate association // must first be removed. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Certificate Manager's +// API operation, DeleteCertificate for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ResourceNotFoundException +// ResourceInUseException +// InvalidArnException func (c *ACM) DeleteCertificate(input *DeleteCertificateInput) (*DeleteCertificateOutput, error) { req, out := c.DeleteCertificateRequest(input) err := req.Send() @@ -178,11 +211,26 @@ func (c *ACM) DescribeCertificateRequest(input *DescribeCertificateInput) (req * return } +// 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). +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Certificate Manager's +// API operation, DescribeCertificate for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ResourceNotFoundException +// InvalidArnException func (c *ACM) DescribeCertificate(input *DescribeCertificateInput) (*DescribeCertificateOutput, error) { req, out := c.DescribeCertificateRequest(input) err := req.Send() @@ -230,6 +278,8 @@ func (c *ACM) GetCertificateRequest(input *GetCertificateInput) (req *request.Re return } +// GetCertificate API operation for AWS Certificate Manager. +// // Retrieves an ACM Certificate and certificate chain for the certificate specified // by an ARN. The chain is an ordered list of certificates that contains the // root certificate, intermediate certificates of subordinate CAs, and the ACM @@ -239,6 +289,20 @@ func (c *ACM) GetCertificateRequest(input *GetCertificateInput) (req *request.Re // // Currently, ACM Certificates can be used only with Elastic Load Balancing // and Amazon CloudFront. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Certificate Manager's +// API operation, GetCertificate for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ResourceNotFoundException +// RequestInProgressException +// InvalidArnException func (c *ACM) GetCertificate(input *GetCertificateInput) (*GetCertificateOutput, error) { req, out := c.GetCertificateRequest(input) err := req.Send() @@ -292,9 +356,19 @@ func (c *ACM) ListCertificatesRequest(input *ListCertificatesInput) (req *reques return } +// ListCertificates API operation for AWS Certificate Manager. +// // Retrieves a list of ACM Certificates and the domain name for each. You can // optionally filter the list to return only the certificates that match the // specified status. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Certificate Manager's +// API operation, ListCertificates for more information, and other errors +// that the API operation could return. func (c *ACM) ListCertificates(input *ListCertificatesInput) (*ListCertificatesOutput, error) { req, out := c.ListCertificatesRequest(input) err := req.Send() @@ -367,10 +441,25 @@ func (c *ACM) ListTagsForCertificateRequest(input *ListTagsForCertificateInput) return } +// 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. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Certificate Manager's +// API operation, ListTagsForCertificate for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ResourceNotFoundException +// InvalidArnException func (c *ACM) ListTagsForCertificate(input *ListTagsForCertificateInput) (*ListTagsForCertificateOutput, error) { req, out := c.ListTagsForCertificateRequest(input) err := req.Send() @@ -420,6 +509,8 @@ func (c *ACM) RemoveTagsFromCertificateRequest(input *RemoveTagsFromCertificateI return } +// RemoveTagsFromCertificate API operation for AWS Certificate Manager. +// // Remove one or more tags from an ACM Certificate. A tag consists of a key-value // pair. If you do not specify the value portion of the tag when calling this // function, the tag will be removed regardless of value. If you specify a value, @@ -428,6 +519,20 @@ func (c *ACM) RemoveTagsFromCertificateRequest(input *RemoveTagsFromCertificateI // To add tags to a certificate, use the AddTagsToCertificate action. To view // all of the tags that have been applied to a specific ACM Certificate, use // the ListTagsForCertificate action. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Certificate Manager's +// API operation, RemoveTagsFromCertificate for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ResourceNotFoundException +// InvalidArnException +// InvalidTagException func (c *ACM) RemoveTagsFromCertificate(input *RemoveTagsFromCertificateInput) (*RemoveTagsFromCertificateOutput, error) { req, out := c.RemoveTagsFromCertificateRequest(input) err := req.Send() @@ -475,6 +580,8 @@ func (c *ACM) RequestCertificateRequest(input *RequestCertificateInput) (req *re return } +// RequestCertificate API operation for AWS Certificate Manager. +// // Requests an ACM Certificate for use with other AWS services. To request an // ACM Certificate, you must specify the fully qualified domain name (FQDN) // for your site. You can also specify additional FQDNs if users can reach your @@ -482,6 +589,19 @@ func (c *ACM) RequestCertificateRequest(input *RequestCertificateInput) (req *re // to the domain owner to request approval to issue the certificate. After receiving // approval from the domain owner, the ACM Certificate is issued. For more information, // see the AWS Certificate Manager User Guide (http://docs.aws.amazon.com/acm/latest/userguide/overview.html). +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Certificate Manager's +// API operation, RequestCertificate for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// LimitExceededException +// InvalidDomainValidationOptionsException func (c *ACM) RequestCertificate(input *RequestCertificateInput) (*RequestCertificateOutput, error) { req, out := c.RequestCertificateRequest(input) err := req.Send() @@ -531,6 +651,8 @@ func (c *ACM) ResendValidationEmailRequest(input *ResendValidationEmailInput) (r return } +// ResendValidationEmail API operation for AWS Certificate Manager. +// // Resends the email that requests domain ownership validation. The domain owner // or an authorized representative must approve the ACM Certificate before it // can be issued. The certificate can be approved by clicking a link in the @@ -540,6 +662,21 @@ func (c *ACM) ResendValidationEmailRequest(input *ResendValidationEmailInput) (r // the mail be resent within 72 hours of requesting the ACM Certificate. If // more than 72 hours have elapsed since your original request or since your // last attempt to resend validation mail, you must request a new certificate. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Certificate Manager's +// API operation, ResendValidationEmail for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ResourceNotFoundException +// InvalidStateException +// InvalidArnException +// InvalidDomainValidationOptionsException func (c *ACM) ResendValidationEmail(input *ResendValidationEmailInput) (*ResendValidationEmailOutput, error) { req, out := c.ResendValidationEmailRequest(input) err := req.Send() diff --git a/service/apigateway/api.go b/service/apigateway/api.go index ab6c546a79e..766f184d9c1 100644 --- a/service/apigateway/api.go +++ b/service/apigateway/api.go @@ -53,9 +53,28 @@ func (c *APIGateway) CreateApiKeyRequest(input *CreateApiKeyInput) (req *request return } +// CreateApiKey API operation for Amazon API Gateway. +// // Create an ApiKey resource. // // AWS CLI (http://docs.aws.amazon.com/cli/latest/reference/apigateway/create-api-key.html) +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon API Gateway's +// API operation, CreateApiKey for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// UnauthorizedException +// NotFoundException +// TooManyRequestsException +// LimitExceededException +// BadRequestException +// ConflictException func (c *APIGateway) CreateApiKey(input *CreateApiKeyInput) (*ApiKey, error) { req, out := c.CreateApiKeyRequest(input) err := req.Send() @@ -103,9 +122,27 @@ func (c *APIGateway) CreateAuthorizerRequest(input *CreateAuthorizerInput) (req return } +// CreateAuthorizer API operation for Amazon API Gateway. +// // Adds a new Authorizer resource to an existing RestApi resource. // // AWS CLI (http://docs.aws.amazon.com/cli/latest/reference/apigateway/create-authorizer.html) +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon API Gateway's +// API operation, CreateAuthorizer for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// BadRequestException +// UnauthorizedException +// NotFoundException +// LimitExceededException +// TooManyRequestsException func (c *APIGateway) CreateAuthorizer(input *CreateAuthorizerInput) (*Authorizer, error) { req, out := c.CreateAuthorizerRequest(input) err := req.Send() @@ -153,7 +190,25 @@ func (c *APIGateway) CreateBasePathMappingRequest(input *CreateBasePathMappingIn return } +// CreateBasePathMapping API operation for Amazon API Gateway. +// // Creates a new BasePathMapping resource. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon API Gateway's +// API operation, CreateBasePathMapping for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// UnauthorizedException +// ConflictException +// BadRequestException +// NotFoundException +// TooManyRequestsException func (c *APIGateway) CreateBasePathMapping(input *CreateBasePathMappingInput) (*BasePathMapping, error) { req, out := c.CreateBasePathMappingRequest(input) err := req.Send() @@ -201,8 +256,28 @@ func (c *APIGateway) CreateDeploymentRequest(input *CreateDeploymentInput) (req return } +// CreateDeployment API operation for Amazon API Gateway. +// // Creates a Deployment resource, which makes a specified RestApi callable over // the internet. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon API Gateway's +// API operation, CreateDeployment for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// UnauthorizedException +// BadRequestException +// NotFoundException +// ConflictException +// LimitExceededException +// TooManyRequestsException +// ServiceUnavailableException func (c *APIGateway) CreateDeployment(input *CreateDeploymentInput) (*Deployment, error) { req, out := c.CreateDeploymentRequest(input) err := req.Send() @@ -250,7 +325,24 @@ func (c *APIGateway) CreateDomainNameRequest(input *CreateDomainNameInput) (req return } +// CreateDomainName API operation for Amazon API Gateway. +// // Creates a new domain name. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon API Gateway's +// API operation, CreateDomainName for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// UnauthorizedException +// BadRequestException +// ConflictException +// TooManyRequestsException func (c *APIGateway) CreateDomainName(input *CreateDomainNameInput) (*DomainName, error) { req, out := c.CreateDomainNameRequest(input) err := req.Send() @@ -298,7 +390,26 @@ func (c *APIGateway) CreateModelRequest(input *CreateModelInput) (req *request.R return } +// CreateModel API operation for Amazon API Gateway. +// // Adds a new Model resource to an existing RestApi resource. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon API Gateway's +// API operation, CreateModel for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// BadRequestException +// UnauthorizedException +// NotFoundException +// ConflictException +// LimitExceededException +// TooManyRequestsException func (c *APIGateway) CreateModel(input *CreateModelInput) (*Model, error) { req, out := c.CreateModelRequest(input) err := req.Send() @@ -346,7 +457,26 @@ func (c *APIGateway) CreateResourceRequest(input *CreateResourceInput) (req *req return } +// CreateResource API operation for Amazon API Gateway. +// // Creates a Resource resource. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon API Gateway's +// API operation, CreateResource for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// UnauthorizedException +// NotFoundException +// ConflictException +// LimitExceededException +// BadRequestException +// TooManyRequestsException func (c *APIGateway) CreateResource(input *CreateResourceInput) (*Resource, error) { req, out := c.CreateResourceRequest(input) err := req.Send() @@ -394,7 +524,24 @@ func (c *APIGateway) CreateRestApiRequest(input *CreateRestApiInput) (req *reque return } +// CreateRestApi API operation for Amazon API Gateway. +// // Creates a new RestApi resource. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon API Gateway's +// API operation, CreateRestApi for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// UnauthorizedException +// LimitExceededException +// BadRequestException +// TooManyRequestsException func (c *APIGateway) CreateRestApi(input *CreateRestApiInput) (*RestApi, error) { req, out := c.CreateRestApiRequest(input) err := req.Send() @@ -442,8 +589,27 @@ func (c *APIGateway) CreateStageRequest(input *CreateStageInput) (req *request.R return } +// CreateStage API operation for Amazon API Gateway. +// // Creates a new Stage resource that references a pre-existing Deployment for // the API. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon API Gateway's +// API operation, CreateStage for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// UnauthorizedException +// BadRequestException +// NotFoundException +// ConflictException +// LimitExceededException +// TooManyRequestsException func (c *APIGateway) CreateStage(input *CreateStageInput) (*Stage, error) { req, out := c.CreateStageRequest(input) err := req.Send() @@ -491,8 +657,26 @@ func (c *APIGateway) CreateUsagePlanRequest(input *CreateUsagePlanInput) (req *r return } +// CreateUsagePlan API operation for Amazon API Gateway. +// // Creates a usage plan with the throttle and quota limits, as well as the associated // API stages, specified in the payload. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon API Gateway's +// API operation, CreateUsagePlan for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// BadRequestException +// UnauthorizedException +// TooManyRequestsException +// LimitExceededException +// ConflictException func (c *APIGateway) CreateUsagePlan(input *CreateUsagePlanInput) (*UsagePlan, error) { req, out := c.CreateUsagePlanRequest(input) err := req.Send() @@ -540,7 +724,25 @@ func (c *APIGateway) CreateUsagePlanKeyRequest(input *CreateUsagePlanKeyInput) ( return } +// CreateUsagePlanKey API operation for Amazon API Gateway. +// // Creates a usage plan key for adding an existing API key to a usage plan. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon API Gateway's +// API operation, CreateUsagePlanKey for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// BadRequestException +// ConflictException +// UnauthorizedException +// NotFoundException +// TooManyRequestsException func (c *APIGateway) CreateUsagePlanKey(input *CreateUsagePlanKeyInput) (*UsagePlanKey, error) { req, out := c.CreateUsagePlanKeyRequest(input) err := req.Send() @@ -590,7 +792,23 @@ func (c *APIGateway) DeleteApiKeyRequest(input *DeleteApiKeyInput) (req *request return } +// DeleteApiKey API operation for Amazon API Gateway. +// // Deletes the ApiKey resource. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon API Gateway's +// API operation, DeleteApiKey for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// UnauthorizedException +// NotFoundException +// TooManyRequestsException func (c *APIGateway) DeleteApiKey(input *DeleteApiKeyInput) (*DeleteApiKeyOutput, error) { req, out := c.DeleteApiKeyRequest(input) err := req.Send() @@ -640,9 +858,27 @@ func (c *APIGateway) DeleteAuthorizerRequest(input *DeleteAuthorizerInput) (req return } +// DeleteAuthorizer API operation for Amazon API Gateway. +// // Deletes an existing Authorizer resource. // // AWS CLI (http://docs.aws.amazon.com/cli/latest/reference/apigateway/delete-authorizer.html) +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon API Gateway's +// API operation, DeleteAuthorizer for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// UnauthorizedException +// NotFoundException +// TooManyRequestsException +// BadRequestException +// ConflictException func (c *APIGateway) DeleteAuthorizer(input *DeleteAuthorizerInput) (*DeleteAuthorizerOutput, error) { req, out := c.DeleteAuthorizerRequest(input) err := req.Send() @@ -692,7 +928,23 @@ func (c *APIGateway) DeleteBasePathMappingRequest(input *DeleteBasePathMappingIn return } +// DeleteBasePathMapping API operation for Amazon API Gateway. +// // Deletes the BasePathMapping resource. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon API Gateway's +// API operation, DeleteBasePathMapping for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// UnauthorizedException +// NotFoundException +// TooManyRequestsException func (c *APIGateway) DeleteBasePathMapping(input *DeleteBasePathMappingInput) (*DeleteBasePathMappingOutput, error) { req, out := c.DeleteBasePathMappingRequest(input) err := req.Send() @@ -742,7 +994,24 @@ func (c *APIGateway) DeleteClientCertificateRequest(input *DeleteClientCertifica return } +// DeleteClientCertificate API operation for Amazon API Gateway. +// // Deletes the ClientCertificate resource. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon API Gateway's +// API operation, DeleteClientCertificate for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// UnauthorizedException +// TooManyRequestsException +// BadRequestException +// NotFoundException func (c *APIGateway) DeleteClientCertificate(input *DeleteClientCertificateInput) (*DeleteClientCertificateOutput, error) { req, out := c.DeleteClientCertificateRequest(input) err := req.Send() @@ -792,8 +1061,25 @@ func (c *APIGateway) DeleteDeploymentRequest(input *DeleteDeploymentInput) (req return } +// DeleteDeployment API operation for Amazon API Gateway. +// // Deletes a Deployment resource. Deleting a deployment will only succeed if // there are no Stage resources associated with it. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon API Gateway's +// API operation, DeleteDeployment for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// UnauthorizedException +// NotFoundException +// BadRequestException +// TooManyRequestsException func (c *APIGateway) DeleteDeployment(input *DeleteDeploymentInput) (*DeleteDeploymentOutput, error) { req, out := c.DeleteDeploymentRequest(input) err := req.Send() @@ -843,7 +1129,23 @@ func (c *APIGateway) DeleteDomainNameRequest(input *DeleteDomainNameInput) (req return } +// DeleteDomainName API operation for Amazon API Gateway. +// // Deletes the DomainName resource. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon API Gateway's +// API operation, DeleteDomainName for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// UnauthorizedException +// NotFoundException +// TooManyRequestsException func (c *APIGateway) DeleteDomainName(input *DeleteDomainNameInput) (*DeleteDomainNameOutput, error) { req, out := c.DeleteDomainNameRequest(input) err := req.Send() @@ -893,7 +1195,24 @@ func (c *APIGateway) DeleteIntegrationRequest(input *DeleteIntegrationInput) (re return } +// DeleteIntegration API operation for Amazon API Gateway. +// // Represents a delete integration. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon API Gateway's +// API operation, DeleteIntegration for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// UnauthorizedException +// NotFoundException +// TooManyRequestsException +// ConflictException func (c *APIGateway) DeleteIntegration(input *DeleteIntegrationInput) (*DeleteIntegrationOutput, error) { req, out := c.DeleteIntegrationRequest(input) err := req.Send() @@ -943,7 +1262,25 @@ func (c *APIGateway) DeleteIntegrationResponseRequest(input *DeleteIntegrationRe return } +// DeleteIntegrationResponse API operation for Amazon API Gateway. +// // Represents a delete integration response. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon API Gateway's +// API operation, DeleteIntegrationResponse for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// UnauthorizedException +// NotFoundException +// TooManyRequestsException +// BadRequestException +// ConflictException func (c *APIGateway) DeleteIntegrationResponse(input *DeleteIntegrationResponseInput) (*DeleteIntegrationResponseOutput, error) { req, out := c.DeleteIntegrationResponseRequest(input) err := req.Send() @@ -993,7 +1330,24 @@ func (c *APIGateway) DeleteMethodRequest(input *DeleteMethodInput) (req *request return } +// DeleteMethod API operation for Amazon API Gateway. +// // Deletes an existing Method resource. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon API Gateway's +// API operation, DeleteMethod for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// UnauthorizedException +// NotFoundException +// TooManyRequestsException +// ConflictException func (c *APIGateway) DeleteMethod(input *DeleteMethodInput) (*DeleteMethodOutput, error) { req, out := c.DeleteMethodRequest(input) err := req.Send() @@ -1043,7 +1397,25 @@ func (c *APIGateway) DeleteMethodResponseRequest(input *DeleteMethodResponseInpu return } +// DeleteMethodResponse API operation for Amazon API Gateway. +// // Deletes an existing MethodResponse resource. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon API Gateway's +// API operation, DeleteMethodResponse for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// UnauthorizedException +// NotFoundException +// TooManyRequestsException +// BadRequestException +// ConflictException func (c *APIGateway) DeleteMethodResponse(input *DeleteMethodResponseInput) (*DeleteMethodResponseOutput, error) { req, out := c.DeleteMethodResponseRequest(input) err := req.Send() @@ -1093,7 +1465,25 @@ func (c *APIGateway) DeleteModelRequest(input *DeleteModelInput) (req *request.R return } +// DeleteModel API operation for Amazon API Gateway. +// // Deletes a model. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon API Gateway's +// API operation, DeleteModel for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// UnauthorizedException +// NotFoundException +// TooManyRequestsException +// BadRequestException +// ConflictException func (c *APIGateway) DeleteModel(input *DeleteModelInput) (*DeleteModelOutput, error) { req, out := c.DeleteModelRequest(input) err := req.Send() @@ -1143,7 +1533,25 @@ func (c *APIGateway) DeleteResourceRequest(input *DeleteResourceInput) (req *req return } +// DeleteResource API operation for Amazon API Gateway. +// // Deletes a Resource resource. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon API Gateway's +// API operation, DeleteResource for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// UnauthorizedException +// NotFoundException +// BadRequestException +// ConflictException +// TooManyRequestsException func (c *APIGateway) DeleteResource(input *DeleteResourceInput) (*DeleteResourceOutput, error) { req, out := c.DeleteResourceRequest(input) err := req.Send() @@ -1193,7 +1601,24 @@ func (c *APIGateway) DeleteRestApiRequest(input *DeleteRestApiInput) (req *reque return } +// DeleteRestApi API operation for Amazon API Gateway. +// // Deletes the specified API. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon API Gateway's +// API operation, DeleteRestApi for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// UnauthorizedException +// NotFoundException +// TooManyRequestsException +// BadRequestException func (c *APIGateway) DeleteRestApi(input *DeleteRestApiInput) (*DeleteRestApiOutput, error) { req, out := c.DeleteRestApiRequest(input) err := req.Send() @@ -1243,7 +1668,24 @@ func (c *APIGateway) DeleteStageRequest(input *DeleteStageInput) (req *request.R return } +// DeleteStage API operation for Amazon API Gateway. +// // Deletes a Stage resource. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon API Gateway's +// API operation, DeleteStage for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// UnauthorizedException +// NotFoundException +// TooManyRequestsException +// BadRequestException func (c *APIGateway) DeleteStage(input *DeleteStageInput) (*DeleteStageOutput, error) { req, out := c.DeleteStageRequest(input) err := req.Send() @@ -1293,7 +1735,24 @@ func (c *APIGateway) DeleteUsagePlanRequest(input *DeleteUsagePlanInput) (req *r return } +// DeleteUsagePlan API operation for Amazon API Gateway. +// // Deletes a usage plan of a given plan Id. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon API Gateway's +// API operation, DeleteUsagePlan for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// UnauthorizedException +// TooManyRequestsException +// BadRequestException +// NotFoundException func (c *APIGateway) DeleteUsagePlan(input *DeleteUsagePlanInput) (*DeleteUsagePlanOutput, error) { req, out := c.DeleteUsagePlanRequest(input) err := req.Send() @@ -1343,8 +1802,26 @@ func (c *APIGateway) DeleteUsagePlanKeyRequest(input *DeleteUsagePlanKeyInput) ( return } +// DeleteUsagePlanKey API operation for Amazon API Gateway. +// // Deletes a usage plan key and remove the underlying API key from the associated // usage plan. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon API Gateway's +// API operation, DeleteUsagePlanKey for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// BadRequestException +// ConflictException +// UnauthorizedException +// NotFoundException +// TooManyRequestsException func (c *APIGateway) DeleteUsagePlanKey(input *DeleteUsagePlanKeyInput) (*DeleteUsagePlanKeyOutput, error) { req, out := c.DeleteUsagePlanKeyRequest(input) err := req.Send() @@ -1394,7 +1871,24 @@ func (c *APIGateway) FlushStageAuthorizersCacheRequest(input *FlushStageAuthoriz return } +// FlushStageAuthorizersCache API operation for Amazon API Gateway. +// // Flushes all authorizer cache entries on a stage. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon API Gateway's +// API operation, FlushStageAuthorizersCache for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// UnauthorizedException +// NotFoundException +// BadRequestException +// TooManyRequestsException func (c *APIGateway) FlushStageAuthorizersCache(input *FlushStageAuthorizersCacheInput) (*FlushStageAuthorizersCacheOutput, error) { req, out := c.FlushStageAuthorizersCacheRequest(input) err := req.Send() @@ -1444,7 +1938,24 @@ func (c *APIGateway) FlushStageCacheRequest(input *FlushStageCacheInput) (req *r return } +// FlushStageCache API operation for Amazon API Gateway. +// // Flushes a stage's cache. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon API Gateway's +// API operation, FlushStageCache for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// UnauthorizedException +// NotFoundException +// BadRequestException +// TooManyRequestsException func (c *APIGateway) FlushStageCache(input *FlushStageCacheInput) (*FlushStageCacheOutput, error) { req, out := c.FlushStageCacheRequest(input) err := req.Send() @@ -1492,7 +2003,23 @@ func (c *APIGateway) GenerateClientCertificateRequest(input *GenerateClientCerti return } +// GenerateClientCertificate API operation for Amazon API Gateway. +// // Generates a ClientCertificate resource. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon API Gateway's +// API operation, GenerateClientCertificate for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// UnauthorizedException +// TooManyRequestsException +// LimitExceededException func (c *APIGateway) GenerateClientCertificate(input *GenerateClientCertificateInput) (*ClientCertificate, error) { req, out := c.GenerateClientCertificateRequest(input) err := req.Send() @@ -1540,7 +2067,23 @@ func (c *APIGateway) GetAccountRequest(input *GetAccountInput) (req *request.Req return } +// GetAccount API operation for Amazon API Gateway. +// // Gets information about the current Account resource. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon API Gateway's +// API operation, GetAccount for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// UnauthorizedException +// NotFoundException +// TooManyRequestsException func (c *APIGateway) GetAccount(input *GetAccountInput) (*Account, error) { req, out := c.GetAccountRequest(input) err := req.Send() @@ -1588,7 +2131,23 @@ func (c *APIGateway) GetApiKeyRequest(input *GetApiKeyInput) (req *request.Reque return } +// GetApiKey API operation for Amazon API Gateway. +// // Gets information about the current ApiKey resource. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon API Gateway's +// API operation, GetApiKey for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// UnauthorizedException +// NotFoundException +// TooManyRequestsException func (c *APIGateway) GetApiKey(input *GetApiKeyInput) (*ApiKey, error) { req, out := c.GetApiKeyRequest(input) err := req.Send() @@ -1642,7 +2201,23 @@ func (c *APIGateway) GetApiKeysRequest(input *GetApiKeysInput) (req *request.Req return } +// GetApiKeys API operation for Amazon API Gateway. +// // Gets information about the current ApiKeys resource. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon API Gateway's +// API operation, GetApiKeys for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// BadRequestException +// UnauthorizedException +// TooManyRequestsException func (c *APIGateway) GetApiKeys(input *GetApiKeysInput) (*GetApiKeysOutput, error) { req, out := c.GetApiKeysRequest(input) err := req.Send() @@ -1715,9 +2290,25 @@ func (c *APIGateway) GetAuthorizerRequest(input *GetAuthorizerInput) (req *reque return } +// GetAuthorizer API operation for Amazon API Gateway. +// // Describe an existing Authorizer resource. // // AWS CLI (http://docs.aws.amazon.com/cli/latest/reference/apigateway/get-authorizer.html) +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon API Gateway's +// API operation, GetAuthorizer for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// UnauthorizedException +// NotFoundException +// TooManyRequestsException func (c *APIGateway) GetAuthorizer(input *GetAuthorizerInput) (*Authorizer, error) { req, out := c.GetAuthorizerRequest(input) err := req.Send() @@ -1765,9 +2356,26 @@ func (c *APIGateway) GetAuthorizersRequest(input *GetAuthorizersInput) (req *req return } +// GetAuthorizers API operation for Amazon API Gateway. +// // Describe an existing Authorizers resource. // // AWS CLI (http://docs.aws.amazon.com/cli/latest/reference/apigateway/get-authorizers.html) +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon API Gateway's +// API operation, GetAuthorizers for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// BadRequestException +// UnauthorizedException +// NotFoundException +// TooManyRequestsException func (c *APIGateway) GetAuthorizers(input *GetAuthorizersInput) (*GetAuthorizersOutput, error) { req, out := c.GetAuthorizersRequest(input) err := req.Send() @@ -1815,7 +2423,23 @@ func (c *APIGateway) GetBasePathMappingRequest(input *GetBasePathMappingInput) ( return } +// GetBasePathMapping API operation for Amazon API Gateway. +// // Describe a BasePathMapping resource. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon API Gateway's +// API operation, GetBasePathMapping for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// UnauthorizedException +// NotFoundException +// TooManyRequestsException func (c *APIGateway) GetBasePathMapping(input *GetBasePathMappingInput) (*BasePathMapping, error) { req, out := c.GetBasePathMappingRequest(input) err := req.Send() @@ -1869,7 +2493,23 @@ func (c *APIGateway) GetBasePathMappingsRequest(input *GetBasePathMappingsInput) return } +// GetBasePathMappings API operation for Amazon API Gateway. +// // Represents a collection of BasePathMapping resources. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon API Gateway's +// API operation, GetBasePathMappings for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// UnauthorizedException +// NotFoundException +// TooManyRequestsException func (c *APIGateway) GetBasePathMappings(input *GetBasePathMappingsInput) (*GetBasePathMappingsOutput, error) { req, out := c.GetBasePathMappingsRequest(input) err := req.Send() @@ -1942,7 +2582,23 @@ func (c *APIGateway) GetClientCertificateRequest(input *GetClientCertificateInpu return } +// GetClientCertificate API operation for Amazon API Gateway. +// // Gets information about the current ClientCertificate resource. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon API Gateway's +// API operation, GetClientCertificate for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// UnauthorizedException +// NotFoundException +// TooManyRequestsException func (c *APIGateway) GetClientCertificate(input *GetClientCertificateInput) (*ClientCertificate, error) { req, out := c.GetClientCertificateRequest(input) err := req.Send() @@ -1996,7 +2652,23 @@ func (c *APIGateway) GetClientCertificatesRequest(input *GetClientCertificatesIn return } +// GetClientCertificates API operation for Amazon API Gateway. +// // Gets a collection of ClientCertificate resources. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon API Gateway's +// API operation, GetClientCertificates for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// BadRequestException +// UnauthorizedException +// TooManyRequestsException func (c *APIGateway) GetClientCertificates(input *GetClientCertificatesInput) (*GetClientCertificatesOutput, error) { req, out := c.GetClientCertificatesRequest(input) err := req.Send() @@ -2069,7 +2741,24 @@ func (c *APIGateway) GetDeploymentRequest(input *GetDeploymentInput) (req *reque return } +// GetDeployment API operation for Amazon API Gateway. +// // Gets information about a Deployment resource. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon API Gateway's +// API operation, GetDeployment for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// UnauthorizedException +// NotFoundException +// TooManyRequestsException +// ServiceUnavailableException func (c *APIGateway) GetDeployment(input *GetDeploymentInput) (*Deployment, error) { req, out := c.GetDeploymentRequest(input) err := req.Send() @@ -2123,7 +2812,24 @@ func (c *APIGateway) GetDeploymentsRequest(input *GetDeploymentsInput) (req *req return } +// GetDeployments API operation for Amazon API Gateway. +// // Gets information about a Deployments collection. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon API Gateway's +// API operation, GetDeployments for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// BadRequestException +// UnauthorizedException +// TooManyRequestsException +// ServiceUnavailableException func (c *APIGateway) GetDeployments(input *GetDeploymentsInput) (*GetDeploymentsOutput, error) { req, out := c.GetDeploymentsRequest(input) err := req.Send() @@ -2196,8 +2902,25 @@ func (c *APIGateway) GetDomainNameRequest(input *GetDomainNameInput) (req *reque return } +// GetDomainName API operation for Amazon API Gateway. +// // Represents a domain name that is contained in a simpler, more intuitive URL // that can be called. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon API Gateway's +// API operation, GetDomainName for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// UnauthorizedException +// NotFoundException +// ServiceUnavailableException +// TooManyRequestsException func (c *APIGateway) GetDomainName(input *GetDomainNameInput) (*DomainName, error) { req, out := c.GetDomainNameRequest(input) err := req.Send() @@ -2251,7 +2974,23 @@ func (c *APIGateway) GetDomainNamesRequest(input *GetDomainNamesInput) (req *req return } +// GetDomainNames API operation for Amazon API Gateway. +// // Represents a collection of DomainName resources. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon API Gateway's +// API operation, GetDomainNames for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// BadRequestException +// UnauthorizedException +// TooManyRequestsException func (c *APIGateway) GetDomainNames(input *GetDomainNamesInput) (*GetDomainNamesOutput, error) { req, out := c.GetDomainNamesRequest(input) err := req.Send() @@ -2324,7 +3063,24 @@ func (c *APIGateway) GetExportRequest(input *GetExportInput) (req *request.Reque return } +// GetExport API operation for Amazon API Gateway. +// // Exports a deployed version of a RestApi in a specified format. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon API Gateway's +// API operation, GetExport for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// UnauthorizedException +// NotFoundException +// BadRequestException +// TooManyRequestsException func (c *APIGateway) GetExport(input *GetExportInput) (*GetExportOutput, error) { req, out := c.GetExportRequest(input) err := req.Send() @@ -2372,7 +3128,23 @@ func (c *APIGateway) GetIntegrationRequest(input *GetIntegrationInput) (req *req return } +// GetIntegration API operation for Amazon API Gateway. +// // Represents a get integration. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon API Gateway's +// API operation, GetIntegration for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// UnauthorizedException +// NotFoundException +// TooManyRequestsException func (c *APIGateway) GetIntegration(input *GetIntegrationInput) (*Integration, error) { req, out := c.GetIntegrationRequest(input) err := req.Send() @@ -2420,7 +3192,23 @@ func (c *APIGateway) GetIntegrationResponseRequest(input *GetIntegrationResponse return } +// GetIntegrationResponse API operation for Amazon API Gateway. +// // Represents a get integration response. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon API Gateway's +// API operation, GetIntegrationResponse for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// UnauthorizedException +// NotFoundException +// TooManyRequestsException func (c *APIGateway) GetIntegrationResponse(input *GetIntegrationResponseInput) (*IntegrationResponse, error) { req, out := c.GetIntegrationResponseRequest(input) err := req.Send() @@ -2468,7 +3256,23 @@ func (c *APIGateway) GetMethodRequest(input *GetMethodInput) (req *request.Reque return } +// GetMethod API operation for Amazon API Gateway. +// // Describe an existing Method resource. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon API Gateway's +// API operation, GetMethod for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// UnauthorizedException +// NotFoundException +// TooManyRequestsException func (c *APIGateway) GetMethod(input *GetMethodInput) (*Method, error) { req, out := c.GetMethodRequest(input) err := req.Send() @@ -2516,7 +3320,23 @@ func (c *APIGateway) GetMethodResponseRequest(input *GetMethodResponseInput) (re return } +// GetMethodResponse API operation for Amazon API Gateway. +// // Describes a MethodResponse resource. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon API Gateway's +// API operation, GetMethodResponse for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// UnauthorizedException +// NotFoundException +// TooManyRequestsException func (c *APIGateway) GetMethodResponse(input *GetMethodResponseInput) (*MethodResponse, error) { req, out := c.GetMethodResponseRequest(input) err := req.Send() @@ -2564,7 +3384,23 @@ func (c *APIGateway) GetModelRequest(input *GetModelInput) (req *request.Request return } +// GetModel API operation for Amazon API Gateway. +// // Describes an existing model defined for a RestApi resource. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon API Gateway's +// API operation, GetModel for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// UnauthorizedException +// NotFoundException +// TooManyRequestsException func (c *APIGateway) GetModel(input *GetModelInput) (*Model, error) { req, out := c.GetModelRequest(input) err := req.Send() @@ -2612,8 +3448,25 @@ func (c *APIGateway) GetModelTemplateRequest(input *GetModelTemplateInput) (req return } +// GetModelTemplate API operation for Amazon API Gateway. +// // Generates a sample mapping template that can be used to transform a payload // into the structure of a model. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon API Gateway's +// API operation, GetModelTemplate for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// UnauthorizedException +// NotFoundException +// BadRequestException +// TooManyRequestsException func (c *APIGateway) GetModelTemplate(input *GetModelTemplateInput) (*GetModelTemplateOutput, error) { req, out := c.GetModelTemplateRequest(input) err := req.Send() @@ -2667,7 +3520,24 @@ func (c *APIGateway) GetModelsRequest(input *GetModelsInput) (req *request.Reque return } +// GetModels API operation for Amazon API Gateway. +// // Describes existing Models defined for a RestApi resource. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon API Gateway's +// API operation, GetModels for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// BadRequestException +// UnauthorizedException +// NotFoundException +// TooManyRequestsException func (c *APIGateway) GetModels(input *GetModelsInput) (*GetModelsOutput, error) { req, out := c.GetModelsRequest(input) err := req.Send() @@ -2740,7 +3610,23 @@ func (c *APIGateway) GetResourceRequest(input *GetResourceInput) (req *request.R return } +// GetResource API operation for Amazon API Gateway. +// // Lists information about a resource. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon API Gateway's +// API operation, GetResource for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// UnauthorizedException +// NotFoundException +// TooManyRequestsException func (c *APIGateway) GetResource(input *GetResourceInput) (*Resource, error) { req, out := c.GetResourceRequest(input) err := req.Send() @@ -2794,7 +3680,24 @@ func (c *APIGateway) GetResourcesRequest(input *GetResourcesInput) (req *request return } +// GetResources API operation for Amazon API Gateway. +// // Lists information about a collection of Resource resources. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon API Gateway's +// API operation, GetResources for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// BadRequestException +// UnauthorizedException +// NotFoundException +// TooManyRequestsException func (c *APIGateway) GetResources(input *GetResourcesInput) (*GetResourcesOutput, error) { req, out := c.GetResourcesRequest(input) err := req.Send() @@ -2867,7 +3770,23 @@ func (c *APIGateway) GetRestApiRequest(input *GetRestApiInput) (req *request.Req return } +// GetRestApi API operation for Amazon API Gateway. +// // Lists the RestApi resource in the collection. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon API Gateway's +// API operation, GetRestApi for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// UnauthorizedException +// NotFoundException +// TooManyRequestsException func (c *APIGateway) GetRestApi(input *GetRestApiInput) (*RestApi, error) { req, out := c.GetRestApiRequest(input) err := req.Send() @@ -2921,7 +3840,23 @@ func (c *APIGateway) GetRestApisRequest(input *GetRestApisInput) (req *request.R return } +// GetRestApis API operation for Amazon API Gateway. +// // Lists the RestApis resources for your collection. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon API Gateway's +// API operation, GetRestApis for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// BadRequestException +// UnauthorizedException +// TooManyRequestsException func (c *APIGateway) GetRestApis(input *GetRestApisInput) (*GetRestApisOutput, error) { req, out := c.GetRestApisRequest(input) err := req.Send() @@ -2994,7 +3929,24 @@ func (c *APIGateway) GetSdkRequest(input *GetSdkInput) (req *request.Request, ou return } +// GetSdk API operation for Amazon API Gateway. +// // Generates a client SDK for a RestApi and Stage. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon API Gateway's +// API operation, GetSdk for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// UnauthorizedException +// NotFoundException +// BadRequestException +// TooManyRequestsException func (c *APIGateway) GetSdk(input *GetSdkInput) (*GetSdkOutput, error) { req, out := c.GetSdkRequest(input) err := req.Send() @@ -3042,7 +3994,23 @@ func (c *APIGateway) GetStageRequest(input *GetStageInput) (req *request.Request return } +// GetStage API operation for Amazon API Gateway. +// // Gets information about a Stage resource. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon API Gateway's +// API operation, GetStage for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// UnauthorizedException +// NotFoundException +// TooManyRequestsException func (c *APIGateway) GetStage(input *GetStageInput) (*Stage, error) { req, out := c.GetStageRequest(input) err := req.Send() @@ -3090,7 +4058,23 @@ func (c *APIGateway) GetStagesRequest(input *GetStagesInput) (req *request.Reque return } +// GetStages API operation for Amazon API Gateway. +// // Gets information about one or more Stage resources. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon API Gateway's +// API operation, GetStages for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// UnauthorizedException +// NotFoundException +// TooManyRequestsException func (c *APIGateway) GetStages(input *GetStagesInput) (*GetStagesOutput, error) { req, out := c.GetStagesRequest(input) err := req.Send() @@ -3144,7 +4128,24 @@ func (c *APIGateway) GetUsageRequest(input *GetUsageInput) (req *request.Request return } +// GetUsage API operation for Amazon API Gateway. +// // Gets the usage data of a usage plan in a specified time interval. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon API Gateway's +// API operation, GetUsage for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// BadRequestException +// UnauthorizedException +// NotFoundException +// TooManyRequestsException func (c *APIGateway) GetUsage(input *GetUsageInput) (*Usage, error) { req, out := c.GetUsageRequest(input) err := req.Send() @@ -3217,7 +4218,24 @@ func (c *APIGateway) GetUsagePlanRequest(input *GetUsagePlanInput) (req *request return } +// GetUsagePlan API operation for Amazon API Gateway. +// // Gets a usage plan of a given plan identifier. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon API Gateway's +// API operation, GetUsagePlan for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// BadRequestException +// UnauthorizedException +// NotFoundException +// TooManyRequestsException func (c *APIGateway) GetUsagePlan(input *GetUsagePlanInput) (*UsagePlan, error) { req, out := c.GetUsagePlanRequest(input) err := req.Send() @@ -3265,7 +4283,24 @@ func (c *APIGateway) GetUsagePlanKeyRequest(input *GetUsagePlanKeyInput) (req *r return } +// GetUsagePlanKey API operation for Amazon API Gateway. +// // Gets a usage plan key of a given key identifier. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon API Gateway's +// API operation, GetUsagePlanKey for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// BadRequestException +// UnauthorizedException +// NotFoundException +// TooManyRequestsException func (c *APIGateway) GetUsagePlanKey(input *GetUsagePlanKeyInput) (*UsagePlanKey, error) { req, out := c.GetUsagePlanKeyRequest(input) err := req.Send() @@ -3319,8 +4354,25 @@ func (c *APIGateway) GetUsagePlanKeysRequest(input *GetUsagePlanKeysInput) (req return } +// GetUsagePlanKeys API operation for Amazon API Gateway. +// // Gets all the usage plan keys representing the API keys added to a specified // usage plan. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon API Gateway's +// API operation, GetUsagePlanKeys for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// BadRequestException +// UnauthorizedException +// NotFoundException +// TooManyRequestsException func (c *APIGateway) GetUsagePlanKeys(input *GetUsagePlanKeysInput) (*GetUsagePlanKeysOutput, error) { req, out := c.GetUsagePlanKeysRequest(input) err := req.Send() @@ -3399,7 +4451,24 @@ func (c *APIGateway) GetUsagePlansRequest(input *GetUsagePlansInput) (req *reque return } +// GetUsagePlans API operation for Amazon API Gateway. +// // Gets all the usage plans of the caller's account. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon API Gateway's +// API operation, GetUsagePlans for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// BadRequestException +// UnauthorizedException +// TooManyRequestsException +// ConflictException func (c *APIGateway) GetUsagePlans(input *GetUsagePlansInput) (*GetUsagePlansOutput, error) { req, out := c.GetUsagePlansRequest(input) err := req.Send() @@ -3472,7 +4541,26 @@ func (c *APIGateway) ImportApiKeysRequest(input *ImportApiKeysInput) (req *reque return } +// ImportApiKeys API operation for Amazon API Gateway. +// // Import API keys from an external source, such as a CSV-formatted file. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon API Gateway's +// API operation, ImportApiKeys for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// UnauthorizedException +// NotFoundException +// TooManyRequestsException +// LimitExceededException +// BadRequestException +// ConflictException func (c *APIGateway) ImportApiKeys(input *ImportApiKeysInput) (*ImportApiKeysOutput, error) { req, out := c.ImportApiKeysRequest(input) err := req.Send() @@ -3520,8 +4608,26 @@ func (c *APIGateway) ImportRestApiRequest(input *ImportRestApiInput) (req *reque return } +// ImportRestApi API operation for Amazon API Gateway. +// // A feature of the Amazon API Gateway control service for creating a new API // from an external API definition file. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon API Gateway's +// API operation, ImportRestApi for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// UnauthorizedException +// LimitExceededException +// BadRequestException +// TooManyRequestsException +// ConflictException func (c *APIGateway) ImportRestApi(input *ImportRestApiInput) (*RestApi, error) { req, out := c.ImportRestApiRequest(input) err := req.Send() @@ -3569,7 +4675,25 @@ func (c *APIGateway) PutIntegrationRequest(input *PutIntegrationInput) (req *req return } +// PutIntegration API operation for Amazon API Gateway. +// // Represents a put integration. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon API Gateway's +// API operation, PutIntegration for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// UnauthorizedException +// BadRequestException +// ConflictException +// NotFoundException +// TooManyRequestsException func (c *APIGateway) PutIntegration(input *PutIntegrationInput) (*Integration, error) { req, out := c.PutIntegrationRequest(input) err := req.Send() @@ -3617,7 +4741,26 @@ func (c *APIGateway) PutIntegrationResponseRequest(input *PutIntegrationResponse return } +// PutIntegrationResponse API operation for Amazon API Gateway. +// // Represents a put integration. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon API Gateway's +// API operation, PutIntegrationResponse for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// UnauthorizedException +// NotFoundException +// LimitExceededException +// BadRequestException +// TooManyRequestsException +// ConflictException func (c *APIGateway) PutIntegrationResponse(input *PutIntegrationResponseInput) (*IntegrationResponse, error) { req, out := c.PutIntegrationResponseRequest(input) err := req.Send() @@ -3665,7 +4808,26 @@ func (c *APIGateway) PutMethodRequest(input *PutMethodInput) (req *request.Reque return } +// PutMethod API operation for Amazon API Gateway. +// // Add a method to an existing Resource resource. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon API Gateway's +// API operation, PutMethod for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// BadRequestException +// UnauthorizedException +// NotFoundException +// ConflictException +// LimitExceededException +// TooManyRequestsException func (c *APIGateway) PutMethod(input *PutMethodInput) (*Method, error) { req, out := c.PutMethodRequest(input) err := req.Send() @@ -3713,7 +4875,26 @@ func (c *APIGateway) PutMethodResponseRequest(input *PutMethodResponseInput) (re return } +// PutMethodResponse API operation for Amazon API Gateway. +// // Adds a MethodResponse to an existing Method resource. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon API Gateway's +// API operation, PutMethodResponse for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// UnauthorizedException +// NotFoundException +// ConflictException +// LimitExceededException +// BadRequestException +// TooManyRequestsException func (c *APIGateway) PutMethodResponse(input *PutMethodResponseInput) (*MethodResponse, error) { req, out := c.PutMethodResponseRequest(input) err := req.Send() @@ -3761,10 +4942,29 @@ func (c *APIGateway) PutRestApiRequest(input *PutRestApiInput) (req *request.Req return } +// PutRestApi API operation for Amazon API Gateway. +// // A feature of the Amazon API Gateway control service for updating an existing // API with an input of external API definitions. The update can take the form // of merging the supplied definition into the existing API or overwriting the // existing API. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon API Gateway's +// API operation, PutRestApi for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// UnauthorizedException +// LimitExceededException +// NotFoundException +// BadRequestException +// TooManyRequestsException +// ConflictException func (c *APIGateway) PutRestApi(input *PutRestApiInput) (*RestApi, error) { req, out := c.PutRestApiRequest(input) err := req.Send() @@ -3812,10 +5012,27 @@ func (c *APIGateway) TestInvokeAuthorizerRequest(input *TestInvokeAuthorizerInpu return } +// TestInvokeAuthorizer API operation for Amazon API Gateway. +// // Simulate the execution of an Authorizer in your RestApi with headers, parameters, // and an incoming request body. // // Enable custom authorizers (http://docs.aws.amazon.com/apigateway/latest/developerguide/use-custom-authorizer.html) +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon API Gateway's +// API operation, TestInvokeAuthorizer for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// BadRequestException +// UnauthorizedException +// NotFoundException +// TooManyRequestsException func (c *APIGateway) TestInvokeAuthorizer(input *TestInvokeAuthorizerInput) (*TestInvokeAuthorizerOutput, error) { req, out := c.TestInvokeAuthorizerRequest(input) err := req.Send() @@ -3863,8 +5080,25 @@ func (c *APIGateway) TestInvokeMethodRequest(input *TestInvokeMethodInput) (req return } +// TestInvokeMethod API operation for Amazon API Gateway. +// // Simulate the execution of a Method in your RestApi with headers, parameters, // and an incoming request body. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon API Gateway's +// API operation, TestInvokeMethod for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// BadRequestException +// UnauthorizedException +// NotFoundException +// TooManyRequestsException func (c *APIGateway) TestInvokeMethod(input *TestInvokeMethodInput) (*TestInvokeMethodOutput, error) { req, out := c.TestInvokeMethodRequest(input) err := req.Send() @@ -3912,7 +5146,24 @@ func (c *APIGateway) UpdateAccountRequest(input *UpdateAccountInput) (req *reque return } +// UpdateAccount API operation for Amazon API Gateway. +// // Changes information about the current Account resource. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon API Gateway's +// API operation, UpdateAccount for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// UnauthorizedException +// BadRequestException +// NotFoundException +// TooManyRequestsException func (c *APIGateway) UpdateAccount(input *UpdateAccountInput) (*Account, error) { req, out := c.UpdateAccountRequest(input) err := req.Send() @@ -3960,7 +5211,25 @@ func (c *APIGateway) UpdateApiKeyRequest(input *UpdateApiKeyInput) (req *request return } +// UpdateApiKey API operation for Amazon API Gateway. +// // Changes information about an ApiKey resource. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon API Gateway's +// API operation, UpdateApiKey for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// UnauthorizedException +// NotFoundException +// BadRequestException +// TooManyRequestsException +// ConflictException func (c *APIGateway) UpdateApiKey(input *UpdateApiKeyInput) (*ApiKey, error) { req, out := c.UpdateApiKeyRequest(input) err := req.Send() @@ -4008,9 +5277,26 @@ func (c *APIGateway) UpdateAuthorizerRequest(input *UpdateAuthorizerInput) (req return } +// UpdateAuthorizer API operation for Amazon API Gateway. +// // Updates an existing Authorizer resource. // // AWS CLI (http://docs.aws.amazon.com/cli/latest/reference/apigateway/update-authorizer.html) +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon API Gateway's +// API operation, UpdateAuthorizer for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// UnauthorizedException +// NotFoundException +// BadRequestException +// TooManyRequestsException func (c *APIGateway) UpdateAuthorizer(input *UpdateAuthorizerInput) (*Authorizer, error) { req, out := c.UpdateAuthorizerRequest(input) err := req.Send() @@ -4058,7 +5344,25 @@ func (c *APIGateway) UpdateBasePathMappingRequest(input *UpdateBasePathMappingIn return } +// UpdateBasePathMapping API operation for Amazon API Gateway. +// // Changes information about the BasePathMapping resource. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon API Gateway's +// API operation, UpdateBasePathMapping for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// UnauthorizedException +// NotFoundException +// ConflictException +// BadRequestException +// TooManyRequestsException func (c *APIGateway) UpdateBasePathMapping(input *UpdateBasePathMappingInput) (*BasePathMapping, error) { req, out := c.UpdateBasePathMappingRequest(input) err := req.Send() @@ -4106,7 +5410,24 @@ func (c *APIGateway) UpdateClientCertificateRequest(input *UpdateClientCertifica return } +// UpdateClientCertificate API operation for Amazon API Gateway. +// // Changes information about an ClientCertificate resource. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon API Gateway's +// API operation, UpdateClientCertificate for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// UnauthorizedException +// TooManyRequestsException +// BadRequestException +// NotFoundException func (c *APIGateway) UpdateClientCertificate(input *UpdateClientCertificateInput) (*ClientCertificate, error) { req, out := c.UpdateClientCertificateRequest(input) err := req.Send() @@ -4154,7 +5475,25 @@ func (c *APIGateway) UpdateDeploymentRequest(input *UpdateDeploymentInput) (req return } +// UpdateDeployment API operation for Amazon API Gateway. +// // Changes information about a Deployment resource. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon API Gateway's +// API operation, UpdateDeployment for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// UnauthorizedException +// NotFoundException +// BadRequestException +// TooManyRequestsException +// ServiceUnavailableException func (c *APIGateway) UpdateDeployment(input *UpdateDeploymentInput) (*Deployment, error) { req, out := c.UpdateDeploymentRequest(input) err := req.Send() @@ -4202,7 +5541,25 @@ func (c *APIGateway) UpdateDomainNameRequest(input *UpdateDomainNameInput) (req return } +// UpdateDomainName API operation for Amazon API Gateway. +// // Changes information about the DomainName resource. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon API Gateway's +// API operation, UpdateDomainName for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// UnauthorizedException +// NotFoundException +// BadRequestException +// ConflictException +// TooManyRequestsException func (c *APIGateway) UpdateDomainName(input *UpdateDomainNameInput) (*DomainName, error) { req, out := c.UpdateDomainNameRequest(input) err := req.Send() @@ -4250,7 +5607,25 @@ func (c *APIGateway) UpdateIntegrationRequest(input *UpdateIntegrationInput) (re return } +// UpdateIntegration API operation for Amazon API Gateway. +// // Represents an update integration. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon API Gateway's +// API operation, UpdateIntegration for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// UnauthorizedException +// NotFoundException +// BadRequestException +// TooManyRequestsException +// ConflictException func (c *APIGateway) UpdateIntegration(input *UpdateIntegrationInput) (*Integration, error) { req, out := c.UpdateIntegrationRequest(input) err := req.Send() @@ -4298,7 +5673,25 @@ func (c *APIGateway) UpdateIntegrationResponseRequest(input *UpdateIntegrationRe return } +// UpdateIntegrationResponse API operation for Amazon API Gateway. +// // Represents an update integration response. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon API Gateway's +// API operation, UpdateIntegrationResponse for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// UnauthorizedException +// NotFoundException +// ConflictException +// BadRequestException +// TooManyRequestsException func (c *APIGateway) UpdateIntegrationResponse(input *UpdateIntegrationResponseInput) (*IntegrationResponse, error) { req, out := c.UpdateIntegrationResponseRequest(input) err := req.Send() @@ -4346,7 +5739,25 @@ func (c *APIGateway) UpdateMethodRequest(input *UpdateMethodInput) (req *request return } +// UpdateMethod API operation for Amazon API Gateway. +// // Updates an existing Method resource. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon API Gateway's +// API operation, UpdateMethod for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// UnauthorizedException +// NotFoundException +// BadRequestException +// ConflictException +// TooManyRequestsException func (c *APIGateway) UpdateMethod(input *UpdateMethodInput) (*Method, error) { req, out := c.UpdateMethodRequest(input) err := req.Send() @@ -4394,7 +5805,26 @@ func (c *APIGateway) UpdateMethodResponseRequest(input *UpdateMethodResponseInpu return } +// UpdateMethodResponse API operation for Amazon API Gateway. +// // Updates an existing MethodResponse resource. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon API Gateway's +// API operation, UpdateMethodResponse for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// UnauthorizedException +// NotFoundException +// ConflictException +// LimitExceededException +// BadRequestException +// TooManyRequestsException func (c *APIGateway) UpdateMethodResponse(input *UpdateMethodResponseInput) (*MethodResponse, error) { req, out := c.UpdateMethodResponseRequest(input) err := req.Send() @@ -4442,7 +5872,25 @@ func (c *APIGateway) UpdateModelRequest(input *UpdateModelInput) (req *request.R return } +// UpdateModel API operation for Amazon API Gateway. +// // Changes information about a model. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon API Gateway's +// API operation, UpdateModel for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// UnauthorizedException +// NotFoundException +// BadRequestException +// ConflictException +// TooManyRequestsException func (c *APIGateway) UpdateModel(input *UpdateModelInput) (*Model, error) { req, out := c.UpdateModelRequest(input) err := req.Send() @@ -4490,7 +5938,25 @@ func (c *APIGateway) UpdateResourceRequest(input *UpdateResourceInput) (req *req return } +// UpdateResource API operation for Amazon API Gateway. +// // Changes information about a Resource resource. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon API Gateway's +// API operation, UpdateResource for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// UnauthorizedException +// NotFoundException +// ConflictException +// BadRequestException +// TooManyRequestsException func (c *APIGateway) UpdateResource(input *UpdateResourceInput) (*Resource, error) { req, out := c.UpdateResourceRequest(input) err := req.Send() @@ -4538,7 +6004,25 @@ func (c *APIGateway) UpdateRestApiRequest(input *UpdateRestApiInput) (req *reque return } +// UpdateRestApi API operation for Amazon API Gateway. +// // Changes information about the specified API. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon API Gateway's +// API operation, UpdateRestApi for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// UnauthorizedException +// NotFoundException +// ConflictException +// BadRequestException +// TooManyRequestsException func (c *APIGateway) UpdateRestApi(input *UpdateRestApiInput) (*RestApi, error) { req, out := c.UpdateRestApiRequest(input) err := req.Send() @@ -4586,7 +6070,25 @@ func (c *APIGateway) UpdateStageRequest(input *UpdateStageInput) (req *request.R return } +// UpdateStage API operation for Amazon API Gateway. +// // Changes information about a Stage resource. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon API Gateway's +// API operation, UpdateStage for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// UnauthorizedException +// NotFoundException +// ConflictException +// BadRequestException +// TooManyRequestsException func (c *APIGateway) UpdateStage(input *UpdateStageInput) (*Stage, error) { req, out := c.UpdateStageRequest(input) err := req.Send() @@ -4634,8 +6136,25 @@ func (c *APIGateway) UpdateUsageRequest(input *UpdateUsageInput) (req *request.R return } +// UpdateUsage API operation for Amazon API Gateway. +// // Grants a temporary extension to the reamining quota of a usage plan associated // with a specified API key. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon API Gateway's +// API operation, UpdateUsage for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// UnauthorizedException +// TooManyRequestsException +// BadRequestException +// NotFoundException func (c *APIGateway) UpdateUsage(input *UpdateUsageInput) (*Usage, error) { req, out := c.UpdateUsageRequest(input) err := req.Send() @@ -4683,7 +6202,25 @@ func (c *APIGateway) UpdateUsagePlanRequest(input *UpdateUsagePlanInput) (req *r return } +// UpdateUsagePlan API operation for Amazon API Gateway. +// // Updates a usage plan of a given plan Id. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon API Gateway's +// API operation, UpdateUsagePlan for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// UnauthorizedException +// TooManyRequestsException +// BadRequestException +// NotFoundException +// ConflictException func (c *APIGateway) UpdateUsagePlan(input *UpdateUsagePlanInput) (*UsagePlan, error) { req, out := c.UpdateUsagePlanRequest(input) err := req.Send() diff --git a/service/applicationautoscaling/api.go b/service/applicationautoscaling/api.go index abdfcaddbad..661a6c433dc 100644 --- a/service/applicationautoscaling/api.go +++ b/service/applicationautoscaling/api.go @@ -52,6 +52,8 @@ func (c *ApplicationAutoScaling) DeleteScalingPolicyRequest(input *DeleteScaling return } +// DeleteScalingPolicy API operation for Application Auto Scaling. +// // Deletes an Application Auto Scaling scaling policy that was previously created. // If you are no longer using a scaling policy, you can delete it with this // operation. @@ -61,6 +63,21 @@ func (c *ApplicationAutoScaling) DeleteScalingPolicyRequest(input *DeleteScaling // has an associated action. // // To create a new scaling policy or update an existing one, see PutScalingPolicy. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Application Auto Scaling's +// API operation, DeleteScalingPolicy for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ValidationException +// ObjectNotFoundException +// ConcurrentUpdateException +// InternalServiceException func (c *ApplicationAutoScaling) DeleteScalingPolicy(input *DeleteScalingPolicyInput) (*DeleteScalingPolicyOutput, error) { req, out := c.DeleteScalingPolicyRequest(input) err := req.Send() @@ -108,12 +125,29 @@ func (c *ApplicationAutoScaling) DeregisterScalableTargetRequest(input *Deregist return } +// DeregisterScalableTarget API operation for Application Auto Scaling. +// // Deregisters a scalable target that was previously registered. If you are // no longer using a scalable target, you can delete it with this operation. // When you deregister a scalable target, all of the scaling policies that are // associated with that scalable target are deleted. // // To create a new scalable target or update an existing one, see RegisterScalableTarget. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Application Auto Scaling's +// API operation, DeregisterScalableTarget for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ValidationException +// ObjectNotFoundException +// ConcurrentUpdateException +// InternalServiceException func (c *ApplicationAutoScaling) DeregisterScalableTarget(input *DeregisterScalableTargetInput) (*DeregisterScalableTargetOutput, error) { req, out := c.DeregisterScalableTargetRequest(input) err := req.Send() @@ -167,6 +201,8 @@ func (c *ApplicationAutoScaling) DescribeScalableTargetsRequest(input *DescribeS return } +// DescribeScalableTargets API operation for Application Auto Scaling. +// // Provides descriptive information for scalable targets with a specified service // namespace. // @@ -176,6 +212,21 @@ func (c *ApplicationAutoScaling) DescribeScalableTargetsRequest(input *DescribeS // To create a new scalable target or update an existing one, see RegisterScalableTarget. // If you are no longer using a scalable target, you can deregister it with // DeregisterScalableTarget. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Application Auto Scaling's +// API operation, DescribeScalableTargets for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ValidationException +// InvalidNextTokenException +// ConcurrentUpdateException +// InternalServiceException func (c *ApplicationAutoScaling) DescribeScalableTargets(input *DescribeScalableTargetsInput) (*DescribeScalableTargetsOutput, error) { req, out := c.DescribeScalableTargetsRequest(input) err := req.Send() @@ -254,6 +305,8 @@ func (c *ApplicationAutoScaling) DescribeScalingActivitiesRequest(input *Describ return } +// DescribeScalingActivities API operation for Application Auto Scaling. +// // Provides descriptive information for scaling activities with a specified // service namespace for the previous six weeks. // @@ -264,6 +317,21 @@ func (c *ApplicationAutoScaling) DescribeScalingActivitiesRequest(input *Describ // with scaling policies. To view the existing scaling policies for a service // namespace, see DescribeScalingPolicies. To create a new scaling policy or // update an existing one, see PutScalingPolicy. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Application Auto Scaling's +// API operation, DescribeScalingActivities for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ValidationException +// InvalidNextTokenException +// ConcurrentUpdateException +// InternalServiceException func (c *ApplicationAutoScaling) DescribeScalingActivities(input *DescribeScalingActivitiesInput) (*DescribeScalingActivitiesOutput, error) { req, out := c.DescribeScalingActivitiesRequest(input) err := req.Send() @@ -342,6 +410,8 @@ func (c *ApplicationAutoScaling) DescribeScalingPoliciesRequest(input *DescribeS return } +// DescribeScalingPolicies API operation for Application Auto Scaling. +// // Provides descriptive information for scaling policies with a specified service // namespace. // @@ -350,6 +420,22 @@ func (c *ApplicationAutoScaling) DescribeScalingPoliciesRequest(input *DescribeS // // To create a new scaling policy or update an existing one, see PutScalingPolicy. // If you are no longer using a scaling policy, you can delete it with DeleteScalingPolicy. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Application Auto Scaling's +// API operation, DescribeScalingPolicies for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ValidationException +// FailedResourceAccessException +// InvalidNextTokenException +// ConcurrentUpdateException +// InternalServiceException func (c *ApplicationAutoScaling) DescribeScalingPolicies(input *DescribeScalingPoliciesInput) (*DescribeScalingPoliciesOutput, error) { req, out := c.DescribeScalingPoliciesRequest(input) err := req.Send() @@ -422,6 +508,8 @@ func (c *ApplicationAutoScaling) PutScalingPolicyRequest(input *PutScalingPolicy return } +// PutScalingPolicy API operation for Application Auto Scaling. +// // Creates or updates a policy for an existing Application Auto Scaling scalable // target. Each scalable target is identified by service namespace, a resource // ID, and a scalable dimension, and a scaling policy applies to a scalable @@ -435,6 +523,22 @@ func (c *ApplicationAutoScaling) PutScalingPolicyRequest(input *PutScalingPolicy // You can view the existing scaling policies for a service namespace with // DescribeScalingPolicies. If you are no longer using a scaling policy, you // can delete it with DeleteScalingPolicy. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Application Auto Scaling's +// API operation, PutScalingPolicy for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ValidationException +// LimitExceededException +// ObjectNotFoundException +// ConcurrentUpdateException +// InternalServiceException func (c *ApplicationAutoScaling) PutScalingPolicy(input *PutScalingPolicyInput) (*PutScalingPolicyOutput, error) { req, out := c.PutScalingPolicyRequest(input) err := req.Send() @@ -482,6 +586,8 @@ func (c *ApplicationAutoScaling) RegisterScalableTargetRequest(input *RegisterSc return } +// RegisterScalableTarget API operation for Application Auto Scaling. +// // Registers or updates a scalable target. A scalable target is a resource that // can be scaled out or in with Application Auto Scaling. After you have registered // a scalable target, you can use this operation to update the minimum and maximum @@ -492,6 +598,21 @@ func (c *ApplicationAutoScaling) RegisterScalableTargetRequest(input *RegisterSc // view the existing scaling policies for a service namespace with DescribeScalableTargets. // If you are no longer using a scalable target, you can deregister it with // DeregisterScalableTarget. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Application Auto Scaling's +// API operation, RegisterScalableTarget for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ValidationException +// LimitExceededException +// ConcurrentUpdateException +// InternalServiceException func (c *ApplicationAutoScaling) RegisterScalableTarget(input *RegisterScalableTargetInput) (*RegisterScalableTargetOutput, error) { req, out := c.RegisterScalableTargetRequest(input) err := req.Send() diff --git a/service/applicationdiscoveryservice/api.go b/service/applicationdiscoveryservice/api.go index 92d61bb325e..907890ef390 100644 --- a/service/applicationdiscoveryservice/api.go +++ b/service/applicationdiscoveryservice/api.go @@ -52,9 +52,27 @@ func (c *ApplicationDiscoveryService) CreateTagsRequest(input *CreateTagsInput) return } +// CreateTags API operation for AWS Application Discovery Service. +// // Creates one or more tags for configuration items. Tags are metadata that // help you categorize IT assets. This API accepts a list of multiple configuration // items. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Application Discovery Service's +// API operation, CreateTags for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// AuthorizationErrorException +// ResourceNotFoundException +// InvalidParameterException +// InvalidParameterValueException +// ServerInternalErrorException func (c *ApplicationDiscoveryService) CreateTags(input *CreateTagsInput) (*CreateTagsOutput, error) { req, out := c.CreateTagsRequest(input) err := req.Send() @@ -102,8 +120,26 @@ func (c *ApplicationDiscoveryService) DeleteTagsRequest(input *DeleteTagsInput) return } +// DeleteTags API operation for AWS Application Discovery Service. +// // Deletes the association between configuration items and one or more tags. // This API accepts a list of multiple configuration items. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Application Discovery Service's +// API operation, DeleteTags for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// AuthorizationErrorException +// ResourceNotFoundException +// InvalidParameterException +// InvalidParameterValueException +// ServerInternalErrorException func (c *ApplicationDiscoveryService) DeleteTags(input *DeleteTagsInput) (*DeleteTagsOutput, error) { req, out := c.DeleteTagsRequest(input) err := req.Send() @@ -151,8 +187,25 @@ func (c *ApplicationDiscoveryService) DescribeAgentsRequest(input *DescribeAgent return } +// DescribeAgents API operation for AWS Application Discovery Service. +// // Lists AWS agents by ID or lists all agents associated with your user account // if you did not specify an agent ID. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Application Discovery Service's +// API operation, DescribeAgents for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// AuthorizationErrorException +// InvalidParameterException +// InvalidParameterValueException +// ServerInternalErrorException func (c *ApplicationDiscoveryService) DescribeAgents(input *DescribeAgentsInput) (*DescribeAgentsOutput, error) { req, out := c.DescribeAgentsRequest(input) err := req.Send() @@ -200,10 +253,27 @@ func (c *ApplicationDiscoveryService) DescribeConfigurationsRequest(input *Descr return } +// DescribeConfigurations API operation for AWS Application Discovery Service. +// // Retrieves a list of attributes for a specific configuration ID. For example, // the output for a server configuration item includes a list of attributes // about the server, including host name, operating system, number of network // cards, etc. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Application Discovery Service's +// API operation, DescribeConfigurations for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// AuthorizationErrorException +// InvalidParameterException +// InvalidParameterValueException +// ServerInternalErrorException func (c *ApplicationDiscoveryService) DescribeConfigurations(input *DescribeConfigurationsInput) (*DescribeConfigurationsOutput, error) { req, out := c.DescribeConfigurationsRequest(input) err := req.Send() @@ -251,8 +321,26 @@ func (c *ApplicationDiscoveryService) DescribeExportConfigurationsRequest(input return } +// DescribeExportConfigurations API operation for AWS Application Discovery Service. +// // Retrieves the status of a given export process. You can retrieve status from // a maximum of 100 processes. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Application Discovery Service's +// API operation, DescribeExportConfigurations for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// AuthorizationErrorException +// ResourceNotFoundException +// InvalidParameterException +// InvalidParameterValueException +// ServerInternalErrorException func (c *ApplicationDiscoveryService) DescribeExportConfigurations(input *DescribeExportConfigurationsInput) (*DescribeExportConfigurationsOutput, error) { req, out := c.DescribeExportConfigurationsRequest(input) err := req.Send() @@ -300,8 +388,26 @@ func (c *ApplicationDiscoveryService) DescribeTagsRequest(input *DescribeTagsInp return } +// DescribeTags API operation for AWS Application Discovery Service. +// // Retrieves a list of configuration items that are tagged with a specific tag. // Or retrieves a list of all tags assigned to a specific configuration item. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Application Discovery Service's +// API operation, DescribeTags for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// AuthorizationErrorException +// ResourceNotFoundException +// InvalidParameterException +// InvalidParameterValueException +// ServerInternalErrorException func (c *ApplicationDiscoveryService) DescribeTags(input *DescribeTagsInput) (*DescribeTagsOutput, error) { req, out := c.DescribeTagsRequest(input) err := req.Send() @@ -349,11 +455,29 @@ func (c *ApplicationDiscoveryService) ExportConfigurationsRequest(input *ExportC return } +// ExportConfigurations API operation for AWS Application Discovery Service. +// // Exports all discovered configuration data to an Amazon S3 bucket or an application // that enables you to view and evaluate the data. Data includes tags and tag // associations, processes, connections, servers, and system performance. This // API returns an export ID which you can query using the GetExportStatus API. // The system imposes a limit of two configuration exports in six hours. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Application Discovery Service's +// API operation, ExportConfigurations for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// AuthorizationErrorException +// InvalidParameterException +// InvalidParameterValueException +// ServerInternalErrorException +// OperationNotPermittedException func (c *ApplicationDiscoveryService) ExportConfigurations(input *ExportConfigurationsInput) (*ExportConfigurationsOutput, error) { req, out := c.ExportConfigurationsRequest(input) err := req.Send() @@ -401,8 +525,26 @@ func (c *ApplicationDiscoveryService) ListConfigurationsRequest(input *ListConfi return } +// ListConfigurations API operation for AWS Application Discovery Service. +// // Retrieves a list of configurations items according to the criteria you specify // in a filter. The filter criteria identify relationship requirements. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Application Discovery Service's +// API operation, ListConfigurations for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// AuthorizationErrorException +// ResourceNotFoundException +// InvalidParameterException +// InvalidParameterValueException +// ServerInternalErrorException func (c *ApplicationDiscoveryService) ListConfigurations(input *ListConfigurationsInput) (*ListConfigurationsOutput, error) { req, out := c.ListConfigurationsRequest(input) err := req.Send() @@ -450,8 +592,25 @@ func (c *ApplicationDiscoveryService) StartDataCollectionByAgentIdsRequest(input return } +// StartDataCollectionByAgentIds API operation for AWS Application Discovery Service. +// // Instructs the specified agents to start collecting data. Agents can reside // on host servers or virtual machines in your data center. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Application Discovery Service's +// API operation, StartDataCollectionByAgentIds for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// AuthorizationErrorException +// InvalidParameterException +// InvalidParameterValueException +// ServerInternalErrorException func (c *ApplicationDiscoveryService) StartDataCollectionByAgentIds(input *StartDataCollectionByAgentIdsInput) (*StartDataCollectionByAgentIdsOutput, error) { req, out := c.StartDataCollectionByAgentIdsRequest(input) err := req.Send() @@ -499,7 +658,24 @@ func (c *ApplicationDiscoveryService) StopDataCollectionByAgentIdsRequest(input return } +// StopDataCollectionByAgentIds API operation for AWS Application Discovery Service. +// // Instructs the specified agents to stop collecting data. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Application Discovery Service's +// API operation, StopDataCollectionByAgentIds for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// AuthorizationErrorException +// InvalidParameterException +// InvalidParameterValueException +// ServerInternalErrorException func (c *ApplicationDiscoveryService) StopDataCollectionByAgentIds(input *StopDataCollectionByAgentIdsInput) (*StopDataCollectionByAgentIdsOutput, error) { req, out := c.StopDataCollectionByAgentIdsRequest(input) err := req.Send() diff --git a/service/autoscaling/api.go b/service/autoscaling/api.go index c9a225cef6b..257ca4614fe 100644 --- a/service/autoscaling/api.go +++ b/service/autoscaling/api.go @@ -56,6 +56,8 @@ func (c *AutoScaling) AttachInstancesRequest(input *AttachInstancesInput) (req * return } +// AttachInstances API operation for Auto Scaling. +// // Attaches one or more EC2 instances to the specified Auto Scaling group. // // When you attach instances, Auto Scaling increases the desired capacity of @@ -71,6 +73,18 @@ func (c *AutoScaling) AttachInstancesRequest(input *AttachInstancesInput) (req * // For more information, see Attach EC2 Instances to Your Auto Scaling Group // (http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/attach-instance-asg.html) // in the Auto Scaling User Guide. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Auto Scaling's +// API operation, AttachInstances for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ResourceContentionFault func (c *AutoScaling) AttachInstances(input *AttachInstancesInput) (*AttachInstancesOutput, error) { req, out := c.AttachInstancesRequest(input) err := req.Send() @@ -118,6 +132,8 @@ func (c *AutoScaling) AttachLoadBalancerTargetGroupsRequest(input *AttachLoadBal return } +// AttachLoadBalancerTargetGroups API operation for Auto Scaling. +// // Attaches one or more target groups to the specified Auto Scaling group. // // To describe the target groups for an Auto Scaling group, use DescribeLoadBalancerTargetGroups. @@ -126,6 +142,18 @@ func (c *AutoScaling) AttachLoadBalancerTargetGroupsRequest(input *AttachLoadBal // For more information, see Attach a Load Balancer to Your Auto Scaling Group // (http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/attach-load-balancer-asg.html) // in the Auto Scaling User Guide. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Auto Scaling's +// API operation, AttachLoadBalancerTargetGroups for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ResourceContentionFault func (c *AutoScaling) AttachLoadBalancerTargetGroups(input *AttachLoadBalancerTargetGroupsInput) (*AttachLoadBalancerTargetGroupsOutput, error) { req, out := c.AttachLoadBalancerTargetGroupsRequest(input) err := req.Send() @@ -173,6 +201,8 @@ func (c *AutoScaling) AttachLoadBalancersRequest(input *AttachLoadBalancersInput return } +// AttachLoadBalancers API operation for Auto Scaling. +// // Attaches one or more Classic load balancers to the specified Auto Scaling // group. // @@ -184,6 +214,18 @@ func (c *AutoScaling) AttachLoadBalancersRequest(input *AttachLoadBalancersInput // For more information, see Attach a Load Balancer to Your Auto Scaling Group // (http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/attach-load-balancer-asg.html) // in the Auto Scaling User Guide. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Auto Scaling's +// API operation, AttachLoadBalancers for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ResourceContentionFault func (c *AutoScaling) AttachLoadBalancers(input *AttachLoadBalancersInput) (*AttachLoadBalancersOutput, error) { req, out := c.AttachLoadBalancersRequest(input) err := req.Send() @@ -231,6 +273,8 @@ func (c *AutoScaling) CompleteLifecycleActionRequest(input *CompleteLifecycleAct return } +// CompleteLifecycleAction API operation for Auto Scaling. +// // Completes the lifecycle action for the specified token or instance with the // specified result. // @@ -256,6 +300,18 @@ func (c *AutoScaling) CompleteLifecycleActionRequest(input *CompleteLifecycleAct // // For more information, see Auto Scaling Lifecycle (http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/AutoScalingGroupLifecycle.html) // in the Auto Scaling User Guide. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Auto Scaling's +// API operation, CompleteLifecycleAction for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ResourceContentionFault func (c *AutoScaling) CompleteLifecycleAction(input *CompleteLifecycleActionInput) (*CompleteLifecycleActionOutput, error) { req, out := c.CompleteLifecycleActionRequest(input) err := req.Send() @@ -305,6 +361,8 @@ func (c *AutoScaling) CreateAutoScalingGroupRequest(input *CreateAutoScalingGrou return } +// CreateAutoScalingGroup API operation for Auto Scaling. +// // Creates an Auto Scaling group with the specified name and attributes. // // If you exceed your maximum limit of Auto Scaling groups, which by default @@ -313,6 +371,20 @@ func (c *AutoScaling) CreateAutoScalingGroupRequest(input *CreateAutoScalingGrou // // For more information, see Auto Scaling Groups (http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/AutoScalingGroup.html) // in the Auto Scaling User Guide. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Auto Scaling's +// API operation, CreateAutoScalingGroup for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// AlreadyExistsFault +// LimitExceededFault +// ResourceContentionFault func (c *AutoScaling) CreateAutoScalingGroup(input *CreateAutoScalingGroupInput) (*CreateAutoScalingGroupOutput, error) { req, out := c.CreateAutoScalingGroupRequest(input) err := req.Send() @@ -362,6 +434,8 @@ func (c *AutoScaling) CreateLaunchConfigurationRequest(input *CreateLaunchConfig return } +// CreateLaunchConfiguration API operation for Auto Scaling. +// // Creates a launch configuration. // // If you exceed your maximum limit of launch configurations, which by default @@ -370,6 +444,20 @@ func (c *AutoScaling) CreateLaunchConfigurationRequest(input *CreateLaunchConfig // // For more information, see Launch Configurations (http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/LaunchConfiguration.html) // in the Auto Scaling User Guide. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Auto Scaling's +// API operation, CreateLaunchConfiguration for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// AlreadyExistsFault +// LimitExceededFault +// ResourceContentionFault func (c *AutoScaling) CreateLaunchConfiguration(input *CreateLaunchConfigurationInput) (*CreateLaunchConfigurationOutput, error) { req, out := c.CreateLaunchConfigurationRequest(input) err := req.Send() @@ -419,6 +507,8 @@ func (c *AutoScaling) CreateOrUpdateTagsRequest(input *CreateOrUpdateTagsInput) return } +// CreateOrUpdateTags API operation for Auto Scaling. +// // Creates or updates tags for the specified Auto Scaling group. // // When you specify a tag with a key that already exists, the operation overwrites @@ -426,6 +516,20 @@ func (c *AutoScaling) CreateOrUpdateTagsRequest(input *CreateOrUpdateTagsInput) // // For more information, see Tagging Auto Scaling Groups and Instances (http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/ASTagging.html) // in the Auto Scaling User Guide. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Auto Scaling's +// API operation, CreateOrUpdateTags for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// LimitExceededFault +// AlreadyExistsFault +// ResourceContentionFault func (c *AutoScaling) CreateOrUpdateTags(input *CreateOrUpdateTagsInput) (*CreateOrUpdateTagsOutput, error) { req, out := c.CreateOrUpdateTagsRequest(input) err := req.Send() @@ -475,6 +579,8 @@ func (c *AutoScaling) DeleteAutoScalingGroupRequest(input *DeleteAutoScalingGrou return } +// DeleteAutoScalingGroup API operation for Auto Scaling. +// // Deletes the specified Auto Scaling group. // // If the group has instances or scaling activities in progress, you must specify @@ -491,6 +597,20 @@ func (c *AutoScaling) DeleteAutoScalingGroupRequest(input *DeleteAutoScalingGrou // To terminate all instances before deleting the Auto Scaling group, call // UpdateAutoScalingGroup and set the minimum size and desired capacity of the // Auto Scaling group to zero. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Auto Scaling's +// API operation, DeleteAutoScalingGroup for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ScalingActivityInProgressFault +// ResourceInUseFault +// ResourceContentionFault func (c *AutoScaling) DeleteAutoScalingGroup(input *DeleteAutoScalingGroupInput) (*DeleteAutoScalingGroupOutput, error) { req, out := c.DeleteAutoScalingGroupRequest(input) err := req.Send() @@ -540,11 +660,26 @@ func (c *AutoScaling) DeleteLaunchConfigurationRequest(input *DeleteLaunchConfig return } +// DeleteLaunchConfiguration API operation for Auto Scaling. +// // Deletes the specified launch configuration. // // The launch configuration must not be attached to an Auto Scaling group. // When this call completes, the launch configuration is no longer available // for use. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Auto Scaling's +// API operation, DeleteLaunchConfiguration for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ResourceInUseFault +// ResourceContentionFault func (c *AutoScaling) DeleteLaunchConfiguration(input *DeleteLaunchConfigurationInput) (*DeleteLaunchConfigurationOutput, error) { req, out := c.DeleteLaunchConfigurationRequest(input) err := req.Send() @@ -592,10 +727,24 @@ func (c *AutoScaling) DeleteLifecycleHookRequest(input *DeleteLifecycleHookInput return } +// DeleteLifecycleHook API operation for Auto Scaling. +// // Deletes the specified lifecycle hook. // // If there are any outstanding lifecycle actions, they are completed first // (ABANDON for launching instances, CONTINUE for terminating instances). +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Auto Scaling's +// API operation, DeleteLifecycleHook for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ResourceContentionFault func (c *AutoScaling) DeleteLifecycleHook(input *DeleteLifecycleHookInput) (*DeleteLifecycleHookOutput, error) { req, out := c.DeleteLifecycleHookRequest(input) err := req.Send() @@ -645,7 +794,21 @@ func (c *AutoScaling) DeleteNotificationConfigurationRequest(input *DeleteNotifi return } +// DeleteNotificationConfiguration API operation for Auto Scaling. +// // Deletes the specified notification. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Auto Scaling's +// API operation, DeleteNotificationConfiguration for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ResourceContentionFault func (c *AutoScaling) DeleteNotificationConfiguration(input *DeleteNotificationConfigurationInput) (*DeleteNotificationConfigurationOutput, error) { req, out := c.DeleteNotificationConfigurationRequest(input) err := req.Send() @@ -695,10 +858,24 @@ func (c *AutoScaling) DeletePolicyRequest(input *DeletePolicyInput) (req *reques return } +// DeletePolicy API operation for Auto Scaling. +// // Deletes the specified Auto Scaling policy. // // Deleting a policy deletes the underlying alarm action, but does not delete // the alarm, even if it no longer has an associated action. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Auto Scaling's +// API operation, DeletePolicy for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ResourceContentionFault func (c *AutoScaling) DeletePolicy(input *DeletePolicyInput) (*DeletePolicyOutput, error) { req, out := c.DeletePolicyRequest(input) err := req.Send() @@ -748,7 +925,21 @@ func (c *AutoScaling) DeleteScheduledActionRequest(input *DeleteScheduledActionI return } +// DeleteScheduledAction API operation for Auto Scaling. +// // Deletes the specified scheduled action. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Auto Scaling's +// API operation, DeleteScheduledAction for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ResourceContentionFault func (c *AutoScaling) DeleteScheduledAction(input *DeleteScheduledActionInput) (*DeleteScheduledActionOutput, error) { req, out := c.DeleteScheduledActionRequest(input) err := req.Send() @@ -798,7 +989,21 @@ func (c *AutoScaling) DeleteTagsRequest(input *DeleteTagsInput) (req *request.Re return } +// DeleteTags API operation for Auto Scaling. +// // Deletes the specified tags. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Auto Scaling's +// API operation, DeleteTags for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ResourceContentionFault func (c *AutoScaling) DeleteTags(input *DeleteTagsInput) (*DeleteTagsOutput, error) { req, out := c.DeleteTagsRequest(input) err := req.Send() @@ -846,11 +1051,25 @@ func (c *AutoScaling) DescribeAccountLimitsRequest(input *DescribeAccountLimitsI return } +// DescribeAccountLimits API operation for Auto Scaling. +// // Describes the current Auto Scaling resource limits for your AWS account. // // For information about requesting an increase in these limits, see AWS Service // Limits (http://docs.aws.amazon.com/general/latest/gr/aws_service_limits.html) // in the Amazon Web Services General Reference. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Auto Scaling's +// API operation, DescribeAccountLimits for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ResourceContentionFault func (c *AutoScaling) DescribeAccountLimits(input *DescribeAccountLimitsInput) (*DescribeAccountLimitsOutput, error) { req, out := c.DescribeAccountLimitsRequest(input) err := req.Send() @@ -898,7 +1117,21 @@ func (c *AutoScaling) DescribeAdjustmentTypesRequest(input *DescribeAdjustmentTy return } +// DescribeAdjustmentTypes API operation for Auto Scaling. +// // Describes the policy adjustment types for use with PutScalingPolicy. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Auto Scaling's +// API operation, DescribeAdjustmentTypes for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ResourceContentionFault func (c *AutoScaling) DescribeAdjustmentTypes(input *DescribeAdjustmentTypesInput) (*DescribeAdjustmentTypesOutput, error) { req, out := c.DescribeAdjustmentTypesRequest(input) err := req.Send() @@ -952,7 +1185,22 @@ func (c *AutoScaling) DescribeAutoScalingGroupsRequest(input *DescribeAutoScalin return } +// DescribeAutoScalingGroups API operation for Auto Scaling. +// // Describes one or more Auto Scaling groups. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Auto Scaling's +// API operation, DescribeAutoScalingGroups for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidNextToken +// ResourceContentionFault func (c *AutoScaling) DescribeAutoScalingGroups(input *DescribeAutoScalingGroupsInput) (*DescribeAutoScalingGroupsOutput, error) { req, out := c.DescribeAutoScalingGroupsRequest(input) err := req.Send() @@ -1031,7 +1279,22 @@ func (c *AutoScaling) DescribeAutoScalingInstancesRequest(input *DescribeAutoSca return } +// DescribeAutoScalingInstances API operation for Auto Scaling. +// // Describes one or more Auto Scaling instances. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Auto Scaling's +// API operation, DescribeAutoScalingInstances for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidNextToken +// ResourceContentionFault func (c *AutoScaling) DescribeAutoScalingInstances(input *DescribeAutoScalingInstancesInput) (*DescribeAutoScalingInstancesOutput, error) { req, out := c.DescribeAutoScalingInstancesRequest(input) err := req.Send() @@ -1104,7 +1367,21 @@ func (c *AutoScaling) DescribeAutoScalingNotificationTypesRequest(input *Describ return } +// DescribeAutoScalingNotificationTypes API operation for Auto Scaling. +// // Describes the notification types that are supported by Auto Scaling. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Auto Scaling's +// API operation, DescribeAutoScalingNotificationTypes for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ResourceContentionFault func (c *AutoScaling) DescribeAutoScalingNotificationTypes(input *DescribeAutoScalingNotificationTypesInput) (*DescribeAutoScalingNotificationTypesOutput, error) { req, out := c.DescribeAutoScalingNotificationTypesRequest(input) err := req.Send() @@ -1158,7 +1435,22 @@ func (c *AutoScaling) DescribeLaunchConfigurationsRequest(input *DescribeLaunchC return } +// DescribeLaunchConfigurations API operation for Auto Scaling. +// // Describes one or more launch configurations. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Auto Scaling's +// API operation, DescribeLaunchConfigurations for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidNextToken +// ResourceContentionFault func (c *AutoScaling) DescribeLaunchConfigurations(input *DescribeLaunchConfigurationsInput) (*DescribeLaunchConfigurationsOutput, error) { req, out := c.DescribeLaunchConfigurationsRequest(input) err := req.Send() @@ -1231,7 +1523,21 @@ func (c *AutoScaling) DescribeLifecycleHookTypesRequest(input *DescribeLifecycle return } +// DescribeLifecycleHookTypes API operation for Auto Scaling. +// // Describes the available types of lifecycle hooks. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Auto Scaling's +// API operation, DescribeLifecycleHookTypes for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ResourceContentionFault func (c *AutoScaling) DescribeLifecycleHookTypes(input *DescribeLifecycleHookTypesInput) (*DescribeLifecycleHookTypesOutput, error) { req, out := c.DescribeLifecycleHookTypesRequest(input) err := req.Send() @@ -1279,7 +1585,21 @@ func (c *AutoScaling) DescribeLifecycleHooksRequest(input *DescribeLifecycleHook return } +// DescribeLifecycleHooks API operation for Auto Scaling. +// // Describes the lifecycle hooks for the specified Auto Scaling group. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Auto Scaling's +// API operation, DescribeLifecycleHooks for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ResourceContentionFault func (c *AutoScaling) DescribeLifecycleHooks(input *DescribeLifecycleHooksInput) (*DescribeLifecycleHooksOutput, error) { req, out := c.DescribeLifecycleHooksRequest(input) err := req.Send() @@ -1327,7 +1647,21 @@ func (c *AutoScaling) DescribeLoadBalancerTargetGroupsRequest(input *DescribeLoa return } +// DescribeLoadBalancerTargetGroups API operation for Auto Scaling. +// // Describes the target groups for the specified Auto Scaling group. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Auto Scaling's +// API operation, DescribeLoadBalancerTargetGroups for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ResourceContentionFault func (c *AutoScaling) DescribeLoadBalancerTargetGroups(input *DescribeLoadBalancerTargetGroupsInput) (*DescribeLoadBalancerTargetGroupsOutput, error) { req, out := c.DescribeLoadBalancerTargetGroupsRequest(input) err := req.Send() @@ -1375,10 +1709,24 @@ func (c *AutoScaling) DescribeLoadBalancersRequest(input *DescribeLoadBalancersI return } +// DescribeLoadBalancers API operation for Auto Scaling. +// // Describes the load balancers for the specified Auto Scaling group. // // Note that this operation describes only Classic load balancers. If you have // Application load balancers, use DescribeLoadBalancerTargetGroups instead. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Auto Scaling's +// API operation, DescribeLoadBalancers for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ResourceContentionFault func (c *AutoScaling) DescribeLoadBalancers(input *DescribeLoadBalancersInput) (*DescribeLoadBalancersOutput, error) { req, out := c.DescribeLoadBalancersRequest(input) err := req.Send() @@ -1426,10 +1774,24 @@ func (c *AutoScaling) DescribeMetricCollectionTypesRequest(input *DescribeMetric return } +// DescribeMetricCollectionTypes API operation for Auto Scaling. +// // Describes the available CloudWatch metrics for Auto Scaling. // // Note that the GroupStandbyInstances metric is not returned by default. You // must explicitly request this metric when calling EnableMetricsCollection. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Auto Scaling's +// API operation, DescribeMetricCollectionTypes for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ResourceContentionFault func (c *AutoScaling) DescribeMetricCollectionTypes(input *DescribeMetricCollectionTypesInput) (*DescribeMetricCollectionTypesOutput, error) { req, out := c.DescribeMetricCollectionTypesRequest(input) err := req.Send() @@ -1483,8 +1845,23 @@ func (c *AutoScaling) DescribeNotificationConfigurationsRequest(input *DescribeN return } +// DescribeNotificationConfigurations API operation for Auto Scaling. +// // Describes the notification actions associated with the specified Auto Scaling // group. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Auto Scaling's +// API operation, DescribeNotificationConfigurations for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidNextToken +// ResourceContentionFault func (c *AutoScaling) DescribeNotificationConfigurations(input *DescribeNotificationConfigurationsInput) (*DescribeNotificationConfigurationsOutput, error) { req, out := c.DescribeNotificationConfigurationsRequest(input) err := req.Send() @@ -1563,7 +1940,22 @@ func (c *AutoScaling) DescribePoliciesRequest(input *DescribePoliciesInput) (req return } +// DescribePolicies API operation for Auto Scaling. +// // Describes the policies for the specified Auto Scaling group. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Auto Scaling's +// API operation, DescribePolicies for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidNextToken +// ResourceContentionFault func (c *AutoScaling) DescribePolicies(input *DescribePoliciesInput) (*DescribePoliciesOutput, error) { req, out := c.DescribePoliciesRequest(input) err := req.Send() @@ -1642,7 +2034,22 @@ func (c *AutoScaling) DescribeScalingActivitiesRequest(input *DescribeScalingAct return } +// DescribeScalingActivities API operation for Auto Scaling. +// // Describes one or more scaling activities for the specified Auto Scaling group. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Auto Scaling's +// API operation, DescribeScalingActivities for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidNextToken +// ResourceContentionFault func (c *AutoScaling) DescribeScalingActivities(input *DescribeScalingActivitiesInput) (*DescribeScalingActivitiesOutput, error) { req, out := c.DescribeScalingActivitiesRequest(input) err := req.Send() @@ -1715,7 +2122,21 @@ func (c *AutoScaling) DescribeScalingProcessTypesRequest(input *DescribeScalingP return } +// DescribeScalingProcessTypes API operation for Auto Scaling. +// // Describes the scaling process types for use with ResumeProcesses and SuspendProcesses. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Auto Scaling's +// API operation, DescribeScalingProcessTypes for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ResourceContentionFault func (c *AutoScaling) DescribeScalingProcessTypes(input *DescribeScalingProcessTypesInput) (*DescribeScalingProcessTypesOutput, error) { req, out := c.DescribeScalingProcessTypesRequest(input) err := req.Send() @@ -1769,8 +2190,23 @@ func (c *AutoScaling) DescribeScheduledActionsRequest(input *DescribeScheduledAc return } +// DescribeScheduledActions API operation for Auto Scaling. +// // Describes the actions scheduled for your Auto Scaling group that haven't // run. To describe the actions that have already run, use DescribeScalingActivities. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Auto Scaling's +// API operation, DescribeScheduledActions for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidNextToken +// ResourceContentionFault func (c *AutoScaling) DescribeScheduledActions(input *DescribeScheduledActionsInput) (*DescribeScheduledActionsOutput, error) { req, out := c.DescribeScheduledActionsRequest(input) err := req.Send() @@ -1849,6 +2285,8 @@ func (c *AutoScaling) DescribeTagsRequest(input *DescribeTagsInput) (req *reques return } +// DescribeTags API operation for Auto Scaling. +// // Describes the specified tags. // // You can use filters to limit the results. For example, you can query for @@ -1859,6 +2297,19 @@ func (c *AutoScaling) DescribeTagsRequest(input *DescribeTagsInput) (req *reques // You can also specify multiple filters. The result includes information for // a particular tag only if it matches all the filters. If there's no match, // no special message is returned. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Auto Scaling's +// API operation, DescribeTags for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidNextToken +// ResourceContentionFault func (c *AutoScaling) DescribeTags(input *DescribeTagsInput) (*DescribeTagsOutput, error) { req, out := c.DescribeTagsRequest(input) err := req.Send() @@ -1931,7 +2382,21 @@ func (c *AutoScaling) DescribeTerminationPolicyTypesRequest(input *DescribeTermi return } +// DescribeTerminationPolicyTypes API operation for Auto Scaling. +// // Describes the termination policies supported by Auto Scaling. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Auto Scaling's +// API operation, DescribeTerminationPolicyTypes for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ResourceContentionFault func (c *AutoScaling) DescribeTerminationPolicyTypes(input *DescribeTerminationPolicyTypesInput) (*DescribeTerminationPolicyTypesOutput, error) { req, out := c.DescribeTerminationPolicyTypesRequest(input) err := req.Send() @@ -1979,6 +2444,8 @@ func (c *AutoScaling) DetachInstancesRequest(input *DetachInstancesInput) (req * return } +// DetachInstances API operation for Auto Scaling. +// // Removes one or more instances from the specified Auto Scaling group. // // After the instances are detached, you can manage them independently from @@ -1995,6 +2462,18 @@ func (c *AutoScaling) DetachInstancesRequest(input *DetachInstancesInput) (req * // For more information, see Detach EC2 Instances from Your Auto Scaling Group // (http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/detach-instance-asg.html) // in the Auto Scaling User Guide. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Auto Scaling's +// API operation, DetachInstances for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ResourceContentionFault func (c *AutoScaling) DetachInstances(input *DetachInstancesInput) (*DetachInstancesOutput, error) { req, out := c.DetachInstancesRequest(input) err := req.Send() @@ -2042,7 +2521,21 @@ func (c *AutoScaling) DetachLoadBalancerTargetGroupsRequest(input *DetachLoadBal return } +// DetachLoadBalancerTargetGroups API operation for Auto Scaling. +// // Detaches one or more target groups from the specified Auto Scaling group. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Auto Scaling's +// API operation, DetachLoadBalancerTargetGroups for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ResourceContentionFault func (c *AutoScaling) DetachLoadBalancerTargetGroups(input *DetachLoadBalancerTargetGroupsInput) (*DetachLoadBalancerTargetGroupsOutput, error) { req, out := c.DetachLoadBalancerTargetGroupsRequest(input) err := req.Send() @@ -2090,6 +2583,8 @@ func (c *AutoScaling) DetachLoadBalancersRequest(input *DetachLoadBalancersInput return } +// DetachLoadBalancers API operation for Auto Scaling. +// // Detaches one or more Classic load balancers from the specified Auto Scaling // group. // @@ -2100,6 +2595,18 @@ func (c *AutoScaling) DetachLoadBalancersRequest(input *DetachLoadBalancersInput // the instances in the group. When all instances are deregistered, then you // can no longer describe the load balancer using DescribeLoadBalancers. Note // that the instances remain running. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Auto Scaling's +// API operation, DetachLoadBalancers for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ResourceContentionFault func (c *AutoScaling) DetachLoadBalancers(input *DetachLoadBalancersInput) (*DetachLoadBalancersOutput, error) { req, out := c.DetachLoadBalancersRequest(input) err := req.Send() @@ -2149,7 +2656,21 @@ func (c *AutoScaling) DisableMetricsCollectionRequest(input *DisableMetricsColle return } +// DisableMetricsCollection API operation for Auto Scaling. +// // Disables group metrics for the specified Auto Scaling group. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Auto Scaling's +// API operation, DisableMetricsCollection for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ResourceContentionFault func (c *AutoScaling) DisableMetricsCollection(input *DisableMetricsCollectionInput) (*DisableMetricsCollectionOutput, error) { req, out := c.DisableMetricsCollectionRequest(input) err := req.Send() @@ -2199,9 +2720,23 @@ func (c *AutoScaling) EnableMetricsCollectionRequest(input *EnableMetricsCollect return } +// EnableMetricsCollection API operation for Auto Scaling. +// // Enables group metrics for the specified Auto Scaling group. For more information, // see Monitoring Your Auto Scaling Groups and Instances (http://docs.aws.amazon.com/AutoScaling/latest/userguide/as-instance-monitoring.html) // in the Auto Scaling User Guide. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Auto Scaling's +// API operation, EnableMetricsCollection for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ResourceContentionFault func (c *AutoScaling) EnableMetricsCollection(input *EnableMetricsCollectionInput) (*EnableMetricsCollectionOutput, error) { req, out := c.EnableMetricsCollectionRequest(input) err := req.Send() @@ -2249,10 +2784,24 @@ func (c *AutoScaling) EnterStandbyRequest(input *EnterStandbyInput) (req *reques return } +// EnterStandby API operation for Auto Scaling. +// // Moves the specified instances into Standby mode. // // For more information, see Auto Scaling Lifecycle (http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/AutoScalingGroupLifecycle.html) // in the Auto Scaling User Guide. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Auto Scaling's +// API operation, EnterStandby for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ResourceContentionFault func (c *AutoScaling) EnterStandby(input *EnterStandbyInput) (*EnterStandbyOutput, error) { req, out := c.EnterStandbyRequest(input) err := req.Send() @@ -2302,7 +2851,22 @@ func (c *AutoScaling) ExecutePolicyRequest(input *ExecutePolicyInput) (req *requ return } +// ExecutePolicy API operation for Auto Scaling. +// // Executes the specified policy. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Auto Scaling's +// API operation, ExecutePolicy for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ScalingActivityInProgressFault +// ResourceContentionFault func (c *AutoScaling) ExecutePolicy(input *ExecutePolicyInput) (*ExecutePolicyOutput, error) { req, out := c.ExecutePolicyRequest(input) err := req.Send() @@ -2350,10 +2914,24 @@ func (c *AutoScaling) ExitStandbyRequest(input *ExitStandbyInput) (req *request. return } +// ExitStandby API operation for Auto Scaling. +// // Moves the specified instances out of Standby mode. // // For more information, see Auto Scaling Lifecycle (http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/AutoScalingGroupLifecycle.html) // in the Auto Scaling User Guide. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Auto Scaling's +// API operation, ExitStandby for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ResourceContentionFault func (c *AutoScaling) ExitStandby(input *ExitStandbyInput) (*ExitStandbyOutput, error) { req, out := c.ExitStandbyRequest(input) err := req.Send() @@ -2401,6 +2979,8 @@ func (c *AutoScaling) PutLifecycleHookRequest(input *PutLifecycleHookInput) (req return } +// PutLifecycleHook API operation for Auto Scaling. +// // Creates or updates a lifecycle hook for the specified Auto Scaling Group. // // A lifecycle hook tells Auto Scaling that you want to perform an action on @@ -2433,6 +3013,19 @@ func (c *AutoScaling) PutLifecycleHookRequest(input *PutLifecycleHookInput) (req // 50 per Auto Scaling group, the call fails. For information about updating // this limit, see AWS Service Limits (http://docs.aws.amazon.com/general/latest/gr/aws_service_limits.html) // in the Amazon Web Services General Reference. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Auto Scaling's +// API operation, PutLifecycleHook for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// LimitExceededFault +// ResourceContentionFault func (c *AutoScaling) PutLifecycleHook(input *PutLifecycleHookInput) (*PutLifecycleHookOutput, error) { req, out := c.PutLifecycleHookRequest(input) err := req.Send() @@ -2482,6 +3075,8 @@ func (c *AutoScaling) PutNotificationConfigurationRequest(input *PutNotification return } +// PutNotificationConfiguration API operation for Auto Scaling. +// // Configures an Auto Scaling group to send notifications when specified events // take place. Subscribers to the specified topic can have messages delivered // to an endpoint such as a web server or an email address. @@ -2491,6 +3086,19 @@ func (c *AutoScaling) PutNotificationConfigurationRequest(input *PutNotification // For more information see Getting SNS Notifications When Your Auto Scaling // Group Scales (http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/ASGettingNotifications.html) // in the Auto Scaling User Guide. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Auto Scaling's +// API operation, PutNotificationConfiguration for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// LimitExceededFault +// ResourceContentionFault func (c *AutoScaling) PutNotificationConfiguration(input *PutNotificationConfigurationInput) (*PutNotificationConfigurationOutput, error) { req, out := c.PutNotificationConfigurationRequest(input) err := req.Send() @@ -2538,6 +3146,8 @@ func (c *AutoScaling) PutScalingPolicyRequest(input *PutScalingPolicyInput) (req return } +// PutScalingPolicy API operation for Auto Scaling. +// // Creates or updates a policy for an Auto Scaling group. To update an existing // policy, use the existing policy name and set the parameters you want to change. // Any existing parameter not changed in an update to an existing policy is @@ -2547,6 +3157,19 @@ func (c *AutoScaling) PutScalingPolicyRequest(input *PutScalingPolicyInput) (req // 20 per region, the call fails. For information about updating this limit, // see AWS Service Limits (http://docs.aws.amazon.com/general/latest/gr/aws_service_limits.html) // in the Amazon Web Services General Reference. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Auto Scaling's +// API operation, PutScalingPolicy for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// LimitExceededFault +// ResourceContentionFault func (c *AutoScaling) PutScalingPolicy(input *PutScalingPolicyInput) (*PutScalingPolicyOutput, error) { req, out := c.PutScalingPolicyRequest(input) err := req.Send() @@ -2596,12 +3219,28 @@ func (c *AutoScaling) PutScheduledUpdateGroupActionRequest(input *PutScheduledUp return } +// PutScheduledUpdateGroupAction API operation for Auto Scaling. +// // Creates or updates a scheduled scaling action for an Auto Scaling group. // When updating a scheduled scaling action, if you leave a parameter unspecified, // the corresponding value remains unchanged in the affected Auto Scaling group. // // For more information, see Scheduled Scaling (http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/schedule_time.html) // in the Auto Scaling User Guide. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Auto Scaling's +// API operation, PutScheduledUpdateGroupAction for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// AlreadyExistsFault +// LimitExceededFault +// ResourceContentionFault func (c *AutoScaling) PutScheduledUpdateGroupAction(input *PutScheduledUpdateGroupActionInput) (*PutScheduledUpdateGroupActionOutput, error) { req, out := c.PutScheduledUpdateGroupActionRequest(input) err := req.Send() @@ -2649,6 +3288,8 @@ func (c *AutoScaling) RecordLifecycleActionHeartbeatRequest(input *RecordLifecyc return } +// RecordLifecycleActionHeartbeat API operation for Auto Scaling. +// // Records a heartbeat for the lifecycle action associated with the specified // token or instance. This extends the timeout by the length of time defined // using PutLifecycleHook. @@ -2674,6 +3315,18 @@ func (c *AutoScaling) RecordLifecycleActionHeartbeatRequest(input *RecordLifecyc // // For more information, see Auto Scaling Lifecycle (http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/AutoScalingGroupLifecycle.html) // in the Auto Scaling User Guide. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Auto Scaling's +// API operation, RecordLifecycleActionHeartbeat for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ResourceContentionFault func (c *AutoScaling) RecordLifecycleActionHeartbeat(input *RecordLifecycleActionHeartbeatInput) (*RecordLifecycleActionHeartbeatOutput, error) { req, out := c.RecordLifecycleActionHeartbeatRequest(input) err := req.Send() @@ -2723,12 +3376,27 @@ func (c *AutoScaling) ResumeProcessesRequest(input *ScalingProcessQuery) (req *r return } +// ResumeProcesses API operation for Auto Scaling. +// // Resumes the specified suspended Auto Scaling processes, or all suspended // process, for the specified Auto Scaling group. // // For more information, see Suspending and Resuming Auto Scaling Processes // (http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/US_SuspendResume.html) // in the Auto Scaling User Guide. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Auto Scaling's +// API operation, ResumeProcesses for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ResourceInUseFault +// ResourceContentionFault func (c *AutoScaling) ResumeProcesses(input *ScalingProcessQuery) (*ResumeProcessesOutput, error) { req, out := c.ResumeProcessesRequest(input) err := req.Send() @@ -2778,10 +3446,25 @@ func (c *AutoScaling) SetDesiredCapacityRequest(input *SetDesiredCapacityInput) return } +// SetDesiredCapacity API operation for Auto Scaling. +// // Sets the size of the specified Auto Scaling group. // // For more information about desired capacity, see What Is Auto Scaling? (http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/WhatIsAutoScaling.html) // in the Auto Scaling User Guide. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Auto Scaling's +// API operation, SetDesiredCapacity for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ScalingActivityInProgressFault +// ResourceContentionFault func (c *AutoScaling) SetDesiredCapacity(input *SetDesiredCapacityInput) (*SetDesiredCapacityOutput, error) { req, out := c.SetDesiredCapacityRequest(input) err := req.Send() @@ -2831,10 +3514,24 @@ func (c *AutoScaling) SetInstanceHealthRequest(input *SetInstanceHealthInput) (r return } +// SetInstanceHealth API operation for Auto Scaling. +// // Sets the health status of the specified instance. // // For more information, see Health Checks (http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/healthcheck.html) // in the Auto Scaling User Guide. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Auto Scaling's +// API operation, SetInstanceHealth for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ResourceContentionFault func (c *AutoScaling) SetInstanceHealth(input *SetInstanceHealthInput) (*SetInstanceHealthOutput, error) { req, out := c.SetInstanceHealthRequest(input) err := req.Send() @@ -2882,10 +3579,25 @@ func (c *AutoScaling) SetInstanceProtectionRequest(input *SetInstanceProtectionI return } +// SetInstanceProtection API operation for Auto Scaling. +// // Updates the instance protection settings of the specified instances. // // For more information, see Instance Protection (http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/AutoScalingBehavior.InstanceTermination.html#instance-protection) // in the Auto Scaling User Guide. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Auto Scaling's +// API operation, SetInstanceProtection for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// LimitExceededFault +// ResourceContentionFault func (c *AutoScaling) SetInstanceProtection(input *SetInstanceProtectionInput) (*SetInstanceProtectionOutput, error) { req, out := c.SetInstanceProtectionRequest(input) err := req.Send() @@ -2935,6 +3647,8 @@ func (c *AutoScaling) SuspendProcessesRequest(input *ScalingProcessQuery) (req * return } +// SuspendProcesses API operation for Auto Scaling. +// // Suspends the specified Auto Scaling processes, or all processes, for the // specified Auto Scaling group. // @@ -2946,6 +3660,19 @@ func (c *AutoScaling) SuspendProcessesRequest(input *ScalingProcessQuery) (req * // For more information, see Suspending and Resuming Auto Scaling Processes // (http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/US_SuspendResume.html) // in the Auto Scaling User Guide. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Auto Scaling's +// API operation, SuspendProcesses for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ResourceInUseFault +// ResourceContentionFault func (c *AutoScaling) SuspendProcesses(input *ScalingProcessQuery) (*SuspendProcessesOutput, error) { req, out := c.SuspendProcessesRequest(input) err := req.Send() @@ -2993,11 +3720,26 @@ func (c *AutoScaling) TerminateInstanceInAutoScalingGroupRequest(input *Terminat return } +// TerminateInstanceInAutoScalingGroup API operation for Auto Scaling. +// // Terminates the specified instance and optionally adjusts the desired group // size. // // This call simply makes a termination request. The instance is not terminated // immediately. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Auto Scaling's +// API operation, TerminateInstanceInAutoScalingGroup for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ScalingActivityInProgressFault +// ResourceContentionFault func (c *AutoScaling) TerminateInstanceInAutoScalingGroup(input *TerminateInstanceInAutoScalingGroupInput) (*TerminateInstanceInAutoScalingGroupOutput, error) { req, out := c.TerminateInstanceInAutoScalingGroupRequest(input) err := req.Send() @@ -3047,6 +3789,8 @@ func (c *AutoScaling) UpdateAutoScalingGroupRequest(input *UpdateAutoScalingGrou return } +// UpdateAutoScalingGroup API operation for Auto Scaling. +// // Updates the configuration for the specified Auto Scaling group. // // To update an Auto Scaling group with a launch configuration with InstanceMonitoring @@ -3071,6 +3815,19 @@ func (c *AutoScaling) UpdateAutoScalingGroupRequest(input *UpdateAutoScalingGrou // to the new value of MaxSize. // // All other optional parameters are left unchanged if not specified. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Auto Scaling's +// API operation, UpdateAutoScalingGroup for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ScalingActivityInProgressFault +// ResourceContentionFault func (c *AutoScaling) UpdateAutoScalingGroup(input *UpdateAutoScalingGroupInput) (*UpdateAutoScalingGroupOutput, error) { req, out := c.UpdateAutoScalingGroupRequest(input) err := req.Send() diff --git a/service/cloudformation/api.go b/service/cloudformation/api.go index 0e7517da133..1440e75e9fe 100644 --- a/service/cloudformation/api.go +++ b/service/cloudformation/api.go @@ -55,10 +55,20 @@ func (c *CloudFormation) CancelUpdateStackRequest(input *CancelUpdateStackInput) return } +// CancelUpdateStack API operation for AWS CloudFormation. +// // Cancels an update on the specified stack. If the call completes successfully, // the stack rolls back the update and reverts to the previous stack configuration. // // You can cancel only stacks that are in the UPDATE_IN_PROGRESS state. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS CloudFormation's +// API operation, CancelUpdateStack for more information, and other errors +// that the API operation could return. func (c *CloudFormation) CancelUpdateStack(input *CancelUpdateStackInput) (*CancelUpdateStackOutput, error) { req, out := c.CancelUpdateStackRequest(input) err := req.Send() @@ -106,6 +116,8 @@ func (c *CloudFormation) ContinueUpdateRollbackRequest(input *ContinueUpdateRoll return } +// ContinueUpdateRollback API operation for AWS CloudFormation. +// // For a specified stack that is in the UPDATE_ROLLBACK_FAILED state, continues // rolling it back to the UPDATE_ROLLBACK_COMPLETE state. Depending on the cause // of the failure, you can manually fix the error (http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/troubleshooting.html#troubleshooting-errors-update-rollback-failed) @@ -119,6 +131,14 @@ func (c *CloudFormation) ContinueUpdateRollbackRequest(input *ContinueUpdateRoll // was deleted outside of AWS CloudFormation. Because AWS CloudFormation doesn't // know the database was deleted, it assumes that the database instance still // exists and attempts to roll back to it, causing the update rollback to fail. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS CloudFormation's +// API operation, ContinueUpdateRollback for more information, and other errors +// that the API operation could return. func (c *CloudFormation) ContinueUpdateRollback(input *ContinueUpdateRollbackInput) (*ContinueUpdateRollbackOutput, error) { req, out := c.ContinueUpdateRollbackRequest(input) err := req.Send() @@ -166,6 +186,8 @@ func (c *CloudFormation) CreateChangeSetRequest(input *CreateChangeSetInput) (re return } +// CreateChangeSet API operation for AWS CloudFormation. +// // Creates a list of changes for a stack. AWS CloudFormation generates the change // set by comparing the stack's information with the information that you submit. // A change set can help you understand which resources AWS CloudFormation will @@ -180,6 +202,20 @@ func (c *CloudFormation) CreateChangeSetRequest(input *CreateChangeSetInput) (re // After the call successfully completes, AWS CloudFormation starts creating // the change set. To check the status of the change set, use the DescribeChangeSet // action. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS CloudFormation's +// API operation, CreateChangeSet for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// AlreadyExistsException +// InsufficientCapabilitiesException +// LimitExceededException func (c *CloudFormation) CreateChangeSet(input *CreateChangeSetInput) (*CreateChangeSetOutput, error) { req, out := c.CreateChangeSetRequest(input) err := req.Send() @@ -227,9 +263,25 @@ func (c *CloudFormation) CreateStackRequest(input *CreateStackInput) (req *reque return } +// CreateStack API operation for AWS CloudFormation. +// // Creates a stack as specified in the template. After the call completes successfully, // the stack creation starts. You can check the status of the stack via the // DescribeStacks API. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS CloudFormation's +// API operation, CreateStack for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// LimitExceededException +// AlreadyExistsException +// InsufficientCapabilitiesException func (c *CloudFormation) CreateStack(input *CreateStackInput) (*CreateStackOutput, error) { req, out := c.CreateStackRequest(input) err := req.Send() @@ -277,11 +329,25 @@ func (c *CloudFormation) DeleteChangeSetRequest(input *DeleteChangeSetInput) (re return } +// DeleteChangeSet API operation for AWS CloudFormation. +// // Deletes the specified change set. Deleting change sets ensures that no one // executes the wrong change set. // // If the call successfully completes, AWS CloudFormation successfully deleted // the change set. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS CloudFormation's +// API operation, DeleteChangeSet for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidChangeSetStatusException func (c *CloudFormation) DeleteChangeSet(input *DeleteChangeSetInput) (*DeleteChangeSetOutput, error) { req, out := c.DeleteChangeSetRequest(input) err := req.Send() @@ -331,9 +397,19 @@ func (c *CloudFormation) DeleteStackRequest(input *DeleteStackInput) (req *reque return } +// DeleteStack API operation for AWS CloudFormation. +// // Deletes a specified stack. Once the call completes successfully, stack deletion // starts. Deleted stacks do not show up in the DescribeStacks API if the deletion // has been completed successfully. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS CloudFormation's +// API operation, DeleteStack for more information, and other errors +// that the API operation could return. func (c *CloudFormation) DeleteStack(input *DeleteStackInput) (*DeleteStackOutput, error) { req, out := c.DeleteStackRequest(input) err := req.Send() @@ -381,8 +457,18 @@ func (c *CloudFormation) DescribeAccountLimitsRequest(input *DescribeAccountLimi return } +// DescribeAccountLimits API operation for AWS CloudFormation. +// // Retrieves your account's AWS CloudFormation limits, such as the maximum number // of stacks that you can create in your account. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS CloudFormation's +// API operation, DescribeAccountLimits for more information, and other errors +// that the API operation could return. func (c *CloudFormation) DescribeAccountLimits(input *DescribeAccountLimitsInput) (*DescribeAccountLimitsOutput, error) { req, out := c.DescribeAccountLimitsRequest(input) err := req.Send() @@ -430,10 +516,24 @@ func (c *CloudFormation) DescribeChangeSetRequest(input *DescribeChangeSetInput) return } +// DescribeChangeSet API operation for AWS CloudFormation. +// // Returns the inputs for the change set and a list of changes that AWS CloudFormation // will make if you execute the change set. For more information, see Updating // Stacks Using Change Sets (http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-changesets.html) // in the AWS CloudFormation User Guide. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS CloudFormation's +// API operation, DescribeChangeSet for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ChangeSetNotFoundException func (c *CloudFormation) DescribeChangeSet(input *DescribeChangeSetInput) (*DescribeChangeSetOutput, error) { req, out := c.DescribeChangeSetRequest(input) err := req.Send() @@ -487,12 +587,22 @@ func (c *CloudFormation) DescribeStackEventsRequest(input *DescribeStackEventsIn return } +// DescribeStackEvents API operation for AWS CloudFormation. +// // Returns all stack related events for a specified stack in reverse chronological // order. For more information about a stack's event history, go to Stacks (http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/concept-stack.html) // in the AWS CloudFormation User Guide. // // You can list events for stacks that have failed to create or have been // deleted by specifying the unique stack identifier (stack ID). +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS CloudFormation's +// API operation, DescribeStackEvents for more information, and other errors +// that the API operation could return. func (c *CloudFormation) DescribeStackEvents(input *DescribeStackEventsInput) (*DescribeStackEventsOutput, error) { req, out := c.DescribeStackEventsRequest(input) err := req.Send() @@ -565,10 +675,20 @@ func (c *CloudFormation) DescribeStackResourceRequest(input *DescribeStackResour return } +// DescribeStackResource API operation for AWS CloudFormation. +// // Returns a description of the specified resource in the specified stack. // // For deleted stacks, DescribeStackResource returns resource information for // up to 90 days after the stack has been deleted. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS CloudFormation's +// API operation, DescribeStackResource for more information, and other errors +// that the API operation could return. func (c *CloudFormation) DescribeStackResource(input *DescribeStackResourceInput) (*DescribeStackResourceOutput, error) { req, out := c.DescribeStackResourceRequest(input) err := req.Send() @@ -616,6 +736,8 @@ func (c *CloudFormation) DescribeStackResourcesRequest(input *DescribeStackResou return } +// DescribeStackResources API operation for AWS CloudFormation. +// // Returns AWS resource descriptions for running and deleted stacks. If StackName // is specified, all the associated resources that are part of the stack are // returned. If PhysicalResourceId is specified, the associated resources of @@ -634,6 +756,14 @@ func (c *CloudFormation) DescribeStackResourcesRequest(input *DescribeStackResou // // A ValidationError is returned if you specify both StackName and PhysicalResourceId // in the same request. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS CloudFormation's +// API operation, DescribeStackResources for more information, and other errors +// that the API operation could return. func (c *CloudFormation) DescribeStackResources(input *DescribeStackResourcesInput) (*DescribeStackResourcesOutput, error) { req, out := c.DescribeStackResourcesRequest(input) err := req.Send() @@ -687,10 +817,20 @@ func (c *CloudFormation) DescribeStacksRequest(input *DescribeStacksInput) (req return } +// DescribeStacks API operation for AWS CloudFormation. +// // Returns the description for the specified stack; if no stack name was specified, // then it returns the description for all the stacks created. // // If the stack does not exist, an AmazonCloudFormationException is returned. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS CloudFormation's +// API operation, DescribeStacks for more information, and other errors +// that the API operation could return. func (c *CloudFormation) DescribeStacks(input *DescribeStacksInput) (*DescribeStacksOutput, error) { req, out := c.DescribeStacksRequest(input) err := req.Send() @@ -763,9 +903,19 @@ func (c *CloudFormation) EstimateTemplateCostRequest(input *EstimateTemplateCost return } +// EstimateTemplateCost API operation for AWS CloudFormation. +// // Returns the estimated monthly cost of a template. The return value is an // AWS Simple Monthly Calculator URL with a query string that describes the // resources required to run the template. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS CloudFormation's +// API operation, EstimateTemplateCost for more information, and other errors +// that the API operation could return. func (c *CloudFormation) EstimateTemplateCost(input *EstimateTemplateCostInput) (*EstimateTemplateCostOutput, error) { req, out := c.EstimateTemplateCostRequest(input) err := req.Send() @@ -813,6 +963,8 @@ func (c *CloudFormation) ExecuteChangeSetRequest(input *ExecuteChangeSetInput) ( return } +// ExecuteChangeSet API operation for AWS CloudFormation. +// // Updates a stack using the input information that was provided when the specified // change set was created. After the call successfully completes, AWS CloudFormation // starts updating the stack. Use the DescribeStacks action to view the status @@ -825,6 +977,19 @@ func (c *CloudFormation) ExecuteChangeSetRequest(input *ExecuteChangeSetInput) ( // If a stack policy is associated with the stack, AWS CloudFormation enforces // the policy during the update. You can't specify a temporary stack policy // that overrides the current policy. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS CloudFormation's +// API operation, ExecuteChangeSet for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidChangeSetStatusException +// ChangeSetNotFoundException func (c *CloudFormation) ExecuteChangeSet(input *ExecuteChangeSetInput) (*ExecuteChangeSetOutput, error) { req, out := c.ExecuteChangeSetRequest(input) err := req.Send() @@ -872,8 +1037,18 @@ func (c *CloudFormation) GetStackPolicyRequest(input *GetStackPolicyInput) (req return } +// GetStackPolicy API operation for AWS CloudFormation. +// // Returns the stack policy for a specified stack. If a stack doesn't have a // policy, a null value is returned. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS CloudFormation's +// API operation, GetStackPolicy for more information, and other errors +// that the API operation could return. func (c *CloudFormation) GetStackPolicy(input *GetStackPolicyInput) (*GetStackPolicyOutput, error) { req, out := c.GetStackPolicyRequest(input) err := req.Send() @@ -921,6 +1096,8 @@ func (c *CloudFormation) GetTemplateRequest(input *GetTemplateInput) (req *reque return } +// GetTemplate API operation for AWS CloudFormation. +// // Returns the template body for a specified stack. You can get the template // for running or deleted stacks. // @@ -928,6 +1105,14 @@ func (c *CloudFormation) GetTemplateRequest(input *GetTemplateInput) (req *reque // the stack has been deleted. // // If the template does not exist, a ValidationError is returned. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS CloudFormation's +// API operation, GetTemplate for more information, and other errors +// that the API operation could return. func (c *CloudFormation) GetTemplate(input *GetTemplateInput) (*GetTemplateOutput, error) { req, out := c.GetTemplateRequest(input) err := req.Send() @@ -975,6 +1160,8 @@ func (c *CloudFormation) GetTemplateSummaryRequest(input *GetTemplateSummaryInpu return } +// GetTemplateSummary API operation for AWS CloudFormation. +// // Returns information about a new or existing template. The GetTemplateSummary // action is useful for viewing parameter information, such as default parameter // values and parameter types, before you create or update a stack. @@ -985,6 +1172,14 @@ func (c *CloudFormation) GetTemplateSummaryRequest(input *GetTemplateSummaryInpu // For deleted stacks, GetTemplateSummary returns the template information // for up to 90 days after the stack has been deleted. If the template does // not exist, a ValidationError is returned. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS CloudFormation's +// API operation, GetTemplateSummary for more information, and other errors +// that the API operation could return. func (c *CloudFormation) GetTemplateSummary(input *GetTemplateSummaryInput) (*GetTemplateSummaryOutput, error) { req, out := c.GetTemplateSummaryRequest(input) err := req.Send() @@ -1032,9 +1227,19 @@ func (c *CloudFormation) ListChangeSetsRequest(input *ListChangeSetsInput) (req return } +// ListChangeSets API operation for AWS CloudFormation. +// // Returns the ID and status of each active change set for a stack. For example, // AWS CloudFormation lists change sets that are in the CREATE_IN_PROGRESS or // CREATE_PENDING state. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS CloudFormation's +// API operation, ListChangeSets for more information, and other errors +// that the API operation could return. func (c *CloudFormation) ListChangeSets(input *ListChangeSetsInput) (*ListChangeSetsOutput, error) { req, out := c.ListChangeSetsRequest(input) err := req.Send() @@ -1088,10 +1293,20 @@ func (c *CloudFormation) ListStackResourcesRequest(input *ListStackResourcesInpu return } +// ListStackResources API operation for AWS CloudFormation. +// // Returns descriptions of all resources of the specified stack. // // For deleted stacks, ListStackResources returns resource information for // up to 90 days after the stack has been deleted. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS CloudFormation's +// API operation, ListStackResources for more information, and other errors +// that the API operation could return. func (c *CloudFormation) ListStackResources(input *ListStackResourcesInput) (*ListStackResourcesOutput, error) { req, out := c.ListStackResourcesRequest(input) err := req.Send() @@ -1170,11 +1385,21 @@ func (c *CloudFormation) ListStacksRequest(input *ListStacksInput) (req *request return } +// ListStacks API operation for AWS CloudFormation. +// // Returns the summary information for stacks whose status matches the specified // StackStatusFilter. Summary information for stacks that have been deleted // is kept for 90 days after the stack is deleted. If no StackStatusFilter is // specified, summary information for all stacks is returned (including existing // stacks and stacks that have been deleted). +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS CloudFormation's +// API operation, ListStacks for more information, and other errors +// that the API operation could return. func (c *CloudFormation) ListStacks(input *ListStacksInput) (*ListStacksOutput, error) { req, out := c.ListStacksRequest(input) err := req.Send() @@ -1249,7 +1474,17 @@ func (c *CloudFormation) SetStackPolicyRequest(input *SetStackPolicyInput) (req return } +// SetStackPolicy API operation for AWS CloudFormation. +// // Sets a stack policy for a specified stack. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS CloudFormation's +// API operation, SetStackPolicy for more information, and other errors +// that the API operation could return. func (c *CloudFormation) SetStackPolicy(input *SetStackPolicyInput) (*SetStackPolicyOutput, error) { req, out := c.SetStackPolicyRequest(input) err := req.Send() @@ -1299,12 +1534,22 @@ func (c *CloudFormation) SignalResourceRequest(input *SignalResourceInput) (req return } +// SignalResource API operation for AWS CloudFormation. +// // Sends a signal to the specified resource with a success or failure status. // You can use the SignalResource API in conjunction with a creation policy // or update policy. AWS CloudFormation doesn't proceed with a stack creation // or update until resources receive the required number of signals or the timeout // period is exceeded. The SignalResource API is useful in cases where you want // to send signals from anywhere other than an Amazon EC2 instance. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS CloudFormation's +// API operation, SignalResource for more information, and other errors +// that the API operation could return. func (c *CloudFormation) SignalResource(input *SignalResourceInput) (*SignalResourceOutput, error) { req, out := c.SignalResourceRequest(input) err := req.Send() @@ -1352,6 +1597,8 @@ func (c *CloudFormation) UpdateStackRequest(input *UpdateStackInput) (req *reque return } +// UpdateStack API operation for AWS CloudFormation. +// // Updates a stack as specified in the template. After the call completes successfully, // the stack update starts. You can check the status of the stack via the DescribeStacks // action. @@ -1361,6 +1608,18 @@ func (c *CloudFormation) UpdateStackRequest(input *UpdateStackInput) (req *reque // // For more information about creating an update template, updating a stack, // and monitoring the progress of the update, see Updating a Stack (http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks.html). +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS CloudFormation's +// API operation, UpdateStack for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InsufficientCapabilitiesException func (c *CloudFormation) UpdateStack(input *UpdateStackInput) (*UpdateStackOutput, error) { req, out := c.UpdateStackRequest(input) err := req.Send() @@ -1408,10 +1667,20 @@ func (c *CloudFormation) ValidateTemplateRequest(input *ValidateTemplateInput) ( return } +// ValidateTemplate API operation for AWS CloudFormation. +// // Validates a specified template. AWS CloudFormation first checks if the template // is valid JSON. If it isn't, AWS CloudFormation checks if the template is // valid YAML. If both these checks fail, AWS CloudFormation returns a template // validation error. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS CloudFormation's +// API operation, ValidateTemplate for more information, and other errors +// that the API operation could return. func (c *CloudFormation) ValidateTemplate(input *ValidateTemplateInput) (*ValidateTemplateOutput, error) { req, out := c.ValidateTemplateRequest(input) err := req.Send() diff --git a/service/cloudfront/api.go b/service/cloudfront/api.go index a663f055542..227ed4d6a06 100644 --- a/service/cloudfront/api.go +++ b/service/cloudfront/api.go @@ -54,7 +54,25 @@ func (c *CloudFront) CreateCloudFrontOriginAccessIdentityRequest(input *CreateCl return } +// CreateCloudFrontOriginAccessIdentity API operation for Amazon CloudFront. +// // Create a new origin access identity. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon CloudFront's +// API operation, CreateCloudFrontOriginAccessIdentity for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// CloudFrontOriginAccessIdentityAlreadyExists +// MissingBody +// TooManyCloudFrontOriginAccessIdentities +// InvalidArgument +// InconsistentQuantities func (c *CloudFront) CreateCloudFrontOriginAccessIdentity(input *CreateCloudFrontOriginAccessIdentityInput) (*CreateCloudFrontOriginAccessIdentityOutput, error) { req, out := c.CreateCloudFrontOriginAccessIdentityRequest(input) err := req.Send() @@ -102,7 +120,55 @@ func (c *CloudFront) CreateDistributionRequest(input *CreateDistributionInput) ( return } +// CreateDistribution API operation for Amazon CloudFront. +// // Create a new distribution. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon CloudFront's +// API operation, CreateDistribution for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// CNAMEAlreadyExists +// DistributionAlreadyExists +// InvalidOrigin +// InvalidOriginAccessIdentity +// AccessDenied +// TooManyTrustedSigners +// TrustedSignerDoesNotExist +// InvalidViewerCertificate +// InvalidMinimumProtocolVersion +// MissingBody +// TooManyDistributionCNAMEs +// TooManyDistributions +// InvalidDefaultRootObject +// InvalidRelativePath +// InvalidErrorCode +// InvalidResponseCode +// InvalidArgument +// InvalidRequiredProtocol +// NoSuchOrigin +// TooManyOrigins +// TooManyCacheBehaviors +// TooManyCookieNamesInWhiteList +// InvalidForwardCookies +// TooManyHeadersInForwardedValues +// InvalidHeadersForS3Origin +// InconsistentQuantities +// TooManyCertificates +// InvalidLocationCode +// InvalidGeoRestrictionParameter +// InvalidProtocolSettings +// InvalidTTLOrder +// InvalidWebACLId +// TooManyOriginCustomHeaders +// TooManyQueryStringParameters +// InvalidQueryStringParameters func (c *CloudFront) CreateDistribution(input *CreateDistributionInput) (*CreateDistributionOutput, error) { req, out := c.CreateDistributionRequest(input) err := req.Send() @@ -150,7 +216,56 @@ func (c *CloudFront) CreateDistributionWithTagsRequest(input *CreateDistribution return } +// CreateDistributionWithTags API operation for Amazon CloudFront. +// // Create a new distribution with tags. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon CloudFront's +// API operation, CreateDistributionWithTags for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// CNAMEAlreadyExists +// DistributionAlreadyExists +// InvalidOrigin +// InvalidOriginAccessIdentity +// AccessDenied +// TooManyTrustedSigners +// TrustedSignerDoesNotExist +// InvalidViewerCertificate +// InvalidMinimumProtocolVersion +// MissingBody +// TooManyDistributionCNAMEs +// TooManyDistributions +// InvalidDefaultRootObject +// InvalidRelativePath +// InvalidErrorCode +// InvalidResponseCode +// InvalidArgument +// InvalidRequiredProtocol +// NoSuchOrigin +// TooManyOrigins +// TooManyCacheBehaviors +// TooManyCookieNamesInWhiteList +// InvalidForwardCookies +// TooManyHeadersInForwardedValues +// InvalidHeadersForS3Origin +// InconsistentQuantities +// TooManyCertificates +// InvalidLocationCode +// InvalidGeoRestrictionParameter +// InvalidProtocolSettings +// InvalidTTLOrder +// InvalidWebACLId +// TooManyOriginCustomHeaders +// InvalidTagging +// TooManyQueryStringParameters +// InvalidQueryStringParameters func (c *CloudFront) CreateDistributionWithTags(input *CreateDistributionWithTagsInput) (*CreateDistributionWithTagsOutput, error) { req, out := c.CreateDistributionWithTagsRequest(input) err := req.Send() @@ -198,7 +313,27 @@ func (c *CloudFront) CreateInvalidationRequest(input *CreateInvalidationInput) ( return } +// CreateInvalidation API operation for Amazon CloudFront. +// // Create a new invalidation. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon CloudFront's +// API operation, CreateInvalidation for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// AccessDenied +// MissingBody +// InvalidArgument +// NoSuchDistribution +// BatchTooLarge +// TooManyInvalidationsInProgress +// InconsistentQuantities func (c *CloudFront) CreateInvalidation(input *CreateInvalidationInput) (*CreateInvalidationOutput, error) { req, out := c.CreateInvalidationRequest(input) err := req.Send() @@ -246,7 +381,32 @@ func (c *CloudFront) CreateStreamingDistributionRequest(input *CreateStreamingDi return } +// CreateStreamingDistribution API operation for Amazon CloudFront. +// // Create a new streaming distribution. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon CloudFront's +// API operation, CreateStreamingDistribution for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// CNAMEAlreadyExists +// StreamingDistributionAlreadyExists +// InvalidOrigin +// InvalidOriginAccessIdentity +// AccessDenied +// TooManyTrustedSigners +// TrustedSignerDoesNotExist +// MissingBody +// TooManyStreamingDistributionCNAMEs +// TooManyStreamingDistributions +// InvalidArgument +// InconsistentQuantities func (c *CloudFront) CreateStreamingDistribution(input *CreateStreamingDistributionInput) (*CreateStreamingDistributionOutput, error) { req, out := c.CreateStreamingDistributionRequest(input) err := req.Send() @@ -294,7 +454,33 @@ func (c *CloudFront) CreateStreamingDistributionWithTagsRequest(input *CreateStr return } +// CreateStreamingDistributionWithTags API operation for Amazon CloudFront. +// // Create a new streaming distribution with tags. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon CloudFront's +// API operation, CreateStreamingDistributionWithTags for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// CNAMEAlreadyExists +// StreamingDistributionAlreadyExists +// InvalidOrigin +// InvalidOriginAccessIdentity +// AccessDenied +// TooManyTrustedSigners +// TrustedSignerDoesNotExist +// MissingBody +// TooManyStreamingDistributionCNAMEs +// TooManyStreamingDistributions +// InvalidArgument +// InconsistentQuantities +// InvalidTagging func (c *CloudFront) CreateStreamingDistributionWithTags(input *CreateStreamingDistributionWithTagsInput) (*CreateStreamingDistributionWithTagsOutput, error) { req, out := c.CreateStreamingDistributionWithTagsRequest(input) err := req.Send() @@ -344,7 +530,25 @@ func (c *CloudFront) DeleteCloudFrontOriginAccessIdentityRequest(input *DeleteCl return } +// DeleteCloudFrontOriginAccessIdentity API operation for Amazon CloudFront. +// // Delete an origin access identity. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon CloudFront's +// API operation, DeleteCloudFrontOriginAccessIdentity for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// AccessDenied +// InvalidIfMatchVersion +// NoSuchCloudFrontOriginAccessIdentity +// PreconditionFailed +// CloudFrontOriginAccessIdentityInUse func (c *CloudFront) DeleteCloudFrontOriginAccessIdentity(input *DeleteCloudFrontOriginAccessIdentityInput) (*DeleteCloudFrontOriginAccessIdentityOutput, error) { req, out := c.DeleteCloudFrontOriginAccessIdentityRequest(input) err := req.Send() @@ -394,7 +598,25 @@ func (c *CloudFront) DeleteDistributionRequest(input *DeleteDistributionInput) ( return } +// DeleteDistribution API operation for Amazon CloudFront. +// // Delete a distribution. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon CloudFront's +// API operation, DeleteDistribution for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// AccessDenied +// DistributionNotDisabled +// InvalidIfMatchVersion +// NoSuchDistribution +// PreconditionFailed func (c *CloudFront) DeleteDistribution(input *DeleteDistributionInput) (*DeleteDistributionOutput, error) { req, out := c.DeleteDistributionRequest(input) err := req.Send() @@ -444,7 +666,25 @@ func (c *CloudFront) DeleteStreamingDistributionRequest(input *DeleteStreamingDi return } +// DeleteStreamingDistribution API operation for Amazon CloudFront. +// // Delete a streaming distribution. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon CloudFront's +// API operation, DeleteStreamingDistribution for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// AccessDenied +// StreamingDistributionNotDisabled +// InvalidIfMatchVersion +// NoSuchStreamingDistribution +// PreconditionFailed func (c *CloudFront) DeleteStreamingDistribution(input *DeleteStreamingDistributionInput) (*DeleteStreamingDistributionOutput, error) { req, out := c.DeleteStreamingDistributionRequest(input) err := req.Send() @@ -492,7 +732,22 @@ func (c *CloudFront) GetCloudFrontOriginAccessIdentityRequest(input *GetCloudFro return } +// GetCloudFrontOriginAccessIdentity API operation for Amazon CloudFront. +// // Get the information about an origin access identity. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon CloudFront's +// API operation, GetCloudFrontOriginAccessIdentity for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// NoSuchCloudFrontOriginAccessIdentity +// AccessDenied func (c *CloudFront) GetCloudFrontOriginAccessIdentity(input *GetCloudFrontOriginAccessIdentityInput) (*GetCloudFrontOriginAccessIdentityOutput, error) { req, out := c.GetCloudFrontOriginAccessIdentityRequest(input) err := req.Send() @@ -540,7 +795,22 @@ func (c *CloudFront) GetCloudFrontOriginAccessIdentityConfigRequest(input *GetCl return } +// GetCloudFrontOriginAccessIdentityConfig API operation for Amazon CloudFront. +// // Get the configuration information about an origin access identity. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon CloudFront's +// API operation, GetCloudFrontOriginAccessIdentityConfig for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// NoSuchCloudFrontOriginAccessIdentity +// AccessDenied func (c *CloudFront) GetCloudFrontOriginAccessIdentityConfig(input *GetCloudFrontOriginAccessIdentityConfigInput) (*GetCloudFrontOriginAccessIdentityConfigOutput, error) { req, out := c.GetCloudFrontOriginAccessIdentityConfigRequest(input) err := req.Send() @@ -588,7 +858,22 @@ func (c *CloudFront) GetDistributionRequest(input *GetDistributionInput) (req *r return } +// GetDistribution API operation for Amazon CloudFront. +// // Get the information about a distribution. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon CloudFront's +// API operation, GetDistribution for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// NoSuchDistribution +// AccessDenied func (c *CloudFront) GetDistribution(input *GetDistributionInput) (*GetDistributionOutput, error) { req, out := c.GetDistributionRequest(input) err := req.Send() @@ -636,7 +921,22 @@ func (c *CloudFront) GetDistributionConfigRequest(input *GetDistributionConfigIn return } +// GetDistributionConfig API operation for Amazon CloudFront. +// // Get the configuration information about a distribution. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon CloudFront's +// API operation, GetDistributionConfig for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// NoSuchDistribution +// AccessDenied func (c *CloudFront) GetDistributionConfig(input *GetDistributionConfigInput) (*GetDistributionConfigOutput, error) { req, out := c.GetDistributionConfigRequest(input) err := req.Send() @@ -684,7 +984,23 @@ func (c *CloudFront) GetInvalidationRequest(input *GetInvalidationInput) (req *r return } +// GetInvalidation API operation for Amazon CloudFront. +// // Get the information about an invalidation. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon CloudFront's +// API operation, GetInvalidation for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// NoSuchInvalidation +// NoSuchDistribution +// AccessDenied func (c *CloudFront) GetInvalidation(input *GetInvalidationInput) (*GetInvalidationOutput, error) { req, out := c.GetInvalidationRequest(input) err := req.Send() @@ -732,7 +1048,22 @@ func (c *CloudFront) GetStreamingDistributionRequest(input *GetStreamingDistribu return } +// GetStreamingDistribution API operation for Amazon CloudFront. +// // Get the information about a streaming distribution. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon CloudFront's +// API operation, GetStreamingDistribution for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// NoSuchStreamingDistribution +// AccessDenied func (c *CloudFront) GetStreamingDistribution(input *GetStreamingDistributionInput) (*GetStreamingDistributionOutput, error) { req, out := c.GetStreamingDistributionRequest(input) err := req.Send() @@ -780,7 +1111,22 @@ func (c *CloudFront) GetStreamingDistributionConfigRequest(input *GetStreamingDi return } +// GetStreamingDistributionConfig API operation for Amazon CloudFront. +// // Get the configuration information about a streaming distribution. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon CloudFront's +// API operation, GetStreamingDistributionConfig for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// NoSuchStreamingDistribution +// AccessDenied func (c *CloudFront) GetStreamingDistributionConfig(input *GetStreamingDistributionConfigInput) (*GetStreamingDistributionConfigOutput, error) { req, out := c.GetStreamingDistributionConfigRequest(input) err := req.Send() @@ -834,7 +1180,21 @@ func (c *CloudFront) ListCloudFrontOriginAccessIdentitiesRequest(input *ListClou return } +// ListCloudFrontOriginAccessIdentities API operation for Amazon CloudFront. +// // List origin access identities. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon CloudFront's +// API operation, ListCloudFrontOriginAccessIdentities for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidArgument func (c *CloudFront) ListCloudFrontOriginAccessIdentities(input *ListCloudFrontOriginAccessIdentitiesInput) (*ListCloudFrontOriginAccessIdentitiesOutput, error) { req, out := c.ListCloudFrontOriginAccessIdentitiesRequest(input) err := req.Send() @@ -913,7 +1273,21 @@ func (c *CloudFront) ListDistributionsRequest(input *ListDistributionsInput) (re return } +// ListDistributions API operation for Amazon CloudFront. +// // List distributions. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon CloudFront's +// API operation, ListDistributions for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidArgument func (c *CloudFront) ListDistributions(input *ListDistributionsInput) (*ListDistributionsOutput, error) { req, out := c.ListDistributionsRequest(input) err := req.Send() @@ -986,7 +1360,22 @@ func (c *CloudFront) ListDistributionsByWebACLIdRequest(input *ListDistributions return } +// ListDistributionsByWebACLId API operation for Amazon CloudFront. +// // List the distributions that are associated with a specified AWS WAF web ACL. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon CloudFront's +// API operation, ListDistributionsByWebACLId for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidArgument +// InvalidWebACLId func (c *CloudFront) ListDistributionsByWebACLId(input *ListDistributionsByWebACLIdInput) (*ListDistributionsByWebACLIdOutput, error) { req, out := c.ListDistributionsByWebACLIdRequest(input) err := req.Send() @@ -1040,7 +1429,23 @@ func (c *CloudFront) ListInvalidationsRequest(input *ListInvalidationsInput) (re return } +// ListInvalidations API operation for Amazon CloudFront. +// // List invalidation batches. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon CloudFront's +// API operation, ListInvalidations for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidArgument +// NoSuchDistribution +// AccessDenied func (c *CloudFront) ListInvalidations(input *ListInvalidationsInput) (*ListInvalidationsOutput, error) { req, out := c.ListInvalidationsRequest(input) err := req.Send() @@ -1119,7 +1524,21 @@ func (c *CloudFront) ListStreamingDistributionsRequest(input *ListStreamingDistr return } +// ListStreamingDistributions API operation for Amazon CloudFront. +// // List streaming distributions. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon CloudFront's +// API operation, ListStreamingDistributions for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidArgument func (c *CloudFront) ListStreamingDistributions(input *ListStreamingDistributionsInput) (*ListStreamingDistributionsOutput, error) { req, out := c.ListStreamingDistributionsRequest(input) err := req.Send() @@ -1192,7 +1611,24 @@ func (c *CloudFront) ListTagsForResourceRequest(input *ListTagsForResourceInput) return } +// ListTagsForResource API operation for Amazon CloudFront. +// // List tags for a CloudFront resource. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon CloudFront's +// API operation, ListTagsForResource for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// AccessDenied +// InvalidArgument +// InvalidTagging +// NoSuchResource func (c *CloudFront) ListTagsForResource(input *ListTagsForResourceInput) (*ListTagsForResourceOutput, error) { req, out := c.ListTagsForResourceRequest(input) err := req.Send() @@ -1242,7 +1678,24 @@ func (c *CloudFront) TagResourceRequest(input *TagResourceInput) (req *request.R return } +// TagResource API operation for Amazon CloudFront. +// // Add tags to a CloudFront resource. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon CloudFront's +// API operation, TagResource for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// AccessDenied +// InvalidArgument +// InvalidTagging +// NoSuchResource func (c *CloudFront) TagResource(input *TagResourceInput) (*TagResourceOutput, error) { req, out := c.TagResourceRequest(input) err := req.Send() @@ -1292,7 +1745,24 @@ func (c *CloudFront) UntagResourceRequest(input *UntagResourceInput) (req *reque return } +// UntagResource API operation for Amazon CloudFront. +// // Remove tags from a CloudFront resource. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon CloudFront's +// API operation, UntagResource for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// AccessDenied +// InvalidArgument +// InvalidTagging +// NoSuchResource func (c *CloudFront) UntagResource(input *UntagResourceInput) (*UntagResourceOutput, error) { req, out := c.UntagResourceRequest(input) err := req.Send() @@ -1340,7 +1810,28 @@ func (c *CloudFront) UpdateCloudFrontOriginAccessIdentityRequest(input *UpdateCl return } +// UpdateCloudFrontOriginAccessIdentity API operation for Amazon CloudFront. +// // Update an origin access identity. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon CloudFront's +// API operation, UpdateCloudFrontOriginAccessIdentity for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// AccessDenied +// IllegalUpdate +// InvalidIfMatchVersion +// MissingBody +// NoSuchCloudFrontOriginAccessIdentity +// PreconditionFailed +// InvalidArgument +// InconsistentQuantities func (c *CloudFront) UpdateCloudFrontOriginAccessIdentity(input *UpdateCloudFrontOriginAccessIdentityInput) (*UpdateCloudFrontOriginAccessIdentityOutput, error) { req, out := c.UpdateCloudFrontOriginAccessIdentityRequest(input) err := req.Send() @@ -1388,7 +1879,55 @@ func (c *CloudFront) UpdateDistributionRequest(input *UpdateDistributionInput) ( return } +// UpdateDistribution API operation for Amazon CloudFront. +// // Update a distribution. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon CloudFront's +// API operation, UpdateDistribution for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// AccessDenied +// CNAMEAlreadyExists +// IllegalUpdate +// InvalidIfMatchVersion +// MissingBody +// NoSuchDistribution +// PreconditionFailed +// TooManyDistributionCNAMEs +// InvalidDefaultRootObject +// InvalidRelativePath +// InvalidErrorCode +// InvalidResponseCode +// InvalidArgument +// InvalidOriginAccessIdentity +// TooManyTrustedSigners +// TrustedSignerDoesNotExist +// InvalidViewerCertificate +// InvalidMinimumProtocolVersion +// InvalidRequiredProtocol +// NoSuchOrigin +// TooManyOrigins +// TooManyCacheBehaviors +// TooManyCookieNamesInWhiteList +// InvalidForwardCookies +// TooManyHeadersInForwardedValues +// InvalidHeadersForS3Origin +// InconsistentQuantities +// TooManyCertificates +// InvalidLocationCode +// InvalidGeoRestrictionParameter +// InvalidTTLOrder +// InvalidWebACLId +// TooManyOriginCustomHeaders +// TooManyQueryStringParameters +// InvalidQueryStringParameters func (c *CloudFront) UpdateDistribution(input *UpdateDistributionInput) (*UpdateDistributionOutput, error) { req, out := c.UpdateDistributionRequest(input) err := req.Send() @@ -1436,7 +1975,33 @@ func (c *CloudFront) UpdateStreamingDistributionRequest(input *UpdateStreamingDi return } +// UpdateStreamingDistribution API operation for Amazon CloudFront. +// // Update a streaming distribution. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon CloudFront's +// API operation, UpdateStreamingDistribution for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// AccessDenied +// CNAMEAlreadyExists +// IllegalUpdate +// InvalidIfMatchVersion +// MissingBody +// NoSuchStreamingDistribution +// PreconditionFailed +// TooManyStreamingDistributionCNAMEs +// InvalidArgument +// InvalidOriginAccessIdentity +// TooManyTrustedSigners +// TrustedSignerDoesNotExist +// InconsistentQuantities func (c *CloudFront) UpdateStreamingDistribution(input *UpdateStreamingDistributionInput) (*UpdateStreamingDistributionOutput, error) { req, out := c.UpdateStreamingDistributionRequest(input) err := req.Send() diff --git a/service/cloudhsm/api.go b/service/cloudhsm/api.go index 23e4e7d94f8..857f6d0ee30 100644 --- a/service/cloudhsm/api.go +++ b/service/cloudhsm/api.go @@ -51,10 +51,26 @@ func (c *CloudHSM) AddTagsToResourceRequest(input *AddTagsToResourceInput) (req return } +// AddTagsToResource API operation for Amazon CloudHSM. +// // Adds or overwrites one or more tags for the specified AWS CloudHSM resource. // // Each tag consists of a key and a value. Tag keys must be unique to each // resource. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon CloudHSM's +// API operation, AddTagsToResource for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// CloudHsmServiceException +// CloudHsmInternalException +// InvalidRequestException func (c *CloudHSM) AddTagsToResource(input *AddTagsToResourceInput) (*AddTagsToResourceOutput, error) { req, out := c.AddTagsToResourceRequest(input) err := req.Send() @@ -102,8 +118,24 @@ func (c *CloudHSM) CreateHapgRequest(input *CreateHapgInput) (req *request.Reque return } +// CreateHapg API operation for Amazon CloudHSM. +// // Creates a high-availability partition group. A high-availability partition // group is a group of partitions that spans multiple physical HSMs. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon CloudHSM's +// API operation, CreateHapg for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// CloudHsmServiceException +// CloudHsmInternalException +// InvalidRequestException func (c *CloudHSM) CreateHapg(input *CreateHapgInput) (*CreateHapgOutput, error) { req, out := c.CreateHapgRequest(input) err := req.Send() @@ -151,6 +183,8 @@ func (c *CloudHSM) CreateHsmRequest(input *CreateHsmInput) (req *request.Request return } +// CreateHsm API operation for Amazon CloudHSM. +// // Creates an uninitialized HSM instance. // // There is an upfront fee charged for each HSM instance that you create with @@ -162,6 +196,20 @@ func (c *CloudHSM) CreateHsmRequest(input *CreateHsmInput) (req *request.Request // It can take up to 20 minutes to create and provision an HSM. You can monitor // the status of the HSM with the DescribeHsm operation. The HSM is ready to // be initialized when the status changes to RUNNING. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon CloudHSM's +// API operation, CreateHsm for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// CloudHsmServiceException +// CloudHsmInternalException +// InvalidRequestException func (c *CloudHSM) CreateHsm(input *CreateHsmInput) (*CreateHsmOutput, error) { req, out := c.CreateHsmRequest(input) err := req.Send() @@ -209,7 +257,23 @@ func (c *CloudHSM) CreateLunaClientRequest(input *CreateLunaClientInput) (req *r return } +// CreateLunaClient API operation for Amazon CloudHSM. +// // Creates an HSM client. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon CloudHSM's +// API operation, CreateLunaClient for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// CloudHsmServiceException +// CloudHsmInternalException +// InvalidRequestException func (c *CloudHSM) CreateLunaClient(input *CreateLunaClientInput) (*CreateLunaClientOutput, error) { req, out := c.CreateLunaClientRequest(input) err := req.Send() @@ -257,7 +321,23 @@ func (c *CloudHSM) DeleteHapgRequest(input *DeleteHapgInput) (req *request.Reque return } +// DeleteHapg API operation for Amazon CloudHSM. +// // Deletes a high-availability partition group. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon CloudHSM's +// API operation, DeleteHapg for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// CloudHsmServiceException +// CloudHsmInternalException +// InvalidRequestException func (c *CloudHSM) DeleteHapg(input *DeleteHapgInput) (*DeleteHapgOutput, error) { req, out := c.DeleteHapgRequest(input) err := req.Send() @@ -305,8 +385,24 @@ func (c *CloudHSM) DeleteHsmRequest(input *DeleteHsmInput) (req *request.Request return } +// DeleteHsm API operation for Amazon CloudHSM. +// // Deletes an HSM. After completion, this operation cannot be undone and your // key material cannot be recovered. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon CloudHSM's +// API operation, DeleteHsm for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// CloudHsmServiceException +// CloudHsmInternalException +// InvalidRequestException func (c *CloudHSM) DeleteHsm(input *DeleteHsmInput) (*DeleteHsmOutput, error) { req, out := c.DeleteHsmRequest(input) err := req.Send() @@ -354,7 +450,23 @@ func (c *CloudHSM) DeleteLunaClientRequest(input *DeleteLunaClientInput) (req *r return } +// DeleteLunaClient API operation for Amazon CloudHSM. +// // Deletes a client. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon CloudHSM's +// API operation, DeleteLunaClient for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// CloudHsmServiceException +// CloudHsmInternalException +// InvalidRequestException func (c *CloudHSM) DeleteLunaClient(input *DeleteLunaClientInput) (*DeleteLunaClientOutput, error) { req, out := c.DeleteLunaClientRequest(input) err := req.Send() @@ -402,7 +514,23 @@ func (c *CloudHSM) DescribeHapgRequest(input *DescribeHapgInput) (req *request.R return } +// DescribeHapg API operation for Amazon CloudHSM. +// // Retrieves information about a high-availability partition group. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon CloudHSM's +// API operation, DescribeHapg for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// CloudHsmServiceException +// CloudHsmInternalException +// InvalidRequestException func (c *CloudHSM) DescribeHapg(input *DescribeHapgInput) (*DescribeHapgOutput, error) { req, out := c.DescribeHapgRequest(input) err := req.Send() @@ -450,8 +578,24 @@ func (c *CloudHSM) DescribeHsmRequest(input *DescribeHsmInput) (req *request.Req return } +// DescribeHsm API operation for Amazon CloudHSM. +// // Retrieves information about an HSM. You can identify the HSM by its ARN or // its serial number. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon CloudHSM's +// API operation, DescribeHsm for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// CloudHsmServiceException +// CloudHsmInternalException +// InvalidRequestException func (c *CloudHSM) DescribeHsm(input *DescribeHsmInput) (*DescribeHsmOutput, error) { req, out := c.DescribeHsmRequest(input) err := req.Send() @@ -499,7 +643,23 @@ func (c *CloudHSM) DescribeLunaClientRequest(input *DescribeLunaClientInput) (re return } +// DescribeLunaClient API operation for Amazon CloudHSM. +// // Retrieves information about an HSM client. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon CloudHSM's +// API operation, DescribeLunaClient for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// CloudHsmServiceException +// CloudHsmInternalException +// InvalidRequestException func (c *CloudHSM) DescribeLunaClient(input *DescribeLunaClientInput) (*DescribeLunaClientOutput, error) { req, out := c.DescribeLunaClientRequest(input) err := req.Send() @@ -547,8 +707,24 @@ func (c *CloudHSM) GetConfigRequest(input *GetConfigInput) (req *request.Request return } +// GetConfig API operation for Amazon CloudHSM. +// // Gets the configuration files necessary to connect to all high availability // partition groups the client is associated with. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon CloudHSM's +// API operation, GetConfig for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// CloudHsmServiceException +// CloudHsmInternalException +// InvalidRequestException func (c *CloudHSM) GetConfig(input *GetConfigInput) (*GetConfigOutput, error) { req, out := c.GetConfigRequest(input) err := req.Send() @@ -596,7 +772,23 @@ func (c *CloudHSM) ListAvailableZonesRequest(input *ListAvailableZonesInput) (re return } +// ListAvailableZones API operation for Amazon CloudHSM. +// // Lists the Availability Zones that have available AWS CloudHSM capacity. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon CloudHSM's +// API operation, ListAvailableZones for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// CloudHsmServiceException +// CloudHsmInternalException +// InvalidRequestException func (c *CloudHSM) ListAvailableZones(input *ListAvailableZonesInput) (*ListAvailableZonesOutput, error) { req, out := c.ListAvailableZonesRequest(input) err := req.Send() @@ -644,12 +836,28 @@ func (c *CloudHSM) ListHapgsRequest(input *ListHapgsInput) (req *request.Request return } +// ListHapgs API operation for Amazon CloudHSM. +// // Lists the high-availability partition groups for the account. // // This operation supports pagination with the use of the NextToken member. // If more results are available, the NextToken member of the response contains // a token that you pass in the next call to ListHapgs to retrieve the next // set of items. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon CloudHSM's +// API operation, ListHapgs for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// CloudHsmServiceException +// CloudHsmInternalException +// InvalidRequestException func (c *CloudHSM) ListHapgs(input *ListHapgsInput) (*ListHapgsOutput, error) { req, out := c.ListHapgsRequest(input) err := req.Send() @@ -697,6 +905,8 @@ func (c *CloudHSM) ListHsmsRequest(input *ListHsmsInput) (req *request.Request, return } +// ListHsms API operation for Amazon CloudHSM. +// // Retrieves the identifiers of all of the HSMs provisioned for the current // customer. // @@ -704,6 +914,20 @@ func (c *CloudHSM) ListHsmsRequest(input *ListHsmsInput) (req *request.Request, // If more results are available, the NextToken member of the response contains // a token that you pass in the next call to ListHsms to retrieve the next set // of items. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon CloudHSM's +// API operation, ListHsms for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// CloudHsmServiceException +// CloudHsmInternalException +// InvalidRequestException func (c *CloudHSM) ListHsms(input *ListHsmsInput) (*ListHsmsOutput, error) { req, out := c.ListHsmsRequest(input) err := req.Send() @@ -751,12 +975,28 @@ func (c *CloudHSM) ListLunaClientsRequest(input *ListLunaClientsInput) (req *req return } +// ListLunaClients API operation for Amazon CloudHSM. +// // Lists all of the clients. // // This operation supports pagination with the use of the NextToken member. // If more results are available, the NextToken member of the response contains // a token that you pass in the next call to ListLunaClients to retrieve the // next set of items. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon CloudHSM's +// API operation, ListLunaClients for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// CloudHsmServiceException +// CloudHsmInternalException +// InvalidRequestException func (c *CloudHSM) ListLunaClients(input *ListLunaClientsInput) (*ListLunaClientsOutput, error) { req, out := c.ListLunaClientsRequest(input) err := req.Send() @@ -804,7 +1044,23 @@ func (c *CloudHSM) ListTagsForResourceRequest(input *ListTagsForResourceInput) ( return } +// ListTagsForResource API operation for Amazon CloudHSM. +// // Returns a list of all tags for the specified AWS CloudHSM resource. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon CloudHSM's +// API operation, ListTagsForResource for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// CloudHsmServiceException +// CloudHsmInternalException +// InvalidRequestException func (c *CloudHSM) ListTagsForResource(input *ListTagsForResourceInput) (*ListTagsForResourceOutput, error) { req, out := c.ListTagsForResourceRequest(input) err := req.Send() @@ -852,7 +1108,23 @@ func (c *CloudHSM) ModifyHapgRequest(input *ModifyHapgInput) (req *request.Reque return } +// ModifyHapg API operation for Amazon CloudHSM. +// // Modifies an existing high-availability partition group. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon CloudHSM's +// API operation, ModifyHapg for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// CloudHsmServiceException +// CloudHsmInternalException +// InvalidRequestException func (c *CloudHSM) ModifyHapg(input *ModifyHapgInput) (*ModifyHapgOutput, error) { req, out := c.ModifyHapgRequest(input) err := req.Send() @@ -900,6 +1172,8 @@ func (c *CloudHSM) ModifyHsmRequest(input *ModifyHsmInput) (req *request.Request return } +// ModifyHsm API operation for Amazon CloudHSM. +// // Modifies an HSM. // // This operation can result in the HSM being offline for up to 15 minutes @@ -907,6 +1181,20 @@ func (c *CloudHSM) ModifyHsmRequest(input *ModifyHsmInput) (req *request.Request // HSM, you should ensure that your AWS CloudHSM service is configured for high // availability, and consider executing this operation during a maintenance // window. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon CloudHSM's +// API operation, ModifyHsm for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// CloudHsmServiceException +// CloudHsmInternalException +// InvalidRequestException func (c *CloudHSM) ModifyHsm(input *ModifyHsmInput) (*ModifyHsmOutput, error) { req, out := c.ModifyHsmRequest(input) err := req.Send() @@ -954,10 +1242,24 @@ func (c *CloudHSM) ModifyLunaClientRequest(input *ModifyLunaClientInput) (req *r return } +// ModifyLunaClient API operation for Amazon CloudHSM. +// // Modifies the certificate used by the client. // // This action can potentially start a workflow to install the new certificate // on the client's HSMs. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon CloudHSM's +// API operation, ModifyLunaClient for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// CloudHsmServiceException func (c *CloudHSM) ModifyLunaClient(input *ModifyLunaClientInput) (*ModifyLunaClientOutput, error) { req, out := c.ModifyLunaClientRequest(input) err := req.Send() @@ -1005,10 +1307,26 @@ func (c *CloudHSM) RemoveTagsFromResourceRequest(input *RemoveTagsFromResourceIn return } +// RemoveTagsFromResource API operation for Amazon CloudHSM. +// // Removes one or more tags from the specified AWS CloudHSM resource. // // To remove a tag, specify only the tag key to remove (not the value). To // overwrite the value for an existing tag, use AddTagsToResource. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon CloudHSM's +// API operation, RemoveTagsFromResource for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// CloudHsmServiceException +// CloudHsmInternalException +// InvalidRequestException func (c *CloudHSM) RemoveTagsFromResource(input *RemoveTagsFromResourceInput) (*RemoveTagsFromResourceOutput, error) { req, out := c.RemoveTagsFromResourceRequest(input) err := req.Send() diff --git a/service/cloudsearch/api.go b/service/cloudsearch/api.go index 44122052484..9a415a49a8c 100644 --- a/service/cloudsearch/api.go +++ b/service/cloudsearch/api.go @@ -51,9 +51,25 @@ func (c *CloudSearch) BuildSuggestersRequest(input *BuildSuggestersInput) (req * return } +// BuildSuggesters API operation for Amazon CloudSearch. +// // Indexes the search suggestions. For more information, see Configuring Suggesters // (http://docs.aws.amazon.com/cloudsearch/latest/developerguide/getting-suggestions.html#configuring-suggesters) // in the Amazon CloudSearch Developer Guide. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon CloudSearch's +// API operation, BuildSuggesters for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// BaseException +// InternalException +// ResourceNotFoundException func (c *CloudSearch) BuildSuggesters(input *BuildSuggestersInput) (*BuildSuggestersOutput, error) { req, out := c.BuildSuggestersRequest(input) err := req.Send() @@ -101,9 +117,25 @@ func (c *CloudSearch) CreateDomainRequest(input *CreateDomainInput) (req *reques return } +// CreateDomain API operation for Amazon CloudSearch. +// // Creates a new search domain. For more information, see Creating a Search // Domain (http://docs.aws.amazon.com/cloudsearch/latest/developerguide/creating-domains.html" // target="_blank) in the Amazon CloudSearch Developer Guide. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon CloudSearch's +// API operation, CreateDomain for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// BaseException +// InternalException +// LimitExceededException func (c *CloudSearch) CreateDomain(input *CreateDomainInput) (*CreateDomainOutput, error) { req, out := c.CreateDomainRequest(input) err := req.Send() @@ -151,10 +183,28 @@ func (c *CloudSearch) DefineAnalysisSchemeRequest(input *DefineAnalysisSchemeInp return } +// DefineAnalysisScheme API operation for Amazon CloudSearch. +// // Configures an analysis scheme that can be applied to a text or text-array // field to define language-specific text processing options. For more information, // see Configuring Analysis Schemes (http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-analysis-schemes.html" // target="_blank) in the Amazon CloudSearch Developer Guide. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon CloudSearch's +// API operation, DefineAnalysisScheme for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// BaseException +// InternalException +// LimitExceededException +// InvalidTypeException +// ResourceNotFoundException func (c *CloudSearch) DefineAnalysisScheme(input *DefineAnalysisSchemeInput) (*DefineAnalysisSchemeOutput, error) { req, out := c.DefineAnalysisSchemeRequest(input) err := req.Send() @@ -202,10 +252,28 @@ func (c *CloudSearch) DefineExpressionRequest(input *DefineExpressionInput) (req return } +// DefineExpression API operation for Amazon CloudSearch. +// // Configures an Expression for the search domain. Used to create new expressions // and modify existing ones. If the expression exists, the new configuration // replaces the old one. For more information, see Configuring Expressions (http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-expressions.html" // target="_blank) in the Amazon CloudSearch Developer Guide. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon CloudSearch's +// API operation, DefineExpression for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// BaseException +// InternalException +// LimitExceededException +// InvalidTypeException +// ResourceNotFoundException func (c *CloudSearch) DefineExpression(input *DefineExpressionInput) (*DefineExpressionOutput, error) { req, out := c.DefineExpressionRequest(input) err := req.Send() @@ -253,6 +321,8 @@ func (c *CloudSearch) DefineIndexFieldRequest(input *DefineIndexFieldInput) (req return } +// DefineIndexField API operation for Amazon CloudSearch. +// // Configures an IndexField for the search domain. Used to create new fields // and modify existing ones. You must specify the name of the domain you are // configuring and an index field configuration. The index field configuration @@ -261,6 +331,22 @@ func (c *CloudSearch) DefineIndexFieldRequest(input *DefineIndexFieldInput) (req // If the field exists, the new configuration replaces the old one. For more // information, see Configuring Index Fields (http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-index-fields.html" // target="_blank) in the Amazon CloudSearch Developer Guide. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon CloudSearch's +// API operation, DefineIndexField for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// BaseException +// InternalException +// LimitExceededException +// InvalidTypeException +// ResourceNotFoundException func (c *CloudSearch) DefineIndexField(input *DefineIndexFieldInput) (*DefineIndexFieldOutput, error) { req, out := c.DefineIndexFieldRequest(input) err := req.Send() @@ -308,12 +394,30 @@ func (c *CloudSearch) DefineSuggesterRequest(input *DefineSuggesterInput) (req * return } +// DefineSuggester API operation for Amazon CloudSearch. +// // Configures a suggester for a domain. A suggester enables you to display possible // matches before users finish typing their queries. When you configure a suggester, // you must specify the name of the text field you want to search for possible // matches and a unique name for the suggester. For more information, see Getting // Search Suggestions (http://docs.aws.amazon.com/cloudsearch/latest/developerguide/getting-suggestions.html" // target="_blank) in the Amazon CloudSearch Developer Guide. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon CloudSearch's +// API operation, DefineSuggester for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// BaseException +// InternalException +// LimitExceededException +// InvalidTypeException +// ResourceNotFoundException func (c *CloudSearch) DefineSuggester(input *DefineSuggesterInput) (*DefineSuggesterOutput, error) { req, out := c.DefineSuggesterRequest(input) err := req.Send() @@ -361,9 +465,26 @@ func (c *CloudSearch) DeleteAnalysisSchemeRequest(input *DeleteAnalysisSchemeInp return } +// DeleteAnalysisScheme API operation for Amazon CloudSearch. +// // Deletes an analysis scheme. For more information, see Configuring Analysis // Schemes (http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-analysis-schemes.html" // target="_blank) in the Amazon CloudSearch Developer Guide. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon CloudSearch's +// API operation, DeleteAnalysisScheme for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// BaseException +// InternalException +// InvalidTypeException +// ResourceNotFoundException func (c *CloudSearch) DeleteAnalysisScheme(input *DeleteAnalysisSchemeInput) (*DeleteAnalysisSchemeOutput, error) { req, out := c.DeleteAnalysisSchemeRequest(input) err := req.Send() @@ -411,10 +532,25 @@ func (c *CloudSearch) DeleteDomainRequest(input *DeleteDomainInput) (req *reques return } +// DeleteDomain API operation for Amazon CloudSearch. +// // Permanently deletes a search domain and all of its data. Once a domain has // been deleted, it cannot be recovered. For more information, see Deleting // a Search Domain (http://docs.aws.amazon.com/cloudsearch/latest/developerguide/deleting-domains.html" // target="_blank) in the Amazon CloudSearch Developer Guide. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon CloudSearch's +// API operation, DeleteDomain for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// BaseException +// InternalException func (c *CloudSearch) DeleteDomain(input *DeleteDomainInput) (*DeleteDomainOutput, error) { req, out := c.DeleteDomainRequest(input) err := req.Send() @@ -462,9 +598,26 @@ func (c *CloudSearch) DeleteExpressionRequest(input *DeleteExpressionInput) (req return } +// DeleteExpression API operation for Amazon CloudSearch. +// // Removes an Expression from the search domain. For more information, see Configuring // Expressions (http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-expressions.html" // target="_blank) in the Amazon CloudSearch Developer Guide. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon CloudSearch's +// API operation, DeleteExpression for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// BaseException +// InternalException +// InvalidTypeException +// ResourceNotFoundException func (c *CloudSearch) DeleteExpression(input *DeleteExpressionInput) (*DeleteExpressionOutput, error) { req, out := c.DeleteExpressionRequest(input) err := req.Send() @@ -512,9 +665,26 @@ func (c *CloudSearch) DeleteIndexFieldRequest(input *DeleteIndexFieldInput) (req return } +// DeleteIndexField API operation for Amazon CloudSearch. +// // Removes an IndexField from the search domain. For more information, see Configuring // Index Fields (http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-index-fields.html" // target="_blank) in the Amazon CloudSearch Developer Guide. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon CloudSearch's +// API operation, DeleteIndexField for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// BaseException +// InternalException +// InvalidTypeException +// ResourceNotFoundException func (c *CloudSearch) DeleteIndexField(input *DeleteIndexFieldInput) (*DeleteIndexFieldOutput, error) { req, out := c.DeleteIndexFieldRequest(input) err := req.Send() @@ -562,9 +732,26 @@ func (c *CloudSearch) DeleteSuggesterRequest(input *DeleteSuggesterInput) (req * return } +// DeleteSuggester API operation for Amazon CloudSearch. +// // Deletes a suggester. For more information, see Getting Search Suggestions // (http://docs.aws.amazon.com/cloudsearch/latest/developerguide/getting-suggestions.html" // target="_blank) in the Amazon CloudSearch Developer Guide. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon CloudSearch's +// API operation, DeleteSuggester for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// BaseException +// InternalException +// InvalidTypeException +// ResourceNotFoundException func (c *CloudSearch) DeleteSuggester(input *DeleteSuggesterInput) (*DeleteSuggesterOutput, error) { req, out := c.DeleteSuggesterRequest(input) err := req.Send() @@ -612,6 +799,8 @@ func (c *CloudSearch) DescribeAnalysisSchemesRequest(input *DescribeAnalysisSche return } +// DescribeAnalysisSchemes API operation for Amazon CloudSearch. +// // Gets the analysis schemes configured for a domain. An analysis scheme defines // language-specific text processing options for a text field. Can be limited // to specific analysis schemes by name. By default, shows all analysis schemes @@ -619,6 +808,20 @@ func (c *CloudSearch) DescribeAnalysisSchemesRequest(input *DescribeAnalysisSche // to true to show the active configuration and exclude pending changes. For // more information, see Configuring Analysis Schemes (http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-analysis-schemes.html" // target="_blank) in the Amazon CloudSearch Developer Guide. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon CloudSearch's +// API operation, DescribeAnalysisSchemes for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// BaseException +// InternalException +// ResourceNotFoundException func (c *CloudSearch) DescribeAnalysisSchemes(input *DescribeAnalysisSchemesInput) (*DescribeAnalysisSchemesOutput, error) { req, out := c.DescribeAnalysisSchemesRequest(input) err := req.Send() @@ -666,11 +869,30 @@ func (c *CloudSearch) DescribeAvailabilityOptionsRequest(input *DescribeAvailabi return } +// DescribeAvailabilityOptions API operation for Amazon CloudSearch. +// // Gets the availability options configured for a domain. By default, shows // the configuration with any pending changes. Set the Deployed option to true // to show the active configuration and exclude pending changes. For more information, // see Configuring Availability Options (http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-availability-options.html" // target="_blank) in the Amazon CloudSearch Developer Guide. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon CloudSearch's +// API operation, DescribeAvailabilityOptions for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// BaseException +// InternalException +// InvalidTypeException +// LimitExceededException +// ResourceNotFoundException +// DisabledOperationException func (c *CloudSearch) DescribeAvailabilityOptions(input *DescribeAvailabilityOptionsInput) (*DescribeAvailabilityOptionsOutput, error) { req, out := c.DescribeAvailabilityOptionsRequest(input) err := req.Send() @@ -718,12 +940,27 @@ func (c *CloudSearch) DescribeDomainsRequest(input *DescribeDomainsInput) (req * return } +// DescribeDomains API operation for Amazon CloudSearch. +// // Gets information about the search domains owned by this account. Can be limited // to specific domains. Shows all domains by default. To get the number of searchable // documents in a domain, use the console or submit a matchall request to your // domain's search endpoint: q=matchall&q.parser=structured&size=0. // For more information, see Getting Information about a Search Domain (http://docs.aws.amazon.com/cloudsearch/latest/developerguide/getting-domain-info.html" // target="_blank) in the Amazon CloudSearch Developer Guide. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon CloudSearch's +// API operation, DescribeDomains for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// BaseException +// InternalException func (c *CloudSearch) DescribeDomains(input *DescribeDomainsInput) (*DescribeDomainsOutput, error) { req, out := c.DescribeDomainsRequest(input) err := req.Send() @@ -771,12 +1008,28 @@ func (c *CloudSearch) DescribeExpressionsRequest(input *DescribeExpressionsInput return } +// DescribeExpressions API operation for Amazon CloudSearch. +// // Gets the expressions configured for the search domain. Can be limited to // specific expressions by name. By default, shows all expressions and includes // any pending changes to the configuration. Set the Deployed option to true // to show the active configuration and exclude pending changes. For more information, // see Configuring Expressions (http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-expressions.html" // target="_blank) in the Amazon CloudSearch Developer Guide. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon CloudSearch's +// API operation, DescribeExpressions for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// BaseException +// InternalException +// ResourceNotFoundException func (c *CloudSearch) DescribeExpressions(input *DescribeExpressionsInput) (*DescribeExpressionsOutput, error) { req, out := c.DescribeExpressionsRequest(input) err := req.Send() @@ -824,12 +1077,28 @@ func (c *CloudSearch) DescribeIndexFieldsRequest(input *DescribeIndexFieldsInput return } +// DescribeIndexFields API operation for Amazon CloudSearch. +// // Gets information about the index fields configured for the search domain. // Can be limited to specific fields by name. By default, shows all fields and // includes any pending changes to the configuration. Set the Deployed option // to true to show the active configuration and exclude pending changes. For // more information, see Getting Domain Information (http://docs.aws.amazon.com/cloudsearch/latest/developerguide/getting-domain-info.html" // target="_blank) in the Amazon CloudSearch Developer Guide. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon CloudSearch's +// API operation, DescribeIndexFields for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// BaseException +// InternalException +// ResourceNotFoundException func (c *CloudSearch) DescribeIndexFields(input *DescribeIndexFieldsInput) (*DescribeIndexFieldsOutput, error) { req, out := c.DescribeIndexFieldsRequest(input) err := req.Send() @@ -877,10 +1146,26 @@ func (c *CloudSearch) DescribeScalingParametersRequest(input *DescribeScalingPar return } +// DescribeScalingParameters API operation for Amazon CloudSearch. +// // Gets the scaling parameters configured for a domain. A domain's scaling parameters // specify the desired search instance type and replication count. For more // information, see Configuring Scaling Options (http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-scaling-options.html" // target="_blank) in the Amazon CloudSearch Developer Guide. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon CloudSearch's +// API operation, DescribeScalingParameters for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// BaseException +// InternalException +// ResourceNotFoundException func (c *CloudSearch) DescribeScalingParameters(input *DescribeScalingParametersInput) (*DescribeScalingParametersOutput, error) { req, out := c.DescribeScalingParametersRequest(input) err := req.Send() @@ -928,12 +1213,28 @@ func (c *CloudSearch) DescribeServiceAccessPoliciesRequest(input *DescribeServic return } +// DescribeServiceAccessPolicies API operation for Amazon CloudSearch. +// // Gets information about the access policies that control access to the domain's // document and search endpoints. By default, shows the configuration with any // pending changes. Set the Deployed option to true to show the active configuration // and exclude pending changes. For more information, see Configuring Access // for a Search Domain (http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-access.html" // target="_blank) in the Amazon CloudSearch Developer Guide. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon CloudSearch's +// API operation, DescribeServiceAccessPolicies for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// BaseException +// InternalException +// ResourceNotFoundException func (c *CloudSearch) DescribeServiceAccessPolicies(input *DescribeServiceAccessPoliciesInput) (*DescribeServiceAccessPoliciesOutput, error) { req, out := c.DescribeServiceAccessPoliciesRequest(input) err := req.Send() @@ -981,6 +1282,8 @@ func (c *CloudSearch) DescribeSuggestersRequest(input *DescribeSuggestersInput) return } +// DescribeSuggesters API operation for Amazon CloudSearch. +// // Gets the suggesters configured for a domain. A suggester enables you to display // possible matches before users finish typing their queries. Can be limited // to specific suggesters by name. By default, shows all suggesters and includes @@ -988,6 +1291,20 @@ func (c *CloudSearch) DescribeSuggestersRequest(input *DescribeSuggestersInput) // to show the active configuration and exclude pending changes. For more information, // see Getting Search Suggestions (http://docs.aws.amazon.com/cloudsearch/latest/developerguide/getting-suggestions.html" // target="_blank) in the Amazon CloudSearch Developer Guide. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon CloudSearch's +// API operation, DescribeSuggesters for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// BaseException +// InternalException +// ResourceNotFoundException func (c *CloudSearch) DescribeSuggesters(input *DescribeSuggestersInput) (*DescribeSuggestersOutput, error) { req, out := c.DescribeSuggestersRequest(input) err := req.Send() @@ -1035,9 +1352,25 @@ func (c *CloudSearch) IndexDocumentsRequest(input *IndexDocumentsInput) (req *re return } +// IndexDocuments API operation for Amazon CloudSearch. +// // Tells the search domain to start indexing its documents using the latest // indexing options. This operation must be invoked to activate options whose // OptionStatus is RequiresIndexDocuments. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon CloudSearch's +// API operation, IndexDocuments for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// BaseException +// InternalException +// ResourceNotFoundException func (c *CloudSearch) IndexDocuments(input *IndexDocumentsInput) (*IndexDocumentsOutput, error) { req, out := c.IndexDocumentsRequest(input) err := req.Send() @@ -1085,7 +1418,21 @@ func (c *CloudSearch) ListDomainNamesRequest(input *ListDomainNamesInput) (req * return } +// ListDomainNames API operation for Amazon CloudSearch. +// // Lists all search domains owned by an account. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon CloudSearch's +// API operation, ListDomainNames for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// BaseException func (c *CloudSearch) ListDomainNames(input *ListDomainNamesInput) (*ListDomainNamesOutput, error) { req, out := c.ListDomainNamesRequest(input) err := req.Send() @@ -1133,12 +1480,31 @@ func (c *CloudSearch) UpdateAvailabilityOptionsRequest(input *UpdateAvailability return } +// UpdateAvailabilityOptions API operation for Amazon CloudSearch. +// // Configures the availability options for a domain. Enabling the Multi-AZ option // expands an Amazon CloudSearch domain to an additional Availability Zone in // the same Region to increase fault tolerance in the event of a service disruption. // Changes to the Multi-AZ option can take about half an hour to become active. // For more information, see Configuring Availability Options (http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-availability-options.html" // target="_blank) in the Amazon CloudSearch Developer Guide. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon CloudSearch's +// API operation, UpdateAvailabilityOptions for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// BaseException +// InternalException +// InvalidTypeException +// LimitExceededException +// ResourceNotFoundException +// DisabledOperationException func (c *CloudSearch) UpdateAvailabilityOptions(input *UpdateAvailabilityOptionsInput) (*UpdateAvailabilityOptionsOutput, error) { req, out := c.UpdateAvailabilityOptionsRequest(input) err := req.Send() @@ -1186,6 +1552,8 @@ func (c *CloudSearch) UpdateScalingParametersRequest(input *UpdateScalingParamet return } +// UpdateScalingParameters API operation for Amazon CloudSearch. +// // Configures scaling parameters for a domain. A domain's scaling parameters // specify the desired search instance type and replication count. Amazon CloudSearch // will still automatically scale your domain based on the volume of data and @@ -1194,6 +1562,22 @@ func (c *CloudSearch) UpdateScalingParametersRequest(input *UpdateScalingParamet // Availability Zone. For more information, see Configuring Scaling Options // (http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-scaling-options.html" // target="_blank) in the Amazon CloudSearch Developer Guide. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon CloudSearch's +// API operation, UpdateScalingParameters for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// BaseException +// InternalException +// LimitExceededException +// ResourceNotFoundException +// InvalidTypeException func (c *CloudSearch) UpdateScalingParameters(input *UpdateScalingParametersInput) (*UpdateScalingParametersOutput, error) { req, out := c.UpdateScalingParametersRequest(input) err := req.Send() @@ -1241,10 +1625,28 @@ func (c *CloudSearch) UpdateServiceAccessPoliciesRequest(input *UpdateServiceAcc return } +// UpdateServiceAccessPolicies API operation for Amazon CloudSearch. +// // Configures the access rules that control access to the domain's document // and search endpoints. For more information, see Configuring Access for an // Amazon CloudSearch Domain (http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-access.html" // target="_blank). +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon CloudSearch's +// API operation, UpdateServiceAccessPolicies for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// BaseException +// InternalException +// LimitExceededException +// ResourceNotFoundException +// InvalidTypeException func (c *CloudSearch) UpdateServiceAccessPolicies(input *UpdateServiceAccessPoliciesInput) (*UpdateServiceAccessPoliciesOutput, error) { req, out := c.UpdateServiceAccessPoliciesRequest(input) err := req.Send() diff --git a/service/cloudsearchdomain/api.go b/service/cloudsearchdomain/api.go index c98ace0e576..3572b770cdc 100644 --- a/service/cloudsearchdomain/api.go +++ b/service/cloudsearchdomain/api.go @@ -51,6 +51,8 @@ func (c *CloudSearchDomain) SearchRequest(input *SearchInput) (req *request.Requ return } +// Search API operation for Amazon CloudSearch Domain. +// // Retrieves a list of documents that match the specified search criteria. How // you specify the search criteria depends on which query parser you use. Amazon // CloudSearch supports four query parsers: @@ -70,6 +72,18 @@ func (c *CloudSearchDomain) SearchRequest(input *SearchInput) (req *request.Requ // for your domain, use the Amazon CloudSearch configuration service DescribeDomains // action. A domain's endpoints are also displayed on the domain dashboard in // the Amazon CloudSearch console. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon CloudSearch Domain's +// API operation, Search for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// SearchException func (c *CloudSearchDomain) Search(input *SearchInput) (*SearchOutput, error) { req, out := c.SearchRequest(input) err := req.Send() @@ -117,6 +131,8 @@ func (c *CloudSearchDomain) SuggestRequest(input *SuggestInput) (req *request.Re return } +// Suggest API operation for Amazon CloudSearch Domain. +// // Retrieves autocomplete suggestions for a partial query string. You can use // suggestions enable you to display likely matches before users finish typing. // In Amazon CloudSearch, suggestions are based on the contents of a particular @@ -134,6 +150,18 @@ func (c *CloudSearchDomain) SuggestRequest(input *SuggestInput) (req *request.Re // for your domain, use the Amazon CloudSearch configuration service DescribeDomains // action. A domain's endpoints are also displayed on the domain dashboard in // the Amazon CloudSearch console. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon CloudSearch Domain's +// API operation, Suggest for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// SearchException func (c *CloudSearchDomain) Suggest(input *SuggestInput) (*SuggestOutput, error) { req, out := c.SuggestRequest(input) err := req.Send() @@ -181,6 +209,8 @@ func (c *CloudSearchDomain) UploadDocumentsRequest(input *UploadDocumentsInput) return } +// UploadDocuments API operation for Amazon CloudSearch Domain. +// // Posts a batch of documents to a search domain for indexing. A document batch // is a collection of add and delete operations that represent the documents // you want to add, update, or delete from your domain. Batches can be described @@ -203,6 +233,18 @@ func (c *CloudSearchDomain) UploadDocumentsRequest(input *UploadDocumentsInput) // in the Amazon CloudSearch Developer Guide. For more information about uploading // data for indexing, see Uploading Data (http://docs.aws.amazon.com/cloudsearch/latest/developerguide/uploading-data.html) // in the Amazon CloudSearch Developer Guide. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon CloudSearch Domain's +// API operation, UploadDocuments for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// DocumentServiceException func (c *CloudSearchDomain) UploadDocuments(input *UploadDocumentsInput) (*UploadDocumentsOutput, error) { req, out := c.UploadDocumentsRequest(input) err := req.Send() diff --git a/service/cloudtrail/api.go b/service/cloudtrail/api.go index 6a2f86d9c0d..762b8bfec27 100644 --- a/service/cloudtrail/api.go +++ b/service/cloudtrail/api.go @@ -52,12 +52,33 @@ func (c *CloudTrail) AddTagsRequest(input *AddTagsInput) (req *request.Request, return } +// AddTags API operation for AWS CloudTrail. +// // Adds one or more tags to a trail, up to a limit of 10. Tags must be unique // per trail. Overwrites an existing tag's value when a new value is specified // for an existing tag key. If you specify a key without a value, the tag will // be created with the specified key and a value of null. You can tag a trail // that applies to all regions only from the region in which the trail was created // (that is, from its home region). +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS CloudTrail's +// API operation, AddTags for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ResourceNotFoundException +// CloudTrailARNInvalidException +// ResourceTypeNotSupportedException +// TagsLimitExceededException +// InvalidTrailNameException +// InvalidTagParameterException +// UnsupportedOperationException +// OperationNotPermittedException func (c *CloudTrail) AddTags(input *AddTagsInput) (*AddTagsOutput, error) { req, out := c.AddTagsRequest(input) err := req.Send() @@ -105,9 +126,43 @@ func (c *CloudTrail) CreateTrailRequest(input *CreateTrailInput) (req *request.R return } +// CreateTrail API operation for AWS CloudTrail. +// // Creates a trail that specifies the settings for delivery of log data to an // Amazon S3 bucket. A maximum of five trails can exist in a region, irrespective // of the region in which they were created. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS CloudTrail's +// API operation, CreateTrail for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// MaximumNumberOfTrailsExceededException +// TrailAlreadyExistsException +// S3BucketDoesNotExistException +// InsufficientS3BucketPolicyException +// InsufficientSnsTopicPolicyException +// InsufficientEncryptionPolicyException +// InvalidS3BucketNameException +// InvalidS3PrefixException +// InvalidSnsTopicNameException +// InvalidKmsKeyIdException +// InvalidTrailNameException +// TrailNotProvidedException +// InvalidParameterCombinationException +// KmsKeyNotFoundException +// KmsKeyDisabledException +// KmsException +// InvalidCloudWatchLogsLogGroupArnException +// InvalidCloudWatchLogsRoleArnException +// CloudWatchLogsDeliveryUnavailableException +// UnsupportedOperationException +// OperationNotPermittedException func (c *CloudTrail) CreateTrail(input *CreateTrailInput) (*CreateTrailOutput, error) { req, out := c.CreateTrailRequest(input) err := req.Send() @@ -155,9 +210,25 @@ func (c *CloudTrail) DeleteTrailRequest(input *DeleteTrailInput) (req *request.R return } +// DeleteTrail API operation for AWS CloudTrail. +// // Deletes a trail. This operation must be called from the region in which the // trail was created. DeleteTrail cannot be called on the shadow trails (replicated // trails in other regions) of a trail that is enabled in all regions. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS CloudTrail's +// API operation, DeleteTrail for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// TrailNotFoundException +// InvalidTrailNameException +// InvalidHomeRegionException func (c *CloudTrail) DeleteTrail(input *DeleteTrailInput) (*DeleteTrailOutput, error) { req, out := c.DeleteTrailRequest(input) err := req.Send() @@ -205,8 +276,23 @@ func (c *CloudTrail) DescribeTrailsRequest(input *DescribeTrailsInput) (req *req return } +// DescribeTrails API operation for AWS CloudTrail. +// // Retrieves settings for the trail associated with the current region for your // account. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS CloudTrail's +// API operation, DescribeTrails for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// UnsupportedOperationException +// OperationNotPermittedException func (c *CloudTrail) DescribeTrails(input *DescribeTrailsInput) (*DescribeTrailsOutput, error) { req, out := c.DescribeTrailsRequest(input) err := req.Send() @@ -254,11 +340,26 @@ func (c *CloudTrail) GetTrailStatusRequest(input *GetTrailStatusInput) (req *req return } +// GetTrailStatus API operation for AWS CloudTrail. +// // Returns a JSON-formatted list of information about the specified trail. Fields // include information on delivery errors, Amazon SNS and Amazon S3 errors, // and start and stop logging times for each trail. This operation returns trail // status from a single region. To return trail status from all regions, you // must call the operation on each region. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS CloudTrail's +// API operation, GetTrailStatus for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// TrailNotFoundException +// InvalidTrailNameException func (c *CloudTrail) GetTrailStatus(input *GetTrailStatusInput) (*GetTrailStatusOutput, error) { req, out := c.GetTrailStatusRequest(input) err := req.Send() @@ -306,6 +407,8 @@ func (c *CloudTrail) ListPublicKeysRequest(input *ListPublicKeysInput) (req *req return } +// ListPublicKeys API operation for AWS CloudTrail. +// // Returns all public keys whose private keys were used to sign the digest files // within the specified time range. The public key is needed to validate digest // files that were signed with its corresponding private key. @@ -314,6 +417,21 @@ func (c *CloudTrail) ListPublicKeysRequest(input *ListPublicKeysInput) (req *req // file is signed with a private key unique to its region. Therefore, when you // validate a digest file from a particular region, you must look in the same // region for its corresponding public key. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS CloudTrail's +// API operation, ListPublicKeys for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidTimeRangeException +// UnsupportedOperationException +// OperationNotPermittedException +// InvalidTokenException func (c *CloudTrail) ListPublicKeys(input *ListPublicKeysInput) (*ListPublicKeysOutput, error) { req, out := c.ListPublicKeysRequest(input) err := req.Send() @@ -361,7 +479,27 @@ func (c *CloudTrail) ListTagsRequest(input *ListTagsInput) (req *request.Request return } +// ListTags API operation for AWS CloudTrail. +// // Lists the tags for the trail in the current region. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS CloudTrail's +// API operation, ListTags for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ResourceNotFoundException +// CloudTrailARNInvalidException +// ResourceTypeNotSupportedException +// InvalidTrailNameException +// UnsupportedOperationException +// OperationNotPermittedException +// InvalidTokenException func (c *CloudTrail) ListTags(input *ListTagsInput) (*ListTagsOutput, error) { req, out := c.ListTagsRequest(input) err := req.Send() @@ -409,6 +547,8 @@ func (c *CloudTrail) LookupEventsRequest(input *LookupEventsInput) (req *request return } +// LookupEvents API operation for AWS CloudTrail. +// // Looks up API activity events captured by CloudTrail that create, update, // or delete resources in your account. Events for a region can be looked up // for the times in which you had CloudTrail turned on in that region during @@ -425,6 +565,21 @@ func (c *CloudTrail) LookupEventsRequest(input *LookupEventsInput) (req *request // // Events that occurred during the selected time range will not be available // for lookup if CloudTrail logging was not enabled when the events occurred. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS CloudTrail's +// API operation, LookupEvents for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidLookupAttributesException +// InvalidTimeRangeException +// InvalidMaxResultsException +// InvalidNextTokenException func (c *CloudTrail) LookupEvents(input *LookupEventsInput) (*LookupEventsOutput, error) { req, out := c.LookupEventsRequest(input) err := req.Send() @@ -472,7 +627,27 @@ func (c *CloudTrail) RemoveTagsRequest(input *RemoveTagsInput) (req *request.Req return } +// RemoveTags API operation for AWS CloudTrail. +// // Removes the specified tags from a trail. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS CloudTrail's +// API operation, RemoveTags for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ResourceNotFoundException +// CloudTrailARNInvalidException +// ResourceTypeNotSupportedException +// InvalidTrailNameException +// InvalidTagParameterException +// UnsupportedOperationException +// OperationNotPermittedException func (c *CloudTrail) RemoveTags(input *RemoveTagsInput) (*RemoveTagsOutput, error) { req, out := c.RemoveTagsRequest(input) err := req.Send() @@ -520,11 +695,27 @@ func (c *CloudTrail) StartLoggingRequest(input *StartLoggingInput) (req *request return } +// StartLogging API operation for AWS CloudTrail. +// // Starts the recording of AWS API calls and log file delivery for a trail. // For a trail that is enabled in all regions, this operation must be called // from the region in which the trail was created. This operation cannot be // called on the shadow trails (replicated trails in other regions) of a trail // that is enabled in all regions. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS CloudTrail's +// API operation, StartLogging for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// TrailNotFoundException +// InvalidTrailNameException +// InvalidHomeRegionException func (c *CloudTrail) StartLogging(input *StartLoggingInput) (*StartLoggingOutput, error) { req, out := c.StartLoggingRequest(input) err := req.Send() @@ -572,6 +763,8 @@ func (c *CloudTrail) StopLoggingRequest(input *StopLoggingInput) (req *request.R return } +// StopLogging API operation for AWS CloudTrail. +// // Suspends the recording of AWS API calls and log file delivery for the specified // trail. Under most circumstances, there is no need to use this action. You // can update a trail without stopping it first. This action is the only way @@ -579,6 +772,20 @@ func (c *CloudTrail) StopLoggingRequest(input *StopLoggingInput) (req *request.R // be called from the region in which the trail was created, or an InvalidHomeRegionException // will occur. This operation cannot be called on the shadow trails (replicated // trails in other regions) of a trail enabled in all regions. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS CloudTrail's +// API operation, StopLogging for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// TrailNotFoundException +// InvalidTrailNameException +// InvalidHomeRegionException func (c *CloudTrail) StopLogging(input *StopLoggingInput) (*StopLoggingOutput, error) { req, out := c.StopLoggingRequest(input) err := req.Send() @@ -626,12 +833,46 @@ func (c *CloudTrail) UpdateTrailRequest(input *UpdateTrailInput) (req *request.R return } +// UpdateTrail API operation for AWS CloudTrail. +// // Updates the settings that specify delivery of log files. Changes to a trail // do not require stopping the CloudTrail service. Use this action to designate // an existing bucket for log delivery. If the existing bucket has previously // been a target for CloudTrail log files, an IAM policy exists for the bucket. // UpdateTrail must be called from the region in which the trail was created; // otherwise, an InvalidHomeRegionException is thrown. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS CloudTrail's +// API operation, UpdateTrail for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// S3BucketDoesNotExistException +// InsufficientS3BucketPolicyException +// InsufficientSnsTopicPolicyException +// InsufficientEncryptionPolicyException +// TrailNotFoundException +// InvalidS3BucketNameException +// InvalidS3PrefixException +// InvalidSnsTopicNameException +// InvalidKmsKeyIdException +// InvalidTrailNameException +// TrailNotProvidedException +// InvalidParameterCombinationException +// InvalidHomeRegionException +// KmsKeyNotFoundException +// KmsKeyDisabledException +// KmsException +// InvalidCloudWatchLogsLogGroupArnException +// InvalidCloudWatchLogsRoleArnException +// CloudWatchLogsDeliveryUnavailableException +// UnsupportedOperationException +// OperationNotPermittedException func (c *CloudTrail) UpdateTrail(input *UpdateTrailInput) (*UpdateTrailOutput, error) { req, out := c.UpdateTrailRequest(input) err := req.Send() diff --git a/service/cloudwatch/api.go b/service/cloudwatch/api.go index ad0df5ef747..f6f837766a1 100644 --- a/service/cloudwatch/api.go +++ b/service/cloudwatch/api.go @@ -56,7 +56,21 @@ func (c *CloudWatch) DeleteAlarmsRequest(input *DeleteAlarmsInput) (req *request return } +// DeleteAlarms API operation for Amazon CloudWatch. +// // Deletes all specified alarms. In the event of an error, no alarms are deleted. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon CloudWatch's +// API operation, DeleteAlarms for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ResourceNotFound func (c *CloudWatch) DeleteAlarms(input *DeleteAlarmsInput) (*DeleteAlarmsOutput, error) { req, out := c.DeleteAlarmsRequest(input) err := req.Send() @@ -110,12 +124,26 @@ func (c *CloudWatch) DescribeAlarmHistoryRequest(input *DescribeAlarmHistoryInpu return } +// DescribeAlarmHistory API operation for Amazon CloudWatch. +// // Retrieves history for the specified alarm. Filter alarms by date range or // item type. If an alarm name is not specified, Amazon CloudWatch returns histories // for all of the owner's alarms. // // Amazon CloudWatch retains the history of an alarm for two weeks, whether // or not you delete the alarm. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon CloudWatch's +// API operation, DescribeAlarmHistory for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidNextToken func (c *CloudWatch) DescribeAlarmHistory(input *DescribeAlarmHistoryInput) (*DescribeAlarmHistoryOutput, error) { req, out := c.DescribeAlarmHistoryRequest(input) err := req.Send() @@ -194,9 +222,23 @@ func (c *CloudWatch) DescribeAlarmsRequest(input *DescribeAlarmsInput) (req *req return } +// DescribeAlarms API operation for Amazon CloudWatch. +// // Retrieves alarms with the specified names. If no name is specified, all alarms // for the user are returned. Alarms can be retrieved by using only a prefix // for the alarm name, the alarm state, or a prefix for any action. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon CloudWatch's +// API operation, DescribeAlarms for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidNextToken func (c *CloudWatch) DescribeAlarms(input *DescribeAlarmsInput) (*DescribeAlarmsOutput, error) { req, out := c.DescribeAlarmsRequest(input) err := req.Send() @@ -269,8 +311,18 @@ func (c *CloudWatch) DescribeAlarmsForMetricRequest(input *DescribeAlarmsForMetr return } +// DescribeAlarmsForMetric API operation for Amazon CloudWatch. +// // Retrieves all alarms for a single metric. Specify a statistic, period, or // unit to filter the set of alarms further. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon CloudWatch's +// API operation, DescribeAlarmsForMetric for more information, and other errors +// that the API operation could return. func (c *CloudWatch) DescribeAlarmsForMetric(input *DescribeAlarmsForMetricInput) (*DescribeAlarmsForMetricOutput, error) { req, out := c.DescribeAlarmsForMetricRequest(input) err := req.Send() @@ -320,8 +372,18 @@ func (c *CloudWatch) DisableAlarmActionsRequest(input *DisableAlarmActionsInput) return } +// DisableAlarmActions API operation for Amazon CloudWatch. +// // Disables actions for the specified alarms. When an alarm's actions are disabled // the alarm's state may change, but none of the alarm's actions will execute. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon CloudWatch's +// API operation, DisableAlarmActions for more information, and other errors +// that the API operation could return. func (c *CloudWatch) DisableAlarmActions(input *DisableAlarmActionsInput) (*DisableAlarmActionsOutput, error) { req, out := c.DisableAlarmActionsRequest(input) err := req.Send() @@ -371,7 +433,17 @@ func (c *CloudWatch) EnableAlarmActionsRequest(input *EnableAlarmActionsInput) ( return } +// EnableAlarmActions API operation for Amazon CloudWatch. +// // Enables actions for the specified alarms. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon CloudWatch's +// API operation, EnableAlarmActions for more information, and other errors +// that the API operation could return. func (c *CloudWatch) EnableAlarmActions(input *EnableAlarmActionsInput) (*EnableAlarmActionsOutput, error) { req, out := c.EnableAlarmActionsRequest(input) err := req.Send() @@ -419,6 +491,8 @@ func (c *CloudWatch) GetMetricStatisticsRequest(input *GetMetricStatisticsInput) return } +// GetMetricStatistics API operation for Amazon CloudWatch. +// // Gets statistics for the specified metric. // // The maximum number of data points that can be queried is 50,850, whereas @@ -451,6 +525,21 @@ func (c *CloudWatch) GetMetricStatisticsRequest(input *GetMetricStatisticsInput) // other Amazon Web Services products use to send metrics to CloudWatch, go // to Amazon CloudWatch Metrics, Namespaces, and Dimensions Reference (http://docs.aws.amazon.com/AmazonCloudWatch/latest/DeveloperGuide/CW_Support_For_AWS.html) // in the Amazon CloudWatch Developer Guide. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon CloudWatch's +// API operation, GetMetricStatistics for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidParameterValueException +// MissingRequiredParameterException +// InvalidParameterCombinationException +// InternalServiceFault func (c *CloudWatch) GetMetricStatistics(input *GetMetricStatisticsInput) (*GetMetricStatisticsOutput, error) { req, out := c.GetMetricStatisticsRequest(input) err := req.Send() @@ -504,6 +593,8 @@ func (c *CloudWatch) ListMetricsRequest(input *ListMetricsInput) (req *request.R return } +// ListMetrics API operation for Amazon CloudWatch. +// // Returns a list of valid metrics stored for the AWS account owner. Returned // metrics can be used with GetMetricStatistics to obtain statistical data for // a given metric. @@ -514,6 +605,19 @@ func (c *CloudWatch) ListMetricsRequest(input *ListMetricsInput) (req *request.R // If you create a metric with PutMetricData, allow up to fifteen minutes // for the metric to appear in calls to ListMetrics. Statistics about the metric, // however, are available sooner using GetMetricStatistics. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon CloudWatch's +// API operation, ListMetrics for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InternalServiceFault +// InvalidParameterValueException func (c *CloudWatch) ListMetrics(input *ListMetricsInput) (*ListMetricsOutput, error) { req, out := c.ListMetricsRequest(input) err := req.Send() @@ -588,6 +692,8 @@ func (c *CloudWatch) PutMetricAlarmRequest(input *PutMetricAlarmInput) (req *req return } +// PutMetricAlarm API operation for Amazon CloudWatch. +// // Creates or updates an alarm and associates it with the specified Amazon CloudWatch // metric. Optionally, this operation can associate one or more Amazon SNS resources // with the alarm. @@ -628,6 +734,18 @@ func (c *CloudWatch) PutMetricAlarmRequest(input *PutMetricAlarmInput) (req *req // If you are using temporary security credentials granted using the AWS Security // Token Service (AWS STS), you cannot stop or terminate an Amazon EC2 instance // using alarm actions. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon CloudWatch's +// API operation, PutMetricAlarm for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// LimitExceededFault func (c *CloudWatch) PutMetricAlarm(input *PutMetricAlarmInput) (*PutMetricAlarmOutput, error) { req, out := c.PutMetricAlarmRequest(input) err := req.Send() @@ -677,6 +795,8 @@ func (c *CloudWatch) PutMetricDataRequest(input *PutMetricDataInput) (req *reque return } +// PutMetricData API operation for Amazon CloudWatch. +// // Publishes metric data points to Amazon CloudWatch. Amazon CloudWatch associates // the data points with the specified metric. If the specified metric does not // exist, Amazon CloudWatch creates the metric. When Amazon CloudWatch creates @@ -694,6 +814,21 @@ func (c *CloudWatch) PutMetricDataRequest(input *PutMetricDataInput) (req *reque // // Data that is timestamped 24 hours or more in the past may take in excess // of 48 hours to become available from submission time using GetMetricStatistics. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon CloudWatch's +// API operation, PutMetricData for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidParameterValueException +// MissingRequiredParameterException +// InvalidParameterCombinationException +// InternalServiceFault func (c *CloudWatch) PutMetricData(input *PutMetricDataInput) (*PutMetricDataOutput, error) { req, out := c.PutMetricDataRequest(input) err := req.Send() @@ -743,6 +878,8 @@ func (c *CloudWatch) SetAlarmStateRequest(input *SetAlarmStateInput) (req *reque return } +// SetAlarmState API operation for Amazon CloudWatch. +// // Temporarily sets the state of an alarm for testing purposes. When the updated // StateValue differs from the previous value, the action configured for the // appropriate state is invoked. For example, if your alarm is configured to @@ -751,6 +888,19 @@ func (c *CloudWatch) SetAlarmStateRequest(input *SetAlarmStateInput) (req *reque // to its actual state (often within seconds). Because the alarm state change // happens very quickly, it is typically only visible in the alarm's History // tab in the Amazon CloudWatch console or through DescribeAlarmHistory. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon CloudWatch's +// API operation, SetAlarmState for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ResourceNotFound +// InvalidFormatFault func (c *CloudWatch) SetAlarmState(input *SetAlarmStateInput) (*SetAlarmStateOutput, error) { req, out := c.SetAlarmStateRequest(input) err := req.Send() diff --git a/service/cloudwatchevents/api.go b/service/cloudwatchevents/api.go index be71d15a3d3..7c804254adc 100644 --- a/service/cloudwatchevents/api.go +++ b/service/cloudwatchevents/api.go @@ -56,12 +56,27 @@ func (c *CloudWatchEvents) DeleteRuleRequest(input *DeleteRuleInput) (req *reque return } +// DeleteRule API operation for Amazon CloudWatch Events. +// // Deletes a rule. You must remove all targets from a rule using RemoveTargets // before you can delete the rule. // // Note: When you delete a rule, incoming events might still continue to match // to the deleted rule. Please allow a short period of time for changes to take // effect. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon CloudWatch Events's +// API operation, DeleteRule for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ConcurrentModificationException +// InternalException func (c *CloudWatchEvents) DeleteRule(input *DeleteRuleInput) (*DeleteRuleOutput, error) { req, out := c.DeleteRuleRequest(input) err := req.Send() @@ -109,7 +124,22 @@ func (c *CloudWatchEvents) DescribeRuleRequest(input *DescribeRuleInput) (req *r return } +// DescribeRule API operation for Amazon CloudWatch Events. +// // Describes the details of the specified rule. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon CloudWatch Events's +// API operation, DescribeRule for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ResourceNotFoundException +// InternalException func (c *CloudWatchEvents) DescribeRule(input *DescribeRuleInput) (*DescribeRuleOutput, error) { req, out := c.DescribeRuleRequest(input) err := req.Send() @@ -159,12 +189,28 @@ func (c *CloudWatchEvents) DisableRuleRequest(input *DisableRuleInput) (req *req return } +// DisableRule API operation for Amazon CloudWatch Events. +// // Disables a rule. A disabled rule won't match any events, and won't self-trigger // if it has a schedule expression. // // Note: When you disable a rule, incoming events might still continue to // match to the disabled rule. Please allow a short period of time for changes // to take effect. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon CloudWatch Events's +// API operation, DisableRule for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ResourceNotFoundException +// ConcurrentModificationException +// InternalException func (c *CloudWatchEvents) DisableRule(input *DisableRuleInput) (*DisableRuleOutput, error) { req, out := c.DisableRuleRequest(input) err := req.Send() @@ -214,11 +260,27 @@ func (c *CloudWatchEvents) EnableRuleRequest(input *EnableRuleInput) (req *reque return } +// EnableRule API operation for Amazon CloudWatch Events. +// // Enables a rule. If the rule does not exist, the operation fails. // // Note: When you enable a rule, incoming events might not immediately start // matching to a newly enabled rule. Please allow a short period of time for // changes to take effect. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon CloudWatch Events's +// API operation, EnableRule for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ResourceNotFoundException +// ConcurrentModificationException +// InternalException func (c *CloudWatchEvents) EnableRule(input *EnableRuleInput) (*EnableRuleOutput, error) { req, out := c.EnableRuleRequest(input) err := req.Send() @@ -266,12 +328,26 @@ func (c *CloudWatchEvents) ListRuleNamesByTargetRequest(input *ListRuleNamesByTa return } +// ListRuleNamesByTarget API operation for Amazon CloudWatch Events. +// // Lists the names of the rules that the given target is put to. You can see // which of the rules in Amazon CloudWatch Events can invoke a specific target // in your account. If you have more rules in your account than the given limit, // the results will be paginated. In that case, use the next token returned // in the response and repeat ListRulesByTarget until the NextToken in the response // is returned as null. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon CloudWatch Events's +// API operation, ListRuleNamesByTarget for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InternalException func (c *CloudWatchEvents) ListRuleNamesByTarget(input *ListRuleNamesByTargetInput) (*ListRuleNamesByTargetOutput, error) { req, out := c.ListRuleNamesByTargetRequest(input) err := req.Send() @@ -319,11 +395,25 @@ func (c *CloudWatchEvents) ListRulesRequest(input *ListRulesInput) (req *request return } +// ListRules API operation for Amazon CloudWatch Events. +// // Lists the Amazon CloudWatch Events rules in your account. You can either // list all the rules or you can provide a prefix to match to the rule names. // If you have more rules in your account than the given limit, the results // will be paginated. In that case, use the next token returned in the response // and repeat ListRules until the NextToken in the response is returned as null. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon CloudWatch Events's +// API operation, ListRules for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InternalException func (c *CloudWatchEvents) ListRules(input *ListRulesInput) (*ListRulesOutput, error) { req, out := c.ListRulesRequest(input) err := req.Send() @@ -371,7 +461,22 @@ func (c *CloudWatchEvents) ListTargetsByRuleRequest(input *ListTargetsByRuleInpu return } +// ListTargetsByRule API operation for Amazon CloudWatch Events. +// // Lists of targets assigned to the rule. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon CloudWatch Events's +// API operation, ListTargetsByRule for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ResourceNotFoundException +// InternalException func (c *CloudWatchEvents) ListTargetsByRule(input *ListTargetsByRuleInput) (*ListTargetsByRuleOutput, error) { req, out := c.ListTargetsByRuleRequest(input) err := req.Send() @@ -419,8 +524,22 @@ func (c *CloudWatchEvents) PutEventsRequest(input *PutEventsInput) (req *request return } +// PutEvents API operation for Amazon CloudWatch Events. +// // Sends custom events to Amazon CloudWatch Events so that they can be matched // to rules. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon CloudWatch Events's +// API operation, PutEvents for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InternalException func (c *CloudWatchEvents) PutEvents(input *PutEventsInput) (*PutEventsOutput, error) { req, out := c.PutEventsRequest(input) err := req.Send() @@ -468,6 +587,8 @@ func (c *CloudWatchEvents) PutRuleRequest(input *PutRuleInput) (req *request.Req return } +// PutRule API operation for Amazon CloudWatch Events. +// // Creates or updates a rule. Rules are enabled by default, or based on value // of the State parameter. You can disable a rule using DisableRule. // @@ -486,6 +607,21 @@ func (c *CloudWatchEvents) PutRuleRequest(input *PutRuleInput) (req *request.Req // event patterns and rules. Be sure to use the correct ARN characters when // creating event patterns so that they match the ARN syntax in the event you // want to match. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon CloudWatch Events's +// API operation, PutRule for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidEventPatternException +// LimitExceededException +// ConcurrentModificationException +// InternalException func (c *CloudWatchEvents) PutRule(input *PutRuleInput) (*PutRuleOutput, error) { req, out := c.PutRuleRequest(input) err := req.Send() @@ -533,6 +669,8 @@ func (c *CloudWatchEvents) PutTargetsRequest(input *PutTargetsInput) (req *reque return } +// PutTargets API operation for Amazon CloudWatch Events. +// // Adds target(s) to a rule. Targets are the resources that can be invoked when // a rule is triggered. For example, AWS Lambda functions, Amazon Kinesis streams, // and built-in targets. Updates the target(s) if they are already associated @@ -557,6 +695,21 @@ func (c *CloudWatchEvents) PutTargetsRequest(input *PutTargetsInput) (req *reque // is overridden with this constant. Note: When you add targets to a rule, // when the associated rule triggers, new or updated targets might not be immediately // invoked. Please allow a short period of time for changes to take effect. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon CloudWatch Events's +// API operation, PutTargets for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ResourceNotFoundException +// ConcurrentModificationException +// LimitExceededException +// InternalException func (c *CloudWatchEvents) PutTargets(input *PutTargetsInput) (*PutTargetsOutput, error) { req, out := c.PutTargetsRequest(input) err := req.Send() @@ -604,12 +757,28 @@ func (c *CloudWatchEvents) RemoveTargetsRequest(input *RemoveTargetsInput) (req return } +// RemoveTargets API operation for Amazon CloudWatch Events. +// // Removes target(s) from a rule so that when the rule is triggered, those targets // will no longer be invoked. // // Note: When you remove a target, when the associated rule triggers, removed // targets might still continue to be invoked. Please allow a short period of // time for changes to take effect. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon CloudWatch Events's +// API operation, RemoveTargets for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ResourceNotFoundException +// ConcurrentModificationException +// InternalException func (c *CloudWatchEvents) RemoveTargets(input *RemoveTargetsInput) (*RemoveTargetsOutput, error) { req, out := c.RemoveTargetsRequest(input) err := req.Send() @@ -657,6 +826,8 @@ func (c *CloudWatchEvents) TestEventPatternRequest(input *TestEventPatternInput) return } +// TestEventPattern API operation for Amazon CloudWatch Events. +// // Tests whether an event pattern matches the provided event. // // Note: Most services in AWS treat : or / as the same character in Amazon @@ -664,6 +835,19 @@ func (c *CloudWatchEvents) TestEventPatternRequest(input *TestEventPatternInput) // event patterns and rules. Be sure to use the correct ARN characters when // creating event patterns so that they match the ARN syntax in the event you // want to match. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon CloudWatch Events's +// API operation, TestEventPattern for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidEventPatternException +// InternalException func (c *CloudWatchEvents) TestEventPattern(input *TestEventPatternInput) (*TestEventPatternOutput, error) { req, out := c.TestEventPatternRequest(input) err := req.Send() diff --git a/service/cloudwatchlogs/api.go b/service/cloudwatchlogs/api.go index 9c41bcf490c..192cf9dab36 100644 --- a/service/cloudwatchlogs/api.go +++ b/service/cloudwatchlogs/api.go @@ -55,7 +55,24 @@ func (c *CloudWatchLogs) CancelExportTaskRequest(input *CancelExportTaskInput) ( return } +// CancelExportTask API operation for Amazon CloudWatch Logs. +// // Cancels an export task if it is in PENDING or RUNNING state. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon CloudWatch Logs's +// API operation, CancelExportTask for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidParameterException +// ResourceNotFoundException +// InvalidOperationException +// ServiceUnavailableException func (c *CloudWatchLogs) CancelExportTask(input *CancelExportTaskInput) (*CancelExportTaskOutput, error) { req, out := c.CancelExportTaskRequest(input) err := req.Send() @@ -103,6 +120,8 @@ func (c *CloudWatchLogs) CreateExportTaskRequest(input *CreateExportTaskInput) ( return } +// CreateExportTask API operation for Amazon CloudWatch Logs. +// // Creates an ExportTask which allows you to efficiently export data from a // Log Group to your Amazon S3 bucket. // @@ -116,6 +135,23 @@ func (c *CloudWatchLogs) CreateExportTaskRequest(input *CreateExportTaskInput) ( // the same Amazon S3 bucket. To separate out log data for each export task, // you can specify a prefix that will be used as the Amazon S3 key prefix for // all exported objects. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon CloudWatch Logs's +// API operation, CreateExportTask for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidParameterException +// LimitExceededException +// OperationAbortedException +// ServiceUnavailableException +// ResourceNotFoundException +// ResourceAlreadyExistsException func (c *CloudWatchLogs) CreateExportTask(input *CreateExportTaskInput) (*CreateExportTaskOutput, error) { req, out := c.CreateExportTaskRequest(input) err := req.Send() @@ -165,6 +201,8 @@ func (c *CloudWatchLogs) CreateLogGroupRequest(input *CreateLogGroupInput) (req return } +// CreateLogGroup API operation for Amazon CloudWatch Logs. +// // Creates a new log group with the specified name. The name of the log group // must be unique within a region for an AWS account. You can create up to 500 // log groups per account. @@ -175,6 +213,22 @@ func (c *CloudWatchLogs) CreateLogGroupRequest(input *CreateLogGroupInput) (req // // Allowed characters are a-z, A-Z, 0-9, '_' (underscore), '-' (hyphen), // '/' (forward slash), and '.' (period). +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon CloudWatch Logs's +// API operation, CreateLogGroup for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidParameterException +// ResourceAlreadyExistsException +// LimitExceededException +// OperationAbortedException +// ServiceUnavailableException func (c *CloudWatchLogs) CreateLogGroup(input *CreateLogGroupInput) (*CreateLogGroupOutput, error) { req, out := c.CreateLogGroupRequest(input) err := req.Send() @@ -224,6 +278,8 @@ func (c *CloudWatchLogs) CreateLogStreamRequest(input *CreateLogStreamInput) (re return } +// CreateLogStream API operation for Amazon CloudWatch Logs. +// // Creates a new log stream in the specified log group. The name of the log // stream must be unique within the log group. There is no limit on the number // of log streams that can exist in a log group. @@ -233,6 +289,21 @@ func (c *CloudWatchLogs) CreateLogStreamRequest(input *CreateLogStreamInput) (re // Log stream names can be between 1 and 512 characters long. // // The ':' colon character is not allowed. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon CloudWatch Logs's +// API operation, CreateLogStream for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidParameterException +// ResourceAlreadyExistsException +// ResourceNotFoundException +// ServiceUnavailableException func (c *CloudWatchLogs) CreateLogStream(input *CreateLogStreamInput) (*CreateLogStreamOutput, error) { req, out := c.CreateLogStreamRequest(input) err := req.Send() @@ -282,9 +353,26 @@ func (c *CloudWatchLogs) DeleteDestinationRequest(input *DeleteDestinationInput) return } +// DeleteDestination API operation for Amazon CloudWatch Logs. +// // Deletes the destination with the specified name and eventually disables all // the subscription filters that publish to it. This will not delete the physical // resource encapsulated by the destination. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon CloudWatch Logs's +// API operation, DeleteDestination for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidParameterException +// ResourceNotFoundException +// OperationAbortedException +// ServiceUnavailableException func (c *CloudWatchLogs) DeleteDestination(input *DeleteDestinationInput) (*DeleteDestinationOutput, error) { req, out := c.DeleteDestinationRequest(input) err := req.Send() @@ -334,8 +422,25 @@ func (c *CloudWatchLogs) DeleteLogGroupRequest(input *DeleteLogGroupInput) (req return } +// DeleteLogGroup API operation for Amazon CloudWatch Logs. +// // Deletes the log group with the specified name and permanently deletes all // the archived log events associated with it. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon CloudWatch Logs's +// API operation, DeleteLogGroup for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidParameterException +// ResourceNotFoundException +// OperationAbortedException +// ServiceUnavailableException func (c *CloudWatchLogs) DeleteLogGroup(input *DeleteLogGroupInput) (*DeleteLogGroupOutput, error) { req, out := c.DeleteLogGroupRequest(input) err := req.Send() @@ -385,8 +490,25 @@ func (c *CloudWatchLogs) DeleteLogStreamRequest(input *DeleteLogStreamInput) (re return } +// DeleteLogStream API operation for Amazon CloudWatch Logs. +// // Deletes a log stream and permanently deletes all the archived log events // associated with it. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon CloudWatch Logs's +// API operation, DeleteLogStream for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidParameterException +// ResourceNotFoundException +// OperationAbortedException +// ServiceUnavailableException func (c *CloudWatchLogs) DeleteLogStream(input *DeleteLogStreamInput) (*DeleteLogStreamOutput, error) { req, out := c.DeleteLogStreamRequest(input) err := req.Send() @@ -436,7 +558,24 @@ func (c *CloudWatchLogs) DeleteMetricFilterRequest(input *DeleteMetricFilterInpu return } +// DeleteMetricFilter API operation for Amazon CloudWatch Logs. +// // Deletes a metric filter associated with the specified log group. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon CloudWatch Logs's +// API operation, DeleteMetricFilter for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidParameterException +// ResourceNotFoundException +// OperationAbortedException +// ServiceUnavailableException func (c *CloudWatchLogs) DeleteMetricFilter(input *DeleteMetricFilterInput) (*DeleteMetricFilterOutput, error) { req, out := c.DeleteMetricFilterRequest(input) err := req.Send() @@ -486,8 +625,25 @@ func (c *CloudWatchLogs) DeleteRetentionPolicyRequest(input *DeleteRetentionPoli return } +// DeleteRetentionPolicy API operation for Amazon CloudWatch Logs. +// // Deletes the retention policy of the specified log group. Log events would // not expire if they belong to log groups without a retention policy. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon CloudWatch Logs's +// API operation, DeleteRetentionPolicy for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidParameterException +// ResourceNotFoundException +// OperationAbortedException +// ServiceUnavailableException func (c *CloudWatchLogs) DeleteRetentionPolicy(input *DeleteRetentionPolicyInput) (*DeleteRetentionPolicyOutput, error) { req, out := c.DeleteRetentionPolicyRequest(input) err := req.Send() @@ -537,7 +693,24 @@ func (c *CloudWatchLogs) DeleteSubscriptionFilterRequest(input *DeleteSubscripti return } +// DeleteSubscriptionFilter API operation for Amazon CloudWatch Logs. +// // Deletes a subscription filter associated with the specified log group. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon CloudWatch Logs's +// API operation, DeleteSubscriptionFilter for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidParameterException +// ResourceNotFoundException +// OperationAbortedException +// ServiceUnavailableException func (c *CloudWatchLogs) DeleteSubscriptionFilter(input *DeleteSubscriptionFilterInput) (*DeleteSubscriptionFilterOutput, error) { req, out := c.DeleteSubscriptionFilterRequest(input) err := req.Send() @@ -591,6 +764,8 @@ func (c *CloudWatchLogs) DescribeDestinationsRequest(input *DescribeDestinations return } +// DescribeDestinations API operation for Amazon CloudWatch Logs. +// // Returns all the destinations that are associated with the AWS account making // the request. The list returned in the response is ASCII-sorted by destination // name. @@ -599,6 +774,19 @@ func (c *CloudWatchLogs) DescribeDestinationsRequest(input *DescribeDestinations // destinations to list, the response would contain a nextToken value in the // response body. You can also limit the number of destinations returned in // the response by specifying the limit parameter in the request. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon CloudWatch Logs's +// API operation, DescribeDestinations for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidParameterException +// ServiceUnavailableException func (c *CloudWatchLogs) DescribeDestinations(input *DescribeDestinationsInput) (*DescribeDestinationsOutput, error) { req, out := c.DescribeDestinationsRequest(input) err := req.Send() @@ -671,6 +859,8 @@ func (c *CloudWatchLogs) DescribeExportTasksRequest(input *DescribeExportTasksIn return } +// DescribeExportTasks API operation for Amazon CloudWatch Logs. +// // Returns all the export tasks that are associated with the AWS account making // the request. The export tasks can be filtered based on TaskId or TaskStatus. // @@ -679,6 +869,19 @@ func (c *CloudWatchLogs) DescribeExportTasksRequest(input *DescribeExportTasksIn // contain a nextToken value in the response body. You can also limit the number // of export tasks returned in the response by specifying the limit parameter // in the request. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon CloudWatch Logs's +// API operation, DescribeExportTasks for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidParameterException +// ServiceUnavailableException func (c *CloudWatchLogs) DescribeExportTasks(input *DescribeExportTasksInput) (*DescribeExportTasksOutput, error) { req, out := c.DescribeExportTasksRequest(input) err := req.Send() @@ -732,6 +935,8 @@ func (c *CloudWatchLogs) DescribeLogGroupsRequest(input *DescribeLogGroupsInput) return } +// DescribeLogGroups API operation for Amazon CloudWatch Logs. +// // Returns all the log groups that are associated with the AWS account making // the request. The list returned in the response is ASCII-sorted by log group // name. @@ -740,6 +945,19 @@ func (c *CloudWatchLogs) DescribeLogGroupsRequest(input *DescribeLogGroupsInput) // log groups to list, the response would contain a nextToken value in the response // body. You can also limit the number of log groups returned in the response // by specifying the limit parameter in the request. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon CloudWatch Logs's +// API operation, DescribeLogGroups for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidParameterException +// ServiceUnavailableException func (c *CloudWatchLogs) DescribeLogGroups(input *DescribeLogGroupsInput) (*DescribeLogGroupsOutput, error) { req, out := c.DescribeLogGroupsRequest(input) err := req.Send() @@ -818,6 +1036,8 @@ func (c *CloudWatchLogs) DescribeLogStreamsRequest(input *DescribeLogStreamsInpu return } +// DescribeLogStreams API operation for Amazon CloudWatch Logs. +// // Returns all the log streams that are associated with the specified log group. // The list returned in the response is ASCII-sorted by log stream name. // @@ -827,6 +1047,20 @@ func (c *CloudWatchLogs) DescribeLogStreamsRequest(input *DescribeLogStreamsInpu // response by specifying the limit parameter in the request. This operation // has a limit of five transactions per second, after which transactions are // throttled. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon CloudWatch Logs's +// API operation, DescribeLogStreams for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidParameterException +// ResourceNotFoundException +// ServiceUnavailableException func (c *CloudWatchLogs) DescribeLogStreams(input *DescribeLogStreamsInput) (*DescribeLogStreamsOutput, error) { req, out := c.DescribeLogStreamsRequest(input) err := req.Send() @@ -905,6 +1139,8 @@ func (c *CloudWatchLogs) DescribeMetricFiltersRequest(input *DescribeMetricFilte return } +// DescribeMetricFilters API operation for Amazon CloudWatch Logs. +// // Returns all the metrics filters associated with the specified log group. // The list returned in the response is ASCII-sorted by filter name. // @@ -912,6 +1148,20 @@ func (c *CloudWatchLogs) DescribeMetricFiltersRequest(input *DescribeMetricFilte // more metric filters to list, the response would contain a nextToken value // in the response body. You can also limit the number of metric filters returned // in the response by specifying the limit parameter in the request. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon CloudWatch Logs's +// API operation, DescribeMetricFilters for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidParameterException +// ResourceNotFoundException +// ServiceUnavailableException func (c *CloudWatchLogs) DescribeMetricFilters(input *DescribeMetricFiltersInput) (*DescribeMetricFiltersOutput, error) { req, out := c.DescribeMetricFiltersRequest(input) err := req.Send() @@ -990,6 +1240,8 @@ func (c *CloudWatchLogs) DescribeSubscriptionFiltersRequest(input *DescribeSubsc return } +// DescribeSubscriptionFilters API operation for Amazon CloudWatch Logs. +// // Returns all the subscription filters associated with the specified log group. // The list returned in the response is ASCII-sorted by filter name. // @@ -998,6 +1250,20 @@ func (c *CloudWatchLogs) DescribeSubscriptionFiltersRequest(input *DescribeSubsc // value in the response body. You can also limit the number of subscription // filters returned in the response by specifying the limit parameter in the // request. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon CloudWatch Logs's +// API operation, DescribeSubscriptionFilters for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidParameterException +// ResourceNotFoundException +// ServiceUnavailableException func (c *CloudWatchLogs) DescribeSubscriptionFilters(input *DescribeSubscriptionFiltersInput) (*DescribeSubscriptionFiltersOutput, error) { req, out := c.DescribeSubscriptionFiltersRequest(input) err := req.Send() @@ -1076,6 +1342,8 @@ func (c *CloudWatchLogs) FilterLogEventsRequest(input *FilterLogEventsInput) (re return } +// FilterLogEvents API operation for Amazon CloudWatch Logs. +// // Retrieves log events, optionally filtered by a filter pattern from the specified // log group. You can provide an optional time range to filter the results on // the event timestamp. You can limit the streams searched to an explicit list @@ -1090,6 +1358,20 @@ func (c *CloudWatchLogs) FilterLogEventsRequest(input *FilterLogEventsInput) (re // and whether they have been searched completely or require further pagination. // The limit parameter in the request can be used to specify the maximum number // of events to return in a page. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon CloudWatch Logs's +// API operation, FilterLogEvents for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidParameterException +// ResourceNotFoundException +// ServiceUnavailableException func (c *CloudWatchLogs) FilterLogEvents(input *FilterLogEventsInput) (*FilterLogEventsOutput, error) { req, out := c.FilterLogEventsRequest(input) err := req.Send() @@ -1168,6 +1450,8 @@ func (c *CloudWatchLogs) GetLogEventsRequest(input *GetLogEventsInput) (req *req return } +// GetLogEvents API operation for Amazon CloudWatch Logs. +// // Retrieves log events from the specified log stream. You can provide an optional // time range to filter the results on the event timestamp. // @@ -1178,6 +1462,20 @@ func (c *CloudWatchLogs) GetLogEventsRequest(input *GetLogEventsInput) (req *req // events in either forward or backward direction. You can also limit the number // of log events returned in the response by specifying the limit parameter // in the request. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon CloudWatch Logs's +// API operation, GetLogEvents for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidParameterException +// ResourceNotFoundException +// ServiceUnavailableException func (c *CloudWatchLogs) GetLogEvents(input *GetLogEventsInput) (*GetLogEventsOutput, error) { req, out := c.GetLogEventsRequest(input) err := req.Send() @@ -1250,6 +1548,8 @@ func (c *CloudWatchLogs) PutDestinationRequest(input *PutDestinationInput) (req return } +// PutDestination API operation for Amazon CloudWatch Logs. +// // Creates or updates a Destination. A destination encapsulates a physical resource // (such as a Kinesis stream) and allows you to subscribe to a real-time stream // of log events of a different account, ingested through PutLogEvents requests. @@ -1261,6 +1561,20 @@ func (c *CloudWatchLogs) PutDestinationRequest(input *PutDestinationInput) (req // with the destination, which means a cross-account user will not be able to // call PutSubscriptionFilter against this destination. To enable that, the // destination owner must call PutDestinationPolicy after PutDestination. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon CloudWatch Logs's +// API operation, PutDestination for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidParameterException +// OperationAbortedException +// ServiceUnavailableException func (c *CloudWatchLogs) PutDestination(input *PutDestinationInput) (*PutDestinationOutput, error) { req, out := c.PutDestinationRequest(input) err := req.Send() @@ -1310,10 +1624,26 @@ func (c *CloudWatchLogs) PutDestinationPolicyRequest(input *PutDestinationPolicy return } +// PutDestinationPolicy API operation for Amazon CloudWatch Logs. +// // Creates or updates an access policy associated with an existing Destination. // An access policy is an IAM policy document (http://docs.aws.amazon.com/IAM/latest/UserGuide/policies_overview.html) // that is used to authorize claims to register a subscription filter against // a given destination. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon CloudWatch Logs's +// API operation, PutDestinationPolicy for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidParameterException +// OperationAbortedException +// ServiceUnavailableException func (c *CloudWatchLogs) PutDestinationPolicy(input *PutDestinationPolicyInput) (*PutDestinationPolicyOutput, error) { req, out := c.PutDestinationPolicyRequest(input) err := req.Send() @@ -1361,6 +1691,8 @@ func (c *CloudWatchLogs) PutLogEventsRequest(input *PutLogEventsInput) (req *req return } +// PutLogEvents API operation for Amazon CloudWatch Logs. +// // Uploads a batch of log events to the specified log stream. // // Every PutLogEvents request must include the sequenceToken obtained from @@ -1385,6 +1717,22 @@ func (c *CloudWatchLogs) PutLogEventsRequest(input *PutLogEventsInput) (req *req // // A batch of log events in a single PutLogEvents request cannot span more // than 24 hours. Otherwise, the PutLogEvents operation will fail. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon CloudWatch Logs's +// API operation, PutLogEvents for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidParameterException +// InvalidSequenceTokenException +// DataAlreadyAcceptedException +// ResourceNotFoundException +// ServiceUnavailableException func (c *CloudWatchLogs) PutLogEvents(input *PutLogEventsInput) (*PutLogEventsOutput, error) { req, out := c.PutLogEventsRequest(input) err := req.Send() @@ -1434,12 +1782,30 @@ func (c *CloudWatchLogs) PutMetricFilterRequest(input *PutMetricFilterInput) (re return } +// PutMetricFilter API operation for Amazon CloudWatch Logs. +// // Creates or updates a metric filter and associates it with the specified log // group. Metric filters allow you to configure rules to extract metric data // from log events ingested through PutLogEvents requests. // // The maximum number of metric filters that can be associated with a log group // is 100. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon CloudWatch Logs's +// API operation, PutMetricFilter for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidParameterException +// ResourceNotFoundException +// OperationAbortedException +// LimitExceededException +// ServiceUnavailableException func (c *CloudWatchLogs) PutMetricFilter(input *PutMetricFilterInput) (*PutMetricFilterOutput, error) { req, out := c.PutMetricFilterRequest(input) err := req.Send() @@ -1489,9 +1855,26 @@ func (c *CloudWatchLogs) PutRetentionPolicyRequest(input *PutRetentionPolicyInpu return } +// PutRetentionPolicy API operation for Amazon CloudWatch Logs. +// // Sets the retention of the specified log group. A retention policy allows // you to configure the number of days you want to retain log events in the // specified log group. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon CloudWatch Logs's +// API operation, PutRetentionPolicy for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidParameterException +// ResourceNotFoundException +// OperationAbortedException +// ServiceUnavailableException func (c *CloudWatchLogs) PutRetentionPolicy(input *PutRetentionPolicyInput) (*PutRetentionPolicyOutput, error) { req, out := c.PutRetentionPolicyRequest(input) err := req.Send() @@ -1541,6 +1924,8 @@ func (c *CloudWatchLogs) PutSubscriptionFilterRequest(input *PutSubscriptionFilt return } +// PutSubscriptionFilter API operation for Amazon CloudWatch Logs. +// // Creates or updates a subscription filter and associates it with the specified // log group. Subscription filters allow you to subscribe to a real-time stream // of log events ingested through PutLogEvents requests and have them delivered @@ -1560,6 +1945,22 @@ func (c *CloudWatchLogs) PutSubscriptionFilterRequest(input *PutSubscriptionFilt // // Currently there can only be one subscription filter associated with a // log group. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon CloudWatch Logs's +// API operation, PutSubscriptionFilter for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidParameterException +// ResourceNotFoundException +// OperationAbortedException +// LimitExceededException +// ServiceUnavailableException func (c *CloudWatchLogs) PutSubscriptionFilter(input *PutSubscriptionFilterInput) (*PutSubscriptionFilterOutput, error) { req, out := c.PutSubscriptionFilterRequest(input) err := req.Send() @@ -1607,9 +2008,24 @@ func (c *CloudWatchLogs) TestMetricFilterRequest(input *TestMetricFilterInput) ( return } +// TestMetricFilter API operation for Amazon CloudWatch Logs. +// // Tests the filter pattern of a metric filter against a sample of log event // messages. You can use this operation to validate the correctness of a metric // filter pattern. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon CloudWatch Logs's +// API operation, TestMetricFilter for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidParameterException +// ServiceUnavailableException func (c *CloudWatchLogs) TestMetricFilter(input *TestMetricFilterInput) (*TestMetricFilterOutput, error) { req, out := c.TestMetricFilterRequest(input) err := req.Send() diff --git a/service/codecommit/api.go b/service/codecommit/api.go index 935fa21fbc4..24f35d895a0 100644 --- a/service/codecommit/api.go +++ b/service/codecommit/api.go @@ -53,6 +53,8 @@ func (c *CodeCommit) BatchGetRepositoriesRequest(input *BatchGetRepositoriesInpu return } +// BatchGetRepositories API operation for AWS CodeCommit. +// // Returns information about one or more repositories. // // The description field for a repository accepts all HTML characters and all @@ -60,6 +62,25 @@ func (c *CodeCommit) BatchGetRepositoriesRequest(input *BatchGetRepositoriesInpu // and display it in a web page could expose users to potentially malicious // code. Make sure that you HTML-encode the description field in any application // that uses this API to display the repository description on a web page. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS CodeCommit's +// API operation, BatchGetRepositories for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// RepositoryNamesRequiredException +// MaximumRepositoryNamesExceededException +// InvalidRepositoryNameException +// EncryptionIntegrityChecksFailedException +// EncryptionKeyAccessDeniedException +// EncryptionKeyDisabledException +// EncryptionKeyNotFoundException +// EncryptionKeyUnavailableException func (c *CodeCommit) BatchGetRepositories(input *BatchGetRepositoriesInput) (*BatchGetRepositoriesOutput, error) { req, out := c.BatchGetRepositoriesRequest(input) err := req.Send() @@ -109,10 +130,37 @@ func (c *CodeCommit) CreateBranchRequest(input *CreateBranchInput) (req *request return } +// CreateBranch API operation for AWS CodeCommit. +// // Creates a new branch in a repository and points the branch to a commit. // // Calling the create branch operation does not set a repository's default // branch. To do this, call the update default branch operation. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS CodeCommit's +// API operation, CreateBranch for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// RepositoryNameRequiredException +// InvalidRepositoryNameException +// RepositoryDoesNotExistException +// BranchNameRequiredException +// BranchNameExistsException +// InvalidBranchNameException +// CommitIdRequiredException +// CommitDoesNotExistException +// InvalidCommitIdException +// EncryptionIntegrityChecksFailedException +// EncryptionKeyAccessDeniedException +// EncryptionKeyDisabledException +// EncryptionKeyNotFoundException +// EncryptionKeyUnavailableException func (c *CodeCommit) CreateBranch(input *CreateBranchInput) (*CreateBranchOutput, error) { req, out := c.CreateBranchRequest(input) err := req.Send() @@ -160,7 +208,30 @@ func (c *CodeCommit) CreateRepositoryRequest(input *CreateRepositoryInput) (req return } +// CreateRepository API operation for AWS CodeCommit. +// // Creates a new, empty repository. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS CodeCommit's +// API operation, CreateRepository for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// RepositoryNameExistsException +// RepositoryNameRequiredException +// InvalidRepositoryNameException +// InvalidRepositoryDescriptionException +// RepositoryLimitExceededException +// EncryptionIntegrityChecksFailedException +// EncryptionKeyAccessDeniedException +// EncryptionKeyDisabledException +// EncryptionKeyNotFoundException +// EncryptionKeyUnavailableException func (c *CodeCommit) CreateRepository(input *CreateRepositoryInput) (*CreateRepositoryOutput, error) { req, out := c.CreateRepositoryRequest(input) err := req.Send() @@ -208,12 +279,32 @@ func (c *CodeCommit) DeleteRepositoryRequest(input *DeleteRepositoryInput) (req return } +// DeleteRepository API operation for AWS CodeCommit. +// // Deletes a repository. If a specified repository was already deleted, a null // repository ID will be returned. // // Deleting a repository also deletes all associated objects and metadata. // After a repository is deleted, all future push calls to the deleted repository // will fail. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS CodeCommit's +// API operation, DeleteRepository for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// RepositoryNameRequiredException +// InvalidRepositoryNameException +// EncryptionIntegrityChecksFailedException +// EncryptionKeyAccessDeniedException +// EncryptionKeyDisabledException +// EncryptionKeyNotFoundException +// EncryptionKeyUnavailableException func (c *CodeCommit) DeleteRepository(input *DeleteRepositoryInput) (*DeleteRepositoryOutput, error) { req, out := c.DeleteRepositoryRequest(input) err := req.Send() @@ -261,8 +352,32 @@ func (c *CodeCommit) GetBranchRequest(input *GetBranchInput) (req *request.Reque return } +// GetBranch API operation for AWS CodeCommit. +// // Returns information about a repository branch, including its name and the // last commit ID. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS CodeCommit's +// API operation, GetBranch for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// RepositoryNameRequiredException +// RepositoryDoesNotExistException +// InvalidRepositoryNameException +// BranchNameRequiredException +// InvalidBranchNameException +// BranchDoesNotExistException +// EncryptionIntegrityChecksFailedException +// EncryptionKeyAccessDeniedException +// EncryptionKeyDisabledException +// EncryptionKeyNotFoundException +// EncryptionKeyUnavailableException func (c *CodeCommit) GetBranch(input *GetBranchInput) (*GetBranchOutput, error) { req, out := c.GetBranchRequest(input) err := req.Send() @@ -310,8 +425,32 @@ func (c *CodeCommit) GetCommitRequest(input *GetCommitInput) (req *request.Reque return } +// GetCommit API operation for AWS CodeCommit. +// // Returns information about a commit, including commit message and committer // information. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS CodeCommit's +// API operation, GetCommit for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// RepositoryNameRequiredException +// InvalidRepositoryNameException +// RepositoryDoesNotExistException +// CommitIdRequiredException +// InvalidCommitIdException +// CommitIdDoesNotExistException +// EncryptionIntegrityChecksFailedException +// EncryptionKeyAccessDeniedException +// EncryptionKeyDisabledException +// EncryptionKeyNotFoundException +// EncryptionKeyUnavailableException func (c *CodeCommit) GetCommit(input *GetCommitInput) (*GetCommitOutput, error) { req, out := c.GetCommitRequest(input) err := req.Send() @@ -359,6 +498,8 @@ func (c *CodeCommit) GetRepositoryRequest(input *GetRepositoryInput) (req *reque return } +// GetRepository API operation for AWS CodeCommit. +// // Returns information about a repository. // // The description field for a repository accepts all HTML characters and all @@ -366,6 +507,25 @@ func (c *CodeCommit) GetRepositoryRequest(input *GetRepositoryInput) (req *reque // and display it in a web page could expose users to potentially malicious // code. Make sure that you HTML-encode the description field in any application // that uses this API to display the repository description on a web page. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS CodeCommit's +// API operation, GetRepository for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// RepositoryNameRequiredException +// RepositoryDoesNotExistException +// InvalidRepositoryNameException +// EncryptionIntegrityChecksFailedException +// EncryptionKeyAccessDeniedException +// EncryptionKeyDisabledException +// EncryptionKeyNotFoundException +// EncryptionKeyUnavailableException func (c *CodeCommit) GetRepository(input *GetRepositoryInput) (*GetRepositoryOutput, error) { req, out := c.GetRepositoryRequest(input) err := req.Send() @@ -413,7 +573,28 @@ func (c *CodeCommit) GetRepositoryTriggersRequest(input *GetRepositoryTriggersIn return } +// GetRepositoryTriggers API operation for AWS CodeCommit. +// // Gets information about triggers configured for a repository. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS CodeCommit's +// API operation, GetRepositoryTriggers for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// RepositoryNameRequiredException +// InvalidRepositoryNameException +// RepositoryDoesNotExistException +// EncryptionIntegrityChecksFailedException +// EncryptionKeyAccessDeniedException +// EncryptionKeyDisabledException +// EncryptionKeyNotFoundException +// EncryptionKeyUnavailableException func (c *CodeCommit) GetRepositoryTriggers(input *GetRepositoryTriggersInput) (*GetRepositoryTriggersOutput, error) { req, out := c.GetRepositoryTriggersRequest(input) err := req.Send() @@ -467,7 +648,29 @@ func (c *CodeCommit) ListBranchesRequest(input *ListBranchesInput) (req *request return } +// ListBranches API operation for AWS CodeCommit. +// // Gets information about one or more branches in a repository. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS CodeCommit's +// API operation, ListBranches for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// RepositoryNameRequiredException +// RepositoryDoesNotExistException +// InvalidRepositoryNameException +// EncryptionIntegrityChecksFailedException +// EncryptionKeyAccessDeniedException +// EncryptionKeyDisabledException +// EncryptionKeyNotFoundException +// EncryptionKeyUnavailableException +// InvalidContinuationTokenException func (c *CodeCommit) ListBranches(input *ListBranchesInput) (*ListBranchesOutput, error) { req, out := c.ListBranchesRequest(input) err := req.Send() @@ -546,7 +749,23 @@ func (c *CodeCommit) ListRepositoriesRequest(input *ListRepositoriesInput) (req return } +// ListRepositories API operation for AWS CodeCommit. +// // Gets information about one or more repositories. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS CodeCommit's +// API operation, ListRepositories for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidSortByException +// InvalidOrderException +// InvalidContinuationTokenException func (c *CodeCommit) ListRepositories(input *ListRepositoriesInput) (*ListRepositoriesOutput, error) { req, out := c.ListRepositoriesRequest(input) err := req.Send() @@ -619,8 +838,42 @@ func (c *CodeCommit) PutRepositoryTriggersRequest(input *PutRepositoryTriggersIn return } +// PutRepositoryTriggers API operation for AWS CodeCommit. +// // Replaces all triggers for a repository. This can be used to create or delete // triggers. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS CodeCommit's +// API operation, PutRepositoryTriggers for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// RepositoryDoesNotExistException +// RepositoryNameRequiredException +// InvalidRepositoryNameException +// RepositoryTriggersListRequiredException +// MaximumRepositoryTriggersExceededException +// InvalidRepositoryTriggerNameException +// InvalidRepositoryTriggerDestinationArnException +// InvalidRepositoryTriggerRegionException +// InvalidRepositoryTriggerCustomDataException +// MaximumBranchesExceededException +// InvalidRepositoryTriggerBranchNameException +// InvalidRepositoryTriggerEventsException +// RepositoryTriggerNameRequiredException +// RepositoryTriggerDestinationArnRequiredException +// RepositoryTriggerBranchNameListRequiredException +// RepositoryTriggerEventsListRequiredException +// EncryptionIntegrityChecksFailedException +// EncryptionKeyAccessDeniedException +// EncryptionKeyDisabledException +// EncryptionKeyNotFoundException +// EncryptionKeyUnavailableException func (c *CodeCommit) PutRepositoryTriggers(input *PutRepositoryTriggersInput) (*PutRepositoryTriggersOutput, error) { req, out := c.PutRepositoryTriggersRequest(input) err := req.Send() @@ -668,10 +921,44 @@ func (c *CodeCommit) TestRepositoryTriggersRequest(input *TestRepositoryTriggers return } +// TestRepositoryTriggers API operation for AWS CodeCommit. +// // Tests the functionality of repository triggers by sending information to // the trigger target. If real data is available in the repository, the test // will send data from the last commit. If no data is available, sample data // will be generated. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS CodeCommit's +// API operation, TestRepositoryTriggers for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// RepositoryDoesNotExistException +// RepositoryNameRequiredException +// InvalidRepositoryNameException +// RepositoryTriggersListRequiredException +// MaximumRepositoryTriggersExceededException +// InvalidRepositoryTriggerNameException +// InvalidRepositoryTriggerDestinationArnException +// InvalidRepositoryTriggerRegionException +// InvalidRepositoryTriggerCustomDataException +// MaximumBranchesExceededException +// InvalidRepositoryTriggerBranchNameException +// InvalidRepositoryTriggerEventsException +// RepositoryTriggerNameRequiredException +// RepositoryTriggerDestinationArnRequiredException +// RepositoryTriggerBranchNameListRequiredException +// RepositoryTriggerEventsListRequiredException +// EncryptionIntegrityChecksFailedException +// EncryptionKeyAccessDeniedException +// EncryptionKeyDisabledException +// EncryptionKeyNotFoundException +// EncryptionKeyUnavailableException func (c *CodeCommit) TestRepositoryTriggers(input *TestRepositoryTriggersInput) (*TestRepositoryTriggersOutput, error) { req, out := c.TestRepositoryTriggersRequest(input) err := req.Send() @@ -721,11 +1008,35 @@ func (c *CodeCommit) UpdateDefaultBranchRequest(input *UpdateDefaultBranchInput) return } +// UpdateDefaultBranch API operation for AWS CodeCommit. +// // Sets or changes the default branch name for the specified repository. // // If you use this operation to change the default branch name to the current // default branch name, a success message is returned even though the default // branch did not change. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS CodeCommit's +// API operation, UpdateDefaultBranch for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// RepositoryNameRequiredException +// RepositoryDoesNotExistException +// InvalidRepositoryNameException +// BranchNameRequiredException +// InvalidBranchNameException +// BranchDoesNotExistException +// EncryptionIntegrityChecksFailedException +// EncryptionKeyAccessDeniedException +// EncryptionKeyDisabledException +// EncryptionKeyNotFoundException +// EncryptionKeyUnavailableException func (c *CodeCommit) UpdateDefaultBranch(input *UpdateDefaultBranchInput) (*UpdateDefaultBranchOutput, error) { req, out := c.UpdateDefaultBranchRequest(input) err := req.Send() @@ -775,6 +1086,8 @@ func (c *CodeCommit) UpdateRepositoryDescriptionRequest(input *UpdateRepositoryD return } +// UpdateRepositoryDescription API operation for AWS CodeCommit. +// // Sets or changes the comment or description for a repository. // // The description field for a repository accepts all HTML characters and all @@ -782,6 +1095,26 @@ func (c *CodeCommit) UpdateRepositoryDescriptionRequest(input *UpdateRepositoryD // and display it in a web page could expose users to potentially malicious // code. Make sure that you HTML-encode the description field in any application // that uses this API to display the repository description on a web page. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS CodeCommit's +// API operation, UpdateRepositoryDescription for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// RepositoryNameRequiredException +// RepositoryDoesNotExistException +// InvalidRepositoryNameException +// InvalidRepositoryDescriptionException +// EncryptionIntegrityChecksFailedException +// EncryptionKeyAccessDeniedException +// EncryptionKeyDisabledException +// EncryptionKeyNotFoundException +// EncryptionKeyUnavailableException func (c *CodeCommit) UpdateRepositoryDescription(input *UpdateRepositoryDescriptionInput) (*UpdateRepositoryDescriptionOutput, error) { req, out := c.UpdateRepositoryDescriptionRequest(input) err := req.Send() @@ -831,12 +1164,29 @@ func (c *CodeCommit) UpdateRepositoryNameRequest(input *UpdateRepositoryNameInpu return } +// UpdateRepositoryName API operation for AWS CodeCommit. +// // Renames a repository. The repository name must be unique across the calling // AWS account. In addition, repository names are limited to 100 alphanumeric, // dash, and underscore characters, and cannot include certain characters. The // suffix ".git" is prohibited. For a full description of the limits on repository // names, see Limits (http://docs.aws.amazon.com/codecommit/latest/userguide/limits.html) // in the AWS CodeCommit User Guide. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS CodeCommit's +// API operation, UpdateRepositoryName for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// RepositoryDoesNotExistException +// RepositoryNameExistsException +// RepositoryNameRequiredException +// InvalidRepositoryNameException func (c *CodeCommit) UpdateRepositoryName(input *UpdateRepositoryNameInput) (*UpdateRepositoryNameOutput, error) { req, out := c.UpdateRepositoryNameRequest(input) err := req.Send() diff --git a/service/codedeploy/api.go b/service/codedeploy/api.go index a09e87026a3..05b29fdc72a 100644 --- a/service/codedeploy/api.go +++ b/service/codedeploy/api.go @@ -55,7 +55,26 @@ func (c *CodeDeploy) AddTagsToOnPremisesInstancesRequest(input *AddTagsToOnPremi return } +// AddTagsToOnPremisesInstances API operation for AWS CodeDeploy. +// // Adds tags to on-premises instances. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS CodeDeploy's +// API operation, AddTagsToOnPremisesInstances for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InstanceNameRequiredException +// TagRequiredException +// InvalidTagException +// TagLimitExceededException +// InstanceLimitExceededException +// InstanceNotRegisteredException func (c *CodeDeploy) AddTagsToOnPremisesInstances(input *AddTagsToOnPremisesInstancesInput) (*AddTagsToOnPremisesInstancesOutput, error) { req, out := c.AddTagsToOnPremisesInstancesRequest(input) err := req.Send() @@ -103,7 +122,26 @@ func (c *CodeDeploy) BatchGetApplicationRevisionsRequest(input *BatchGetApplicat return } +// BatchGetApplicationRevisions API operation for AWS CodeDeploy. +// // Gets information about one or more application revisions. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS CodeDeploy's +// API operation, BatchGetApplicationRevisions for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ApplicationDoesNotExistException +// ApplicationNameRequiredException +// InvalidApplicationNameException +// RevisionRequiredException +// InvalidRevisionException +// BatchLimitExceededException func (c *CodeDeploy) BatchGetApplicationRevisions(input *BatchGetApplicationRevisionsInput) (*BatchGetApplicationRevisionsOutput, error) { req, out := c.BatchGetApplicationRevisionsRequest(input) err := req.Send() @@ -151,7 +189,24 @@ func (c *CodeDeploy) BatchGetApplicationsRequest(input *BatchGetApplicationsInpu return } +// BatchGetApplications API operation for AWS CodeDeploy. +// // Gets information about one or more applications. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS CodeDeploy's +// API operation, BatchGetApplications for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ApplicationNameRequiredException +// InvalidApplicationNameException +// ApplicationDoesNotExistException +// BatchLimitExceededException func (c *CodeDeploy) BatchGetApplications(input *BatchGetApplicationsInput) (*BatchGetApplicationsOutput, error) { req, out := c.BatchGetApplicationsRequest(input) err := req.Send() @@ -199,7 +254,26 @@ func (c *CodeDeploy) BatchGetDeploymentGroupsRequest(input *BatchGetDeploymentGr return } +// BatchGetDeploymentGroups API operation for AWS CodeDeploy. +// // Get information about one or more deployment groups. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS CodeDeploy's +// API operation, BatchGetDeploymentGroups for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ApplicationNameRequiredException +// InvalidApplicationNameException +// ApplicationDoesNotExistException +// DeploymentGroupNameRequiredException +// InvalidDeploymentGroupNameException +// BatchLimitExceededException func (c *CodeDeploy) BatchGetDeploymentGroups(input *BatchGetDeploymentGroupsInput) (*BatchGetDeploymentGroupsOutput, error) { req, out := c.BatchGetDeploymentGroupsRequest(input) err := req.Send() @@ -247,8 +321,27 @@ func (c *CodeDeploy) BatchGetDeploymentInstancesRequest(input *BatchGetDeploymen return } +// BatchGetDeploymentInstances API operation for AWS CodeDeploy. +// // Gets information about one or more instance that are part of a deployment // group. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS CodeDeploy's +// API operation, BatchGetDeploymentInstances for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// DeploymentIdRequiredException +// DeploymentDoesNotExistException +// InstanceIdRequiredException +// InvalidDeploymentIdException +// InvalidInstanceNameException +// BatchLimitExceededException func (c *CodeDeploy) BatchGetDeploymentInstances(input *BatchGetDeploymentInstancesInput) (*BatchGetDeploymentInstancesOutput, error) { req, out := c.BatchGetDeploymentInstancesRequest(input) err := req.Send() @@ -296,7 +389,23 @@ func (c *CodeDeploy) BatchGetDeploymentsRequest(input *BatchGetDeploymentsInput) return } +// BatchGetDeployments API operation for AWS CodeDeploy. +// // Gets information about one or more deployments. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS CodeDeploy's +// API operation, BatchGetDeployments for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// DeploymentIdRequiredException +// InvalidDeploymentIdException +// BatchLimitExceededException func (c *CodeDeploy) BatchGetDeployments(input *BatchGetDeploymentsInput) (*BatchGetDeploymentsOutput, error) { req, out := c.BatchGetDeploymentsRequest(input) err := req.Send() @@ -344,7 +453,23 @@ func (c *CodeDeploy) BatchGetOnPremisesInstancesRequest(input *BatchGetOnPremise return } +// BatchGetOnPremisesInstances API operation for AWS CodeDeploy. +// // Gets information about one or more on-premises instances. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS CodeDeploy's +// API operation, BatchGetOnPremisesInstances for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InstanceNameRequiredException +// InvalidInstanceNameException +// BatchLimitExceededException func (c *CodeDeploy) BatchGetOnPremisesInstances(input *BatchGetOnPremisesInstancesInput) (*BatchGetOnPremisesInstancesOutput, error) { req, out := c.BatchGetOnPremisesInstancesRequest(input) err := req.Send() @@ -392,7 +517,24 @@ func (c *CodeDeploy) CreateApplicationRequest(input *CreateApplicationInput) (re return } +// CreateApplication API operation for AWS CodeDeploy. +// // Creates an application. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS CodeDeploy's +// API operation, CreateApplication for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ApplicationNameRequiredException +// InvalidApplicationNameException +// ApplicationAlreadyExistsException +// ApplicationLimitExceededException func (c *CodeDeploy) CreateApplication(input *CreateApplicationInput) (*CreateApplicationOutput, error) { req, out := c.CreateApplicationRequest(input) err := req.Send() @@ -440,7 +582,34 @@ func (c *CodeDeploy) CreateDeploymentRequest(input *CreateDeploymentInput) (req return } +// CreateDeployment API operation for AWS CodeDeploy. +// // Deploys an application revision through the specified deployment group. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS CodeDeploy's +// API operation, CreateDeployment for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ApplicationNameRequiredException +// InvalidApplicationNameException +// ApplicationDoesNotExistException +// DeploymentGroupNameRequiredException +// InvalidDeploymentGroupNameException +// DeploymentGroupDoesNotExistException +// RevisionRequiredException +// RevisionDoesNotExistException +// InvalidRevisionException +// InvalidDeploymentConfigNameException +// DeploymentConfigDoesNotExistException +// DescriptionTooLongException +// DeploymentLimitExceededException +// InvalidAutoRollbackConfigException func (c *CodeDeploy) CreateDeployment(input *CreateDeploymentInput) (*CreateDeploymentOutput, error) { req, out := c.CreateDeploymentRequest(input) err := req.Send() @@ -488,7 +657,25 @@ func (c *CodeDeploy) CreateDeploymentConfigRequest(input *CreateDeploymentConfig return } +// CreateDeploymentConfig API operation for AWS CodeDeploy. +// // Creates a deployment configuration. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS CodeDeploy's +// API operation, CreateDeploymentConfig for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidDeploymentConfigNameException +// DeploymentConfigNameRequiredException +// DeploymentConfigAlreadyExistsException +// InvalidMinimumHealthyHostValueException +// DeploymentConfigLimitExceededException func (c *CodeDeploy) CreateDeploymentConfig(input *CreateDeploymentConfigInput) (*CreateDeploymentConfigOutput, error) { req, out := c.CreateDeploymentConfigRequest(input) err := req.Send() @@ -536,7 +723,40 @@ func (c *CodeDeploy) CreateDeploymentGroupRequest(input *CreateDeploymentGroupIn return } +// CreateDeploymentGroup API operation for AWS CodeDeploy. +// // Creates a deployment group to which application revisions will be deployed. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS CodeDeploy's +// API operation, CreateDeploymentGroup for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ApplicationNameRequiredException +// InvalidApplicationNameException +// ApplicationDoesNotExistException +// DeploymentGroupNameRequiredException +// InvalidDeploymentGroupNameException +// DeploymentGroupAlreadyExistsException +// InvalidEC2TagException +// InvalidTagException +// InvalidAutoScalingGroupException +// InvalidDeploymentConfigNameException +// DeploymentConfigDoesNotExistException +// RoleRequiredException +// InvalidRoleException +// DeploymentGroupLimitExceededException +// LifecycleHookLimitExceededException +// InvalidTriggerConfigException +// TriggerTargetsLimitExceededException +// InvalidAlarmConfigException +// AlarmsLimitExceededException +// InvalidAutoRollbackConfigException func (c *CodeDeploy) CreateDeploymentGroup(input *CreateDeploymentGroupInput) (*CreateDeploymentGroupOutput, error) { req, out := c.CreateDeploymentGroupRequest(input) err := req.Send() @@ -586,7 +806,22 @@ func (c *CodeDeploy) DeleteApplicationRequest(input *DeleteApplicationInput) (re return } +// DeleteApplication API operation for AWS CodeDeploy. +// // Deletes an application. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS CodeDeploy's +// API operation, DeleteApplication for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ApplicationNameRequiredException +// InvalidApplicationNameException func (c *CodeDeploy) DeleteApplication(input *DeleteApplicationInput) (*DeleteApplicationOutput, error) { req, out := c.DeleteApplicationRequest(input) err := req.Send() @@ -636,10 +871,27 @@ func (c *CodeDeploy) DeleteDeploymentConfigRequest(input *DeleteDeploymentConfig return } +// DeleteDeploymentConfig API operation for AWS CodeDeploy. +// // Deletes a deployment configuration. // // A deployment configuration cannot be deleted if it is currently in use. // Predefined configurations cannot be deleted. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS CodeDeploy's +// API operation, DeleteDeploymentConfig for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidDeploymentConfigNameException +// DeploymentConfigNameRequiredException +// DeploymentConfigInUseException +// InvalidOperationException func (c *CodeDeploy) DeleteDeploymentConfig(input *DeleteDeploymentConfigInput) (*DeleteDeploymentConfigOutput, error) { req, out := c.DeleteDeploymentConfigRequest(input) err := req.Send() @@ -687,7 +939,25 @@ func (c *CodeDeploy) DeleteDeploymentGroupRequest(input *DeleteDeploymentGroupIn return } +// DeleteDeploymentGroup API operation for AWS CodeDeploy. +// // Deletes a deployment group. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS CodeDeploy's +// API operation, DeleteDeploymentGroup for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ApplicationNameRequiredException +// InvalidApplicationNameException +// DeploymentGroupNameRequiredException +// InvalidDeploymentGroupNameException +// InvalidRoleException func (c *CodeDeploy) DeleteDeploymentGroup(input *DeleteDeploymentGroupInput) (*DeleteDeploymentGroupOutput, error) { req, out := c.DeleteDeploymentGroupRequest(input) err := req.Send() @@ -737,7 +1007,22 @@ func (c *CodeDeploy) DeregisterOnPremisesInstanceRequest(input *DeregisterOnPrem return } +// DeregisterOnPremisesInstance API operation for AWS CodeDeploy. +// // Deregisters an on-premises instance. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS CodeDeploy's +// API operation, DeregisterOnPremisesInstance for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InstanceNameRequiredException +// InvalidInstanceNameException func (c *CodeDeploy) DeregisterOnPremisesInstance(input *DeregisterOnPremisesInstanceInput) (*DeregisterOnPremisesInstanceOutput, error) { req, out := c.DeregisterOnPremisesInstanceRequest(input) err := req.Send() @@ -785,7 +1070,23 @@ func (c *CodeDeploy) GetApplicationRequest(input *GetApplicationInput) (req *req return } +// GetApplication API operation for AWS CodeDeploy. +// // Gets information about an application. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS CodeDeploy's +// API operation, GetApplication for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ApplicationNameRequiredException +// InvalidApplicationNameException +// ApplicationDoesNotExistException func (c *CodeDeploy) GetApplication(input *GetApplicationInput) (*GetApplicationOutput, error) { req, out := c.GetApplicationRequest(input) err := req.Send() @@ -833,7 +1134,26 @@ func (c *CodeDeploy) GetApplicationRevisionRequest(input *GetApplicationRevision return } +// GetApplicationRevision API operation for AWS CodeDeploy. +// // Gets information about an application revision. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS CodeDeploy's +// API operation, GetApplicationRevision for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ApplicationDoesNotExistException +// ApplicationNameRequiredException +// InvalidApplicationNameException +// RevisionDoesNotExistException +// RevisionRequiredException +// InvalidRevisionException func (c *CodeDeploy) GetApplicationRevision(input *GetApplicationRevisionInput) (*GetApplicationRevisionOutput, error) { req, out := c.GetApplicationRevisionRequest(input) err := req.Send() @@ -881,7 +1201,23 @@ func (c *CodeDeploy) GetDeploymentRequest(input *GetDeploymentInput) (req *reque return } +// GetDeployment API operation for AWS CodeDeploy. +// // Gets information about a deployment. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS CodeDeploy's +// API operation, GetDeployment for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// DeploymentIdRequiredException +// InvalidDeploymentIdException +// DeploymentDoesNotExistException func (c *CodeDeploy) GetDeployment(input *GetDeploymentInput) (*GetDeploymentOutput, error) { req, out := c.GetDeploymentRequest(input) err := req.Send() @@ -929,7 +1265,23 @@ func (c *CodeDeploy) GetDeploymentConfigRequest(input *GetDeploymentConfigInput) return } +// GetDeploymentConfig API operation for AWS CodeDeploy. +// // Gets information about a deployment configuration. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS CodeDeploy's +// API operation, GetDeploymentConfig for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidDeploymentConfigNameException +// DeploymentConfigNameRequiredException +// DeploymentConfigDoesNotExistException func (c *CodeDeploy) GetDeploymentConfig(input *GetDeploymentConfigInput) (*GetDeploymentConfigOutput, error) { req, out := c.GetDeploymentConfigRequest(input) err := req.Send() @@ -977,7 +1329,26 @@ func (c *CodeDeploy) GetDeploymentGroupRequest(input *GetDeploymentGroupInput) ( return } +// GetDeploymentGroup API operation for AWS CodeDeploy. +// // Gets information about a deployment group. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS CodeDeploy's +// API operation, GetDeploymentGroup for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ApplicationNameRequiredException +// InvalidApplicationNameException +// ApplicationDoesNotExistException +// DeploymentGroupNameRequiredException +// InvalidDeploymentGroupNameException +// DeploymentGroupDoesNotExistException func (c *CodeDeploy) GetDeploymentGroup(input *GetDeploymentGroupInput) (*GetDeploymentGroupOutput, error) { req, out := c.GetDeploymentGroupRequest(input) err := req.Send() @@ -1025,7 +1396,26 @@ func (c *CodeDeploy) GetDeploymentInstanceRequest(input *GetDeploymentInstanceIn return } +// GetDeploymentInstance API operation for AWS CodeDeploy. +// // Gets information about an instance as part of a deployment. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS CodeDeploy's +// API operation, GetDeploymentInstance for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// DeploymentIdRequiredException +// DeploymentDoesNotExistException +// InstanceIdRequiredException +// InvalidDeploymentIdException +// InstanceDoesNotExistException +// InvalidInstanceNameException func (c *CodeDeploy) GetDeploymentInstance(input *GetDeploymentInstanceInput) (*GetDeploymentInstanceOutput, error) { req, out := c.GetDeploymentInstanceRequest(input) err := req.Send() @@ -1073,7 +1463,23 @@ func (c *CodeDeploy) GetOnPremisesInstanceRequest(input *GetOnPremisesInstanceIn return } +// GetOnPremisesInstance API operation for AWS CodeDeploy. +// // Gets information about an on-premises instance. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS CodeDeploy's +// API operation, GetOnPremisesInstance for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InstanceNameRequiredException +// InstanceNotRegisteredException +// InvalidInstanceNameException func (c *CodeDeploy) GetOnPremisesInstance(input *GetOnPremisesInstanceInput) (*GetOnPremisesInstanceOutput, error) { req, out := c.GetOnPremisesInstanceRequest(input) err := req.Send() @@ -1127,7 +1533,30 @@ func (c *CodeDeploy) ListApplicationRevisionsRequest(input *ListApplicationRevis return } +// ListApplicationRevisions API operation for AWS CodeDeploy. +// // Lists information about revisions for an application. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS CodeDeploy's +// API operation, ListApplicationRevisions for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ApplicationDoesNotExistException +// ApplicationNameRequiredException +// InvalidApplicationNameException +// InvalidSortByException +// InvalidSortOrderException +// InvalidBucketNameFilterException +// InvalidKeyPrefixFilterException +// BucketNameFilterRequiredException +// InvalidDeployedStateFilterException +// InvalidNextTokenException func (c *CodeDeploy) ListApplicationRevisions(input *ListApplicationRevisionsInput) (*ListApplicationRevisionsOutput, error) { req, out := c.ListApplicationRevisionsRequest(input) err := req.Send() @@ -1206,7 +1635,21 @@ func (c *CodeDeploy) ListApplicationsRequest(input *ListApplicationsInput) (req return } +// ListApplications API operation for AWS CodeDeploy. +// // Lists the applications registered with the applicable IAM user or AWS account. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS CodeDeploy's +// API operation, ListApplications for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidNextTokenException func (c *CodeDeploy) ListApplications(input *ListApplicationsInput) (*ListApplicationsOutput, error) { req, out := c.ListApplicationsRequest(input) err := req.Send() @@ -1285,7 +1728,21 @@ func (c *CodeDeploy) ListDeploymentConfigsRequest(input *ListDeploymentConfigsIn return } +// ListDeploymentConfigs API operation for AWS CodeDeploy. +// // Lists the deployment configurations with the applicable IAM user or AWS account. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS CodeDeploy's +// API operation, ListDeploymentConfigs for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidNextTokenException func (c *CodeDeploy) ListDeploymentConfigs(input *ListDeploymentConfigsInput) (*ListDeploymentConfigsOutput, error) { req, out := c.ListDeploymentConfigsRequest(input) err := req.Send() @@ -1364,8 +1821,25 @@ func (c *CodeDeploy) ListDeploymentGroupsRequest(input *ListDeploymentGroupsInpu return } +// ListDeploymentGroups API operation for AWS CodeDeploy. +// // Lists the deployment groups for an application registered with the applicable // IAM user or AWS account. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS CodeDeploy's +// API operation, ListDeploymentGroups for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ApplicationNameRequiredException +// InvalidApplicationNameException +// ApplicationDoesNotExistException +// InvalidNextTokenException func (c *CodeDeploy) ListDeploymentGroups(input *ListDeploymentGroupsInput) (*ListDeploymentGroupsOutput, error) { req, out := c.ListDeploymentGroupsRequest(input) err := req.Send() @@ -1444,8 +1918,27 @@ func (c *CodeDeploy) ListDeploymentInstancesRequest(input *ListDeploymentInstanc return } +// ListDeploymentInstances API operation for AWS CodeDeploy. +// // Lists the instance for a deployment associated with the applicable IAM user // or AWS account. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS CodeDeploy's +// API operation, ListDeploymentInstances for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// DeploymentIdRequiredException +// DeploymentDoesNotExistException +// DeploymentNotStartedException +// InvalidNextTokenException +// InvalidDeploymentIdException +// InvalidInstanceStatusException func (c *CodeDeploy) ListDeploymentInstances(input *ListDeploymentInstancesInput) (*ListDeploymentInstancesOutput, error) { req, out := c.ListDeploymentInstancesRequest(input) err := req.Send() @@ -1524,8 +2017,30 @@ func (c *CodeDeploy) ListDeploymentsRequest(input *ListDeploymentsInput) (req *r return } +// ListDeployments API operation for AWS CodeDeploy. +// // Lists the deployments in a deployment group for an application registered // with the applicable IAM user or AWS account. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS CodeDeploy's +// API operation, ListDeployments for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ApplicationNameRequiredException +// InvalidApplicationNameException +// ApplicationDoesNotExistException +// InvalidDeploymentGroupNameException +// DeploymentGroupDoesNotExistException +// DeploymentGroupNameRequiredException +// InvalidTimeRangeException +// InvalidDeploymentStatusException +// InvalidNextTokenException func (c *CodeDeploy) ListDeployments(input *ListDeploymentsInput) (*ListDeploymentsOutput, error) { req, out := c.ListDeploymentsRequest(input) err := req.Send() @@ -1598,11 +2113,27 @@ func (c *CodeDeploy) ListOnPremisesInstancesRequest(input *ListOnPremisesInstanc return } +// ListOnPremisesInstances API operation for AWS CodeDeploy. +// // Gets a list of names for one or more on-premises instances. // // Unless otherwise specified, both registered and deregistered on-premises // instance names will be listed. To list only registered or deregistered on-premises // instance names, use the registration status parameter. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS CodeDeploy's +// API operation, ListOnPremisesInstances for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidRegistrationStatusException +// InvalidTagFilterException +// InvalidNextTokenException func (c *CodeDeploy) ListOnPremisesInstances(input *ListOnPremisesInstancesInput) (*ListOnPremisesInstancesOutput, error) { req, out := c.ListOnPremisesInstancesRequest(input) err := req.Send() @@ -1652,7 +2183,26 @@ func (c *CodeDeploy) RegisterApplicationRevisionRequest(input *RegisterApplicati return } +// RegisterApplicationRevision API operation for AWS CodeDeploy. +// // Registers with AWS CodeDeploy a revision for the specified application. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS CodeDeploy's +// API operation, RegisterApplicationRevision for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ApplicationDoesNotExistException +// ApplicationNameRequiredException +// InvalidApplicationNameException +// DescriptionTooLongException +// RevisionRequiredException +// InvalidRevisionException func (c *CodeDeploy) RegisterApplicationRevision(input *RegisterApplicationRevisionInput) (*RegisterApplicationRevisionOutput, error) { req, out := c.RegisterApplicationRevisionRequest(input) err := req.Send() @@ -1702,7 +2252,26 @@ func (c *CodeDeploy) RegisterOnPremisesInstanceRequest(input *RegisterOnPremises return } +// RegisterOnPremisesInstance API operation for AWS CodeDeploy. +// // Registers an on-premises instance. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS CodeDeploy's +// API operation, RegisterOnPremisesInstance for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InstanceNameAlreadyRegisteredException +// IamUserArnAlreadyRegisteredException +// InstanceNameRequiredException +// IamUserArnRequiredException +// InvalidInstanceNameException +// InvalidIamUserArnException func (c *CodeDeploy) RegisterOnPremisesInstance(input *RegisterOnPremisesInstanceInput) (*RegisterOnPremisesInstanceOutput, error) { req, out := c.RegisterOnPremisesInstanceRequest(input) err := req.Send() @@ -1752,7 +2321,26 @@ func (c *CodeDeploy) RemoveTagsFromOnPremisesInstancesRequest(input *RemoveTagsF return } +// RemoveTagsFromOnPremisesInstances API operation for AWS CodeDeploy. +// // Removes one or more tags from one or more on-premises instances. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS CodeDeploy's +// API operation, RemoveTagsFromOnPremisesInstances for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InstanceNameRequiredException +// TagRequiredException +// InvalidTagException +// TagLimitExceededException +// InstanceLimitExceededException +// InstanceNotRegisteredException func (c *CodeDeploy) RemoveTagsFromOnPremisesInstances(input *RemoveTagsFromOnPremisesInstancesInput) (*RemoveTagsFromOnPremisesInstancesOutput, error) { req, out := c.RemoveTagsFromOnPremisesInstancesRequest(input) err := req.Send() @@ -1800,7 +2388,24 @@ func (c *CodeDeploy) StopDeploymentRequest(input *StopDeploymentInput) (req *req return } +// StopDeployment API operation for AWS CodeDeploy. +// // Attempts to stop an ongoing deployment. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS CodeDeploy's +// API operation, StopDeployment for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// DeploymentIdRequiredException +// DeploymentDoesNotExistException +// DeploymentAlreadyCompletedException +// InvalidDeploymentIdException func (c *CodeDeploy) StopDeployment(input *StopDeploymentInput) (*StopDeploymentOutput, error) { req, out := c.StopDeploymentRequest(input) err := req.Send() @@ -1850,7 +2455,24 @@ func (c *CodeDeploy) UpdateApplicationRequest(input *UpdateApplicationInput) (re return } +// UpdateApplication API operation for AWS CodeDeploy. +// // Changes the name of an application. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS CodeDeploy's +// API operation, UpdateApplication for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ApplicationNameRequiredException +// InvalidApplicationNameException +// ApplicationAlreadyExistsException +// ApplicationDoesNotExistException func (c *CodeDeploy) UpdateApplication(input *UpdateApplicationInput) (*UpdateApplicationOutput, error) { req, out := c.UpdateApplicationRequest(input) err := req.Send() @@ -1898,7 +2520,39 @@ func (c *CodeDeploy) UpdateDeploymentGroupRequest(input *UpdateDeploymentGroupIn return } +// UpdateDeploymentGroup API operation for AWS CodeDeploy. +// // Changes information about a deployment group. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS CodeDeploy's +// API operation, UpdateDeploymentGroup for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ApplicationNameRequiredException +// InvalidApplicationNameException +// ApplicationDoesNotExistException +// InvalidDeploymentGroupNameException +// DeploymentGroupAlreadyExistsException +// DeploymentGroupNameRequiredException +// DeploymentGroupDoesNotExistException +// InvalidEC2TagException +// InvalidTagException +// InvalidAutoScalingGroupException +// InvalidDeploymentConfigNameException +// DeploymentConfigDoesNotExistException +// InvalidRoleException +// LifecycleHookLimitExceededException +// InvalidTriggerConfigException +// TriggerTargetsLimitExceededException +// InvalidAlarmConfigException +// AlarmsLimitExceededException +// InvalidAutoRollbackConfigException func (c *CodeDeploy) UpdateDeploymentGroup(input *UpdateDeploymentGroupInput) (*UpdateDeploymentGroupOutput, error) { req, out := c.UpdateDeploymentGroupRequest(input) err := req.Send() diff --git a/service/codepipeline/api.go b/service/codepipeline/api.go index eb54cd5e4fd..f954e15a2f3 100644 --- a/service/codepipeline/api.go +++ b/service/codepipeline/api.go @@ -54,8 +54,24 @@ func (c *CodePipeline) AcknowledgeJobRequest(input *AcknowledgeJobInput) (req *r return } +// AcknowledgeJob API operation for AWS CodePipeline. +// // Returns information about a specified job and whether that job has been received // by the job worker. Only used for custom actions. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS CodePipeline's +// API operation, AcknowledgeJob for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ValidationException +// InvalidNonceException +// JobNotFoundException func (c *CodePipeline) AcknowledgeJob(input *AcknowledgeJobInput) (*AcknowledgeJobOutput, error) { req, out := c.AcknowledgeJobRequest(input) err := req.Send() @@ -103,8 +119,25 @@ func (c *CodePipeline) AcknowledgeThirdPartyJobRequest(input *AcknowledgeThirdPa return } +// AcknowledgeThirdPartyJob API operation for AWS CodePipeline. +// // Confirms a job worker has received the specified job. Only used for partner // actions. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS CodePipeline's +// API operation, AcknowledgeThirdPartyJob for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ValidationException +// InvalidNonceException +// JobNotFoundException +// InvalidClientTokenException func (c *CodePipeline) AcknowledgeThirdPartyJob(input *AcknowledgeThirdPartyJobInput) (*AcknowledgeThirdPartyJobOutput, error) { req, out := c.AcknowledgeThirdPartyJobRequest(input) err := req.Send() @@ -152,8 +185,23 @@ func (c *CodePipeline) CreateCustomActionTypeRequest(input *CreateCustomActionTy return } +// CreateCustomActionType API operation for AWS CodePipeline. +// // Creates a new custom action that can be used in all pipelines associated // with the AWS account. Only used for custom actions. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS CodePipeline's +// API operation, CreateCustomActionType for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ValidationException +// LimitExceededException func (c *CodePipeline) CreateCustomActionType(input *CreateCustomActionTypeInput) (*CreateCustomActionTypeOutput, error) { req, out := c.CreateCustomActionTypeRequest(input) err := req.Send() @@ -201,7 +249,27 @@ func (c *CodePipeline) CreatePipelineRequest(input *CreatePipelineInput) (req *r return } +// CreatePipeline API operation for AWS CodePipeline. +// // Creates a pipeline. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS CodePipeline's +// API operation, CreatePipeline for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ValidationException +// PipelineNameInUseException +// InvalidStageDeclarationException +// InvalidActionDeclarationException +// InvalidBlockerDeclarationException +// InvalidStructureException +// LimitExceededException func (c *CodePipeline) CreatePipeline(input *CreatePipelineInput) (*CreatePipelineOutput, error) { req, out := c.CreatePipelineRequest(input) err := req.Send() @@ -251,11 +319,25 @@ func (c *CodePipeline) DeleteCustomActionTypeRequest(input *DeleteCustomActionTy return } +// DeleteCustomActionType API operation for AWS CodePipeline. +// // Marks a custom action as deleted. PollForJobs for the custom action will // fail after the action is marked for deletion. Only used for custom actions. // // You cannot recreate a custom action after it has been deleted unless you // increase the version number of the action. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS CodePipeline's +// API operation, DeleteCustomActionType for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ValidationException func (c *CodePipeline) DeleteCustomActionType(input *DeleteCustomActionTypeInput) (*DeleteCustomActionTypeOutput, error) { req, out := c.DeleteCustomActionTypeRequest(input) err := req.Send() @@ -305,7 +387,21 @@ func (c *CodePipeline) DeletePipelineRequest(input *DeletePipelineInput) (req *r return } +// DeletePipeline API operation for AWS CodePipeline. +// // Deletes the specified pipeline. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS CodePipeline's +// API operation, DeletePipeline for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ValidationException func (c *CodePipeline) DeletePipeline(input *DeletePipelineInput) (*DeletePipelineOutput, error) { req, out := c.DeletePipelineRequest(input) err := req.Send() @@ -355,8 +451,24 @@ func (c *CodePipeline) DisableStageTransitionRequest(input *DisableStageTransiti return } +// DisableStageTransition API operation for AWS CodePipeline. +// // Prevents artifacts in a pipeline from transitioning to the next stage in // the pipeline. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS CodePipeline's +// API operation, DisableStageTransition for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ValidationException +// PipelineNotFoundException +// StageNotFoundException func (c *CodePipeline) DisableStageTransition(input *DisableStageTransitionInput) (*DisableStageTransitionOutput, error) { req, out := c.DisableStageTransitionRequest(input) err := req.Send() @@ -406,7 +518,23 @@ func (c *CodePipeline) EnableStageTransitionRequest(input *EnableStageTransition return } +// EnableStageTransition API operation for AWS CodePipeline. +// // Enables artifacts in a pipeline to transition to a stage in a pipeline. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS CodePipeline's +// API operation, EnableStageTransition for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ValidationException +// PipelineNotFoundException +// StageNotFoundException func (c *CodePipeline) EnableStageTransition(input *EnableStageTransitionInput) (*EnableStageTransitionOutput, error) { req, out := c.EnableStageTransitionRequest(input) err := req.Send() @@ -454,12 +582,27 @@ func (c *CodePipeline) GetJobDetailsRequest(input *GetJobDetailsInput) (req *req return } +// GetJobDetails API operation for AWS CodePipeline. +// // Returns information about a job. Only used for custom actions. // // When this API is called, AWS CodePipeline returns temporary credentials // for the Amazon S3 bucket used to store artifacts for the pipeline, if the // action requires access to that Amazon S3 bucket for input or output artifacts. // Additionally, this API returns any secret values defined for the action. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS CodePipeline's +// API operation, GetJobDetails for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ValidationException +// JobNotFoundException func (c *CodePipeline) GetJobDetails(input *GetJobDetailsInput) (*GetJobDetailsOutput, error) { req, out := c.GetJobDetailsRequest(input) err := req.Send() @@ -507,9 +650,25 @@ func (c *CodePipeline) GetPipelineRequest(input *GetPipelineInput) (req *request return } +// GetPipeline API operation for AWS CodePipeline. +// // Returns the metadata, structure, stages, and actions of a pipeline. Can be // used to return the entire structure of a pipeline in JSON format, which can // then be modified and used to update the pipeline structure with UpdatePipeline. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS CodePipeline's +// API operation, GetPipeline for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ValidationException +// PipelineNotFoundException +// PipelineVersionNotFoundException func (c *CodePipeline) GetPipeline(input *GetPipelineInput) (*GetPipelineOutput, error) { req, out := c.GetPipelineRequest(input) err := req.Send() @@ -557,9 +716,25 @@ func (c *CodePipeline) GetPipelineExecutionRequest(input *GetPipelineExecutionIn return } +// GetPipelineExecution API operation for AWS CodePipeline. +// // Returns information about an execution of a pipeline, including details about // artifacts, the pipeline execution ID, and the name, version, and status of // the pipeline. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS CodePipeline's +// API operation, GetPipelineExecution for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ValidationException +// PipelineNotFoundException +// PipelineExecutionNotFoundException func (c *CodePipeline) GetPipelineExecution(input *GetPipelineExecutionInput) (*GetPipelineExecutionOutput, error) { req, out := c.GetPipelineExecutionRequest(input) err := req.Send() @@ -607,8 +782,23 @@ func (c *CodePipeline) GetPipelineStateRequest(input *GetPipelineStateInput) (re return } +// GetPipelineState API operation for AWS CodePipeline. +// // Returns information about the state of a pipeline, including the stages and // actions. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS CodePipeline's +// API operation, GetPipelineState for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ValidationException +// PipelineNotFoundException func (c *CodePipeline) GetPipelineState(input *GetPipelineStateInput) (*GetPipelineStateOutput, error) { req, out := c.GetPipelineStateRequest(input) err := req.Send() @@ -656,6 +846,8 @@ func (c *CodePipeline) GetThirdPartyJobDetailsRequest(input *GetThirdPartyJobDet return } +// GetThirdPartyJobDetails API operation for AWS CodePipeline. +// // Requests the details of a job for a third party action. Only used for partner // actions. // @@ -663,6 +855,21 @@ func (c *CodePipeline) GetThirdPartyJobDetailsRequest(input *GetThirdPartyJobDet // for the Amazon S3 bucket used to store artifacts for the pipeline, if the // action requires access to that Amazon S3 bucket for input or output artifacts. // Additionally, this API returns any secret values defined for the action. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS CodePipeline's +// API operation, GetThirdPartyJobDetails for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// JobNotFoundException +// ValidationException +// InvalidClientTokenException +// InvalidJobException func (c *CodePipeline) GetThirdPartyJobDetails(input *GetThirdPartyJobDetailsInput) (*GetThirdPartyJobDetailsOutput, error) { req, out := c.GetThirdPartyJobDetailsRequest(input) err := req.Send() @@ -710,8 +917,23 @@ func (c *CodePipeline) ListActionTypesRequest(input *ListActionTypesInput) (req return } +// ListActionTypes API operation for AWS CodePipeline. +// // Gets a summary of all AWS CodePipeline action types associated with your // account. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS CodePipeline's +// API operation, ListActionTypes for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ValidationException +// InvalidNextTokenException func (c *CodePipeline) ListActionTypes(input *ListActionTypesInput) (*ListActionTypesOutput, error) { req, out := c.ListActionTypesRequest(input) err := req.Send() @@ -759,7 +981,21 @@ func (c *CodePipeline) ListPipelinesRequest(input *ListPipelinesInput) (req *req return } +// ListPipelines API operation for AWS CodePipeline. +// // Gets a summary of all of the pipelines associated with your account. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS CodePipeline's +// API operation, ListPipelines for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidNextTokenException func (c *CodePipeline) ListPipelines(input *ListPipelinesInput) (*ListPipelinesOutput, error) { req, out := c.ListPipelinesRequest(input) err := req.Send() @@ -807,12 +1043,27 @@ func (c *CodePipeline) PollForJobsRequest(input *PollForJobsInput) (req *request return } +// PollForJobs API operation for AWS CodePipeline. +// // Returns information about any jobs for AWS CodePipeline to act upon. // // When this API is called, AWS CodePipeline returns temporary credentials // for the Amazon S3 bucket used to store artifacts for the pipeline, if the // action requires access to that Amazon S3 bucket for input or output artifacts. // Additionally, this API returns any secret values defined for the action. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS CodePipeline's +// API operation, PollForJobs for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ValidationException +// ActionTypeNotFoundException func (c *CodePipeline) PollForJobs(input *PollForJobsInput) (*PollForJobsOutput, error) { req, out := c.PollForJobsRequest(input) err := req.Send() @@ -860,12 +1111,27 @@ func (c *CodePipeline) PollForThirdPartyJobsRequest(input *PollForThirdPartyJobs return } +// PollForThirdPartyJobs API operation for AWS CodePipeline. +// // Determines whether there are any third party jobs for a job worker to act // on. Only used for partner actions. // // When this API is called, AWS CodePipeline returns temporary credentials // for the Amazon S3 bucket used to store artifacts for the pipeline, if the // action requires access to that Amazon S3 bucket for input or output artifacts. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS CodePipeline's +// API operation, PollForThirdPartyJobs for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ActionTypeNotFoundException +// ValidationException func (c *CodePipeline) PollForThirdPartyJobs(input *PollForThirdPartyJobsInput) (*PollForThirdPartyJobsOutput, error) { req, out := c.PollForThirdPartyJobsRequest(input) err := req.Send() @@ -913,7 +1179,24 @@ func (c *CodePipeline) PutActionRevisionRequest(input *PutActionRevisionInput) ( return } +// PutActionRevision API operation for AWS CodePipeline. +// // Provides information to AWS CodePipeline about new revisions to a source. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS CodePipeline's +// API operation, PutActionRevision for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// PipelineNotFoundException +// StageNotFoundException +// ActionNotFoundException +// ValidationException func (c *CodePipeline) PutActionRevision(input *PutActionRevisionInput) (*PutActionRevisionOutput, error) { req, out := c.PutActionRevisionRequest(input) err := req.Send() @@ -961,8 +1244,27 @@ func (c *CodePipeline) PutApprovalResultRequest(input *PutApprovalResultInput) ( return } +// PutApprovalResult API operation for AWS CodePipeline. +// // Provides the response to a manual approval request to AWS CodePipeline. Valid // responses include Approved and Rejected. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS CodePipeline's +// API operation, PutApprovalResult for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidApprovalTokenException +// ApprovalAlreadyCompletedException +// PipelineNotFoundException +// StageNotFoundException +// ActionNotFoundException +// ValidationException func (c *CodePipeline) PutApprovalResult(input *PutApprovalResultInput) (*PutApprovalResultOutput, error) { req, out := c.PutApprovalResultRequest(input) err := req.Send() @@ -1012,8 +1314,24 @@ func (c *CodePipeline) PutJobFailureResultRequest(input *PutJobFailureResultInpu return } +// PutJobFailureResult API operation for AWS CodePipeline. +// // Represents the failure of a job as returned to the pipeline by a job worker. // Only used for custom actions. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS CodePipeline's +// API operation, PutJobFailureResult for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ValidationException +// JobNotFoundException +// InvalidJobStateException func (c *CodePipeline) PutJobFailureResult(input *PutJobFailureResultInput) (*PutJobFailureResultOutput, error) { req, out := c.PutJobFailureResultRequest(input) err := req.Send() @@ -1063,8 +1381,24 @@ func (c *CodePipeline) PutJobSuccessResultRequest(input *PutJobSuccessResultInpu return } +// PutJobSuccessResult API operation for AWS CodePipeline. +// // Represents the success of a job as returned to the pipeline by a job worker. // Only used for custom actions. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS CodePipeline's +// API operation, PutJobSuccessResult for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ValidationException +// JobNotFoundException +// InvalidJobStateException func (c *CodePipeline) PutJobSuccessResult(input *PutJobSuccessResultInput) (*PutJobSuccessResultOutput, error) { req, out := c.PutJobSuccessResultRequest(input) err := req.Send() @@ -1114,8 +1448,25 @@ func (c *CodePipeline) PutThirdPartyJobFailureResultRequest(input *PutThirdParty return } +// PutThirdPartyJobFailureResult API operation for AWS CodePipeline. +// // Represents the failure of a third party job as returned to the pipeline by // a job worker. Only used for partner actions. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS CodePipeline's +// API operation, PutThirdPartyJobFailureResult for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ValidationException +// JobNotFoundException +// InvalidJobStateException +// InvalidClientTokenException func (c *CodePipeline) PutThirdPartyJobFailureResult(input *PutThirdPartyJobFailureResultInput) (*PutThirdPartyJobFailureResultOutput, error) { req, out := c.PutThirdPartyJobFailureResultRequest(input) err := req.Send() @@ -1165,8 +1516,25 @@ func (c *CodePipeline) PutThirdPartyJobSuccessResultRequest(input *PutThirdParty return } +// PutThirdPartyJobSuccessResult API operation for AWS CodePipeline. +// // Represents the success of a third party job as returned to the pipeline by // a job worker. Only used for partner actions. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS CodePipeline's +// API operation, PutThirdPartyJobSuccessResult for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ValidationException +// JobNotFoundException +// InvalidJobStateException +// InvalidClientTokenException func (c *CodePipeline) PutThirdPartyJobSuccessResult(input *PutThirdPartyJobSuccessResultInput) (*PutThirdPartyJobSuccessResultOutput, error) { req, out := c.PutThirdPartyJobSuccessResultRequest(input) err := req.Send() @@ -1214,7 +1582,25 @@ func (c *CodePipeline) RetryStageExecutionRequest(input *RetryStageExecutionInpu return } +// RetryStageExecution API operation for AWS CodePipeline. +// // Resumes the pipeline execution by retrying the last failed actions in a stage. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS CodePipeline's +// API operation, RetryStageExecution for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ValidationException +// PipelineNotFoundException +// StageNotFoundException +// StageNotRetryableException +// NotLatestPipelineExecutionException func (c *CodePipeline) RetryStageExecution(input *RetryStageExecutionInput) (*RetryStageExecutionOutput, error) { req, out := c.RetryStageExecutionRequest(input) err := req.Send() @@ -1262,8 +1648,23 @@ func (c *CodePipeline) StartPipelineExecutionRequest(input *StartPipelineExecuti return } +// StartPipelineExecution API operation for AWS CodePipeline. +// // Starts the specified pipeline. Specifically, it begins processing the latest // commit to the source location specified as part of the pipeline. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS CodePipeline's +// API operation, StartPipelineExecution for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ValidationException +// PipelineNotFoundException func (c *CodePipeline) StartPipelineExecution(input *StartPipelineExecutionInput) (*StartPipelineExecutionOutput, error) { req, out := c.StartPipelineExecutionRequest(input) err := req.Send() @@ -1311,10 +1712,28 @@ func (c *CodePipeline) UpdatePipelineRequest(input *UpdatePipelineInput) (req *r return } +// UpdatePipeline API operation for AWS CodePipeline. +// // Updates a specified pipeline with edits or changes to its structure. Use // a JSON file with the pipeline structure in conjunction with UpdatePipeline // to provide the full structure of the pipeline. Updating the pipeline increases // the version number of the pipeline by 1. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS CodePipeline's +// API operation, UpdatePipeline for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ValidationException +// InvalidStageDeclarationException +// InvalidActionDeclarationException +// InvalidBlockerDeclarationException +// InvalidStructureException func (c *CodePipeline) UpdatePipeline(input *UpdatePipelineInput) (*UpdatePipelineOutput, error) { req, out := c.UpdatePipelineRequest(input) err := req.Send() diff --git a/service/cognitoidentity/api.go b/service/cognitoidentity/api.go index 694eb2ddac3..18e473cda46 100644 --- a/service/cognitoidentity/api.go +++ b/service/cognitoidentity/api.go @@ -54,12 +54,31 @@ func (c *CognitoIdentity) CreateIdentityPoolRequest(input *CreateIdentityPoolInp return } +// CreateIdentityPool API operation for Amazon Cognito Identity. +// // Creates a new identity pool. The identity pool is a store of user identity // information that is specific to your AWS account. The limit on identity pools // is 60 per account. The keys for SupportedLoginProviders are as follows: // Facebook: graph.facebook.com Google: accounts.google.com Amazon: www.amazon.com // Twitter: api.twitter.com Digits: www.digits.com You must use AWS Developer // credentials to call this API. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Cognito Identity's +// API operation, CreateIdentityPool for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidParameterException +// NotAuthorizedException +// ResourceConflictException +// TooManyRequestsException +// InternalErrorException +// LimitExceededException func (c *CognitoIdentity) CreateIdentityPool(input *CreateIdentityPoolInput) (*IdentityPool, error) { req, out := c.CreateIdentityPoolRequest(input) err := req.Send() @@ -107,10 +126,26 @@ func (c *CognitoIdentity) DeleteIdentitiesRequest(input *DeleteIdentitiesInput) return } +// DeleteIdentities API operation for Amazon Cognito Identity. +// // Deletes identities from an identity pool. You can specify a list of 1-60 // identities that you want to delete. // // You must use AWS Developer credentials to call this API. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Cognito Identity's +// API operation, DeleteIdentities for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidParameterException +// TooManyRequestsException +// InternalErrorException func (c *CognitoIdentity) DeleteIdentities(input *DeleteIdentitiesInput) (*DeleteIdentitiesOutput, error) { req, out := c.DeleteIdentitiesRequest(input) err := req.Send() @@ -160,10 +195,28 @@ func (c *CognitoIdentity) DeleteIdentityPoolRequest(input *DeleteIdentityPoolInp return } +// DeleteIdentityPool API operation for Amazon Cognito Identity. +// // Deletes a user pool. Once a pool is deleted, users will not be able to authenticate // with the pool. // // You must use AWS Developer credentials to call this API. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Cognito Identity's +// API operation, DeleteIdentityPool for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidParameterException +// ResourceNotFoundException +// NotAuthorizedException +// TooManyRequestsException +// InternalErrorException func (c *CognitoIdentity) DeleteIdentityPool(input *DeleteIdentityPoolInput) (*DeleteIdentityPoolOutput, error) { req, out := c.DeleteIdentityPoolRequest(input) err := req.Send() @@ -211,10 +264,28 @@ func (c *CognitoIdentity) DescribeIdentityRequest(input *DescribeIdentityInput) return } +// DescribeIdentity API operation for Amazon Cognito Identity. +// // Returns metadata related to the given identity, including when the identity // was created and any associated linked logins. // // You must use AWS Developer credentials to call this API. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Cognito Identity's +// API operation, DescribeIdentity for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidParameterException +// ResourceNotFoundException +// NotAuthorizedException +// TooManyRequestsException +// InternalErrorException func (c *CognitoIdentity) DescribeIdentity(input *DescribeIdentityInput) (*IdentityDescription, error) { req, out := c.DescribeIdentityRequest(input) err := req.Send() @@ -262,10 +333,28 @@ func (c *CognitoIdentity) DescribeIdentityPoolRequest(input *DescribeIdentityPoo return } +// DescribeIdentityPool API operation for Amazon Cognito Identity. +// // Gets details about a particular identity pool, including the pool name, ID // description, creation date, and current number of users. // // You must use AWS Developer credentials to call this API. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Cognito Identity's +// API operation, DescribeIdentityPool for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidParameterException +// ResourceNotFoundException +// NotAuthorizedException +// TooManyRequestsException +// InternalErrorException func (c *CognitoIdentity) DescribeIdentityPool(input *DescribeIdentityPoolInput) (*IdentityPool, error) { req, out := c.DescribeIdentityPoolRequest(input) err := req.Send() @@ -313,12 +402,33 @@ func (c *CognitoIdentity) GetCredentialsForIdentityRequest(input *GetCredentials return } +// GetCredentialsForIdentity API operation for Amazon Cognito Identity. +// // Returns credentials for the provided identity ID. Any provided logins will // be validated against supported login providers. If the token is for cognito-identity.amazonaws.com, // it will be passed through to AWS Security Token Service with the appropriate // role for the token. // // This is a public API. You do not need any credentials to call this API. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Cognito Identity's +// API operation, GetCredentialsForIdentity for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidParameterException +// ResourceNotFoundException +// NotAuthorizedException +// ResourceConflictException +// TooManyRequestsException +// InvalidIdentityPoolConfigurationException +// InternalErrorException +// ExternalServiceException func (c *CognitoIdentity) GetCredentialsForIdentity(input *GetCredentialsForIdentityInput) (*GetCredentialsForIdentityOutput, error) { req, out := c.GetCredentialsForIdentityRequest(input) err := req.Send() @@ -366,10 +476,31 @@ func (c *CognitoIdentity) GetIdRequest(input *GetIdInput) (req *request.Request, return } +// GetId API operation for Amazon Cognito Identity. +// // Generates (or retrieves) a Cognito ID. Supplying multiple logins will create // an implicit linked account. // // This is a public API. You do not need any credentials to call this API. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Cognito Identity's +// API operation, GetId for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidParameterException +// ResourceNotFoundException +// NotAuthorizedException +// ResourceConflictException +// TooManyRequestsException +// InternalErrorException +// LimitExceededException +// ExternalServiceException func (c *CognitoIdentity) GetId(input *GetIdInput) (*GetIdOutput, error) { req, out := c.GetIdRequest(input) err := req.Send() @@ -417,9 +548,28 @@ func (c *CognitoIdentity) GetIdentityPoolRolesRequest(input *GetIdentityPoolRole return } +// GetIdentityPoolRoles API operation for Amazon Cognito Identity. +// // Gets the roles for an identity pool. // // You must use AWS Developer credentials to call this API. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Cognito Identity's +// API operation, GetIdentityPoolRoles for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidParameterException +// ResourceNotFoundException +// NotAuthorizedException +// ResourceConflictException +// TooManyRequestsException +// InternalErrorException func (c *CognitoIdentity) GetIdentityPoolRoles(input *GetIdentityPoolRolesInput) (*GetIdentityPoolRolesOutput, error) { req, out := c.GetIdentityPoolRolesRequest(input) err := req.Send() @@ -467,6 +617,8 @@ func (c *CognitoIdentity) GetOpenIdTokenRequest(input *GetOpenIdTokenInput) (req return } +// GetOpenIdToken API operation for Amazon Cognito Identity. +// // Gets an OpenID token, using a known Cognito ID. This known Cognito ID is // returned by GetId. You can optionally add additional logins for the identity. // Supplying multiple logins creates an implicit link. @@ -474,6 +626,24 @@ func (c *CognitoIdentity) GetOpenIdTokenRequest(input *GetOpenIdTokenInput) (req // The OpenId token is valid for 15 minutes. // // This is a public API. You do not need any credentials to call this API. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Cognito Identity's +// API operation, GetOpenIdToken for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidParameterException +// ResourceNotFoundException +// NotAuthorizedException +// ResourceConflictException +// TooManyRequestsException +// InternalErrorException +// ExternalServiceException func (c *CognitoIdentity) GetOpenIdToken(input *GetOpenIdTokenInput) (*GetOpenIdTokenOutput, error) { req, out := c.GetOpenIdTokenRequest(input) err := req.Send() @@ -521,6 +691,8 @@ func (c *CognitoIdentity) GetOpenIdTokenForDeveloperIdentityRequest(input *GetOp return } +// GetOpenIdTokenForDeveloperIdentity API operation for Amazon Cognito Identity. +// // Registers (or retrieves) a Cognito IdentityId and an OpenID Connect token // for a user authenticated by your backend authentication process. Supplying // multiple logins will create an implicit linked account. You can only specify @@ -537,6 +709,24 @@ func (c *CognitoIdentity) GetOpenIdTokenForDeveloperIdentityRequest(input *GetOp // in the specified IdentityPoolId. // // You must use AWS Developer credentials to call this API. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Cognito Identity's +// API operation, GetOpenIdTokenForDeveloperIdentity for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidParameterException +// ResourceNotFoundException +// NotAuthorizedException +// ResourceConflictException +// TooManyRequestsException +// InternalErrorException +// DeveloperUserAlreadyRegisteredException func (c *CognitoIdentity) GetOpenIdTokenForDeveloperIdentity(input *GetOpenIdTokenForDeveloperIdentityInput) (*GetOpenIdTokenForDeveloperIdentityOutput, error) { req, out := c.GetOpenIdTokenForDeveloperIdentityRequest(input) err := req.Send() @@ -584,9 +774,27 @@ func (c *CognitoIdentity) ListIdentitiesRequest(input *ListIdentitiesInput) (req return } +// ListIdentities API operation for Amazon Cognito Identity. +// // Lists the identities in a pool. // // You must use AWS Developer credentials to call this API. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Cognito Identity's +// API operation, ListIdentities for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidParameterException +// ResourceNotFoundException +// NotAuthorizedException +// TooManyRequestsException +// InternalErrorException func (c *CognitoIdentity) ListIdentities(input *ListIdentitiesInput) (*ListIdentitiesOutput, error) { req, out := c.ListIdentitiesRequest(input) err := req.Send() @@ -634,9 +842,26 @@ func (c *CognitoIdentity) ListIdentityPoolsRequest(input *ListIdentityPoolsInput return } +// ListIdentityPools API operation for Amazon Cognito Identity. +// // Lists all of the Cognito identity pools registered for your account. // // You must use AWS Developer credentials to call this API. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Cognito Identity's +// API operation, ListIdentityPools for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidParameterException +// NotAuthorizedException +// TooManyRequestsException +// InternalErrorException func (c *CognitoIdentity) ListIdentityPools(input *ListIdentityPoolsInput) (*ListIdentityPoolsOutput, error) { req, out := c.ListIdentityPoolsRequest(input) err := req.Send() @@ -684,6 +909,8 @@ func (c *CognitoIdentity) LookupDeveloperIdentityRequest(input *LookupDeveloperI return } +// LookupDeveloperIdentity API operation for Amazon Cognito Identity. +// // Retrieves the IdentityID associated with a DeveloperUserIdentifier or the // list of DeveloperUserIdentifiers associated with an IdentityId for an existing // identity. Either IdentityID or DeveloperUserIdentifier must not be null. @@ -694,6 +921,23 @@ func (c *CognitoIdentity) LookupDeveloperIdentityRequest(input *LookupDeveloperI // the same as the request. Otherwise a ResourceConflictException is thrown. // // You must use AWS Developer credentials to call this API. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Cognito Identity's +// API operation, LookupDeveloperIdentity for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidParameterException +// ResourceNotFoundException +// NotAuthorizedException +// ResourceConflictException +// TooManyRequestsException +// InternalErrorException func (c *CognitoIdentity) LookupDeveloperIdentity(input *LookupDeveloperIdentityInput) (*LookupDeveloperIdentityOutput, error) { req, out := c.LookupDeveloperIdentityRequest(input) err := req.Send() @@ -741,6 +985,8 @@ func (c *CognitoIdentity) MergeDeveloperIdentitiesRequest(input *MergeDeveloperI return } +// MergeDeveloperIdentities API operation for Amazon Cognito Identity. +// // Merges two users having different IdentityIds, existing in the same identity // pool, and identified by the same developer provider. You can use this action // to request that discrete users be merged and identified as a single user @@ -750,6 +996,23 @@ func (c *CognitoIdentity) MergeDeveloperIdentitiesRequest(input *MergeDeveloperI // public provider, but as two different users, an exception will be thrown. // // You must use AWS Developer credentials to call this API. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Cognito Identity's +// API operation, MergeDeveloperIdentities for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidParameterException +// ResourceNotFoundException +// NotAuthorizedException +// ResourceConflictException +// TooManyRequestsException +// InternalErrorException func (c *CognitoIdentity) MergeDeveloperIdentities(input *MergeDeveloperIdentitiesInput) (*MergeDeveloperIdentitiesOutput, error) { req, out := c.MergeDeveloperIdentitiesRequest(input) err := req.Send() @@ -799,10 +1062,30 @@ func (c *CognitoIdentity) SetIdentityPoolRolesRequest(input *SetIdentityPoolRole return } +// SetIdentityPoolRoles API operation for Amazon Cognito Identity. +// // Sets the roles for an identity pool. These roles are used when making calls // to GetCredentialsForIdentity action. // // You must use AWS Developer credentials to call this API. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Cognito Identity's +// API operation, SetIdentityPoolRoles for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidParameterException +// ResourceNotFoundException +// NotAuthorizedException +// ResourceConflictException +// TooManyRequestsException +// InternalErrorException +// ConcurrentModificationException func (c *CognitoIdentity) SetIdentityPoolRoles(input *SetIdentityPoolRolesInput) (*SetIdentityPoolRolesOutput, error) { req, out := c.SetIdentityPoolRolesRequest(input) err := req.Send() @@ -852,12 +1135,31 @@ func (c *CognitoIdentity) UnlinkDeveloperIdentityRequest(input *UnlinkDeveloperI return } +// UnlinkDeveloperIdentity API operation for Amazon Cognito Identity. +// // Unlinks a DeveloperUserIdentifier from an existing identity. Unlinked developer // users will be considered new identities next time they are seen. If, for // a given Cognito identity, you remove all federated identities as well as // the developer user identifier, the Cognito identity becomes inaccessible. // // You must use AWS Developer credentials to call this API. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Cognito Identity's +// API operation, UnlinkDeveloperIdentity for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidParameterException +// ResourceNotFoundException +// NotAuthorizedException +// ResourceConflictException +// TooManyRequestsException +// InternalErrorException func (c *CognitoIdentity) UnlinkDeveloperIdentity(input *UnlinkDeveloperIdentityInput) (*UnlinkDeveloperIdentityOutput, error) { req, out := c.UnlinkDeveloperIdentityRequest(input) err := req.Send() @@ -907,11 +1209,31 @@ func (c *CognitoIdentity) UnlinkIdentityRequest(input *UnlinkIdentityInput) (req return } +// UnlinkIdentity API operation for Amazon Cognito Identity. +// // Unlinks a federated identity from an existing account. Unlinked logins will // be considered new identities next time they are seen. Removing the last linked // login will make this identity inaccessible. // // This is a public API. You do not need any credentials to call this API. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Cognito Identity's +// API operation, UnlinkIdentity for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidParameterException +// ResourceNotFoundException +// NotAuthorizedException +// ResourceConflictException +// TooManyRequestsException +// InternalErrorException +// ExternalServiceException func (c *CognitoIdentity) UnlinkIdentity(input *UnlinkIdentityInput) (*UnlinkIdentityOutput, error) { req, out := c.UnlinkIdentityRequest(input) err := req.Send() @@ -959,9 +1281,30 @@ func (c *CognitoIdentity) UpdateIdentityPoolRequest(input *IdentityPool) (req *r return } +// UpdateIdentityPool API operation for Amazon Cognito Identity. +// // Updates a user pool. // // You must use AWS Developer credentials to call this API. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Cognito Identity's +// API operation, UpdateIdentityPool for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidParameterException +// ResourceNotFoundException +// NotAuthorizedException +// ResourceConflictException +// TooManyRequestsException +// InternalErrorException +// ConcurrentModificationException +// LimitExceededException func (c *CognitoIdentity) UpdateIdentityPool(input *IdentityPool) (*IdentityPool, error) { req, out := c.UpdateIdentityPoolRequest(input) err := req.Send() diff --git a/service/cognitoidentityprovider/api.go b/service/cognitoidentityprovider/api.go index f6bcd58b58f..33bbda207bd 100644 --- a/service/cognitoidentityprovider/api.go +++ b/service/cognitoidentityprovider/api.go @@ -55,7 +55,26 @@ func (c *CognitoIdentityProvider) AddCustomAttributesRequest(input *AddCustomAtt return } +// AddCustomAttributes API operation for Amazon Cognito Identity Provider. +// // Adds additional user attributes to the user pool schema. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Cognito Identity Provider's +// API operation, AddCustomAttributes for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ResourceNotFoundException +// InvalidParameterException +// TooManyRequestsException +// NotAuthorizedException +// UserImportInProgressException +// InternalErrorException func (c *CognitoIdentityProvider) AddCustomAttributes(input *AddCustomAttributesInput) (*AddCustomAttributesOutput, error) { req, out := c.AddCustomAttributesRequest(input) err := req.Send() @@ -103,8 +122,32 @@ func (c *CognitoIdentityProvider) AdminConfirmSignUpRequest(input *AdminConfirmS return } +// AdminConfirmSignUp API operation for Amazon Cognito Identity Provider. +// // Confirms user registration as an admin without using a confirmation code. // Works on any user. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Cognito Identity Provider's +// API operation, AdminConfirmSignUp for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ResourceNotFoundException +// InvalidParameterException +// UnexpectedLambdaException +// UserLambdaValidationException +// NotAuthorizedException +// TooManyFailedAttemptsException +// InvalidLambdaResponseException +// TooManyRequestsException +// LimitExceededException +// UserNotFoundException +// InternalErrorException func (c *CognitoIdentityProvider) AdminConfirmSignUp(input *AdminConfirmSignUpInput) (*AdminConfirmSignUpOutput, error) { req, out := c.AdminConfirmSignUpRequest(input) err := req.Send() @@ -152,6 +195,8 @@ func (c *CognitoIdentityProvider) AdminCreateUserRequest(input *AdminCreateUserI return } +// AdminCreateUser API operation for Amazon Cognito Identity Provider. +// // Creates a new user in the specified user pool and sends a welcome message // via email or phone (SMS). This message is based on a template that you configured // in your call to CreateUserPool or UpdateUserPool. This template includes @@ -159,6 +204,33 @@ func (c *CognitoIdentityProvider) AdminCreateUserRequest(input *AdminCreateUserI // password. // // Requires developer credentials. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Cognito Identity Provider's +// API operation, AdminCreateUser for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ResourceNotFoundException +// InvalidParameterException +// UserNotFoundException +// UsernameExistsException +// InvalidPasswordException +// CodeDeliveryFailureException +// UnexpectedLambdaException +// UserLambdaValidationException +// InvalidLambdaResponseException +// PreconditionNotMetException +// InvalidSmsRoleAccessPolicyException +// InvalidSmsRoleTrustRelationshipException +// TooManyRequestsException +// NotAuthorizedException +// UnsupportedUserStateException +// InternalErrorException func (c *CognitoIdentityProvider) AdminCreateUser(input *AdminCreateUserInput) (*AdminCreateUserOutput, error) { req, out := c.AdminCreateUserRequest(input) err := req.Send() @@ -208,7 +280,26 @@ func (c *CognitoIdentityProvider) AdminDeleteUserRequest(input *AdminDeleteUserI return } +// AdminDeleteUser API operation for Amazon Cognito Identity Provider. +// // Deletes a user as an administrator. Works on any user. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Cognito Identity Provider's +// API operation, AdminDeleteUser for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ResourceNotFoundException +// InvalidParameterException +// TooManyRequestsException +// NotAuthorizedException +// UserNotFoundException +// InternalErrorException func (c *CognitoIdentityProvider) AdminDeleteUser(input *AdminDeleteUserInput) (*AdminDeleteUserOutput, error) { req, out := c.AdminDeleteUserRequest(input) err := req.Send() @@ -256,8 +347,27 @@ func (c *CognitoIdentityProvider) AdminDeleteUserAttributesRequest(input *AdminD return } +// AdminDeleteUserAttributes API operation for Amazon Cognito Identity Provider. +// // Deletes the user attributes in a user pool as an administrator. Works on // any user. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Cognito Identity Provider's +// API operation, AdminDeleteUserAttributes for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ResourceNotFoundException +// InvalidParameterException +// TooManyRequestsException +// NotAuthorizedException +// UserNotFoundException +// InternalErrorException func (c *CognitoIdentityProvider) AdminDeleteUserAttributes(input *AdminDeleteUserAttributesInput) (*AdminDeleteUserAttributesOutput, error) { req, out := c.AdminDeleteUserAttributesRequest(input) err := req.Send() @@ -305,7 +415,26 @@ func (c *CognitoIdentityProvider) AdminDisableUserRequest(input *AdminDisableUse return } +// AdminDisableUser API operation for Amazon Cognito Identity Provider. +// // Disables the specified user as an administrator. Works on any user. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Cognito Identity Provider's +// API operation, AdminDisableUser for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ResourceNotFoundException +// InvalidParameterException +// TooManyRequestsException +// NotAuthorizedException +// UserNotFoundException +// InternalErrorException func (c *CognitoIdentityProvider) AdminDisableUser(input *AdminDisableUserInput) (*AdminDisableUserOutput, error) { req, out := c.AdminDisableUserRequest(input) err := req.Send() @@ -353,7 +482,26 @@ func (c *CognitoIdentityProvider) AdminEnableUserRequest(input *AdminEnableUserI return } +// AdminEnableUser API operation for Amazon Cognito Identity Provider. +// // Enables the specified user as an administrator. Works on any user. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Cognito Identity Provider's +// API operation, AdminEnableUser for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ResourceNotFoundException +// InvalidParameterException +// TooManyRequestsException +// NotAuthorizedException +// UserNotFoundException +// InternalErrorException func (c *CognitoIdentityProvider) AdminEnableUser(input *AdminEnableUserInput) (*AdminEnableUserOutput, error) { req, out := c.AdminEnableUserRequest(input) err := req.Send() @@ -403,7 +551,27 @@ func (c *CognitoIdentityProvider) AdminForgetDeviceRequest(input *AdminForgetDev return } +// AdminForgetDevice API operation for Amazon Cognito Identity Provider. +// // Forgets the device, as an administrator. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Cognito Identity Provider's +// API operation, AdminForgetDevice for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ResourceNotFoundException +// InvalidParameterException +// InvalidUserPoolConfigurationException +// TooManyRequestsException +// NotAuthorizedException +// UserNotFoundException +// InternalErrorException func (c *CognitoIdentityProvider) AdminForgetDevice(input *AdminForgetDeviceInput) (*AdminForgetDeviceOutput, error) { req, out := c.AdminForgetDeviceRequest(input) err := req.Send() @@ -451,7 +619,26 @@ func (c *CognitoIdentityProvider) AdminGetDeviceRequest(input *AdminGetDeviceInp return } +// AdminGetDevice API operation for Amazon Cognito Identity Provider. +// // Gets the device, as an administrator. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Cognito Identity Provider's +// API operation, AdminGetDevice for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ResourceNotFoundException +// InvalidParameterException +// InvalidUserPoolConfigurationException +// TooManyRequestsException +// InternalErrorException +// NotAuthorizedException func (c *CognitoIdentityProvider) AdminGetDevice(input *AdminGetDeviceInput) (*AdminGetDeviceOutput, error) { req, out := c.AdminGetDeviceRequest(input) err := req.Send() @@ -499,8 +686,27 @@ func (c *CognitoIdentityProvider) AdminGetUserRequest(input *AdminGetUserInput) return } +// AdminGetUser API operation for Amazon Cognito Identity Provider. +// // Gets the specified user by user name in a user pool as an administrator. // Works on any user. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Cognito Identity Provider's +// API operation, AdminGetUser for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ResourceNotFoundException +// InvalidParameterException +// TooManyRequestsException +// NotAuthorizedException +// UserNotFoundException +// InternalErrorException func (c *CognitoIdentityProvider) AdminGetUser(input *AdminGetUserInput) (*AdminGetUserOutput, error) { req, out := c.AdminGetUserRequest(input) err := req.Send() @@ -548,7 +754,35 @@ func (c *CognitoIdentityProvider) AdminInitiateAuthRequest(input *AdminInitiateA return } +// AdminInitiateAuth API operation for Amazon Cognito Identity Provider. +// // Initiates the authentication flow, as an administrator. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Cognito Identity Provider's +// API operation, AdminInitiateAuth for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ResourceNotFoundException +// InvalidParameterException +// NotAuthorizedException +// TooManyRequestsException +// InternalErrorException +// UnexpectedLambdaException +// InvalidUserPoolConfigurationException +// UserLambdaValidationException +// InvalidLambdaResponseException +// MFAMethodNotFoundException +// InvalidSmsRoleAccessPolicyException +// InvalidSmsRoleTrustRelationshipException +// PasswordResetRequiredException +// UserNotFoundException +// UserNotConfirmedException func (c *CognitoIdentityProvider) AdminInitiateAuth(input *AdminInitiateAuthInput) (*AdminInitiateAuthOutput, error) { req, out := c.AdminInitiateAuthRequest(input) err := req.Send() @@ -596,7 +830,26 @@ func (c *CognitoIdentityProvider) AdminListDevicesRequest(input *AdminListDevice return } +// AdminListDevices API operation for Amazon Cognito Identity Provider. +// // Lists devices, as an administrator. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Cognito Identity Provider's +// API operation, AdminListDevices for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidParameterException +// ResourceNotFoundException +// InvalidUserPoolConfigurationException +// TooManyRequestsException +// InternalErrorException +// NotAuthorizedException func (c *CognitoIdentityProvider) AdminListDevices(input *AdminListDevicesInput) (*AdminListDevicesOutput, error) { req, out := c.AdminListDevicesRequest(input) err := req.Send() @@ -644,6 +897,8 @@ func (c *CognitoIdentityProvider) AdminResetUserPasswordRequest(input *AdminRese return } +// AdminResetUserPassword API operation for Amazon Cognito Identity Provider. +// // Resets the specified user's password in a user pool as an administrator. // Works on any user. // @@ -656,6 +911,27 @@ func (c *CognitoIdentityProvider) AdminResetUserPasswordRequest(input *AdminRese // is selected and a verified email exists for the user, calling this API will // also result in sending a message to the end user with the code to change // their password. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Cognito Identity Provider's +// API operation, AdminResetUserPassword for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ResourceNotFoundException +// InvalidParameterException +// UnexpectedLambdaException +// UserLambdaValidationException +// NotAuthorizedException +// InvalidLambdaResponseException +// TooManyRequestsException +// LimitExceededException +// UserNotFoundException +// InternalErrorException func (c *CognitoIdentityProvider) AdminResetUserPassword(input *AdminResetUserPasswordInput) (*AdminResetUserPasswordOutput, error) { req, out := c.AdminResetUserPasswordRequest(input) err := req.Send() @@ -703,7 +979,39 @@ func (c *CognitoIdentityProvider) AdminRespondToAuthChallengeRequest(input *Admi return } +// AdminRespondToAuthChallenge API operation for Amazon Cognito Identity Provider. +// // Responds to an authentication challenge, as an administrator. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Cognito Identity Provider's +// API operation, AdminRespondToAuthChallenge for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ResourceNotFoundException +// InvalidParameterException +// NotAuthorizedException +// CodeMismatchException +// ExpiredCodeException +// UnexpectedLambdaException +// InvalidPasswordException +// UserLambdaValidationException +// InvalidLambdaResponseException +// TooManyRequestsException +// InvalidUserPoolConfigurationException +// InternalErrorException +// MFAMethodNotFoundException +// InvalidSmsRoleAccessPolicyException +// InvalidSmsRoleTrustRelationshipException +// AliasExistsException +// PasswordResetRequiredException +// UserNotFoundException +// UserNotConfirmedException func (c *CognitoIdentityProvider) AdminRespondToAuthChallenge(input *AdminRespondToAuthChallengeInput) (*AdminRespondToAuthChallengeOutput, error) { req, out := c.AdminRespondToAuthChallengeRequest(input) err := req.Send() @@ -751,7 +1059,25 @@ func (c *CognitoIdentityProvider) AdminSetUserSettingsRequest(input *AdminSetUse return } +// AdminSetUserSettings API operation for Amazon Cognito Identity Provider. +// // Sets all the user settings for a specified user name. Works on any user. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Cognito Identity Provider's +// API operation, AdminSetUserSettings for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ResourceNotFoundException +// InvalidParameterException +// NotAuthorizedException +// UserNotFoundException +// InternalErrorException func (c *CognitoIdentityProvider) AdminSetUserSettings(input *AdminSetUserSettingsInput) (*AdminSetUserSettingsOutput, error) { req, out := c.AdminSetUserSettingsRequest(input) err := req.Send() @@ -799,7 +1125,27 @@ func (c *CognitoIdentityProvider) AdminUpdateDeviceStatusRequest(input *AdminUpd return } +// AdminUpdateDeviceStatus API operation for Amazon Cognito Identity Provider. +// // Updates the device status as an administrator. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Cognito Identity Provider's +// API operation, AdminUpdateDeviceStatus for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidParameterException +// ResourceNotFoundException +// InvalidUserPoolConfigurationException +// TooManyRequestsException +// NotAuthorizedException +// UserNotFoundException +// InternalErrorException func (c *CognitoIdentityProvider) AdminUpdateDeviceStatus(input *AdminUpdateDeviceStatusInput) (*AdminUpdateDeviceStatusOutput, error) { req, out := c.AdminUpdateDeviceStatusRequest(input) err := req.Send() @@ -847,8 +1193,31 @@ func (c *CognitoIdentityProvider) AdminUpdateUserAttributesRequest(input *AdminU return } +// AdminUpdateUserAttributes API operation for Amazon Cognito Identity Provider. +// // Updates the specified user's attributes, including developer attributes, // as an administrator. Works on any user. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Cognito Identity Provider's +// API operation, AdminUpdateUserAttributes for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ResourceNotFoundException +// InvalidParameterException +// UnexpectedLambdaException +// UserLambdaValidationException +// InvalidLambdaResponseException +// AliasExistsException +// TooManyRequestsException +// NotAuthorizedException +// UserNotFoundException +// InternalErrorException func (c *CognitoIdentityProvider) AdminUpdateUserAttributes(input *AdminUpdateUserAttributesInput) (*AdminUpdateUserAttributesOutput, error) { req, out := c.AdminUpdateUserAttributesRequest(input) err := req.Send() @@ -896,7 +1265,26 @@ func (c *CognitoIdentityProvider) AdminUserGlobalSignOutRequest(input *AdminUser return } +// AdminUserGlobalSignOut API operation for Amazon Cognito Identity Provider. +// // Signs out users from all devices, as an administrator. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Cognito Identity Provider's +// API operation, AdminUserGlobalSignOut for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ResourceNotFoundException +// InvalidParameterException +// TooManyRequestsException +// NotAuthorizedException +// UserNotFoundException +// InternalErrorException func (c *CognitoIdentityProvider) AdminUserGlobalSignOut(input *AdminUserGlobalSignOutInput) (*AdminUserGlobalSignOutOutput, error) { req, out := c.AdminUserGlobalSignOutRequest(input) err := req.Send() @@ -945,7 +1333,30 @@ func (c *CognitoIdentityProvider) ChangePasswordRequest(input *ChangePasswordInp return } +// ChangePassword API operation for Amazon Cognito Identity Provider. +// // Changes the password for a specified user in a user pool. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Cognito Identity Provider's +// API operation, ChangePassword for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ResourceNotFoundException +// InvalidParameterException +// InvalidPasswordException +// NotAuthorizedException +// TooManyRequestsException +// LimitExceededException +// PasswordResetRequiredException +// UserNotFoundException +// UserNotConfirmedException +// InternalErrorException func (c *CognitoIdentityProvider) ChangePassword(input *ChangePasswordInput) (*ChangePasswordOutput, error) { req, out := c.ChangePasswordRequest(input) err := req.Send() @@ -993,8 +1404,33 @@ func (c *CognitoIdentityProvider) ConfirmDeviceRequest(input *ConfirmDeviceInput return } +// ConfirmDevice API operation for Amazon Cognito Identity Provider. +// // Confirms tracking of the device. This API call is the call that beings device // tracking. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Cognito Identity Provider's +// API operation, ConfirmDevice for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ResourceNotFoundException +// InvalidParameterException +// NotAuthorizedException +// InvalidPasswordException +// InvalidLambdaResponseException +// UsernameExistsException +// InvalidUserPoolConfigurationException +// TooManyRequestsException +// PasswordResetRequiredException +// UserNotFoundException +// UserNotConfirmedException +// InternalErrorException func (c *CognitoIdentityProvider) ConfirmDevice(input *ConfirmDeviceInput) (*ConfirmDeviceOutput, error) { req, out := c.ConfirmDeviceRequest(input) err := req.Send() @@ -1043,8 +1479,36 @@ func (c *CognitoIdentityProvider) ConfirmForgotPasswordRequest(input *ConfirmFor return } +// ConfirmForgotPassword API operation for Amazon Cognito Identity Provider. +// // Allows a user to enter a code provided when they reset their password to // update their password. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Cognito Identity Provider's +// API operation, ConfirmForgotPassword for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ResourceNotFoundException +// UnexpectedLambdaException +// UserLambdaValidationException +// InvalidParameterException +// InvalidPasswordException +// NotAuthorizedException +// CodeMismatchException +// ExpiredCodeException +// TooManyFailedAttemptsException +// InvalidLambdaResponseException +// TooManyRequestsException +// LimitExceededException +// UserNotFoundException +// UserNotConfirmedException +// InternalErrorException func (c *CognitoIdentityProvider) ConfirmForgotPassword(input *ConfirmForgotPasswordInput) (*ConfirmForgotPasswordOutput, error) { req, out := c.ConfirmForgotPasswordRequest(input) err := req.Send() @@ -1093,8 +1557,35 @@ func (c *CognitoIdentityProvider) ConfirmSignUpRequest(input *ConfirmSignUpInput return } +// ConfirmSignUp API operation for Amazon Cognito Identity Provider. +// // Confirms registration of a user and handles the existing alias from a previous // user. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Cognito Identity Provider's +// API operation, ConfirmSignUp for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ResourceNotFoundException +// InvalidParameterException +// UnexpectedLambdaException +// UserLambdaValidationException +// NotAuthorizedException +// TooManyFailedAttemptsException +// CodeMismatchException +// ExpiredCodeException +// InvalidLambdaResponseException +// AliasExistsException +// TooManyRequestsException +// LimitExceededException +// UserNotFoundException +// InternalErrorException func (c *CognitoIdentityProvider) ConfirmSignUp(input *ConfirmSignUpInput) (*ConfirmSignUpOutput, error) { req, out := c.ConfirmSignUpRequest(input) err := req.Send() @@ -1142,7 +1633,27 @@ func (c *CognitoIdentityProvider) CreateUserImportJobRequest(input *CreateUserIm return } +// CreateUserImportJob API operation for Amazon Cognito Identity Provider. +// // Creates the user import job. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Cognito Identity Provider's +// API operation, CreateUserImportJob for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ResourceNotFoundException +// InvalidParameterException +// TooManyRequestsException +// PreconditionNotMetException +// NotAuthorizedException +// LimitExceededException +// InternalErrorException func (c *CognitoIdentityProvider) CreateUserImportJob(input *CreateUserImportJobInput) (*CreateUserImportJobOutput, error) { req, out := c.CreateUserImportJobRequest(input) err := req.Send() @@ -1190,8 +1701,29 @@ func (c *CognitoIdentityProvider) CreateUserPoolRequest(input *CreateUserPoolInp return } +// CreateUserPool API operation for Amazon Cognito Identity Provider. +// // Creates a new Amazon Cognito user pool and sets the password policy for the // pool. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Cognito Identity Provider's +// API operation, CreateUserPool for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidParameterException +// TooManyRequestsException +// LimitExceededException +// InvalidSmsRoleAccessPolicyException +// InvalidSmsRoleTrustRelationshipException +// InvalidEmailRoleAccessPolicyException +// NotAuthorizedException +// InternalErrorException func (c *CognitoIdentityProvider) CreateUserPool(input *CreateUserPoolInput) (*CreateUserPoolOutput, error) { req, out := c.CreateUserPoolRequest(input) err := req.Send() @@ -1239,7 +1771,26 @@ func (c *CognitoIdentityProvider) CreateUserPoolClientRequest(input *CreateUserP return } +// CreateUserPoolClient API operation for Amazon Cognito Identity Provider. +// // Creates the user pool client. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Cognito Identity Provider's +// API operation, CreateUserPoolClient for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidParameterException +// ResourceNotFoundException +// TooManyRequestsException +// LimitExceededException +// NotAuthorizedException +// InternalErrorException func (c *CognitoIdentityProvider) CreateUserPoolClient(input *CreateUserPoolClientInput) (*CreateUserPoolClientOutput, error) { req, out := c.CreateUserPoolClientRequest(input) err := req.Send() @@ -1290,7 +1841,28 @@ func (c *CognitoIdentityProvider) DeleteUserRequest(input *DeleteUserInput) (req return } +// DeleteUser API operation for Amazon Cognito Identity Provider. +// // Allows a user to delete one's self. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Cognito Identity Provider's +// API operation, DeleteUser for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ResourceNotFoundException +// InvalidParameterException +// NotAuthorizedException +// TooManyRequestsException +// PasswordResetRequiredException +// UserNotFoundException +// UserNotConfirmedException +// InternalErrorException func (c *CognitoIdentityProvider) DeleteUser(input *DeleteUserInput) (*DeleteUserOutput, error) { req, out := c.DeleteUserRequest(input) err := req.Send() @@ -1339,7 +1911,28 @@ func (c *CognitoIdentityProvider) DeleteUserAttributesRequest(input *DeleteUserA return } +// DeleteUserAttributes API operation for Amazon Cognito Identity Provider. +// // Deletes the attributes for a user. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Cognito Identity Provider's +// API operation, DeleteUserAttributes for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ResourceNotFoundException +// InvalidParameterException +// NotAuthorizedException +// TooManyRequestsException +// PasswordResetRequiredException +// UserNotFoundException +// UserNotConfirmedException +// InternalErrorException func (c *CognitoIdentityProvider) DeleteUserAttributes(input *DeleteUserAttributesInput) (*DeleteUserAttributesOutput, error) { req, out := c.DeleteUserAttributesRequest(input) err := req.Send() @@ -1389,7 +1982,26 @@ func (c *CognitoIdentityProvider) DeleteUserPoolRequest(input *DeleteUserPoolInp return } +// DeleteUserPool API operation for Amazon Cognito Identity Provider. +// // Deletes the specified Amazon Cognito user pool. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Cognito Identity Provider's +// API operation, DeleteUserPool for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ResourceNotFoundException +// InvalidParameterException +// TooManyRequestsException +// NotAuthorizedException +// UserImportInProgressException +// InternalErrorException func (c *CognitoIdentityProvider) DeleteUserPool(input *DeleteUserPoolInput) (*DeleteUserPoolOutput, error) { req, out := c.DeleteUserPoolRequest(input) err := req.Send() @@ -1439,7 +2051,25 @@ func (c *CognitoIdentityProvider) DeleteUserPoolClientRequest(input *DeleteUserP return } +// DeleteUserPoolClient API operation for Amazon Cognito Identity Provider. +// // Allows the developer to delete the user pool client. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Cognito Identity Provider's +// API operation, DeleteUserPoolClient for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ResourceNotFoundException +// InvalidParameterException +// TooManyRequestsException +// NotAuthorizedException +// InternalErrorException func (c *CognitoIdentityProvider) DeleteUserPoolClient(input *DeleteUserPoolClientInput) (*DeleteUserPoolClientOutput, error) { req, out := c.DeleteUserPoolClientRequest(input) err := req.Send() @@ -1487,7 +2117,25 @@ func (c *CognitoIdentityProvider) DescribeUserImportJobRequest(input *DescribeUs return } +// DescribeUserImportJob API operation for Amazon Cognito Identity Provider. +// // Describes the user import job. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Cognito Identity Provider's +// API operation, DescribeUserImportJob for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ResourceNotFoundException +// InvalidParameterException +// TooManyRequestsException +// NotAuthorizedException +// InternalErrorException func (c *CognitoIdentityProvider) DescribeUserImportJob(input *DescribeUserImportJobInput) (*DescribeUserImportJobOutput, error) { req, out := c.DescribeUserImportJobRequest(input) err := req.Send() @@ -1535,8 +2183,26 @@ func (c *CognitoIdentityProvider) DescribeUserPoolRequest(input *DescribeUserPoo return } +// DescribeUserPool API operation for Amazon Cognito Identity Provider. +// // Returns the configuration information and metadata of the specified user // pool. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Cognito Identity Provider's +// API operation, DescribeUserPool for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ResourceNotFoundException +// InvalidParameterException +// TooManyRequestsException +// NotAuthorizedException +// InternalErrorException func (c *CognitoIdentityProvider) DescribeUserPool(input *DescribeUserPoolInput) (*DescribeUserPoolOutput, error) { req, out := c.DescribeUserPoolRequest(input) err := req.Send() @@ -1584,8 +2250,26 @@ func (c *CognitoIdentityProvider) DescribeUserPoolClientRequest(input *DescribeU return } +// DescribeUserPoolClient API operation for Amazon Cognito Identity Provider. +// // Client method for returning the configuration information and metadata of // the specified user pool client. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Cognito Identity Provider's +// API operation, DescribeUserPoolClient for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ResourceNotFoundException +// InvalidParameterException +// TooManyRequestsException +// NotAuthorizedException +// InternalErrorException func (c *CognitoIdentityProvider) DescribeUserPoolClient(input *DescribeUserPoolClientInput) (*DescribeUserPoolClientOutput, error) { req, out := c.DescribeUserPoolClientRequest(input) err := req.Send() @@ -1635,7 +2319,29 @@ func (c *CognitoIdentityProvider) ForgetDeviceRequest(input *ForgetDeviceInput) return } +// ForgetDevice API operation for Amazon Cognito Identity Provider. +// // Forgets the specified device. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Cognito Identity Provider's +// API operation, ForgetDevice for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ResourceNotFoundException +// InvalidParameterException +// NotAuthorizedException +// TooManyRequestsException +// InvalidUserPoolConfigurationException +// PasswordResetRequiredException +// UserNotFoundException +// UserNotConfirmedException +// InternalErrorException func (c *CognitoIdentityProvider) ForgetDevice(input *ForgetDeviceInput) (*ForgetDeviceOutput, error) { req, out := c.ForgetDeviceRequest(input) err := req.Send() @@ -1684,7 +2390,35 @@ func (c *CognitoIdentityProvider) ForgotPasswordRequest(input *ForgotPasswordInp return } +// ForgotPassword API operation for Amazon Cognito Identity Provider. +// // Retrieves the password for the specified client ID or username. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Cognito Identity Provider's +// API operation, ForgotPassword for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ResourceNotFoundException +// InvalidParameterException +// UnexpectedLambdaException +// UserLambdaValidationException +// NotAuthorizedException +// InvalidLambdaResponseException +// TooManyRequestsException +// LimitExceededException +// InvalidSmsRoleAccessPolicyException +// InvalidSmsRoleTrustRelationshipException +// InvalidEmailRoleAccessPolicyException +// CodeDeliveryFailureException +// UserNotFoundException +// UserNotConfirmedException +// InternalErrorException func (c *CognitoIdentityProvider) ForgotPassword(input *ForgotPasswordInput) (*ForgotPasswordOutput, error) { req, out := c.ForgotPasswordRequest(input) err := req.Send() @@ -1732,8 +2466,26 @@ func (c *CognitoIdentityProvider) GetCSVHeaderRequest(input *GetCSVHeaderInput) return } +// GetCSVHeader API operation for Amazon Cognito Identity Provider. +// // Gets the header information for the .csv file to be used as input for the // user import job. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Cognito Identity Provider's +// API operation, GetCSVHeader for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ResourceNotFoundException +// InvalidParameterException +// TooManyRequestsException +// NotAuthorizedException +// InternalErrorException func (c *CognitoIdentityProvider) GetCSVHeader(input *GetCSVHeaderInput) (*GetCSVHeaderOutput, error) { req, out := c.GetCSVHeaderRequest(input) err := req.Send() @@ -1781,7 +2533,29 @@ func (c *CognitoIdentityProvider) GetDeviceRequest(input *GetDeviceInput) (req * return } +// GetDevice API operation for Amazon Cognito Identity Provider. +// // Gets the device. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Cognito Identity Provider's +// API operation, GetDevice for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ResourceNotFoundException +// InvalidParameterException +// InvalidUserPoolConfigurationException +// NotAuthorizedException +// TooManyRequestsException +// PasswordResetRequiredException +// UserNotFoundException +// UserNotConfirmedException +// InternalErrorException func (c *CognitoIdentityProvider) GetDevice(input *GetDeviceInput) (*GetDeviceOutput, error) { req, out := c.GetDeviceRequest(input) err := req.Send() @@ -1830,7 +2604,28 @@ func (c *CognitoIdentityProvider) GetUserRequest(input *GetUserInput) (req *requ return } +// GetUser API operation for Amazon Cognito Identity Provider. +// // Gets the user attributes and metadata for a user. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Cognito Identity Provider's +// API operation, GetUser for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ResourceNotFoundException +// InvalidParameterException +// NotAuthorizedException +// TooManyRequestsException +// PasswordResetRequiredException +// UserNotFoundException +// UserNotConfirmedException +// InternalErrorException func (c *CognitoIdentityProvider) GetUser(input *GetUserInput) (*GetUserOutput, error) { req, out := c.GetUserRequest(input) err := req.Send() @@ -1879,7 +2674,36 @@ func (c *CognitoIdentityProvider) GetUserAttributeVerificationCodeRequest(input return } +// GetUserAttributeVerificationCode API operation for Amazon Cognito Identity Provider. +// // Gets the user attribute verification code for the specified attribute name. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Cognito Identity Provider's +// API operation, GetUserAttributeVerificationCode for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ResourceNotFoundException +// InvalidParameterException +// TooManyRequestsException +// NotAuthorizedException +// UnexpectedLambdaException +// UserLambdaValidationException +// InvalidLambdaResponseException +// InvalidSmsRoleAccessPolicyException +// InvalidSmsRoleTrustRelationshipException +// InvalidEmailRoleAccessPolicyException +// CodeDeliveryFailureException +// LimitExceededException +// PasswordResetRequiredException +// UserNotFoundException +// UserNotConfirmedException +// InternalErrorException func (c *CognitoIdentityProvider) GetUserAttributeVerificationCode(input *GetUserAttributeVerificationCodeInput) (*GetUserAttributeVerificationCodeOutput, error) { req, out := c.GetUserAttributeVerificationCodeRequest(input) err := req.Send() @@ -1927,7 +2751,27 @@ func (c *CognitoIdentityProvider) GlobalSignOutRequest(input *GlobalSignOutInput return } +// GlobalSignOut API operation for Amazon Cognito Identity Provider. +// // Signs out users from all devices. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Cognito Identity Provider's +// API operation, GlobalSignOut for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ResourceNotFoundException +// InvalidParameterException +// NotAuthorizedException +// TooManyRequestsException +// PasswordResetRequiredException +// UserNotConfirmedException +// InternalErrorException func (c *CognitoIdentityProvider) GlobalSignOut(input *GlobalSignOutInput) (*GlobalSignOutOutput, error) { req, out := c.GlobalSignOutRequest(input) err := req.Send() @@ -1975,7 +2819,32 @@ func (c *CognitoIdentityProvider) InitiateAuthRequest(input *InitiateAuthInput) return } +// InitiateAuth API operation for Amazon Cognito Identity Provider. +// // Initiates the authentication flow. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Cognito Identity Provider's +// API operation, InitiateAuth for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ResourceNotFoundException +// InvalidParameterException +// NotAuthorizedException +// TooManyRequestsException +// UnexpectedLambdaException +// InvalidUserPoolConfigurationException +// UserLambdaValidationException +// InvalidLambdaResponseException +// PasswordResetRequiredException +// UserNotFoundException +// UserNotConfirmedException +// InternalErrorException func (c *CognitoIdentityProvider) InitiateAuth(input *InitiateAuthInput) (*InitiateAuthOutput, error) { req, out := c.InitiateAuthRequest(input) err := req.Send() @@ -2023,7 +2892,29 @@ func (c *CognitoIdentityProvider) ListDevicesRequest(input *ListDevicesInput) (r return } +// ListDevices API operation for Amazon Cognito Identity Provider. +// // Lists the devices. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Cognito Identity Provider's +// API operation, ListDevices for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidParameterException +// ResourceNotFoundException +// NotAuthorizedException +// InvalidUserPoolConfigurationException +// TooManyRequestsException +// PasswordResetRequiredException +// UserNotFoundException +// UserNotConfirmedException +// InternalErrorException func (c *CognitoIdentityProvider) ListDevices(input *ListDevicesInput) (*ListDevicesOutput, error) { req, out := c.ListDevicesRequest(input) err := req.Send() @@ -2071,7 +2962,25 @@ func (c *CognitoIdentityProvider) ListUserImportJobsRequest(input *ListUserImpor return } +// ListUserImportJobs API operation for Amazon Cognito Identity Provider. +// // Lists the user import jobs. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Cognito Identity Provider's +// API operation, ListUserImportJobs for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ResourceNotFoundException +// InvalidParameterException +// TooManyRequestsException +// NotAuthorizedException +// InternalErrorException func (c *CognitoIdentityProvider) ListUserImportJobs(input *ListUserImportJobsInput) (*ListUserImportJobsOutput, error) { req, out := c.ListUserImportJobsRequest(input) err := req.Send() @@ -2119,7 +3028,25 @@ func (c *CognitoIdentityProvider) ListUserPoolClientsRequest(input *ListUserPool return } +// ListUserPoolClients API operation for Amazon Cognito Identity Provider. +// // Lists the clients that have been created for the specified user pool. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Cognito Identity Provider's +// API operation, ListUserPoolClients for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidParameterException +// ResourceNotFoundException +// TooManyRequestsException +// NotAuthorizedException +// InternalErrorException func (c *CognitoIdentityProvider) ListUserPoolClients(input *ListUserPoolClientsInput) (*ListUserPoolClientsOutput, error) { req, out := c.ListUserPoolClientsRequest(input) err := req.Send() @@ -2167,7 +3094,24 @@ func (c *CognitoIdentityProvider) ListUserPoolsRequest(input *ListUserPoolsInput return } +// ListUserPools API operation for Amazon Cognito Identity Provider. +// // Lists the user pools associated with an AWS account. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Cognito Identity Provider's +// API operation, ListUserPools for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidParameterException +// TooManyRequestsException +// NotAuthorizedException +// InternalErrorException func (c *CognitoIdentityProvider) ListUserPools(input *ListUserPoolsInput) (*ListUserPoolsOutput, error) { req, out := c.ListUserPoolsRequest(input) err := req.Send() @@ -2215,7 +3159,25 @@ func (c *CognitoIdentityProvider) ListUsersRequest(input *ListUsersInput) (req * return } +// ListUsers API operation for Amazon Cognito Identity Provider. +// // Lists the users in the Amazon Cognito user pool. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Cognito Identity Provider's +// API operation, ListUsers for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidParameterException +// ResourceNotFoundException +// TooManyRequestsException +// NotAuthorizedException +// InternalErrorException func (c *CognitoIdentityProvider) ListUsers(input *ListUsersInput) (*ListUsersOutput, error) { req, out := c.ListUsersRequest(input) err := req.Send() @@ -2264,8 +3226,35 @@ func (c *CognitoIdentityProvider) ResendConfirmationCodeRequest(input *ResendCon return } +// ResendConfirmationCode API operation for Amazon Cognito Identity Provider. +// // Resends the confirmation (for confirmation of registration) to a specific // user in the user pool. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Cognito Identity Provider's +// API operation, ResendConfirmationCode for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ResourceNotFoundException +// InvalidParameterException +// UnexpectedLambdaException +// UserLambdaValidationException +// NotAuthorizedException +// InvalidLambdaResponseException +// TooManyRequestsException +// LimitExceededException +// InvalidSmsRoleAccessPolicyException +// InvalidSmsRoleTrustRelationshipException +// InvalidEmailRoleAccessPolicyException +// CodeDeliveryFailureException +// UserNotFoundException +// InternalErrorException func (c *CognitoIdentityProvider) ResendConfirmationCode(input *ResendConfirmationCodeInput) (*ResendConfirmationCodeOutput, error) { req, out := c.ResendConfirmationCodeRequest(input) err := req.Send() @@ -2313,7 +3302,39 @@ func (c *CognitoIdentityProvider) RespondToAuthChallengeRequest(input *RespondTo return } +// RespondToAuthChallenge API operation for Amazon Cognito Identity Provider. +// // Responds to the authentication challenge. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Cognito Identity Provider's +// API operation, RespondToAuthChallenge for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ResourceNotFoundException +// InvalidParameterException +// NotAuthorizedException +// CodeMismatchException +// ExpiredCodeException +// UnexpectedLambdaException +// UserLambdaValidationException +// InvalidPasswordException +// InvalidLambdaResponseException +// TooManyRequestsException +// InvalidUserPoolConfigurationException +// MFAMethodNotFoundException +// PasswordResetRequiredException +// UserNotFoundException +// UserNotConfirmedException +// InvalidSmsRoleAccessPolicyException +// InvalidSmsRoleTrustRelationshipException +// AliasExistsException +// InternalErrorException func (c *CognitoIdentityProvider) RespondToAuthChallenge(input *RespondToAuthChallengeInput) (*RespondToAuthChallengeOutput, error) { req, out := c.RespondToAuthChallengeRequest(input) err := req.Send() @@ -2362,9 +3383,29 @@ func (c *CognitoIdentityProvider) SetUserSettingsRequest(input *SetUserSettingsI return } +// SetUserSettings API operation for Amazon Cognito Identity Provider. +// // Sets the user settings like multi-factor authentication (MFA). If MFA is // to be removed for a particular attribute pass the attribute with code delivery // as null. If null list is passed, all MFA options are removed. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Cognito Identity Provider's +// API operation, SetUserSettings for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ResourceNotFoundException +// InvalidParameterException +// NotAuthorizedException +// PasswordResetRequiredException +// UserNotFoundException +// UserNotConfirmedException +// InternalErrorException func (c *CognitoIdentityProvider) SetUserSettings(input *SetUserSettingsInput) (*SetUserSettingsOutput, error) { req, out := c.SetUserSettingsRequest(input) err := req.Send() @@ -2413,8 +3454,35 @@ func (c *CognitoIdentityProvider) SignUpRequest(input *SignUpInput) (req *reques return } +// SignUp API operation for Amazon Cognito Identity Provider. +// // Registers the user in the specified user pool and creates a user name, password, // and user attributes. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Cognito Identity Provider's +// API operation, SignUp for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ResourceNotFoundException +// InvalidParameterException +// UnexpectedLambdaException +// UserLambdaValidationException +// NotAuthorizedException +// InvalidPasswordException +// InvalidLambdaResponseException +// UsernameExistsException +// TooManyRequestsException +// InternalErrorException +// InvalidSmsRoleAccessPolicyException +// InvalidSmsRoleTrustRelationshipException +// InvalidEmailRoleAccessPolicyException +// CodeDeliveryFailureException func (c *CognitoIdentityProvider) SignUp(input *SignUpInput) (*SignUpOutput, error) { req, out := c.SignUpRequest(input) err := req.Send() @@ -2462,7 +3530,26 @@ func (c *CognitoIdentityProvider) StartUserImportJobRequest(input *StartUserImpo return } +// StartUserImportJob API operation for Amazon Cognito Identity Provider. +// // Starts the user import. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Cognito Identity Provider's +// API operation, StartUserImportJob for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ResourceNotFoundException +// InvalidParameterException +// TooManyRequestsException +// InternalErrorException +// PreconditionNotMetException +// NotAuthorizedException func (c *CognitoIdentityProvider) StartUserImportJob(input *StartUserImportJobInput) (*StartUserImportJobOutput, error) { req, out := c.StartUserImportJobRequest(input) err := req.Send() @@ -2510,7 +3597,26 @@ func (c *CognitoIdentityProvider) StopUserImportJobRequest(input *StopUserImport return } +// StopUserImportJob API operation for Amazon Cognito Identity Provider. +// // Stops the user import job. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Cognito Identity Provider's +// API operation, StopUserImportJob for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ResourceNotFoundException +// InvalidParameterException +// TooManyRequestsException +// InternalErrorException +// PreconditionNotMetException +// NotAuthorizedException func (c *CognitoIdentityProvider) StopUserImportJob(input *StopUserImportJobInput) (*StopUserImportJobOutput, error) { req, out := c.StopUserImportJobRequest(input) err := req.Send() @@ -2558,7 +3664,29 @@ func (c *CognitoIdentityProvider) UpdateDeviceStatusRequest(input *UpdateDeviceS return } +// UpdateDeviceStatus API operation for Amazon Cognito Identity Provider. +// // Updates the device status. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Cognito Identity Provider's +// API operation, UpdateDeviceStatus for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidParameterException +// ResourceNotFoundException +// NotAuthorizedException +// InvalidUserPoolConfigurationException +// TooManyRequestsException +// PasswordResetRequiredException +// UserNotFoundException +// UserNotConfirmedException +// InternalErrorException func (c *CognitoIdentityProvider) UpdateDeviceStatus(input *UpdateDeviceStatusInput) (*UpdateDeviceStatusOutput, error) { req, out := c.UpdateDeviceStatusRequest(input) err := req.Send() @@ -2607,7 +3735,38 @@ func (c *CognitoIdentityProvider) UpdateUserAttributesRequest(input *UpdateUserA return } +// UpdateUserAttributes API operation for Amazon Cognito Identity Provider. +// // Allows a user to update a specific attribute (one at a time). +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Cognito Identity Provider's +// API operation, UpdateUserAttributes for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ResourceNotFoundException +// InvalidParameterException +// CodeMismatchException +// ExpiredCodeException +// NotAuthorizedException +// UnexpectedLambdaException +// UserLambdaValidationException +// InvalidLambdaResponseException +// TooManyRequestsException +// AliasExistsException +// InvalidSmsRoleAccessPolicyException +// InvalidSmsRoleTrustRelationshipException +// InvalidEmailRoleAccessPolicyException +// CodeDeliveryFailureException +// PasswordResetRequiredException +// UserNotFoundException +// UserNotConfirmedException +// InternalErrorException func (c *CognitoIdentityProvider) UpdateUserAttributes(input *UpdateUserAttributesInput) (*UpdateUserAttributesOutput, error) { req, out := c.UpdateUserAttributesRequest(input) err := req.Send() @@ -2655,7 +3814,30 @@ func (c *CognitoIdentityProvider) UpdateUserPoolRequest(input *UpdateUserPoolInp return } +// UpdateUserPool API operation for Amazon Cognito Identity Provider. +// // Updates the specified user pool with the specified attributes. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Cognito Identity Provider's +// API operation, UpdateUserPool for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ResourceNotFoundException +// InvalidParameterException +// ConcurrentModificationException +// TooManyRequestsException +// NotAuthorizedException +// UserImportInProgressException +// InternalErrorException +// InvalidSmsRoleAccessPolicyException +// InvalidSmsRoleTrustRelationshipException +// InvalidEmailRoleAccessPolicyException func (c *CognitoIdentityProvider) UpdateUserPool(input *UpdateUserPoolInput) (*UpdateUserPoolOutput, error) { req, out := c.UpdateUserPoolRequest(input) err := req.Send() @@ -2703,8 +3885,26 @@ func (c *CognitoIdentityProvider) UpdateUserPoolClientRequest(input *UpdateUserP return } +// UpdateUserPoolClient API operation for Amazon Cognito Identity Provider. +// // Allows the developer to update the specified user pool client and password // policy. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Cognito Identity Provider's +// API operation, UpdateUserPoolClient for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ResourceNotFoundException +// InvalidParameterException +// TooManyRequestsException +// NotAuthorizedException +// InternalErrorException func (c *CognitoIdentityProvider) UpdateUserPoolClient(input *UpdateUserPoolClientInput) (*UpdateUserPoolClientOutput, error) { req, out := c.UpdateUserPoolClientRequest(input) err := req.Send() @@ -2753,7 +3953,31 @@ func (c *CognitoIdentityProvider) VerifyUserAttributeRequest(input *VerifyUserAt return } +// VerifyUserAttribute API operation for Amazon Cognito Identity Provider. +// // Verifies the specified user attributes in the user pool. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Cognito Identity Provider's +// API operation, VerifyUserAttribute for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ResourceNotFoundException +// InvalidParameterException +// CodeMismatchException +// ExpiredCodeException +// NotAuthorizedException +// TooManyRequestsException +// LimitExceededException +// PasswordResetRequiredException +// UserNotFoundException +// UserNotConfirmedException +// InternalErrorException func (c *CognitoIdentityProvider) VerifyUserAttribute(input *VerifyUserAttributeInput) (*VerifyUserAttributeOutput, error) { req, out := c.VerifyUserAttributeRequest(input) err := req.Send() diff --git a/service/cognitosync/api.go b/service/cognitosync/api.go index 6ed5b5ce71e..47653e893e4 100644 --- a/service/cognitosync/api.go +++ b/service/cognitosync/api.go @@ -54,6 +54,8 @@ func (c *CognitoSync) BulkPublishRequest(input *BulkPublishInput) (req *request. return } +// BulkPublish API operation for Amazon Cognito Sync. +// // Initiates a bulk publish of all existing datasets for an Identity Pool to // the configured stream. Customers are limited to one successful bulk publish // per 24 hours. Bulk publish is an asynchronous request, customers can see @@ -61,6 +63,23 @@ func (c *CognitoSync) BulkPublishRequest(input *BulkPublishInput) (req *request. // // This API can only be called with developer credentials. You cannot call // this API with the temporary user credentials provided by Cognito Identity. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Cognito Sync's +// API operation, BulkPublish for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// NotAuthorizedException +// InvalidParameterException +// ResourceNotFoundException +// InternalErrorException +// DuplicateRequestException +// AlreadyStreamedException func (c *CognitoSync) BulkPublish(input *BulkPublishInput) (*BulkPublishOutput, error) { req, out := c.BulkPublishRequest(input) err := req.Send() @@ -108,6 +127,8 @@ func (c *CognitoSync) DeleteDatasetRequest(input *DeleteDatasetInput) (req *requ return } +// DeleteDataset API operation for Amazon Cognito Sync. +// // Deletes the specific dataset. The dataset will be deleted permanently, and // the action can't be undone. Datasets that this dataset was merged with will // no longer report the merge. Any subsequent operation on this dataset will @@ -115,6 +136,23 @@ func (c *CognitoSync) DeleteDatasetRequest(input *DeleteDatasetInput) (req *requ // // This API can be called with temporary user credentials provided by Cognito // Identity or with developer credentials. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Cognito Sync's +// API operation, DeleteDataset for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// NotAuthorizedException +// InvalidParameterException +// ResourceNotFoundException +// InternalErrorException +// TooManyRequestsException +// ResourceConflictException func (c *CognitoSync) DeleteDataset(input *DeleteDatasetInput) (*DeleteDatasetOutput, error) { req, out := c.DeleteDatasetRequest(input) err := req.Send() @@ -162,6 +200,8 @@ func (c *CognitoSync) DescribeDatasetRequest(input *DescribeDatasetInput) (req * return } +// DescribeDataset API operation for Amazon Cognito Sync. +// // Gets meta data about a dataset by identity and dataset name. With Amazon // Cognito Sync, each identity has access only to its own data. Thus, the credentials // used to make this API call need to have access to the identity data. @@ -169,6 +209,22 @@ func (c *CognitoSync) DescribeDatasetRequest(input *DescribeDatasetInput) (req * // This API can be called with temporary user credentials provided by Cognito // Identity or with developer credentials. You should use Cognito Identity credentials // to make this API call. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Cognito Sync's +// API operation, DescribeDataset for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// NotAuthorizedException +// InvalidParameterException +// ResourceNotFoundException +// InternalErrorException +// TooManyRequestsException func (c *CognitoSync) DescribeDataset(input *DescribeDatasetInput) (*DescribeDatasetOutput, error) { req, out := c.DescribeDatasetRequest(input) err := req.Send() @@ -216,11 +272,29 @@ func (c *CognitoSync) DescribeIdentityPoolUsageRequest(input *DescribeIdentityPo return } +// DescribeIdentityPoolUsage API operation for Amazon Cognito Sync. +// // Gets usage details (for example, data storage) about a particular identity // pool. // // This API can only be called with developer credentials. You cannot call // this API with the temporary user credentials provided by Cognito Identity. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Cognito Sync's +// API operation, DescribeIdentityPoolUsage for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// NotAuthorizedException +// InvalidParameterException +// ResourceNotFoundException +// InternalErrorException +// TooManyRequestsException func (c *CognitoSync) DescribeIdentityPoolUsage(input *DescribeIdentityPoolUsageInput) (*DescribeIdentityPoolUsageOutput, error) { req, out := c.DescribeIdentityPoolUsageRequest(input) err := req.Send() @@ -268,11 +342,29 @@ func (c *CognitoSync) DescribeIdentityUsageRequest(input *DescribeIdentityUsageI return } +// DescribeIdentityUsage API operation for Amazon Cognito Sync. +// // Gets usage information for an identity, including number of datasets and // data usage. // // This API can be called with temporary user credentials provided by Cognito // Identity or with developer credentials. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Cognito Sync's +// API operation, DescribeIdentityUsage for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// NotAuthorizedException +// InvalidParameterException +// ResourceNotFoundException +// InternalErrorException +// TooManyRequestsException func (c *CognitoSync) DescribeIdentityUsage(input *DescribeIdentityUsageInput) (*DescribeIdentityUsageOutput, error) { req, out := c.DescribeIdentityUsageRequest(input) err := req.Send() @@ -320,10 +412,27 @@ func (c *CognitoSync) GetBulkPublishDetailsRequest(input *GetBulkPublishDetailsI return } +// GetBulkPublishDetails API operation for Amazon Cognito Sync. +// // Get the status of the last BulkPublish operation for an identity pool. // // This API can only be called with developer credentials. You cannot call // this API with the temporary user credentials provided by Cognito Identity. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Cognito Sync's +// API operation, GetBulkPublishDetails for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// NotAuthorizedException +// InvalidParameterException +// ResourceNotFoundException +// InternalErrorException func (c *CognitoSync) GetBulkPublishDetails(input *GetBulkPublishDetailsInput) (*GetBulkPublishDetailsOutput, error) { req, out := c.GetBulkPublishDetailsRequest(input) err := req.Send() @@ -371,11 +480,29 @@ func (c *CognitoSync) GetCognitoEventsRequest(input *GetCognitoEventsInput) (req return } +// GetCognitoEvents API operation for Amazon Cognito Sync. +// // Gets the events and the corresponding Lambda functions associated with an // identity pool. // // This API can only be called with developer credentials. You cannot call // this API with the temporary user credentials provided by Cognito Identity. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Cognito Sync's +// API operation, GetCognitoEvents for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidParameterException +// ResourceNotFoundException +// NotAuthorizedException +// InternalErrorException +// TooManyRequestsException func (c *CognitoSync) GetCognitoEvents(input *GetCognitoEventsInput) (*GetCognitoEventsOutput, error) { req, out := c.GetCognitoEventsRequest(input) err := req.Send() @@ -423,10 +550,28 @@ func (c *CognitoSync) GetIdentityPoolConfigurationRequest(input *GetIdentityPool return } +// GetIdentityPoolConfiguration API operation for Amazon Cognito Sync. +// // Gets the configuration settings of an identity pool. // // This API can only be called with developer credentials. You cannot call // this API with the temporary user credentials provided by Cognito Identity. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Cognito Sync's +// API operation, GetIdentityPoolConfiguration for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// NotAuthorizedException +// InvalidParameterException +// ResourceNotFoundException +// InternalErrorException +// TooManyRequestsException func (c *CognitoSync) GetIdentityPoolConfiguration(input *GetIdentityPoolConfigurationInput) (*GetIdentityPoolConfigurationOutput, error) { req, out := c.GetIdentityPoolConfigurationRequest(input) err := req.Send() @@ -474,6 +619,8 @@ func (c *CognitoSync) ListDatasetsRequest(input *ListDatasetsInput) (req *reques return } +// ListDatasets API operation for Amazon Cognito Sync. +// // Lists datasets for an identity. With Amazon Cognito Sync, each identity has // access only to its own data. Thus, the credentials used to make this API // call need to have access to the identity data. @@ -481,6 +628,21 @@ func (c *CognitoSync) ListDatasetsRequest(input *ListDatasetsInput) (req *reques // ListDatasets can be called with temporary user credentials provided by Cognito // Identity or with developer credentials. You should use the Cognito Identity // credentials to make this API call. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Cognito Sync's +// API operation, ListDatasets for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// NotAuthorizedException +// InvalidParameterException +// InternalErrorException +// TooManyRequestsException func (c *CognitoSync) ListDatasets(input *ListDatasetsInput) (*ListDatasetsOutput, error) { req, out := c.ListDatasetsRequest(input) err := req.Send() @@ -528,11 +690,28 @@ func (c *CognitoSync) ListIdentityPoolUsageRequest(input *ListIdentityPoolUsageI return } +// ListIdentityPoolUsage API operation for Amazon Cognito Sync. +// // Gets a list of identity pools registered with Cognito. // // ListIdentityPoolUsage can only be called with developer credentials. You // cannot make this API call with the temporary user credentials provided by // Cognito Identity. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Cognito Sync's +// API operation, ListIdentityPoolUsage for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// NotAuthorizedException +// InvalidParameterException +// InternalErrorException +// TooManyRequestsException func (c *CognitoSync) ListIdentityPoolUsage(input *ListIdentityPoolUsageInput) (*ListIdentityPoolUsageOutput, error) { req, out := c.ListIdentityPoolUsageRequest(input) err := req.Send() @@ -580,6 +759,8 @@ func (c *CognitoSync) ListRecordsRequest(input *ListRecordsInput) (req *request. return } +// ListRecords API operation for Amazon Cognito Sync. +// // Gets paginated records, optionally changed after a particular sync count // for a dataset and identity. With Amazon Cognito Sync, each identity has access // only to its own data. Thus, the credentials used to make this API call need @@ -588,6 +769,21 @@ func (c *CognitoSync) ListRecordsRequest(input *ListRecordsInput) (req *request. // ListRecords can be called with temporary user credentials provided by Cognito // Identity or with developer credentials. You should use Cognito Identity credentials // to make this API call. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Cognito Sync's +// API operation, ListRecords for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidParameterException +// NotAuthorizedException +// TooManyRequestsException +// InternalErrorException func (c *CognitoSync) ListRecords(input *ListRecordsInput) (*ListRecordsOutput, error) { req, out := c.ListRecordsRequest(input) err := req.Send() @@ -635,10 +831,29 @@ func (c *CognitoSync) RegisterDeviceRequest(input *RegisterDeviceInput) (req *re return } +// RegisterDevice API operation for Amazon Cognito Sync. +// // Registers a device to receive push sync notifications. // // This API can only be called with temporary credentials provided by Cognito // Identity. You cannot call this API with developer credentials. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Cognito Sync's +// API operation, RegisterDevice for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// NotAuthorizedException +// InvalidParameterException +// ResourceNotFoundException +// InternalErrorException +// InvalidConfigurationException +// TooManyRequestsException func (c *CognitoSync) RegisterDevice(input *RegisterDeviceInput) (*RegisterDeviceOutput, error) { req, out := c.RegisterDeviceRequest(input) err := req.Send() @@ -688,6 +903,8 @@ func (c *CognitoSync) SetCognitoEventsRequest(input *SetCognitoEventsInput) (req return } +// SetCognitoEvents API operation for Amazon Cognito Sync. +// // Sets the AWS Lambda function for a given event type for an identity pool. // This request only updates the key/value pair specified. Other key/values // pairs are not updated. To remove a key value pair, pass a empty value for @@ -695,6 +912,22 @@ func (c *CognitoSync) SetCognitoEventsRequest(input *SetCognitoEventsInput) (req // // This API can only be called with developer credentials. You cannot call // this API with the temporary user credentials provided by Cognito Identity. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Cognito Sync's +// API operation, SetCognitoEvents for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidParameterException +// ResourceNotFoundException +// NotAuthorizedException +// InternalErrorException +// TooManyRequestsException func (c *CognitoSync) SetCognitoEvents(input *SetCognitoEventsInput) (*SetCognitoEventsOutput, error) { req, out := c.SetCognitoEventsRequest(input) err := req.Send() @@ -742,10 +975,29 @@ func (c *CognitoSync) SetIdentityPoolConfigurationRequest(input *SetIdentityPool return } +// SetIdentityPoolConfiguration API operation for Amazon Cognito Sync. +// // Sets the necessary configuration for push sync. // // This API can only be called with developer credentials. You cannot call // this API with the temporary user credentials provided by Cognito Identity. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Cognito Sync's +// API operation, SetIdentityPoolConfiguration for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// NotAuthorizedException +// InvalidParameterException +// ResourceNotFoundException +// InternalErrorException +// TooManyRequestsException +// ConcurrentModificationException func (c *CognitoSync) SetIdentityPoolConfiguration(input *SetIdentityPoolConfigurationInput) (*SetIdentityPoolConfigurationOutput, error) { req, out := c.SetIdentityPoolConfigurationRequest(input) err := req.Send() @@ -793,11 +1045,30 @@ func (c *CognitoSync) SubscribeToDatasetRequest(input *SubscribeToDatasetInput) return } +// SubscribeToDataset API operation for Amazon Cognito Sync. +// // Subscribes to receive notifications when a dataset is modified by another // device. // // This API can only be called with temporary credentials provided by Cognito // Identity. You cannot call this API with developer credentials. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Cognito Sync's +// API operation, SubscribeToDataset for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// NotAuthorizedException +// InvalidParameterException +// ResourceNotFoundException +// InternalErrorException +// InvalidConfigurationException +// TooManyRequestsException func (c *CognitoSync) SubscribeToDataset(input *SubscribeToDatasetInput) (*SubscribeToDatasetOutput, error) { req, out := c.SubscribeToDatasetRequest(input) err := req.Send() @@ -845,11 +1116,30 @@ func (c *CognitoSync) UnsubscribeFromDatasetRequest(input *UnsubscribeFromDatase return } +// UnsubscribeFromDataset API operation for Amazon Cognito Sync. +// // Unsubscribes from receiving notifications when a dataset is modified by another // device. // // This API can only be called with temporary credentials provided by Cognito // Identity. You cannot call this API with developer credentials. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Cognito Sync's +// API operation, UnsubscribeFromDataset for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// NotAuthorizedException +// InvalidParameterException +// ResourceNotFoundException +// InternalErrorException +// InvalidConfigurationException +// TooManyRequestsException func (c *CognitoSync) UnsubscribeFromDataset(input *UnsubscribeFromDatasetInput) (*UnsubscribeFromDatasetOutput, error) { req, out := c.UnsubscribeFromDatasetRequest(input) err := req.Send() @@ -897,6 +1187,8 @@ func (c *CognitoSync) UpdateRecordsRequest(input *UpdateRecordsInput) (req *requ return } +// UpdateRecords API operation for Amazon Cognito Sync. +// // Posts updates to records and adds and deletes records for a dataset and user. // // The sync count in the record patch is your last known sync count for that @@ -913,6 +1205,26 @@ func (c *CognitoSync) UpdateRecordsRequest(input *UpdateRecordsInput) (req *requ // // This API can be called with temporary user credentials provided by Cognito // Identity or with developer credentials. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Cognito Sync's +// API operation, UpdateRecords for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidParameterException +// LimitExceededException +// NotAuthorizedException +// ResourceNotFoundException +// ResourceConflictException +// InvalidLambdaFunctionOutputException +// LambdaThrottledException +// TooManyRequestsException +// InternalErrorException func (c *CognitoSync) UpdateRecords(input *UpdateRecordsInput) (*UpdateRecordsOutput, error) { req, out := c.UpdateRecordsRequest(input) err := req.Send() diff --git a/service/configservice/api.go b/service/configservice/api.go index 5034d6ecc55..e77de59a07b 100644 --- a/service/configservice/api.go +++ b/service/configservice/api.go @@ -56,6 +56,8 @@ func (c *ConfigService) DeleteConfigRuleRequest(input *DeleteConfigRuleInput) (r return } +// DeleteConfigRule API operation for AWS Config. +// // Deletes the specified AWS Config rule and all of its evaluation results. // // AWS Config sets the state of a rule to DELETING until the deletion is complete. @@ -63,6 +65,19 @@ func (c *ConfigService) DeleteConfigRuleRequest(input *DeleteConfigRuleInput) (r // or DeleteConfigRule request for the rule, you will receive a ResourceInUseException. // // You can check the state of a rule by using the DescribeConfigRules request. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Config's +// API operation, DeleteConfigRule for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// NoSuchConfigRuleException +// ResourceInUseException func (c *ConfigService) DeleteConfigRule(input *DeleteConfigRuleInput) (*DeleteConfigRuleOutput, error) { req, out := c.DeleteConfigRuleRequest(input) err := req.Send() @@ -112,6 +127,8 @@ func (c *ConfigService) DeleteConfigurationRecorderRequest(input *DeleteConfigur return } +// DeleteConfigurationRecorder API operation for AWS Config. +// // Deletes the configuration recorder. // // After the configuration recorder is deleted, AWS Config will not record @@ -122,6 +139,18 @@ func (c *ConfigService) DeleteConfigurationRecorderRequest(input *DeleteConfigur // by using the GetResourceConfigHistory action, but you will not be able to // access this information in the AWS Config console until you create a new // configuration recorder. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Config's +// API operation, DeleteConfigurationRecorder for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// NoSuchConfigurationRecorderException func (c *ConfigService) DeleteConfigurationRecorder(input *DeleteConfigurationRecorderInput) (*DeleteConfigurationRecorderOutput, error) { req, out := c.DeleteConfigurationRecorderRequest(input) err := req.Send() @@ -171,10 +200,25 @@ func (c *ConfigService) DeleteDeliveryChannelRequest(input *DeleteDeliveryChanne return } +// DeleteDeliveryChannel API operation for AWS Config. +// // Deletes the delivery channel. // // Before you can delete the delivery channel, you must stop the configuration // recorder by using the StopConfigurationRecorder action. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Config's +// API operation, DeleteDeliveryChannel for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// NoSuchDeliveryChannelException +// LastDeliveryChannelDeleteFailedException func (c *ConfigService) DeleteDeliveryChannel(input *DeleteDeliveryChannelInput) (*DeleteDeliveryChannelOutput, error) { req, out := c.DeleteDeliveryChannelRequest(input) err := req.Send() @@ -222,10 +266,25 @@ func (c *ConfigService) DeleteEvaluationResultsRequest(input *DeleteEvaluationRe return } +// DeleteEvaluationResults API operation for AWS Config. +// // Deletes the evaluation results for the specified Config rule. You can specify // one Config rule per request. After you delete the evaluation results, you // can call the StartConfigRulesEvaluation API to start evaluating your AWS // resources against the rule. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Config's +// API operation, DeleteEvaluationResults for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// NoSuchConfigRuleException +// ResourceInUseException func (c *ConfigService) DeleteEvaluationResults(input *DeleteEvaluationResultsInput) (*DeleteEvaluationResultsOutput, error) { req, out := c.DeleteEvaluationResultsRequest(input) err := req.Send() @@ -273,6 +332,8 @@ func (c *ConfigService) DeliverConfigSnapshotRequest(input *DeliverConfigSnapsho return } +// DeliverConfigSnapshot API operation for AWS Config. +// // Schedules delivery of a configuration snapshot to the Amazon S3 bucket in // the specified delivery channel. After the delivery has started, AWS Config // sends following notifications using an Amazon SNS topic that you have specified. @@ -280,6 +341,20 @@ func (c *ConfigService) DeliverConfigSnapshotRequest(input *DeliverConfigSnapsho // Notification of starting the delivery. Notification of delivery completed, // if the delivery was successfully completed. Notification of delivery failure, // if the delivery failed to complete. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Config's +// API operation, DeliverConfigSnapshot for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// NoSuchDeliveryChannelException +// NoAvailableConfigurationRecorderException +// NoRunningConfigurationRecorderException func (c *ConfigService) DeliverConfigSnapshot(input *DeliverConfigSnapshotInput) (*DeliverConfigSnapshotOutput, error) { req, out := c.DeliverConfigSnapshotRequest(input) err := req.Send() @@ -327,6 +402,8 @@ func (c *ConfigService) DescribeComplianceByConfigRuleRequest(input *DescribeCom return } +// DescribeComplianceByConfigRule API operation for AWS Config. +// // Indicates whether the specified AWS Config rules are compliant. If a rule // is noncompliant, this action returns the number of AWS resources that do // not comply with the rule. @@ -346,6 +423,19 @@ func (c *ConfigService) DescribeComplianceByConfigRuleRequest(input *DescribeCom // the config:PutEvaluations permission. The rule's AWS Lambda function has // returned NOT_APPLICABLE for all evaluation results. This can occur if the // resources were deleted or removed from the rule's scope. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Config's +// API operation, DescribeComplianceByConfigRule for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidParameterValueException +// NoSuchConfigRuleException func (c *ConfigService) DescribeComplianceByConfigRule(input *DescribeComplianceByConfigRuleInput) (*DescribeComplianceByConfigRuleOutput, error) { req, out := c.DescribeComplianceByConfigRuleRequest(input) err := req.Send() @@ -393,6 +483,8 @@ func (c *ConfigService) DescribeComplianceByResourceRequest(input *DescribeCompl return } +// DescribeComplianceByResource API operation for AWS Config. +// // Indicates whether the specified AWS resources are compliant. If a resource // is noncompliant, this action returns the number of AWS Config rules that // the resource does not comply with. @@ -414,6 +506,19 @@ func (c *ConfigService) DescribeComplianceByResourceRequest(input *DescribeCompl // the config:PutEvaluations permission. The rule's AWS Lambda function has // returned NOT_APPLICABLE for all evaluation results. This can occur if the // resources were deleted or removed from the rule's scope. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Config's +// API operation, DescribeComplianceByResource for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidParameterValueException +// InvalidNextTokenException func (c *ConfigService) DescribeComplianceByResource(input *DescribeComplianceByResourceInput) (*DescribeComplianceByResourceOutput, error) { req, out := c.DescribeComplianceByResourceRequest(input) err := req.Send() @@ -461,10 +566,24 @@ func (c *ConfigService) DescribeConfigRuleEvaluationStatusRequest(input *Describ return } +// DescribeConfigRuleEvaluationStatus API operation for AWS Config. +// // Returns status information for each of your AWS managed Config rules. The // status includes information such as the last time AWS Config invoked the // rule, the last time AWS Config failed to invoke the rule, and the related // error for the last failure. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Config's +// API operation, DescribeConfigRuleEvaluationStatus for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// NoSuchConfigRuleException func (c *ConfigService) DescribeConfigRuleEvaluationStatus(input *DescribeConfigRuleEvaluationStatusInput) (*DescribeConfigRuleEvaluationStatusOutput, error) { req, out := c.DescribeConfigRuleEvaluationStatusRequest(input) err := req.Send() @@ -512,7 +631,21 @@ func (c *ConfigService) DescribeConfigRulesRequest(input *DescribeConfigRulesInp return } +// DescribeConfigRules API operation for AWS Config. +// // Returns details about your AWS Config rules. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Config's +// API operation, DescribeConfigRules for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// NoSuchConfigRuleException func (c *ConfigService) DescribeConfigRules(input *DescribeConfigRulesInput) (*DescribeConfigRulesOutput, error) { req, out := c.DescribeConfigRulesRequest(input) err := req.Send() @@ -560,11 +693,25 @@ func (c *ConfigService) DescribeConfigurationRecorderStatusRequest(input *Descri return } +// DescribeConfigurationRecorderStatus API operation for AWS Config. +// // Returns the current status of the specified configuration recorder. If a // configuration recorder is not specified, this action returns the status of // all configuration recorder associated with the account. // // Currently, you can specify only one configuration recorder per account. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Config's +// API operation, DescribeConfigurationRecorderStatus for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// NoSuchConfigurationRecorderException func (c *ConfigService) DescribeConfigurationRecorderStatus(input *DescribeConfigurationRecorderStatusInput) (*DescribeConfigurationRecorderStatusOutput, error) { req, out := c.DescribeConfigurationRecorderStatusRequest(input) err := req.Send() @@ -612,11 +759,25 @@ func (c *ConfigService) DescribeConfigurationRecordersRequest(input *DescribeCon return } +// DescribeConfigurationRecorders API operation for AWS Config. +// // Returns the name of one or more specified configuration recorders. If the // recorder name is not specified, this action returns the names of all the // configuration recorders associated with the account. // // Currently, you can specify only one configuration recorder per account. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Config's +// API operation, DescribeConfigurationRecorders for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// NoSuchConfigurationRecorderException func (c *ConfigService) DescribeConfigurationRecorders(input *DescribeConfigurationRecordersInput) (*DescribeConfigurationRecordersOutput, error) { req, out := c.DescribeConfigurationRecordersRequest(input) err := req.Send() @@ -664,11 +825,25 @@ func (c *ConfigService) DescribeDeliveryChannelStatusRequest(input *DescribeDeli return } +// DescribeDeliveryChannelStatus API operation for AWS Config. +// // Returns the current status of the specified delivery channel. If a delivery // channel is not specified, this action returns the current status of all delivery // channels associated with the account. // // Currently, you can specify only one delivery channel per account. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Config's +// API operation, DescribeDeliveryChannelStatus for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// NoSuchDeliveryChannelException func (c *ConfigService) DescribeDeliveryChannelStatus(input *DescribeDeliveryChannelStatusInput) (*DescribeDeliveryChannelStatusOutput, error) { req, out := c.DescribeDeliveryChannelStatusRequest(input) err := req.Send() @@ -716,11 +891,25 @@ func (c *ConfigService) DescribeDeliveryChannelsRequest(input *DescribeDeliveryC return } +// DescribeDeliveryChannels API operation for AWS Config. +// // Returns details about the specified delivery channel. If a delivery channel // is not specified, this action returns the details of all delivery channels // associated with the account. // // Currently, you can specify only one delivery channel per account. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Config's +// API operation, DescribeDeliveryChannels for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// NoSuchDeliveryChannelException func (c *ConfigService) DescribeDeliveryChannels(input *DescribeDeliveryChannelsInput) (*DescribeDeliveryChannelsOutput, error) { req, out := c.DescribeDeliveryChannelsRequest(input) err := req.Send() @@ -768,9 +957,25 @@ func (c *ConfigService) GetComplianceDetailsByConfigRuleRequest(input *GetCompli return } +// GetComplianceDetailsByConfigRule API operation for AWS Config. +// // Returns the evaluation results for the specified AWS Config rule. The results // indicate which AWS resources were evaluated by the rule, when each resource // was last evaluated, and whether each resource complies with the rule. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Config's +// API operation, GetComplianceDetailsByConfigRule for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidParameterValueException +// InvalidNextTokenException +// NoSuchConfigRuleException func (c *ConfigService) GetComplianceDetailsByConfigRule(input *GetComplianceDetailsByConfigRuleInput) (*GetComplianceDetailsByConfigRuleOutput, error) { req, out := c.GetComplianceDetailsByConfigRuleRequest(input) err := req.Send() @@ -818,9 +1023,23 @@ func (c *ConfigService) GetComplianceDetailsByResourceRequest(input *GetComplian return } +// GetComplianceDetailsByResource API operation for AWS Config. +// // Returns the evaluation results for the specified AWS resource. The results // indicate which AWS Config rules were used to evaluate the resource, when // each rule was last used, and whether the resource complies with each rule. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Config's +// API operation, GetComplianceDetailsByResource for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidParameterValueException func (c *ConfigService) GetComplianceDetailsByResource(input *GetComplianceDetailsByResourceInput) (*GetComplianceDetailsByResourceOutput, error) { req, out := c.GetComplianceDetailsByResourceRequest(input) err := req.Send() @@ -868,8 +1087,18 @@ func (c *ConfigService) GetComplianceSummaryByConfigRuleRequest(input *GetCompli return } +// GetComplianceSummaryByConfigRule API operation for AWS Config. +// // Returns the number of AWS Config rules that are compliant and noncompliant, // up to a maximum of 25 for each. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Config's +// API operation, GetComplianceSummaryByConfigRule for more information, and other errors +// that the API operation could return. func (c *ConfigService) GetComplianceSummaryByConfigRule(input *GetComplianceSummaryByConfigRuleInput) (*GetComplianceSummaryByConfigRuleOutput, error) { req, out := c.GetComplianceSummaryByConfigRuleRequest(input) err := req.Send() @@ -917,9 +1146,23 @@ func (c *ConfigService) GetComplianceSummaryByResourceTypeRequest(input *GetComp return } +// GetComplianceSummaryByResourceType API operation for AWS Config. +// // Returns the number of resources that are compliant and the number that are // noncompliant. You can specify one or more resource types to get these numbers // for each resource type. The maximum number returned is 100. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Config's +// API operation, GetComplianceSummaryByResourceType for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidParameterValueException func (c *ConfigService) GetComplianceSummaryByResourceType(input *GetComplianceSummaryByResourceTypeInput) (*GetComplianceSummaryByResourceTypeOutput, error) { req, out := c.GetComplianceSummaryByResourceTypeRequest(input) err := req.Send() @@ -973,6 +1216,8 @@ func (c *ConfigService) GetResourceConfigHistoryRequest(input *GetResourceConfig return } +// GetResourceConfigHistory API operation for AWS Config. +// // Returns a list of configuration items for the specified resource. The list // contains details about each state of the resource during the specified time // interval. @@ -986,6 +1231,23 @@ func (c *ConfigService) GetResourceConfigHistoryRequest(input *GetResourceConfig // Each call to the API is limited to span a duration of seven days. It is // likely that the number of records returned is smaller than the specified // limit. In such cases, you can make another call, using the nextToken. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Config's +// API operation, GetResourceConfigHistory for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ValidationException +// InvalidTimeRangeException +// InvalidLimitException +// InvalidNextTokenException +// NoAvailableConfigurationRecorderException +// ResourceNotDiscoveredException func (c *ConfigService) GetResourceConfigHistory(input *GetResourceConfigHistoryInput) (*GetResourceConfigHistoryOutput, error) { req, out := c.GetResourceConfigHistoryRequest(input) err := req.Send() @@ -1058,6 +1320,8 @@ func (c *ConfigService) ListDiscoveredResourcesRequest(input *ListDiscoveredReso return } +// ListDiscoveredResources API operation for AWS Config. +// // Accepts a resource type and returns a list of resource identifiers for the // resources of that type. A resource identifier includes the resource type, // ID, and (if available) the custom resource name. The results consist of resources @@ -1072,6 +1336,21 @@ func (c *ConfigService) ListDiscoveredResourcesRequest(input *ListDiscoveredReso // identifiers on each page. You can customize this number with the limit parameter. // The response includes a nextToken string, and to get the next page of results, // run the request again and enter this string for the nextToken parameter. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Config's +// API operation, ListDiscoveredResources for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ValidationException +// InvalidLimitException +// InvalidNextTokenException +// NoAvailableConfigurationRecorderException func (c *ConfigService) ListDiscoveredResources(input *ListDiscoveredResourcesInput) (*ListDiscoveredResourcesOutput, error) { req, out := c.ListDiscoveredResourcesRequest(input) err := req.Send() @@ -1121,6 +1400,8 @@ func (c *ConfigService) PutConfigRuleRequest(input *PutConfigRuleInput) (req *re return } +// PutConfigRule API operation for AWS Config. +// // Adds or updates an AWS Config rule for evaluating whether your AWS resources // comply with your desired configurations. // @@ -1152,6 +1433,22 @@ func (c *ConfigService) PutConfigRuleRequest(input *PutConfigRuleInput) (req *re // For more information about developing and using AWS Config rules, see Evaluating // AWS Resource Configurations with AWS Config (http://docs.aws.amazon.com/config/latest/developerguide/evaluate-config.html) // in the AWS Config Developer Guide. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Config's +// API operation, PutConfigRule for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidParameterValueException +// MaxNumberOfConfigRulesExceededException +// ResourceInUseException +// InsufficientPermissionsException +// NoAvailableConfigurationRecorderException func (c *ConfigService) PutConfigRule(input *PutConfigRuleInput) (*PutConfigRuleOutput, error) { req, out := c.PutConfigRuleRequest(input) err := req.Send() @@ -1201,6 +1498,8 @@ func (c *ConfigService) PutConfigurationRecorderRequest(input *PutConfigurationR return } +// PutConfigurationRecorder API operation for AWS Config. +// // Creates a new configuration recorder to record the selected resource configurations. // // You can use this action to change the role roleARN and/or the recordingGroup @@ -1211,6 +1510,21 @@ func (c *ConfigService) PutConfigurationRecorderRequest(input *PutConfigurationR // // If ConfigurationRecorder does not have the recordingGroup parameter specified, // the default is to record all supported resource types. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Config's +// API operation, PutConfigurationRecorder for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// MaxNumberOfConfigurationRecordersExceededException +// InvalidConfigurationRecorderNameException +// InvalidRoleException +// InvalidRecordingGroupException func (c *ConfigService) PutConfigurationRecorder(input *PutConfigurationRecorderInput) (*PutConfigurationRecorderOutput, error) { req, out := c.PutConfigurationRecorderRequest(input) err := req.Send() @@ -1260,6 +1574,8 @@ func (c *ConfigService) PutDeliveryChannelRequest(input *PutDeliveryChannelInput return } +// PutDeliveryChannel API operation for AWS Config. +// // Creates a delivery channel object to deliver configuration information to // an Amazon S3 bucket and Amazon SNS topic. // @@ -1274,6 +1590,24 @@ func (c *ConfigService) PutDeliveryChannelRequest(input *PutDeliveryChannelInput // for the parameter that is not changed. // // You can have only one delivery channel per AWS account. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Config's +// API operation, PutDeliveryChannel for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// MaxNumberOfDeliveryChannelsExceededException +// NoAvailableConfigurationRecorderException +// InvalidDeliveryChannelNameException +// NoSuchBucketException +// InvalidS3KeyPrefixException +// InvalidSNSTopicARNException +// InsufficientDeliveryPolicyException func (c *ConfigService) PutDeliveryChannel(input *PutDeliveryChannelInput) (*PutDeliveryChannelOutput, error) { req, out := c.PutDeliveryChannelRequest(input) err := req.Send() @@ -1321,9 +1655,25 @@ func (c *ConfigService) PutEvaluationsRequest(input *PutEvaluationsInput) (req * return } +// PutEvaluations API operation for AWS Config. +// // Used by an AWS Lambda function to deliver evaluation results to AWS Config. // This action is required in every AWS Lambda function that is invoked by an // AWS Config rule. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Config's +// API operation, PutEvaluations for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidParameterValueException +// InvalidResultTokenException +// NoSuchConfigRuleException func (c *ConfigService) PutEvaluations(input *PutEvaluationsInput) (*PutEvaluationsOutput, error) { req, out := c.PutEvaluationsRequest(input) err := req.Send() @@ -1371,6 +1721,8 @@ func (c *ConfigService) StartConfigRulesEvaluationRequest(input *StartConfigRule return } +// StartConfigRulesEvaluation API operation for AWS Config. +// // Evaluates your resources against the specified Config rules. You can specify // up to 25 Config rules per request. // @@ -1396,6 +1748,21 @@ func (c *ConfigService) StartConfigRulesEvaluationRequest(input *StartConfigRule // AWS Config invokes your Lambda function and evaluates your IAM resources. // // Your custom rule will still run periodic evaluations every 24 hours. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Config's +// API operation, StartConfigRulesEvaluation for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// NoSuchConfigRuleException +// LimitExceededException +// ResourceInUseException +// InvalidParameterValueException func (c *ConfigService) StartConfigRulesEvaluation(input *StartConfigRulesEvaluationInput) (*StartConfigRulesEvaluationOutput, error) { req, out := c.StartConfigRulesEvaluationRequest(input) err := req.Send() @@ -1445,11 +1812,26 @@ func (c *ConfigService) StartConfigurationRecorderRequest(input *StartConfigurat return } +// StartConfigurationRecorder API operation for AWS Config. +// // Starts recording configurations of the AWS resources you have selected to // record in your AWS account. // // You must have created at least one delivery channel to successfully start // the configuration recorder. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Config's +// API operation, StartConfigurationRecorder for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// NoSuchConfigurationRecorderException +// NoAvailableDeliveryChannelException func (c *ConfigService) StartConfigurationRecorder(input *StartConfigurationRecorderInput) (*StartConfigurationRecorderOutput, error) { req, out := c.StartConfigurationRecorderRequest(input) err := req.Send() @@ -1499,8 +1881,22 @@ func (c *ConfigService) StopConfigurationRecorderRequest(input *StopConfiguratio return } +// StopConfigurationRecorder API operation for AWS Config. +// // Stops recording configurations of the AWS resources you have selected to // record in your AWS account. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Config's +// API operation, StopConfigurationRecorder for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// NoSuchConfigurationRecorderException func (c *ConfigService) StopConfigurationRecorder(input *StopConfigurationRecorderInput) (*StopConfigurationRecorderOutput, error) { req, out := c.StopConfigurationRecorderRequest(input) err := req.Send() diff --git a/service/databasemigrationservice/api.go b/service/databasemigrationservice/api.go index d4a1367d302..039a1607c53 100644 --- a/service/databasemigrationservice/api.go +++ b/service/databasemigrationservice/api.go @@ -52,10 +52,24 @@ func (c *DatabaseMigrationService) AddTagsToResourceRequest(input *AddTagsToReso return } +// AddTagsToResource API operation for AWS Database Migration Service. +// // Adds metadata tags to a DMS resource, including replication instance, endpoint, // security group, and migration task. These tags can also be used with cost // allocation reporting to track cost associated with DMS resources, or used // in a Condition statement in an IAM policy for DMS. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Database Migration Service's +// API operation, AddTagsToResource for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ResourceNotFoundFault func (c *DatabaseMigrationService) AddTagsToResource(input *AddTagsToResourceInput) (*AddTagsToResourceOutput, error) { req, out := c.AddTagsToResourceRequest(input) err := req.Send() @@ -103,7 +117,25 @@ func (c *DatabaseMigrationService) CreateEndpointRequest(input *CreateEndpointIn return } +// CreateEndpoint API operation for AWS Database Migration Service. +// // Creates an endpoint using the provided settings. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Database Migration Service's +// API operation, CreateEndpoint for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// KMSKeyNotAccessibleFault +// ResourceAlreadyExistsFault +// ResourceQuotaExceededFault +// InvalidResourceStateFault +// ResourceNotFoundFault func (c *DatabaseMigrationService) CreateEndpoint(input *CreateEndpointInput) (*CreateEndpointOutput, error) { req, out := c.CreateEndpointRequest(input) err := req.Send() @@ -151,7 +183,30 @@ func (c *DatabaseMigrationService) CreateReplicationInstanceRequest(input *Creat return } +// CreateReplicationInstance API operation for AWS Database Migration Service. +// // Creates the replication instance using the specified parameters. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Database Migration Service's +// API operation, CreateReplicationInstance for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// AccessDeniedFault +// ResourceAlreadyExistsFault +// InsufficientResourceCapacityFault +// ResourceQuotaExceededFault +// StorageQuotaExceededFault +// ResourceNotFoundFault +// ReplicationSubnetGroupDoesNotCoverEnoughAZs +// InvalidResourceStateFault +// InvalidSubnet +// KMSKeyNotAccessibleFault func (c *DatabaseMigrationService) CreateReplicationInstance(input *CreateReplicationInstanceInput) (*CreateReplicationInstanceOutput, error) { req, out := c.CreateReplicationInstanceRequest(input) err := req.Send() @@ -199,7 +254,26 @@ func (c *DatabaseMigrationService) CreateReplicationSubnetGroupRequest(input *Cr return } +// CreateReplicationSubnetGroup API operation for AWS Database Migration Service. +// // Creates a replication subnet group given a list of the subnet IDs in a VPC. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Database Migration Service's +// API operation, CreateReplicationSubnetGroup for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// AccessDeniedFault +// ResourceAlreadyExistsFault +// ResourceNotFoundFault +// ResourceQuotaExceededFault +// ReplicationSubnetGroupDoesNotCoverEnoughAZs +// InvalidSubnet func (c *DatabaseMigrationService) CreateReplicationSubnetGroup(input *CreateReplicationSubnetGroupInput) (*CreateReplicationSubnetGroupOutput, error) { req, out := c.CreateReplicationSubnetGroupRequest(input) err := req.Send() @@ -247,7 +321,25 @@ func (c *DatabaseMigrationService) CreateReplicationTaskRequest(input *CreateRep return } +// CreateReplicationTask API operation for AWS Database Migration Service. +// // Creates a replication task using the specified parameters. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Database Migration Service's +// API operation, CreateReplicationTask for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidResourceStateFault +// ResourceAlreadyExistsFault +// ResourceNotFoundFault +// KMSKeyNotAccessibleFault +// ResourceQuotaExceededFault func (c *DatabaseMigrationService) CreateReplicationTask(input *CreateReplicationTaskInput) (*CreateReplicationTaskOutput, error) { req, out := c.CreateReplicationTaskRequest(input) err := req.Send() @@ -295,7 +387,22 @@ func (c *DatabaseMigrationService) DeleteCertificateRequest(input *DeleteCertifi return } +// DeleteCertificate API operation for AWS Database Migration Service. +// // Deletes the specified certificate. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Database Migration Service's +// API operation, DeleteCertificate for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ResourceNotFoundFault +// InvalidResourceStateFault func (c *DatabaseMigrationService) DeleteCertificate(input *DeleteCertificateInput) (*DeleteCertificateOutput, error) { req, out := c.DeleteCertificateRequest(input) err := req.Send() @@ -343,10 +450,25 @@ func (c *DatabaseMigrationService) DeleteEndpointRequest(input *DeleteEndpointIn return } +// DeleteEndpoint API operation for AWS Database Migration Service. +// // Deletes the specified endpoint. // // All tasks associated with the endpoint must be deleted before you can delete // the endpoint. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Database Migration Service's +// API operation, DeleteEndpoint for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ResourceNotFoundFault +// InvalidResourceStateFault func (c *DatabaseMigrationService) DeleteEndpoint(input *DeleteEndpointInput) (*DeleteEndpointOutput, error) { req, out := c.DeleteEndpointRequest(input) err := req.Send() @@ -394,10 +516,25 @@ func (c *DatabaseMigrationService) DeleteReplicationInstanceRequest(input *Delet return } +// DeleteReplicationInstance API operation for AWS Database Migration Service. +// // Deletes the specified replication instance. // // You must delete any migration tasks that are associated with the replication // instance before you can delete it. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Database Migration Service's +// API operation, DeleteReplicationInstance for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidResourceStateFault +// ResourceNotFoundFault func (c *DatabaseMigrationService) DeleteReplicationInstance(input *DeleteReplicationInstanceInput) (*DeleteReplicationInstanceOutput, error) { req, out := c.DeleteReplicationInstanceRequest(input) err := req.Send() @@ -445,7 +582,22 @@ func (c *DatabaseMigrationService) DeleteReplicationSubnetGroupRequest(input *De return } +// DeleteReplicationSubnetGroup API operation for AWS Database Migration Service. +// // Deletes a subnet group. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Database Migration Service's +// API operation, DeleteReplicationSubnetGroup for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidResourceStateFault +// ResourceNotFoundFault func (c *DatabaseMigrationService) DeleteReplicationSubnetGroup(input *DeleteReplicationSubnetGroupInput) (*DeleteReplicationSubnetGroupOutput, error) { req, out := c.DeleteReplicationSubnetGroupRequest(input) err := req.Send() @@ -493,7 +645,22 @@ func (c *DatabaseMigrationService) DeleteReplicationTaskRequest(input *DeleteRep return } +// DeleteReplicationTask API operation for AWS Database Migration Service. +// // Deletes the specified replication task. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Database Migration Service's +// API operation, DeleteReplicationTask for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ResourceNotFoundFault +// InvalidResourceStateFault func (c *DatabaseMigrationService) DeleteReplicationTask(input *DeleteReplicationTaskInput) (*DeleteReplicationTaskOutput, error) { req, out := c.DeleteReplicationTaskRequest(input) err := req.Send() @@ -541,12 +708,22 @@ func (c *DatabaseMigrationService) DescribeAccountAttributesRequest(input *Descr return } +// DescribeAccountAttributes API operation for AWS Database Migration Service. +// // Lists all of the AWS DMS attributes for a customer account. The attributes // include AWS DMS quotas for the account, such as the number of replication // instances allowed. The description for a quota includes the quota name, current // usage toward that quota, and the quota's maximum value. // // This command does not take any parameters. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Database Migration Service's +// API operation, DescribeAccountAttributes for more information, and other errors +// that the API operation could return. func (c *DatabaseMigrationService) DescribeAccountAttributes(input *DescribeAccountAttributesInput) (*DescribeAccountAttributesOutput, error) { req, out := c.DescribeAccountAttributesRequest(input) err := req.Send() @@ -594,7 +771,21 @@ func (c *DatabaseMigrationService) DescribeCertificatesRequest(input *DescribeCe return } +// DescribeCertificates API operation for AWS Database Migration Service. +// // Provides a description of the certificate. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Database Migration Service's +// API operation, DescribeCertificates for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ResourceNotFoundFault func (c *DatabaseMigrationService) DescribeCertificates(input *DescribeCertificatesInput) (*DescribeCertificatesOutput, error) { req, out := c.DescribeCertificatesRequest(input) err := req.Send() @@ -642,8 +833,22 @@ func (c *DatabaseMigrationService) DescribeConnectionsRequest(input *DescribeCon return } +// DescribeConnections API operation for AWS Database Migration Service. +// // Describes the status of the connections that have been made between the replication // instance and an endpoint. Connections are created when you test an endpoint. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Database Migration Service's +// API operation, DescribeConnections for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ResourceNotFoundFault func (c *DatabaseMigrationService) DescribeConnections(input *DescribeConnectionsInput) (*DescribeConnectionsOutput, error) { req, out := c.DescribeConnectionsRequest(input) err := req.Send() @@ -691,7 +896,17 @@ func (c *DatabaseMigrationService) DescribeEndpointTypesRequest(input *DescribeE return } +// DescribeEndpointTypes API operation for AWS Database Migration Service. +// // Returns information about the type of endpoints available. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Database Migration Service's +// API operation, DescribeEndpointTypes for more information, and other errors +// that the API operation could return. func (c *DatabaseMigrationService) DescribeEndpointTypes(input *DescribeEndpointTypesInput) (*DescribeEndpointTypesOutput, error) { req, out := c.DescribeEndpointTypesRequest(input) err := req.Send() @@ -739,7 +954,21 @@ func (c *DatabaseMigrationService) DescribeEndpointsRequest(input *DescribeEndpo return } +// DescribeEndpoints API operation for AWS Database Migration Service. +// // Returns information about the endpoints for your account in the current region. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Database Migration Service's +// API operation, DescribeEndpoints for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ResourceNotFoundFault func (c *DatabaseMigrationService) DescribeEndpoints(input *DescribeEndpointsInput) (*DescribeEndpointsOutput, error) { req, out := c.DescribeEndpointsRequest(input) err := req.Send() @@ -787,8 +1016,18 @@ func (c *DatabaseMigrationService) DescribeOrderableReplicationInstancesRequest( return } +// DescribeOrderableReplicationInstances API operation for AWS Database Migration Service. +// // Returns information about the replication instance types that can be created // in the specified region. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Database Migration Service's +// API operation, DescribeOrderableReplicationInstances for more information, and other errors +// that the API operation could return. func (c *DatabaseMigrationService) DescribeOrderableReplicationInstances(input *DescribeOrderableReplicationInstancesInput) (*DescribeOrderableReplicationInstancesOutput, error) { req, out := c.DescribeOrderableReplicationInstancesRequest(input) err := req.Send() @@ -836,7 +1075,22 @@ func (c *DatabaseMigrationService) DescribeRefreshSchemasStatusRequest(input *De return } +// DescribeRefreshSchemasStatus API operation for AWS Database Migration Service. +// // Returns the status of the RefreshSchemas operation. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Database Migration Service's +// API operation, DescribeRefreshSchemasStatus for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidResourceStateFault +// ResourceNotFoundFault func (c *DatabaseMigrationService) DescribeRefreshSchemasStatus(input *DescribeRefreshSchemasStatusInput) (*DescribeRefreshSchemasStatusOutput, error) { req, out := c.DescribeRefreshSchemasStatusRequest(input) err := req.Send() @@ -884,8 +1138,22 @@ func (c *DatabaseMigrationService) DescribeReplicationInstancesRequest(input *De return } +// DescribeReplicationInstances API operation for AWS Database Migration Service. +// // Returns information about replication instances for your account in the current // region. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Database Migration Service's +// API operation, DescribeReplicationInstances for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ResourceNotFoundFault func (c *DatabaseMigrationService) DescribeReplicationInstances(input *DescribeReplicationInstancesInput) (*DescribeReplicationInstancesOutput, error) { req, out := c.DescribeReplicationInstancesRequest(input) err := req.Send() @@ -933,7 +1201,21 @@ func (c *DatabaseMigrationService) DescribeReplicationSubnetGroupsRequest(input return } +// DescribeReplicationSubnetGroups API operation for AWS Database Migration Service. +// // Returns information about the replication subnet groups. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Database Migration Service's +// API operation, DescribeReplicationSubnetGroups for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ResourceNotFoundFault func (c *DatabaseMigrationService) DescribeReplicationSubnetGroups(input *DescribeReplicationSubnetGroupsInput) (*DescribeReplicationSubnetGroupsOutput, error) { req, out := c.DescribeReplicationSubnetGroupsRequest(input) err := req.Send() @@ -981,8 +1263,22 @@ func (c *DatabaseMigrationService) DescribeReplicationTasksRequest(input *Descri return } +// DescribeReplicationTasks API operation for AWS Database Migration Service. +// // Returns information about replication tasks for your account in the current // region. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Database Migration Service's +// API operation, DescribeReplicationTasks for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ResourceNotFoundFault func (c *DatabaseMigrationService) DescribeReplicationTasks(input *DescribeReplicationTasksInput) (*DescribeReplicationTasksOutput, error) { req, out := c.DescribeReplicationTasksRequest(input) err := req.Send() @@ -1030,7 +1326,22 @@ func (c *DatabaseMigrationService) DescribeSchemasRequest(input *DescribeSchemas return } +// DescribeSchemas API operation for AWS Database Migration Service. +// // Returns information about the schema for the specified endpoint. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Database Migration Service's +// API operation, DescribeSchemas for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidResourceStateFault +// ResourceNotFoundFault func (c *DatabaseMigrationService) DescribeSchemas(input *DescribeSchemasInput) (*DescribeSchemasOutput, error) { req, out := c.DescribeSchemasRequest(input) err := req.Send() @@ -1078,8 +1389,23 @@ func (c *DatabaseMigrationService) DescribeTableStatisticsRequest(input *Describ return } +// DescribeTableStatistics API operation for AWS Database Migration Service. +// // Returns table statistics on the database migration task, including table // name, rows inserted, rows updated, and rows deleted. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Database Migration Service's +// API operation, DescribeTableStatistics for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ResourceNotFoundFault +// InvalidResourceStateFault func (c *DatabaseMigrationService) DescribeTableStatistics(input *DescribeTableStatisticsInput) (*DescribeTableStatisticsOutput, error) { req, out := c.DescribeTableStatisticsRequest(input) err := req.Send() @@ -1127,7 +1453,22 @@ func (c *DatabaseMigrationService) ImportCertificateRequest(input *ImportCertifi return } +// ImportCertificate API operation for AWS Database Migration Service. +// // Uploads the specified certificate. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Database Migration Service's +// API operation, ImportCertificate for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ResourceAlreadyExistsFault +// InvalidCertificateFault func (c *DatabaseMigrationService) ImportCertificate(input *ImportCertificateInput) (*ImportCertificateOutput, error) { req, out := c.ImportCertificateRequest(input) err := req.Send() @@ -1175,7 +1516,21 @@ func (c *DatabaseMigrationService) ListTagsForResourceRequest(input *ListTagsFor return } +// ListTagsForResource API operation for AWS Database Migration Service. +// // Lists all tags for an AWS DMS resource. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Database Migration Service's +// API operation, ListTagsForResource for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ResourceNotFoundFault func (c *DatabaseMigrationService) ListTagsForResource(input *ListTagsForResourceInput) (*ListTagsForResourceOutput, error) { req, out := c.ListTagsForResourceRequest(input) err := req.Send() @@ -1223,7 +1578,24 @@ func (c *DatabaseMigrationService) ModifyEndpointRequest(input *ModifyEndpointIn return } +// ModifyEndpoint API operation for AWS Database Migration Service. +// // Modifies the specified endpoint. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Database Migration Service's +// API operation, ModifyEndpoint for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidResourceStateFault +// ResourceNotFoundFault +// ResourceAlreadyExistsFault +// KMSKeyNotAccessibleFault func (c *DatabaseMigrationService) ModifyEndpoint(input *ModifyEndpointInput) (*ModifyEndpointOutput, error) { req, out := c.ModifyEndpointRequest(input) err := req.Send() @@ -1271,11 +1643,30 @@ func (c *DatabaseMigrationService) ModifyReplicationInstanceRequest(input *Modif return } +// ModifyReplicationInstance API operation for AWS Database Migration Service. +// // Modifies the replication instance to apply new settings. You can change one // or more parameters by specifying these parameters and the new values in the // request. // // Some settings are applied during the maintenance window. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Database Migration Service's +// API operation, ModifyReplicationInstance for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidResourceStateFault +// ResourceAlreadyExistsFault +// ResourceNotFoundFault +// InsufficientResourceCapacityFault +// StorageQuotaExceededFault +// UpgradeDependencyFailureFault func (c *DatabaseMigrationService) ModifyReplicationInstance(input *ModifyReplicationInstanceInput) (*ModifyReplicationInstanceOutput, error) { req, out := c.ModifyReplicationInstanceRequest(input) err := req.Send() @@ -1323,7 +1714,26 @@ func (c *DatabaseMigrationService) ModifyReplicationSubnetGroupRequest(input *Mo return } +// ModifyReplicationSubnetGroup API operation for AWS Database Migration Service. +// // Modifies the settings for the specified replication subnet group. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Database Migration Service's +// API operation, ModifyReplicationSubnetGroup for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// AccessDeniedFault +// ResourceNotFoundFault +// ResourceQuotaExceededFault +// SubnetAlreadyInUse +// ReplicationSubnetGroupDoesNotCoverEnoughAZs +// InvalidSubnet func (c *DatabaseMigrationService) ModifyReplicationSubnetGroup(input *ModifyReplicationSubnetGroupInput) (*ModifyReplicationSubnetGroupOutput, error) { req, out := c.ModifyReplicationSubnetGroupRequest(input) err := req.Send() @@ -1371,9 +1781,26 @@ func (c *DatabaseMigrationService) RefreshSchemasRequest(input *RefreshSchemasIn return } +// RefreshSchemas API operation for AWS Database Migration Service. +// // Populates the schema for the specified endpoint. This is an asynchronous // operation and can take several minutes. You can check the status of this // operation by calling the DescribeRefreshSchemasStatus operation. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Database Migration Service's +// API operation, RefreshSchemas for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidResourceStateFault +// ResourceNotFoundFault +// KMSKeyNotAccessibleFault +// ResourceQuotaExceededFault func (c *DatabaseMigrationService) RefreshSchemas(input *RefreshSchemasInput) (*RefreshSchemasOutput, error) { req, out := c.RefreshSchemasRequest(input) err := req.Send() @@ -1421,7 +1848,21 @@ func (c *DatabaseMigrationService) RemoveTagsFromResourceRequest(input *RemoveTa return } +// RemoveTagsFromResource API operation for AWS Database Migration Service. +// // Removes metadata tags from a DMS resource. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Database Migration Service's +// API operation, RemoveTagsFromResource for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ResourceNotFoundFault func (c *DatabaseMigrationService) RemoveTagsFromResource(input *RemoveTagsFromResourceInput) (*RemoveTagsFromResourceOutput, error) { req, out := c.RemoveTagsFromResourceRequest(input) err := req.Send() @@ -1469,7 +1910,22 @@ func (c *DatabaseMigrationService) StartReplicationTaskRequest(input *StartRepli return } +// StartReplicationTask API operation for AWS Database Migration Service. +// // Starts the replication task. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Database Migration Service's +// API operation, StartReplicationTask for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ResourceNotFoundFault +// InvalidResourceStateFault func (c *DatabaseMigrationService) StartReplicationTask(input *StartReplicationTaskInput) (*StartReplicationTaskOutput, error) { req, out := c.StartReplicationTaskRequest(input) err := req.Send() @@ -1517,7 +1973,22 @@ func (c *DatabaseMigrationService) StopReplicationTaskRequest(input *StopReplica return } +// StopReplicationTask API operation for AWS Database Migration Service. +// // Stops the replication task. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Database Migration Service's +// API operation, StopReplicationTask for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ResourceNotFoundFault +// InvalidResourceStateFault func (c *DatabaseMigrationService) StopReplicationTask(input *StopReplicationTaskInput) (*StopReplicationTaskOutput, error) { req, out := c.StopReplicationTaskRequest(input) err := req.Send() @@ -1565,7 +2036,24 @@ func (c *DatabaseMigrationService) TestConnectionRequest(input *TestConnectionIn return } +// TestConnection API operation for AWS Database Migration Service. +// // Tests the connection between the replication instance and the endpoint. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Database Migration Service's +// API operation, TestConnection for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ResourceNotFoundFault +// InvalidResourceStateFault +// KMSKeyNotAccessibleFault +// ResourceQuotaExceededFault func (c *DatabaseMigrationService) TestConnection(input *TestConnectionInput) (*TestConnectionOutput, error) { req, out := c.TestConnectionRequest(input) err := req.Send() diff --git a/service/datapipeline/api.go b/service/datapipeline/api.go index 93e8b1499b2..927141356f9 100644 --- a/service/datapipeline/api.go +++ b/service/datapipeline/api.go @@ -54,6 +54,8 @@ func (c *DataPipeline) ActivatePipelineRequest(input *ActivatePipelineInput) (re return } +// ActivatePipeline API operation for AWS Data Pipeline. +// // Validates the specified pipeline and starts processing pipeline tasks. If // the pipeline does not pass validation, activation fails. // @@ -62,6 +64,21 @@ func (c *DataPipeline) ActivatePipelineRequest(input *ActivatePipelineInput) (re // // To activate a finished pipeline, modify the end date for the pipeline and // then activate it. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Data Pipeline's +// API operation, ActivatePipeline for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// PipelineNotFoundException +// PipelineDeletedException +// InternalServiceError +// InvalidRequestException func (c *DataPipeline) ActivatePipeline(input *ActivatePipelineInput) (*ActivatePipelineOutput, error) { req, out := c.ActivatePipelineRequest(input) err := req.Send() @@ -109,7 +126,24 @@ func (c *DataPipeline) AddTagsRequest(input *AddTagsInput) (req *request.Request return } +// AddTags API operation for AWS Data Pipeline. +// // Adds or modifies tags for the specified pipeline. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Data Pipeline's +// API operation, AddTags for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InternalServiceError +// InvalidRequestException +// PipelineNotFoundException +// PipelineDeletedException func (c *DataPipeline) AddTags(input *AddTagsInput) (*AddTagsOutput, error) { req, out := c.AddTagsRequest(input) err := req.Send() @@ -157,8 +191,23 @@ func (c *DataPipeline) CreatePipelineRequest(input *CreatePipelineInput) (req *r return } +// CreatePipeline API operation for AWS Data Pipeline. +// // Creates a new, empty pipeline. Use PutPipelineDefinition to populate the // pipeline. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Data Pipeline's +// API operation, CreatePipeline for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InternalServiceError +// InvalidRequestException func (c *DataPipeline) CreatePipeline(input *CreatePipelineInput) (*CreatePipelineOutput, error) { req, out := c.CreatePipelineRequest(input) err := req.Send() @@ -206,12 +255,29 @@ func (c *DataPipeline) DeactivatePipelineRequest(input *DeactivatePipelineInput) return } +// DeactivatePipeline API operation for AWS Data Pipeline. +// // Deactivates the specified running pipeline. The pipeline is set to the DEACTIVATING // state until the deactivation process completes. // // To resume a deactivated pipeline, use ActivatePipeline. By default, the // pipeline resumes from the last completed execution. Optionally, you can specify // the date and time to resume the pipeline. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Data Pipeline's +// API operation, DeactivatePipeline for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// PipelineNotFoundException +// PipelineDeletedException +// InternalServiceError +// InvalidRequestException func (c *DataPipeline) DeactivatePipeline(input *DeactivatePipelineInput) (*DeactivatePipelineOutput, error) { req, out := c.DeactivatePipelineRequest(input) err := req.Send() @@ -261,6 +327,8 @@ func (c *DataPipeline) DeletePipelineRequest(input *DeletePipelineInput) (req *r return } +// DeletePipeline API operation for AWS Data Pipeline. +// // Deletes a pipeline, its pipeline definition, and its run history. AWS Data // Pipeline attempts to cancel instances associated with the pipeline that are // currently being processed by task runners. @@ -269,6 +337,20 @@ func (c *DataPipeline) DeletePipelineRequest(input *DeletePipelineInput) (req *r // pipeline. To temporarily pause a pipeline instead of deleting it, call SetStatus // with the status set to PAUSE on individual components. Components that are // paused by SetStatus can be resumed. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Data Pipeline's +// API operation, DeletePipeline for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// PipelineNotFoundException +// InternalServiceError +// InvalidRequestException func (c *DataPipeline) DeletePipeline(input *DeletePipelineInput) (*DeletePipelineOutput, error) { req, out := c.DeletePipelineRequest(input) err := req.Send() @@ -322,9 +404,26 @@ func (c *DataPipeline) DescribeObjectsRequest(input *DescribeObjectsInput) (req return } +// DescribeObjects API operation for AWS Data Pipeline. +// // Gets the object definitions for a set of objects associated with the pipeline. // Object definitions are composed of a set of fields that define the properties // of the object. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Data Pipeline's +// API operation, DescribeObjects for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InternalServiceError +// InvalidRequestException +// PipelineNotFoundException +// PipelineDeletedException func (c *DataPipeline) DescribeObjects(input *DescribeObjectsInput) (*DescribeObjectsOutput, error) { req, out := c.DescribeObjectsRequest(input) err := req.Send() @@ -397,6 +496,8 @@ func (c *DataPipeline) DescribePipelinesRequest(input *DescribePipelinesInput) ( return } +// DescribePipelines API operation for AWS Data Pipeline. +// // Retrieves metadata about one or more pipelines. The information retrieved // includes the name of the pipeline, the pipeline identifier, its current state, // and the user account that owns the pipeline. Using account credentials, you @@ -406,6 +507,21 @@ func (c *DataPipeline) DescribePipelinesRequest(input *DescribePipelinesInput) ( // // To retrieve the full pipeline definition instead of metadata about the pipeline, // call GetPipelineDefinition. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Data Pipeline's +// API operation, DescribePipelines for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// PipelineNotFoundException +// PipelineDeletedException +// InternalServiceError +// InvalidRequestException func (c *DataPipeline) DescribePipelines(input *DescribePipelinesInput) (*DescribePipelinesOutput, error) { req, out := c.DescribePipelinesRequest(input) err := req.Send() @@ -453,9 +569,27 @@ func (c *DataPipeline) EvaluateExpressionRequest(input *EvaluateExpressionInput) return } +// EvaluateExpression API operation for AWS Data Pipeline. +// // Task runners call EvaluateExpression to evaluate a string in the context // of the specified object. For example, a task runner can evaluate SQL queries // stored in Amazon S3. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Data Pipeline's +// API operation, EvaluateExpression for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InternalServiceError +// TaskNotFoundException +// InvalidRequestException +// PipelineNotFoundException +// PipelineDeletedException func (c *DataPipeline) EvaluateExpression(input *EvaluateExpressionInput) (*EvaluateExpressionOutput, error) { req, out := c.EvaluateExpressionRequest(input) err := req.Send() @@ -503,8 +637,25 @@ func (c *DataPipeline) GetPipelineDefinitionRequest(input *GetPipelineDefinition return } +// GetPipelineDefinition API operation for AWS Data Pipeline. +// // Gets the definition of the specified pipeline. You can call GetPipelineDefinition // to retrieve the pipeline definition that you provided using PutPipelineDefinition. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Data Pipeline's +// API operation, GetPipelineDefinition for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InternalServiceError +// InvalidRequestException +// PipelineNotFoundException +// PipelineDeletedException func (c *DataPipeline) GetPipelineDefinition(input *GetPipelineDefinitionInput) (*GetPipelineDefinitionOutput, error) { req, out := c.GetPipelineDefinitionRequest(input) err := req.Send() @@ -558,8 +709,23 @@ func (c *DataPipeline) ListPipelinesRequest(input *ListPipelinesInput) (req *req return } +// ListPipelines API operation for AWS Data Pipeline. +// // Lists the pipeline identifiers for all active pipelines that you have permission // to access. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Data Pipeline's +// API operation, ListPipelines for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InternalServiceError +// InvalidRequestException func (c *DataPipeline) ListPipelines(input *ListPipelinesInput) (*ListPipelinesOutput, error) { req, out := c.ListPipelinesRequest(input) err := req.Send() @@ -632,6 +798,8 @@ func (c *DataPipeline) PollForTaskRequest(input *PollForTaskInput) (req *request return } +// PollForTask API operation for AWS Data Pipeline. +// // Task runners call PollForTask to receive a task to perform from AWS Data // Pipeline. The task runner specifies which tasks it can perform by setting // a value for the workerGroup parameter. The task returned can come from any @@ -646,6 +814,20 @@ func (c *DataPipeline) PollForTaskRequest(input *PollForTaskInput) (req *request // set the socket timeout in your task runner to 90 seconds. The task runner // should not call PollForTask again on the same workerGroup until it receives // a response, and this can take up to 90 seconds. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Data Pipeline's +// API operation, PollForTask for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InternalServiceError +// InvalidRequestException +// TaskNotFoundException func (c *DataPipeline) PollForTask(input *PollForTaskInput) (*PollForTaskOutput, error) { req, out := c.PollForTaskRequest(input) err := req.Send() @@ -693,6 +875,8 @@ func (c *DataPipeline) PutPipelineDefinitionRequest(input *PutPipelineDefinition return } +// PutPipelineDefinition API operation for AWS Data Pipeline. +// // Adds tasks, schedules, and preconditions to the specified pipeline. You can // use PutPipelineDefinition to populate a new pipeline. // @@ -705,6 +889,21 @@ func (c *DataPipeline) PutPipelineDefinitionRequest(input *PutPipelineDefinition // allowed objects. The pipeline is in a FINISHED state. Pipeline object definitions // are passed to the PutPipelineDefinition action and returned by the GetPipelineDefinition // action. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Data Pipeline's +// API operation, PutPipelineDefinition for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InternalServiceError +// InvalidRequestException +// PipelineNotFoundException +// PipelineDeletedException func (c *DataPipeline) PutPipelineDefinition(input *PutPipelineDefinitionInput) (*PutPipelineDefinitionOutput, error) { req, out := c.PutPipelineDefinitionRequest(input) err := req.Send() @@ -758,8 +957,25 @@ func (c *DataPipeline) QueryObjectsRequest(input *QueryObjectsInput) (req *reque return } +// QueryObjects API operation for AWS Data Pipeline. +// // Queries the specified pipeline for the names of objects that match the specified // set of conditions. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Data Pipeline's +// API operation, QueryObjects for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// PipelineNotFoundException +// PipelineDeletedException +// InternalServiceError +// InvalidRequestException func (c *DataPipeline) QueryObjects(input *QueryObjectsInput) (*QueryObjectsOutput, error) { req, out := c.QueryObjectsRequest(input) err := req.Send() @@ -832,7 +1048,24 @@ func (c *DataPipeline) RemoveTagsRequest(input *RemoveTagsInput) (req *request.R return } +// RemoveTags API operation for AWS Data Pipeline. +// // Removes existing tags from the specified pipeline. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Data Pipeline's +// API operation, RemoveTags for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InternalServiceError +// InvalidRequestException +// PipelineNotFoundException +// PipelineDeletedException func (c *DataPipeline) RemoveTags(input *RemoveTagsInput) (*RemoveTagsOutput, error) { req, out := c.RemoveTagsRequest(input) err := req.Send() @@ -880,6 +1113,8 @@ func (c *DataPipeline) ReportTaskProgressRequest(input *ReportTaskProgressInput) return } +// ReportTaskProgress API operation for AWS Data Pipeline. +// // Task runners call ReportTaskProgress when assigned a task to acknowledge // that it has the task. If the web service does not receive this acknowledgement // within 2 minutes, it assigns the task in a subsequent PollForTask call. After @@ -892,6 +1127,22 @@ func (c *DataPipeline) ReportTaskProgressRequest(input *ReportTaskProgressInput) // assumes that the task runner is unable to process the task and reassigns // the task in a subsequent response to PollForTask. Task runners should call // ReportTaskProgress every 60 seconds. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Data Pipeline's +// API operation, ReportTaskProgress for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InternalServiceError +// InvalidRequestException +// TaskNotFoundException +// PipelineNotFoundException +// PipelineDeletedException func (c *DataPipeline) ReportTaskProgress(input *ReportTaskProgressInput) (*ReportTaskProgressOutput, error) { req, out := c.ReportTaskProgressRequest(input) err := req.Send() @@ -939,11 +1190,26 @@ func (c *DataPipeline) ReportTaskRunnerHeartbeatRequest(input *ReportTaskRunnerH return } +// ReportTaskRunnerHeartbeat API operation for AWS Data Pipeline. +// // Task runners call ReportTaskRunnerHeartbeat every 15 minutes to indicate // that they are operational. If the AWS Data Pipeline Task Runner is launched // on a resource managed by AWS Data Pipeline, the web service can use this // call to detect when the task runner application has failed and restart a // new instance. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Data Pipeline's +// API operation, ReportTaskRunnerHeartbeat for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InternalServiceError +// InvalidRequestException func (c *DataPipeline) ReportTaskRunnerHeartbeat(input *ReportTaskRunnerHeartbeatInput) (*ReportTaskRunnerHeartbeatOutput, error) { req, out := c.ReportTaskRunnerHeartbeatRequest(input) err := req.Send() @@ -993,11 +1259,28 @@ func (c *DataPipeline) SetStatusRequest(input *SetStatusInput) (req *request.Req return } +// SetStatus API operation for AWS Data Pipeline. +// // Requests that the status of the specified physical or logical pipeline objects // be updated in the specified pipeline. This update might not occur immediately, // but is eventually consistent. The status that can be set depends on the type // of object (for example, DataNode or Activity). You cannot perform this operation // on FINISHED pipelines and attempting to do so returns InvalidRequestException. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Data Pipeline's +// API operation, SetStatus for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// PipelineNotFoundException +// PipelineDeletedException +// InternalServiceError +// InvalidRequestException func (c *DataPipeline) SetStatus(input *SetStatusInput) (*SetStatusOutput, error) { req, out := c.SetStatusRequest(input) err := req.Send() @@ -1045,11 +1328,29 @@ func (c *DataPipeline) SetTaskStatusRequest(input *SetTaskStatusInput) (req *req return } +// SetTaskStatus API operation for AWS Data Pipeline. +// // Task runners call SetTaskStatus to notify AWS Data Pipeline that a task is // completed and provide information about the final status. A task runner makes // this call regardless of whether the task was sucessful. A task runner does // not need to call SetTaskStatus for tasks that are canceled by the web service // during a call to ReportTaskProgress. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Data Pipeline's +// API operation, SetTaskStatus for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InternalServiceError +// TaskNotFoundException +// InvalidRequestException +// PipelineNotFoundException +// PipelineDeletedException func (c *DataPipeline) SetTaskStatus(input *SetTaskStatusInput) (*SetTaskStatusOutput, error) { req, out := c.SetTaskStatusRequest(input) err := req.Send() @@ -1097,8 +1398,25 @@ func (c *DataPipeline) ValidatePipelineDefinitionRequest(input *ValidatePipeline return } +// ValidatePipelineDefinition API operation for AWS Data Pipeline. +// // Validates the specified pipeline definition to ensure that it is well formed // and can be run without error. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Data Pipeline's +// API operation, ValidatePipelineDefinition for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InternalServiceError +// InvalidRequestException +// PipelineNotFoundException +// PipelineDeletedException func (c *DataPipeline) ValidatePipelineDefinition(input *ValidatePipelineDefinitionInput) (*ValidatePipelineDefinitionOutput, error) { req, out := c.ValidatePipelineDefinitionRequest(input) err := req.Send() diff --git a/service/devicefarm/api.go b/service/devicefarm/api.go index 6347a670217..28ddf2e3373 100644 --- a/service/devicefarm/api.go +++ b/service/devicefarm/api.go @@ -51,7 +51,24 @@ func (c *DeviceFarm) CreateDevicePoolRequest(input *CreateDevicePoolInput) (req return } +// CreateDevicePool API operation for AWS Device Farm. +// // Creates a device pool. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Device Farm's +// API operation, CreateDevicePool for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ArgumentException +// NotFoundException +// LimitExceededException +// ServiceAccountException func (c *DeviceFarm) CreateDevicePool(input *CreateDevicePoolInput) (*CreateDevicePoolOutput, error) { req, out := c.CreateDevicePoolRequest(input) err := req.Send() @@ -99,7 +116,24 @@ func (c *DeviceFarm) CreateProjectRequest(input *CreateProjectInput) (req *reque return } +// CreateProject API operation for AWS Device Farm. +// // Creates a new project. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Device Farm's +// API operation, CreateProject for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ArgumentException +// NotFoundException +// LimitExceededException +// ServiceAccountException func (c *DeviceFarm) CreateProject(input *CreateProjectInput) (*CreateProjectOutput, error) { req, out := c.CreateProjectRequest(input) err := req.Send() @@ -147,7 +181,24 @@ func (c *DeviceFarm) CreateRemoteAccessSessionRequest(input *CreateRemoteAccessS return } +// CreateRemoteAccessSession API operation for AWS Device Farm. +// // Specifies and starts a remote access session. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Device Farm's +// API operation, CreateRemoteAccessSession for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ArgumentException +// NotFoundException +// LimitExceededException +// ServiceAccountException func (c *DeviceFarm) CreateRemoteAccessSession(input *CreateRemoteAccessSessionInput) (*CreateRemoteAccessSessionOutput, error) { req, out := c.CreateRemoteAccessSessionRequest(input) err := req.Send() @@ -195,7 +246,24 @@ func (c *DeviceFarm) CreateUploadRequest(input *CreateUploadInput) (req *request return } +// CreateUpload API operation for AWS Device Farm. +// // Uploads an app or test scripts. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Device Farm's +// API operation, CreateUpload for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ArgumentException +// NotFoundException +// LimitExceededException +// ServiceAccountException func (c *DeviceFarm) CreateUpload(input *CreateUploadInput) (*CreateUploadOutput, error) { req, out := c.CreateUploadRequest(input) err := req.Send() @@ -243,8 +311,25 @@ func (c *DeviceFarm) DeleteDevicePoolRequest(input *DeleteDevicePoolInput) (req return } +// DeleteDevicePool API operation for AWS Device Farm. +// // Deletes a device pool given the pool ARN. Does not allow deletion of curated // pools owned by the system. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Device Farm's +// API operation, DeleteDevicePool for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ArgumentException +// NotFoundException +// LimitExceededException +// ServiceAccountException func (c *DeviceFarm) DeleteDevicePool(input *DeleteDevicePoolInput) (*DeleteDevicePoolOutput, error) { req, out := c.DeleteDevicePoolRequest(input) err := req.Send() @@ -292,9 +377,26 @@ func (c *DeviceFarm) DeleteProjectRequest(input *DeleteProjectInput) (req *reque return } +// DeleteProject API operation for AWS Device Farm. +// // Deletes an AWS Device Farm project, given the project ARN. // // Note Deleting this resource does not stop an in-progress run. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Device Farm's +// API operation, DeleteProject for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ArgumentException +// NotFoundException +// LimitExceededException +// ServiceAccountException func (c *DeviceFarm) DeleteProject(input *DeleteProjectInput) (*DeleteProjectOutput, error) { req, out := c.DeleteProjectRequest(input) err := req.Send() @@ -342,7 +444,24 @@ func (c *DeviceFarm) DeleteRemoteAccessSessionRequest(input *DeleteRemoteAccessS return } +// DeleteRemoteAccessSession API operation for AWS Device Farm. +// // Deletes a completed remote access session and its results. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Device Farm's +// API operation, DeleteRemoteAccessSession for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ArgumentException +// NotFoundException +// LimitExceededException +// ServiceAccountException func (c *DeviceFarm) DeleteRemoteAccessSession(input *DeleteRemoteAccessSessionInput) (*DeleteRemoteAccessSessionOutput, error) { req, out := c.DeleteRemoteAccessSessionRequest(input) err := req.Send() @@ -390,9 +509,26 @@ func (c *DeviceFarm) DeleteRunRequest(input *DeleteRunInput) (req *request.Reque return } +// DeleteRun API operation for AWS Device Farm. +// // Deletes the run, given the run ARN. // // Note Deleting this resource does not stop an in-progress run. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Device Farm's +// API operation, DeleteRun for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ArgumentException +// NotFoundException +// LimitExceededException +// ServiceAccountException func (c *DeviceFarm) DeleteRun(input *DeleteRunInput) (*DeleteRunOutput, error) { req, out := c.DeleteRunRequest(input) err := req.Send() @@ -440,7 +576,24 @@ func (c *DeviceFarm) DeleteUploadRequest(input *DeleteUploadInput) (req *request return } +// DeleteUpload API operation for AWS Device Farm. +// // Deletes an upload given the upload ARN. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Device Farm's +// API operation, DeleteUpload for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ArgumentException +// NotFoundException +// LimitExceededException +// ServiceAccountException func (c *DeviceFarm) DeleteUpload(input *DeleteUploadInput) (*DeleteUploadOutput, error) { req, out := c.DeleteUploadRequest(input) err := req.Send() @@ -488,8 +641,25 @@ func (c *DeviceFarm) GetAccountSettingsRequest(input *GetAccountSettingsInput) ( return } +// GetAccountSettings API operation for AWS Device Farm. +// // Returns the number of unmetered iOS and/or unmetered Android devices that // have been purchased by the account. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Device Farm's +// API operation, GetAccountSettings for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ArgumentException +// NotFoundException +// LimitExceededException +// ServiceAccountException func (c *DeviceFarm) GetAccountSettings(input *GetAccountSettingsInput) (*GetAccountSettingsOutput, error) { req, out := c.GetAccountSettingsRequest(input) err := req.Send() @@ -537,7 +707,24 @@ func (c *DeviceFarm) GetDeviceRequest(input *GetDeviceInput) (req *request.Reque return } +// GetDevice API operation for AWS Device Farm. +// // Gets information about a unique device type. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Device Farm's +// API operation, GetDevice for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ArgumentException +// NotFoundException +// LimitExceededException +// ServiceAccountException func (c *DeviceFarm) GetDevice(input *GetDeviceInput) (*GetDeviceOutput, error) { req, out := c.GetDeviceRequest(input) err := req.Send() @@ -585,7 +772,24 @@ func (c *DeviceFarm) GetDevicePoolRequest(input *GetDevicePoolInput) (req *reque return } +// GetDevicePool API operation for AWS Device Farm. +// // Gets information about a device pool. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Device Farm's +// API operation, GetDevicePool for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ArgumentException +// NotFoundException +// LimitExceededException +// ServiceAccountException func (c *DeviceFarm) GetDevicePool(input *GetDevicePoolInput) (*GetDevicePoolOutput, error) { req, out := c.GetDevicePoolRequest(input) err := req.Send() @@ -633,7 +837,24 @@ func (c *DeviceFarm) GetDevicePoolCompatibilityRequest(input *GetDevicePoolCompa return } +// GetDevicePoolCompatibility API operation for AWS Device Farm. +// // Gets information about compatibility with a device pool. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Device Farm's +// API operation, GetDevicePoolCompatibility for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ArgumentException +// NotFoundException +// LimitExceededException +// ServiceAccountException func (c *DeviceFarm) GetDevicePoolCompatibility(input *GetDevicePoolCompatibilityInput) (*GetDevicePoolCompatibilityOutput, error) { req, out := c.GetDevicePoolCompatibilityRequest(input) err := req.Send() @@ -681,7 +902,24 @@ func (c *DeviceFarm) GetJobRequest(input *GetJobInput) (req *request.Request, ou return } +// GetJob API operation for AWS Device Farm. +// // Gets information about a job. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Device Farm's +// API operation, GetJob for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ArgumentException +// NotFoundException +// LimitExceededException +// ServiceAccountException func (c *DeviceFarm) GetJob(input *GetJobInput) (*GetJobOutput, error) { req, out := c.GetJobRequest(input) err := req.Send() @@ -735,12 +973,30 @@ func (c *DeviceFarm) GetOfferingStatusRequest(input *GetOfferingStatusInput) (re return } +// GetOfferingStatus API operation for AWS Device Farm. +// // Gets the current status and future status of all offerings purchased by an // AWS account. The response indicates how many offerings are currently available // and the offerings that will be available in the next period. The API returns // a NotEligible error if the user is not permitted to invoke the operation. // Please contact aws-devicefarm-support@amazon.com (mailto:aws-devicefarm-support@amazon.com) // if you believe that you should be able to invoke this operation. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Device Farm's +// API operation, GetOfferingStatus for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ArgumentException +// NotFoundException +// NotEligibleException +// LimitExceededException +// ServiceAccountException func (c *DeviceFarm) GetOfferingStatus(input *GetOfferingStatusInput) (*GetOfferingStatusOutput, error) { req, out := c.GetOfferingStatusRequest(input) err := req.Send() @@ -813,7 +1069,24 @@ func (c *DeviceFarm) GetProjectRequest(input *GetProjectInput) (req *request.Req return } +// GetProject API operation for AWS Device Farm. +// // Gets information about a project. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Device Farm's +// API operation, GetProject for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ArgumentException +// NotFoundException +// LimitExceededException +// ServiceAccountException func (c *DeviceFarm) GetProject(input *GetProjectInput) (*GetProjectOutput, error) { req, out := c.GetProjectRequest(input) err := req.Send() @@ -861,7 +1134,24 @@ func (c *DeviceFarm) GetRemoteAccessSessionRequest(input *GetRemoteAccessSession return } +// GetRemoteAccessSession API operation for AWS Device Farm. +// // Returns a link to a currently running remote access session. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Device Farm's +// API operation, GetRemoteAccessSession for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ArgumentException +// NotFoundException +// LimitExceededException +// ServiceAccountException func (c *DeviceFarm) GetRemoteAccessSession(input *GetRemoteAccessSessionInput) (*GetRemoteAccessSessionOutput, error) { req, out := c.GetRemoteAccessSessionRequest(input) err := req.Send() @@ -909,7 +1199,24 @@ func (c *DeviceFarm) GetRunRequest(input *GetRunInput) (req *request.Request, ou return } +// GetRun API operation for AWS Device Farm. +// // Gets information about a run. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Device Farm's +// API operation, GetRun for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ArgumentException +// NotFoundException +// LimitExceededException +// ServiceAccountException func (c *DeviceFarm) GetRun(input *GetRunInput) (*GetRunOutput, error) { req, out := c.GetRunRequest(input) err := req.Send() @@ -957,7 +1264,24 @@ func (c *DeviceFarm) GetSuiteRequest(input *GetSuiteInput) (req *request.Request return } +// GetSuite API operation for AWS Device Farm. +// // Gets information about a suite. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Device Farm's +// API operation, GetSuite for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ArgumentException +// NotFoundException +// LimitExceededException +// ServiceAccountException func (c *DeviceFarm) GetSuite(input *GetSuiteInput) (*GetSuiteOutput, error) { req, out := c.GetSuiteRequest(input) err := req.Send() @@ -1005,7 +1329,24 @@ func (c *DeviceFarm) GetTestRequest(input *GetTestInput) (req *request.Request, return } +// GetTest API operation for AWS Device Farm. +// // Gets information about a test. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Device Farm's +// API operation, GetTest for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ArgumentException +// NotFoundException +// LimitExceededException +// ServiceAccountException func (c *DeviceFarm) GetTest(input *GetTestInput) (*GetTestOutput, error) { req, out := c.GetTestRequest(input) err := req.Send() @@ -1053,7 +1394,24 @@ func (c *DeviceFarm) GetUploadRequest(input *GetUploadInput) (req *request.Reque return } +// GetUpload API operation for AWS Device Farm. +// // Gets information about an upload. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Device Farm's +// API operation, GetUpload for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ArgumentException +// NotFoundException +// LimitExceededException +// ServiceAccountException func (c *DeviceFarm) GetUpload(input *GetUploadInput) (*GetUploadOutput, error) { req, out := c.GetUploadRequest(input) err := req.Send() @@ -1101,9 +1459,26 @@ func (c *DeviceFarm) InstallToRemoteAccessSessionRequest(input *InstallToRemoteA return } +// InstallToRemoteAccessSession API operation for AWS Device Farm. +// // Installs an application to the device in a remote access session. For Android // applications, the file must be in .apk format. For iOS applications, the // file must be in .ipa format. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Device Farm's +// API operation, InstallToRemoteAccessSession for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ArgumentException +// NotFoundException +// LimitExceededException +// ServiceAccountException func (c *DeviceFarm) InstallToRemoteAccessSession(input *InstallToRemoteAccessSessionInput) (*InstallToRemoteAccessSessionOutput, error) { req, out := c.InstallToRemoteAccessSessionRequest(input) err := req.Send() @@ -1157,7 +1532,24 @@ func (c *DeviceFarm) ListArtifactsRequest(input *ListArtifactsInput) (req *reque return } +// ListArtifacts API operation for AWS Device Farm. +// // Gets information about artifacts. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Device Farm's +// API operation, ListArtifacts for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ArgumentException +// NotFoundException +// LimitExceededException +// ServiceAccountException func (c *DeviceFarm) ListArtifacts(input *ListArtifactsInput) (*ListArtifactsOutput, error) { req, out := c.ListArtifactsRequest(input) err := req.Send() @@ -1236,7 +1628,24 @@ func (c *DeviceFarm) ListDevicePoolsRequest(input *ListDevicePoolsInput) (req *r return } +// ListDevicePools API operation for AWS Device Farm. +// // Gets information about device pools. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Device Farm's +// API operation, ListDevicePools for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ArgumentException +// NotFoundException +// LimitExceededException +// ServiceAccountException func (c *DeviceFarm) ListDevicePools(input *ListDevicePoolsInput) (*ListDevicePoolsOutput, error) { req, out := c.ListDevicePoolsRequest(input) err := req.Send() @@ -1315,7 +1724,24 @@ func (c *DeviceFarm) ListDevicesRequest(input *ListDevicesInput) (req *request.R return } +// ListDevices API operation for AWS Device Farm. +// // Gets information about unique device types. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Device Farm's +// API operation, ListDevices for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ArgumentException +// NotFoundException +// LimitExceededException +// ServiceAccountException func (c *DeviceFarm) ListDevices(input *ListDevicesInput) (*ListDevicesOutput, error) { req, out := c.ListDevicesRequest(input) err := req.Send() @@ -1394,7 +1820,24 @@ func (c *DeviceFarm) ListJobsRequest(input *ListJobsInput) (req *request.Request return } +// ListJobs API operation for AWS Device Farm. +// // Gets information about jobs. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Device Farm's +// API operation, ListJobs for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ArgumentException +// NotFoundException +// LimitExceededException +// ServiceAccountException func (c *DeviceFarm) ListJobs(input *ListJobsInput) (*ListJobsOutput, error) { req, out := c.ListJobsRequest(input) err := req.Send() @@ -1473,12 +1916,30 @@ func (c *DeviceFarm) ListOfferingTransactionsRequest(input *ListOfferingTransact return } +// ListOfferingTransactions API operation for AWS Device Farm. +// // Returns a list of all historical purchases, renewals, and system renewal // transactions for an AWS account. The list is paginated and ordered by a descending // timestamp (most recent transactions are first). The API returns a NotEligible // error if the user is not permitted to invoke the operation. Please contact // aws-devicefarm-support@amazon.com (mailto:aws-devicefarm-support@amazon.com) // if you believe that you should be able to invoke this operation. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Device Farm's +// API operation, ListOfferingTransactions for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ArgumentException +// NotFoundException +// NotEligibleException +// LimitExceededException +// ServiceAccountException func (c *DeviceFarm) ListOfferingTransactions(input *ListOfferingTransactionsInput) (*ListOfferingTransactionsOutput, error) { req, out := c.ListOfferingTransactionsRequest(input) err := req.Send() @@ -1557,12 +2018,30 @@ func (c *DeviceFarm) ListOfferingsRequest(input *ListOfferingsInput) (req *reque return } +// ListOfferings API operation for AWS Device Farm. +// // Returns a list of products or offerings that the user can manage through // the API. Each offering record indicates the recurring price per unit and // the frequency for that offering. The API returns a NotEligible error if the // user is not permitted to invoke the operation. Please contact aws-devicefarm-support@amazon.com // (mailto:aws-devicefarm-support@amazon.com) if you believe that you should // be able to invoke this operation. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Device Farm's +// API operation, ListOfferings for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ArgumentException +// NotFoundException +// NotEligibleException +// LimitExceededException +// ServiceAccountException func (c *DeviceFarm) ListOfferings(input *ListOfferingsInput) (*ListOfferingsOutput, error) { req, out := c.ListOfferingsRequest(input) err := req.Send() @@ -1641,7 +2120,24 @@ func (c *DeviceFarm) ListProjectsRequest(input *ListProjectsInput) (req *request return } +// ListProjects API operation for AWS Device Farm. +// // Gets information about projects. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Device Farm's +// API operation, ListProjects for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ArgumentException +// NotFoundException +// LimitExceededException +// ServiceAccountException func (c *DeviceFarm) ListProjects(input *ListProjectsInput) (*ListProjectsOutput, error) { req, out := c.ListProjectsRequest(input) err := req.Send() @@ -1714,7 +2210,24 @@ func (c *DeviceFarm) ListRemoteAccessSessionsRequest(input *ListRemoteAccessSess return } +// ListRemoteAccessSessions API operation for AWS Device Farm. +// // Returns a list of all currently running remote access sessions. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Device Farm's +// API operation, ListRemoteAccessSessions for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ArgumentException +// NotFoundException +// LimitExceededException +// ServiceAccountException func (c *DeviceFarm) ListRemoteAccessSessions(input *ListRemoteAccessSessionsInput) (*ListRemoteAccessSessionsOutput, error) { req, out := c.ListRemoteAccessSessionsRequest(input) err := req.Send() @@ -1768,7 +2281,24 @@ func (c *DeviceFarm) ListRunsRequest(input *ListRunsInput) (req *request.Request return } +// ListRuns API operation for AWS Device Farm. +// // Gets information about runs, given an AWS Device Farm project ARN. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Device Farm's +// API operation, ListRuns for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ArgumentException +// NotFoundException +// LimitExceededException +// ServiceAccountException func (c *DeviceFarm) ListRuns(input *ListRunsInput) (*ListRunsOutput, error) { req, out := c.ListRunsRequest(input) err := req.Send() @@ -1847,7 +2377,24 @@ func (c *DeviceFarm) ListSamplesRequest(input *ListSamplesInput) (req *request.R return } +// ListSamples API operation for AWS Device Farm. +// // Gets information about samples, given an AWS Device Farm project ARN +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Device Farm's +// API operation, ListSamples for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ArgumentException +// NotFoundException +// LimitExceededException +// ServiceAccountException func (c *DeviceFarm) ListSamples(input *ListSamplesInput) (*ListSamplesOutput, error) { req, out := c.ListSamplesRequest(input) err := req.Send() @@ -1926,7 +2473,24 @@ func (c *DeviceFarm) ListSuitesRequest(input *ListSuitesInput) (req *request.Req return } +// ListSuites API operation for AWS Device Farm. +// // Gets information about suites. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Device Farm's +// API operation, ListSuites for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ArgumentException +// NotFoundException +// LimitExceededException +// ServiceAccountException func (c *DeviceFarm) ListSuites(input *ListSuitesInput) (*ListSuitesOutput, error) { req, out := c.ListSuitesRequest(input) err := req.Send() @@ -2005,7 +2569,24 @@ func (c *DeviceFarm) ListTestsRequest(input *ListTestsInput) (req *request.Reque return } +// ListTests API operation for AWS Device Farm. +// // Gets information about tests. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Device Farm's +// API operation, ListTests for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ArgumentException +// NotFoundException +// LimitExceededException +// ServiceAccountException func (c *DeviceFarm) ListTests(input *ListTestsInput) (*ListTestsOutput, error) { req, out := c.ListTestsRequest(input) err := req.Send() @@ -2084,7 +2665,24 @@ func (c *DeviceFarm) ListUniqueProblemsRequest(input *ListUniqueProblemsInput) ( return } +// ListUniqueProblems API operation for AWS Device Farm. +// // Gets information about unique problems. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Device Farm's +// API operation, ListUniqueProblems for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ArgumentException +// NotFoundException +// LimitExceededException +// ServiceAccountException func (c *DeviceFarm) ListUniqueProblems(input *ListUniqueProblemsInput) (*ListUniqueProblemsOutput, error) { req, out := c.ListUniqueProblemsRequest(input) err := req.Send() @@ -2163,7 +2761,24 @@ func (c *DeviceFarm) ListUploadsRequest(input *ListUploadsInput) (req *request.R return } +// ListUploads API operation for AWS Device Farm. +// // Gets information about uploads, given an AWS Device Farm project ARN. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Device Farm's +// API operation, ListUploads for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ArgumentException +// NotFoundException +// LimitExceededException +// ServiceAccountException func (c *DeviceFarm) ListUploads(input *ListUploadsInput) (*ListUploadsOutput, error) { req, out := c.ListUploadsRequest(input) err := req.Send() @@ -2236,12 +2851,30 @@ func (c *DeviceFarm) PurchaseOfferingRequest(input *PurchaseOfferingInput) (req return } +// PurchaseOffering API operation for AWS Device Farm. +// // Immediately purchases offerings for an AWS account. Offerings renew with // the latest total purchased quantity for an offering, unless the renewal was // overridden. The API returns a NotEligible error if the user is not permitted // to invoke the operation. Please contact aws-devicefarm-support@amazon.com // (mailto:aws-devicefarm-support@amazon.com) if you believe that you should // be able to invoke this operation. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Device Farm's +// API operation, PurchaseOffering for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ArgumentException +// NotFoundException +// NotEligibleException +// LimitExceededException +// ServiceAccountException func (c *DeviceFarm) PurchaseOffering(input *PurchaseOfferingInput) (*PurchaseOfferingOutput, error) { req, out := c.PurchaseOfferingRequest(input) err := req.Send() @@ -2289,11 +2922,29 @@ func (c *DeviceFarm) RenewOfferingRequest(input *RenewOfferingInput) (req *reque return } +// RenewOffering API operation for AWS Device Farm. +// // Explicitly sets the quantity of devices to renew for an offering, starting // from the effectiveDate of the next period. The API returns a NotEligible // error if the user is not permitted to invoke the operation. Please contact // aws-devicefarm-support@amazon.com (mailto:aws-devicefarm-support@amazon.com) // if you believe that you should be able to invoke this operation. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Device Farm's +// API operation, RenewOffering for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ArgumentException +// NotFoundException +// NotEligibleException +// LimitExceededException +// ServiceAccountException func (c *DeviceFarm) RenewOffering(input *RenewOfferingInput) (*RenewOfferingOutput, error) { req, out := c.RenewOfferingRequest(input) err := req.Send() @@ -2341,7 +2992,25 @@ func (c *DeviceFarm) ScheduleRunRequest(input *ScheduleRunInput) (req *request.R return } +// ScheduleRun API operation for AWS Device Farm. +// // Schedules a run. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Device Farm's +// API operation, ScheduleRun for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ArgumentException +// NotFoundException +// LimitExceededException +// IdempotencyException +// ServiceAccountException func (c *DeviceFarm) ScheduleRun(input *ScheduleRunInput) (*ScheduleRunOutput, error) { req, out := c.ScheduleRunRequest(input) err := req.Send() @@ -2389,7 +3058,24 @@ func (c *DeviceFarm) StopRemoteAccessSessionRequest(input *StopRemoteAccessSessi return } +// StopRemoteAccessSession API operation for AWS Device Farm. +// // Ends a specified remote access session. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Device Farm's +// API operation, StopRemoteAccessSession for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ArgumentException +// NotFoundException +// LimitExceededException +// ServiceAccountException func (c *DeviceFarm) StopRemoteAccessSession(input *StopRemoteAccessSessionInput) (*StopRemoteAccessSessionOutput, error) { req, out := c.StopRemoteAccessSessionRequest(input) err := req.Send() @@ -2437,12 +3123,29 @@ func (c *DeviceFarm) StopRunRequest(input *StopRunInput) (req *request.Request, return } +// StopRun API operation for AWS Device Farm. +// // Initiates a stop request for the current test run. AWS Device Farm will immediately // stop the run on devices where tests have not started executing, and you will // not be billed for these devices. On devices where tests have started executing, // Setup Suite and Teardown Suite tests will run to completion before stopping // execution on those devices. You will be billed for Setup, Teardown, and any // tests that were in progress or already completed. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Device Farm's +// API operation, StopRun for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ArgumentException +// NotFoundException +// LimitExceededException +// ServiceAccountException func (c *DeviceFarm) StopRun(input *StopRunInput) (*StopRunOutput, error) { req, out := c.StopRunRequest(input) err := req.Send() @@ -2490,9 +3193,26 @@ func (c *DeviceFarm) UpdateDevicePoolRequest(input *UpdateDevicePoolInput) (req return } +// UpdateDevicePool API operation for AWS Device Farm. +// // Modifies the name, description, and rules in a device pool given the attributes // and the pool ARN. Rule updates are all-or-nothing, meaning they can only // be updated as a whole (or not at all). +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Device Farm's +// API operation, UpdateDevicePool for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ArgumentException +// NotFoundException +// LimitExceededException +// ServiceAccountException func (c *DeviceFarm) UpdateDevicePool(input *UpdateDevicePoolInput) (*UpdateDevicePoolOutput, error) { req, out := c.UpdateDevicePoolRequest(input) err := req.Send() @@ -2540,7 +3260,24 @@ func (c *DeviceFarm) UpdateProjectRequest(input *UpdateProjectInput) (req *reque return } +// UpdateProject API operation for AWS Device Farm. +// // Modifies the specified project name, given the project ARN and a new name. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Device Farm's +// API operation, UpdateProject for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ArgumentException +// NotFoundException +// LimitExceededException +// ServiceAccountException func (c *DeviceFarm) UpdateProject(input *UpdateProjectInput) (*UpdateProjectOutput, error) { req, out := c.UpdateProjectRequest(input) err := req.Send() diff --git a/service/directconnect/api.go b/service/directconnect/api.go index 68be9538d08..83c6cda7925 100644 --- a/service/directconnect/api.go +++ b/service/directconnect/api.go @@ -51,12 +51,27 @@ func (c *DirectConnect) AllocateConnectionOnInterconnectRequest(input *AllocateC return } +// AllocateConnectionOnInterconnect API operation for AWS Direct Connect. +// // Creates a hosted connection on an interconnect. // // Allocates a VLAN number and a specified amount of bandwidth for use by a // hosted connection on the given interconnect. // // This is intended for use by AWS Direct Connect partners only. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Direct Connect's +// API operation, AllocateConnectionOnInterconnect for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// DirectConnectServerException +// DirectConnectClientException func (c *DirectConnect) AllocateConnectionOnInterconnect(input *AllocateConnectionOnInterconnectInput) (*Connection, error) { req, out := c.AllocateConnectionOnInterconnectRequest(input) err := req.Send() @@ -104,6 +119,8 @@ func (c *DirectConnect) AllocatePrivateVirtualInterfaceRequest(input *AllocatePr return } +// AllocatePrivateVirtualInterface API operation for AWS Direct Connect. +// // Provisions a private virtual interface to be owned by a different customer. // // The owner of a connection calls this function to provision a private virtual @@ -113,6 +130,19 @@ func (c *DirectConnect) AllocatePrivateVirtualInterfaceRequest(input *AllocatePr // virtual interface owner by calling ConfirmPrivateVirtualInterface. Until // this step has been completed, the virtual interface will be in 'Confirming' // state, and will not be available for handling traffic. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Direct Connect's +// API operation, AllocatePrivateVirtualInterface for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// DirectConnectServerException +// DirectConnectClientException func (c *DirectConnect) AllocatePrivateVirtualInterface(input *AllocatePrivateVirtualInterfaceInput) (*VirtualInterface, error) { req, out := c.AllocatePrivateVirtualInterfaceRequest(input) err := req.Send() @@ -160,6 +190,8 @@ func (c *DirectConnect) AllocatePublicVirtualInterfaceRequest(input *AllocatePub return } +// AllocatePublicVirtualInterface API operation for AWS Direct Connect. +// // Provisions a public virtual interface to be owned by a different customer. // // The owner of a connection calls this function to provision a public virtual @@ -169,6 +201,19 @@ func (c *DirectConnect) AllocatePublicVirtualInterfaceRequest(input *AllocatePub // virtual interface owner by calling ConfirmPublicVirtualInterface. Until this // step has been completed, the virtual interface will be in 'Confirming' state, // and will not be available for handling traffic. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Direct Connect's +// API operation, AllocatePublicVirtualInterface for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// DirectConnectServerException +// DirectConnectClientException func (c *DirectConnect) AllocatePublicVirtualInterface(input *AllocatePublicVirtualInterfaceInput) (*VirtualInterface, error) { req, out := c.AllocatePublicVirtualInterfaceRequest(input) err := req.Send() @@ -216,11 +261,26 @@ func (c *DirectConnect) ConfirmConnectionRequest(input *ConfirmConnectionInput) return } +// ConfirmConnection API operation for AWS Direct Connect. +// // Confirm the creation of a hosted connection on an interconnect. // // Upon creation, the hosted connection is initially in the 'Ordering' state, // and will remain in this state until the owner calls ConfirmConnection to // confirm creation of the hosted connection. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Direct Connect's +// API operation, ConfirmConnection for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// DirectConnectServerException +// DirectConnectClientException func (c *DirectConnect) ConfirmConnection(input *ConfirmConnectionInput) (*ConfirmConnectionOutput, error) { req, out := c.ConfirmConnectionRequest(input) err := req.Send() @@ -268,11 +328,26 @@ func (c *DirectConnect) ConfirmPrivateVirtualInterfaceRequest(input *ConfirmPriv return } +// ConfirmPrivateVirtualInterface API operation for AWS Direct Connect. +// // Accept ownership of a private virtual interface created by another customer. // // After the virtual interface owner calls this function, the virtual interface // will be created and attached to the given virtual private gateway, and will // be available for handling traffic. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Direct Connect's +// API operation, ConfirmPrivateVirtualInterface for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// DirectConnectServerException +// DirectConnectClientException func (c *DirectConnect) ConfirmPrivateVirtualInterface(input *ConfirmPrivateVirtualInterfaceInput) (*ConfirmPrivateVirtualInterfaceOutput, error) { req, out := c.ConfirmPrivateVirtualInterfaceRequest(input) err := req.Send() @@ -320,10 +395,25 @@ func (c *DirectConnect) ConfirmPublicVirtualInterfaceRequest(input *ConfirmPubli return } +// ConfirmPublicVirtualInterface API operation for AWS Direct Connect. +// // Accept ownership of a public virtual interface created by another customer. // // After the virtual interface owner calls this function, the specified virtual // interface will be created and made available for handling traffic. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Direct Connect's +// API operation, ConfirmPublicVirtualInterface for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// DirectConnectServerException +// DirectConnectClientException func (c *DirectConnect) ConfirmPublicVirtualInterface(input *ConfirmPublicVirtualInterfaceInput) (*ConfirmPublicVirtualInterfaceOutput, error) { req, out := c.ConfirmPublicVirtualInterfaceRequest(input) err := req.Send() @@ -371,6 +461,8 @@ func (c *DirectConnect) CreateConnectionRequest(input *CreateConnectionInput) (r return } +// CreateConnection API operation for AWS Direct Connect. +// // Creates a new connection between the customer network and a specific AWS // Direct Connect location. // @@ -381,6 +473,19 @@ func (c *DirectConnect) CreateConnectionRequest(input *CreateConnectionInput) (r // in the region it is associated with. You can establish connections with AWS // Direct Connect locations in multiple regions, but a connection in one region // does not provide connectivity to other regions. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Direct Connect's +// API operation, CreateConnection for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// DirectConnectServerException +// DirectConnectClientException func (c *DirectConnect) CreateConnection(input *CreateConnectionInput) (*Connection, error) { req, out := c.CreateConnectionRequest(input) err := req.Send() @@ -428,6 +533,8 @@ func (c *DirectConnect) CreateInterconnectRequest(input *CreateInterconnectInput return } +// CreateInterconnect API operation for AWS Direct Connect. +// // Creates a new interconnect between a AWS Direct Connect partner's network // and a specific AWS Direct Connect location. // @@ -446,6 +553,19 @@ func (c *DirectConnect) CreateInterconnectRequest(input *CreateInterconnectInput // partner. // // This is intended for use by AWS Direct Connect partners only. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Direct Connect's +// API operation, CreateInterconnect for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// DirectConnectServerException +// DirectConnectClientException func (c *DirectConnect) CreateInterconnect(input *CreateInterconnectInput) (*Interconnect, error) { req, out := c.CreateInterconnectRequest(input) err := req.Send() @@ -493,9 +613,24 @@ func (c *DirectConnect) CreatePrivateVirtualInterfaceRequest(input *CreatePrivat return } +// CreatePrivateVirtualInterface API operation for AWS Direct Connect. +// // Creates a new private virtual interface. A virtual interface is the VLAN // that transports AWS Direct Connect traffic. A private virtual interface supports // sending traffic to a single virtual private cloud (VPC). +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Direct Connect's +// API operation, CreatePrivateVirtualInterface for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// DirectConnectServerException +// DirectConnectClientException func (c *DirectConnect) CreatePrivateVirtualInterface(input *CreatePrivateVirtualInterfaceInput) (*VirtualInterface, error) { req, out := c.CreatePrivateVirtualInterfaceRequest(input) err := req.Send() @@ -543,10 +678,25 @@ func (c *DirectConnect) CreatePublicVirtualInterfaceRequest(input *CreatePublicV return } +// CreatePublicVirtualInterface API operation for AWS Direct Connect. +// // Creates a new public virtual interface. A virtual interface is the VLAN that // transports AWS Direct Connect traffic. A public virtual interface supports // sending traffic to public services of AWS such as Amazon Simple Storage Service // (Amazon S3). +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Direct Connect's +// API operation, CreatePublicVirtualInterface for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// DirectConnectServerException +// DirectConnectClientException func (c *DirectConnect) CreatePublicVirtualInterface(input *CreatePublicVirtualInterfaceInput) (*VirtualInterface, error) { req, out := c.CreatePublicVirtualInterfaceRequest(input) err := req.Send() @@ -594,12 +744,27 @@ func (c *DirectConnect) DeleteConnectionRequest(input *DeleteConnectionInput) (r return } +// DeleteConnection API operation for AWS Direct Connect. +// // Deletes the connection. // // Deleting a connection only stops the AWS Direct Connect port hour and data // transfer charges. You need to cancel separately with the providers any services // or charges for cross-connects or network circuits that connect you to the // AWS Direct Connect location. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Direct Connect's +// API operation, DeleteConnection for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// DirectConnectServerException +// DirectConnectClientException func (c *DirectConnect) DeleteConnection(input *DeleteConnectionInput) (*Connection, error) { req, out := c.DeleteConnectionRequest(input) err := req.Send() @@ -647,9 +812,24 @@ func (c *DirectConnect) DeleteInterconnectRequest(input *DeleteInterconnectInput return } +// DeleteInterconnect API operation for AWS Direct Connect. +// // Deletes the specified interconnect. // // This is intended for use by AWS Direct Connect partners only. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Direct Connect's +// API operation, DeleteInterconnect for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// DirectConnectServerException +// DirectConnectClientException func (c *DirectConnect) DeleteInterconnect(input *DeleteInterconnectInput) (*DeleteInterconnectOutput, error) { req, out := c.DeleteInterconnectRequest(input) err := req.Send() @@ -697,7 +877,22 @@ func (c *DirectConnect) DeleteVirtualInterfaceRequest(input *DeleteVirtualInterf return } +// DeleteVirtualInterface API operation for AWS Direct Connect. +// // Deletes a virtual interface. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Direct Connect's +// API operation, DeleteVirtualInterface for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// DirectConnectServerException +// DirectConnectClientException func (c *DirectConnect) DeleteVirtualInterface(input *DeleteVirtualInterfaceInput) (*DeleteVirtualInterfaceOutput, error) { req, out := c.DeleteVirtualInterfaceRequest(input) err := req.Send() @@ -745,6 +940,8 @@ func (c *DirectConnect) DescribeConnectionLoaRequest(input *DescribeConnectionLo return } +// DescribeConnectionLoa API operation for AWS Direct Connect. +// // Returns the LOA-CFA for a Connection. // // The Letter of Authorization - Connecting Facility Assignment (LOA-CFA) is @@ -752,6 +949,19 @@ func (c *DirectConnect) DescribeConnectionLoaRequest(input *DescribeConnectionLo // your cross connect to AWS at the colocation facility. For more information, // see Requesting Cross Connects at AWS Direct Connect Locations (http://docs.aws.amazon.com/directconnect/latest/UserGuide/Colocation.html) // in the AWS Direct Connect user guide. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Direct Connect's +// API operation, DescribeConnectionLoa for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// DirectConnectServerException +// DirectConnectClientException func (c *DirectConnect) DescribeConnectionLoa(input *DescribeConnectionLoaInput) (*DescribeConnectionLoaOutput, error) { req, out := c.DescribeConnectionLoaRequest(input) err := req.Send() @@ -799,9 +1009,24 @@ func (c *DirectConnect) DescribeConnectionsRequest(input *DescribeConnectionsInp return } +// DescribeConnections API operation for AWS Direct Connect. +// // Displays all connections in this region. // // If a connection ID is provided, the call returns only that particular connection. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Direct Connect's +// API operation, DescribeConnections for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// DirectConnectServerException +// DirectConnectClientException func (c *DirectConnect) DescribeConnections(input *DescribeConnectionsInput) (*Connections, error) { req, out := c.DescribeConnectionsRequest(input) err := req.Send() @@ -849,9 +1074,24 @@ func (c *DirectConnect) DescribeConnectionsOnInterconnectRequest(input *Describe return } +// DescribeConnectionsOnInterconnect API operation for AWS Direct Connect. +// // Return a list of connections that have been provisioned on the given interconnect. // // This is intended for use by AWS Direct Connect partners only. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Direct Connect's +// API operation, DescribeConnectionsOnInterconnect for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// DirectConnectServerException +// DirectConnectClientException func (c *DirectConnect) DescribeConnectionsOnInterconnect(input *DescribeConnectionsOnInterconnectInput) (*Connections, error) { req, out := c.DescribeConnectionsOnInterconnectRequest(input) err := req.Send() @@ -899,6 +1139,8 @@ func (c *DirectConnect) DescribeInterconnectLoaRequest(input *DescribeInterconne return } +// DescribeInterconnectLoa API operation for AWS Direct Connect. +// // Returns the LOA-CFA for an Interconnect. // // The Letter of Authorization - Connecting Facility Assignment (LOA-CFA) is @@ -906,6 +1148,19 @@ func (c *DirectConnect) DescribeInterconnectLoaRequest(input *DescribeInterconne // colocation facility. For more information, see Requesting Cross Connects // at AWS Direct Connect Locations (http://docs.aws.amazon.com/directconnect/latest/UserGuide/Colocation.html) // in the AWS Direct Connect user guide. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Direct Connect's +// API operation, DescribeInterconnectLoa for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// DirectConnectServerException +// DirectConnectClientException func (c *DirectConnect) DescribeInterconnectLoa(input *DescribeInterconnectLoaInput) (*DescribeInterconnectLoaOutput, error) { req, out := c.DescribeInterconnectLoaRequest(input) err := req.Send() @@ -953,9 +1208,24 @@ func (c *DirectConnect) DescribeInterconnectsRequest(input *DescribeInterconnect return } +// DescribeInterconnects API operation for AWS Direct Connect. +// // Returns a list of interconnects owned by the AWS account. // // If an interconnect ID is provided, it will only return this particular interconnect. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Direct Connect's +// API operation, DescribeInterconnects for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// DirectConnectServerException +// DirectConnectClientException func (c *DirectConnect) DescribeInterconnects(input *DescribeInterconnectsInput) (*DescribeInterconnectsOutput, error) { req, out := c.DescribeInterconnectsRequest(input) err := req.Send() @@ -1003,9 +1273,24 @@ func (c *DirectConnect) DescribeLocationsRequest(input *DescribeLocationsInput) return } +// DescribeLocations API operation for AWS Direct Connect. +// // Returns the list of AWS Direct Connect locations in the current AWS region. // These are the locations that may be selected when calling CreateConnection // or CreateInterconnect. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Direct Connect's +// API operation, DescribeLocations for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// DirectConnectServerException +// DirectConnectClientException func (c *DirectConnect) DescribeLocations(input *DescribeLocationsInput) (*DescribeLocationsOutput, error) { req, out := c.DescribeLocationsRequest(input) err := req.Send() @@ -1053,6 +1338,8 @@ func (c *DirectConnect) DescribeVirtualGatewaysRequest(input *DescribeVirtualGat return } +// DescribeVirtualGateways API operation for AWS Direct Connect. +// // Returns a list of virtual private gateways owned by the AWS account. // // You can create one or more AWS Direct Connect private virtual interfaces @@ -1060,6 +1347,19 @@ func (c *DirectConnect) DescribeVirtualGatewaysRequest(input *DescribeVirtualGat // via Amazon Virtual Private Cloud (VPC) console or the EC2 CreateVpnGateway // (http://docs.aws.amazon.com/AWSEC2/latest/APIReference/ApiReference-query-CreateVpnGateway.html) // action. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Direct Connect's +// API operation, DescribeVirtualGateways for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// DirectConnectServerException +// DirectConnectClientException func (c *DirectConnect) DescribeVirtualGateways(input *DescribeVirtualGatewaysInput) (*DescribeVirtualGatewaysOutput, error) { req, out := c.DescribeVirtualGatewaysRequest(input) err := req.Send() @@ -1107,6 +1407,8 @@ func (c *DirectConnect) DescribeVirtualInterfacesRequest(input *DescribeVirtualI return } +// DescribeVirtualInterfaces API operation for AWS Direct Connect. +// // Displays all virtual interfaces for an AWS account. Virtual interfaces deleted // fewer than 15 minutes before DescribeVirtualInterfaces is called are also // returned. If a connection ID is included then only virtual interfaces associated @@ -1119,6 +1421,19 @@ func (c *DirectConnect) DescribeVirtualInterfacesRequest(input *DescribeVirtualI // If a connection ID is provided, only virtual interfaces provisioned on the // specified connection will be returned. If a virtual interface ID is provided, // only this particular virtual interface will be returned. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Direct Connect's +// API operation, DescribeVirtualInterfaces for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// DirectConnectServerException +// DirectConnectClientException func (c *DirectConnect) DescribeVirtualInterfaces(input *DescribeVirtualInterfacesInput) (*DescribeVirtualInterfacesOutput, error) { req, out := c.DescribeVirtualInterfacesRequest(input) err := req.Send() diff --git a/service/directoryservice/api.go b/service/directoryservice/api.go index ef30acb2a61..1d63b0be78a 100644 --- a/service/directoryservice/api.go +++ b/service/directoryservice/api.go @@ -52,11 +52,31 @@ func (c *DirectoryService) AddIpRoutesRequest(input *AddIpRoutesInput) (req *req return } +// AddIpRoutes API operation for AWS Directory Service. +// // If the DNS server for your on-premises domain uses a publicly addressable // IP address, you must add a CIDR address block to correctly route traffic // to and from your Microsoft AD on Amazon Web Services. AddIpRoutes adds this // address block. You can also use AddIpRoutes to facilitate routing traffic // that uses public IP ranges from your Microsoft AD on AWS to a peer VPC. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Directory Service's +// API operation, AddIpRoutes for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// EntityDoesNotExistException +// EntityAlreadyExistsException +// InvalidParameterException +// DirectoryUnavailableException +// IpRouteLimitExceededException +// ClientException +// ServiceException func (c *DirectoryService) AddIpRoutes(input *AddIpRoutesInput) (*AddIpRoutesOutput, error) { req, out := c.AddIpRoutesRequest(input) err := req.Send() @@ -104,9 +124,27 @@ func (c *DirectoryService) AddTagsToResourceRequest(input *AddTagsToResourceInpu return } +// AddTagsToResource API operation for AWS Directory Service. +// // Adds or overwrites one or more tags for the specified Amazon Directory Services // directory. Each directory can have a maximum of 10 tags. Each tag consists // of a key and optional value. Tag keys must be unique to each resource. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Directory Service's +// API operation, AddTagsToResource for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// EntityDoesNotExistException +// InvalidParameterException +// TagLimitExceededException +// ClientException +// ServiceException func (c *DirectoryService) AddTagsToResource(input *AddTagsToResourceInput) (*AddTagsToResourceOutput, error) { req, out := c.AddTagsToResourceRequest(input) err := req.Send() @@ -154,7 +192,24 @@ func (c *DirectoryService) ConnectDirectoryRequest(input *ConnectDirectoryInput) return } +// ConnectDirectory API operation for AWS Directory Service. +// // Creates an AD Connector to connect to an on-premises directory. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Directory Service's +// API operation, ConnectDirectory for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// DirectoryLimitExceededException +// InvalidParameterException +// ClientException +// ServiceException func (c *DirectoryService) ConnectDirectory(input *ConnectDirectoryInput) (*ConnectDirectoryOutput, error) { req, out := c.ConnectDirectoryRequest(input) err := req.Send() @@ -202,12 +257,30 @@ func (c *DirectoryService) CreateAliasRequest(input *CreateAliasInput) (req *req return } +// CreateAlias API operation for AWS Directory Service. +// // Creates an alias for a directory and assigns the alias to the directory. // The alias is used to construct the access URL for the directory, such as // http://.awsapps.com. // // After an alias has been created, it cannot be deleted or reused, so this // operation should only be used when absolutely necessary. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Directory Service's +// API operation, CreateAlias for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// EntityAlreadyExistsException +// EntityDoesNotExistException +// InvalidParameterException +// ClientException +// ServiceException func (c *DirectoryService) CreateAlias(input *CreateAliasInput) (*CreateAliasOutput, error) { req, out := c.CreateAliasRequest(input) err := req.Send() @@ -255,8 +328,29 @@ func (c *DirectoryService) CreateComputerRequest(input *CreateComputerInput) (re return } +// CreateComputer API operation for AWS Directory Service. +// // Creates a computer account in the specified directory, and joins the computer // to the directory. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Directory Service's +// API operation, CreateComputer for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// AuthenticationFailedException +// DirectoryUnavailableException +// EntityAlreadyExistsException +// EntityDoesNotExistException +// InvalidParameterException +// UnsupportedOperationException +// ClientException +// ServiceException func (c *DirectoryService) CreateComputer(input *CreateComputerInput) (*CreateComputerOutput, error) { req, out := c.CreateComputerRequest(input) err := req.Send() @@ -304,9 +398,29 @@ func (c *DirectoryService) CreateConditionalForwarderRequest(input *CreateCondit return } +// CreateConditionalForwarder API operation for AWS Directory Service. +// // Creates a conditional forwarder associated with your AWS directory. Conditional // forwarders are required in order to set up a trust relationship with another // domain. The conditional forwarder points to the trusted domain. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Directory Service's +// API operation, CreateConditionalForwarder for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// EntityAlreadyExistsException +// EntityDoesNotExistException +// DirectoryUnavailableException +// InvalidParameterException +// UnsupportedOperationException +// ClientException +// ServiceException func (c *DirectoryService) CreateConditionalForwarder(input *CreateConditionalForwarderInput) (*CreateConditionalForwarderOutput, error) { req, out := c.CreateConditionalForwarderRequest(input) err := req.Send() @@ -354,7 +468,24 @@ func (c *DirectoryService) CreateDirectoryRequest(input *CreateDirectoryInput) ( return } +// CreateDirectory API operation for AWS Directory Service. +// // Creates a Simple AD directory. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Directory Service's +// API operation, CreateDirectory for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// DirectoryLimitExceededException +// InvalidParameterException +// ClientException +// ServiceException func (c *DirectoryService) CreateDirectory(input *CreateDirectoryInput) (*CreateDirectoryOutput, error) { req, out := c.CreateDirectoryRequest(input) err := req.Send() @@ -402,7 +533,25 @@ func (c *DirectoryService) CreateMicrosoftADRequest(input *CreateMicrosoftADInpu return } +// CreateMicrosoftAD API operation for AWS Directory Service. +// // Creates a Microsoft AD in the AWS cloud. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Directory Service's +// API operation, CreateMicrosoftAD for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// DirectoryLimitExceededException +// InvalidParameterException +// ClientException +// ServiceException +// UnsupportedOperationException func (c *DirectoryService) CreateMicrosoftAD(input *CreateMicrosoftADInput) (*CreateMicrosoftADOutput, error) { req, out := c.CreateMicrosoftADRequest(input) err := req.Send() @@ -450,9 +599,27 @@ func (c *DirectoryService) CreateSnapshotRequest(input *CreateSnapshotInput) (re return } +// CreateSnapshot API operation for AWS Directory Service. +// // Creates a snapshot of a Simple AD or Microsoft AD directory in the AWS cloud. // // You cannot take snapshots of AD Connector directories. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Directory Service's +// API operation, CreateSnapshot for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// EntityDoesNotExistException +// InvalidParameterException +// SnapshotLimitExceededException +// ClientException +// ServiceException func (c *DirectoryService) CreateSnapshot(input *CreateSnapshotInput) (*CreateSnapshotOutput, error) { req, out := c.CreateSnapshotRequest(input) err := req.Send() @@ -500,6 +667,8 @@ func (c *DirectoryService) CreateTrustRequest(input *CreateTrustInput) (req *req return } +// CreateTrust API operation for AWS Directory Service. +// // AWS Directory Service for Microsoft Active Directory allows you to configure // trust relationships. For example, you can establish a trust between your // Microsoft AD in the AWS cloud, and your existing on-premises Microsoft Active @@ -508,6 +677,23 @@ func (c *DirectoryService) CreateTrustRequest(input *CreateTrustInput) (req *req // // This action initiates the creation of the AWS side of a trust relationship // between a Microsoft AD in the AWS cloud and an external domain. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Directory Service's +// API operation, CreateTrust for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// EntityAlreadyExistsException +// EntityDoesNotExistException +// InvalidParameterException +// ClientException +// ServiceException +// UnsupportedOperationException func (c *DirectoryService) CreateTrust(input *CreateTrustInput) (*CreateTrustOutput, error) { req, out := c.CreateTrustRequest(input) err := req.Send() @@ -555,7 +741,26 @@ func (c *DirectoryService) DeleteConditionalForwarderRequest(input *DeleteCondit return } +// DeleteConditionalForwarder API operation for AWS Directory Service. +// // Deletes a conditional forwarder that has been set up for your AWS directory. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Directory Service's +// API operation, DeleteConditionalForwarder for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// EntityDoesNotExistException +// DirectoryUnavailableException +// InvalidParameterException +// UnsupportedOperationException +// ClientException +// ServiceException func (c *DirectoryService) DeleteConditionalForwarder(input *DeleteConditionalForwarderInput) (*DeleteConditionalForwarderOutput, error) { req, out := c.DeleteConditionalForwarderRequest(input) err := req.Send() @@ -603,7 +808,23 @@ func (c *DirectoryService) DeleteDirectoryRequest(input *DeleteDirectoryInput) ( return } +// DeleteDirectory API operation for AWS Directory Service. +// // Deletes an AWS Directory Service directory. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Directory Service's +// API operation, DeleteDirectory for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// EntityDoesNotExistException +// ClientException +// ServiceException func (c *DirectoryService) DeleteDirectory(input *DeleteDirectoryInput) (*DeleteDirectoryOutput, error) { req, out := c.DeleteDirectoryRequest(input) err := req.Send() @@ -651,7 +872,24 @@ func (c *DirectoryService) DeleteSnapshotRequest(input *DeleteSnapshotInput) (re return } +// DeleteSnapshot API operation for AWS Directory Service. +// // Deletes a directory snapshot. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Directory Service's +// API operation, DeleteSnapshot for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// EntityDoesNotExistException +// InvalidParameterException +// ClientException +// ServiceException func (c *DirectoryService) DeleteSnapshot(input *DeleteSnapshotInput) (*DeleteSnapshotOutput, error) { req, out := c.DeleteSnapshotRequest(input) err := req.Send() @@ -699,8 +937,26 @@ func (c *DirectoryService) DeleteTrustRequest(input *DeleteTrustInput) (req *req return } +// DeleteTrust API operation for AWS Directory Service. +// // Deletes an existing trust relationship between your Microsoft AD in the AWS // cloud and an external domain. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Directory Service's +// API operation, DeleteTrust for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// EntityDoesNotExistException +// InvalidParameterException +// ClientException +// ServiceException +// UnsupportedOperationException func (c *DirectoryService) DeleteTrust(input *DeleteTrustInput) (*DeleteTrustOutput, error) { req, out := c.DeleteTrustRequest(input) err := req.Send() @@ -748,7 +1004,24 @@ func (c *DirectoryService) DeregisterEventTopicRequest(input *DeregisterEventTop return } +// DeregisterEventTopic API operation for AWS Directory Service. +// // Removes the specified directory as a publisher to the specified SNS topic. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Directory Service's +// API operation, DeregisterEventTopic for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// EntityDoesNotExistException +// InvalidParameterException +// ClientException +// ServiceException func (c *DirectoryService) DeregisterEventTopic(input *DeregisterEventTopicInput) (*DeregisterEventTopicOutput, error) { req, out := c.DeregisterEventTopicRequest(input) err := req.Send() @@ -796,10 +1069,29 @@ func (c *DirectoryService) DescribeConditionalForwardersRequest(input *DescribeC return } +// DescribeConditionalForwarders API operation for AWS Directory Service. +// // Obtains information about the conditional forwarders for this account. // // If no input parameters are provided for RemoteDomainNames, this request // describes all conditional forwarders for the specified directory ID. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Directory Service's +// API operation, DescribeConditionalForwarders for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// EntityDoesNotExistException +// DirectoryUnavailableException +// InvalidParameterException +// UnsupportedOperationException +// ClientException +// ServiceException func (c *DirectoryService) DescribeConditionalForwarders(input *DescribeConditionalForwardersInput) (*DescribeConditionalForwardersOutput, error) { req, out := c.DescribeConditionalForwardersRequest(input) err := req.Send() @@ -847,6 +1139,8 @@ func (c *DirectoryService) DescribeDirectoriesRequest(input *DescribeDirectories return } +// DescribeDirectories API operation for AWS Directory Service. +// // Obtains information about the directories that belong to this account. // // You can retrieve information about specific directories by passing the directory @@ -859,6 +1153,22 @@ func (c *DirectoryService) DescribeDirectoriesRequest(input *DescribeDirectories // to retrieve the next set of items. // // You can also specify a maximum number of return results with the Limit parameter. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Directory Service's +// API operation, DescribeDirectories for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// EntityDoesNotExistException +// InvalidParameterException +// InvalidNextTokenException +// ClientException +// ServiceException func (c *DirectoryService) DescribeDirectories(input *DescribeDirectoriesInput) (*DescribeDirectoriesOutput, error) { req, out := c.DescribeDirectoriesRequest(input) err := req.Send() @@ -906,11 +1216,28 @@ func (c *DirectoryService) DescribeEventTopicsRequest(input *DescribeEventTopics return } +// DescribeEventTopics API operation for AWS Directory Service. +// // Obtains information about which SNS topics receive status messages from the // specified directory. // // If no input parameters are provided, such as DirectoryId or TopicName, this // request describes all of the associations in the account. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Directory Service's +// API operation, DescribeEventTopics for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// EntityDoesNotExistException +// InvalidParameterException +// ClientException +// ServiceException func (c *DirectoryService) DescribeEventTopics(input *DescribeEventTopicsInput) (*DescribeEventTopicsOutput, error) { req, out := c.DescribeEventTopicsRequest(input) err := req.Send() @@ -958,6 +1285,8 @@ func (c *DirectoryService) DescribeSnapshotsRequest(input *DescribeSnapshotsInpu return } +// DescribeSnapshots API operation for AWS Directory Service. +// // Obtains information about the directory snapshots that belong to this account. // // This operation supports pagination with the use of the NextToken request @@ -966,6 +1295,22 @@ func (c *DirectoryService) DescribeSnapshotsRequest(input *DescribeSnapshotsInpu // to retrieve the next set of items. // // You can also specify a maximum number of return results with the Limit parameter. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Directory Service's +// API operation, DescribeSnapshots for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// EntityDoesNotExistException +// InvalidParameterException +// InvalidNextTokenException +// ClientException +// ServiceException func (c *DirectoryService) DescribeSnapshots(input *DescribeSnapshotsInput) (*DescribeSnapshotsOutput, error) { req, out := c.DescribeSnapshotsRequest(input) err := req.Send() @@ -1013,10 +1358,29 @@ func (c *DirectoryService) DescribeTrustsRequest(input *DescribeTrustsInput) (re return } +// DescribeTrusts API operation for AWS Directory Service. +// // Obtains information about the trust relationships for this account. // // If no input parameters are provided, such as DirectoryId or TrustIds, this // request describes all the trust relationships belonging to the account. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Directory Service's +// API operation, DescribeTrusts for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// EntityDoesNotExistException +// InvalidNextTokenException +// InvalidParameterException +// ClientException +// ServiceException +// UnsupportedOperationException func (c *DirectoryService) DescribeTrusts(input *DescribeTrustsInput) (*DescribeTrustsOutput, error) { req, out := c.DescribeTrustsRequest(input) err := req.Send() @@ -1064,8 +1428,24 @@ func (c *DirectoryService) DisableRadiusRequest(input *DisableRadiusInput) (req return } +// DisableRadius API operation for AWS Directory Service. +// // Disables multi-factor authentication (MFA) with the Remote Authentication // Dial In User Service (RADIUS) server for an AD Connector directory. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Directory Service's +// API operation, DisableRadius for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// EntityDoesNotExistException +// ClientException +// ServiceException func (c *DirectoryService) DisableRadius(input *DisableRadiusInput) (*DisableRadiusOutput, error) { req, out := c.DisableRadiusRequest(input) err := req.Send() @@ -1113,7 +1493,25 @@ func (c *DirectoryService) DisableSsoRequest(input *DisableSsoInput) (req *reque return } +// DisableSso API operation for AWS Directory Service. +// // Disables single-sign on for a directory. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Directory Service's +// API operation, DisableSso for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// EntityDoesNotExistException +// InsufficientPermissionsException +// AuthenticationFailedException +// ClientException +// ServiceException func (c *DirectoryService) DisableSso(input *DisableSsoInput) (*DisableSsoOutput, error) { req, out := c.DisableSsoRequest(input) err := req.Send() @@ -1161,8 +1559,26 @@ func (c *DirectoryService) EnableRadiusRequest(input *EnableRadiusInput) (req *r return } +// EnableRadius API operation for AWS Directory Service. +// // Enables multi-factor authentication (MFA) with the Remote Authentication // Dial In User Service (RADIUS) server for an AD Connector directory. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Directory Service's +// API operation, EnableRadius for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidParameterException +// EntityAlreadyExistsException +// EntityDoesNotExistException +// ClientException +// ServiceException func (c *DirectoryService) EnableRadius(input *EnableRadiusInput) (*EnableRadiusOutput, error) { req, out := c.EnableRadiusRequest(input) err := req.Send() @@ -1210,7 +1626,25 @@ func (c *DirectoryService) EnableSsoRequest(input *EnableSsoInput) (req *request return } +// EnableSso API operation for AWS Directory Service. +// // Enables single-sign on for a directory. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Directory Service's +// API operation, EnableSso for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// EntityDoesNotExistException +// InsufficientPermissionsException +// AuthenticationFailedException +// ClientException +// ServiceException func (c *DirectoryService) EnableSso(input *EnableSsoInput) (*EnableSsoOutput, error) { req, out := c.EnableSsoRequest(input) err := req.Send() @@ -1258,7 +1692,23 @@ func (c *DirectoryService) GetDirectoryLimitsRequest(input *GetDirectoryLimitsIn return } +// GetDirectoryLimits API operation for AWS Directory Service. +// // Obtains directory limit information for the current region. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Directory Service's +// API operation, GetDirectoryLimits for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// EntityDoesNotExistException +// ClientException +// ServiceException func (c *DirectoryService) GetDirectoryLimits(input *GetDirectoryLimitsInput) (*GetDirectoryLimitsOutput, error) { req, out := c.GetDirectoryLimitsRequest(input) err := req.Send() @@ -1306,7 +1756,23 @@ func (c *DirectoryService) GetSnapshotLimitsRequest(input *GetSnapshotLimitsInpu return } +// GetSnapshotLimits API operation for AWS Directory Service. +// // Obtains the manual snapshot limits for a directory. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Directory Service's +// API operation, GetSnapshotLimits for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// EntityDoesNotExistException +// ClientException +// ServiceException func (c *DirectoryService) GetSnapshotLimits(input *GetSnapshotLimitsInput) (*GetSnapshotLimitsOutput, error) { req, out := c.GetSnapshotLimitsRequest(input) err := req.Send() @@ -1354,7 +1820,25 @@ func (c *DirectoryService) ListIpRoutesRequest(input *ListIpRoutesInput) (req *r return } +// ListIpRoutes API operation for AWS Directory Service. +// // Lists the address blocks that you have added to a directory. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Directory Service's +// API operation, ListIpRoutes for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// EntityDoesNotExistException +// InvalidNextTokenException +// InvalidParameterException +// ClientException +// ServiceException func (c *DirectoryService) ListIpRoutes(input *ListIpRoutesInput) (*ListIpRoutesOutput, error) { req, out := c.ListIpRoutesRequest(input) err := req.Send() @@ -1402,7 +1886,25 @@ func (c *DirectoryService) ListTagsForResourceRequest(input *ListTagsForResource return } +// ListTagsForResource API operation for AWS Directory Service. +// // Lists all tags on an Amazon Directory Services directory. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Directory Service's +// API operation, ListTagsForResource for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// EntityDoesNotExistException +// InvalidNextTokenException +// InvalidParameterException +// ClientException +// ServiceException func (c *DirectoryService) ListTagsForResource(input *ListTagsForResourceInput) (*ListTagsForResourceOutput, error) { req, out := c.ListTagsForResourceRequest(input) err := req.Send() @@ -1450,12 +1952,29 @@ func (c *DirectoryService) RegisterEventTopicRequest(input *RegisterEventTopicIn return } +// RegisterEventTopic API operation for AWS Directory Service. +// // Associates a directory with an SNS topic. This establishes the directory // as a publisher to the specified SNS topic. You can then receive email or // text (SMS) messages when the status of your directory changes. You get notified // if your directory goes from an Active status to an Impaired or Inoperable // status. You also receive a notification when the directory returns to an // Active status. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Directory Service's +// API operation, RegisterEventTopic for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// EntityDoesNotExistException +// InvalidParameterException +// ClientException +// ServiceException func (c *DirectoryService) RegisterEventTopic(input *RegisterEventTopicInput) (*RegisterEventTopicOutput, error) { req, out := c.RegisterEventTopicRequest(input) err := req.Send() @@ -1503,7 +2022,25 @@ func (c *DirectoryService) RemoveIpRoutesRequest(input *RemoveIpRoutesInput) (re return } +// RemoveIpRoutes API operation for AWS Directory Service. +// // Removes IP address blocks from a directory. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Directory Service's +// API operation, RemoveIpRoutes for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// EntityDoesNotExistException +// InvalidParameterException +// DirectoryUnavailableException +// ClientException +// ServiceException func (c *DirectoryService) RemoveIpRoutes(input *RemoveIpRoutesInput) (*RemoveIpRoutesOutput, error) { req, out := c.RemoveIpRoutesRequest(input) err := req.Send() @@ -1551,7 +2088,24 @@ func (c *DirectoryService) RemoveTagsFromResourceRequest(input *RemoveTagsFromRe return } +// RemoveTagsFromResource API operation for AWS Directory Service. +// // Removes tags from an Amazon Directory Services directory. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Directory Service's +// API operation, RemoveTagsFromResource for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// EntityDoesNotExistException +// InvalidParameterException +// ClientException +// ServiceException func (c *DirectoryService) RemoveTagsFromResource(input *RemoveTagsFromResourceInput) (*RemoveTagsFromResourceOutput, error) { req, out := c.RemoveTagsFromResourceRequest(input) err := req.Send() @@ -1599,6 +2153,8 @@ func (c *DirectoryService) RestoreFromSnapshotRequest(input *RestoreFromSnapshot return } +// RestoreFromSnapshot API operation for AWS Directory Service. +// // Restores a directory using an existing directory snapshot. // // When you restore a directory from a snapshot, any changes made to the directory @@ -1608,6 +2164,21 @@ func (c *DirectoryService) RestoreFromSnapshotRequest(input *RestoreFromSnapshot // monitor the progress of the restore operation by calling the DescribeDirectories // operation with the directory identifier. When the DirectoryDescription.Stage // value changes to Active, the restore operation is complete. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Directory Service's +// API operation, RestoreFromSnapshot for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// EntityDoesNotExistException +// InvalidParameterException +// ClientException +// ServiceException func (c *DirectoryService) RestoreFromSnapshot(input *RestoreFromSnapshotInput) (*RestoreFromSnapshotOutput, error) { req, out := c.RestoreFromSnapshotRequest(input) err := req.Send() @@ -1655,7 +2226,26 @@ func (c *DirectoryService) UpdateConditionalForwarderRequest(input *UpdateCondit return } +// UpdateConditionalForwarder API operation for AWS Directory Service. +// // Updates a conditional forwarder that has been set up for your AWS directory. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Directory Service's +// API operation, UpdateConditionalForwarder for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// EntityDoesNotExistException +// DirectoryUnavailableException +// InvalidParameterException +// UnsupportedOperationException +// ClientException +// ServiceException func (c *DirectoryService) UpdateConditionalForwarder(input *UpdateConditionalForwarderInput) (*UpdateConditionalForwarderOutput, error) { req, out := c.UpdateConditionalForwarderRequest(input) err := req.Send() @@ -1703,8 +2293,25 @@ func (c *DirectoryService) UpdateRadiusRequest(input *UpdateRadiusInput) (req *r return } +// UpdateRadius API operation for AWS Directory Service. +// // Updates the Remote Authentication Dial In User Service (RADIUS) server information // for an AD Connector directory. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Directory Service's +// API operation, UpdateRadius for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidParameterException +// EntityDoesNotExistException +// ClientException +// ServiceException func (c *DirectoryService) UpdateRadius(input *UpdateRadiusInput) (*UpdateRadiusOutput, error) { req, out := c.UpdateRadiusRequest(input) err := req.Send() @@ -1752,11 +2359,29 @@ func (c *DirectoryService) VerifyTrustRequest(input *VerifyTrustInput) (req *req return } +// VerifyTrust API operation for AWS Directory Service. +// // AWS Directory Service for Microsoft Active Directory allows you to configure // and verify trust relationships. // // This action verifies a trust relationship between your Microsoft AD in the // AWS cloud and an external domain. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Directory Service's +// API operation, VerifyTrust for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// EntityDoesNotExistException +// InvalidParameterException +// ClientException +// ServiceException +// UnsupportedOperationException func (c *DirectoryService) VerifyTrust(input *VerifyTrustInput) (*VerifyTrustOutput, error) { req, out := c.VerifyTrustRequest(input) err := req.Send() diff --git a/service/dynamodb/api.go b/service/dynamodb/api.go index 5cee63019b8..17ec06136ce 100644 --- a/service/dynamodb/api.go +++ b/service/dynamodb/api.go @@ -58,6 +58,8 @@ func (c *DynamoDB) BatchGetItemRequest(input *BatchGetItemInput) (req *request.R return } +// BatchGetItem API operation for Amazon DynamoDB. +// // The BatchGetItem operation returns the attributes of one or more items from // one or more tables. You identify requested items by primary key. // @@ -107,6 +109,20 @@ func (c *DynamoDB) BatchGetItemRequest(input *BatchGetItemInput) (req *request.R // for nonexistent items consume the minimum read capacity units according to // the type of read. For more information, see Capacity Units Calculations (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/WorkingWithTables.html#CapacityUnitCalculations) // in the Amazon DynamoDB Developer Guide. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon DynamoDB's +// API operation, BatchGetItem for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ProvisionedThroughputExceededException +// ResourceNotFoundException +// InternalServerError func (c *DynamoDB) BatchGetItem(input *BatchGetItemInput) (*BatchGetItemOutput, error) { req, out := c.BatchGetItemRequest(input) err := req.Send() @@ -179,6 +195,8 @@ func (c *DynamoDB) BatchWriteItemRequest(input *BatchWriteItemInput) (req *reque return } +// BatchWriteItem API operation for Amazon DynamoDB. +// // The BatchWriteItem operation puts or deletes multiple items in one or more // tables. A single call to BatchWriteItem can write up to 16 MB of data, which // can comprise as many as 25 put or delete requests. Individual items to be @@ -248,6 +266,21 @@ func (c *DynamoDB) BatchWriteItemRequest(input *BatchWriteItemInput) (req *reque // Any individual item in a batch exceeds 400 KB. // // The total request size exceeds 16 MB. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon DynamoDB's +// API operation, BatchWriteItem for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ProvisionedThroughputExceededException +// ResourceNotFoundException +// ItemCollectionSizeLimitExceededException +// InternalServerError func (c *DynamoDB) BatchWriteItem(input *BatchWriteItemInput) (*BatchWriteItemOutput, error) { req, out := c.BatchWriteItemRequest(input) err := req.Send() @@ -295,6 +328,8 @@ func (c *DynamoDB) CreateTableRequest(input *CreateTableInput) (req *request.Req return } +// CreateTable API operation for Amazon DynamoDB. +// // The CreateTable operation adds a new table to your account. In an AWS account, // table names must be unique within each region. That is, you can have two // tables with same name if you create the tables in different regions. @@ -310,6 +345,20 @@ func (c *DynamoDB) CreateTableRequest(input *CreateTableInput) (req *request.Req // with secondary indexes can be in the CREATING state at any given time. // // You can use the DescribeTable API to check the table status. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon DynamoDB's +// API operation, CreateTable for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ResourceInUseException +// LimitExceededException +// InternalServerError func (c *DynamoDB) CreateTable(input *CreateTableInput) (*CreateTableOutput, error) { req, out := c.CreateTableRequest(input) err := req.Send() @@ -357,6 +406,8 @@ func (c *DynamoDB) DeleteItemRequest(input *DeleteItemInput) (req *request.Reque return } +// DeleteItem API operation for Amazon DynamoDB. +// // Deletes a single item in a table by primary key. You can perform a conditional // delete operation that deletes the item if it exists, or if it has an expected // attribute value. @@ -371,6 +422,22 @@ func (c *DynamoDB) DeleteItemRequest(input *DeleteItemInput) (req *request.Reque // Conditional deletes are useful for deleting items only if specific conditions // are met. If those conditions are met, DynamoDB performs the delete. Otherwise, // the item is not deleted. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon DynamoDB's +// API operation, DeleteItem for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ConditionalCheckFailedException +// ProvisionedThroughputExceededException +// ResourceNotFoundException +// ItemCollectionSizeLimitExceededException +// InternalServerError func (c *DynamoDB) DeleteItem(input *DeleteItemInput) (*DeleteItemOutput, error) { req, out := c.DeleteItemRequest(input) err := req.Send() @@ -418,6 +485,8 @@ func (c *DynamoDB) DeleteTableRequest(input *DeleteTableInput) (req *request.Req return } +// DeleteTable API operation for Amazon DynamoDB. +// // The DeleteTable operation deletes a table and all of its items. After a DeleteTable // request, the specified table is in the DELETING state until DynamoDB completes // the deletion. If the table is in the ACTIVE state, you can delete it. If @@ -436,6 +505,21 @@ func (c *DynamoDB) DeleteTableRequest(input *DeleteTableInput) (req *request.Req // deleted after 24 hours. // // Use the DescribeTable API to check the status of the table. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon DynamoDB's +// API operation, DeleteTable for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ResourceInUseException +// ResourceNotFoundException +// LimitExceededException +// InternalServerError func (c *DynamoDB) DeleteTable(input *DeleteTableInput) (*DeleteTableOutput, error) { req, out := c.DeleteTableRequest(input) err := req.Send() @@ -483,6 +567,8 @@ func (c *DynamoDB) DescribeLimitsRequest(input *DescribeLimitsInput) (req *reque return } +// DescribeLimits API operation for Amazon DynamoDB. +// // Returns the current provisioned-capacity limits for your AWS account in a // region, both for the region as a whole and for any one DynamoDB table that // you create there. @@ -541,6 +627,18 @@ func (c *DynamoDB) DescribeLimitsRequest(input *DescribeLimitsInput) (req *reque // errors if you call it more than once in a minute. // // The DescribeLimits Request element has no content. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon DynamoDB's +// API operation, DescribeLimits for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InternalServerError func (c *DynamoDB) DescribeLimits(input *DescribeLimitsInput) (*DescribeLimitsOutput, error) { req, out := c.DescribeLimitsRequest(input) err := req.Send() @@ -588,6 +686,8 @@ func (c *DynamoDB) DescribeTableRequest(input *DescribeTableInput) (req *request return } +// DescribeTable API operation for Amazon DynamoDB. +// // Returns information about the table, including the current status of the // table, when it was created, the primary key schema, and any indexes on the // table. @@ -597,6 +697,19 @@ func (c *DynamoDB) DescribeTableRequest(input *DescribeTableInput) (req *request // uses an eventually consistent query, and the metadata for your table might // not be available at that moment. Wait for a few seconds, and then try the // DescribeTable request again. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon DynamoDB's +// API operation, DescribeTable for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ResourceNotFoundException +// InternalServerError func (c *DynamoDB) DescribeTable(input *DescribeTableInput) (*DescribeTableOutput, error) { req, out := c.DescribeTableRequest(input) err := req.Send() @@ -644,6 +757,8 @@ func (c *DynamoDB) GetItemRequest(input *GetItemInput) (req *request.Request, ou return } +// 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. // @@ -651,6 +766,20 @@ func (c *DynamoDB) GetItemRequest(input *GetItemInput) (req *request.Request, ou // requires a strongly consistent read, set ConsistentRead to true. Although // a strongly consistent read might take more time than an eventually consistent // read, it always returns the last updated value. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon DynamoDB's +// API operation, GetItem for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ProvisionedThroughputExceededException +// ResourceNotFoundException +// InternalServerError func (c *DynamoDB) GetItem(input *GetItemInput) (*GetItemOutput, error) { req, out := c.GetItemRequest(input) err := req.Send() @@ -704,9 +833,23 @@ func (c *DynamoDB) ListTablesRequest(input *ListTablesInput) (req *request.Reque return } +// ListTables API operation for Amazon DynamoDB. +// // Returns an array of table names associated with the current account and endpoint. // The output from ListTables is paginated, with each page returning a maximum // of 100 table names. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon DynamoDB's +// API operation, ListTables for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InternalServerError func (c *DynamoDB) ListTables(input *ListTablesInput) (*ListTablesOutput, error) { req, out := c.ListTablesRequest(input) err := req.Send() @@ -779,6 +922,8 @@ func (c *DynamoDB) PutItemRequest(input *PutItemInput) (req *request.Request, ou return } +// PutItem API operation for Amazon DynamoDB. +// // Creates a new item, or replaces an old item with a new item. If an item that // has the same primary key as the new item already exists in the specified // table, the new item completely replaces the existing item. You can perform @@ -806,6 +951,22 @@ func (c *DynamoDB) PutItemRequest(input *PutItemInput) (req *request.Request, ou // // For more information about using this API, see Working with Items (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/WorkingWithItems.html) // in the Amazon DynamoDB Developer Guide. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon DynamoDB's +// API operation, PutItem for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ConditionalCheckFailedException +// ProvisionedThroughputExceededException +// ResourceNotFoundException +// ItemCollectionSizeLimitExceededException +// InternalServerError func (c *DynamoDB) PutItem(input *PutItemInput) (*PutItemOutput, error) { req, out := c.PutItemRequest(input) err := req.Send() @@ -859,6 +1020,8 @@ func (c *DynamoDB) QueryRequest(input *QueryInput) (req *request.Request, output return } +// Query API operation for Amazon DynamoDB. +// // A Query operation uses the primary key of a table or a secondary index to // directly access items from that table or index. // @@ -885,6 +1048,20 @@ func (c *DynamoDB) QueryRequest(input *QueryInput) (req *request.Request, output // parameter to true and obtain a strongly consistent result. Global secondary // indexes support eventually consistent reads only, so do not specify ConsistentRead // when querying a global secondary index. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon DynamoDB's +// API operation, Query for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ProvisionedThroughputExceededException +// ResourceNotFoundException +// InternalServerError func (c *DynamoDB) Query(input *QueryInput) (*QueryOutput, error) { req, out := c.QueryRequest(input) err := req.Send() @@ -963,6 +1140,8 @@ func (c *DynamoDB) ScanRequest(input *ScanInput) (req *request.Request, output * return } +// Scan API operation for Amazon DynamoDB. +// // 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. @@ -984,6 +1163,20 @@ func (c *DynamoDB) ScanRequest(input *ScanInput) (req *request.Request, output * // in the table immediately before the operation began. If you need a consistent // copy of the data, as of the time that the Scan begins, you can set the ConsistentRead // parameter to true. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon DynamoDB's +// API operation, Scan for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ProvisionedThroughputExceededException +// ResourceNotFoundException +// InternalServerError func (c *DynamoDB) Scan(input *ScanInput) (*ScanOutput, error) { req, out := c.ScanRequest(input) err := req.Send() @@ -1056,6 +1249,8 @@ func (c *DynamoDB) UpdateItemRequest(input *UpdateItemInput) (req *request.Reque return } +// UpdateItem API operation for Amazon DynamoDB. +// // Edits an existing item's attributes, or adds a new item to the table if it // does not already exist. You can put, delete, or add attribute values. You // can also perform a conditional update on an existing item (insert a new attribute @@ -1064,6 +1259,22 @@ func (c *DynamoDB) UpdateItemRequest(input *UpdateItemInput) (req *request.Reque // // You can also return the item's attribute values in the same UpdateItem operation // using the ReturnValues parameter. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon DynamoDB's +// API operation, UpdateItem for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ConditionalCheckFailedException +// ProvisionedThroughputExceededException +// ResourceNotFoundException +// ItemCollectionSizeLimitExceededException +// InternalServerError func (c *DynamoDB) UpdateItem(input *UpdateItemInput) (*UpdateItemOutput, error) { req, out := c.UpdateItemRequest(input) err := req.Send() @@ -1111,6 +1322,8 @@ func (c *DynamoDB) UpdateTableRequest(input *UpdateTableInput) (req *request.Req return } +// UpdateTable API operation for Amazon DynamoDB. +// // Modifies the provisioned throughput settings, global secondary indexes, or // DynamoDB Streams settings for a given table. // @@ -1129,6 +1342,21 @@ func (c *DynamoDB) UpdateTableRequest(input *UpdateTableInput) (req *request.Req // table status changes from ACTIVE to UPDATING. While it is UPDATING, you cannot // issue another UpdateTable request. When the table returns to the ACTIVE state, // the UpdateTable operation is complete. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon DynamoDB's +// API operation, UpdateTable for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ResourceInUseException +// ResourceNotFoundException +// LimitExceededException +// InternalServerError func (c *DynamoDB) UpdateTable(input *UpdateTableInput) (*UpdateTableOutput, error) { req, out := c.UpdateTableRequest(input) err := req.Send() diff --git a/service/dynamodbstreams/api.go b/service/dynamodbstreams/api.go index b66d7eb4736..75303b679c4 100644 --- a/service/dynamodbstreams/api.go +++ b/service/dynamodbstreams/api.go @@ -52,6 +52,8 @@ func (c *DynamoDBStreams) DescribeStreamRequest(input *DescribeStreamInput) (req return } +// DescribeStream API operation for Amazon DynamoDB Streams. +// // Returns information about a stream, including the current status of the stream, // its Amazon Resource Name (ARN), the composition of its shards, and its corresponding // DynamoDB table. @@ -63,6 +65,19 @@ func (c *DynamoDBStreams) DescribeStreamRequest(input *DescribeStreamInput) (req // then the shard is still open (able to receive more stream records). If both // StartingSequenceNumber and EndingSequenceNumber are present, then that shard // is closed and can no longer receive more data. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon DynamoDB Streams's +// API operation, DescribeStream for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ResourceNotFoundException +// InternalServerError func (c *DynamoDBStreams) DescribeStream(input *DescribeStreamInput) (*DescribeStreamOutput, error) { req, out := c.DescribeStreamRequest(input) err := req.Send() @@ -110,6 +125,8 @@ func (c *DynamoDBStreams) GetRecordsRequest(input *GetRecordsInput) (req *reques return } +// GetRecords API operation for Amazon DynamoDB Streams. +// // Retrieves the stream records from a given shard. // // Specify a shard iterator using the ShardIterator parameter. The shard iterator @@ -121,6 +138,22 @@ func (c *DynamoDBStreams) GetRecordsRequest(input *GetRecordsInput) (req *reques // // GetRecords can retrieve a maximum of 1 MB of data or 1000 stream records, // whichever comes first. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon DynamoDB Streams's +// API operation, GetRecords for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ResourceNotFoundException +// LimitExceededException +// InternalServerError +// ExpiredIteratorException +// TrimmedDataAccessException func (c *DynamoDBStreams) GetRecords(input *GetRecordsInput) (*GetRecordsOutput, error) { req, out := c.GetRecordsRequest(input) err := req.Send() @@ -168,11 +201,27 @@ func (c *DynamoDBStreams) GetShardIteratorRequest(input *GetShardIteratorInput) return } +// GetShardIterator API operation for Amazon DynamoDB Streams. +// // Returns a shard iterator. A shard iterator provides information about how // to retrieve the stream records from within a shard. Use the shard iterator // in a subsequent GetRecords request to read the stream records from the shard. // // A shard iterator expires 15 minutes after it is returned to the requester. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon DynamoDB Streams's +// API operation, GetShardIterator for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ResourceNotFoundException +// InternalServerError +// TrimmedDataAccessException func (c *DynamoDBStreams) GetShardIterator(input *GetShardIteratorInput) (*GetShardIteratorOutput, error) { req, out := c.GetShardIteratorRequest(input) err := req.Send() @@ -220,11 +269,26 @@ func (c *DynamoDBStreams) ListStreamsRequest(input *ListStreamsInput) (req *requ return } +// ListStreams API operation for Amazon DynamoDB Streams. +// // Returns an array of stream ARNs associated with the current account and endpoint. // If the TableName parameter is present, then ListStreams will return only // the streams ARNs for that table. // // You can call ListStreams at a maximum rate of 5 times per second. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon DynamoDB Streams's +// API operation, ListStreams for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ResourceNotFoundException +// InternalServerError func (c *DynamoDBStreams) ListStreams(input *ListStreamsInput) (*ListStreamsOutput, error) { req, out := c.ListStreamsRequest(input) err := req.Send() diff --git a/service/ec2/api.go b/service/ec2/api.go index 11df08c249e..b9d32f174dd 100644 --- a/service/ec2/api.go +++ b/service/ec2/api.go @@ -54,8 +54,18 @@ func (c *EC2) AcceptReservedInstancesExchangeQuoteRequest(input *AcceptReservedI return } +// AcceptReservedInstancesExchangeQuote API operation for Amazon Elastic Compute Cloud. +// // Purchases Convertible Reserved Instance offerings described in the GetReservedInstancesExchangeQuote // call. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation, AcceptReservedInstancesExchangeQuote for more information, and other errors +// that the API operation could return. func (c *EC2) AcceptReservedInstancesExchangeQuote(input *AcceptReservedInstancesExchangeQuoteInput) (*AcceptReservedInstancesExchangeQuoteOutput, error) { req, out := c.AcceptReservedInstancesExchangeQuoteRequest(input) err := req.Send() @@ -103,10 +113,20 @@ func (c *EC2) AcceptVpcPeeringConnectionRequest(input *AcceptVpcPeeringConnectio return } +// AcceptVpcPeeringConnection API operation for Amazon Elastic Compute Cloud. +// // Accept a VPC peering connection request. To accept a request, the VPC peering // connection must be in the pending-acceptance state, and you must be the owner // of the peer VPC. Use the DescribeVpcPeeringConnections request to view your // outstanding VPC peering connection requests. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation, AcceptVpcPeeringConnection for more information, and other errors +// that the API operation could return. func (c *EC2) AcceptVpcPeeringConnection(input *AcceptVpcPeeringConnectionInput) (*AcceptVpcPeeringConnectionOutput, error) { req, out := c.AcceptVpcPeeringConnectionRequest(input) err := req.Send() @@ -154,11 +174,21 @@ func (c *EC2) AllocateAddressRequest(input *AllocateAddressInput) (req *request. return } +// AllocateAddress API operation for Amazon Elastic Compute Cloud. +// // Acquires an Elastic IP address. // // An Elastic IP address is for use either in the EC2-Classic platform or in // a VPC. For more information, see Elastic IP Addresses (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/elastic-ip-addresses-eip.html) // in the Amazon Elastic Compute Cloud User Guide. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation, AllocateAddress for more information, and other errors +// that the API operation could return. func (c *EC2) AllocateAddress(input *AllocateAddressInput) (*AllocateAddressOutput, error) { req, out := c.AllocateAddressRequest(input) err := req.Send() @@ -206,9 +236,19 @@ func (c *EC2) AllocateHostsRequest(input *AllocateHostsInput) (req *request.Requ return } +// AllocateHosts API operation for Amazon Elastic Compute Cloud. +// // Allocates a Dedicated Host to your account. At minimum you need to specify // the instance size type, Availability Zone, and quantity of hosts you want // to allocate. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation, AllocateHosts for more information, and other errors +// that the API operation could return. func (c *EC2) AllocateHosts(input *AllocateHostsInput) (*AllocateHostsOutput, error) { req, out := c.AllocateHostsRequest(input) err := req.Send() @@ -258,6 +298,8 @@ func (c *EC2) AssignPrivateIpAddressesRequest(input *AssignPrivateIpAddressesInp return } +// AssignPrivateIpAddresses API operation for Amazon Elastic Compute Cloud. +// // Assigns one or more secondary private IP addresses to the specified network // interface. You can specify one or more specific secondary IP addresses, or // you can specify the number of secondary IP addresses to be automatically @@ -269,6 +311,14 @@ func (c *EC2) AssignPrivateIpAddressesRequest(input *AssignPrivateIpAddressesInp // in the Amazon Elastic Compute Cloud User Guide. // // AssignPrivateIpAddresses is available only in EC2-VPC. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation, AssignPrivateIpAddresses for more information, and other errors +// that the API operation could return. func (c *EC2) AssignPrivateIpAddresses(input *AssignPrivateIpAddressesInput) (*AssignPrivateIpAddressesOutput, error) { req, out := c.AssignPrivateIpAddressesRequest(input) err := req.Send() @@ -316,6 +366,8 @@ func (c *EC2) AssociateAddressRequest(input *AssociateAddressInput) (req *reques return } +// AssociateAddress API operation for Amazon Elastic Compute Cloud. +// // Associates an Elastic IP address with an instance or a network interface. // // An Elastic IP address is for use in either the EC2-Classic platform or in @@ -335,6 +387,14 @@ func (c *EC2) AssociateAddressRequest(input *AssociateAddressInput) (req *reques // once, Amazon EC2 doesn't return an error, and you may be charged for each // time the Elastic IP address is remapped to the same instance. For more information, // see the Elastic IP Addresses section of Amazon EC2 Pricing (http://aws.amazon.com/ec2/pricing/). +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation, AssociateAddress for more information, and other errors +// that the API operation could return. func (c *EC2) AssociateAddress(input *AssociateAddressInput) (*AssociateAddressOutput, error) { req, out := c.AssociateAddressRequest(input) err := req.Send() @@ -384,6 +444,8 @@ func (c *EC2) AssociateDhcpOptionsRequest(input *AssociateDhcpOptionsInput) (req return } +// AssociateDhcpOptions API operation for Amazon Elastic Compute Cloud. +// // Associates a set of DHCP options (that you've previously created) with the // specified VPC, or associates no DHCP options with the VPC. // @@ -396,6 +458,14 @@ func (c *EC2) AssociateDhcpOptionsRequest(input *AssociateDhcpOptionsInput) (req // // For more information, see DHCP Options Sets (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_DHCP_Options.html) // in the Amazon Virtual Private Cloud User Guide. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation, AssociateDhcpOptions for more information, and other errors +// that the API operation could return. func (c *EC2) AssociateDhcpOptions(input *AssociateDhcpOptionsInput) (*AssociateDhcpOptionsOutput, error) { req, out := c.AssociateDhcpOptionsRequest(input) err := req.Send() @@ -443,6 +513,8 @@ func (c *EC2) AssociateRouteTableRequest(input *AssociateRouteTableInput) (req * return } +// AssociateRouteTable API operation for Amazon Elastic Compute Cloud. +// // Associates a subnet with a route table. The subnet and route table must be // in the same VPC. This association causes traffic originating from the subnet // to be routed according to the routes in the route table. The action returns @@ -451,6 +523,14 @@ func (c *EC2) AssociateRouteTableRequest(input *AssociateRouteTableInput) (req * // // For more information about route tables, see Route Tables (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_Route_Tables.html) // in the Amazon Virtual Private Cloud User Guide. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation, AssociateRouteTable for more information, and other errors +// that the API operation could return. func (c *EC2) AssociateRouteTable(input *AssociateRouteTableInput) (*AssociateRouteTableOutput, error) { req, out := c.AssociateRouteTableRequest(input) err := req.Send() @@ -498,6 +578,8 @@ func (c *EC2) AttachClassicLinkVpcRequest(input *AttachClassicLinkVpcInput) (req return } +// AttachClassicLinkVpc API operation for Amazon Elastic Compute Cloud. +// // Links an EC2-Classic instance to a ClassicLink-enabled VPC through one or // more of the VPC's security groups. You cannot link an EC2-Classic instance // to more than one VPC at a time. You can only link an instance that's in the @@ -510,6 +592,14 @@ func (c *EC2) AttachClassicLinkVpcRequest(input *AttachClassicLinkVpcInput) (req // // Linking your instance to a VPC is sometimes referred to as attaching your // instance. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation, AttachClassicLinkVpc for more information, and other errors +// that the API operation could return. func (c *EC2) AttachClassicLinkVpc(input *AttachClassicLinkVpcInput) (*AttachClassicLinkVpcOutput, error) { req, out := c.AttachClassicLinkVpcRequest(input) err := req.Send() @@ -559,9 +649,19 @@ func (c *EC2) AttachInternetGatewayRequest(input *AttachInternetGatewayInput) (r return } +// AttachInternetGateway API operation for Amazon Elastic Compute Cloud. +// // Attaches an Internet gateway to a VPC, enabling connectivity between the // Internet and the VPC. For more information about your VPC and Internet gateway, // see the Amazon Virtual Private Cloud User Guide (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/). +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation, AttachInternetGateway for more information, and other errors +// that the API operation could return. func (c *EC2) AttachInternetGateway(input *AttachInternetGatewayInput) (*AttachInternetGatewayOutput, error) { req, out := c.AttachInternetGatewayRequest(input) err := req.Send() @@ -609,7 +709,17 @@ func (c *EC2) AttachNetworkInterfaceRequest(input *AttachNetworkInterfaceInput) return } +// AttachNetworkInterface API operation for Amazon Elastic Compute Cloud. +// // Attaches a network interface to an instance. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation, AttachNetworkInterface for more information, and other errors +// that the API operation could return. func (c *EC2) AttachNetworkInterface(input *AttachNetworkInterfaceInput) (*AttachNetworkInterfaceOutput, error) { req, out := c.AttachNetworkInterfaceRequest(input) err := req.Send() @@ -657,6 +767,8 @@ func (c *EC2) AttachVolumeRequest(input *AttachVolumeInput) (req *request.Reques return } +// AttachVolume API operation for Amazon Elastic Compute Cloud. +// // Attaches an EBS volume to a running or stopped instance and exposes it to // the instance with the specified device name. // @@ -688,6 +800,14 @@ func (c *EC2) AttachVolumeRequest(input *AttachVolumeInput) (req *request.Reques // For more information about EBS volumes, see Attaching Amazon EBS Volumes // (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-attaching-volume.html) // in the Amazon Elastic Compute Cloud User Guide. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation, AttachVolume for more information, and other errors +// that the API operation could return. func (c *EC2) AttachVolume(input *AttachVolumeInput) (*VolumeAttachment, error) { req, out := c.AttachVolumeRequest(input) err := req.Send() @@ -735,9 +855,19 @@ func (c *EC2) AttachVpnGatewayRequest(input *AttachVpnGatewayInput) (req *reques return } +// AttachVpnGateway API operation for Amazon Elastic Compute Cloud. +// // Attaches a virtual private gateway to a VPC. For more information, see Adding // a Hardware Virtual Private Gateway to Your VPC (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_VPN.html) // in the Amazon Virtual Private Cloud User Guide. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation, AttachVpnGateway for more information, and other errors +// that the API operation could return. func (c *EC2) AttachVpnGateway(input *AttachVpnGatewayInput) (*AttachVpnGatewayOutput, error) { req, out := c.AttachVpnGatewayRequest(input) err := req.Send() @@ -787,6 +917,8 @@ func (c *EC2) AuthorizeSecurityGroupEgressRequest(input *AuthorizeSecurityGroupE return } +// AuthorizeSecurityGroupEgress API operation for Amazon Elastic Compute Cloud. +// // [EC2-VPC only] Adds one or more egress rules to a security group for use // with a VPC. Specifically, this action permits instances to send traffic to // one or more destination CIDR IP address ranges, or to one or more destination @@ -806,6 +938,14 @@ func (c *EC2) AuthorizeSecurityGroupEgressRequest(input *AuthorizeSecurityGroupE // // Rule changes are propagated to affected instances as quickly as possible. // However, a small delay might occur. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation, AuthorizeSecurityGroupEgress for more information, and other errors +// that the API operation could return. func (c *EC2) AuthorizeSecurityGroupEgress(input *AuthorizeSecurityGroupEgressInput) (*AuthorizeSecurityGroupEgressOutput, error) { req, out := c.AuthorizeSecurityGroupEgressRequest(input) err := req.Send() @@ -855,6 +995,8 @@ func (c *EC2) AuthorizeSecurityGroupIngressRequest(input *AuthorizeSecurityGroup return } +// AuthorizeSecurityGroupIngress API operation for Amazon Elastic Compute Cloud. +// // Adds one or more ingress rules to a security group. // // EC2-Classic: You can have up to 100 rules per group. @@ -874,6 +1016,14 @@ func (c *EC2) AuthorizeSecurityGroupIngressRequest(input *AuthorizeSecurityGroup // to access a security group in your VPC, or gives one or more other security // groups (called the source groups) permission to access a security group for // your VPC. The security groups must all be for the same VPC. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation, AuthorizeSecurityGroupIngress for more information, and other errors +// that the API operation could return. func (c *EC2) AuthorizeSecurityGroupIngress(input *AuthorizeSecurityGroupIngressInput) (*AuthorizeSecurityGroupIngressOutput, error) { req, out := c.AuthorizeSecurityGroupIngressRequest(input) err := req.Send() @@ -921,6 +1071,8 @@ func (c *EC2) BundleInstanceRequest(input *BundleInstanceInput) (req *request.Re return } +// BundleInstance API operation for Amazon Elastic Compute Cloud. +// // Bundles an Amazon instance store-backed Windows instance. // // During bundling, only the root device volume (C:\) is bundled. Data on other @@ -931,6 +1083,14 @@ func (c *EC2) BundleInstanceRequest(input *BundleInstanceInput) (req *request.Re // // For more information, see Creating an Instance Store-Backed Windows AMI // (http://docs.aws.amazon.com/AWSEC2/latest/WindowsGuide/Creating_InstanceStoreBacked_WinAMI.html). +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation, BundleInstance for more information, and other errors +// that the API operation could return. func (c *EC2) BundleInstance(input *BundleInstanceInput) (*BundleInstanceOutput, error) { req, out := c.BundleInstanceRequest(input) err := req.Send() @@ -978,7 +1138,17 @@ func (c *EC2) CancelBundleTaskRequest(input *CancelBundleTaskInput) (req *reques return } +// CancelBundleTask API operation for Amazon Elastic Compute Cloud. +// // Cancels a bundling operation for an instance store-backed Windows instance. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation, CancelBundleTask for more information, and other errors +// that the API operation could return. func (c *EC2) CancelBundleTask(input *CancelBundleTaskInput) (*CancelBundleTaskOutput, error) { req, out := c.CancelBundleTaskRequest(input) err := req.Send() @@ -1028,6 +1198,8 @@ func (c *EC2) CancelConversionTaskRequest(input *CancelConversionTaskInput) (req return } +// CancelConversionTask API operation for Amazon Elastic Compute Cloud. +// // Cancels an active conversion task. The task can be the import of an instance // or volume. The action removes all artifacts of the conversion, including // a partially uploaded volume or instance. If the conversion is complete or @@ -1036,6 +1208,14 @@ func (c *EC2) CancelConversionTaskRequest(input *CancelConversionTaskInput) (req // // For more information, see Importing a Virtual Machine Using the Amazon EC2 // CLI (http://docs.aws.amazon.com/AWSEC2/latest/CommandLineReference/ec2-cli-vmimport-export.html). +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation, CancelConversionTask for more information, and other errors +// that the API operation could return. func (c *EC2) CancelConversionTask(input *CancelConversionTaskInput) (*CancelConversionTaskOutput, error) { req, out := c.CancelConversionTaskRequest(input) err := req.Send() @@ -1085,10 +1265,20 @@ func (c *EC2) CancelExportTaskRequest(input *CancelExportTaskInput) (req *reques return } +// CancelExportTask API operation for Amazon Elastic Compute Cloud. +// // Cancels an active export task. The request removes all artifacts of the export, // including any partially-created Amazon S3 objects. If the export task is // complete or is in the process of transferring the final disk image, the command // fails and returns an error. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation, CancelExportTask for more information, and other errors +// that the API operation could return. func (c *EC2) CancelExportTask(input *CancelExportTaskInput) (*CancelExportTaskOutput, error) { req, out := c.CancelExportTaskRequest(input) err := req.Send() @@ -1136,7 +1326,17 @@ func (c *EC2) CancelImportTaskRequest(input *CancelImportTaskInput) (req *reques return } +// CancelImportTask API operation for Amazon Elastic Compute Cloud. +// // Cancels an in-process import virtual machine or import snapshot task. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation, CancelImportTask for more information, and other errors +// that the API operation could return. func (c *EC2) CancelImportTask(input *CancelImportTaskInput) (*CancelImportTaskOutput, error) { req, out := c.CancelImportTaskRequest(input) err := req.Send() @@ -1184,11 +1384,21 @@ func (c *EC2) CancelReservedInstancesListingRequest(input *CancelReservedInstanc return } +// CancelReservedInstancesListing API operation for Amazon Elastic Compute Cloud. +// // Cancels the specified Reserved Instance listing in the Reserved Instance // Marketplace. // // For more information, see Reserved Instance Marketplace (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ri-market-general.html) // in the Amazon Elastic Compute Cloud User Guide. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation, CancelReservedInstancesListing for more information, and other errors +// that the API operation could return. func (c *EC2) CancelReservedInstancesListing(input *CancelReservedInstancesListingInput) (*CancelReservedInstancesListingOutput, error) { req, out := c.CancelReservedInstancesListingRequest(input) err := req.Send() @@ -1236,6 +1446,8 @@ func (c *EC2) CancelSpotFleetRequestsRequest(input *CancelSpotFleetRequestsInput return } +// CancelSpotFleetRequests API operation for Amazon Elastic Compute Cloud. +// // Cancels the specified Spot fleet requests. // // After you cancel a Spot fleet request, the Spot fleet launches no new Spot @@ -1244,6 +1456,14 @@ func (c *EC2) CancelSpotFleetRequestsRequest(input *CancelSpotFleetRequestsInput // enters the cancelled_terminating state. Otherwise, the Spot fleet request // enters the cancelled_running state and the instances continue to run until // they are interrupted or you terminate them manually. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation, CancelSpotFleetRequests for more information, and other errors +// that the API operation could return. func (c *EC2) CancelSpotFleetRequests(input *CancelSpotFleetRequestsInput) (*CancelSpotFleetRequestsOutput, error) { req, out := c.CancelSpotFleetRequestsRequest(input) err := req.Send() @@ -1291,6 +1511,8 @@ func (c *EC2) CancelSpotInstanceRequestsRequest(input *CancelSpotInstanceRequest return } +// CancelSpotInstanceRequests API operation for Amazon Elastic Compute Cloud. +// // Cancels one or more Spot instance requests. Spot instances are instances // that Amazon EC2 starts on your behalf when the bid price that you specify // exceeds the current Spot price. Amazon EC2 periodically sets the Spot price @@ -1300,6 +1522,14 @@ func (c *EC2) CancelSpotInstanceRequestsRequest(input *CancelSpotInstanceRequest // // Canceling a Spot instance request does not terminate running Spot instances // associated with the request. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation, CancelSpotInstanceRequests for more information, and other errors +// that the API operation could return. func (c *EC2) CancelSpotInstanceRequests(input *CancelSpotInstanceRequestsInput) (*CancelSpotInstanceRequestsOutput, error) { req, out := c.CancelSpotInstanceRequestsRequest(input) err := req.Send() @@ -1347,10 +1577,20 @@ func (c *EC2) ConfirmProductInstanceRequest(input *ConfirmProductInstanceInput) return } +// ConfirmProductInstance API operation for Amazon Elastic Compute Cloud. +// // Determines whether a product code is associated with an instance. This action // can only be used by the owner of the product code. It is useful when a product // code owner needs to verify whether another user's instance is eligible for // support. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation, ConfirmProductInstance for more information, and other errors +// that the API operation could return. func (c *EC2) ConfirmProductInstance(input *ConfirmProductInstanceInput) (*ConfirmProductInstanceOutput, error) { req, out := c.ConfirmProductInstanceRequest(input) err := req.Send() @@ -1398,12 +1638,22 @@ func (c *EC2) CopyImageRequest(input *CopyImageInput) (req *request.Request, out return } +// CopyImage API operation for Amazon Elastic Compute Cloud. +// // Initiates the copy of an AMI from the specified source region to the current // region. You specify the destination region by using its endpoint when making // the request. // // For more information, see Copying AMIs (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/CopyingAMIs.html) // in the Amazon Elastic Compute Cloud User Guide. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation, CopyImage for more information, and other errors +// that the API operation could return. func (c *EC2) CopyImage(input *CopyImageInput) (*CopyImageOutput, error) { req, out := c.CopyImageRequest(input) err := req.Send() @@ -1451,6 +1701,8 @@ func (c *EC2) CopySnapshotRequest(input *CopySnapshotInput) (req *request.Reques return } +// CopySnapshot API operation for Amazon Elastic Compute Cloud. +// // Copies a point-in-time snapshot of an EBS volume and stores it in Amazon // S3. You can copy the snapshot within the same region or from one region to // another. You can use the snapshot to create EBS volumes or Amazon Machine @@ -1471,6 +1723,14 @@ func (c *EC2) CopySnapshotRequest(input *CopySnapshotInput) (req *request.Reques // // For more information, see Copying an Amazon EBS Snapshot (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-copy-snapshot.html) // in the Amazon Elastic Compute Cloud User Guide. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation, CopySnapshot for more information, and other errors +// that the API operation could return. func (c *EC2) CopySnapshot(input *CopySnapshotInput) (*CopySnapshotOutput, error) { req, out := c.CopySnapshotRequest(input) err := req.Send() @@ -1518,6 +1778,8 @@ func (c *EC2) CreateCustomerGatewayRequest(input *CreateCustomerGatewayInput) (r return } +// CreateCustomerGateway API operation for Amazon Elastic Compute Cloud. +// // Provides information to AWS about your VPN customer gateway device. The customer // gateway is the appliance at your end of the VPN connection. (The device on // the AWS side of the VPN connection is the virtual private gateway.) You must @@ -1543,6 +1805,14 @@ func (c *EC2) CreateCustomerGatewayRequest(input *CreateCustomerGatewayInput) (r // more than one time, the first request creates the customer gateway, and subsequent // requests return information about the existing customer gateway. The subsequent // requests do not create new customer gateway resources. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation, CreateCustomerGateway for more information, and other errors +// that the API operation could return. func (c *EC2) CreateCustomerGateway(input *CreateCustomerGatewayInput) (*CreateCustomerGatewayOutput, error) { req, out := c.CreateCustomerGatewayRequest(input) err := req.Send() @@ -1590,6 +1860,8 @@ func (c *EC2) CreateDhcpOptionsRequest(input *CreateDhcpOptionsInput) (req *requ return } +// CreateDhcpOptions API operation for Amazon Elastic Compute Cloud. +// // Creates a set of DHCP options for your VPC. After creating the set, you must // associate it with the VPC, causing all existing and new instances that you // launch in the VPC to use this set of DHCP options. The following are the @@ -1630,6 +1902,14 @@ func (c *EC2) CreateDhcpOptionsRequest(input *CreateDhcpOptionsInput) (req *requ // server of your choice. For more information about DHCP options, see DHCP // Options Sets (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_DHCP_Options.html) // in the Amazon Virtual Private Cloud User Guide. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation, CreateDhcpOptions for more information, and other errors +// that the API operation could return. func (c *EC2) CreateDhcpOptions(input *CreateDhcpOptionsInput) (*CreateDhcpOptionsOutput, error) { req, out := c.CreateDhcpOptionsRequest(input) err := req.Send() @@ -1677,6 +1957,8 @@ func (c *EC2) CreateFlowLogsRequest(input *CreateFlowLogsInput) (req *request.Re return } +// CreateFlowLogs API operation for Amazon Elastic Compute Cloud. +// // Creates one or more flow logs to capture IP traffic for a specific network // interface, subnet, or VPC. Flow logs are delivered to a specified log group // in Amazon CloudWatch Logs. If you specify a VPC or subnet in the request, @@ -1687,6 +1969,14 @@ func (c *EC2) CreateFlowLogsRequest(input *CreateFlowLogsInput) (req *request.Re // // In your request, you must also specify an IAM role that has permission to // publish logs to CloudWatch Logs. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation, CreateFlowLogs for more information, and other errors +// that the API operation could return. func (c *EC2) CreateFlowLogs(input *CreateFlowLogsInput) (*CreateFlowLogsOutput, error) { req, out := c.CreateFlowLogsRequest(input) err := req.Send() @@ -1734,6 +2024,8 @@ func (c *EC2) CreateImageRequest(input *CreateImageInput) (req *request.Request, return } +// CreateImage API operation for Amazon Elastic Compute Cloud. +// // Creates an Amazon EBS-backed AMI from an Amazon EBS-backed instance that // is either running or stopped. // @@ -1744,6 +2036,14 @@ func (c *EC2) CreateImageRequest(input *CreateImageInput) (req *request.Request, // // For more information, see Creating Amazon EBS-Backed Linux AMIs (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/creating-an-ami-ebs.html) // in the Amazon Elastic Compute Cloud User Guide. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation, CreateImage for more information, and other errors +// that the API operation could return. func (c *EC2) CreateImage(input *CreateImageInput) (*CreateImageOutput, error) { req, out := c.CreateImageRequest(input) err := req.Send() @@ -1791,12 +2091,22 @@ func (c *EC2) CreateInstanceExportTaskRequest(input *CreateInstanceExportTaskInp return } +// CreateInstanceExportTask API operation for Amazon Elastic Compute Cloud. +// // Exports a running or stopped instance to an S3 bucket. // // For information about the supported operating systems, image formats, and // known limitations for the types of instances you can export, see Exporting // an Instance as a VM Using VM Import/Export (http://docs.aws.amazon.com/vm-import/latest/userguide/vmexport.html) // in the VM Import/Export User Guide. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation, CreateInstanceExportTask for more information, and other errors +// that the API operation could return. func (c *EC2) CreateInstanceExportTask(input *CreateInstanceExportTaskInput) (*CreateInstanceExportTaskOutput, error) { req, out := c.CreateInstanceExportTaskRequest(input) err := req.Send() @@ -1844,11 +2154,21 @@ func (c *EC2) CreateInternetGatewayRequest(input *CreateInternetGatewayInput) (r return } +// CreateInternetGateway API operation for Amazon Elastic Compute Cloud. +// // Creates an Internet gateway for use with a VPC. After creating the Internet // gateway, you attach it to a VPC using AttachInternetGateway. // // For more information about your VPC and Internet gateway, see the Amazon // Virtual Private Cloud User Guide (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/). +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation, CreateInternetGateway for more information, and other errors +// that the API operation could return. func (c *EC2) CreateInternetGateway(input *CreateInternetGatewayInput) (*CreateInternetGatewayOutput, error) { req, out := c.CreateInternetGatewayRequest(input) err := req.Send() @@ -1896,6 +2216,8 @@ func (c *EC2) CreateKeyPairRequest(input *CreateKeyPairInput) (req *request.Requ return } +// CreateKeyPair API operation for Amazon Elastic Compute Cloud. +// // Creates a 2048-bit RSA key pair with the specified name. Amazon EC2 stores // the public key and displays the private key for you to save to a file. The // private key is returned as an unencrypted PEM encoded PKCS#8 private key. @@ -1908,6 +2230,14 @@ func (c *EC2) CreateKeyPairRequest(input *CreateKeyPairInput) (req *request.Requ // // For more information about key pairs, see Key Pairs (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-key-pairs.html) // in the Amazon Elastic Compute Cloud User Guide. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation, CreateKeyPair for more information, and other errors +// that the API operation could return. func (c *EC2) CreateKeyPair(input *CreateKeyPairInput) (*CreateKeyPairOutput, error) { req, out := c.CreateKeyPairRequest(input) err := req.Send() @@ -1955,12 +2285,22 @@ func (c *EC2) CreateNatGatewayRequest(input *CreateNatGatewayInput) (req *reques return } +// CreateNatGateway API operation for Amazon Elastic Compute Cloud. +// // Creates a NAT gateway in the specified subnet. A NAT gateway can be used // to enable instances in a private subnet to connect to the Internet. This // action creates a network interface in the specified subnet with a private // IP address from the IP address range of the subnet. For more information, // see NAT Gateways (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/vpc-nat-gateway.html) // in the Amazon Virtual Private Cloud User Guide. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation, CreateNatGateway for more information, and other errors +// that the API operation could return. func (c *EC2) CreateNatGateway(input *CreateNatGatewayInput) (*CreateNatGatewayOutput, error) { req, out := c.CreateNatGatewayRequest(input) err := req.Send() @@ -2008,11 +2348,21 @@ func (c *EC2) CreateNetworkAclRequest(input *CreateNetworkAclInput) (req *reques return } +// CreateNetworkAcl API operation for Amazon Elastic Compute Cloud. +// // Creates a network ACL in a VPC. Network ACLs provide an optional layer of // security (in addition to security groups) for the instances in your VPC. // // For more information about network ACLs, see Network ACLs (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_ACLs.html) // in the Amazon Virtual Private Cloud User Guide. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation, CreateNetworkAcl for more information, and other errors +// that the API operation could return. func (c *EC2) CreateNetworkAcl(input *CreateNetworkAclInput) (*CreateNetworkAclOutput, error) { req, out := c.CreateNetworkAclRequest(input) err := req.Send() @@ -2062,6 +2412,8 @@ func (c *EC2) CreateNetworkAclEntryRequest(input *CreateNetworkAclEntryInput) (r return } +// CreateNetworkAclEntry API operation for Amazon Elastic Compute Cloud. +// // Creates an entry (a rule) in a network ACL with the specified rule number. // Each network ACL has a set of numbered ingress rules and a separate set of // numbered egress rules. When determining whether a packet should be allowed @@ -2079,6 +2431,14 @@ func (c *EC2) CreateNetworkAclEntryRequest(input *CreateNetworkAclEntryInput) (r // // For more information about network ACLs, see Network ACLs (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_ACLs.html) // in the Amazon Virtual Private Cloud User Guide. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation, CreateNetworkAclEntry for more information, and other errors +// that the API operation could return. func (c *EC2) CreateNetworkAclEntry(input *CreateNetworkAclEntryInput) (*CreateNetworkAclEntryOutput, error) { req, out := c.CreateNetworkAclEntryRequest(input) err := req.Send() @@ -2126,11 +2486,21 @@ func (c *EC2) CreateNetworkInterfaceRequest(input *CreateNetworkInterfaceInput) return } +// CreateNetworkInterface API operation for Amazon Elastic Compute Cloud. +// // Creates a network interface in the specified subnet. // // For more information about network interfaces, see Elastic Network Interfaces // (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-eni.html) in the // Amazon Elastic Compute Cloud User Guide. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation, CreateNetworkInterface for more information, and other errors +// that the API operation could return. func (c *EC2) CreateNetworkInterface(input *CreateNetworkInterfaceInput) (*CreateNetworkInterfaceOutput, error) { req, out := c.CreateNetworkInterfaceRequest(input) err := req.Send() @@ -2180,12 +2550,22 @@ func (c *EC2) CreatePlacementGroupRequest(input *CreatePlacementGroupInput) (req return } +// CreatePlacementGroup API operation for Amazon Elastic Compute Cloud. +// // Creates a placement group that you launch cluster instances into. You must // give the group a name that's unique within the scope of your account. // // For more information about placement groups and cluster instances, see Cluster // Instances (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using_cluster_computing.html) // in the Amazon Elastic Compute Cloud User Guide. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation, CreatePlacementGroup for more information, and other errors +// that the API operation could return. func (c *EC2) CreatePlacementGroup(input *CreatePlacementGroupInput) (*CreatePlacementGroupOutput, error) { req, out := c.CreatePlacementGroupRequest(input) err := req.Send() @@ -2233,6 +2613,8 @@ func (c *EC2) CreateReservedInstancesListingRequest(input *CreateReservedInstanc return } +// CreateReservedInstancesListing API operation for Amazon Elastic Compute Cloud. +// // Creates a listing for Amazon EC2 Standard Reserved Instances to be sold in // the Reserved Instance Marketplace. You can submit one Standard Reserved Instance // listing at a time. To get a list of your Standard Reserved Instances, you @@ -2253,6 +2635,14 @@ func (c *EC2) CreateReservedInstancesListingRequest(input *CreateReservedInstanc // // For more information, see Reserved Instance Marketplace (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ri-market-general.html) // in the Amazon Elastic Compute Cloud User Guide. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation, CreateReservedInstancesListing for more information, and other errors +// that the API operation could return. func (c *EC2) CreateReservedInstancesListing(input *CreateReservedInstancesListingInput) (*CreateReservedInstancesListingOutput, error) { req, out := c.CreateReservedInstancesListingRequest(input) err := req.Send() @@ -2300,6 +2690,8 @@ func (c *EC2) CreateRouteRequest(input *CreateRouteInput) (req *request.Request, return } +// CreateRoute API operation for Amazon Elastic Compute Cloud. +// // Creates a route in a route table within a VPC. // // You must specify one of the following targets: Internet gateway or virtual @@ -2320,6 +2712,14 @@ func (c *EC2) CreateRouteRequest(input *CreateRouteInput) (req *request.Request, // // For more information about route tables, see Route Tables (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_Route_Tables.html) // in the Amazon Virtual Private Cloud User Guide. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation, CreateRoute for more information, and other errors +// that the API operation could return. func (c *EC2) CreateRoute(input *CreateRouteInput) (*CreateRouteOutput, error) { req, out := c.CreateRouteRequest(input) err := req.Send() @@ -2367,11 +2767,21 @@ func (c *EC2) CreateRouteTableRequest(input *CreateRouteTableInput) (req *reques return } +// CreateRouteTable API operation for Amazon Elastic Compute Cloud. +// // Creates a route table for the specified VPC. After you create a route table, // you can add routes and associate the table with a subnet. // // For more information about route tables, see Route Tables (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_Route_Tables.html) // in the Amazon Virtual Private Cloud User Guide. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation, CreateRouteTable for more information, and other errors +// that the API operation could return. func (c *EC2) CreateRouteTable(input *CreateRouteTableInput) (*CreateRouteTableOutput, error) { req, out := c.CreateRouteTableRequest(input) err := req.Send() @@ -2419,6 +2829,8 @@ func (c *EC2) CreateSecurityGroupRequest(input *CreateSecurityGroupInput) (req * return } +// CreateSecurityGroup API operation for Amazon Elastic Compute Cloud. +// // Creates a security group. // // A security group is for use with instances either in the EC2-Classic platform @@ -2446,6 +2858,14 @@ func (c *EC2) CreateSecurityGroupRequest(input *CreateSecurityGroupInput) (req * // // You can add or remove rules from your security groups using AuthorizeSecurityGroupIngress, // AuthorizeSecurityGroupEgress, RevokeSecurityGroupIngress, and RevokeSecurityGroupEgress. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation, CreateSecurityGroup for more information, and other errors +// that the API operation could return. func (c *EC2) CreateSecurityGroup(input *CreateSecurityGroupInput) (*CreateSecurityGroupOutput, error) { req, out := c.CreateSecurityGroupRequest(input) err := req.Send() @@ -2493,6 +2913,8 @@ func (c *EC2) CreateSnapshotRequest(input *CreateSnapshotInput) (req *request.Re return } +// CreateSnapshot API operation for Amazon Elastic Compute Cloud. +// // Creates a snapshot of an EBS volume and stores it in Amazon S3. You can use // snapshots for backups, to make copies of EBS volumes, and to save data before // shutting down an instance. @@ -2521,6 +2943,14 @@ func (c *EC2) CreateSnapshotRequest(input *CreateSnapshotInput) (req *request.Re // For more information, see Amazon Elastic Block Store (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/AmazonEBS.html) // and Amazon EBS Encryption (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSEncryption.html) // in the Amazon Elastic Compute Cloud User Guide. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation, CreateSnapshot for more information, and other errors +// that the API operation could return. func (c *EC2) CreateSnapshot(input *CreateSnapshotInput) (*Snapshot, error) { req, out := c.CreateSnapshotRequest(input) err := req.Send() @@ -2568,10 +2998,20 @@ func (c *EC2) CreateSpotDatafeedSubscriptionRequest(input *CreateSpotDatafeedSub return } +// CreateSpotDatafeedSubscription API operation for Amazon Elastic Compute Cloud. +// // Creates a data feed for Spot instances, enabling you to view Spot instance // usage logs. You can create one data feed per AWS account. For more information, // see Spot Instance Data Feed (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/spot-data-feeds.html) // in the Amazon Elastic Compute Cloud User Guide. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation, CreateSpotDatafeedSubscription for more information, and other errors +// that the API operation could return. func (c *EC2) CreateSpotDatafeedSubscription(input *CreateSpotDatafeedSubscriptionInput) (*CreateSpotDatafeedSubscriptionOutput, error) { req, out := c.CreateSpotDatafeedSubscriptionRequest(input) err := req.Send() @@ -2619,6 +3059,8 @@ func (c *EC2) CreateSubnetRequest(input *CreateSubnetInput) (req *request.Reques return } +// CreateSubnet API operation for Amazon Elastic Compute Cloud. +// // Creates a subnet in an existing VPC. // // When you create each subnet, you provide the VPC ID and the CIDR block you @@ -2644,6 +3086,14 @@ func (c *EC2) CreateSubnetRequest(input *CreateSubnetInput) (req *request.Reques // // For more information about subnets, see Your VPC and Subnets (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_Subnets.html) // in the Amazon Virtual Private Cloud User Guide. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation, CreateSubnet for more information, and other errors +// that the API operation could return. func (c *EC2) CreateSubnet(input *CreateSubnetInput) (*CreateSubnetOutput, error) { req, out := c.CreateSubnetRequest(input) err := req.Send() @@ -2693,6 +3143,8 @@ func (c *EC2) CreateTagsRequest(input *CreateTagsInput) (req *request.Request, o return } +// CreateTags API operation for Amazon Elastic Compute Cloud. +// // Adds or overwrites one or more tags for the specified Amazon EC2 resource // or resources. Each resource can have a maximum of 50 tags. Each tag consists // of a key and optional value. Tag keys must be unique per resource. @@ -2702,6 +3154,14 @@ func (c *EC2) CreateTagsRequest(input *CreateTagsInput) (req *request.Request, o // creating IAM policies that control users' access to resources based on tags, // see Supported Resource-Level Permissions for Amazon EC2 API Actions (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-supported-iam-actions-resources.html) // in the Amazon Elastic Compute Cloud User Guide. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation, CreateTags for more information, and other errors +// that the API operation could return. func (c *EC2) CreateTags(input *CreateTagsInput) (*CreateTagsOutput, error) { req, out := c.CreateTagsRequest(input) err := req.Send() @@ -2749,6 +3209,8 @@ func (c *EC2) CreateVolumeRequest(input *CreateVolumeInput) (req *request.Reques return } +// CreateVolume API operation for Amazon Elastic Compute Cloud. +// // Creates an EBS volume that can be attached to an instance in the same Availability // Zone. The volume is created in the regional endpoint that you send the HTTP // request to. For more information see Regions and Endpoints (http://docs.aws.amazon.com/general/latest/gr/rande.html). @@ -2765,6 +3227,14 @@ func (c *EC2) CreateVolumeRequest(input *CreateVolumeInput) (req *request.Reques // // For more information, see Creating or Restoring an Amazon EBS Volume (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-creating-volume.html) // in the Amazon Elastic Compute Cloud User Guide. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation, CreateVolume for more information, and other errors +// that the API operation could return. func (c *EC2) CreateVolume(input *CreateVolumeInput) (*Volume, error) { req, out := c.CreateVolumeRequest(input) err := req.Send() @@ -2812,6 +3282,8 @@ func (c *EC2) CreateVpcRequest(input *CreateVpcInput) (req *request.Request, out return } +// CreateVpc API operation for Amazon Elastic Compute Cloud. +// // Creates a VPC with the specified CIDR block. // // The smallest VPC you can create uses a /28 netmask (16 IP addresses), and @@ -2828,6 +3300,14 @@ func (c *EC2) CreateVpcRequest(input *CreateVpcInput) (req *request.Request, out // 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. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation, CreateVpc for more information, and other errors +// that the API operation could return. func (c *EC2) CreateVpc(input *CreateVpcInput) (*CreateVpcOutput, error) { req, out := c.CreateVpcRequest(input) err := req.Send() @@ -2875,6 +3355,8 @@ func (c *EC2) CreateVpcEndpointRequest(input *CreateVpcEndpointInput) (req *requ return } +// CreateVpcEndpoint API operation for Amazon Elastic Compute Cloud. +// // Creates a VPC endpoint for a specified AWS service. An endpoint enables you // to create a private connection between your VPC and another AWS service in // your account. You can specify an endpoint policy to attach to the endpoint @@ -2882,6 +3364,14 @@ func (c *EC2) CreateVpcEndpointRequest(input *CreateVpcEndpointInput) (req *requ // the VPC route tables that use the endpoint. // // Currently, only endpoints to Amazon S3 are supported. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation, CreateVpcEndpoint for more information, and other errors +// that the API operation could return. func (c *EC2) CreateVpcEndpoint(input *CreateVpcEndpointInput) (*CreateVpcEndpointOutput, error) { req, out := c.CreateVpcEndpointRequest(input) err := req.Send() @@ -2929,6 +3419,8 @@ func (c *EC2) CreateVpcPeeringConnectionRequest(input *CreateVpcPeeringConnectio return } +// CreateVpcPeeringConnection API operation for Amazon Elastic Compute Cloud. +// // Requests a VPC peering connection between two VPCs: a requester VPC that // you own and a peer VPC with which to create the connection. The peer VPC // can belong to another AWS account. The requester VPC and peer VPC cannot @@ -2940,6 +3432,14 @@ func (c *EC2) CreateVpcPeeringConnectionRequest(input *CreateVpcPeeringConnectio // // A CreateVpcPeeringConnection request between VPCs with overlapping CIDR // blocks results in the VPC peering connection having a status of failed. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation, CreateVpcPeeringConnection for more information, and other errors +// that the API operation could return. func (c *EC2) CreateVpcPeeringConnection(input *CreateVpcPeeringConnectionInput) (*CreateVpcPeeringConnectionOutput, error) { req, out := c.CreateVpcPeeringConnectionRequest(input) err := req.Send() @@ -2987,6 +3487,8 @@ func (c *EC2) CreateVpnConnectionRequest(input *CreateVpnConnectionInput) (req * return } +// CreateVpnConnection API operation for Amazon Elastic Compute Cloud. +// // Creates a VPN connection between an existing virtual private gateway and // a VPN customer gateway. The only supported connection type is ipsec.1. // @@ -3007,6 +3509,14 @@ func (c *EC2) CreateVpnConnectionRequest(input *CreateVpnConnectionInput) (req * // For more information about VPN connections, see Adding a Hardware Virtual // Private Gateway to Your VPC (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_VPN.html) // in the Amazon Virtual Private Cloud User Guide. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation, CreateVpnConnection for more information, and other errors +// that the API operation could return. func (c *EC2) CreateVpnConnection(input *CreateVpnConnectionInput) (*CreateVpnConnectionOutput, error) { req, out := c.CreateVpnConnectionRequest(input) err := req.Send() @@ -3056,6 +3566,8 @@ func (c *EC2) CreateVpnConnectionRouteRequest(input *CreateVpnConnectionRouteInp return } +// CreateVpnConnectionRoute API operation for Amazon Elastic Compute Cloud. +// // Creates a static route associated with a VPN connection between an existing // virtual private gateway and a VPN customer gateway. The static route allows // traffic to be routed from the virtual private gateway to the VPN customer @@ -3064,6 +3576,14 @@ func (c *EC2) CreateVpnConnectionRouteRequest(input *CreateVpnConnectionRouteInp // For more information about VPN connections, see Adding a Hardware Virtual // Private Gateway to Your VPC (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_VPN.html) // in the Amazon Virtual Private Cloud User Guide. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation, CreateVpnConnectionRoute for more information, and other errors +// that the API operation could return. func (c *EC2) CreateVpnConnectionRoute(input *CreateVpnConnectionRouteInput) (*CreateVpnConnectionRouteOutput, error) { req, out := c.CreateVpnConnectionRouteRequest(input) err := req.Send() @@ -3111,6 +3631,8 @@ func (c *EC2) CreateVpnGatewayRequest(input *CreateVpnGatewayInput) (req *reques return } +// CreateVpnGateway API operation for Amazon Elastic Compute Cloud. +// // Creates a virtual private gateway. A virtual private gateway is the endpoint // on the VPC side of your VPN connection. You can create a virtual private // gateway before creating the VPC itself. @@ -3118,6 +3640,14 @@ func (c *EC2) CreateVpnGatewayRequest(input *CreateVpnGatewayInput) (req *reques // For more information about virtual private gateways, see Adding a Hardware // Virtual Private Gateway to Your VPC (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_VPN.html) // in the Amazon Virtual Private Cloud User Guide. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation, CreateVpnGateway for more information, and other errors +// that the API operation could return. func (c *EC2) CreateVpnGateway(input *CreateVpnGatewayInput) (*CreateVpnGatewayOutput, error) { req, out := c.CreateVpnGatewayRequest(input) err := req.Send() @@ -3167,8 +3697,18 @@ func (c *EC2) DeleteCustomerGatewayRequest(input *DeleteCustomerGatewayInput) (r return } +// DeleteCustomerGateway API operation for Amazon Elastic Compute Cloud. +// // Deletes the specified customer gateway. You must delete the VPN connection // before you can delete the customer gateway. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation, DeleteCustomerGateway for more information, and other errors +// that the API operation could return. func (c *EC2) DeleteCustomerGateway(input *DeleteCustomerGatewayInput) (*DeleteCustomerGatewayOutput, error) { req, out := c.DeleteCustomerGatewayRequest(input) err := req.Send() @@ -3218,10 +3758,20 @@ func (c *EC2) DeleteDhcpOptionsRequest(input *DeleteDhcpOptionsInput) (req *requ return } +// DeleteDhcpOptions API operation for Amazon Elastic Compute Cloud. +// // Deletes the specified set of DHCP options. You must disassociate the set // of DHCP options before you can delete it. You can disassociate the set of // DHCP options by associating either a new set of options or the default set // of options with the VPC. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation, DeleteDhcpOptions for more information, and other errors +// that the API operation could return. func (c *EC2) DeleteDhcpOptions(input *DeleteDhcpOptionsInput) (*DeleteDhcpOptionsOutput, error) { req, out := c.DeleteDhcpOptionsRequest(input) err := req.Send() @@ -3269,7 +3819,17 @@ func (c *EC2) DeleteFlowLogsRequest(input *DeleteFlowLogsInput) (req *request.Re return } +// DeleteFlowLogs API operation for Amazon Elastic Compute Cloud. +// // Deletes one or more flow logs. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation, DeleteFlowLogs for more information, and other errors +// that the API operation could return. func (c *EC2) DeleteFlowLogs(input *DeleteFlowLogsInput) (*DeleteFlowLogsOutput, error) { req, out := c.DeleteFlowLogsRequest(input) err := req.Send() @@ -3319,8 +3879,18 @@ func (c *EC2) DeleteInternetGatewayRequest(input *DeleteInternetGatewayInput) (r return } +// DeleteInternetGateway API operation for Amazon Elastic Compute Cloud. +// // Deletes the specified Internet gateway. You must detach the Internet gateway // from the VPC before you can delete it. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation, DeleteInternetGateway for more information, and other errors +// that the API operation could return. func (c *EC2) DeleteInternetGateway(input *DeleteInternetGatewayInput) (*DeleteInternetGatewayOutput, error) { req, out := c.DeleteInternetGatewayRequest(input) err := req.Send() @@ -3370,7 +3940,17 @@ func (c *EC2) DeleteKeyPairRequest(input *DeleteKeyPairInput) (req *request.Requ return } +// DeleteKeyPair API operation for Amazon Elastic Compute Cloud. +// // Deletes the specified key pair, by removing the public key from Amazon EC2. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation, DeleteKeyPair for more information, and other errors +// that the API operation could return. func (c *EC2) DeleteKeyPair(input *DeleteKeyPairInput) (*DeleteKeyPairOutput, error) { req, out := c.DeleteKeyPairRequest(input) err := req.Send() @@ -3418,9 +3998,19 @@ func (c *EC2) DeleteNatGatewayRequest(input *DeleteNatGatewayInput) (req *reques return } +// DeleteNatGateway API operation for Amazon Elastic Compute Cloud. +// // Deletes the specified NAT gateway. Deleting a NAT gateway disassociates its // Elastic IP address, but does not release the address from your account. Deleting // a NAT gateway does not delete any NAT gateway routes in your route tables. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation, DeleteNatGateway for more information, and other errors +// that the API operation could return. func (c *EC2) DeleteNatGateway(input *DeleteNatGatewayInput) (*DeleteNatGatewayOutput, error) { req, out := c.DeleteNatGatewayRequest(input) err := req.Send() @@ -3470,8 +4060,18 @@ func (c *EC2) DeleteNetworkAclRequest(input *DeleteNetworkAclInput) (req *reques return } +// DeleteNetworkAcl API operation for Amazon Elastic Compute Cloud. +// // Deletes the specified network ACL. You can't delete the ACL if it's associated // with any subnets. You can't delete the default network ACL. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation, DeleteNetworkAcl for more information, and other errors +// that the API operation could return. func (c *EC2) DeleteNetworkAcl(input *DeleteNetworkAclInput) (*DeleteNetworkAclOutput, error) { req, out := c.DeleteNetworkAclRequest(input) err := req.Send() @@ -3521,8 +4121,18 @@ func (c *EC2) DeleteNetworkAclEntryRequest(input *DeleteNetworkAclEntryInput) (r return } +// DeleteNetworkAclEntry API operation for Amazon Elastic Compute Cloud. +// // Deletes the specified ingress or egress entry (rule) from the specified network // ACL. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation, DeleteNetworkAclEntry for more information, and other errors +// that the API operation could return. func (c *EC2) DeleteNetworkAclEntry(input *DeleteNetworkAclEntryInput) (*DeleteNetworkAclEntryOutput, error) { req, out := c.DeleteNetworkAclEntryRequest(input) err := req.Send() @@ -3572,8 +4182,18 @@ func (c *EC2) DeleteNetworkInterfaceRequest(input *DeleteNetworkInterfaceInput) return } +// DeleteNetworkInterface API operation for Amazon Elastic Compute Cloud. +// // Deletes the specified network interface. You must detach the network interface // before you can delete it. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation, DeleteNetworkInterface for more information, and other errors +// that the API operation could return. func (c *EC2) DeleteNetworkInterface(input *DeleteNetworkInterfaceInput) (*DeleteNetworkInterfaceOutput, error) { req, out := c.DeleteNetworkInterfaceRequest(input) err := req.Send() @@ -3623,10 +4243,20 @@ func (c *EC2) DeletePlacementGroupRequest(input *DeletePlacementGroupInput) (req return } +// DeletePlacementGroup API operation for Amazon Elastic Compute Cloud. +// // Deletes the specified placement group. You must terminate all instances in // the placement group before you can delete the placement group. For more information // about placement groups and cluster instances, see Cluster Instances (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using_cluster_computing.html) // in the Amazon Elastic Compute Cloud User Guide. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation, DeletePlacementGroup for more information, and other errors +// that the API operation could return. func (c *EC2) DeletePlacementGroup(input *DeletePlacementGroupInput) (*DeletePlacementGroupOutput, error) { req, out := c.DeletePlacementGroupRequest(input) err := req.Send() @@ -3676,7 +4306,17 @@ func (c *EC2) DeleteRouteRequest(input *DeleteRouteInput) (req *request.Request, return } +// DeleteRoute API operation for Amazon Elastic Compute Cloud. +// // Deletes the specified route from the specified route table. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation, DeleteRoute for more information, and other errors +// that the API operation could return. func (c *EC2) DeleteRoute(input *DeleteRouteInput) (*DeleteRouteOutput, error) { req, out := c.DeleteRouteRequest(input) err := req.Send() @@ -3726,9 +4366,19 @@ func (c *EC2) DeleteRouteTableRequest(input *DeleteRouteTableInput) (req *reques return } +// DeleteRouteTable API operation for Amazon Elastic Compute Cloud. +// // Deletes the specified route table. You must disassociate the route table // from any subnets before you can delete it. You can't delete the main route // table. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation, DeleteRouteTable for more information, and other errors +// that the API operation could return. func (c *EC2) DeleteRouteTable(input *DeleteRouteTableInput) (*DeleteRouteTableOutput, error) { req, out := c.DeleteRouteTableRequest(input) err := req.Send() @@ -3778,11 +4428,21 @@ func (c *EC2) DeleteSecurityGroupRequest(input *DeleteSecurityGroupInput) (req * return } +// DeleteSecurityGroup API operation for Amazon Elastic Compute Cloud. +// // Deletes a security group. // // If you attempt to delete a security group that is associated with an instance, // or is referenced by another security group, the operation fails with InvalidGroup.InUse // in EC2-Classic or DependencyViolation in EC2-VPC. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation, DeleteSecurityGroup for more information, and other errors +// that the API operation could return. func (c *EC2) DeleteSecurityGroup(input *DeleteSecurityGroupInput) (*DeleteSecurityGroupOutput, error) { req, out := c.DeleteSecurityGroupRequest(input) err := req.Send() @@ -3832,6 +4492,8 @@ func (c *EC2) DeleteSnapshotRequest(input *DeleteSnapshotInput) (req *request.Re return } +// DeleteSnapshot API operation for Amazon Elastic Compute Cloud. +// // Deletes the specified snapshot. // // When you make periodic snapshots of a volume, the snapshots are incremental, @@ -3847,6 +4509,14 @@ func (c *EC2) DeleteSnapshotRequest(input *DeleteSnapshotInput) (req *request.Re // // For more information, see Deleting an Amazon EBS Snapshot (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-deleting-snapshot.html) // in the Amazon Elastic Compute Cloud User Guide. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation, DeleteSnapshot for more information, and other errors +// that the API operation could return. func (c *EC2) DeleteSnapshot(input *DeleteSnapshotInput) (*DeleteSnapshotOutput, error) { req, out := c.DeleteSnapshotRequest(input) err := req.Send() @@ -3896,7 +4566,17 @@ func (c *EC2) DeleteSpotDatafeedSubscriptionRequest(input *DeleteSpotDatafeedSub return } +// DeleteSpotDatafeedSubscription API operation for Amazon Elastic Compute Cloud. +// // Deletes the data feed for Spot instances. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation, DeleteSpotDatafeedSubscription for more information, and other errors +// that the API operation could return. func (c *EC2) DeleteSpotDatafeedSubscription(input *DeleteSpotDatafeedSubscriptionInput) (*DeleteSpotDatafeedSubscriptionOutput, error) { req, out := c.DeleteSpotDatafeedSubscriptionRequest(input) err := req.Send() @@ -3946,8 +4626,18 @@ func (c *EC2) DeleteSubnetRequest(input *DeleteSubnetInput) (req *request.Reques return } +// DeleteSubnet API operation for Amazon Elastic Compute Cloud. +// // Deletes the specified subnet. You must terminate all running instances in // the subnet before you can delete the subnet. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation, DeleteSubnet for more information, and other errors +// that the API operation could return. func (c *EC2) DeleteSubnet(input *DeleteSubnetInput) (*DeleteSubnetOutput, error) { req, out := c.DeleteSubnetRequest(input) err := req.Send() @@ -3997,11 +4687,21 @@ func (c *EC2) DeleteTagsRequest(input *DeleteTagsInput) (req *request.Request, o return } +// DeleteTags API operation for Amazon Elastic Compute Cloud. +// // Deletes the specified set of tags from the specified set of resources. This // call is designed to follow a DescribeTags request. // // For more information about tags, see Tagging Your Resources (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Using_Tags.html) // in the Amazon Elastic Compute Cloud User Guide. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation, DeleteTags for more information, and other errors +// that the API operation could return. func (c *EC2) DeleteTags(input *DeleteTagsInput) (*DeleteTagsOutput, error) { req, out := c.DeleteTagsRequest(input) err := req.Send() @@ -4051,6 +4751,8 @@ func (c *EC2) DeleteVolumeRequest(input *DeleteVolumeInput) (req *request.Reques return } +// DeleteVolume API operation for Amazon Elastic Compute Cloud. +// // Deletes the specified EBS volume. The volume must be in the available state // (not attached to an instance). // @@ -4058,6 +4760,14 @@ func (c *EC2) DeleteVolumeRequest(input *DeleteVolumeInput) (req *request.Reques // // For more information, see Deleting an Amazon EBS Volume (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-deleting-volume.html) // in the Amazon Elastic Compute Cloud User Guide. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation, DeleteVolume for more information, and other errors +// that the API operation could return. func (c *EC2) DeleteVolume(input *DeleteVolumeInput) (*DeleteVolumeOutput, error) { req, out := c.DeleteVolumeRequest(input) err := req.Send() @@ -4107,11 +4817,21 @@ func (c *EC2) DeleteVpcRequest(input *DeleteVpcInput) (req *request.Request, out return } +// DeleteVpc API operation for Amazon Elastic Compute Cloud. +// // Deletes the specified VPC. You must detach or delete all gateways and resources // that are associated with the VPC before you can delete it. For example, you // must terminate all instances running in the VPC, delete all security groups // associated with the VPC (except the default one), delete all route tables // associated with the VPC (except the default one), and so on. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation, DeleteVpc for more information, and other errors +// that the API operation could return. func (c *EC2) DeleteVpc(input *DeleteVpcInput) (*DeleteVpcOutput, error) { req, out := c.DeleteVpcRequest(input) err := req.Send() @@ -4159,8 +4879,18 @@ func (c *EC2) DeleteVpcEndpointsRequest(input *DeleteVpcEndpointsInput) (req *re return } +// DeleteVpcEndpoints API operation for Amazon Elastic Compute Cloud. +// // Deletes one or more specified VPC endpoints. Deleting the endpoint also deletes // the endpoint routes in the route tables that were associated with the endpoint. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation, DeleteVpcEndpoints for more information, and other errors +// that the API operation could return. func (c *EC2) DeleteVpcEndpoints(input *DeleteVpcEndpointsInput) (*DeleteVpcEndpointsOutput, error) { req, out := c.DeleteVpcEndpointsRequest(input) err := req.Send() @@ -4208,10 +4938,20 @@ func (c *EC2) DeleteVpcPeeringConnectionRequest(input *DeleteVpcPeeringConnectio return } +// DeleteVpcPeeringConnection API operation for Amazon Elastic Compute Cloud. +// // Deletes a VPC peering connection. Either the owner of the requester VPC or // the owner of the peer VPC can delete the VPC peering connection if it's in // the active state. The owner of the requester VPC can delete a VPC peering // connection in the pending-acceptance state. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation, DeleteVpcPeeringConnection for more information, and other errors +// that the API operation could return. func (c *EC2) DeleteVpcPeeringConnection(input *DeleteVpcPeeringConnectionInput) (*DeleteVpcPeeringConnectionOutput, error) { req, out := c.DeleteVpcPeeringConnectionRequest(input) err := req.Send() @@ -4261,6 +5001,8 @@ func (c *EC2) DeleteVpnConnectionRequest(input *DeleteVpnConnectionInput) (req * return } +// DeleteVpnConnection API operation for Amazon Elastic Compute Cloud. +// // Deletes the specified VPN connection. // // If you're deleting the VPC and its associated components, we recommend that @@ -4271,6 +5013,14 @@ func (c *EC2) DeleteVpnConnectionRequest(input *DeleteVpnConnectionInput) (req * // or virtual private gateway. If you create a new VPN connection, you must // reconfigure the customer gateway using the new configuration information // returned with the new VPN connection ID. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation, DeleteVpnConnection for more information, and other errors +// that the API operation could return. func (c *EC2) DeleteVpnConnection(input *DeleteVpnConnectionInput) (*DeleteVpnConnectionOutput, error) { req, out := c.DeleteVpnConnectionRequest(input) err := req.Send() @@ -4320,10 +5070,20 @@ func (c *EC2) DeleteVpnConnectionRouteRequest(input *DeleteVpnConnectionRouteInp return } +// DeleteVpnConnectionRoute API operation for Amazon Elastic Compute Cloud. +// // Deletes the specified static route associated with a VPN connection between // an existing virtual private gateway and a VPN customer gateway. The static // route allows traffic to be routed from the virtual private gateway to the // VPN customer gateway. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation, DeleteVpnConnectionRoute for more information, and other errors +// that the API operation could return. func (c *EC2) DeleteVpnConnectionRoute(input *DeleteVpnConnectionRouteInput) (*DeleteVpnConnectionRouteOutput, error) { req, out := c.DeleteVpnConnectionRouteRequest(input) err := req.Send() @@ -4373,11 +5133,21 @@ func (c *EC2) DeleteVpnGatewayRequest(input *DeleteVpnGatewayInput) (req *reques return } +// DeleteVpnGateway API operation for Amazon Elastic Compute Cloud. +// // Deletes the specified virtual private gateway. We recommend that before you // delete a virtual private gateway, you detach it from the VPC and delete the // VPN connection. Note that you don't need to delete the virtual private gateway // if you plan to delete and recreate the VPN connection between your VPC and // your network. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation, DeleteVpnGateway for more information, and other errors +// that the API operation could return. func (c *EC2) DeleteVpnGateway(input *DeleteVpnGatewayInput) (*DeleteVpnGatewayOutput, error) { req, out := c.DeleteVpnGatewayRequest(input) err := req.Send() @@ -4427,10 +5197,20 @@ func (c *EC2) DeregisterImageRequest(input *DeregisterImageInput) (req *request. return } +// DeregisterImage API operation for Amazon Elastic Compute Cloud. +// // Deregisters the specified AMI. After you deregister an AMI, it can't be used // to launch new instances. // // This command does not delete the AMI. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation, DeregisterImage for more information, and other errors +// that the API operation could return. func (c *EC2) DeregisterImage(input *DeregisterImageInput) (*DeregisterImageOutput, error) { req, out := c.DeregisterImageRequest(input) err := req.Send() @@ -4478,6 +5258,8 @@ func (c *EC2) DescribeAccountAttributesRequest(input *DescribeAccountAttributesI return } +// DescribeAccountAttributes API operation for Amazon Elastic Compute Cloud. +// // Describes attributes of your AWS account. The following are the supported // account attributes: // @@ -4497,6 +5279,14 @@ func (c *EC2) DescribeAccountAttributesRequest(input *DescribeAccountAttributesI // // vpc-max-elastic-ips: The maximum number of Elastic IP addresses that // you can allocate for use with EC2-VPC. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation, DescribeAccountAttributes for more information, and other errors +// that the API operation could return. func (c *EC2) DescribeAccountAttributes(input *DescribeAccountAttributesInput) (*DescribeAccountAttributesOutput, error) { req, out := c.DescribeAccountAttributesRequest(input) err := req.Send() @@ -4544,11 +5334,21 @@ func (c *EC2) DescribeAddressesRequest(input *DescribeAddressesInput) (req *requ return } +// DescribeAddresses API operation for Amazon Elastic Compute Cloud. +// // Describes one or more of your Elastic IP addresses. // // An Elastic IP address is for use in either the EC2-Classic platform or in // a VPC. For more information, see Elastic IP Addresses (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/elastic-ip-addresses-eip.html) // in the Amazon Elastic Compute Cloud User Guide. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation, DescribeAddresses for more information, and other errors +// that the API operation could return. func (c *EC2) DescribeAddresses(input *DescribeAddressesInput) (*DescribeAddressesOutput, error) { req, out := c.DescribeAddressesRequest(input) err := req.Send() @@ -4596,6 +5396,8 @@ func (c *EC2) DescribeAvailabilityZonesRequest(input *DescribeAvailabilityZonesI return } +// DescribeAvailabilityZones API operation for Amazon Elastic Compute Cloud. +// // Describes one or more of the Availability Zones that are available to you. // The results include zones only for the region you're currently using. If // there is an event impacting an Availability Zone, you can use this request @@ -4603,6 +5405,14 @@ func (c *EC2) DescribeAvailabilityZonesRequest(input *DescribeAvailabilityZonesI // // For more information, see Regions and Availability Zones (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-regions-availability-zones.html) // in the Amazon Elastic Compute Cloud User Guide. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation, DescribeAvailabilityZones for more information, and other errors +// that the API operation could return. func (c *EC2) DescribeAvailabilityZones(input *DescribeAvailabilityZonesInput) (*DescribeAvailabilityZonesOutput, error) { req, out := c.DescribeAvailabilityZonesRequest(input) err := req.Send() @@ -4650,12 +5460,22 @@ func (c *EC2) DescribeBundleTasksRequest(input *DescribeBundleTasksInput) (req * return } +// DescribeBundleTasks API operation for Amazon Elastic Compute Cloud. +// // Describes one or more of your bundling tasks. // // Completed bundle tasks are listed for only a limited time. If your bundle // task is no longer in the list, you can still register an AMI from it. Just // use RegisterImage with the Amazon S3 bucket name and image manifest name // you provided to the bundle task. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation, DescribeBundleTasks for more information, and other errors +// that the API operation could return. func (c *EC2) DescribeBundleTasks(input *DescribeBundleTasksInput) (*DescribeBundleTasksOutput, error) { req, out := c.DescribeBundleTasksRequest(input) err := req.Send() @@ -4703,10 +5523,20 @@ func (c *EC2) DescribeClassicLinkInstancesRequest(input *DescribeClassicLinkInst return } +// DescribeClassicLinkInstances API operation for Amazon Elastic Compute Cloud. +// // Describes one or more of your linked EC2-Classic instances. This request // only returns information about EC2-Classic instances linked to a VPC through // ClassicLink; you cannot use this request to return information about other // instances. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation, DescribeClassicLinkInstances for more information, and other errors +// that the API operation could return. func (c *EC2) DescribeClassicLinkInstances(input *DescribeClassicLinkInstancesInput) (*DescribeClassicLinkInstancesOutput, error) { req, out := c.DescribeClassicLinkInstancesRequest(input) err := req.Send() @@ -4754,11 +5584,21 @@ func (c *EC2) DescribeConversionTasksRequest(input *DescribeConversionTasksInput return } +// DescribeConversionTasks API operation for Amazon Elastic Compute Cloud. +// // Describes one or more of your conversion tasks. For more information, see // the VM Import/Export User Guide (http://docs.aws.amazon.com/vm-import/latest/userguide/). // // For information about the import manifest referenced by this API action, // see VM Import Manifest (http://docs.aws.amazon.com/AWSEC2/latest/APIReference/manifest.html). +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation, DescribeConversionTasks for more information, and other errors +// that the API operation could return. func (c *EC2) DescribeConversionTasks(input *DescribeConversionTasksInput) (*DescribeConversionTasksOutput, error) { req, out := c.DescribeConversionTasksRequest(input) err := req.Send() @@ -4806,11 +5646,21 @@ func (c *EC2) DescribeCustomerGatewaysRequest(input *DescribeCustomerGatewaysInp return } +// DescribeCustomerGateways API operation for Amazon Elastic Compute Cloud. +// // Describes one or more of your VPN customer gateways. // // For more information about VPN customer gateways, see Adding a Hardware // Virtual Private Gateway to Your VPC (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_VPN.html) // in the Amazon Virtual Private Cloud User Guide. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation, DescribeCustomerGateways for more information, and other errors +// that the API operation could return. func (c *EC2) DescribeCustomerGateways(input *DescribeCustomerGatewaysInput) (*DescribeCustomerGatewaysOutput, error) { req, out := c.DescribeCustomerGatewaysRequest(input) err := req.Send() @@ -4858,10 +5708,20 @@ func (c *EC2) DescribeDhcpOptionsRequest(input *DescribeDhcpOptionsInput) (req * return } +// DescribeDhcpOptions API operation for Amazon Elastic Compute Cloud. +// // Describes one or more of your DHCP options sets. // // For more information about DHCP options sets, see DHCP Options Sets (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_DHCP_Options.html) // in the Amazon Virtual Private Cloud User Guide. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation, DescribeDhcpOptions for more information, and other errors +// that the API operation could return. func (c *EC2) DescribeDhcpOptions(input *DescribeDhcpOptionsInput) (*DescribeDhcpOptionsOutput, error) { req, out := c.DescribeDhcpOptionsRequest(input) err := req.Send() @@ -4909,7 +5769,17 @@ func (c *EC2) DescribeExportTasksRequest(input *DescribeExportTasksInput) (req * return } +// DescribeExportTasks API operation for Amazon Elastic Compute Cloud. +// // Describes one or more of your export tasks. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation, DescribeExportTasks for more information, and other errors +// that the API operation could return. func (c *EC2) DescribeExportTasks(input *DescribeExportTasksInput) (*DescribeExportTasksOutput, error) { req, out := c.DescribeExportTasksRequest(input) err := req.Send() @@ -4957,9 +5827,19 @@ func (c *EC2) DescribeFlowLogsRequest(input *DescribeFlowLogsInput) (req *reques return } +// DescribeFlowLogs API operation for Amazon Elastic Compute Cloud. +// // Describes one or more flow logs. To view the information in your flow logs // (the log streams for the network interfaces), you must use the CloudWatch // Logs console or the CloudWatch Logs API. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation, DescribeFlowLogs for more information, and other errors +// that the API operation could return. func (c *EC2) DescribeFlowLogs(input *DescribeFlowLogsInput) (*DescribeFlowLogsOutput, error) { req, out := c.DescribeFlowLogsRequest(input) err := req.Send() @@ -5007,6 +5887,8 @@ func (c *EC2) DescribeHostReservationOfferingsRequest(input *DescribeHostReserva return } +// DescribeHostReservationOfferings API operation for Amazon Elastic Compute Cloud. +// // Describes the Dedicated Host Reservations that are available to purchase. // // The results describe all the Dedicated Host Reservation offerings, including @@ -5016,6 +5898,14 @@ func (c *EC2) DescribeHostReservationOfferingsRequest(input *DescribeHostReserva // with. For an overview of supported instance types, see Dedicated Hosts Overview // (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/dedicated-hosts-overview.html) // in the Amazon Elastic Compute Cloud User Guide. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation, DescribeHostReservationOfferings for more information, and other errors +// that the API operation could return. func (c *EC2) DescribeHostReservationOfferings(input *DescribeHostReservationOfferingsInput) (*DescribeHostReservationOfferingsOutput, error) { req, out := c.DescribeHostReservationOfferingsRequest(input) err := req.Send() @@ -5063,8 +5953,18 @@ func (c *EC2) DescribeHostReservationsRequest(input *DescribeHostReservationsInp return } +// DescribeHostReservations API operation for Amazon Elastic Compute Cloud. +// // Describes Dedicated Host Reservations which are associated with Dedicated // Hosts in your account. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation, DescribeHostReservations for more information, and other errors +// that the API operation could return. func (c *EC2) DescribeHostReservations(input *DescribeHostReservationsInput) (*DescribeHostReservationsOutput, error) { req, out := c.DescribeHostReservationsRequest(input) err := req.Send() @@ -5112,11 +6012,21 @@ func (c *EC2) DescribeHostsRequest(input *DescribeHostsInput) (req *request.Requ return } +// DescribeHosts API operation for Amazon Elastic Compute Cloud. +// // Describes one or more of your Dedicated Hosts. // // The results describe only the Dedicated Hosts in the region you're currently // using. All listed instances consume capacity on your Dedicated Host. Dedicated // Hosts that have recently been released will be listed with the state released. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation, DescribeHosts for more information, and other errors +// that the API operation could return. func (c *EC2) DescribeHosts(input *DescribeHostsInput) (*DescribeHostsOutput, error) { req, out := c.DescribeHostsRequest(input) err := req.Send() @@ -5164,6 +6074,8 @@ func (c *EC2) DescribeIdFormatRequest(input *DescribeIdFormatInput) (req *reques return } +// DescribeIdFormat API operation for Amazon Elastic Compute Cloud. +// // Describes the ID format settings for your resources on a per-region basis, // for example, to view which resource types are enabled for longer IDs. This // request only returns information about resource types whose ID formats can @@ -5179,6 +6091,14 @@ func (c *EC2) DescribeIdFormatRequest(input *DescribeIdFormatInput) (req *reques // are visible to all IAM users, regardless of these settings and provided that // they have permission to use the relevant Describe command for the resource // type. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation, DescribeIdFormat for more information, and other errors +// that the API operation could return. func (c *EC2) DescribeIdFormat(input *DescribeIdFormatInput) (*DescribeIdFormatOutput, error) { req, out := c.DescribeIdFormatRequest(input) err := req.Send() @@ -5226,6 +6146,8 @@ func (c *EC2) DescribeIdentityIdFormatRequest(input *DescribeIdentityIdFormatInp return } +// DescribeIdentityIdFormat API operation for Amazon Elastic Compute Cloud. +// // Describes the ID format settings for resources for the specified IAM user, // IAM role, or root user. For example, you can view the resource types that // are enabled for longer IDs. This request only returns information about resource @@ -5238,6 +6160,14 @@ func (c *EC2) DescribeIdentityIdFormatRequest(input *DescribeIdentityIdFormatInp // // These settings apply to the principal specified in the request. They do // not apply to the principal that makes the request. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation, DescribeIdentityIdFormat for more information, and other errors +// that the API operation could return. func (c *EC2) DescribeIdentityIdFormat(input *DescribeIdentityIdFormatInput) (*DescribeIdentityIdFormatOutput, error) { req, out := c.DescribeIdentityIdFormatRequest(input) err := req.Send() @@ -5285,8 +6215,18 @@ func (c *EC2) DescribeImageAttributeRequest(input *DescribeImageAttributeInput) return } +// DescribeImageAttribute API operation for Amazon Elastic Compute Cloud. +// // Describes the specified attribute of the specified AMI. You can specify only // one attribute at a time. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation, DescribeImageAttribute for more information, and other errors +// that the API operation could return. func (c *EC2) DescribeImageAttribute(input *DescribeImageAttributeInput) (*DescribeImageAttributeOutput, error) { req, out := c.DescribeImageAttributeRequest(input) err := req.Send() @@ -5334,6 +6274,8 @@ func (c *EC2) DescribeImagesRequest(input *DescribeImagesInput) (req *request.Re return } +// DescribeImages API operation for Amazon Elastic Compute Cloud. +// // Describes one or more of the images (AMIs, AKIs, and ARIs) available to you. // Images available to you include public images, private images that you own, // and private images owned by other AWS accounts but for which you have explicit @@ -5341,6 +6283,14 @@ func (c *EC2) DescribeImagesRequest(input *DescribeImagesInput) (req *request.Re // // Deregistered images are included in the returned results for an unspecified // interval after deregistration. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation, DescribeImages for more information, and other errors +// that the API operation could return. func (c *EC2) DescribeImages(input *DescribeImagesInput) (*DescribeImagesOutput, error) { req, out := c.DescribeImagesRequest(input) err := req.Send() @@ -5388,8 +6338,18 @@ func (c *EC2) DescribeImportImageTasksRequest(input *DescribeImportImageTasksInp return } +// DescribeImportImageTasks API operation for Amazon Elastic Compute Cloud. +// // Displays details about an import virtual machine or import snapshot tasks // that are already created. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation, DescribeImportImageTasks for more information, and other errors +// that the API operation could return. func (c *EC2) DescribeImportImageTasks(input *DescribeImportImageTasksInput) (*DescribeImportImageTasksOutput, error) { req, out := c.DescribeImportImageTasksRequest(input) err := req.Send() @@ -5437,7 +6397,17 @@ func (c *EC2) DescribeImportSnapshotTasksRequest(input *DescribeImportSnapshotTa return } +// DescribeImportSnapshotTasks API operation for Amazon Elastic Compute Cloud. +// // Describes your import snapshot tasks. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation, DescribeImportSnapshotTasks for more information, and other errors +// that the API operation could return. func (c *EC2) DescribeImportSnapshotTasks(input *DescribeImportSnapshotTasksInput) (*DescribeImportSnapshotTasksOutput, error) { req, out := c.DescribeImportSnapshotTasksRequest(input) err := req.Send() @@ -5485,11 +6455,21 @@ func (c *EC2) DescribeInstanceAttributeRequest(input *DescribeInstanceAttributeI return } +// DescribeInstanceAttribute API operation for Amazon Elastic Compute Cloud. +// // Describes the specified attribute of the specified instance. You can specify // only one attribute at a time. Valid attribute values are: instanceType | // kernel | ramdisk | userData | disableApiTermination | instanceInitiatedShutdownBehavior // | rootDeviceName | blockDeviceMapping | productCodes | sourceDestCheck | // groupSet | ebsOptimized | sriovNetSupport +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation, DescribeInstanceAttribute for more information, and other errors +// that the API operation could return. func (c *EC2) DescribeInstanceAttribute(input *DescribeInstanceAttributeInput) (*DescribeInstanceAttributeOutput, error) { req, out := c.DescribeInstanceAttributeRequest(input) err := req.Send() @@ -5543,6 +6523,8 @@ func (c *EC2) DescribeInstanceStatusRequest(input *DescribeInstanceStatusInput) return } +// DescribeInstanceStatus API operation for Amazon Elastic Compute Cloud. +// // Describes the status of one or more instances. By default, only running instances // are described, unless specified otherwise. // @@ -5564,6 +6546,14 @@ func (c *EC2) DescribeInstanceStatusRequest(input *DescribeInstanceStatusInput) // them through their termination. For more information, see Instance Lifecycle // (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-lifecycle.html) // in the Amazon Elastic Compute Cloud User Guide. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation, DescribeInstanceStatus for more information, and other errors +// that the API operation could return. func (c *EC2) DescribeInstanceStatus(input *DescribeInstanceStatusInput) (*DescribeInstanceStatusOutput, error) { req, out := c.DescribeInstanceStatusRequest(input) err := req.Send() @@ -5642,6 +6632,8 @@ func (c *EC2) DescribeInstancesRequest(input *DescribeInstancesInput) (req *requ return } +// DescribeInstances API operation for Amazon Elastic Compute Cloud. +// // Describes one or more of your instances. // // If you specify one or more instance IDs, Amazon EC2 returns information @@ -5658,6 +6650,14 @@ func (c *EC2) DescribeInstancesRequest(input *DescribeInstancesInput) (req *requ // the affected zone, or do not specify any instance IDs at all, the call fails. // If you describe instances and specify only instance IDs that are in an unaffected // zone, the call works normally. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation, DescribeInstances for more information, and other errors +// that the API operation could return. func (c *EC2) DescribeInstances(input *DescribeInstancesInput) (*DescribeInstancesOutput, error) { req, out := c.DescribeInstancesRequest(input) err := req.Send() @@ -5730,7 +6730,17 @@ func (c *EC2) DescribeInternetGatewaysRequest(input *DescribeInternetGatewaysInp return } +// DescribeInternetGateways API operation for Amazon Elastic Compute Cloud. +// // Describes one or more of your Internet gateways. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation, DescribeInternetGateways for more information, and other errors +// that the API operation could return. func (c *EC2) DescribeInternetGateways(input *DescribeInternetGatewaysInput) (*DescribeInternetGatewaysOutput, error) { req, out := c.DescribeInternetGatewaysRequest(input) err := req.Send() @@ -5778,10 +6788,20 @@ func (c *EC2) DescribeKeyPairsRequest(input *DescribeKeyPairsInput) (req *reques return } +// DescribeKeyPairs API operation for Amazon Elastic Compute Cloud. +// // Describes one or more of your key pairs. // // For more information about key pairs, see Key Pairs (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-key-pairs.html) // in the Amazon Elastic Compute Cloud User Guide. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation, DescribeKeyPairs for more information, and other errors +// that the API operation could return. func (c *EC2) DescribeKeyPairs(input *DescribeKeyPairsInput) (*DescribeKeyPairsOutput, error) { req, out := c.DescribeKeyPairsRequest(input) err := req.Send() @@ -5829,9 +6849,19 @@ func (c *EC2) DescribeMovingAddressesRequest(input *DescribeMovingAddressesInput return } +// DescribeMovingAddresses API operation for Amazon Elastic Compute Cloud. +// // Describes your Elastic IP addresses that are being moved to the EC2-VPC platform, // or that are being restored to the EC2-Classic platform. This request does // not return information about any other Elastic IP addresses in your account. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation, DescribeMovingAddresses for more information, and other errors +// that the API operation could return. func (c *EC2) DescribeMovingAddresses(input *DescribeMovingAddressesInput) (*DescribeMovingAddressesOutput, error) { req, out := c.DescribeMovingAddressesRequest(input) err := req.Send() @@ -5879,7 +6909,17 @@ func (c *EC2) DescribeNatGatewaysRequest(input *DescribeNatGatewaysInput) (req * return } +// DescribeNatGateways API operation for Amazon Elastic Compute Cloud. +// // Describes one or more of the your NAT gateways. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation, DescribeNatGateways for more information, and other errors +// that the API operation could return. func (c *EC2) DescribeNatGateways(input *DescribeNatGatewaysInput) (*DescribeNatGatewaysOutput, error) { req, out := c.DescribeNatGatewaysRequest(input) err := req.Send() @@ -5927,10 +6967,20 @@ func (c *EC2) DescribeNetworkAclsRequest(input *DescribeNetworkAclsInput) (req * return } +// DescribeNetworkAcls API operation for Amazon Elastic Compute Cloud. +// // Describes one or more of your network ACLs. // // For more information about network ACLs, see Network ACLs (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_ACLs.html) // in the Amazon Virtual Private Cloud User Guide. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation, DescribeNetworkAcls for more information, and other errors +// that the API operation could return. func (c *EC2) DescribeNetworkAcls(input *DescribeNetworkAclsInput) (*DescribeNetworkAclsOutput, error) { req, out := c.DescribeNetworkAclsRequest(input) err := req.Send() @@ -5978,8 +7028,18 @@ func (c *EC2) DescribeNetworkInterfaceAttributeRequest(input *DescribeNetworkInt return } +// DescribeNetworkInterfaceAttribute API operation for Amazon Elastic Compute Cloud. +// // Describes a network interface attribute. You can specify only one attribute // at a time. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation, DescribeNetworkInterfaceAttribute for more information, and other errors +// that the API operation could return. func (c *EC2) DescribeNetworkInterfaceAttribute(input *DescribeNetworkInterfaceAttributeInput) (*DescribeNetworkInterfaceAttributeOutput, error) { req, out := c.DescribeNetworkInterfaceAttributeRequest(input) err := req.Send() @@ -6027,7 +7087,17 @@ func (c *EC2) DescribeNetworkInterfacesRequest(input *DescribeNetworkInterfacesI return } +// DescribeNetworkInterfaces API operation for Amazon Elastic Compute Cloud. +// // Describes one or more of your network interfaces. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation, DescribeNetworkInterfaces for more information, and other errors +// that the API operation could return. func (c *EC2) DescribeNetworkInterfaces(input *DescribeNetworkInterfacesInput) (*DescribeNetworkInterfacesOutput, error) { req, out := c.DescribeNetworkInterfacesRequest(input) err := req.Send() @@ -6075,9 +7145,19 @@ func (c *EC2) DescribePlacementGroupsRequest(input *DescribePlacementGroupsInput return } +// DescribePlacementGroups API operation for Amazon Elastic Compute Cloud. +// // Describes one or more of your placement groups. For more information about // placement groups and cluster instances, see Cluster Instances (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using_cluster_computing.html) // in the Amazon Elastic Compute Cloud User Guide. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation, DescribePlacementGroups for more information, and other errors +// that the API operation could return. func (c *EC2) DescribePlacementGroups(input *DescribePlacementGroupsInput) (*DescribePlacementGroupsOutput, error) { req, out := c.DescribePlacementGroupsRequest(input) err := req.Send() @@ -6125,11 +7205,21 @@ func (c *EC2) DescribePrefixListsRequest(input *DescribePrefixListsInput) (req * return } +// DescribePrefixLists API operation for Amazon Elastic Compute Cloud. +// // Describes available AWS services in a prefix list format, which includes // the prefix list name and prefix list ID of the service and the IP address // range for the service. A prefix list ID is required for creating an outbound // security group rule that allows traffic from a VPC to access an AWS service // through a VPC endpoint. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation, DescribePrefixLists for more information, and other errors +// that the API operation could return. func (c *EC2) DescribePrefixLists(input *DescribePrefixListsInput) (*DescribePrefixListsOutput, error) { req, out := c.DescribePrefixListsRequest(input) err := req.Send() @@ -6177,10 +7267,20 @@ func (c *EC2) DescribeRegionsRequest(input *DescribeRegionsInput) (req *request. return } +// DescribeRegions API operation for Amazon Elastic Compute Cloud. +// // Describes one or more regions that are currently available to you. // // For a list of the regions supported by Amazon EC2, see Regions and Endpoints // (http://docs.aws.amazon.com/general/latest/gr/rande.html#ec2_region). +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation, DescribeRegions for more information, and other errors +// that the API operation could return. func (c *EC2) DescribeRegions(input *DescribeRegionsInput) (*DescribeRegionsOutput, error) { req, out := c.DescribeRegionsRequest(input) err := req.Send() @@ -6228,10 +7328,20 @@ func (c *EC2) DescribeReservedInstancesRequest(input *DescribeReservedInstancesI return } +// DescribeReservedInstances API operation for Amazon Elastic Compute Cloud. +// // Describes one or more of the Reserved Instances that you purchased. // // For more information about Reserved Instances, see Reserved Instances (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/concepts-on-demand-reserved-instances.html) // in the Amazon Elastic Compute Cloud User Guide. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation, DescribeReservedInstances for more information, and other errors +// that the API operation could return. func (c *EC2) DescribeReservedInstances(input *DescribeReservedInstancesInput) (*DescribeReservedInstancesOutput, error) { req, out := c.DescribeReservedInstancesRequest(input) err := req.Send() @@ -6279,6 +7389,8 @@ func (c *EC2) DescribeReservedInstancesListingsRequest(input *DescribeReservedIn return } +// DescribeReservedInstancesListings API operation for Amazon Elastic Compute Cloud. +// // Describes your account's Reserved Instance listings in the Reserved Instance // Marketplace. // @@ -6301,6 +7413,14 @@ func (c *EC2) DescribeReservedInstancesListingsRequest(input *DescribeReservedIn // // For more information, see Reserved Instance Marketplace (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ri-market-general.html) // in the Amazon Elastic Compute Cloud User Guide. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation, DescribeReservedInstancesListings for more information, and other errors +// that the API operation could return. func (c *EC2) DescribeReservedInstancesListings(input *DescribeReservedInstancesListingsInput) (*DescribeReservedInstancesListingsOutput, error) { req, out := c.DescribeReservedInstancesListingsRequest(input) err := req.Send() @@ -6354,6 +7474,8 @@ func (c *EC2) DescribeReservedInstancesModificationsRequest(input *DescribeReser return } +// DescribeReservedInstancesModifications API operation for Amazon Elastic Compute Cloud. +// // Describes the modifications made to your Reserved Instances. If no parameter // is specified, information about all your Reserved Instances modification // requests is returned. If a modification ID is specified, only information @@ -6361,6 +7483,14 @@ func (c *EC2) DescribeReservedInstancesModificationsRequest(input *DescribeReser // // For more information, see Modifying Reserved Instances (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ri-modifying.html) // in the Amazon Elastic Compute Cloud User Guide. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation, DescribeReservedInstancesModifications for more information, and other errors +// that the API operation could return. func (c *EC2) DescribeReservedInstancesModifications(input *DescribeReservedInstancesModificationsInput) (*DescribeReservedInstancesModificationsOutput, error) { req, out := c.DescribeReservedInstancesModificationsRequest(input) err := req.Send() @@ -6439,6 +7569,8 @@ func (c *EC2) DescribeReservedInstancesOfferingsRequest(input *DescribeReservedI return } +// DescribeReservedInstancesOfferings API operation for Amazon Elastic Compute Cloud. +// // Describes Reserved Instance offerings that are available for purchase. With // Reserved Instances, you purchase the right to launch instances for a period // of time. During that time period, you do not receive insufficient capacity @@ -6451,6 +7583,14 @@ func (c *EC2) DescribeReservedInstancesOfferingsRequest(input *DescribeReservedI // // For more information, see Reserved Instance Marketplace (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ri-market-general.html) // in the Amazon Elastic Compute Cloud User Guide. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation, DescribeReservedInstancesOfferings for more information, and other errors +// that the API operation could return. func (c *EC2) DescribeReservedInstancesOfferings(input *DescribeReservedInstancesOfferingsInput) (*DescribeReservedInstancesOfferingsOutput, error) { req, out := c.DescribeReservedInstancesOfferingsRequest(input) err := req.Send() @@ -6523,6 +7663,8 @@ func (c *EC2) DescribeRouteTablesRequest(input *DescribeRouteTablesInput) (req * return } +// DescribeRouteTables API operation for Amazon Elastic Compute Cloud. +// // Describes one or more of your route tables. // // Each subnet in your VPC must be associated with a route table. If a subnet @@ -6532,6 +7674,14 @@ func (c *EC2) DescribeRouteTablesRequest(input *DescribeRouteTablesInput) (req * // // For more information about route tables, see Route Tables (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_Route_Tables.html) // in the Amazon Virtual Private Cloud User Guide. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation, DescribeRouteTables for more information, and other errors +// that the API operation could return. func (c *EC2) DescribeRouteTables(input *DescribeRouteTablesInput) (*DescribeRouteTablesOutput, error) { req, out := c.DescribeRouteTablesRequest(input) err := req.Send() @@ -6579,6 +7729,8 @@ func (c *EC2) DescribeScheduledInstanceAvailabilityRequest(input *DescribeSchedu return } +// DescribeScheduledInstanceAvailability API operation for Amazon Elastic Compute Cloud. +// // Finds available schedules that meet the specified criteria. // // You can search for an available schedule no more than 3 months in advance. @@ -6588,6 +7740,14 @@ func (c *EC2) DescribeScheduledInstanceAvailabilityRequest(input *DescribeSchedu // // After you find a schedule that meets your needs, call PurchaseScheduledInstances // to purchase Scheduled Instances with that schedule. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation, DescribeScheduledInstanceAvailability for more information, and other errors +// that the API operation could return. func (c *EC2) DescribeScheduledInstanceAvailability(input *DescribeScheduledInstanceAvailabilityInput) (*DescribeScheduledInstanceAvailabilityOutput, error) { req, out := c.DescribeScheduledInstanceAvailabilityRequest(input) err := req.Send() @@ -6635,7 +7795,17 @@ func (c *EC2) DescribeScheduledInstancesRequest(input *DescribeScheduledInstance return } +// DescribeScheduledInstances API operation for Amazon Elastic Compute Cloud. +// // Describes one or more of your Scheduled Instances. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation, DescribeScheduledInstances for more information, and other errors +// that the API operation could return. func (c *EC2) DescribeScheduledInstances(input *DescribeScheduledInstancesInput) (*DescribeScheduledInstancesOutput, error) { req, out := c.DescribeScheduledInstancesRequest(input) err := req.Send() @@ -6683,8 +7853,18 @@ func (c *EC2) DescribeSecurityGroupReferencesRequest(input *DescribeSecurityGrou return } +// DescribeSecurityGroupReferences API operation for Amazon Elastic Compute Cloud. +// // [EC2-VPC only] Describes the VPCs on the other side of a VPC peering connection // that are referencing the security groups you've specified in this request. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation, DescribeSecurityGroupReferences for more information, and other errors +// that the API operation could return. func (c *EC2) DescribeSecurityGroupReferences(input *DescribeSecurityGroupReferencesInput) (*DescribeSecurityGroupReferencesOutput, error) { req, out := c.DescribeSecurityGroupReferencesRequest(input) err := req.Send() @@ -6732,6 +7912,8 @@ func (c *EC2) DescribeSecurityGroupsRequest(input *DescribeSecurityGroupsInput) return } +// DescribeSecurityGroups API operation for Amazon Elastic Compute Cloud. +// // Describes one or more of your security groups. // // A security group is for use with instances either in the EC2-Classic platform @@ -6740,6 +7922,14 @@ func (c *EC2) DescribeSecurityGroupsRequest(input *DescribeSecurityGroupsInput) // in the Amazon Elastic Compute Cloud User Guide and Security Groups for Your // VPC (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_SecurityGroups.html) // in the Amazon Virtual Private Cloud User Guide. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation, DescribeSecurityGroups for more information, and other errors +// that the API operation could return. func (c *EC2) DescribeSecurityGroups(input *DescribeSecurityGroupsInput) (*DescribeSecurityGroupsOutput, error) { req, out := c.DescribeSecurityGroupsRequest(input) err := req.Send() @@ -6787,11 +7977,21 @@ func (c *EC2) DescribeSnapshotAttributeRequest(input *DescribeSnapshotAttributeI return } +// DescribeSnapshotAttribute API operation for Amazon Elastic Compute Cloud. +// // Describes the specified attribute of the specified snapshot. You can specify // only one attribute at a time. // // For more information about EBS snapshots, see Amazon EBS Snapshots (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSSnapshots.html) // in the Amazon Elastic Compute Cloud User Guide. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation, DescribeSnapshotAttribute for more information, and other errors +// that the API operation could return. func (c *EC2) DescribeSnapshotAttribute(input *DescribeSnapshotAttributeInput) (*DescribeSnapshotAttributeOutput, error) { req, out := c.DescribeSnapshotAttributeRequest(input) err := req.Send() @@ -6845,6 +8045,8 @@ func (c *EC2) DescribeSnapshotsRequest(input *DescribeSnapshotsInput) (req *requ return } +// DescribeSnapshots API operation for Amazon Elastic Compute Cloud. +// // Describes one or more of the EBS snapshots available to you. Available snapshots // include public snapshots available for any AWS account to launch, private // snapshots that you own, and private snapshots owned by another AWS account @@ -6891,6 +8093,14 @@ func (c *EC2) DescribeSnapshotsRequest(input *DescribeSnapshotsInput) (req *requ // // For more information about EBS snapshots, see Amazon EBS Snapshots (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSSnapshots.html) // in the Amazon Elastic Compute Cloud User Guide. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation, DescribeSnapshots for more information, and other errors +// that the API operation could return. func (c *EC2) DescribeSnapshots(input *DescribeSnapshotsInput) (*DescribeSnapshotsOutput, error) { req, out := c.DescribeSnapshotsRequest(input) err := req.Send() @@ -6963,9 +8173,19 @@ func (c *EC2) DescribeSpotDatafeedSubscriptionRequest(input *DescribeSpotDatafee return } +// DescribeSpotDatafeedSubscription API operation for Amazon Elastic Compute Cloud. +// // Describes the data feed for Spot instances. For more information, see Spot // Instance Data Feed (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/spot-data-feeds.html) // in the Amazon Elastic Compute Cloud User Guide. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation, DescribeSpotDatafeedSubscription for more information, and other errors +// that the API operation could return. func (c *EC2) DescribeSpotDatafeedSubscription(input *DescribeSpotDatafeedSubscriptionInput) (*DescribeSpotDatafeedSubscriptionOutput, error) { req, out := c.DescribeSpotDatafeedSubscriptionRequest(input) err := req.Send() @@ -7013,7 +8233,17 @@ func (c *EC2) DescribeSpotFleetInstancesRequest(input *DescribeSpotFleetInstance return } +// DescribeSpotFleetInstances API operation for Amazon Elastic Compute Cloud. +// // Describes the running instances for the specified Spot fleet. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation, DescribeSpotFleetInstances for more information, and other errors +// that the API operation could return. func (c *EC2) DescribeSpotFleetInstances(input *DescribeSpotFleetInstancesInput) (*DescribeSpotFleetInstancesOutput, error) { req, out := c.DescribeSpotFleetInstancesRequest(input) err := req.Send() @@ -7061,12 +8291,22 @@ func (c *EC2) DescribeSpotFleetRequestHistoryRequest(input *DescribeSpotFleetReq return } +// DescribeSpotFleetRequestHistory API operation for Amazon Elastic Compute Cloud. +// // Describes the events for the specified Spot fleet request during the specified // time. // // Spot fleet events are delayed by up to 30 seconds before they can be described. // This ensures that you can query by the last evaluated time and not miss a // recorded event. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation, DescribeSpotFleetRequestHistory for more information, and other errors +// that the API operation could return. func (c *EC2) DescribeSpotFleetRequestHistory(input *DescribeSpotFleetRequestHistoryInput) (*DescribeSpotFleetRequestHistoryOutput, error) { req, out := c.DescribeSpotFleetRequestHistoryRequest(input) err := req.Send() @@ -7120,10 +8360,20 @@ func (c *EC2) DescribeSpotFleetRequestsRequest(input *DescribeSpotFleetRequestsI return } +// DescribeSpotFleetRequests API operation for Amazon Elastic Compute Cloud. +// // Describes your Spot fleet requests. // // Spot fleet requests are deleted 48 hours after they are canceled and their // instances are terminated. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation, DescribeSpotFleetRequests for more information, and other errors +// that the API operation could return. func (c *EC2) DescribeSpotFleetRequests(input *DescribeSpotFleetRequestsInput) (*DescribeSpotFleetRequestsOutput, error) { req, out := c.DescribeSpotFleetRequestsRequest(input) err := req.Send() @@ -7196,6 +8446,8 @@ func (c *EC2) DescribeSpotInstanceRequestsRequest(input *DescribeSpotInstanceReq return } +// DescribeSpotInstanceRequests API operation for Amazon Elastic Compute Cloud. +// // Describes the Spot instance requests that belong to your account. Spot instances // are instances that Amazon EC2 launches when the bid price that you specify // exceeds the current Spot price. Amazon EC2 periodically sets the Spot price @@ -7211,6 +8463,14 @@ func (c *EC2) DescribeSpotInstanceRequestsRequest(input *DescribeSpotInstanceReq // // Spot instance requests are deleted 4 hours after they are canceled and their // instances are terminated. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation, DescribeSpotInstanceRequests for more information, and other errors +// that the API operation could return. func (c *EC2) DescribeSpotInstanceRequests(input *DescribeSpotInstanceRequestsInput) (*DescribeSpotInstanceRequestsOutput, error) { req, out := c.DescribeSpotInstanceRequestsRequest(input) err := req.Send() @@ -7264,6 +8524,8 @@ func (c *EC2) DescribeSpotPriceHistoryRequest(input *DescribeSpotPriceHistoryInp return } +// DescribeSpotPriceHistory API operation for Amazon Elastic Compute Cloud. +// // Describes the Spot price history. The prices returned are listed in chronological // order, from the oldest to the most recent, for up to the past 90 days. For // more information, see Spot Instance Pricing History (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-spot-instances-history.html) @@ -7273,6 +8535,14 @@ func (c *EC2) DescribeSpotPriceHistoryRequest(input *DescribeSpotPriceHistoryInp // of the instance types within the time range that you specified and the time // when the price changed. The price is valid within the time period that you // specified; the response merely indicates the last time that the price changed. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation, DescribeSpotPriceHistory for more information, and other errors +// that the API operation could return. func (c *EC2) DescribeSpotPriceHistory(input *DescribeSpotPriceHistoryInput) (*DescribeSpotPriceHistoryOutput, error) { req, out := c.DescribeSpotPriceHistoryRequest(input) err := req.Send() @@ -7345,10 +8615,20 @@ func (c *EC2) DescribeStaleSecurityGroupsRequest(input *DescribeStaleSecurityGro return } +// DescribeStaleSecurityGroups API operation for Amazon Elastic Compute Cloud. +// // [EC2-VPC only] Describes the stale security group rules for security groups // in a specified VPC. Rules are stale when they reference a deleted security // group in a peer VPC, or a security group in a peer VPC for which the VPC // peering connection has been deleted. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation, DescribeStaleSecurityGroups for more information, and other errors +// that the API operation could return. func (c *EC2) DescribeStaleSecurityGroups(input *DescribeStaleSecurityGroupsInput) (*DescribeStaleSecurityGroupsOutput, error) { req, out := c.DescribeStaleSecurityGroupsRequest(input) err := req.Send() @@ -7396,10 +8676,20 @@ func (c *EC2) DescribeSubnetsRequest(input *DescribeSubnetsInput) (req *request. return } +// DescribeSubnets API operation for Amazon Elastic Compute Cloud. +// // Describes one or more of your subnets. // // For more information about subnets, see Your VPC and Subnets (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_Subnets.html) // in the Amazon Virtual Private Cloud User Guide. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation, DescribeSubnets for more information, and other errors +// that the API operation could return. func (c *EC2) DescribeSubnets(input *DescribeSubnetsInput) (*DescribeSubnetsOutput, error) { req, out := c.DescribeSubnetsRequest(input) err := req.Send() @@ -7453,10 +8743,20 @@ func (c *EC2) DescribeTagsRequest(input *DescribeTagsInput) (req *request.Reques return } +// DescribeTags API operation for Amazon Elastic Compute Cloud. +// // Describes one or more of the tags for your EC2 resources. // // For more information about tags, see Tagging Your Resources (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Using_Tags.html) // in the Amazon Elastic Compute Cloud User Guide. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation, DescribeTags for more information, and other errors +// that the API operation could return. func (c *EC2) DescribeTags(input *DescribeTagsInput) (*DescribeTagsOutput, error) { req, out := c.DescribeTagsRequest(input) err := req.Send() @@ -7529,11 +8829,21 @@ func (c *EC2) DescribeVolumeAttributeRequest(input *DescribeVolumeAttributeInput return } +// DescribeVolumeAttribute API operation for Amazon Elastic Compute Cloud. +// // Describes the specified attribute of the specified volume. You can specify // only one attribute at a time. // // For more information about EBS volumes, see Amazon EBS Volumes (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSVolumes.html) // in the Amazon Elastic Compute Cloud User Guide. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation, DescribeVolumeAttribute for more information, and other errors +// that the API operation could return. func (c *EC2) DescribeVolumeAttribute(input *DescribeVolumeAttributeInput) (*DescribeVolumeAttributeOutput, error) { req, out := c.DescribeVolumeAttributeRequest(input) err := req.Send() @@ -7587,6 +8897,8 @@ func (c *EC2) DescribeVolumeStatusRequest(input *DescribeVolumeStatusInput) (req return } +// DescribeVolumeStatus API operation for Amazon Elastic Compute Cloud. +// // Describes the status of the specified volumes. Volume status provides the // result of the checks performed on your volumes to determine events that can // impair the performance of your volumes. The performance of a volume can be @@ -7622,6 +8934,14 @@ func (c *EC2) DescribeVolumeStatusRequest(input *DescribeVolumeStatusInput) (req // Volume status is based on the volume status checks, and does not reflect // the volume state. Therefore, volume status does not indicate volumes in the // error state (for example, when a volume is incapable of accepting I/O.) +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation, DescribeVolumeStatus for more information, and other errors +// that the API operation could return. func (c *EC2) DescribeVolumeStatus(input *DescribeVolumeStatusInput) (*DescribeVolumeStatusOutput, error) { req, out := c.DescribeVolumeStatusRequest(input) err := req.Send() @@ -7700,6 +9020,8 @@ func (c *EC2) DescribeVolumesRequest(input *DescribeVolumesInput) (req *request. return } +// DescribeVolumes API operation for Amazon Elastic Compute Cloud. +// // Describes the specified EBS volumes. // // If you are describing a long list of volumes, you can paginate the output @@ -7711,6 +9033,14 @@ func (c *EC2) DescribeVolumesRequest(input *DescribeVolumesInput) (req *request. // // For more information about EBS volumes, see Amazon EBS Volumes (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSVolumes.html) // in the Amazon Elastic Compute Cloud User Guide. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation, DescribeVolumes for more information, and other errors +// that the API operation could return. func (c *EC2) DescribeVolumes(input *DescribeVolumesInput) (*DescribeVolumesOutput, error) { req, out := c.DescribeVolumesRequest(input) err := req.Send() @@ -7783,8 +9113,18 @@ func (c *EC2) DescribeVpcAttributeRequest(input *DescribeVpcAttributeInput) (req return } +// DescribeVpcAttribute API operation for Amazon Elastic Compute Cloud. +// // Describes the specified attribute of the specified VPC. You can specify only // one attribute at a time. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation, DescribeVpcAttribute for more information, and other errors +// that the API operation could return. func (c *EC2) DescribeVpcAttribute(input *DescribeVpcAttributeInput) (*DescribeVpcAttributeOutput, error) { req, out := c.DescribeVpcAttributeRequest(input) err := req.Send() @@ -7832,7 +9172,17 @@ func (c *EC2) DescribeVpcClassicLinkRequest(input *DescribeVpcClassicLinkInput) return } +// DescribeVpcClassicLink API operation for Amazon Elastic Compute Cloud. +// // Describes the ClassicLink status of one or more VPCs. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation, DescribeVpcClassicLink for more information, and other errors +// that the API operation could return. func (c *EC2) DescribeVpcClassicLink(input *DescribeVpcClassicLinkInput) (*DescribeVpcClassicLinkOutput, error) { req, out := c.DescribeVpcClassicLinkRequest(input) err := req.Send() @@ -7880,6 +9230,8 @@ func (c *EC2) DescribeVpcClassicLinkDnsSupportRequest(input *DescribeVpcClassicL return } +// DescribeVpcClassicLinkDnsSupport API operation for Amazon Elastic Compute Cloud. +// // Describes the ClassicLink DNS support status of one or more VPCs. If enabled, // the DNS hostname of a linked EC2-Classic instance resolves to its private // IP address when addressed from an instance in the VPC to which it's linked. @@ -7887,6 +9239,14 @@ func (c *EC2) DescribeVpcClassicLinkDnsSupportRequest(input *DescribeVpcClassicL // IP address when addressed from a linked EC2-Classic instance. For more information // about ClassicLink, see ClassicLink (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/vpc-classiclink.html) // in the Amazon Elastic Compute Cloud User Guide. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation, DescribeVpcClassicLinkDnsSupport for more information, and other errors +// that the API operation could return. func (c *EC2) DescribeVpcClassicLinkDnsSupport(input *DescribeVpcClassicLinkDnsSupportInput) (*DescribeVpcClassicLinkDnsSupportOutput, error) { req, out := c.DescribeVpcClassicLinkDnsSupportRequest(input) err := req.Send() @@ -7934,8 +9294,18 @@ func (c *EC2) DescribeVpcEndpointServicesRequest(input *DescribeVpcEndpointServi return } +// DescribeVpcEndpointServices API operation for Amazon Elastic Compute Cloud. +// // Describes all supported AWS services that can be specified when creating // a VPC endpoint. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation, DescribeVpcEndpointServices for more information, and other errors +// that the API operation could return. func (c *EC2) DescribeVpcEndpointServices(input *DescribeVpcEndpointServicesInput) (*DescribeVpcEndpointServicesOutput, error) { req, out := c.DescribeVpcEndpointServicesRequest(input) err := req.Send() @@ -7983,7 +9353,17 @@ func (c *EC2) DescribeVpcEndpointsRequest(input *DescribeVpcEndpointsInput) (req return } +// DescribeVpcEndpoints API operation for Amazon Elastic Compute Cloud. +// // Describes one or more of your VPC endpoints. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation, DescribeVpcEndpoints for more information, and other errors +// that the API operation could return. func (c *EC2) DescribeVpcEndpoints(input *DescribeVpcEndpointsInput) (*DescribeVpcEndpointsOutput, error) { req, out := c.DescribeVpcEndpointsRequest(input) err := req.Send() @@ -8031,7 +9411,17 @@ func (c *EC2) DescribeVpcPeeringConnectionsRequest(input *DescribeVpcPeeringConn return } +// DescribeVpcPeeringConnections API operation for Amazon Elastic Compute Cloud. +// // Describes one or more of your VPC peering connections. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation, DescribeVpcPeeringConnections for more information, and other errors +// that the API operation could return. func (c *EC2) DescribeVpcPeeringConnections(input *DescribeVpcPeeringConnectionsInput) (*DescribeVpcPeeringConnectionsOutput, error) { req, out := c.DescribeVpcPeeringConnectionsRequest(input) err := req.Send() @@ -8079,7 +9469,17 @@ func (c *EC2) DescribeVpcsRequest(input *DescribeVpcsInput) (req *request.Reques return } +// DescribeVpcs API operation for Amazon Elastic Compute Cloud. +// // Describes one or more of your VPCs. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation, DescribeVpcs for more information, and other errors +// that the API operation could return. func (c *EC2) DescribeVpcs(input *DescribeVpcsInput) (*DescribeVpcsOutput, error) { req, out := c.DescribeVpcsRequest(input) err := req.Send() @@ -8127,11 +9527,21 @@ func (c *EC2) DescribeVpnConnectionsRequest(input *DescribeVpnConnectionsInput) return } +// DescribeVpnConnections API operation for Amazon Elastic Compute Cloud. +// // Describes one or more of your VPN connections. // // For more information about VPN connections, see Adding a Hardware Virtual // Private Gateway to Your VPC (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_VPN.html) // in the Amazon Virtual Private Cloud User Guide. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation, DescribeVpnConnections for more information, and other errors +// that the API operation could return. func (c *EC2) DescribeVpnConnections(input *DescribeVpnConnectionsInput) (*DescribeVpnConnectionsOutput, error) { req, out := c.DescribeVpnConnectionsRequest(input) err := req.Send() @@ -8179,11 +9589,21 @@ func (c *EC2) DescribeVpnGatewaysRequest(input *DescribeVpnGatewaysInput) (req * return } +// DescribeVpnGateways API operation for Amazon Elastic Compute Cloud. +// // Describes one or more of your virtual private gateways. // // For more information about virtual private gateways, see Adding an IPsec // Hardware VPN to Your VPC (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_VPN.html) // in the Amazon Virtual Private Cloud User Guide. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation, DescribeVpnGateways for more information, and other errors +// that the API operation could return. func (c *EC2) DescribeVpnGateways(input *DescribeVpnGatewaysInput) (*DescribeVpnGatewaysOutput, error) { req, out := c.DescribeVpnGatewaysRequest(input) err := req.Send() @@ -8231,9 +9651,19 @@ func (c *EC2) DetachClassicLinkVpcRequest(input *DetachClassicLinkVpcInput) (req return } +// DetachClassicLinkVpc API operation for Amazon Elastic Compute Cloud. +// // Unlinks (detaches) a linked EC2-Classic instance from a VPC. After the instance // has been unlinked, the VPC security groups are no longer associated with // it. An instance is automatically unlinked from a VPC when it's stopped. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation, DetachClassicLinkVpc for more information, and other errors +// that the API operation could return. func (c *EC2) DetachClassicLinkVpc(input *DetachClassicLinkVpcInput) (*DetachClassicLinkVpcOutput, error) { req, out := c.DetachClassicLinkVpcRequest(input) err := req.Send() @@ -8283,9 +9713,19 @@ func (c *EC2) DetachInternetGatewayRequest(input *DetachInternetGatewayInput) (r return } +// DetachInternetGateway API operation for Amazon Elastic Compute Cloud. +// // Detaches an Internet gateway from a VPC, disabling connectivity between the // Internet and the VPC. The VPC must not contain any running instances with // Elastic IP addresses. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation, DetachInternetGateway for more information, and other errors +// that the API operation could return. func (c *EC2) DetachInternetGateway(input *DetachInternetGatewayInput) (*DetachInternetGatewayOutput, error) { req, out := c.DetachInternetGatewayRequest(input) err := req.Send() @@ -8335,7 +9775,17 @@ func (c *EC2) DetachNetworkInterfaceRequest(input *DetachNetworkInterfaceInput) return } +// DetachNetworkInterface API operation for Amazon Elastic Compute Cloud. +// // Detaches a network interface from an instance. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation, DetachNetworkInterface for more information, and other errors +// that the API operation could return. func (c *EC2) DetachNetworkInterface(input *DetachNetworkInterfaceInput) (*DetachNetworkInterfaceOutput, error) { req, out := c.DetachNetworkInterfaceRequest(input) err := req.Send() @@ -8383,6 +9833,8 @@ func (c *EC2) DetachVolumeRequest(input *DetachVolumeInput) (req *request.Reques return } +// DetachVolume API operation for Amazon Elastic Compute Cloud. +// // Detaches an EBS volume from an instance. Make sure to unmount any file systems // on the device within your operating system before detaching the volume. Failure // to do so can result in the volume becoming stuck in the busy state while @@ -8397,6 +9849,14 @@ func (c *EC2) DetachVolumeRequest(input *DetachVolumeInput) (req *request.Reques // // For more information, see Detaching an Amazon EBS Volume (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-detaching-volume.html) // in the Amazon Elastic Compute Cloud User Guide. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation, DetachVolume for more information, and other errors +// that the API operation could return. func (c *EC2) DetachVolume(input *DetachVolumeInput) (*VolumeAttachment, error) { req, out := c.DetachVolumeRequest(input) err := req.Send() @@ -8446,6 +9906,8 @@ func (c *EC2) DetachVpnGatewayRequest(input *DetachVpnGatewayInput) (req *reques return } +// DetachVpnGateway API operation for Amazon Elastic Compute Cloud. +// // Detaches a virtual private gateway from a VPC. You do this if you're planning // to turn off the VPC and not use it anymore. You can confirm a virtual private // gateway has been completely detached from a VPC by describing the virtual @@ -8454,6 +9916,14 @@ func (c *EC2) DetachVpnGatewayRequest(input *DetachVpnGatewayInput) (req *reques // // You must wait for the attachment's state to switch to detached before you // can delete the VPC or attach a different VPC to the virtual private gateway. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation, DetachVpnGateway for more information, and other errors +// that the API operation could return. func (c *EC2) DetachVpnGateway(input *DetachVpnGatewayInput) (*DetachVpnGatewayOutput, error) { req, out := c.DetachVpnGatewayRequest(input) err := req.Send() @@ -8503,8 +9973,18 @@ func (c *EC2) DisableVgwRoutePropagationRequest(input *DisableVgwRoutePropagatio return } +// DisableVgwRoutePropagation API operation for Amazon Elastic Compute Cloud. +// // Disables a virtual private gateway (VGW) from propagating routes to a specified // route table of a VPC. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation, DisableVgwRoutePropagation for more information, and other errors +// that the API operation could return. func (c *EC2) DisableVgwRoutePropagation(input *DisableVgwRoutePropagationInput) (*DisableVgwRoutePropagationOutput, error) { req, out := c.DisableVgwRoutePropagationRequest(input) err := req.Send() @@ -8552,8 +10032,18 @@ func (c *EC2) DisableVpcClassicLinkRequest(input *DisableVpcClassicLinkInput) (r return } +// DisableVpcClassicLink API operation for Amazon Elastic Compute Cloud. +// // Disables ClassicLink for a VPC. You cannot disable ClassicLink for a VPC // that has EC2-Classic instances linked to it. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation, DisableVpcClassicLink for more information, and other errors +// that the API operation could return. func (c *EC2) DisableVpcClassicLink(input *DisableVpcClassicLinkInput) (*DisableVpcClassicLinkOutput, error) { req, out := c.DisableVpcClassicLinkRequest(input) err := req.Send() @@ -8601,11 +10091,21 @@ func (c *EC2) DisableVpcClassicLinkDnsSupportRequest(input *DisableVpcClassicLin return } +// DisableVpcClassicLinkDnsSupport API operation for Amazon Elastic Compute Cloud. +// // Disables ClassicLink DNS support for a VPC. If disabled, DNS hostnames resolve // to public IP addresses when addressed between a linked EC2-Classic instance // and instances in the VPC to which it's linked. For more information about // ClassicLink, see ClassicLink (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/vpc-classiclink.html) // in the Amazon Elastic Compute Cloud User Guide. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation, DisableVpcClassicLinkDnsSupport for more information, and other errors +// that the API operation could return. func (c *EC2) DisableVpcClassicLinkDnsSupport(input *DisableVpcClassicLinkDnsSupportInput) (*DisableVpcClassicLinkDnsSupportOutput, error) { req, out := c.DisableVpcClassicLinkDnsSupportRequest(input) err := req.Send() @@ -8655,6 +10155,8 @@ func (c *EC2) DisassociateAddressRequest(input *DisassociateAddressInput) (req * return } +// DisassociateAddress API operation for Amazon Elastic Compute Cloud. +// // Disassociates an Elastic IP address from the instance or network interface // it's associated with. // @@ -8664,6 +10166,14 @@ func (c *EC2) DisassociateAddressRequest(input *DisassociateAddressInput) (req * // // This is an idempotent operation. If you perform the operation more than // once, Amazon EC2 doesn't return an error. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation, DisassociateAddress for more information, and other errors +// that the API operation could return. func (c *EC2) DisassociateAddress(input *DisassociateAddressInput) (*DisassociateAddressOutput, error) { req, out := c.DisassociateAddressRequest(input) err := req.Send() @@ -8713,12 +10223,22 @@ func (c *EC2) DisassociateRouteTableRequest(input *DisassociateRouteTableInput) return } +// DisassociateRouteTable API operation for Amazon Elastic Compute Cloud. +// // Disassociates a subnet from a route table. // // After you perform this action, the subnet no longer uses the routes in the // route table. Instead, it uses the routes in the VPC's main route table. For // more information about route tables, see Route Tables (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_Route_Tables.html) // in the Amazon Virtual Private Cloud User Guide. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation, DisassociateRouteTable for more information, and other errors +// that the API operation could return. func (c *EC2) DisassociateRouteTable(input *DisassociateRouteTableInput) (*DisassociateRouteTableOutput, error) { req, out := c.DisassociateRouteTableRequest(input) err := req.Send() @@ -8768,8 +10288,18 @@ func (c *EC2) EnableVgwRoutePropagationRequest(input *EnableVgwRoutePropagationI return } +// EnableVgwRoutePropagation API operation for Amazon Elastic Compute Cloud. +// // Enables a virtual private gateway (VGW) to propagate routes to the specified // route table of a VPC. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation, EnableVgwRoutePropagation for more information, and other errors +// that the API operation could return. func (c *EC2) EnableVgwRoutePropagation(input *EnableVgwRoutePropagationInput) (*EnableVgwRoutePropagationOutput, error) { req, out := c.EnableVgwRoutePropagationRequest(input) err := req.Send() @@ -8819,8 +10349,18 @@ func (c *EC2) EnableVolumeIORequest(input *EnableVolumeIOInput) (req *request.Re return } +// EnableVolumeIO API operation for Amazon Elastic Compute Cloud. +// // Enables I/O operations for a volume that had I/O operations disabled because // the data on the volume was potentially inconsistent. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation, EnableVolumeIO for more information, and other errors +// that the API operation could return. func (c *EC2) EnableVolumeIO(input *EnableVolumeIOInput) (*EnableVolumeIOOutput, error) { req, out := c.EnableVolumeIORequest(input) err := req.Send() @@ -8868,6 +10408,8 @@ func (c *EC2) EnableVpcClassicLinkRequest(input *EnableVpcClassicLinkInput) (req return } +// EnableVpcClassicLink API operation for Amazon Elastic Compute Cloud. +// // Enables a VPC for ClassicLink. You can then link EC2-Classic instances to // your ClassicLink-enabled VPC to allow communication over private IP addresses. // You cannot enable your VPC for ClassicLink if any of your VPC's route tables @@ -8875,6 +10417,14 @@ func (c *EC2) EnableVpcClassicLinkRequest(input *EnableVpcClassicLinkInput) (req // range, excluding local routes for VPCs in the 10.0.0.0/16 and 10.1.0.0/16 // IP address ranges. For more information, see ClassicLink (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/vpc-classiclink.html) // in the Amazon Elastic Compute Cloud User Guide. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation, EnableVpcClassicLink for more information, and other errors +// that the API operation could return. func (c *EC2) EnableVpcClassicLink(input *EnableVpcClassicLinkInput) (*EnableVpcClassicLinkOutput, error) { req, out := c.EnableVpcClassicLinkRequest(input) err := req.Send() @@ -8922,6 +10472,8 @@ func (c *EC2) EnableVpcClassicLinkDnsSupportRequest(input *EnableVpcClassicLinkD return } +// EnableVpcClassicLinkDnsSupport API operation for Amazon Elastic Compute Cloud. +// // Enables a VPC to support DNS hostname resolution for ClassicLink. If enabled, // the DNS hostname of a linked EC2-Classic instance resolves to its private // IP address when addressed from an instance in the VPC to which it's linked. @@ -8929,6 +10481,14 @@ func (c *EC2) EnableVpcClassicLinkDnsSupportRequest(input *EnableVpcClassicLinkD // IP address when addressed from a linked EC2-Classic instance. For more information // about ClassicLink, see ClassicLink (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/vpc-classiclink.html) // in the Amazon Elastic Compute Cloud User Guide. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation, EnableVpcClassicLinkDnsSupport for more information, and other errors +// that the API operation could return. func (c *EC2) EnableVpcClassicLinkDnsSupport(input *EnableVpcClassicLinkDnsSupportInput) (*EnableVpcClassicLinkDnsSupportOutput, error) { req, out := c.EnableVpcClassicLinkDnsSupportRequest(input) err := req.Send() @@ -8976,6 +10536,8 @@ func (c *EC2) GetConsoleOutputRequest(input *GetConsoleOutputInput) (req *reques return } +// GetConsoleOutput API operation for Amazon Elastic Compute Cloud. +// // Gets the console output for the specified instance. // // Instances do not have a physical monitor through which you can view their @@ -8994,6 +10556,14 @@ func (c *EC2) GetConsoleOutputRequest(input *GetConsoleOutputInput) (req *reques // // For Windows instances, the instance console output includes output from // the EC2Config service. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation, GetConsoleOutput for more information, and other errors +// that the API operation could return. func (c *EC2) GetConsoleOutput(input *GetConsoleOutputInput) (*GetConsoleOutputOutput, error) { req, out := c.GetConsoleOutputRequest(input) err := req.Send() @@ -9041,9 +10611,19 @@ func (c *EC2) GetConsoleScreenshotRequest(input *GetConsoleScreenshotInput) (req return } +// GetConsoleScreenshot API operation for Amazon Elastic Compute Cloud. +// // Retrieve a JPG-format screenshot of a running instance to help with troubleshooting. // // The returned content is Base64-encoded. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation, GetConsoleScreenshot for more information, and other errors +// that the API operation could return. func (c *EC2) GetConsoleScreenshot(input *GetConsoleScreenshotInput) (*GetConsoleScreenshotOutput, error) { req, out := c.GetConsoleScreenshotRequest(input) err := req.Send() @@ -9091,12 +10671,22 @@ func (c *EC2) GetHostReservationPurchasePreviewRequest(input *GetHostReservation return } +// GetHostReservationPurchasePreview API operation for Amazon Elastic Compute Cloud. +// // Preview a reservation purchase with configurations that match those of your // Dedicated Host. You must have active Dedicated Hosts in your account before // you purchase a reservation. // // This is a preview of the PurchaseHostReservation action and does not result // in the offering being purchased. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation, GetHostReservationPurchasePreview for more information, and other errors +// that the API operation could return. func (c *EC2) GetHostReservationPurchasePreview(input *GetHostReservationPurchasePreviewInput) (*GetHostReservationPurchasePreviewOutput, error) { req, out := c.GetHostReservationPurchasePreviewRequest(input) err := req.Send() @@ -9144,6 +10734,8 @@ func (c *EC2) GetPasswordDataRequest(input *GetPasswordDataInput) (req *request. return } +// GetPasswordData API operation for Amazon Elastic Compute Cloud. +// // Retrieves the encrypted administrator password for an instance running Windows. // // The Windows password is generated at boot if the EC2Config service plugin, @@ -9158,6 +10750,14 @@ func (c *EC2) GetPasswordDataRequest(input *GetPasswordDataInput) (req *request. // Password generation and encryption takes a few moments. We recommend that // you wait up to 15 minutes after launching an instance before trying to retrieve // the generated password. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation, GetPasswordData for more information, and other errors +// that the API operation could return. func (c *EC2) GetPasswordData(input *GetPasswordDataInput) (*GetPasswordDataOutput, error) { req, out := c.GetPasswordDataRequest(input) err := req.Send() @@ -9205,9 +10805,19 @@ func (c *EC2) GetReservedInstancesExchangeQuoteRequest(input *GetReservedInstanc return } +// GetReservedInstancesExchangeQuote API operation for Amazon Elastic Compute Cloud. +// // Returns details about the values and term of your specified Convertible Reserved // Instances. When an offering ID is specified it returns information about // whether the exchange is valid and can be performed. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation, GetReservedInstancesExchangeQuote for more information, and other errors +// that the API operation could return. func (c *EC2) GetReservedInstancesExchangeQuote(input *GetReservedInstancesExchangeQuoteInput) (*GetReservedInstancesExchangeQuoteOutput, error) { req, out := c.GetReservedInstancesExchangeQuoteRequest(input) err := req.Send() @@ -9255,10 +10865,20 @@ func (c *EC2) ImportImageRequest(input *ImportImageInput) (req *request.Request, return } +// ImportImage API operation for Amazon Elastic Compute Cloud. +// // Import single or multi-volume disk images or EBS snapshots into an Amazon // Machine Image (AMI). For more information, see Importing a VM as an Image // Using VM Import/Export (http://docs.aws.amazon.com/vm-import/latest/userguide/vmimport-image-import.html) // in the VM Import/Export User Guide. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation, ImportImage for more information, and other errors +// that the API operation could return. func (c *EC2) ImportImage(input *ImportImageInput) (*ImportImageOutput, error) { req, out := c.ImportImageRequest(input) err := req.Send() @@ -9306,6 +10926,8 @@ func (c *EC2) ImportInstanceRequest(input *ImportInstanceInput) (req *request.Re return } +// ImportInstance API operation for Amazon Elastic Compute Cloud. +// // Creates an import instance task using metadata from the specified disk image. // ImportInstance only supports single-volume VMs. To import multi-volume VMs, // use ImportImage. For more information, see Importing a Virtual Machine Using @@ -9313,6 +10935,14 @@ func (c *EC2) ImportInstanceRequest(input *ImportInstanceInput) (req *request.Re // // For information about the import manifest referenced by this API action, // see VM Import Manifest (http://docs.aws.amazon.com/AWSEC2/latest/APIReference/manifest.html). +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation, ImportInstance for more information, and other errors +// that the API operation could return. func (c *EC2) ImportInstance(input *ImportInstanceInput) (*ImportInstanceOutput, error) { req, out := c.ImportInstanceRequest(input) err := req.Send() @@ -9360,6 +10990,8 @@ func (c *EC2) ImportKeyPairRequest(input *ImportKeyPairInput) (req *request.Requ return } +// ImportKeyPair API operation for Amazon Elastic Compute Cloud. +// // Imports the public key from an RSA key pair that you created with a third-party // tool. Compare this with CreateKeyPair, in which AWS creates the key pair // and gives the keys to you (AWS keeps a copy of the public key). With ImportKeyPair, @@ -9368,6 +11000,14 @@ func (c *EC2) ImportKeyPairRequest(input *ImportKeyPairInput) (req *request.Requ // // For more information about key pairs, see Key Pairs (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-key-pairs.html) // in the Amazon Elastic Compute Cloud User Guide. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation, ImportKeyPair for more information, and other errors +// that the API operation could return. func (c *EC2) ImportKeyPair(input *ImportKeyPairInput) (*ImportKeyPairOutput, error) { req, out := c.ImportKeyPairRequest(input) err := req.Send() @@ -9415,7 +11055,17 @@ func (c *EC2) ImportSnapshotRequest(input *ImportSnapshotInput) (req *request.Re return } +// ImportSnapshot API operation for Amazon Elastic Compute Cloud. +// // Imports a disk into an EBS snapshot. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation, ImportSnapshot for more information, and other errors +// that the API operation could return. func (c *EC2) ImportSnapshot(input *ImportSnapshotInput) (*ImportSnapshotOutput, error) { req, out := c.ImportSnapshotRequest(input) err := req.Send() @@ -9463,11 +11113,21 @@ func (c *EC2) ImportVolumeRequest(input *ImportVolumeInput) (req *request.Reques return } +// ImportVolume API operation for Amazon Elastic Compute Cloud. +// // Creates an import volume task using metadata from the specified disk image.For // more information, see Importing Disks to Amazon EBS (http://docs.aws.amazon.com/AWSEC2/latest/CommandLineReference/importing-your-volumes-into-amazon-ebs.html). // // For information about the import manifest referenced by this API action, // see VM Import Manifest (http://docs.aws.amazon.com/AWSEC2/latest/APIReference/manifest.html). +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation, ImportVolume for more information, and other errors +// that the API operation could return. func (c *EC2) ImportVolume(input *ImportVolumeInput) (*ImportVolumeOutput, error) { req, out := c.ImportVolumeRequest(input) err := req.Send() @@ -9515,6 +11175,8 @@ func (c *EC2) ModifyHostsRequest(input *ModifyHostsInput) (req *request.Request, return } +// ModifyHosts API operation for Amazon Elastic Compute Cloud. +// // Modify the auto-placement setting of a Dedicated Host. When auto-placement // is enabled, AWS will place instances that you launch with a tenancy of host, // but without targeting a specific host ID, onto any available Dedicated Host @@ -9522,6 +11184,14 @@ func (c *EC2) ModifyHostsRequest(input *ModifyHostsInput) (req *request.Request, // disabled, you need to provide a host ID if you want the instance to launch // onto a specific host. If no host ID is provided, the instance will be launched // onto a suitable host which has auto-placement enabled. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation, ModifyHosts for more information, and other errors +// that the API operation could return. func (c *EC2) ModifyHosts(input *ModifyHostsInput) (*ModifyHostsOutput, error) { req, out := c.ModifyHostsRequest(input) err := req.Send() @@ -9571,6 +11241,8 @@ func (c *EC2) ModifyIdFormatRequest(input *ModifyIdFormatInput) (req *request.Re return } +// ModifyIdFormat API operation for Amazon Elastic Compute Cloud. +// // Modifies the ID format for the specified resource on a per-region basis. // You can specify that resources should receive longer IDs (17-character IDs) // when they are created. The following resource types support longer IDs: instance @@ -9587,6 +11259,14 @@ func (c *EC2) ModifyIdFormatRequest(input *ModifyIdFormatInput) (req *request.Re // Resources created with longer IDs are visible to all IAM roles and users, // regardless of these settings and provided that they have permission to use // the relevant Describe command for the resource type. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation, ModifyIdFormat for more information, and other errors +// that the API operation could return. func (c *EC2) ModifyIdFormat(input *ModifyIdFormatInput) (*ModifyIdFormatOutput, error) { req, out := c.ModifyIdFormatRequest(input) err := req.Send() @@ -9636,6 +11316,8 @@ func (c *EC2) ModifyIdentityIdFormatRequest(input *ModifyIdentityIdFormatInput) return } +// ModifyIdentityIdFormat API operation for Amazon Elastic Compute Cloud. +// // Modifies the ID format of a resource for a specified IAM user, IAM role, // or the root user for an account; or all IAM users, IAM roles, and the root // user for an account. You can specify that resources should receive longer @@ -9651,6 +11333,14 @@ func (c *EC2) ModifyIdentityIdFormatRequest(input *ModifyIdentityIdFormatInput) // Resources created with longer IDs are visible to all IAM roles and users, // regardless of these settings and provided that they have permission to use // the relevant Describe command for the resource type. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation, ModifyIdentityIdFormat for more information, and other errors +// that the API operation could return. func (c *EC2) ModifyIdentityIdFormat(input *ModifyIdentityIdFormatInput) (*ModifyIdentityIdFormatOutput, error) { req, out := c.ModifyIdentityIdFormatRequest(input) err := req.Send() @@ -9700,6 +11390,8 @@ func (c *EC2) ModifyImageAttributeRequest(input *ModifyImageAttributeInput) (req return } +// ModifyImageAttribute API operation for Amazon Elastic Compute Cloud. +// // Modifies the specified attribute of the specified AMI. You can specify only // one attribute at a time. // @@ -9710,6 +11402,14 @@ func (c *EC2) ModifyImageAttributeRequest(input *ModifyImageAttributeInput) (req // this command. Instead, enable SriovNetSupport on an instance and create an // AMI from the instance. This will result in an image with SriovNetSupport // enabled. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation, ModifyImageAttribute for more information, and other errors +// that the API operation could return. func (c *EC2) ModifyImageAttribute(input *ModifyImageAttributeInput) (*ModifyImageAttributeOutput, error) { req, out := c.ModifyImageAttributeRequest(input) err := req.Send() @@ -9759,12 +11459,22 @@ func (c *EC2) ModifyInstanceAttributeRequest(input *ModifyInstanceAttributeInput return } +// ModifyInstanceAttribute API operation for Amazon Elastic Compute Cloud. +// // Modifies the specified attribute of the specified instance. You can specify // only one attribute at a time. // // To modify some attributes, the instance must be stopped. For more information, // see Modifying Attributes of a Stopped Instance (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Using_ChangingAttributesWhileInstanceStopped.html) // in the Amazon Elastic Compute Cloud User Guide. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation, ModifyInstanceAttribute for more information, and other errors +// that the API operation could return. func (c *EC2) ModifyInstanceAttribute(input *ModifyInstanceAttributeInput) (*ModifyInstanceAttributeOutput, error) { req, out := c.ModifyInstanceAttributeRequest(input) err := req.Send() @@ -9812,6 +11522,8 @@ func (c *EC2) ModifyInstancePlacementRequest(input *ModifyInstancePlacementInput return } +// ModifyInstancePlacement API operation for Amazon Elastic Compute Cloud. +// // Set the instance affinity value for a specific stopped instance and modify // the instance tenancy setting. // @@ -9831,6 +11543,14 @@ func (c *EC2) ModifyInstancePlacementRequest(input *ModifyInstancePlacementInput // one of them must be specified in the request. Affinity and tenancy can be // modified in the same request, but tenancy can only be modified on instances // that are stopped. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation, ModifyInstancePlacement for more information, and other errors +// that the API operation could return. func (c *EC2) ModifyInstancePlacement(input *ModifyInstancePlacementInput) (*ModifyInstancePlacementOutput, error) { req, out := c.ModifyInstancePlacementRequest(input) err := req.Send() @@ -9880,8 +11600,18 @@ func (c *EC2) ModifyNetworkInterfaceAttributeRequest(input *ModifyNetworkInterfa return } +// ModifyNetworkInterfaceAttribute API operation for Amazon Elastic Compute Cloud. +// // Modifies the specified network interface attribute. You can specify only // one attribute at a time. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation, ModifyNetworkInterfaceAttribute for more information, and other errors +// that the API operation could return. func (c *EC2) ModifyNetworkInterfaceAttribute(input *ModifyNetworkInterfaceAttributeInput) (*ModifyNetworkInterfaceAttributeOutput, error) { req, out := c.ModifyNetworkInterfaceAttributeRequest(input) err := req.Send() @@ -9929,6 +11659,8 @@ func (c *EC2) ModifyReservedInstancesRequest(input *ModifyReservedInstancesInput return } +// ModifyReservedInstances API operation for Amazon Elastic Compute Cloud. +// // Modifies the Availability Zone, instance count, instance type, or network // platform (EC2-Classic or EC2-VPC) of your Standard Reserved Instances. The // Reserved Instances to be modified must be identical, except for Availability @@ -9936,6 +11668,14 @@ func (c *EC2) ModifyReservedInstancesRequest(input *ModifyReservedInstancesInput // // For more information, see Modifying Reserved Instances (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ri-modifying.html) // in the Amazon Elastic Compute Cloud User Guide. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation, ModifyReservedInstances for more information, and other errors +// that the API operation could return. func (c *EC2) ModifyReservedInstances(input *ModifyReservedInstancesInput) (*ModifyReservedInstancesOutput, error) { req, out := c.ModifyReservedInstancesRequest(input) err := req.Send() @@ -9985,6 +11725,8 @@ func (c *EC2) ModifySnapshotAttributeRequest(input *ModifySnapshotAttributeInput return } +// ModifySnapshotAttribute API operation for Amazon Elastic Compute Cloud. +// // Adds or removes permission settings for the specified snapshot. You may add // or remove specified AWS account IDs from a snapshot's list of create volume // permissions, but you cannot do both in a single API call. If you need to @@ -9998,6 +11740,14 @@ func (c *EC2) ModifySnapshotAttributeRequest(input *ModifySnapshotAttributeInput // For more information on modifying snapshot permissions, see Sharing Snapshots // (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-modifying-snapshot-permissions.html) // in the Amazon Elastic Compute Cloud User Guide. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation, ModifySnapshotAttribute for more information, and other errors +// that the API operation could return. func (c *EC2) ModifySnapshotAttribute(input *ModifySnapshotAttributeInput) (*ModifySnapshotAttributeOutput, error) { req, out := c.ModifySnapshotAttributeRequest(input) err := req.Send() @@ -10045,6 +11795,8 @@ func (c *EC2) ModifySpotFleetRequestRequest(input *ModifySpotFleetRequestInput) return } +// ModifySpotFleetRequest API operation for Amazon Elastic Compute Cloud. +// // Modifies the specified Spot fleet request. // // While the Spot fleet request is being modified, it is in the modifying state. @@ -10065,6 +11817,14 @@ func (c *EC2) ModifySpotFleetRequestRequest(input *ModifySpotFleetRequestInput) // terminates instances across the Spot pools. Alternatively, you can request // that the Spot fleet keep the fleet at its current size, but not replace any // Spot instances that are interrupted or that you terminate manually. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation, ModifySpotFleetRequest for more information, and other errors +// that the API operation could return. func (c *EC2) ModifySpotFleetRequest(input *ModifySpotFleetRequestInput) (*ModifySpotFleetRequestOutput, error) { req, out := c.ModifySpotFleetRequestRequest(input) err := req.Send() @@ -10114,7 +11874,17 @@ func (c *EC2) ModifySubnetAttributeRequest(input *ModifySubnetAttributeInput) (r return } +// ModifySubnetAttribute API operation for Amazon Elastic Compute Cloud. +// // Modifies a subnet attribute. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation, ModifySubnetAttribute for more information, and other errors +// that the API operation could return. func (c *EC2) ModifySubnetAttribute(input *ModifySubnetAttributeInput) (*ModifySubnetAttributeOutput, error) { req, out := c.ModifySubnetAttributeRequest(input) err := req.Send() @@ -10164,6 +11934,8 @@ func (c *EC2) ModifyVolumeAttributeRequest(input *ModifyVolumeAttributeInput) (r return } +// ModifyVolumeAttribute API operation for Amazon Elastic Compute Cloud. +// // Modifies a volume attribute. // // By default, all I/O operations for the volume are suspended when the data @@ -10174,6 +11946,14 @@ func (c *EC2) ModifyVolumeAttributeRequest(input *ModifyVolumeAttributeInput) (r // You can change the default behavior to resume I/O operations. We recommend // that you change this only for boot volumes or for volumes that are stateless // or disposable. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation, ModifyVolumeAttribute for more information, and other errors +// that the API operation could return. func (c *EC2) ModifyVolumeAttribute(input *ModifyVolumeAttributeInput) (*ModifyVolumeAttributeOutput, error) { req, out := c.ModifyVolumeAttributeRequest(input) err := req.Send() @@ -10223,7 +12003,17 @@ func (c *EC2) ModifyVpcAttributeRequest(input *ModifyVpcAttributeInput) (req *re return } +// ModifyVpcAttribute API operation for Amazon Elastic Compute Cloud. +// // Modifies the specified attribute of the specified VPC. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation, ModifyVpcAttribute for more information, and other errors +// that the API operation could return. func (c *EC2) ModifyVpcAttribute(input *ModifyVpcAttributeInput) (*ModifyVpcAttributeOutput, error) { req, out := c.ModifyVpcAttributeRequest(input) err := req.Send() @@ -10271,9 +12061,19 @@ func (c *EC2) ModifyVpcEndpointRequest(input *ModifyVpcEndpointInput) (req *requ return } +// ModifyVpcEndpoint API operation for Amazon Elastic Compute Cloud. +// // Modifies attributes of a specified VPC endpoint. You can modify the policy // associated with the endpoint, and you can add and remove route tables associated // with the endpoint. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation, ModifyVpcEndpoint for more information, and other errors +// that the API operation could return. func (c *EC2) ModifyVpcEndpoint(input *ModifyVpcEndpointInput) (*ModifyVpcEndpointOutput, error) { req, out := c.ModifyVpcEndpointRequest(input) err := req.Send() @@ -10321,6 +12121,8 @@ func (c *EC2) ModifyVpcPeeringConnectionOptionsRequest(input *ModifyVpcPeeringCo return } +// ModifyVpcPeeringConnectionOptions API operation for Amazon Elastic Compute Cloud. +// // Modifies the VPC peering connection options on one side of a VPC peering // connection. You can do the following: // @@ -10341,6 +12143,14 @@ func (c *EC2) ModifyVpcPeeringConnectionOptionsRequest(input *ModifyVpcPeeringCo // and accepter options in the same request. To confirm which VPC is the accepter // and requester for a VPC peering connection, use the DescribeVpcPeeringConnections // command. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation, ModifyVpcPeeringConnectionOptions for more information, and other errors +// that the API operation could return. func (c *EC2) ModifyVpcPeeringConnectionOptions(input *ModifyVpcPeeringConnectionOptionsInput) (*ModifyVpcPeeringConnectionOptionsOutput, error) { req, out := c.ModifyVpcPeeringConnectionOptionsRequest(input) err := req.Send() @@ -10388,9 +12198,19 @@ func (c *EC2) MonitorInstancesRequest(input *MonitorInstancesInput) (req *reques return } +// MonitorInstances API operation for Amazon Elastic Compute Cloud. +// // Enables monitoring for a running instance. For more information about monitoring // instances, see Monitoring Your Instances and Volumes (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-cloudwatch.html) // in the Amazon Elastic Compute Cloud User Guide. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation, MonitorInstances for more information, and other errors +// that the API operation could return. func (c *EC2) MonitorInstances(input *MonitorInstancesInput) (*MonitorInstancesOutput, error) { req, out := c.MonitorInstancesRequest(input) err := req.Send() @@ -10438,6 +12258,8 @@ func (c *EC2) MoveAddressToVpcRequest(input *MoveAddressToVpcInput) (req *reques return } +// MoveAddressToVpc API operation for Amazon Elastic Compute Cloud. +// // Moves an Elastic IP address from the EC2-Classic platform to the EC2-VPC // platform. The Elastic IP address must be allocated to your account for more // than 24 hours, and it must not be associated with an instance. After the @@ -10445,6 +12267,14 @@ func (c *EC2) MoveAddressToVpcRequest(input *MoveAddressToVpcInput) (req *reques // platform, unless you move it back using the RestoreAddressToClassic request. // You cannot move an Elastic IP address that was originally allocated for use // in the EC2-VPC platform to the EC2-Classic platform. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation, MoveAddressToVpc for more information, and other errors +// that the API operation could return. func (c *EC2) MoveAddressToVpc(input *MoveAddressToVpcInput) (*MoveAddressToVpcOutput, error) { req, out := c.MoveAddressToVpcRequest(input) err := req.Send() @@ -10492,10 +12322,20 @@ func (c *EC2) PurchaseHostReservationRequest(input *PurchaseHostReservationInput return } +// PurchaseHostReservation API operation for Amazon Elastic Compute Cloud. +// // Purchase a reservation with configurations that match those of your Dedicated // Host. You must have active Dedicated Hosts in your account before you purchase // a reservation. This action results in the specified reservation being purchased // and charged to your account. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation, PurchaseHostReservation for more information, and other errors +// that the API operation could return. func (c *EC2) PurchaseHostReservation(input *PurchaseHostReservationInput) (*PurchaseHostReservationOutput, error) { req, out := c.PurchaseHostReservationRequest(input) err := req.Send() @@ -10543,6 +12383,8 @@ func (c *EC2) PurchaseReservedInstancesOfferingRequest(input *PurchaseReservedIn return } +// PurchaseReservedInstancesOffering API operation for Amazon Elastic Compute Cloud. +// // Purchases a Reserved Instance for use with your account. With Reserved Instances, // you pay a lower hourly rate compared to On-Demand instance pricing. // @@ -10553,6 +12395,14 @@ func (c *EC2) PurchaseReservedInstancesOfferingRequest(input *PurchaseReservedIn // For more information, see Reserved Instances (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/concepts-on-demand-reserved-instances.html) // and Reserved Instance Marketplace (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ri-market-general.html) // in the Amazon Elastic Compute Cloud User Guide. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation, PurchaseReservedInstancesOffering for more information, and other errors +// that the API operation could return. func (c *EC2) PurchaseReservedInstancesOffering(input *PurchaseReservedInstancesOfferingInput) (*PurchaseReservedInstancesOfferingOutput, error) { req, out := c.PurchaseReservedInstancesOfferingRequest(input) err := req.Send() @@ -10600,6 +12450,8 @@ func (c *EC2) PurchaseScheduledInstancesRequest(input *PurchaseScheduledInstance return } +// PurchaseScheduledInstances API operation for Amazon Elastic Compute Cloud. +// // Purchases one or more Scheduled Instances with the specified schedule. // // Scheduled Instances enable you to purchase Amazon EC2 compute capacity by @@ -10610,6 +12462,14 @@ func (c *EC2) PurchaseScheduledInstancesRequest(input *PurchaseScheduledInstance // // After you purchase a Scheduled Instance, you can't cancel, modify, or resell // your purchase. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation, PurchaseScheduledInstances for more information, and other errors +// that the API operation could return. func (c *EC2) PurchaseScheduledInstances(input *PurchaseScheduledInstancesInput) (*PurchaseScheduledInstancesOutput, error) { req, out := c.PurchaseScheduledInstancesRequest(input) err := req.Send() @@ -10659,6 +12519,8 @@ func (c *EC2) RebootInstancesRequest(input *RebootInstancesInput) (req *request. return } +// RebootInstances API operation for Amazon Elastic Compute Cloud. +// // Requests a reboot of one or more instances. This operation is asynchronous; // it only queues a request to reboot the specified instances. The operation // succeeds if the instances are valid and belong to you. Requests to reboot @@ -10670,6 +12532,14 @@ func (c *EC2) RebootInstancesRequest(input *RebootInstancesInput) (req *request. // For more information about troubleshooting, see Getting Console Output and // Rebooting Instances (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-console.html) // in the Amazon Elastic Compute Cloud User Guide. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation, RebootInstances for more information, and other errors +// that the API operation could return. func (c *EC2) RebootInstances(input *RebootInstancesInput) (*RebootInstancesOutput, error) { req, out := c.RebootInstancesRequest(input) err := req.Send() @@ -10717,6 +12587,8 @@ func (c *EC2) RegisterImageRequest(input *RegisterImageInput) (req *request.Requ return } +// RegisterImage API operation for Amazon Elastic Compute Cloud. +// // Registers an AMI. When you're creating an AMI, this is the final step you // must complete before you can launch an instance from the AMI. For more information // about creating AMIs, see Creating Your Own AMIs (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/creating-an-ami.html) @@ -10750,6 +12622,14 @@ func (c *EC2) RegisterImageRequest(input *RegisterImageInput) (req *request.Requ // // You can't register an image where a secondary (non-root) snapshot has AWS // Marketplace product codes. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation, RegisterImage for more information, and other errors +// that the API operation could return. func (c *EC2) RegisterImage(input *RegisterImageInput) (*RegisterImageOutput, error) { req, out := c.RegisterImageRequest(input) err := req.Send() @@ -10797,11 +12677,21 @@ func (c *EC2) RejectVpcPeeringConnectionRequest(input *RejectVpcPeeringConnectio return } +// RejectVpcPeeringConnection API operation for Amazon Elastic Compute Cloud. +// // Rejects a VPC peering connection request. The VPC peering connection must // be in the pending-acceptance state. Use the DescribeVpcPeeringConnections // request to view your outstanding VPC peering connection requests. To delete // an active VPC peering connection, or to delete a VPC peering connection request // that you initiated, use DeleteVpcPeeringConnection. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation, RejectVpcPeeringConnection for more information, and other errors +// that the API operation could return. func (c *EC2) RejectVpcPeeringConnection(input *RejectVpcPeeringConnectionInput) (*RejectVpcPeeringConnectionOutput, error) { req, out := c.RejectVpcPeeringConnectionRequest(input) err := req.Send() @@ -10851,6 +12741,8 @@ func (c *EC2) ReleaseAddressRequest(input *ReleaseAddressInput) (req *request.Re return } +// ReleaseAddress API operation for Amazon Elastic Compute Cloud. +// // Releases the specified Elastic IP address. // // After releasing an Elastic IP address, it is released to the IP address @@ -10866,6 +12758,14 @@ func (c *EC2) ReleaseAddressRequest(input *ReleaseAddressInput) (req *request.Re // [Nondefault VPC] You must use DisassociateAddress to disassociate the Elastic // IP address before you try to release it. Otherwise, Amazon EC2 returns an // error (InvalidIPAddress.InUse). +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation, ReleaseAddress for more information, and other errors +// that the API operation could return. func (c *EC2) ReleaseAddress(input *ReleaseAddressInput) (*ReleaseAddressOutput, error) { req, out := c.ReleaseAddressRequest(input) err := req.Send() @@ -10913,6 +12813,8 @@ func (c *EC2) ReleaseHostsRequest(input *ReleaseHostsInput) (req *request.Reques return } +// ReleaseHosts API operation for Amazon Elastic Compute Cloud. +// // When you no longer want to use an On-Demand Dedicated Host it can be released. // On-Demand billing is stopped and the host goes into released state. The host // ID of Dedicated Hosts that have been released can no longer be specified @@ -10925,6 +12827,14 @@ func (c *EC2) ReleaseHostsRequest(input *ReleaseHostsInput) (req *request.Reques // again. // // Released hosts will still appear in a DescribeHosts response. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation, ReleaseHosts for more information, and other errors +// that the API operation could return. func (c *EC2) ReleaseHosts(input *ReleaseHostsInput) (*ReleaseHostsOutput, error) { req, out := c.ReleaseHostsRequest(input) err := req.Send() @@ -10972,10 +12882,20 @@ func (c *EC2) ReplaceNetworkAclAssociationRequest(input *ReplaceNetworkAclAssoci return } +// ReplaceNetworkAclAssociation API operation for Amazon Elastic Compute Cloud. +// // Changes which network ACL a subnet is associated with. By default when you // create a subnet, it's automatically associated with the default network ACL. // For more information about network ACLs, see Network ACLs (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_ACLs.html) // in the Amazon Virtual Private Cloud User Guide. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation, ReplaceNetworkAclAssociation for more information, and other errors +// that the API operation could return. func (c *EC2) ReplaceNetworkAclAssociation(input *ReplaceNetworkAclAssociationInput) (*ReplaceNetworkAclAssociationOutput, error) { req, out := c.ReplaceNetworkAclAssociationRequest(input) err := req.Send() @@ -11025,9 +12945,19 @@ func (c *EC2) ReplaceNetworkAclEntryRequest(input *ReplaceNetworkAclEntryInput) return } +// ReplaceNetworkAclEntry API operation for Amazon Elastic Compute Cloud. +// // Replaces an entry (rule) in a network ACL. For more information about network // ACLs, see Network ACLs (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_ACLs.html) // in the Amazon Virtual Private Cloud User Guide. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation, ReplaceNetworkAclEntry for more information, and other errors +// that the API operation could return. func (c *EC2) ReplaceNetworkAclEntry(input *ReplaceNetworkAclEntryInput) (*ReplaceNetworkAclEntryOutput, error) { req, out := c.ReplaceNetworkAclEntryRequest(input) err := req.Send() @@ -11077,12 +13007,22 @@ func (c *EC2) ReplaceRouteRequest(input *ReplaceRouteInput) (req *request.Reques return } +// ReplaceRoute API operation for Amazon Elastic Compute Cloud. +// // Replaces an existing route within a route table in a VPC. You must provide // only one of the following: Internet gateway or virtual private gateway, NAT // instance, NAT gateway, VPC peering connection, or network interface. // // For more information about route tables, see Route Tables (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_Route_Tables.html) // in the Amazon Virtual Private Cloud User Guide. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation, ReplaceRoute for more information, and other errors +// that the API operation could return. func (c *EC2) ReplaceRoute(input *ReplaceRouteInput) (*ReplaceRouteOutput, error) { req, out := c.ReplaceRouteRequest(input) err := req.Send() @@ -11130,6 +13070,8 @@ func (c *EC2) ReplaceRouteTableAssociationRequest(input *ReplaceRouteTableAssoci return } +// ReplaceRouteTableAssociation API operation for Amazon Elastic Compute Cloud. +// // Changes the route table associated with a given subnet in a VPC. After the // operation completes, the subnet uses the routes in the new route table it's // associated with. For more information about route tables, see Route Tables @@ -11139,6 +13081,14 @@ func (c *EC2) ReplaceRouteTableAssociationRequest(input *ReplaceRouteTableAssoci // You can also use ReplaceRouteTableAssociation to change which table is the // main route table in the VPC. You just specify the main route table's association // ID and the route table to be the new main route table. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation, ReplaceRouteTableAssociation for more information, and other errors +// that the API operation could return. func (c *EC2) ReplaceRouteTableAssociation(input *ReplaceRouteTableAssociationInput) (*ReplaceRouteTableAssociationOutput, error) { req, out := c.ReplaceRouteTableAssociationRequest(input) err := req.Send() @@ -11188,6 +13138,8 @@ func (c *EC2) ReportInstanceStatusRequest(input *ReportInstanceStatusInput) (req return } +// ReportInstanceStatus API operation for Amazon Elastic Compute Cloud. +// // Submits feedback about the status of an instance. The instance must be in // the running state. If your experience with the instance differs from the // instance status returned by DescribeInstanceStatus, use ReportInstanceStatus @@ -11195,6 +13147,14 @@ func (c *EC2) ReportInstanceStatusRequest(input *ReportInstanceStatusInput) (req // to improve the accuracy of status checks. // // Use of this action does not change the value returned by DescribeInstanceStatus. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation, ReportInstanceStatus for more information, and other errors +// that the API operation could return. func (c *EC2) ReportInstanceStatus(input *ReportInstanceStatusInput) (*ReportInstanceStatusOutput, error) { req, out := c.ReportInstanceStatusRequest(input) err := req.Send() @@ -11242,6 +13202,8 @@ func (c *EC2) RequestSpotFleetRequest(input *RequestSpotFleetInput) (req *reques return } +// RequestSpotFleet API operation for Amazon Elastic Compute Cloud. +// // Creates a Spot fleet request. // // You can submit a single request that includes multiple launch specifications @@ -11259,6 +13221,14 @@ func (c *EC2) RequestSpotFleetRequest(input *RequestSpotFleetInput) (req *reques // // For more information, see Spot Fleet Requests (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/spot-fleet-requests.html) // in the Amazon Elastic Compute Cloud User Guide. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation, RequestSpotFleet for more information, and other errors +// that the API operation could return. func (c *EC2) RequestSpotFleet(input *RequestSpotFleetInput) (*RequestSpotFleetOutput, error) { req, out := c.RequestSpotFleetRequest(input) err := req.Send() @@ -11306,12 +13276,22 @@ func (c *EC2) RequestSpotInstancesRequest(input *RequestSpotInstancesInput) (req return } +// RequestSpotInstances API operation for Amazon Elastic Compute Cloud. +// // Creates a Spot instance request. Spot instances are instances that Amazon // EC2 launches when the bid price that you specify exceeds the current Spot // price. Amazon EC2 periodically sets the Spot price based on available Spot // Instance capacity and current Spot instance requests. For more information, // see Spot Instance Requests (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/spot-requests.html) // in the Amazon Elastic Compute Cloud User Guide. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation, RequestSpotInstances for more information, and other errors +// that the API operation could return. func (c *EC2) RequestSpotInstances(input *RequestSpotInstancesInput) (*RequestSpotInstancesOutput, error) { req, out := c.RequestSpotInstancesRequest(input) err := req.Send() @@ -11361,9 +13341,19 @@ func (c *EC2) ResetImageAttributeRequest(input *ResetImageAttributeInput) (req * return } +// ResetImageAttribute API operation for Amazon Elastic Compute Cloud. +// // Resets an attribute of an AMI to its default value. // // The productCodes attribute can't be reset. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation, ResetImageAttribute for more information, and other errors +// that the API operation could return. func (c *EC2) ResetImageAttribute(input *ResetImageAttributeInput) (*ResetImageAttributeOutput, error) { req, out := c.ResetImageAttributeRequest(input) err := req.Send() @@ -11413,6 +13403,8 @@ func (c *EC2) ResetInstanceAttributeRequest(input *ResetInstanceAttributeInput) return } +// ResetInstanceAttribute API operation for Amazon Elastic Compute Cloud. +// // Resets an attribute of an instance to its default value. To reset the kernel // or ramdisk, the instance must be in a stopped state. To reset the sourceDestCheck, // the instance can be either running or stopped. @@ -11422,6 +13414,14 @@ func (c *EC2) ResetInstanceAttributeRequest(input *ResetInstanceAttributeInput) // value must be false for a NAT instance to perform NAT. For more information, // see NAT Instances (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_NAT_Instance.html) // in the Amazon Virtual Private Cloud User Guide. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation, ResetInstanceAttribute for more information, and other errors +// that the API operation could return. func (c *EC2) ResetInstanceAttribute(input *ResetInstanceAttributeInput) (*ResetInstanceAttributeOutput, error) { req, out := c.ResetInstanceAttributeRequest(input) err := req.Send() @@ -11471,8 +13471,18 @@ func (c *EC2) ResetNetworkInterfaceAttributeRequest(input *ResetNetworkInterface return } +// ResetNetworkInterfaceAttribute API operation for Amazon Elastic Compute Cloud. +// // Resets a network interface attribute. You can specify only one attribute // at a time. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation, ResetNetworkInterfaceAttribute for more information, and other errors +// that the API operation could return. func (c *EC2) ResetNetworkInterfaceAttribute(input *ResetNetworkInterfaceAttributeInput) (*ResetNetworkInterfaceAttributeOutput, error) { req, out := c.ResetNetworkInterfaceAttributeRequest(input) err := req.Send() @@ -11522,11 +13532,21 @@ func (c *EC2) ResetSnapshotAttributeRequest(input *ResetSnapshotAttributeInput) return } +// ResetSnapshotAttribute API operation for Amazon Elastic Compute Cloud. +// // Resets permission settings for the specified snapshot. // // For more information on modifying snapshot permissions, see Sharing Snapshots // (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-modifying-snapshot-permissions.html) // in the Amazon Elastic Compute Cloud User Guide. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation, ResetSnapshotAttribute for more information, and other errors +// that the API operation could return. func (c *EC2) ResetSnapshotAttribute(input *ResetSnapshotAttributeInput) (*ResetSnapshotAttributeOutput, error) { req, out := c.ResetSnapshotAttributeRequest(input) err := req.Send() @@ -11574,10 +13594,20 @@ func (c *EC2) RestoreAddressToClassicRequest(input *RestoreAddressToClassicInput return } +// RestoreAddressToClassic API operation for Amazon Elastic Compute Cloud. +// // Restores an Elastic IP address that was previously moved to the EC2-VPC platform // back to the EC2-Classic platform. You cannot move an Elastic IP address that // was originally allocated for use in EC2-VPC. The Elastic IP address must // not be associated with an instance or network interface. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation, RestoreAddressToClassic for more information, and other errors +// that the API operation could return. func (c *EC2) RestoreAddressToClassic(input *RestoreAddressToClassicInput) (*RestoreAddressToClassicOutput, error) { req, out := c.RestoreAddressToClassicRequest(input) err := req.Send() @@ -11627,6 +13657,8 @@ func (c *EC2) RevokeSecurityGroupEgressRequest(input *RevokeSecurityGroupEgressI return } +// RevokeSecurityGroupEgress API operation for Amazon Elastic Compute Cloud. +// // [EC2-VPC only] Removes one or more egress rules from a security group for // EC2-VPC. This action doesn't apply to security groups for use in EC2-Classic. // The values that you specify in the revoke request (for example, ports) must @@ -11639,6 +13671,14 @@ func (c *EC2) RevokeSecurityGroupEgressRequest(input *RevokeSecurityGroupEgressI // // Rule changes are propagated to instances within the security group as quickly // as possible. However, a small delay might occur. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation, RevokeSecurityGroupEgress for more information, and other errors +// that the API operation could return. func (c *EC2) RevokeSecurityGroupEgress(input *RevokeSecurityGroupEgressInput) (*RevokeSecurityGroupEgressOutput, error) { req, out := c.RevokeSecurityGroupEgressRequest(input) err := req.Send() @@ -11688,6 +13728,8 @@ func (c *EC2) RevokeSecurityGroupIngressRequest(input *RevokeSecurityGroupIngres return } +// RevokeSecurityGroupIngress API operation for Amazon Elastic Compute Cloud. +// // Removes one or more ingress rules from a security group. The values that // you specify in the revoke request (for example, ports) must match the existing // rule's values for the rule to be removed. @@ -11699,6 +13741,14 @@ func (c *EC2) RevokeSecurityGroupIngressRequest(input *RevokeSecurityGroupIngres // // Rule changes are propagated to instances within the security group as quickly // as possible. However, a small delay might occur. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation, RevokeSecurityGroupIngress for more information, and other errors +// that the API operation could return. func (c *EC2) RevokeSecurityGroupIngress(input *RevokeSecurityGroupIngressInput) (*RevokeSecurityGroupIngressOutput, error) { req, out := c.RevokeSecurityGroupIngressRequest(input) err := req.Send() @@ -11746,6 +13796,8 @@ func (c *EC2) RunInstancesRequest(input *RunInstancesInput) (req *request.Reques return } +// RunInstances API operation for Amazon Elastic Compute Cloud. +// // Launches the specified number of instances using an AMI for which you have // permissions. // @@ -11793,6 +13845,14 @@ func (c *EC2) RunInstancesRequest(input *RunInstancesInput) (req *request.Reques // Immediately Terminates (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Using_InstanceStraightToTerminated.html), // and Troubleshooting Connecting to Your Instance (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/TroubleshootingInstancesConnecting.html) // in the Amazon Elastic Compute Cloud User Guide. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation, RunInstances for more information, and other errors +// that the API operation could return. func (c *EC2) RunInstances(input *RunInstancesInput) (*Reservation, error) { req, out := c.RunInstancesRequest(input) err := req.Send() @@ -11840,6 +13900,8 @@ func (c *EC2) RunScheduledInstancesRequest(input *RunScheduledInstancesInput) (r return } +// RunScheduledInstances API operation for Amazon Elastic Compute Cloud. +// // Launches the specified Scheduled Instances. // // Before you can launch a Scheduled Instance, you must purchase it and obtain @@ -11851,6 +13913,14 @@ func (c *EC2) RunScheduledInstancesRequest(input *RunScheduledInstancesInput) (r // ends, you can launch it again after a few minutes. For more information, // see Scheduled Instances (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-scheduled-instances.html) // in the Amazon Elastic Compute Cloud User Guide. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation, RunScheduledInstances for more information, and other errors +// that the API operation could return. func (c *EC2) RunScheduledInstances(input *RunScheduledInstancesInput) (*RunScheduledInstancesOutput, error) { req, out := c.RunScheduledInstancesRequest(input) err := req.Send() @@ -11898,6 +13968,8 @@ func (c *EC2) StartInstancesRequest(input *StartInstancesInput) (req *request.Re return } +// StartInstances API operation for Amazon Elastic Compute Cloud. +// // Starts an Amazon EBS-backed AMI that you've previously stopped. // // Instances that use Amazon EBS volumes as their root devices can be quickly @@ -11917,6 +13989,14 @@ func (c *EC2) StartInstancesRequest(input *StartInstancesInput) (req *request.Re // // For more information, see Stopping Instances (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Stop_Start.html) // in the Amazon Elastic Compute Cloud User Guide. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation, StartInstances for more information, and other errors +// that the API operation could return. func (c *EC2) StartInstances(input *StartInstancesInput) (*StartInstancesOutput, error) { req, out := c.StartInstancesRequest(input) err := req.Send() @@ -11964,6 +14044,8 @@ func (c *EC2) StopInstancesRequest(input *StopInstancesInput) (req *request.Requ return } +// StopInstances API operation for Amazon Elastic Compute Cloud. +// // Stops an Amazon EBS-backed instance. // // We don't charge hourly usage for a stopped instance, or data transfer fees; @@ -11994,6 +14076,14 @@ func (c *EC2) StopInstancesRequest(input *StopInstancesInput) (req *request.Requ // of time, there may be an issue with the underlying host computer. For more // information, see Troubleshooting Stopping Your Instance (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/TroubleshootingInstancesStopping.html) // in the Amazon Elastic Compute Cloud User Guide. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation, StopInstances for more information, and other errors +// that the API operation could return. func (c *EC2) StopInstances(input *StopInstancesInput) (*StopInstancesOutput, error) { req, out := c.StopInstancesRequest(input) err := req.Send() @@ -12041,6 +14131,8 @@ func (c *EC2) TerminateInstancesRequest(input *TerminateInstancesInput) (req *re return } +// TerminateInstances API operation for Amazon Elastic Compute Cloud. +// // Shuts down one or more instances. This operation is idempotent; if you terminate // an instance more than once, each call succeeds. // @@ -12066,6 +14158,14 @@ func (c *EC2) TerminateInstancesRequest(input *TerminateInstancesInput) (req *re // For more information about troubleshooting, see Troubleshooting Terminating // Your Instance (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/TroubleshootingInstancesShuttingDown.html) // in the Amazon Elastic Compute Cloud User Guide. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation, TerminateInstances for more information, and other errors +// that the API operation could return. func (c *EC2) TerminateInstances(input *TerminateInstancesInput) (*TerminateInstancesOutput, error) { req, out := c.TerminateInstancesRequest(input) err := req.Send() @@ -12115,7 +14215,17 @@ func (c *EC2) UnassignPrivateIpAddressesRequest(input *UnassignPrivateIpAddresse return } +// UnassignPrivateIpAddresses API operation for Amazon Elastic Compute Cloud. +// // Unassigns one or more secondary private IP addresses from a network interface. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation, UnassignPrivateIpAddresses for more information, and other errors +// that the API operation could return. func (c *EC2) UnassignPrivateIpAddresses(input *UnassignPrivateIpAddressesInput) (*UnassignPrivateIpAddressesOutput, error) { req, out := c.UnassignPrivateIpAddressesRequest(input) err := req.Send() @@ -12163,9 +14273,19 @@ func (c *EC2) UnmonitorInstancesRequest(input *UnmonitorInstancesInput) (req *re return } +// UnmonitorInstances API operation for Amazon Elastic Compute Cloud. +// // Disables monitoring for a running instance. For more information about monitoring // instances, see Monitoring Your Instances and Volumes (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-cloudwatch.html) // in the Amazon Elastic Compute Cloud User Guide. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation, UnmonitorInstances for more information, and other errors +// that the API operation could return. func (c *EC2) UnmonitorInstances(input *UnmonitorInstancesInput) (*UnmonitorInstancesOutput, error) { req, out := c.UnmonitorInstancesRequest(input) err := req.Send() diff --git a/service/ecr/api.go b/service/ecr/api.go index 34a728fb2a1..5e4cda7f251 100644 --- a/service/ecr/api.go +++ b/service/ecr/api.go @@ -51,11 +51,27 @@ func (c *ECR) BatchCheckLayerAvailabilityRequest(input *BatchCheckLayerAvailabil return } +// BatchCheckLayerAvailability API operation for Amazon EC2 Container Registry. +// // Check the availability of multiple image layers in a specified registry and // repository. // // This operation is used by the Amazon ECR proxy, and it is not intended // for general use by customers. Use the docker CLI to pull, tag, and push images. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon EC2 Container Registry's +// API operation, BatchCheckLayerAvailability for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// RepositoryNotFoundException +// InvalidParameterException +// ServerException func (c *ECR) BatchCheckLayerAvailability(input *BatchCheckLayerAvailabilityInput) (*BatchCheckLayerAvailabilityOutput, error) { req, out := c.BatchCheckLayerAvailabilityRequest(input) err := req.Send() @@ -103,8 +119,24 @@ func (c *ECR) BatchDeleteImageRequest(input *BatchDeleteImageInput) (req *reques return } +// BatchDeleteImage API operation for Amazon EC2 Container Registry. +// // Deletes a list of specified images within a specified repository. Images // are specified with either imageTag or imageDigest. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon EC2 Container Registry's +// API operation, BatchDeleteImage for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ServerException +// InvalidParameterException +// RepositoryNotFoundException func (c *ECR) BatchDeleteImage(input *BatchDeleteImageInput) (*BatchDeleteImageOutput, error) { req, out := c.BatchDeleteImageRequest(input) err := req.Send() @@ -152,8 +184,24 @@ func (c *ECR) BatchGetImageRequest(input *BatchGetImageInput) (req *request.Requ return } +// BatchGetImage API operation for Amazon EC2 Container Registry. +// // Gets detailed information for specified images within a specified repository. // Images are specified with either imageTag or imageDigest. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon EC2 Container Registry's +// API operation, BatchGetImage for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ServerException +// InvalidParameterException +// RepositoryNotFoundException func (c *ECR) BatchGetImage(input *BatchGetImageInput) (*BatchGetImageOutput, error) { req, out := c.BatchGetImageRequest(input) err := req.Send() @@ -201,12 +249,33 @@ func (c *ECR) CompleteLayerUploadRequest(input *CompleteLayerUploadInput) (req * return } +// CompleteLayerUpload API operation for Amazon EC2 Container Registry. +// // Inform Amazon ECR that the image layer upload for a specified registry, repository // name, and upload ID, has completed. You can optionally provide a sha256 digest // of the image layer for data validation purposes. // // This operation is used by the Amazon ECR proxy, and it is not intended // for general use by customers. Use the docker CLI to pull, tag, and push images. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon EC2 Container Registry's +// API operation, CompleteLayerUpload for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ServerException +// InvalidParameterException +// RepositoryNotFoundException +// UploadNotFoundException +// InvalidLayerException +// LayerPartTooSmallException +// LayerAlreadyExistsException +// EmptyUploadException func (c *ECR) CompleteLayerUpload(input *CompleteLayerUploadInput) (*CompleteLayerUploadOutput, error) { req, out := c.CompleteLayerUploadRequest(input) err := req.Send() @@ -254,7 +323,24 @@ func (c *ECR) CreateRepositoryRequest(input *CreateRepositoryInput) (req *reques return } +// CreateRepository API operation for Amazon EC2 Container Registry. +// // Creates an image repository. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon EC2 Container Registry's +// API operation, CreateRepository for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ServerException +// InvalidParameterException +// RepositoryAlreadyExistsException +// LimitExceededException func (c *ECR) CreateRepository(input *CreateRepositoryInput) (*CreateRepositoryOutput, error) { req, out := c.CreateRepositoryRequest(input) err := req.Send() @@ -302,8 +388,25 @@ func (c *ECR) DeleteRepositoryRequest(input *DeleteRepositoryInput) (req *reques return } +// DeleteRepository API operation for Amazon EC2 Container Registry. +// // Deletes an existing image repository. If a repository contains images, you // must use the force option to delete it. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon EC2 Container Registry's +// API operation, DeleteRepository for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ServerException +// InvalidParameterException +// RepositoryNotFoundException +// RepositoryNotEmptyException func (c *ECR) DeleteRepository(input *DeleteRepositoryInput) (*DeleteRepositoryOutput, error) { req, out := c.DeleteRepositoryRequest(input) err := req.Send() @@ -351,7 +454,24 @@ func (c *ECR) DeleteRepositoryPolicyRequest(input *DeleteRepositoryPolicyInput) return } +// DeleteRepositoryPolicy API operation for Amazon EC2 Container Registry. +// // Deletes the repository policy from a specified repository. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon EC2 Container Registry's +// API operation, DeleteRepositoryPolicy for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ServerException +// InvalidParameterException +// RepositoryNotFoundException +// RepositoryPolicyNotFoundException func (c *ECR) DeleteRepositoryPolicy(input *DeleteRepositoryPolicyInput) (*DeleteRepositoryPolicyOutput, error) { req, out := c.DeleteRepositoryPolicyRequest(input) err := req.Send() @@ -399,7 +519,23 @@ func (c *ECR) DescribeRepositoriesRequest(input *DescribeRepositoriesInput) (req return } +// DescribeRepositories API operation for Amazon EC2 Container Registry. +// // Describes image repositories in a registry. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon EC2 Container Registry's +// API operation, DescribeRepositories for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ServerException +// InvalidParameterException +// RepositoryNotFoundException func (c *ECR) DescribeRepositories(input *DescribeRepositoriesInput) (*DescribeRepositoriesOutput, error) { req, out := c.DescribeRepositoriesRequest(input) err := req.Send() @@ -447,6 +583,8 @@ func (c *ECR) GetAuthorizationTokenRequest(input *GetAuthorizationTokenInput) (r return } +// GetAuthorizationToken API operation for Amazon EC2 Container Registry. +// // Retrieves a token that is valid for a specified registry for 12 hours. This // command allows you to use the docker CLI to push and pull images with Amazon // ECR. If you do not specify a registry, the default registry is assumed. @@ -455,6 +593,19 @@ func (c *ECR) GetAuthorizationTokenRequest(input *GetAuthorizationTokenInput) (r // encoded string that can be decoded and used in a docker login command to // authenticate to a registry. The AWS CLI offers an aws ecr get-login command // that simplifies the login process. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon EC2 Container Registry's +// API operation, GetAuthorizationToken for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ServerException +// InvalidParameterException func (c *ECR) GetAuthorizationToken(input *GetAuthorizationTokenInput) (*GetAuthorizationTokenOutput, error) { req, out := c.GetAuthorizationTokenRequest(input) err := req.Send() @@ -502,11 +653,29 @@ func (c *ECR) GetDownloadUrlForLayerRequest(input *GetDownloadUrlForLayerInput) return } +// GetDownloadUrlForLayer API operation for Amazon EC2 Container Registry. +// // Retrieves the pre-signed Amazon S3 download URL corresponding to an image // layer. You can only get URLs for image layers that are referenced in an image. // // This operation is used by the Amazon ECR proxy, and it is not intended // for general use by customers. Use the docker CLI to pull, tag, and push images. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon EC2 Container Registry's +// API operation, GetDownloadUrlForLayer for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ServerException +// InvalidParameterException +// LayersNotFoundException +// LayerInaccessibleException +// RepositoryNotFoundException func (c *ECR) GetDownloadUrlForLayer(input *GetDownloadUrlForLayerInput) (*GetDownloadUrlForLayerOutput, error) { req, out := c.GetDownloadUrlForLayerRequest(input) err := req.Send() @@ -554,7 +723,24 @@ func (c *ECR) GetRepositoryPolicyRequest(input *GetRepositoryPolicyInput) (req * return } +// GetRepositoryPolicy API operation for Amazon EC2 Container Registry. +// // Retrieves the repository policy for a specified repository. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon EC2 Container Registry's +// API operation, GetRepositoryPolicy for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ServerException +// InvalidParameterException +// RepositoryNotFoundException +// RepositoryPolicyNotFoundException func (c *ECR) GetRepositoryPolicy(input *GetRepositoryPolicyInput) (*GetRepositoryPolicyOutput, error) { req, out := c.GetRepositoryPolicyRequest(input) err := req.Send() @@ -602,10 +788,26 @@ func (c *ECR) InitiateLayerUploadRequest(input *InitiateLayerUploadInput) (req * return } +// InitiateLayerUpload API operation for Amazon EC2 Container Registry. +// // Notify Amazon ECR that you intend to upload an image layer. // // This operation is used by the Amazon ECR proxy, and it is not intended // for general use by customers. Use the docker CLI to pull, tag, and push images. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon EC2 Container Registry's +// API operation, InitiateLayerUpload for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ServerException +// InvalidParameterException +// RepositoryNotFoundException func (c *ECR) InitiateLayerUpload(input *InitiateLayerUploadInput) (*InitiateLayerUploadOutput, error) { req, out := c.InitiateLayerUploadRequest(input) err := req.Send() @@ -653,6 +855,8 @@ func (c *ECR) ListImagesRequest(input *ListImagesInput) (req *request.Request, o return } +// ListImages API operation for Amazon EC2 Container Registry. +// // Lists all the image IDs for a given repository. // // You can filter images based on whether or not they are tagged by setting @@ -660,6 +864,20 @@ func (c *ECR) ListImagesRequest(input *ListImagesInput) (req *request.Request, o // your results to return only UNTAGGED images and then pipe that result to // a BatchDeleteImage operation to delete them. Or, you can filter your results // to return only TAGGED images to list all of the tags in your repository. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon EC2 Container Registry's +// API operation, ListImages for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ServerException +// InvalidParameterException +// RepositoryNotFoundException func (c *ECR) ListImages(input *ListImagesInput) (*ListImagesOutput, error) { req, out := c.ListImagesRequest(input) err := req.Send() @@ -707,10 +925,29 @@ func (c *ECR) PutImageRequest(input *PutImageInput) (req *request.Request, outpu return } +// PutImage API operation for Amazon EC2 Container Registry. +// // Creates or updates the image manifest associated with an image. // // This operation is used by the Amazon ECR proxy, and it is not intended // for general use by customers. Use the docker CLI to pull, tag, and push images. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon EC2 Container Registry's +// API operation, PutImage for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ServerException +// InvalidParameterException +// RepositoryNotFoundException +// ImageAlreadyExistsException +// LayersNotFoundException +// LimitExceededException func (c *ECR) PutImage(input *PutImageInput) (*PutImageOutput, error) { req, out := c.PutImageRequest(input) err := req.Send() @@ -758,7 +995,23 @@ func (c *ECR) SetRepositoryPolicyRequest(input *SetRepositoryPolicyInput) (req * return } +// SetRepositoryPolicy API operation for Amazon EC2 Container Registry. +// // Applies a repository policy on a specified repository to control access permissions. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon EC2 Container Registry's +// API operation, SetRepositoryPolicy for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ServerException +// InvalidParameterException +// RepositoryNotFoundException func (c *ECR) SetRepositoryPolicy(input *SetRepositoryPolicyInput) (*SetRepositoryPolicyOutput, error) { req, out := c.SetRepositoryPolicyRequest(input) err := req.Send() @@ -806,10 +1059,29 @@ func (c *ECR) UploadLayerPartRequest(input *UploadLayerPartInput) (req *request. return } +// UploadLayerPart API operation for Amazon EC2 Container Registry. +// // Uploads an image layer part to Amazon ECR. // // This operation is used by the Amazon ECR proxy, and it is not intended // for general use by customers. Use the docker CLI to pull, tag, and push images. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon EC2 Container Registry's +// API operation, UploadLayerPart for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ServerException +// InvalidParameterException +// InvalidLayerPartException +// RepositoryNotFoundException +// UploadNotFoundException +// LimitExceededException func (c *ECR) UploadLayerPart(input *UploadLayerPartInput) (*UploadLayerPartOutput, error) { req, out := c.UploadLayerPartRequest(input) err := req.Send() diff --git a/service/ecs/api.go b/service/ecs/api.go index b057ac3be3b..22f6ed773b5 100644 --- a/service/ecs/api.go +++ b/service/ecs/api.go @@ -52,9 +52,25 @@ func (c *ECS) CreateClusterRequest(input *CreateClusterInput) (req *request.Requ return } +// CreateCluster API operation for Amazon EC2 Container Service. +// // Creates a new Amazon ECS cluster. By default, your account receives a default // cluster when you launch your first container instance. However, you can create // your own cluster with a unique name with the CreateCluster action. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon EC2 Container Service's +// API operation, CreateCluster for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ServerException +// ClientException +// InvalidParameterException func (c *ECS) CreateCluster(input *CreateClusterInput) (*CreateClusterOutput, error) { req, out := c.CreateClusterRequest(input) err := req.Send() @@ -102,6 +118,8 @@ func (c *ECS) CreateServiceRequest(input *CreateServiceInput) (req *request.Requ return } +// CreateService API operation for Amazon EC2 Container Service. +// // Runs and maintains a desired number of tasks from a specified task definition. // If the number of tasks running in a service drops below desiredCount, Amazon // ECS spawns another instantiation of the task in the specified cluster. To @@ -153,6 +171,21 @@ func (c *ECS) CreateServiceRequest(input *CreateServiceInput) (req *request.Requ // Place the new service task on a valid container instance in an optimal // Availability Zone (based on the previous steps), favoring container instances // with the fewest number of running tasks for this service. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon EC2 Container Service's +// API operation, CreateService for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ServerException +// ClientException +// InvalidParameterException +// ClusterNotFoundException func (c *ECS) CreateService(input *CreateServiceInput) (*CreateServiceOutput, error) { req, out := c.CreateServiceRequest(input) err := req.Send() @@ -200,9 +233,28 @@ func (c *ECS) DeleteClusterRequest(input *DeleteClusterInput) (req *request.Requ return } +// DeleteCluster API operation for Amazon EC2 Container Service. +// // Deletes the specified cluster. You must deregister all container instances // from this cluster before you may delete it. You can list the container instances // in a cluster with ListContainerInstances and deregister them with DeregisterContainerInstance. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon EC2 Container Service's +// API operation, DeleteCluster for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ServerException +// ClientException +// InvalidParameterException +// ClusterNotFoundException +// ClusterContainsContainerInstancesException +// ClusterContainsServicesException func (c *ECS) DeleteCluster(input *DeleteClusterInput) (*DeleteClusterOutput, error) { req, out := c.DeleteClusterRequest(input) err := req.Send() @@ -250,6 +302,8 @@ func (c *ECS) DeleteServiceRequest(input *DeleteServiceInput) (req *request.Requ return } +// DeleteService API operation for Amazon EC2 Container Service. +// // Deletes a specified service within a cluster. You can delete a service if // you have no running tasks in it and the desired task count is zero. If the // service is actively maintaining tasks, you cannot delete it, and you must @@ -264,6 +318,22 @@ func (c *ECS) DeleteServiceRequest(input *DeleteServiceInput) (req *request.Requ // API operations; however, in the future, INACTIVE services may be cleaned // up and purged from Amazon ECS record keeping, and DescribeServices API operations // on those services will return a ServiceNotFoundException error. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon EC2 Container Service's +// API operation, DeleteService for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ServerException +// ClientException +// InvalidParameterException +// ClusterNotFoundException +// ServiceNotFoundException func (c *ECS) DeleteService(input *DeleteServiceInput) (*DeleteServiceOutput, error) { req, out := c.DeleteServiceRequest(input) err := req.Send() @@ -311,6 +381,8 @@ func (c *ECS) DeregisterContainerInstanceRequest(input *DeregisterContainerInsta return } +// DeregisterContainerInstance API operation for Amazon EC2 Container Service. +// // Deregisters an Amazon ECS container instance from the specified cluster. // This instance is no longer available to run tasks. // @@ -327,6 +399,21 @@ func (c *ECS) DeregisterContainerInstanceRequest(input *DeregisterContainerInsta // container agent, the agent automatically deregisters the instance from your // cluster (stopped container instances or instances with disconnected agents // are not automatically deregistered when terminated). +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon EC2 Container Service's +// API operation, DeregisterContainerInstance for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ServerException +// ClientException +// InvalidParameterException +// ClusterNotFoundException func (c *ECS) DeregisterContainerInstance(input *DeregisterContainerInstanceInput) (*DeregisterContainerInstanceOutput, error) { req, out := c.DeregisterContainerInstanceRequest(input) err := req.Send() @@ -374,6 +461,8 @@ func (c *ECS) DeregisterTaskDefinitionRequest(input *DeregisterTaskDefinitionInp return } +// DeregisterTaskDefinition API operation for Amazon EC2 Container Service. +// // Deregisters the specified task definition by family and revision. Upon deregistration, // the task definition is marked as INACTIVE. Existing tasks and services that // reference an INACTIVE task definition continue to run without disruption. @@ -384,6 +473,20 @@ func (c *ECS) DeregisterTaskDefinitionRequest(input *DeregisterTaskDefinitionInp // services, and you cannot update an existing service to reference an INACTIVE // task definition (although there may be up to a 10 minute window following // deregistration where these restrictions have not yet taken effect). +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon EC2 Container Service's +// API operation, DeregisterTaskDefinition for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ServerException +// ClientException +// InvalidParameterException func (c *ECS) DeregisterTaskDefinition(input *DeregisterTaskDefinitionInput) (*DeregisterTaskDefinitionOutput, error) { req, out := c.DeregisterTaskDefinitionRequest(input) err := req.Send() @@ -431,7 +534,23 @@ func (c *ECS) DescribeClustersRequest(input *DescribeClustersInput) (req *reques return } +// DescribeClusters API operation for Amazon EC2 Container Service. +// // Describes one or more of your clusters. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon EC2 Container Service's +// API operation, DescribeClusters for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ServerException +// ClientException +// InvalidParameterException func (c *ECS) DescribeClusters(input *DescribeClustersInput) (*DescribeClustersOutput, error) { req, out := c.DescribeClustersRequest(input) err := req.Send() @@ -479,8 +598,25 @@ func (c *ECS) DescribeContainerInstancesRequest(input *DescribeContainerInstance return } +// DescribeContainerInstances API operation for Amazon EC2 Container Service. +// // Describes Amazon EC2 Container Service container instances. Returns metadata // about registered and remaining resources on each container instance requested. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon EC2 Container Service's +// API operation, DescribeContainerInstances for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ServerException +// ClientException +// InvalidParameterException +// ClusterNotFoundException func (c *ECS) DescribeContainerInstances(input *DescribeContainerInstancesInput) (*DescribeContainerInstancesOutput, error) { req, out := c.DescribeContainerInstancesRequest(input) err := req.Send() @@ -528,7 +664,24 @@ func (c *ECS) DescribeServicesRequest(input *DescribeServicesInput) (req *reques return } +// DescribeServices API operation for Amazon EC2 Container Service. +// // Describes the specified services running in your cluster. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon EC2 Container Service's +// API operation, DescribeServices for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ServerException +// ClientException +// InvalidParameterException +// ClusterNotFoundException func (c *ECS) DescribeServices(input *DescribeServicesInput) (*DescribeServicesOutput, error) { req, out := c.DescribeServicesRequest(input) err := req.Send() @@ -576,12 +729,28 @@ func (c *ECS) DescribeTaskDefinitionRequest(input *DescribeTaskDefinitionInput) return } +// DescribeTaskDefinition API operation for Amazon EC2 Container Service. +// // Describes a task definition. You can specify a family and revision to find // information about a specific task definition, or you can simply specify the // family to find the latest ACTIVE revision in that family. // // You can only describe INACTIVE task definitions while an active task or // service references them. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon EC2 Container Service's +// API operation, DescribeTaskDefinition for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ServerException +// ClientException +// InvalidParameterException func (c *ECS) DescribeTaskDefinition(input *DescribeTaskDefinitionInput) (*DescribeTaskDefinitionOutput, error) { req, out := c.DescribeTaskDefinitionRequest(input) err := req.Send() @@ -629,7 +798,24 @@ func (c *ECS) DescribeTasksRequest(input *DescribeTasksInput) (req *request.Requ return } +// DescribeTasks API operation for Amazon EC2 Container Service. +// // Describes a specified task or tasks. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon EC2 Container Service's +// API operation, DescribeTasks for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ServerException +// ClientException +// InvalidParameterException +// ClusterNotFoundException func (c *ECS) DescribeTasks(input *DescribeTasksInput) (*DescribeTasksOutput, error) { req, out := c.DescribeTasksRequest(input) err := req.Send() @@ -677,11 +863,26 @@ func (c *ECS) DiscoverPollEndpointRequest(input *DiscoverPollEndpointInput) (req return } +// DiscoverPollEndpoint API operation for Amazon EC2 Container Service. +// // This action is only used by the Amazon EC2 Container Service agent, and it // is not intended for use outside of the agent. // // Returns an endpoint for the Amazon EC2 Container Service agent to poll // for updates. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon EC2 Container Service's +// API operation, DiscoverPollEndpoint for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ServerException +// ClientException func (c *ECS) DiscoverPollEndpoint(input *DiscoverPollEndpointInput) (*DiscoverPollEndpointOutput, error) { req, out := c.DiscoverPollEndpointRequest(input) err := req.Send() @@ -735,7 +936,23 @@ func (c *ECS) ListClustersRequest(input *ListClustersInput) (req *request.Reques return } +// ListClusters API operation for Amazon EC2 Container Service. +// // Returns a list of existing clusters. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon EC2 Container Service's +// API operation, ListClusters for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ServerException +// ClientException +// InvalidParameterException func (c *ECS) ListClusters(input *ListClustersInput) (*ListClustersOutput, error) { req, out := c.ListClustersRequest(input) err := req.Send() @@ -814,7 +1031,24 @@ func (c *ECS) ListContainerInstancesRequest(input *ListContainerInstancesInput) return } +// ListContainerInstances API operation for Amazon EC2 Container Service. +// // Returns a list of container instances in a specified cluster. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon EC2 Container Service's +// API operation, ListContainerInstances for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ServerException +// ClientException +// InvalidParameterException +// ClusterNotFoundException func (c *ECS) ListContainerInstances(input *ListContainerInstancesInput) (*ListContainerInstancesOutput, error) { req, out := c.ListContainerInstancesRequest(input) err := req.Send() @@ -893,7 +1127,24 @@ func (c *ECS) ListServicesRequest(input *ListServicesInput) (req *request.Reques return } +// ListServices API operation for Amazon EC2 Container Service. +// // Lists the services that are running in a specified cluster. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon EC2 Container Service's +// API operation, ListServices for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ServerException +// ClientException +// InvalidParameterException +// ClusterNotFoundException func (c *ECS) ListServices(input *ListServicesInput) (*ListServicesOutput, error) { req, out := c.ListServicesRequest(input) err := req.Send() @@ -972,6 +1223,8 @@ func (c *ECS) ListTaskDefinitionFamiliesRequest(input *ListTaskDefinitionFamilie return } +// ListTaskDefinitionFamilies API operation for Amazon EC2 Container Service. +// // Returns a list of task definition families that are registered to your account // (which may include task definition families that no longer have any ACTIVE // task definition revisions). @@ -979,6 +1232,20 @@ func (c *ECS) ListTaskDefinitionFamiliesRequest(input *ListTaskDefinitionFamilie // You can filter out task definition families that do not contain any ACTIVE // task definition revisions by setting the status parameter to ACTIVE. You // can also filter the results with the familyPrefix parameter. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon EC2 Container Service's +// API operation, ListTaskDefinitionFamilies for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ServerException +// ClientException +// InvalidParameterException func (c *ECS) ListTaskDefinitionFamilies(input *ListTaskDefinitionFamiliesInput) (*ListTaskDefinitionFamiliesOutput, error) { req, out := c.ListTaskDefinitionFamiliesRequest(input) err := req.Send() @@ -1057,9 +1324,25 @@ func (c *ECS) ListTaskDefinitionsRequest(input *ListTaskDefinitionsInput) (req * return } +// ListTaskDefinitions API operation for Amazon EC2 Container Service. +// // Returns a list of task definitions that are registered to your account. You // can filter the results by family name with the familyPrefix parameter or // by status with the status parameter. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon EC2 Container Service's +// API operation, ListTaskDefinitions for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ServerException +// ClientException +// InvalidParameterException func (c *ECS) ListTaskDefinitions(input *ListTaskDefinitionsInput) (*ListTaskDefinitionsOutput, error) { req, out := c.ListTaskDefinitionsRequest(input) err := req.Send() @@ -1138,12 +1421,30 @@ func (c *ECS) ListTasksRequest(input *ListTasksInput) (req *request.Request, out return } +// ListTasks API operation for Amazon EC2 Container Service. +// // Returns a list of tasks for a specified cluster. You can filter the results // by family name, by a particular container instance, or by the desired status // of the task with the family, containerInstance, and desiredStatus parameters. // // Recently-stopped tasks might appear in the returned results. Currently, // stopped tasks appear in the returned results for at least one hour. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon EC2 Container Service's +// API operation, ListTasks for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ServerException +// ClientException +// InvalidParameterException +// ClusterNotFoundException +// ServiceNotFoundException func (c *ECS) ListTasks(input *ListTasksInput) (*ListTasksOutput, error) { req, out := c.ListTasksRequest(input) err := req.Send() @@ -1216,11 +1517,26 @@ func (c *ECS) RegisterContainerInstanceRequest(input *RegisterContainerInstanceI return } +// RegisterContainerInstance API operation for Amazon EC2 Container Service. +// // This action is only used by the Amazon EC2 Container Service agent, and it // is not intended for use outside of the agent. // // Registers an EC2 instance into the specified cluster. This instance becomes // available to place containers on. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon EC2 Container Service's +// API operation, RegisterContainerInstance for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ServerException +// ClientException func (c *ECS) RegisterContainerInstance(input *RegisterContainerInstanceInput) (*RegisterContainerInstanceOutput, error) { req, out := c.RegisterContainerInstanceRequest(input) err := req.Send() @@ -1268,6 +1584,8 @@ func (c *ECS) RegisterTaskDefinitionRequest(input *RegisterTaskDefinitionInput) return } +// RegisterTaskDefinition API operation for Amazon EC2 Container Service. +// // Registers a new task definition from the supplied family and containerDefinitions. // Optionally, you can add data volumes to your containers with the volumes // parameter. For more information about task definition parameters and defaults, @@ -1285,6 +1603,20 @@ func (c *ECS) RegisterTaskDefinitionRequest(input *RegisterTaskDefinitionInput) // definition with the networkMode parameter. The available network modes correspond // to those described in Network settings (https://docs.docker.com/engine/reference/run/#/network-settings) // in the Docker run reference. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon EC2 Container Service's +// API operation, RegisterTaskDefinition for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ServerException +// ClientException +// InvalidParameterException func (c *ECS) RegisterTaskDefinition(input *RegisterTaskDefinitionInput) (*RegisterTaskDefinitionOutput, error) { req, out := c.RegisterTaskDefinitionRequest(input) err := req.Send() @@ -1332,11 +1664,28 @@ func (c *ECS) RunTaskRequest(input *RunTaskInput) (req *request.Request, output return } +// RunTask API operation for Amazon EC2 Container Service. +// // Start a task using random placement and the default Amazon ECS scheduler. // To use your own scheduler or place a task on a specific container instance, // use StartTask instead. // // The count parameter is limited to 10 tasks per call. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon EC2 Container Service's +// API operation, RunTask for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ServerException +// ClientException +// InvalidParameterException +// ClusterNotFoundException func (c *ECS) RunTask(input *RunTaskInput) (*RunTaskOutput, error) { req, out := c.RunTaskRequest(input) err := req.Send() @@ -1384,11 +1733,28 @@ func (c *ECS) StartTaskRequest(input *StartTaskInput) (req *request.Request, out return } +// StartTask API operation for Amazon EC2 Container Service. +// // Starts a new task from the specified task definition on the specified container // instance or instances. To use the default Amazon ECS scheduler to place your // task, use RunTask instead. // // The list of container instances to start tasks on is limited to 10. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon EC2 Container Service's +// API operation, StartTask for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ServerException +// ClientException +// InvalidParameterException +// ClusterNotFoundException func (c *ECS) StartTask(input *StartTaskInput) (*StartTaskOutput, error) { req, out := c.StartTaskRequest(input) err := req.Send() @@ -1436,6 +1802,8 @@ func (c *ECS) StopTaskRequest(input *StopTaskInput) (req *request.Request, outpu return } +// StopTask API operation for Amazon EC2 Container Service. +// // Stops a running task. // // When StopTask is called on a task, the equivalent of docker stop is issued @@ -1443,6 +1811,21 @@ func (c *ECS) StopTaskRequest(input *StopTaskInput) (req *request.Request, outpu // timeout, after which SIGKILL is sent and the containers are forcibly stopped. // If the container handles the SIGTERM gracefully and exits within 30 seconds // from receiving it, no SIGKILL is sent. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon EC2 Container Service's +// API operation, StopTask for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ServerException +// ClientException +// InvalidParameterException +// ClusterNotFoundException func (c *ECS) StopTask(input *StopTaskInput) (*StopTaskOutput, error) { req, out := c.StopTaskRequest(input) err := req.Send() @@ -1490,10 +1873,25 @@ func (c *ECS) SubmitContainerStateChangeRequest(input *SubmitContainerStateChang return } +// SubmitContainerStateChange API operation for Amazon EC2 Container Service. +// // This action is only used by the Amazon EC2 Container Service agent, and it // is not intended for use outside of the agent. // // Sent to acknowledge that a container changed states. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon EC2 Container Service's +// API operation, SubmitContainerStateChange for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ServerException +// ClientException func (c *ECS) SubmitContainerStateChange(input *SubmitContainerStateChangeInput) (*SubmitContainerStateChangeOutput, error) { req, out := c.SubmitContainerStateChangeRequest(input) err := req.Send() @@ -1541,10 +1939,25 @@ func (c *ECS) SubmitTaskStateChangeRequest(input *SubmitTaskStateChangeInput) (r return } +// SubmitTaskStateChange API operation for Amazon EC2 Container Service. +// // This action is only used by the Amazon EC2 Container Service agent, and it // is not intended for use outside of the agent. // // Sent to acknowledge that a task changed states. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon EC2 Container Service's +// API operation, SubmitTaskStateChange for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ServerException +// ClientException func (c *ECS) SubmitTaskStateChange(input *SubmitTaskStateChangeInput) (*SubmitTaskStateChangeOutput, error) { req, out := c.SubmitTaskStateChangeRequest(input) err := req.Send() @@ -1592,6 +2005,8 @@ func (c *ECS) UpdateContainerAgentRequest(input *UpdateContainerAgentInput) (req return } +// UpdateContainerAgent API operation for Amazon EC2 Container Service. +// // Updates the Amazon ECS container agent on a specified container instance. // Updating the Amazon ECS container agent does not interrupt running tasks // or services on the container instance. The process for updating the agent @@ -1603,6 +2018,24 @@ func (c *ECS) UpdateContainerAgentRequest(input *UpdateContainerAgentInput) (req // ECS container agent on other operating systems, see Manually Updating the // Amazon ECS Container Agent (http://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-agent-update.html#manually_update_agent) // in the Amazon EC2 Container Service Developer Guide. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon EC2 Container Service's +// API operation, UpdateContainerAgent for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ServerException +// ClientException +// InvalidParameterException +// ClusterNotFoundException +// UpdateInProgressException +// NoUpdateAvailableException +// MissingVersionException func (c *ECS) UpdateContainerAgent(input *UpdateContainerAgentInput) (*UpdateContainerAgentOutput, error) { req, out := c.UpdateContainerAgentRequest(input) err := req.Send() @@ -1650,6 +2083,8 @@ func (c *ECS) UpdateServiceRequest(input *UpdateServiceInput) (req *request.Requ return } +// UpdateService API operation for Amazon EC2 Container Service. +// // Modifies the desired count, deployment configuration, or task definition // used in a service. // @@ -1703,6 +2138,23 @@ func (c *ECS) UpdateServiceRequest(input *UpdateServiceInput) (req *request.Requ // Place the new service task on a valid container instance in an optimal // Availability Zone (based on the previous steps), favoring container instances // with the fewest number of running tasks for this service. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon EC2 Container Service's +// API operation, UpdateService for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ServerException +// ClientException +// InvalidParameterException +// ClusterNotFoundException +// ServiceNotFoundException +// ServiceNotActiveException func (c *ECS) UpdateService(input *UpdateServiceInput) (*UpdateServiceOutput, error) { req, out := c.UpdateServiceRequest(input) err := req.Send() diff --git a/service/efs/api.go b/service/efs/api.go index 52eadf0c112..e9ef8136cb8 100644 --- a/service/efs/api.go +++ b/service/efs/api.go @@ -54,6 +54,8 @@ func (c *EFS) CreateFileSystemRequest(input *CreateFileSystemInput) (req *reques return } +// CreateFileSystem API operation for Amazon Elastic File System. +// // Creates a new, empty file system. The operation requires a creation token // in the request that Amazon EFS uses to ensure idempotent creation (calling // the operation with same creation token has no effect). If a file system does @@ -100,6 +102,21 @@ func (c *EFS) CreateFileSystemRequest(input *CreateFileSystemInput) (req *reques // // This operation requires permissions for the elasticfilesystem:CreateFileSystem // action. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Elastic File System's +// API operation, CreateFileSystem for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// BadRequest +// InternalServerError +// FileSystemAlreadyExists +// FileSystemLimitExceeded func (c *EFS) CreateFileSystem(input *CreateFileSystemInput) (*FileSystemDescription, error) { req, out := c.CreateFileSystemRequest(input) err := req.Send() @@ -147,6 +164,8 @@ func (c *EFS) CreateMountTargetRequest(input *CreateMountTargetInput) (req *requ return } +// CreateMountTarget API operation for Amazon Elastic File System. +// // Creates a mount target for a file system. You can then mount the file system // on EC2 instances via the mount target. // @@ -243,6 +262,29 @@ func (c *EFS) CreateMountTargetRequest(input *CreateMountTargetInput) (req *requ // ec2:DescribeNetworkInterfaces // // ec2:CreateNetworkInterface +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Elastic File System's +// API operation, CreateMountTarget for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// BadRequest +// InternalServerError +// FileSystemNotFound +// IncorrectFileSystemLifeCycleState +// MountTargetConflict +// SubnetNotFound +// NoFreeAddressesInSubnet +// IpAddressInUse +// NetworkInterfaceLimitExceeded +// SecurityGroupLimitExceeded +// SecurityGroupNotFound +// UnsupportedAvailabilityZone func (c *EFS) CreateMountTarget(input *CreateMountTargetInput) (*MountTargetDescription, error) { req, out := c.CreateMountTargetRequest(input) err := req.Send() @@ -292,6 +334,8 @@ func (c *EFS) CreateTagsRequest(input *CreateTagsInput) (req *request.Request, o return } +// CreateTags API operation for Amazon Elastic File System. +// // Creates or overwrites tags associated with a file system. Each tag is a key-value // pair. If a tag key specified in the request already exists on the file system, // this operation overwrites its value with the value provided in the request. @@ -300,6 +344,20 @@ func (c *EFS) CreateTagsRequest(input *CreateTagsInput) (req *request.Request, o // // This operation requires permission for the elasticfilesystem:CreateTags // action. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Elastic File System's +// API operation, CreateTags for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// BadRequest +// InternalServerError +// FileSystemNotFound func (c *EFS) CreateTags(input *CreateTagsInput) (*CreateTagsOutput, error) { req, out := c.CreateTagsRequest(input) err := req.Send() @@ -349,6 +407,8 @@ func (c *EFS) DeleteFileSystemRequest(input *DeleteFileSystemInput) (req *reques return } +// DeleteFileSystem API operation for Amazon Elastic File System. +// // Deletes a file system, permanently severing access to its contents. Upon // return, the file system no longer exists and you can't access any contents // of the deleted file system. @@ -365,6 +425,21 @@ func (c *EFS) DeleteFileSystemRequest(input *DeleteFileSystemInput) (req *reques // // This operation requires permissions for the elasticfilesystem:DeleteFileSystem // action. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Elastic File System's +// API operation, DeleteFileSystem for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// BadRequest +// InternalServerError +// FileSystemNotFound +// FileSystemInUse func (c *EFS) DeleteFileSystem(input *DeleteFileSystemInput) (*DeleteFileSystemOutput, error) { req, out := c.DeleteFileSystemRequest(input) err := req.Send() @@ -414,6 +489,8 @@ func (c *EFS) DeleteMountTargetRequest(input *DeleteMountTargetInput) (req *requ return } +// DeleteMountTarget API operation for Amazon Elastic File System. +// // Deletes the specified mount target. // // This operation forcibly breaks any mounts of the file system via the mount @@ -439,6 +516,21 @@ func (c *EFS) DeleteMountTargetRequest(input *DeleteMountTargetInput) (req *requ // on the mount target's network interface: // // ec2:DeleteNetworkInterface +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Elastic File System's +// API operation, DeleteMountTarget for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// BadRequest +// InternalServerError +// DependencyTimeout +// MountTargetNotFound func (c *EFS) DeleteMountTarget(input *DeleteMountTargetInput) (*DeleteMountTargetOutput, error) { req, out := c.DeleteMountTargetRequest(input) err := req.Send() @@ -488,6 +580,8 @@ func (c *EFS) DeleteTagsRequest(input *DeleteTagsInput) (req *request.Request, o return } +// DeleteTags API operation for Amazon Elastic File System. +// // Deletes the specified tags from a file system. If the DeleteTags request // includes a tag key that does not exist, Amazon EFS ignores it and doesn't // cause an error. For more information about tags and related restrictions, @@ -496,6 +590,20 @@ func (c *EFS) DeleteTagsRequest(input *DeleteTagsInput) (req *request.Request, o // // This operation requires permissions for the elasticfilesystem:DeleteTags // action. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Elastic File System's +// API operation, DeleteTags for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// BadRequest +// InternalServerError +// FileSystemNotFound func (c *EFS) DeleteTags(input *DeleteTagsInput) (*DeleteTagsOutput, error) { req, out := c.DeleteTagsRequest(input) err := req.Send() @@ -543,6 +651,8 @@ func (c *EFS) DescribeFileSystemsRequest(input *DescribeFileSystemsInput) (req * return } +// DescribeFileSystems API operation for Amazon Elastic File System. +// // Returns the description of a specific Amazon EFS file system if either the // file system CreationToken or the FileSystemId is provided. Otherwise, it // returns descriptions of all file systems owned by the caller's AWS account @@ -569,6 +679,20 @@ func (c *EFS) DescribeFileSystemsRequest(input *DescribeFileSystemsInput) (req * // // This operation requires permissions for the elasticfilesystem:DescribeFileSystems // action. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Elastic File System's +// API operation, DescribeFileSystems for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// BadRequest +// InternalServerError +// FileSystemNotFound func (c *EFS) DescribeFileSystems(input *DescribeFileSystemsInput) (*DescribeFileSystemsOutput, error) { req, out := c.DescribeFileSystemsRequest(input) err := req.Send() @@ -616,6 +740,8 @@ func (c *EFS) DescribeMountTargetSecurityGroupsRequest(input *DescribeMountTarge return } +// DescribeMountTargetSecurityGroups API operation for Amazon Elastic File System. +// // Returns the security groups currently in effect for a mount target. This // operation requires that the network interface of the mount target has been // created and the lifecycle state of the mount target is not deleted. @@ -627,6 +753,21 @@ func (c *EFS) DescribeMountTargetSecurityGroupsRequest(input *DescribeMountTarge // // ec2:DescribeNetworkInterfaceAttribute action on the mount target's network // interface. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Elastic File System's +// API operation, DescribeMountTargetSecurityGroups for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// BadRequest +// InternalServerError +// MountTargetNotFound +// IncorrectMountTargetState func (c *EFS) DescribeMountTargetSecurityGroups(input *DescribeMountTargetSecurityGroupsInput) (*DescribeMountTargetSecurityGroupsOutput, error) { req, out := c.DescribeMountTargetSecurityGroupsRequest(input) err := req.Send() @@ -674,6 +815,8 @@ func (c *EFS) DescribeMountTargetsRequest(input *DescribeMountTargetsInput) (req return } +// DescribeMountTargets API operation for Amazon Elastic File System. +// // Returns the descriptions of all the current mount targets, or a specific // mount target, for a file system. When requesting all of the current mount // targets, the order of mount targets returned in the response is unspecified. @@ -681,6 +824,21 @@ func (c *EFS) DescribeMountTargetsRequest(input *DescribeMountTargetsInput) (req // This operation requires permissions for the elasticfilesystem:DescribeMountTargets // action, on either the file system ID that you specify in FileSystemId, or // on the file system of the mount target that you specify in MountTargetId. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Elastic File System's +// API operation, DescribeMountTargets for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// BadRequest +// InternalServerError +// FileSystemNotFound +// MountTargetNotFound func (c *EFS) DescribeMountTargets(input *DescribeMountTargetsInput) (*DescribeMountTargetsOutput, error) { req, out := c.DescribeMountTargetsRequest(input) err := req.Send() @@ -728,12 +886,28 @@ func (c *EFS) DescribeTagsRequest(input *DescribeTagsInput) (req *request.Reques return } +// DescribeTags API operation for Amazon Elastic File System. +// // Returns the tags associated with a file system. The order of tags returned // in the response of one DescribeTags call and the order of tags returned across // the responses of a multi-call iteration (when using pagination) is unspecified. // // This operation requires permissions for the elasticfilesystem:DescribeTags // action. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Elastic File System's +// API operation, DescribeTags for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// BadRequest +// InternalServerError +// FileSystemNotFound func (c *EFS) DescribeTags(input *DescribeTagsInput) (*DescribeTagsOutput, error) { req, out := c.DescribeTagsRequest(input) err := req.Send() @@ -783,6 +957,8 @@ func (c *EFS) ModifyMountTargetSecurityGroupsRequest(input *ModifyMountTargetSec return } +// ModifyMountTargetSecurityGroups API operation for Amazon Elastic File System. +// // Modifies the set of security groups in effect for a mount target. // // When you create a mount target, Amazon EFS also creates a new network interface. @@ -799,6 +975,23 @@ func (c *EFS) ModifyMountTargetSecurityGroupsRequest(input *ModifyMountTargetSec // // ec2:ModifyNetworkInterfaceAttribute action on the mount target's network // interface. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Elastic File System's +// API operation, ModifyMountTargetSecurityGroups for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// BadRequest +// InternalServerError +// MountTargetNotFound +// IncorrectMountTargetState +// SecurityGroupLimitExceeded +// SecurityGroupNotFound func (c *EFS) ModifyMountTargetSecurityGroups(input *ModifyMountTargetSecurityGroupsInput) (*ModifyMountTargetSecurityGroupsOutput, error) { req, out := c.ModifyMountTargetSecurityGroupsRequest(input) err := req.Send() diff --git a/service/elasticache/api.go b/service/elasticache/api.go index 19bd3a25ad6..71acffd589a 100644 --- a/service/elasticache/api.go +++ b/service/elasticache/api.go @@ -53,6 +53,8 @@ func (c *ElastiCache) AddTagsToResourceRequest(input *AddTagsToResourceInput) (r return } +// AddTagsToResource API operation for Amazon ElastiCache. +// // The AddTagsToResource action adds up to 10 cost allocation tags to the named // resource. A cost allocation tag is a key-value pair where the key and value // are case-sensitive. Cost allocation tags can be used to categorize and track @@ -65,6 +67,21 @@ func (c *ElastiCache) AddTagsToResourceRequest(input *AddTagsToResourceInput) (r // your costs across multiple services. For more information, see Using Cost // Allocation Tags in Amazon ElastiCache (http://docs.aws.amazon.com/AmazonElastiCache/latest/UserGuide/Tagging.html) // in the ElastiCache User Guide. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon ElastiCache's +// API operation, AddTagsToResource for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// CacheClusterNotFoundFault +// SnapshotNotFoundFault +// TagQuotaPerResourceExceeded +// InvalidARNFault func (c *ElastiCache) AddTagsToResource(input *AddTagsToResourceInput) (*TagListMessage, error) { req, out := c.AddTagsToResourceRequest(input) err := req.Send() @@ -112,12 +129,30 @@ func (c *ElastiCache) AuthorizeCacheSecurityGroupIngressRequest(input *Authorize return } +// AuthorizeCacheSecurityGroupIngress API operation for Amazon ElastiCache. +// // The AuthorizeCacheSecurityGroupIngress action allows network ingress to a // cache security group. Applications using ElastiCache must be running on Amazon // EC2, and Amazon EC2 security groups are used as the authorization mechanism. // // You cannot authorize ingress from an Amazon EC2 security group in one region // to an ElastiCache cluster in another region. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon ElastiCache's +// API operation, AuthorizeCacheSecurityGroupIngress for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// CacheSecurityGroupNotFoundFault +// InvalidCacheSecurityGroupStateFault +// AuthorizationAlreadyExistsFault +// InvalidParameterValueException +// InvalidParameterCombinationException func (c *ElastiCache) AuthorizeCacheSecurityGroupIngress(input *AuthorizeCacheSecurityGroupIngressInput) (*AuthorizeCacheSecurityGroupIngressOutput, error) { req, out := c.AuthorizeCacheSecurityGroupIngressRequest(input) err := req.Send() @@ -165,6 +200,8 @@ func (c *ElastiCache) CopySnapshotRequest(input *CopySnapshotInput) (req *reques return } +// CopySnapshot API operation for Amazon ElastiCache. +// // The CopySnapshot action makes a copy of an existing snapshot. // // Users or groups that have permissions to use the CopySnapshot API can create @@ -178,6 +215,23 @@ func (c *ElastiCache) CopySnapshotRequest(input *CopySnapshotInput) (req *reques // sufficient permissions to perform the desired activity. // // Solution: Contact your system administrator to get the needed permissions. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon ElastiCache's +// API operation, CopySnapshot for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// SnapshotAlreadyExistsFault +// SnapshotNotFoundFault +// SnapshotQuotaExceededFault +// InvalidSnapshotStateFault +// InvalidParameterValueException +// InvalidParameterCombinationException func (c *ElastiCache) CopySnapshot(input *CopySnapshotInput) (*CopySnapshotOutput, error) { req, out := c.CopySnapshotRequest(input) err := req.Send() @@ -225,9 +279,36 @@ func (c *ElastiCache) CreateCacheClusterRequest(input *CreateCacheClusterInput) return } +// CreateCacheCluster API operation for Amazon ElastiCache. +// // The CreateCacheCluster action creates a cache cluster. All nodes in the cache // cluster run the same protocol-compliant cache engine software, either Memcached // or Redis. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon ElastiCache's +// API operation, CreateCacheCluster for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ReplicationGroupNotFoundFault +// InvalidReplicationGroupStateFault +// CacheClusterAlreadyExistsFault +// InsufficientCacheClusterCapacityFault +// CacheSecurityGroupNotFoundFault +// CacheSubnetGroupNotFoundFault +// ClusterQuotaForCustomerExceededFault +// NodeQuotaForClusterExceededFault +// NodeQuotaForCustomerExceededFault +// CacheParameterGroupNotFoundFault +// InvalidVPCNetworkStateFault +// TagQuotaPerResourceExceeded +// InvalidParameterValueException +// InvalidParameterCombinationException func (c *ElastiCache) CreateCacheCluster(input *CreateCacheClusterInput) (*CreateCacheClusterOutput, error) { req, out := c.CreateCacheClusterRequest(input) err := req.Send() @@ -275,9 +356,27 @@ func (c *ElastiCache) CreateCacheParameterGroupRequest(input *CreateCacheParamet return } +// CreateCacheParameterGroup API operation for Amazon ElastiCache. +// // The CreateCacheParameterGroup action creates a new cache parameter group. // A cache parameter group is a collection of parameters that you apply to all // of the nodes in a cache cluster. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon ElastiCache's +// API operation, CreateCacheParameterGroup for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// CacheParameterGroupQuotaExceededFault +// CacheParameterGroupAlreadyExistsFault +// InvalidCacheParameterGroupStateFault +// InvalidParameterValueException +// InvalidParameterCombinationException func (c *ElastiCache) CreateCacheParameterGroup(input *CreateCacheParameterGroupInput) (*CreateCacheParameterGroupOutput, error) { req, out := c.CreateCacheParameterGroupRequest(input) err := req.Send() @@ -325,6 +424,8 @@ func (c *ElastiCache) CreateCacheSecurityGroupRequest(input *CreateCacheSecurity return } +// CreateCacheSecurityGroup API operation for Amazon ElastiCache. +// // The CreateCacheSecurityGroup action creates a new cache security group. Use // a cache security group to control access to one or more cache clusters. // @@ -332,6 +433,21 @@ func (c *ElastiCache) CreateCacheSecurityGroupRequest(input *CreateCacheSecurity // outside of an Amazon Virtual Private Cloud (VPC). If you are creating a cache // cluster inside of a VPC, use a cache subnet group instead. For more information, // see CreateCacheSubnetGroup (http://docs.aws.amazon.com/AmazonElastiCache/latest/APIReference/API_CreateCacheSubnetGroup.html). +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon ElastiCache's +// API operation, CreateCacheSecurityGroup for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// CacheSecurityGroupAlreadyExistsFault +// CacheSecurityGroupQuotaExceededFault +// InvalidParameterValueException +// InvalidParameterCombinationException func (c *ElastiCache) CreateCacheSecurityGroup(input *CreateCacheSecurityGroupInput) (*CreateCacheSecurityGroupOutput, error) { req, out := c.CreateCacheSecurityGroupRequest(input) err := req.Send() @@ -379,10 +495,27 @@ func (c *ElastiCache) CreateCacheSubnetGroupRequest(input *CreateCacheSubnetGrou return } +// CreateCacheSubnetGroup API operation for Amazon ElastiCache. +// // The CreateCacheSubnetGroup action creates a new cache subnet group. // // Use this parameter only when you are creating a cluster in an Amazon Virtual // Private Cloud (VPC). +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon ElastiCache's +// API operation, CreateCacheSubnetGroup for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// CacheSubnetGroupAlreadyExistsFault +// CacheSubnetGroupQuotaExceededFault +// CacheSubnetQuotaExceededFault +// InvalidSubnet func (c *ElastiCache) CreateCacheSubnetGroup(input *CreateCacheSubnetGroupInput) (*CreateCacheSubnetGroupOutput, error) { req, out := c.CreateCacheSubnetGroupRequest(input) err := req.Send() @@ -430,6 +563,8 @@ func (c *ElastiCache) CreateReplicationGroupRequest(input *CreateReplicationGrou return } +// CreateReplicationGroup API operation for Amazon ElastiCache. +// // The CreateReplicationGroup action creates a replication group. A replication // group is a collection of cache clusters, where one of the cache clusters // is a read/write primary and the others are read-only replicas. Writes to @@ -441,6 +576,31 @@ func (c *ElastiCache) CreateReplicationGroupRequest(input *CreateReplicationGrou // up to a total of five read replicas. // // This action is valid only for Redis. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon ElastiCache's +// API operation, CreateReplicationGroup for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// CacheClusterNotFoundFault +// InvalidCacheClusterStateFault +// ReplicationGroupAlreadyExistsFault +// InsufficientCacheClusterCapacityFault +// CacheSecurityGroupNotFoundFault +// CacheSubnetGroupNotFoundFault +// ClusterQuotaForCustomerExceededFault +// NodeQuotaForClusterExceededFault +// NodeQuotaForCustomerExceededFault +// CacheParameterGroupNotFoundFault +// InvalidVPCNetworkStateFault +// TagQuotaPerResourceExceeded +// InvalidParameterValueException +// InvalidParameterCombinationException func (c *ElastiCache) CreateReplicationGroup(input *CreateReplicationGroupInput) (*CreateReplicationGroupOutput, error) { req, out := c.CreateReplicationGroupRequest(input) err := req.Send() @@ -488,8 +648,28 @@ func (c *ElastiCache) CreateSnapshotRequest(input *CreateSnapshotInput) (req *re return } +// CreateSnapshot API operation for Amazon ElastiCache. +// // The CreateSnapshot action creates a copy of an entire cache cluster at a // specific moment in time. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon ElastiCache's +// API operation, CreateSnapshot for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// SnapshotAlreadyExistsFault +// CacheClusterNotFoundFault +// InvalidCacheClusterStateFault +// SnapshotQuotaExceededFault +// SnapshotFeatureNotSupportedFault +// InvalidParameterCombinationException +// InvalidParameterValueException func (c *ElastiCache) CreateSnapshot(input *CreateSnapshotInput) (*CreateSnapshotOutput, error) { req, out := c.CreateSnapshotRequest(input) err := req.Send() @@ -537,6 +717,8 @@ func (c *ElastiCache) DeleteCacheClusterRequest(input *DeleteCacheClusterInput) return } +// DeleteCacheCluster API operation for Amazon ElastiCache. +// // The DeleteCacheCluster action deletes a previously provisioned cache cluster. // DeleteCacheCluster deletes all associated cache nodes, node endpoints and // the cache cluster itself. When you receive a successful response from this @@ -545,6 +727,24 @@ func (c *ElastiCache) DeleteCacheClusterRequest(input *DeleteCacheClusterInput) // // This API cannot be used to delete a cache cluster that is the last read // replica of a replication group that has Multi-AZ mode enabled. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon ElastiCache's +// API operation, DeleteCacheCluster for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// CacheClusterNotFoundFault +// InvalidCacheClusterStateFault +// SnapshotAlreadyExistsFault +// SnapshotFeatureNotSupportedFault +// SnapshotQuotaExceededFault +// InvalidParameterValueException +// InvalidParameterCombinationException func (c *ElastiCache) DeleteCacheCluster(input *DeleteCacheClusterInput) (*DeleteCacheClusterOutput, error) { req, out := c.DeleteCacheClusterRequest(input) err := req.Send() @@ -594,9 +794,26 @@ func (c *ElastiCache) DeleteCacheParameterGroupRequest(input *DeleteCacheParamet return } +// DeleteCacheParameterGroup API operation for Amazon ElastiCache. +// // The DeleteCacheParameterGroup action deletes the specified cache parameter // group. You cannot delete a cache parameter group if it is associated with // any cache clusters. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon ElastiCache's +// API operation, DeleteCacheParameterGroup for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidCacheParameterGroupStateFault +// CacheParameterGroupNotFoundFault +// InvalidParameterValueException +// InvalidParameterCombinationException func (c *ElastiCache) DeleteCacheParameterGroup(input *DeleteCacheParameterGroupInput) (*DeleteCacheParameterGroupOutput, error) { req, out := c.DeleteCacheParameterGroupRequest(input) err := req.Send() @@ -646,10 +863,27 @@ func (c *ElastiCache) DeleteCacheSecurityGroupRequest(input *DeleteCacheSecurity return } +// DeleteCacheSecurityGroup API operation for Amazon ElastiCache. +// // The DeleteCacheSecurityGroup action deletes a cache security group. // // You cannot delete a cache security group if it is associated with any cache // clusters. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon ElastiCache's +// API operation, DeleteCacheSecurityGroup for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidCacheSecurityGroupStateFault +// CacheSecurityGroupNotFoundFault +// InvalidParameterValueException +// InvalidParameterCombinationException func (c *ElastiCache) DeleteCacheSecurityGroup(input *DeleteCacheSecurityGroupInput) (*DeleteCacheSecurityGroupOutput, error) { req, out := c.DeleteCacheSecurityGroupRequest(input) err := req.Send() @@ -699,10 +933,25 @@ func (c *ElastiCache) DeleteCacheSubnetGroupRequest(input *DeleteCacheSubnetGrou return } +// DeleteCacheSubnetGroup API operation for Amazon ElastiCache. +// // The DeleteCacheSubnetGroup action deletes a cache subnet group. // // You cannot delete a cache subnet group if it is associated with any cache // clusters. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon ElastiCache's +// API operation, DeleteCacheSubnetGroup for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// CacheSubnetGroupInUse +// CacheSubnetGroupNotFoundFault func (c *ElastiCache) DeleteCacheSubnetGroup(input *DeleteCacheSubnetGroupInput) (*DeleteCacheSubnetGroupOutput, error) { req, out := c.DeleteCacheSubnetGroupRequest(input) err := req.Send() @@ -750,6 +999,8 @@ func (c *ElastiCache) DeleteReplicationGroupRequest(input *DeleteReplicationGrou return } +// DeleteReplicationGroup API operation for Amazon ElastiCache. +// // The DeleteReplicationGroup action deletes an existing replication group. // By default, this action deletes the entire replication group, including the // primary cluster and all of the read replicas. You can optionally delete only @@ -758,6 +1009,24 @@ func (c *ElastiCache) DeleteReplicationGroupRequest(input *DeleteReplicationGrou // When you receive a successful response from this action, Amazon ElastiCache // immediately begins deleting the selected resources; you cannot cancel or // revert this action. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon ElastiCache's +// API operation, DeleteReplicationGroup for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ReplicationGroupNotFoundFault +// InvalidReplicationGroupStateFault +// SnapshotAlreadyExistsFault +// SnapshotFeatureNotSupportedFault +// SnapshotQuotaExceededFault +// InvalidParameterValueException +// InvalidParameterCombinationException func (c *ElastiCache) DeleteReplicationGroup(input *DeleteReplicationGroupInput) (*DeleteReplicationGroupOutput, error) { req, out := c.DeleteReplicationGroupRequest(input) err := req.Send() @@ -805,9 +1074,26 @@ func (c *ElastiCache) DeleteSnapshotRequest(input *DeleteSnapshotInput) (req *re return } +// DeleteSnapshot API operation for Amazon ElastiCache. +// // The DeleteSnapshot action deletes an existing snapshot. When you receive // a successful response from this action, ElastiCache immediately begins deleting // the snapshot; you cannot cancel or revert this action. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon ElastiCache's +// API operation, DeleteSnapshot for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// SnapshotNotFoundFault +// InvalidSnapshotStateFault +// InvalidParameterValueException +// InvalidParameterCombinationException func (c *ElastiCache) DeleteSnapshot(input *DeleteSnapshotInput) (*DeleteSnapshotOutput, error) { req, out := c.DeleteSnapshotRequest(input) err := req.Send() @@ -861,6 +1147,8 @@ func (c *ElastiCache) DescribeCacheClustersRequest(input *DescribeCacheClustersI return } +// DescribeCacheClusters API operation for Amazon ElastiCache. +// // The DescribeCacheClusters action returns information about all provisioned // cache clusters if no cache cluster identifier is specified, or about a specific // cache cluster if a cache cluster identifier is supplied. @@ -883,6 +1171,20 @@ func (c *ElastiCache) DescribeCacheClustersRequest(input *DescribeCacheClustersI // // If cache nodes are currently being removed from the cache cluster, no endpoint // information for the removed nodes is displayed. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon ElastiCache's +// API operation, DescribeCacheClusters for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// CacheClusterNotFoundFault +// InvalidParameterValueException +// InvalidParameterCombinationException func (c *ElastiCache) DescribeCacheClusters(input *DescribeCacheClustersInput) (*DescribeCacheClustersOutput, error) { req, out := c.DescribeCacheClustersRequest(input) err := req.Send() @@ -961,8 +1263,18 @@ func (c *ElastiCache) DescribeCacheEngineVersionsRequest(input *DescribeCacheEng return } +// DescribeCacheEngineVersions API operation for Amazon ElastiCache. +// // The DescribeCacheEngineVersions action returns a list of the available cache // engines and their versions. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon ElastiCache's +// API operation, DescribeCacheEngineVersions for more information, and other errors +// that the API operation could return. func (c *ElastiCache) DescribeCacheEngineVersions(input *DescribeCacheEngineVersionsInput) (*DescribeCacheEngineVersionsOutput, error) { req, out := c.DescribeCacheEngineVersionsRequest(input) err := req.Send() @@ -1041,9 +1353,25 @@ func (c *ElastiCache) DescribeCacheParameterGroupsRequest(input *DescribeCachePa return } +// DescribeCacheParameterGroups API operation for Amazon ElastiCache. +// // The DescribeCacheParameterGroups action returns a list of cache parameter // group descriptions. If a cache parameter group name is specified, the list // will contain only the descriptions for that group. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon ElastiCache's +// API operation, DescribeCacheParameterGroups for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// CacheParameterGroupNotFoundFault +// InvalidParameterValueException +// InvalidParameterCombinationException func (c *ElastiCache) DescribeCacheParameterGroups(input *DescribeCacheParameterGroupsInput) (*DescribeCacheParameterGroupsOutput, error) { req, out := c.DescribeCacheParameterGroupsRequest(input) err := req.Send() @@ -1122,8 +1450,24 @@ func (c *ElastiCache) DescribeCacheParametersRequest(input *DescribeCacheParamet return } +// DescribeCacheParameters API operation for Amazon ElastiCache. +// // The DescribeCacheParameters action returns the detailed parameter list for // a particular cache parameter group. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon ElastiCache's +// API operation, DescribeCacheParameters for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// CacheParameterGroupNotFoundFault +// InvalidParameterValueException +// InvalidParameterCombinationException func (c *ElastiCache) DescribeCacheParameters(input *DescribeCacheParametersInput) (*DescribeCacheParametersOutput, error) { req, out := c.DescribeCacheParametersRequest(input) err := req.Send() @@ -1202,9 +1546,25 @@ func (c *ElastiCache) DescribeCacheSecurityGroupsRequest(input *DescribeCacheSec return } +// DescribeCacheSecurityGroups API operation for Amazon ElastiCache. +// // The DescribeCacheSecurityGroups action returns a list of cache security group // descriptions. If a cache security group name is specified, the list will // contain only the description of that group. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon ElastiCache's +// API operation, DescribeCacheSecurityGroups for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// CacheSecurityGroupNotFoundFault +// InvalidParameterValueException +// InvalidParameterCombinationException func (c *ElastiCache) DescribeCacheSecurityGroups(input *DescribeCacheSecurityGroupsInput) (*DescribeCacheSecurityGroupsOutput, error) { req, out := c.DescribeCacheSecurityGroupsRequest(input) err := req.Send() @@ -1283,9 +1643,23 @@ func (c *ElastiCache) DescribeCacheSubnetGroupsRequest(input *DescribeCacheSubne return } +// DescribeCacheSubnetGroups API operation for Amazon ElastiCache. +// // The DescribeCacheSubnetGroups action returns a list of cache subnet group // descriptions. If a subnet group name is specified, the list will contain // only the description of that group. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon ElastiCache's +// API operation, DescribeCacheSubnetGroups for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// CacheSubnetGroupNotFoundFault func (c *ElastiCache) DescribeCacheSubnetGroups(input *DescribeCacheSubnetGroupsInput) (*DescribeCacheSubnetGroupsOutput, error) { req, out := c.DescribeCacheSubnetGroupsRequest(input) err := req.Send() @@ -1364,8 +1738,23 @@ func (c *ElastiCache) DescribeEngineDefaultParametersRequest(input *DescribeEngi return } +// DescribeEngineDefaultParameters API operation for Amazon ElastiCache. +// // The DescribeEngineDefaultParameters action returns the default engine and // system parameter information for the specified cache engine. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon ElastiCache's +// API operation, DescribeEngineDefaultParameters for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidParameterValueException +// InvalidParameterCombinationException func (c *ElastiCache) DescribeEngineDefaultParameters(input *DescribeEngineDefaultParametersInput) (*DescribeEngineDefaultParametersOutput, error) { req, out := c.DescribeEngineDefaultParametersRequest(input) err := req.Send() @@ -1444,6 +1833,8 @@ func (c *ElastiCache) DescribeEventsRequest(input *DescribeEventsInput) (req *re return } +// DescribeEvents API operation for Amazon ElastiCache. +// // The DescribeEvents action returns events related to cache clusters, cache // security groups, and cache parameter groups. You can obtain events specific // to a particular cache cluster, cache security group, or cache parameter group @@ -1451,6 +1842,19 @@ func (c *ElastiCache) DescribeEventsRequest(input *DescribeEventsInput) (req *re // // By default, only the events occurring within the last hour are returned; // however, you can retrieve up to 14 days' worth of events if necessary. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon ElastiCache's +// API operation, DescribeEvents for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidParameterValueException +// InvalidParameterCombinationException func (c *ElastiCache) DescribeEvents(input *DescribeEventsInput) (*DescribeEventsOutput, error) { req, out := c.DescribeEventsRequest(input) err := req.Send() @@ -1529,9 +1933,25 @@ func (c *ElastiCache) DescribeReplicationGroupsRequest(input *DescribeReplicatio return } +// DescribeReplicationGroups API operation for Amazon ElastiCache. +// // The DescribeReplicationGroups action returns information about a particular // replication group. If no identifier is specified, DescribeReplicationGroups // returns information about all replication groups. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon ElastiCache's +// API operation, DescribeReplicationGroups for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ReplicationGroupNotFoundFault +// InvalidParameterValueException +// InvalidParameterCombinationException func (c *ElastiCache) DescribeReplicationGroups(input *DescribeReplicationGroupsInput) (*DescribeReplicationGroupsOutput, error) { req, out := c.DescribeReplicationGroupsRequest(input) err := req.Send() @@ -1610,8 +2030,24 @@ func (c *ElastiCache) DescribeReservedCacheNodesRequest(input *DescribeReservedC return } +// DescribeReservedCacheNodes API operation for Amazon ElastiCache. +// // The DescribeReservedCacheNodes action returns information about reserved // cache nodes for this account, or about a specified reserved cache node. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon ElastiCache's +// API operation, DescribeReservedCacheNodes for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ReservedCacheNodeNotFoundFault +// InvalidParameterValueException +// InvalidParameterCombinationException func (c *ElastiCache) DescribeReservedCacheNodes(input *DescribeReservedCacheNodesInput) (*DescribeReservedCacheNodesOutput, error) { req, out := c.DescribeReservedCacheNodesRequest(input) err := req.Send() @@ -1690,8 +2126,24 @@ func (c *ElastiCache) DescribeReservedCacheNodesOfferingsRequest(input *Describe return } +// DescribeReservedCacheNodesOfferings API operation for Amazon ElastiCache. +// // The DescribeReservedCacheNodesOfferings action lists available reserved cache // node offerings. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon ElastiCache's +// API operation, DescribeReservedCacheNodesOfferings for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ReservedCacheNodesOfferingNotFoundFault +// InvalidParameterValueException +// InvalidParameterCombinationException func (c *ElastiCache) DescribeReservedCacheNodesOfferings(input *DescribeReservedCacheNodesOfferingsInput) (*DescribeReservedCacheNodesOfferingsOutput, error) { req, out := c.DescribeReservedCacheNodesOfferingsRequest(input) err := req.Send() @@ -1770,10 +2222,27 @@ func (c *ElastiCache) DescribeSnapshotsRequest(input *DescribeSnapshotsInput) (r return } +// DescribeSnapshots API operation for Amazon ElastiCache. +// // The DescribeSnapshots action returns information about cache cluster snapshots. // By default, DescribeSnapshots lists all of your snapshots; it can optionally // describe a single snapshot, or just the snapshots associated with a particular // cache cluster. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon ElastiCache's +// API operation, DescribeSnapshots for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// CacheClusterNotFoundFault +// SnapshotNotFoundFault +// InvalidParameterValueException +// InvalidParameterCombinationException func (c *ElastiCache) DescribeSnapshots(input *DescribeSnapshotsInput) (*DescribeSnapshotsOutput, error) { req, out := c.DescribeSnapshotsRequest(input) err := req.Send() @@ -1846,6 +2315,8 @@ func (c *ElastiCache) ListAllowedNodeTypeModificationsRequest(input *ListAllowed return } +// ListAllowedNodeTypeModifications API operation for Amazon ElastiCache. +// // The ListAllowedNodeTypeModifications action lists all available node types // that you can scale your Redis cluster's or replication group's current node // type up to. @@ -1853,6 +2324,21 @@ func (c *ElastiCache) ListAllowedNodeTypeModificationsRequest(input *ListAllowed // When you use the ModifyCacheCluster or ModifyReplicationGroup APIs to scale // up your cluster or replication group, the value of the CacheNodeType parameter // must be one of the node types returned by this action. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon ElastiCache's +// API operation, ListAllowedNodeTypeModifications for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// CacheClusterNotFoundFault +// ReplicationGroupNotFoundFault +// InvalidParameterCombinationException +// InvalidParameterValueException func (c *ElastiCache) ListAllowedNodeTypeModifications(input *ListAllowedNodeTypeModificationsInput) (*ListAllowedNodeTypeModificationsOutput, error) { req, out := c.ListAllowedNodeTypeModificationsRequest(input) err := req.Send() @@ -1900,6 +2386,8 @@ func (c *ElastiCache) ListTagsForResourceRequest(input *ListTagsForResourceInput return } +// ListTagsForResource API operation for Amazon ElastiCache. +// // The ListTagsForResource action lists all cost allocation tags currently on // the named resource. A cost allocation tag is a key-value pair where the key // is case-sensitive and the value is optional. Cost allocation tags can be @@ -1908,6 +2396,20 @@ func (c *ElastiCache) ListTagsForResourceRequest(input *ListTagsForResourceInput // You can have a maximum of 10 cost allocation tags on an ElastiCache resource. // For more information, see Using Cost Allocation Tags in Amazon ElastiCache // (http://docs.aws.amazon.com/AmazonElastiCache/latest/UserGuide/BestPractices.html). +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon ElastiCache's +// API operation, ListTagsForResource for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// CacheClusterNotFoundFault +// SnapshotNotFoundFault +// InvalidARNFault func (c *ElastiCache) ListTagsForResource(input *ListTagsForResourceInput) (*TagListMessage, error) { req, out := c.ListTagsForResourceRequest(input) err := req.Send() @@ -1955,9 +2457,33 @@ func (c *ElastiCache) ModifyCacheClusterRequest(input *ModifyCacheClusterInput) return } +// ModifyCacheCluster API operation for Amazon ElastiCache. +// // The ModifyCacheCluster action modifies the settings for a cache cluster. // You can use this action to change one or more cluster configuration parameters // by specifying the parameters and the new values. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon ElastiCache's +// API operation, ModifyCacheCluster for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidCacheClusterStateFault +// InvalidCacheSecurityGroupStateFault +// InsufficientCacheClusterCapacityFault +// CacheClusterNotFoundFault +// NodeQuotaForClusterExceededFault +// NodeQuotaForCustomerExceededFault +// CacheSecurityGroupNotFoundFault +// CacheParameterGroupNotFoundFault +// InvalidVPCNetworkStateFault +// InvalidParameterValueException +// InvalidParameterCombinationException func (c *ElastiCache) ModifyCacheCluster(input *ModifyCacheClusterInput) (*ModifyCacheClusterOutput, error) { req, out := c.ModifyCacheClusterRequest(input) err := req.Send() @@ -2005,9 +2531,26 @@ func (c *ElastiCache) ModifyCacheParameterGroupRequest(input *ModifyCacheParamet return } +// ModifyCacheParameterGroup API operation for Amazon ElastiCache. +// // The ModifyCacheParameterGroup action modifies the parameters of a cache parameter // group. You can modify up to 20 parameters in a single request by submitting // a list parameter name and value pairs. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon ElastiCache's +// API operation, ModifyCacheParameterGroup for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// CacheParameterGroupNotFoundFault +// InvalidCacheParameterGroupStateFault +// InvalidParameterValueException +// InvalidParameterCombinationException func (c *ElastiCache) ModifyCacheParameterGroup(input *ModifyCacheParameterGroupInput) (*CacheParameterGroupNameMessage, error) { req, out := c.ModifyCacheParameterGroupRequest(input) err := req.Send() @@ -2055,7 +2598,24 @@ func (c *ElastiCache) ModifyCacheSubnetGroupRequest(input *ModifyCacheSubnetGrou return } +// ModifyCacheSubnetGroup API operation for Amazon ElastiCache. +// // The ModifyCacheSubnetGroup action modifies an existing cache subnet group. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon ElastiCache's +// API operation, ModifyCacheSubnetGroup for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// CacheSubnetGroupNotFoundFault +// CacheSubnetQuotaExceededFault +// SubnetInUse +// InvalidSubnet func (c *ElastiCache) ModifyCacheSubnetGroup(input *ModifyCacheSubnetGroupInput) (*ModifyCacheSubnetGroupOutput, error) { req, out := c.ModifyCacheSubnetGroupRequest(input) err := req.Send() @@ -2103,8 +2663,34 @@ func (c *ElastiCache) ModifyReplicationGroupRequest(input *ModifyReplicationGrou return } +// ModifyReplicationGroup API operation for Amazon ElastiCache. +// // The ModifyReplicationGroup action modifies the settings for a replication // group. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon ElastiCache's +// API operation, ModifyReplicationGroup for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ReplicationGroupNotFoundFault +// InvalidReplicationGroupStateFault +// InvalidCacheClusterStateFault +// InvalidCacheSecurityGroupStateFault +// InsufficientCacheClusterCapacityFault +// CacheClusterNotFoundFault +// NodeQuotaForClusterExceededFault +// NodeQuotaForCustomerExceededFault +// CacheSecurityGroupNotFoundFault +// CacheParameterGroupNotFoundFault +// InvalidVPCNetworkStateFault +// InvalidParameterValueException +// InvalidParameterCombinationException func (c *ElastiCache) ModifyReplicationGroup(input *ModifyReplicationGroupInput) (*ModifyReplicationGroupOutput, error) { req, out := c.ModifyReplicationGroupRequest(input) err := req.Send() @@ -2152,8 +2738,26 @@ func (c *ElastiCache) PurchaseReservedCacheNodesOfferingRequest(input *PurchaseR return } +// PurchaseReservedCacheNodesOffering API operation for Amazon ElastiCache. +// // The PurchaseReservedCacheNodesOffering action allows you to purchase a reserved // cache node offering. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon ElastiCache's +// API operation, PurchaseReservedCacheNodesOffering for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ReservedCacheNodesOfferingNotFoundFault +// ReservedCacheNodeAlreadyExistsFault +// ReservedCacheNodeQuotaExceededFault +// InvalidParameterValueException +// InvalidParameterCombinationException func (c *ElastiCache) PurchaseReservedCacheNodesOffering(input *PurchaseReservedCacheNodesOfferingInput) (*PurchaseReservedCacheNodesOfferingOutput, error) { req, out := c.PurchaseReservedCacheNodesOfferingRequest(input) err := req.Send() @@ -2201,6 +2805,8 @@ func (c *ElastiCache) RebootCacheClusterRequest(input *RebootCacheClusterInput) return } +// RebootCacheCluster API operation for Amazon ElastiCache. +// // The RebootCacheCluster action reboots some, or all, of the cache nodes within // a provisioned cache cluster. This API will apply any modified cache parameter // groups to the cache cluster. The reboot action takes place as soon as possible, @@ -2211,6 +2817,19 @@ func (c *ElastiCache) RebootCacheClusterRequest(input *RebootCacheClusterInput) // to be lost. // // When the reboot is complete, a cache cluster event is created. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon ElastiCache's +// API operation, RebootCacheCluster for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidCacheClusterStateFault +// CacheClusterNotFoundFault func (c *ElastiCache) RebootCacheCluster(input *RebootCacheClusterInput) (*RebootCacheClusterOutput, error) { req, out := c.RebootCacheClusterRequest(input) err := req.Send() @@ -2258,8 +2877,25 @@ func (c *ElastiCache) RemoveTagsFromResourceRequest(input *RemoveTagsFromResourc return } +// RemoveTagsFromResource API operation for Amazon ElastiCache. +// // The RemoveTagsFromResource action removes the tags identified by the TagKeys // list from the named resource. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon ElastiCache's +// API operation, RemoveTagsFromResource for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// CacheClusterNotFoundFault +// SnapshotNotFoundFault +// InvalidARNFault +// TagNotFoundFault func (c *ElastiCache) RemoveTagsFromResource(input *RemoveTagsFromResourceInput) (*TagListMessage, error) { req, out := c.RemoveTagsFromResourceRequest(input) err := req.Send() @@ -2307,10 +2943,27 @@ func (c *ElastiCache) ResetCacheParameterGroupRequest(input *ResetCacheParameter return } +// ResetCacheParameterGroup API operation for Amazon ElastiCache. +// // The ResetCacheParameterGroup action modifies the parameters of a cache parameter // group to the engine or system default value. You can reset specific parameters // by submitting a list of parameter names. To reset the entire cache parameter // group, specify the ResetAllParameters and CacheParameterGroupName parameters. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon ElastiCache's +// API operation, ResetCacheParameterGroup for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidCacheParameterGroupStateFault +// CacheParameterGroupNotFoundFault +// InvalidParameterValueException +// InvalidParameterCombinationException func (c *ElastiCache) ResetCacheParameterGroup(input *ResetCacheParameterGroupInput) (*CacheParameterGroupNameMessage, error) { req, out := c.ResetCacheParameterGroupRequest(input) err := req.Send() @@ -2358,9 +3011,27 @@ func (c *ElastiCache) RevokeCacheSecurityGroupIngressRequest(input *RevokeCacheS return } +// RevokeCacheSecurityGroupIngress API operation for Amazon ElastiCache. +// // The RevokeCacheSecurityGroupIngress action revokes ingress from a cache security // group. Use this action to disallow access from an Amazon EC2 security group // that had been previously authorized. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon ElastiCache's +// API operation, RevokeCacheSecurityGroupIngress for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// CacheSecurityGroupNotFoundFault +// AuthorizationNotFoundFault +// InvalidCacheSecurityGroupStateFault +// InvalidParameterValueException +// InvalidParameterCombinationException func (c *ElastiCache) RevokeCacheSecurityGroupIngress(input *RevokeCacheSecurityGroupIngressInput) (*RevokeCacheSecurityGroupIngressOutput, error) { req, out := c.RevokeCacheSecurityGroupIngressRequest(input) err := req.Send() diff --git a/service/elasticbeanstalk/api.go b/service/elasticbeanstalk/api.go index 46354026e5f..cf2005793b5 100644 --- a/service/elasticbeanstalk/api.go +++ b/service/elasticbeanstalk/api.go @@ -56,8 +56,22 @@ func (c *ElasticBeanstalk) AbortEnvironmentUpdateRequest(input *AbortEnvironment return } +// AbortEnvironmentUpdate API operation for AWS Elastic Beanstalk. +// // Cancels in-progress environment configuration update or application version // deployment. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Elastic Beanstalk's +// API operation, AbortEnvironmentUpdate for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InsufficientPrivilegesException func (c *ElasticBeanstalk) AbortEnvironmentUpdate(input *AbortEnvironmentUpdateInput) (*AbortEnvironmentUpdateOutput, error) { req, out := c.AbortEnvironmentUpdateRequest(input) err := req.Send() @@ -105,9 +119,24 @@ func (c *ElasticBeanstalk) ApplyEnvironmentManagedActionRequest(input *ApplyEnvi return } +// ApplyEnvironmentManagedAction API operation for AWS Elastic Beanstalk. +// // Applies a scheduled managed action immediately. A managed action can be applied // only if its status is Scheduled. Get the status and action ID of a managed // action with DescribeEnvironmentManagedActions. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Elastic Beanstalk's +// API operation, ApplyEnvironmentManagedAction for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ElasticBeanstalkServiceException +// ManagedActionInvalidStateException func (c *ElasticBeanstalk) ApplyEnvironmentManagedAction(input *ApplyEnvironmentManagedActionInput) (*ApplyEnvironmentManagedActionOutput, error) { req, out := c.ApplyEnvironmentManagedActionRequest(input) err := req.Send() @@ -155,7 +184,17 @@ func (c *ElasticBeanstalk) CheckDNSAvailabilityRequest(input *CheckDNSAvailabili return } +// CheckDNSAvailability API operation for AWS Elastic Beanstalk. +// // Checks if the specified CNAME is available. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Elastic Beanstalk's +// API operation, CheckDNSAvailability for more information, and other errors +// that the API operation could return. func (c *ElasticBeanstalk) CheckDNSAvailability(input *CheckDNSAvailabilityInput) (*CheckDNSAvailabilityOutput, error) { req, out := c.CheckDNSAvailabilityRequest(input) err := req.Send() @@ -203,6 +242,8 @@ func (c *ElasticBeanstalk) ComposeEnvironmentsRequest(input *ComposeEnvironments return } +// ComposeEnvironments API operation for AWS Elastic Beanstalk. +// // Create or update a group of environments that each run a separate component // of a single application. Takes a list of version labels that specify application // source bundles for each of the environments to create or update. The name @@ -210,6 +251,19 @@ func (c *ElasticBeanstalk) ComposeEnvironmentsRequest(input *ComposeEnvironments // source bundles in an environment manifest named env.yaml. See Compose Environments // (http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/environment-mgmt-compose.html) // for details. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Elastic Beanstalk's +// API operation, ComposeEnvironments for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// TooManyEnvironmentsException +// InsufficientPrivilegesException func (c *ElasticBeanstalk) ComposeEnvironments(input *ComposeEnvironmentsInput) (*EnvironmentDescriptionsMessage, error) { req, out := c.ComposeEnvironmentsRequest(input) err := req.Send() @@ -257,8 +311,22 @@ func (c *ElasticBeanstalk) CreateApplicationRequest(input *CreateApplicationInpu return } +// CreateApplication API operation for AWS Elastic Beanstalk. +// // Creates an application that has one configuration template named default // and no application versions. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Elastic Beanstalk's +// API operation, CreateApplication for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// TooManyApplicationsException func (c *ElasticBeanstalk) CreateApplication(input *CreateApplicationInput) (*ApplicationDescriptionMessage, error) { req, out := c.CreateApplicationRequest(input) err := req.Send() @@ -306,12 +374,29 @@ func (c *ElasticBeanstalk) CreateApplicationVersionRequest(input *CreateApplicat return } +// CreateApplicationVersion API operation for AWS Elastic Beanstalk. +// // Creates an application version for the specified application. // // Once you create an application version with a specified Amazon S3 bucket // and key location, you cannot change that Amazon S3 location. If you change // the Amazon S3 location, you receive an exception when you attempt to launch // an environment from the application version. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Elastic Beanstalk's +// API operation, CreateApplicationVersion for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// TooManyApplicationsException +// TooManyApplicationVersionsException +// InsufficientPrivilegesException +// S3LocationNotInServiceRegionException func (c *ElasticBeanstalk) CreateApplicationVersion(input *CreateApplicationVersionInput) (*ApplicationVersionDescriptionMessage, error) { req, out := c.CreateApplicationVersionRequest(input) err := req.Send() @@ -359,6 +444,8 @@ func (c *ElasticBeanstalk) CreateConfigurationTemplateRequest(input *CreateConfi return } +// CreateConfigurationTemplate API operation for AWS Elastic Beanstalk. +// // Creates a configuration template. Templates are associated with a specific // application and are used to deploy different versions of the application // with the same configuration settings. @@ -366,6 +453,20 @@ func (c *ElasticBeanstalk) CreateConfigurationTemplateRequest(input *CreateConfi // Related Topics // // DescribeConfigurationOptions DescribeConfigurationSettings ListAvailableSolutionStacks +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Elastic Beanstalk's +// API operation, CreateConfigurationTemplate for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InsufficientPrivilegesException +// TooManyBucketsException +// TooManyConfigurationTemplatesException func (c *ElasticBeanstalk) CreateConfigurationTemplate(input *CreateConfigurationTemplateInput) (*ConfigurationSettingsDescription, error) { req, out := c.CreateConfigurationTemplateRequest(input) err := req.Send() @@ -413,8 +514,23 @@ func (c *ElasticBeanstalk) CreateEnvironmentRequest(input *CreateEnvironmentInpu return } +// CreateEnvironment API operation for AWS Elastic Beanstalk. +// // Launches an environment for the specified application using the specified // configuration. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Elastic Beanstalk's +// API operation, CreateEnvironment for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// TooManyEnvironmentsException +// InsufficientPrivilegesException func (c *ElasticBeanstalk) CreateEnvironment(input *CreateEnvironmentInput) (*EnvironmentDescription, error) { req, out := c.CreateEnvironmentRequest(input) err := req.Send() @@ -462,9 +578,25 @@ func (c *ElasticBeanstalk) CreateStorageLocationRequest(input *CreateStorageLoca return } +// CreateStorageLocation API operation for AWS Elastic Beanstalk. +// // Creates the Amazon S3 storage location for the account. // // This location is used to store user log files. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Elastic Beanstalk's +// API operation, CreateStorageLocation for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// TooManyBucketsException +// S3SubscriptionRequiredException +// InsufficientPrivilegesException func (c *ElasticBeanstalk) CreateStorageLocation(input *CreateStorageLocationInput) (*CreateStorageLocationOutput, error) { req, out := c.CreateStorageLocationRequest(input) err := req.Send() @@ -514,11 +646,25 @@ func (c *ElasticBeanstalk) DeleteApplicationRequest(input *DeleteApplicationInpu return } +// DeleteApplication API operation for AWS Elastic Beanstalk. +// // Deletes the specified application along with all associated versions and // configurations. The application versions will not be deleted from your Amazon // S3 bucket. // // You cannot delete an application that has a running environment. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Elastic Beanstalk's +// API operation, DeleteApplication for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// OperationInProgressException func (c *ElasticBeanstalk) DeleteApplication(input *DeleteApplicationInput) (*DeleteApplicationOutput, error) { req, out := c.DeleteApplicationRequest(input) err := req.Send() @@ -568,10 +714,27 @@ func (c *ElasticBeanstalk) DeleteApplicationVersionRequest(input *DeleteApplicat return } +// DeleteApplicationVersion API operation for AWS Elastic Beanstalk. +// // Deletes the specified version from the specified application. // // You cannot delete an application version that is associated with a running // environment. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Elastic Beanstalk's +// API operation, DeleteApplicationVersion for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// SourceBundleDeletionException +// InsufficientPrivilegesException +// OperationInProgressException +// S3LocationNotInServiceRegionException func (c *ElasticBeanstalk) DeleteApplicationVersion(input *DeleteApplicationVersionInput) (*DeleteApplicationVersionOutput, error) { req, out := c.DeleteApplicationVersionRequest(input) err := req.Send() @@ -621,11 +784,25 @@ func (c *ElasticBeanstalk) DeleteConfigurationTemplateRequest(input *DeleteConfi return } +// DeleteConfigurationTemplate API operation for AWS Elastic Beanstalk. +// // Deletes the specified configuration template. // // When you launch an environment using a configuration template, the environment // gets a copy of the template. You can delete or modify the environment's copy // of the template without affecting the running environment. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Elastic Beanstalk's +// API operation, DeleteConfigurationTemplate for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// OperationInProgressException func (c *ElasticBeanstalk) DeleteConfigurationTemplate(input *DeleteConfigurationTemplateInput) (*DeleteConfigurationTemplateOutput, error) { req, out := c.DeleteConfigurationTemplateRequest(input) err := req.Send() @@ -675,6 +852,8 @@ func (c *ElasticBeanstalk) DeleteEnvironmentConfigurationRequest(input *DeleteEn return } +// DeleteEnvironmentConfiguration API operation for AWS Elastic Beanstalk. +// // Deletes the draft configuration associated with the running environment. // // Updating a running environment with any configuration changes creates a @@ -683,6 +862,14 @@ func (c *ElasticBeanstalk) DeleteEnvironmentConfigurationRequest(input *DeleteEn // for the draft configuration indicates whether the deployment is in process // or has failed. The draft configuration remains in existence until it is deleted // with this action. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Elastic Beanstalk's +// API operation, DeleteEnvironmentConfiguration for more information, and other errors +// that the API operation could return. func (c *ElasticBeanstalk) DeleteEnvironmentConfiguration(input *DeleteEnvironmentConfigurationInput) (*DeleteEnvironmentConfigurationOutput, error) { req, out := c.DeleteEnvironmentConfigurationRequest(input) err := req.Send() @@ -730,8 +917,18 @@ func (c *ElasticBeanstalk) DescribeApplicationVersionsRequest(input *DescribeApp return } +// DescribeApplicationVersions API operation for AWS Elastic Beanstalk. +// // Retrieve a list of application versions stored in your AWS Elastic Beanstalk // storage bucket. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Elastic Beanstalk's +// API operation, DescribeApplicationVersions for more information, and other errors +// that the API operation could return. func (c *ElasticBeanstalk) DescribeApplicationVersions(input *DescribeApplicationVersionsInput) (*DescribeApplicationVersionsOutput, error) { req, out := c.DescribeApplicationVersionsRequest(input) err := req.Send() @@ -779,7 +976,17 @@ func (c *ElasticBeanstalk) DescribeApplicationsRequest(input *DescribeApplicatio return } +// DescribeApplications API operation for AWS Elastic Beanstalk. +// // Returns the descriptions of existing applications. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Elastic Beanstalk's +// API operation, DescribeApplications for more information, and other errors +// that the API operation could return. func (c *ElasticBeanstalk) DescribeApplications(input *DescribeApplicationsInput) (*DescribeApplicationsOutput, error) { req, out := c.DescribeApplicationsRequest(input) err := req.Send() @@ -827,11 +1034,25 @@ func (c *ElasticBeanstalk) DescribeConfigurationOptionsRequest(input *DescribeCo return } +// DescribeConfigurationOptions API operation for AWS Elastic Beanstalk. +// // Describes the configuration options that are used in a particular configuration // template or environment, or that a specified solution stack defines. The // description includes the values the options, their default values, and an // indication of the required action on a running environment if an option value // is changed. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Elastic Beanstalk's +// API operation, DescribeConfigurationOptions for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// TooManyBucketsException func (c *ElasticBeanstalk) DescribeConfigurationOptions(input *DescribeConfigurationOptionsInput) (*DescribeConfigurationOptionsOutput, error) { req, out := c.DescribeConfigurationOptionsRequest(input) err := req.Send() @@ -879,6 +1100,8 @@ func (c *ElasticBeanstalk) DescribeConfigurationSettingsRequest(input *DescribeC return } +// DescribeConfigurationSettings API operation for AWS Elastic Beanstalk. +// // Returns a description of the settings for the specified configuration set, // that is, either a configuration template or the configuration set associated // with a running environment. @@ -892,6 +1115,18 @@ func (c *ElasticBeanstalk) DescribeConfigurationSettingsRequest(input *DescribeC // Related Topics // // DeleteEnvironmentConfiguration +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Elastic Beanstalk's +// API operation, DescribeConfigurationSettings for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// TooManyBucketsException func (c *ElasticBeanstalk) DescribeConfigurationSettings(input *DescribeConfigurationSettingsInput) (*DescribeConfigurationSettingsOutput, error) { req, out := c.DescribeConfigurationSettingsRequest(input) err := req.Send() @@ -939,9 +1174,24 @@ func (c *ElasticBeanstalk) DescribeEnvironmentHealthRequest(input *DescribeEnvir return } +// DescribeEnvironmentHealth API operation for AWS Elastic Beanstalk. +// // Returns information about the overall health of the specified environment. // The DescribeEnvironmentHealth operation is only available with AWS Elastic // Beanstalk Enhanced Health. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Elastic Beanstalk's +// API operation, DescribeEnvironmentHealth for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidRequestException +// ElasticBeanstalkServiceException func (c *ElasticBeanstalk) DescribeEnvironmentHealth(input *DescribeEnvironmentHealthInput) (*DescribeEnvironmentHealthOutput, error) { req, out := c.DescribeEnvironmentHealthRequest(input) err := req.Send() @@ -989,7 +1239,21 @@ func (c *ElasticBeanstalk) DescribeEnvironmentManagedActionHistoryRequest(input return } +// DescribeEnvironmentManagedActionHistory API operation for AWS Elastic Beanstalk. +// // Lists an environment's completed and failed managed actions. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Elastic Beanstalk's +// API operation, DescribeEnvironmentManagedActionHistory for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ElasticBeanstalkServiceException func (c *ElasticBeanstalk) DescribeEnvironmentManagedActionHistory(input *DescribeEnvironmentManagedActionHistoryInput) (*DescribeEnvironmentManagedActionHistoryOutput, error) { req, out := c.DescribeEnvironmentManagedActionHistoryRequest(input) err := req.Send() @@ -1037,7 +1301,21 @@ func (c *ElasticBeanstalk) DescribeEnvironmentManagedActionsRequest(input *Descr return } +// DescribeEnvironmentManagedActions API operation for AWS Elastic Beanstalk. +// // Lists an environment's upcoming and in-progress managed actions. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Elastic Beanstalk's +// API operation, DescribeEnvironmentManagedActions for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ElasticBeanstalkServiceException func (c *ElasticBeanstalk) DescribeEnvironmentManagedActions(input *DescribeEnvironmentManagedActionsInput) (*DescribeEnvironmentManagedActionsOutput, error) { req, out := c.DescribeEnvironmentManagedActionsRequest(input) err := req.Send() @@ -1085,7 +1363,21 @@ func (c *ElasticBeanstalk) DescribeEnvironmentResourcesRequest(input *DescribeEn return } +// DescribeEnvironmentResources API operation for AWS Elastic Beanstalk. +// // Returns AWS resources for this environment. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Elastic Beanstalk's +// API operation, DescribeEnvironmentResources for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InsufficientPrivilegesException func (c *ElasticBeanstalk) DescribeEnvironmentResources(input *DescribeEnvironmentResourcesInput) (*DescribeEnvironmentResourcesOutput, error) { req, out := c.DescribeEnvironmentResourcesRequest(input) err := req.Send() @@ -1133,7 +1425,17 @@ func (c *ElasticBeanstalk) DescribeEnvironmentsRequest(input *DescribeEnvironmen return } +// DescribeEnvironments API operation for AWS Elastic Beanstalk. +// // Returns descriptions for existing environments. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Elastic Beanstalk's +// API operation, DescribeEnvironments for more information, and other errors +// that the API operation could return. func (c *ElasticBeanstalk) DescribeEnvironments(input *DescribeEnvironmentsInput) (*EnvironmentDescriptionsMessage, error) { req, out := c.DescribeEnvironmentsRequest(input) err := req.Send() @@ -1187,9 +1489,19 @@ func (c *ElasticBeanstalk) DescribeEventsRequest(input *DescribeEventsInput) (re return } +// DescribeEvents API operation for AWS Elastic Beanstalk. +// // Returns list of event descriptions matching criteria up to the last 6 weeks. // // This action returns the most recent 1,000 events from the specified NextToken. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Elastic Beanstalk's +// API operation, DescribeEvents for more information, and other errors +// that the API operation could return. func (c *ElasticBeanstalk) DescribeEvents(input *DescribeEventsInput) (*DescribeEventsOutput, error) { req, out := c.DescribeEventsRequest(input) err := req.Send() @@ -1262,9 +1574,24 @@ func (c *ElasticBeanstalk) DescribeInstancesHealthRequest(input *DescribeInstanc return } +// DescribeInstancesHealth API operation for AWS Elastic Beanstalk. +// // Returns more detailed information about the health of the specified instances // (for example, CPU utilization, load average, and causes). The DescribeInstancesHealth // operation is only available with AWS Elastic Beanstalk Enhanced Health. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Elastic Beanstalk's +// API operation, DescribeInstancesHealth for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidRequestException +// ElasticBeanstalkServiceException func (c *ElasticBeanstalk) DescribeInstancesHealth(input *DescribeInstancesHealthInput) (*DescribeInstancesHealthOutput, error) { req, out := c.DescribeInstancesHealthRequest(input) err := req.Send() @@ -1312,7 +1639,17 @@ func (c *ElasticBeanstalk) ListAvailableSolutionStacksRequest(input *ListAvailab return } +// ListAvailableSolutionStacks API operation for AWS Elastic Beanstalk. +// // Returns a list of the available solution stack names. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Elastic Beanstalk's +// API operation, ListAvailableSolutionStacks for more information, and other errors +// that the API operation could return. func (c *ElasticBeanstalk) ListAvailableSolutionStacks(input *ListAvailableSolutionStacksInput) (*ListAvailableSolutionStacksOutput, error) { req, out := c.ListAvailableSolutionStacksRequest(input) err := req.Send() @@ -1362,8 +1699,22 @@ func (c *ElasticBeanstalk) RebuildEnvironmentRequest(input *RebuildEnvironmentIn return } +// RebuildEnvironment API operation for AWS Elastic Beanstalk. +// // Deletes and recreates all of the AWS resources (for example: the Auto Scaling // group, load balancer, etc.) for a specified environment and forces a restart. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Elastic Beanstalk's +// API operation, RebuildEnvironment for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InsufficientPrivilegesException func (c *ElasticBeanstalk) RebuildEnvironment(input *RebuildEnvironmentInput) (*RebuildEnvironmentOutput, error) { req, out := c.RebuildEnvironmentRequest(input) err := req.Send() @@ -1413,6 +1764,8 @@ func (c *ElasticBeanstalk) RequestEnvironmentInfoRequest(input *RequestEnvironme return } +// RequestEnvironmentInfo API operation for AWS Elastic Beanstalk. +// // Initiates a request to compile the specified type of information of the deployed // environment. // @@ -1428,6 +1781,14 @@ func (c *ElasticBeanstalk) RequestEnvironmentInfoRequest(input *RequestEnvironme // Related Topics // // RetrieveEnvironmentInfo +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Elastic Beanstalk's +// API operation, RequestEnvironmentInfo for more information, and other errors +// that the API operation could return. func (c *ElasticBeanstalk) RequestEnvironmentInfo(input *RequestEnvironmentInfoInput) (*RequestEnvironmentInfoOutput, error) { req, out := c.RequestEnvironmentInfoRequest(input) err := req.Send() @@ -1477,8 +1838,18 @@ func (c *ElasticBeanstalk) RestartAppServerRequest(input *RestartAppServerInput) return } +// RestartAppServer API operation for AWS Elastic Beanstalk. +// // Causes the environment to restart the application container server running // on each Amazon EC2 instance. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Elastic Beanstalk's +// API operation, RestartAppServer for more information, and other errors +// that the API operation could return. func (c *ElasticBeanstalk) RestartAppServer(input *RestartAppServerInput) (*RestartAppServerOutput, error) { req, out := c.RestartAppServerRequest(input) err := req.Send() @@ -1526,11 +1897,21 @@ func (c *ElasticBeanstalk) RetrieveEnvironmentInfoRequest(input *RetrieveEnviron return } +// RetrieveEnvironmentInfo API operation for AWS Elastic Beanstalk. +// // Retrieves the compiled information from a RequestEnvironmentInfo request. // // Related Topics // // RequestEnvironmentInfo +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Elastic Beanstalk's +// API operation, RetrieveEnvironmentInfo for more information, and other errors +// that the API operation could return. func (c *ElasticBeanstalk) RetrieveEnvironmentInfo(input *RetrieveEnvironmentInfoInput) (*RetrieveEnvironmentInfoOutput, error) { req, out := c.RetrieveEnvironmentInfoRequest(input) err := req.Send() @@ -1580,7 +1961,17 @@ func (c *ElasticBeanstalk) SwapEnvironmentCNAMEsRequest(input *SwapEnvironmentCN return } +// SwapEnvironmentCNAMEs API operation for AWS Elastic Beanstalk. +// // Swaps the CNAMEs of two environments. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Elastic Beanstalk's +// API operation, SwapEnvironmentCNAMEs for more information, and other errors +// that the API operation could return. func (c *ElasticBeanstalk) SwapEnvironmentCNAMEs(input *SwapEnvironmentCNAMEsInput) (*SwapEnvironmentCNAMEsOutput, error) { req, out := c.SwapEnvironmentCNAMEsRequest(input) err := req.Send() @@ -1628,7 +2019,21 @@ func (c *ElasticBeanstalk) TerminateEnvironmentRequest(input *TerminateEnvironme return } +// TerminateEnvironment API operation for AWS Elastic Beanstalk. +// // Terminates the specified environment. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Elastic Beanstalk's +// API operation, TerminateEnvironment for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InsufficientPrivilegesException func (c *ElasticBeanstalk) TerminateEnvironment(input *TerminateEnvironmentInput) (*EnvironmentDescription, error) { req, out := c.TerminateEnvironmentRequest(input) err := req.Send() @@ -1676,10 +2081,20 @@ func (c *ElasticBeanstalk) UpdateApplicationRequest(input *UpdateApplicationInpu return } +// UpdateApplication API operation for AWS Elastic Beanstalk. +// // Updates the specified application to have the specified properties. // // If a property (for example, description) is not provided, the value remains // unchanged. To clear these properties, specify an empty string. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Elastic Beanstalk's +// API operation, UpdateApplication for more information, and other errors +// that the API operation could return. func (c *ElasticBeanstalk) UpdateApplication(input *UpdateApplicationInput) (*ApplicationDescriptionMessage, error) { req, out := c.UpdateApplicationRequest(input) err := req.Send() @@ -1727,10 +2142,20 @@ func (c *ElasticBeanstalk) UpdateApplicationVersionRequest(input *UpdateApplicat return } +// UpdateApplicationVersion API operation for AWS Elastic Beanstalk. +// // Updates the specified application version to have the specified properties. // // If a property (for example, description) is not provided, the value remains // unchanged. To clear properties, specify an empty string. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Elastic Beanstalk's +// API operation, UpdateApplicationVersion for more information, and other errors +// that the API operation could return. func (c *ElasticBeanstalk) UpdateApplicationVersion(input *UpdateApplicationVersionInput) (*ApplicationVersionDescriptionMessage, error) { req, out := c.UpdateApplicationVersionRequest(input) err := req.Send() @@ -1778,6 +2203,8 @@ func (c *ElasticBeanstalk) UpdateConfigurationTemplateRequest(input *UpdateConfi return } +// UpdateConfigurationTemplate API operation for AWS Elastic Beanstalk. +// // Updates the specified configuration template to have the specified properties // or configuration option values. // @@ -1786,6 +2213,19 @@ func (c *ElasticBeanstalk) UpdateConfigurationTemplateRequest(input *UpdateConfi // Topics // // DescribeConfigurationOptions +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Elastic Beanstalk's +// API operation, UpdateConfigurationTemplate for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InsufficientPrivilegesException +// TooManyBucketsException func (c *ElasticBeanstalk) UpdateConfigurationTemplate(input *UpdateConfigurationTemplateInput) (*ConfigurationSettingsDescription, error) { req, out := c.UpdateConfigurationTemplateRequest(input) err := req.Send() @@ -1833,6 +2273,8 @@ func (c *ElasticBeanstalk) UpdateEnvironmentRequest(input *UpdateEnvironmentInpu return } +// UpdateEnvironment API operation for AWS Elastic Beanstalk. +// // Updates the environment description, deploys a new application version, updates // the configuration settings to an entirely new configuration template, or // updates select configuration option values in the running environment. @@ -1844,6 +2286,19 @@ func (c *ElasticBeanstalk) UpdateEnvironmentRequest(input *UpdateEnvironmentInpu // settings, a draft configuration is created and DescribeConfigurationSettings // for this environment returns two setting descriptions with different DeploymentStatus // values. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Elastic Beanstalk's +// API operation, UpdateEnvironment for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InsufficientPrivilegesException +// TooManyBucketsException func (c *ElasticBeanstalk) UpdateEnvironment(input *UpdateEnvironmentInput) (*EnvironmentDescription, error) { req, out := c.UpdateEnvironmentRequest(input) err := req.Send() @@ -1891,11 +2346,26 @@ func (c *ElasticBeanstalk) ValidateConfigurationSettingsRequest(input *ValidateC return } +// ValidateConfigurationSettings API operation for AWS Elastic Beanstalk. +// // Takes a set of configuration settings and either a configuration template // or environment, and determines whether those values are valid. // // This action returns a list of messages indicating any errors or warnings // associated with the selection of option values. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Elastic Beanstalk's +// API operation, ValidateConfigurationSettings for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InsufficientPrivilegesException +// TooManyBucketsException func (c *ElasticBeanstalk) ValidateConfigurationSettings(input *ValidateConfigurationSettingsInput) (*ValidateConfigurationSettingsOutput, error) { req, out := c.ValidateConfigurationSettingsRequest(input) err := req.Send() diff --git a/service/elasticsearchservice/api.go b/service/elasticsearchservice/api.go index a0b96c009bc..8eb409c60f5 100644 --- a/service/elasticsearchservice/api.go +++ b/service/elasticsearchservice/api.go @@ -56,10 +56,27 @@ func (c *ElasticsearchService) AddTagsRequest(input *AddTagsInput) (req *request return } +// AddTags API operation for Amazon Elasticsearch Service. +// // Attaches tags to an existing Elasticsearch domain. Tags are a set of case-sensitive // key value pairs. An Elasticsearch domain may have up to 10 tags. See Tagging // Amazon Elasticsearch Service Domains for more information. (http://docs.aws.amazon.com/elasticsearch-service/latest/developerguide/es-managedomains.html#es-managedomains-awsresorcetagging" // target="_blank) +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Elasticsearch Service's +// API operation, AddTags for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// BaseException +// LimitExceededException +// ValidationException +// InternalException func (c *ElasticsearchService) AddTags(input *AddTagsInput) (*AddTagsOutput, error) { req, out := c.AddTagsRequest(input) err := req.Send() @@ -107,9 +124,29 @@ func (c *ElasticsearchService) CreateElasticsearchDomainRequest(input *CreateEla return } +// CreateElasticsearchDomain API operation for Amazon Elasticsearch Service. +// // Creates a new Elasticsearch domain. For more information, see Creating Elasticsearch // Domains (http://docs.aws.amazon.com/elasticsearch-service/latest/developerguide/es-createupdatedomains.html#es-createdomains" // target="_blank) in the Amazon Elasticsearch Service Developer Guide. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Elasticsearch Service's +// API operation, CreateElasticsearchDomain for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// BaseException +// DisabledOperationException +// InternalException +// InvalidTypeException +// LimitExceededException +// ResourceAlreadyExistsException +// ValidationException func (c *ElasticsearchService) CreateElasticsearchDomain(input *CreateElasticsearchDomainInput) (*CreateElasticsearchDomainOutput, error) { req, out := c.CreateElasticsearchDomainRequest(input) err := req.Send() @@ -157,8 +194,25 @@ func (c *ElasticsearchService) DeleteElasticsearchDomainRequest(input *DeleteEla return } +// DeleteElasticsearchDomain API operation for Amazon Elasticsearch Service. +// // Permanently deletes the specified Elasticsearch domain and all of its data. // Once a domain is deleted, it cannot be recovered. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Elasticsearch Service's +// API operation, DeleteElasticsearchDomain for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// BaseException +// InternalException +// ResourceNotFoundException +// ValidationException func (c *ElasticsearchService) DeleteElasticsearchDomain(input *DeleteElasticsearchDomainInput) (*DeleteElasticsearchDomainOutput, error) { req, out := c.DeleteElasticsearchDomainRequest(input) err := req.Send() @@ -206,8 +260,25 @@ func (c *ElasticsearchService) DescribeElasticsearchDomainRequest(input *Describ return } +// DescribeElasticsearchDomain API operation for Amazon Elasticsearch Service. +// // Returns domain configuration information about the specified Elasticsearch // domain, including the domain ID, domain endpoint, and domain ARN. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Elasticsearch Service's +// API operation, DescribeElasticsearchDomain for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// BaseException +// InternalException +// ResourceNotFoundException +// ValidationException func (c *ElasticsearchService) DescribeElasticsearchDomain(input *DescribeElasticsearchDomainInput) (*DescribeElasticsearchDomainOutput, error) { req, out := c.DescribeElasticsearchDomainRequest(input) err := req.Send() @@ -255,9 +326,26 @@ func (c *ElasticsearchService) DescribeElasticsearchDomainConfigRequest(input *D return } +// DescribeElasticsearchDomainConfig API operation for Amazon Elasticsearch Service. +// // Provides cluster configuration information about the specified Elasticsearch // domain, such as the state, creation date, update version, and update date // for cluster options. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Elasticsearch Service's +// API operation, DescribeElasticsearchDomainConfig for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// BaseException +// InternalException +// ResourceNotFoundException +// ValidationException func (c *ElasticsearchService) DescribeElasticsearchDomainConfig(input *DescribeElasticsearchDomainConfigInput) (*DescribeElasticsearchDomainConfigOutput, error) { req, out := c.DescribeElasticsearchDomainConfigRequest(input) err := req.Send() @@ -305,8 +393,24 @@ func (c *ElasticsearchService) DescribeElasticsearchDomainsRequest(input *Descri return } +// DescribeElasticsearchDomains API operation for Amazon Elasticsearch Service. +// // Returns domain configuration information about the specified Elasticsearch // domains, including the domain ID, domain endpoint, and domain ARN. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Elasticsearch Service's +// API operation, DescribeElasticsearchDomains for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// BaseException +// InternalException +// ValidationException func (c *ElasticsearchService) DescribeElasticsearchDomains(input *DescribeElasticsearchDomainsInput) (*DescribeElasticsearchDomainsOutput, error) { req, out := c.DescribeElasticsearchDomainsRequest(input) err := req.Send() @@ -354,8 +458,23 @@ func (c *ElasticsearchService) ListDomainNamesRequest(input *ListDomainNamesInpu return } +// ListDomainNames API operation for Amazon Elasticsearch Service. +// // Returns the name of all Elasticsearch domains owned by the current user's // account. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Elasticsearch Service's +// API operation, ListDomainNames for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// BaseException +// ValidationException func (c *ElasticsearchService) ListDomainNames(input *ListDomainNamesInput) (*ListDomainNamesOutput, error) { req, out := c.ListDomainNamesRequest(input) err := req.Send() @@ -403,7 +522,24 @@ func (c *ElasticsearchService) ListTagsRequest(input *ListTagsInput) (req *reque return } +// ListTags API operation for Amazon Elasticsearch Service. +// // Returns all tags for the given Elasticsearch domain. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Elasticsearch Service's +// API operation, ListTags for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// BaseException +// ResourceNotFoundException +// ValidationException +// InternalException func (c *ElasticsearchService) ListTags(input *ListTagsInput) (*ListTagsOutput, error) { req, out := c.ListTagsRequest(input) err := req.Send() @@ -453,7 +589,23 @@ func (c *ElasticsearchService) RemoveTagsRequest(input *RemoveTagsInput) (req *r return } +// RemoveTags API operation for Amazon Elasticsearch Service. +// // Removes the specified set of tags from the specified Elasticsearch domain. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Elasticsearch Service's +// API operation, RemoveTags for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// BaseException +// ValidationException +// InternalException func (c *ElasticsearchService) RemoveTags(input *RemoveTagsInput) (*RemoveTagsOutput, error) { req, out := c.RemoveTagsRequest(input) err := req.Send() @@ -501,8 +653,27 @@ func (c *ElasticsearchService) UpdateElasticsearchDomainConfigRequest(input *Upd return } +// UpdateElasticsearchDomainConfig API operation for Amazon Elasticsearch Service. +// // Modifies the cluster configuration of the specified Elasticsearch domain, // setting as setting the instance type and the number of instances. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Elasticsearch Service's +// API operation, UpdateElasticsearchDomainConfig for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// BaseException +// InternalException +// InvalidTypeException +// LimitExceededException +// ResourceNotFoundException +// ValidationException func (c *ElasticsearchService) UpdateElasticsearchDomainConfig(input *UpdateElasticsearchDomainConfigInput) (*UpdateElasticsearchDomainConfigOutput, error) { req, out := c.UpdateElasticsearchDomainConfigRequest(input) err := req.Send() diff --git a/service/elastictranscoder/api.go b/service/elastictranscoder/api.go index 11e1f75dbf9..08e99582a77 100644 --- a/service/elastictranscoder/api.go +++ b/service/elastictranscoder/api.go @@ -51,11 +51,30 @@ func (c *ElasticTranscoder) CancelJobRequest(input *CancelJobInput) (req *reques return } +// CancelJob API operation for Amazon Elastic Transcoder. +// // The CancelJob operation cancels an unfinished job. // // You can only cancel a job that has a status of Submitted. To prevent a pipeline // from starting to process a job while you're getting the job identifier, use // UpdatePipelineStatus to temporarily pause the pipeline. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Elastic Transcoder's +// API operation, CancelJob for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ValidationException +// IncompatibleVersionException +// ResourceNotFoundException +// ResourceInUseException +// AccessDeniedException +// InternalServiceException func (c *ElasticTranscoder) CancelJob(input *CancelJobInput) (*CancelJobOutput, error) { req, out := c.CancelJobRequest(input) err := req.Send() @@ -103,6 +122,8 @@ func (c *ElasticTranscoder) CreateJobRequest(input *CreateJobInput) (req *reques return } +// CreateJob API operation for Amazon Elastic Transcoder. +// // When you create a job, Elastic Transcoder returns JSON data that includes // the values that you specified plus information about the job that is created. // @@ -110,6 +131,23 @@ func (c *ElasticTranscoder) CreateJobRequest(input *CreateJobInput) (req *reques // output for the Kindle Fire and another output for the Apple iPhone 4s), you // currently must use the Elastic Transcoder API to list the jobs (as opposed // to the AWS Console). +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Elastic Transcoder's +// API operation, CreateJob for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ValidationException +// IncompatibleVersionException +// ResourceNotFoundException +// AccessDeniedException +// LimitExceededException +// InternalServiceException func (c *ElasticTranscoder) CreateJob(input *CreateJobInput) (*CreateJobResponse, error) { req, out := c.CreateJobRequest(input) err := req.Send() @@ -157,7 +195,26 @@ func (c *ElasticTranscoder) CreatePipelineRequest(input *CreatePipelineInput) (r return } +// CreatePipeline API operation for Amazon Elastic Transcoder. +// // The CreatePipeline operation creates a pipeline with settings that you specify. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Elastic Transcoder's +// API operation, CreatePipeline for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ValidationException +// IncompatibleVersionException +// AccessDeniedException +// ResourceNotFoundException +// LimitExceededException +// InternalServiceException func (c *ElasticTranscoder) CreatePipeline(input *CreatePipelineInput) (*CreatePipelineOutput, error) { req, out := c.CreatePipelineRequest(input) err := req.Send() @@ -205,6 +262,8 @@ func (c *ElasticTranscoder) CreatePresetRequest(input *CreatePresetInput) (req * return } +// CreatePreset API operation for Amazon Elastic Transcoder. +// // The CreatePreset operation creates a preset with settings that you specify. // // Elastic Transcoder checks the CreatePreset settings to ensure that they @@ -220,6 +279,22 @@ func (c *ElasticTranscoder) CreatePresetRequest(input *CreatePresetInput) (req * // more information, see the International Telecommunication Union publication // Recommendation ITU-T H.264: Advanced video coding for generic audiovisual // services. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Elastic Transcoder's +// API operation, CreatePreset for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ValidationException +// IncompatibleVersionException +// AccessDeniedException +// LimitExceededException +// InternalServiceException func (c *ElasticTranscoder) CreatePreset(input *CreatePresetInput) (*CreatePresetOutput, error) { req, out := c.CreatePresetRequest(input) err := req.Send() @@ -267,11 +342,30 @@ func (c *ElasticTranscoder) DeletePipelineRequest(input *DeletePipelineInput) (r return } +// DeletePipeline API operation for Amazon Elastic Transcoder. +// // The DeletePipeline operation removes a pipeline. // // You can only delete a pipeline that has never been used or that is not // currently in use (doesn't contain any active jobs). If the pipeline is currently // in use, DeletePipeline returns an error. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Elastic Transcoder's +// API operation, DeletePipeline for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ValidationException +// IncompatibleVersionException +// ResourceNotFoundException +// ResourceInUseException +// AccessDeniedException +// InternalServiceException func (c *ElasticTranscoder) DeletePipeline(input *DeletePipelineInput) (*DeletePipelineOutput, error) { req, out := c.DeletePipelineRequest(input) err := req.Send() @@ -319,9 +413,27 @@ func (c *ElasticTranscoder) DeletePresetRequest(input *DeletePresetInput) (req * return } +// DeletePreset API operation for Amazon Elastic Transcoder. +// // The DeletePreset operation removes a preset that you've added in an AWS region. // // You can't delete the default presets that are included with Elastic Transcoder. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Elastic Transcoder's +// API operation, DeletePreset for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ValidationException +// IncompatibleVersionException +// ResourceNotFoundException +// AccessDeniedException +// InternalServiceException func (c *ElasticTranscoder) DeletePreset(input *DeletePresetInput) (*DeletePresetOutput, error) { req, out := c.DeletePresetRequest(input) err := req.Send() @@ -375,11 +487,29 @@ func (c *ElasticTranscoder) ListJobsByPipelineRequest(input *ListJobsByPipelineI return } +// ListJobsByPipeline API operation for Amazon Elastic Transcoder. +// // The ListJobsByPipeline operation gets a list of the jobs currently in a pipeline. // // Elastic Transcoder returns all of the jobs currently in the specified pipeline. // The response body contains one element for each job that satisfies the search // criteria. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Elastic Transcoder's +// API operation, ListJobsByPipeline for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ValidationException +// IncompatibleVersionException +// ResourceNotFoundException +// AccessDeniedException +// InternalServiceException func (c *ElasticTranscoder) ListJobsByPipeline(input *ListJobsByPipelineInput) (*ListJobsByPipelineOutput, error) { req, out := c.ListJobsByPipelineRequest(input) err := req.Send() @@ -458,9 +588,27 @@ func (c *ElasticTranscoder) ListJobsByStatusRequest(input *ListJobsByStatusInput return } +// ListJobsByStatus API operation for Amazon Elastic Transcoder. +// // The ListJobsByStatus operation gets a list of jobs that have a specified // status. The response body contains one element for each job that satisfies // the search criteria. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Elastic Transcoder's +// API operation, ListJobsByStatus for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ValidationException +// IncompatibleVersionException +// ResourceNotFoundException +// AccessDeniedException +// InternalServiceException func (c *ElasticTranscoder) ListJobsByStatus(input *ListJobsByStatusInput) (*ListJobsByStatusOutput, error) { req, out := c.ListJobsByStatusRequest(input) err := req.Send() @@ -539,8 +687,25 @@ func (c *ElasticTranscoder) ListPipelinesRequest(input *ListPipelinesInput) (req return } +// ListPipelines API operation for Amazon Elastic Transcoder. +// // The ListPipelines operation gets a list of the pipelines associated with // the current AWS account. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Elastic Transcoder's +// API operation, ListPipelines for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ValidationException +// IncompatibleVersionException +// AccessDeniedException +// InternalServiceException func (c *ElasticTranscoder) ListPipelines(input *ListPipelinesInput) (*ListPipelinesOutput, error) { req, out := c.ListPipelinesRequest(input) err := req.Send() @@ -619,8 +784,25 @@ func (c *ElasticTranscoder) ListPresetsRequest(input *ListPresetsInput) (req *re return } +// ListPresets API operation for Amazon Elastic Transcoder. +// // The ListPresets operation gets a list of the default presets included with // Elastic Transcoder and the presets that you've added in an AWS region. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Elastic Transcoder's +// API operation, ListPresets for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ValidationException +// IncompatibleVersionException +// AccessDeniedException +// InternalServiceException func (c *ElasticTranscoder) ListPresets(input *ListPresetsInput) (*ListPresetsOutput, error) { req, out := c.ListPresetsRequest(input) err := req.Send() @@ -693,7 +875,25 @@ func (c *ElasticTranscoder) ReadJobRequest(input *ReadJobInput) (req *request.Re return } +// ReadJob API operation for Amazon Elastic Transcoder. +// // The ReadJob operation returns detailed information about a job. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Elastic Transcoder's +// API operation, ReadJob for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ValidationException +// IncompatibleVersionException +// ResourceNotFoundException +// AccessDeniedException +// InternalServiceException func (c *ElasticTranscoder) ReadJob(input *ReadJobInput) (*ReadJobOutput, error) { req, out := c.ReadJobRequest(input) err := req.Send() @@ -741,7 +941,25 @@ func (c *ElasticTranscoder) ReadPipelineRequest(input *ReadPipelineInput) (req * return } +// ReadPipeline API operation for Amazon Elastic Transcoder. +// // The ReadPipeline operation gets detailed information about a pipeline. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Elastic Transcoder's +// API operation, ReadPipeline for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ValidationException +// IncompatibleVersionException +// ResourceNotFoundException +// AccessDeniedException +// InternalServiceException func (c *ElasticTranscoder) ReadPipeline(input *ReadPipelineInput) (*ReadPipelineOutput, error) { req, out := c.ReadPipelineRequest(input) err := req.Send() @@ -789,7 +1007,25 @@ func (c *ElasticTranscoder) ReadPresetRequest(input *ReadPresetInput) (req *requ return } +// ReadPreset API operation for Amazon Elastic Transcoder. +// // The ReadPreset operation gets detailed information about a preset. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Elastic Transcoder's +// API operation, ReadPreset for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ValidationException +// IncompatibleVersionException +// ResourceNotFoundException +// AccessDeniedException +// InternalServiceException func (c *ElasticTranscoder) ReadPreset(input *ReadPresetInput) (*ReadPresetOutput, error) { req, out := c.ReadPresetRequest(input) err := req.Send() @@ -837,6 +1073,8 @@ func (c *ElasticTranscoder) TestRoleRequest(input *TestRoleInput) (req *request. return } +// TestRole API operation for Amazon Elastic Transcoder. +// // The TestRole operation tests the IAM role used to create the pipeline. // // The TestRole action lets you determine whether the IAM role you are using @@ -844,6 +1082,22 @@ func (c *ElasticTranscoder) TestRoleRequest(input *TestRoleInput) (req *request. // with the transcoding process. The action attempts to assume the specified // IAM role, checks read access to the input and output buckets, and tries to // send a test notification to Amazon SNS topics that you specify. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Elastic Transcoder's +// API operation, TestRole for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ValidationException +// IncompatibleVersionException +// ResourceNotFoundException +// AccessDeniedException +// InternalServiceException func (c *ElasticTranscoder) TestRole(input *TestRoleInput) (*TestRoleOutput, error) { req, out := c.TestRoleRequest(input) err := req.Send() @@ -891,11 +1145,30 @@ func (c *ElasticTranscoder) UpdatePipelineRequest(input *UpdatePipelineInput) (r return } +// UpdatePipeline API operation for Amazon Elastic Transcoder. +// // Use the UpdatePipeline operation to update settings for a pipeline. When // you change pipeline settings, your changes take effect immediately. Jobs // that you have already submitted and that Elastic Transcoder has not started // to process are affected in addition to jobs that you submit after you change // settings. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Elastic Transcoder's +// API operation, UpdatePipeline for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ValidationException +// IncompatibleVersionException +// AccessDeniedException +// ResourceInUseException +// ResourceNotFoundException +// InternalServiceException func (c *ElasticTranscoder) UpdatePipeline(input *UpdatePipelineInput) (*UpdatePipelineOutput, error) { req, out := c.UpdatePipelineRequest(input) err := req.Send() @@ -943,11 +1216,30 @@ func (c *ElasticTranscoder) UpdatePipelineNotificationsRequest(input *UpdatePipe return } +// UpdatePipelineNotifications API operation for Amazon Elastic Transcoder. +// // With the UpdatePipelineNotifications operation, you can update Amazon Simple // Notification Service (Amazon SNS) notifications for a pipeline. // // When you update notifications for a pipeline, Elastic Transcoder returns // the values that you specified in the request. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Elastic Transcoder's +// API operation, UpdatePipelineNotifications for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ValidationException +// IncompatibleVersionException +// ResourceNotFoundException +// ResourceInUseException +// AccessDeniedException +// InternalServiceException func (c *ElasticTranscoder) UpdatePipelineNotifications(input *UpdatePipelineNotificationsInput) (*UpdatePipelineNotificationsOutput, error) { req, out := c.UpdatePipelineNotificationsRequest(input) err := req.Send() @@ -995,6 +1287,8 @@ func (c *ElasticTranscoder) UpdatePipelineStatusRequest(input *UpdatePipelineSta return } +// UpdatePipelineStatus API operation for Amazon Elastic Transcoder. +// // The UpdatePipelineStatus operation pauses or reactivates a pipeline, so that // the pipeline stops or restarts the processing of jobs. // @@ -1003,6 +1297,23 @@ func (c *ElasticTranscoder) UpdatePipelineStatusRequest(input *UpdatePipelineSta // them; if you pause the pipeline to which you submitted the jobs, you have // more time to get the job IDs for the jobs that you want to cancel, and to // send a CancelJob request. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Elastic Transcoder's +// API operation, UpdatePipelineStatus for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ValidationException +// IncompatibleVersionException +// ResourceNotFoundException +// ResourceInUseException +// AccessDeniedException +// InternalServiceException func (c *ElasticTranscoder) UpdatePipelineStatus(input *UpdatePipelineStatusInput) (*UpdatePipelineStatusOutput, error) { req, out := c.UpdatePipelineStatusRequest(input) err := req.Send() diff --git a/service/elb/api.go b/service/elb/api.go index 786e3d289e1..fcf1a7e3f80 100644 --- a/service/elb/api.go +++ b/service/elb/api.go @@ -52,6 +52,8 @@ func (c *ELB) AddTagsRequest(input *AddTagsInput) (req *request.Request, output return } +// AddTags API operation for Elastic Load Balancing. +// // Adds the specified tags to the specified load balancer. Each load balancer // can have a maximum of 10 tags. // @@ -60,6 +62,20 @@ func (c *ELB) AddTagsRequest(input *AddTagsInput) (req *request.Request, output // // For more information, see Tag Your Classic Load Balancer (http://docs.aws.amazon.com/elasticloadbalancing/latest/classic/add-remove-tags.html) // in the Classic Load Balancers Guide. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Elastic Load Balancing's +// API operation, AddTags for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// AccessPointNotFoundException +// TooManyTagsException +// DuplicateTagKeysException func (c *ELB) AddTags(input *AddTagsInput) (*AddTagsOutput, error) { req, out := c.AddTagsRequest(input) err := req.Send() @@ -107,12 +123,28 @@ func (c *ELB) ApplySecurityGroupsToLoadBalancerRequest(input *ApplySecurityGroup return } +// ApplySecurityGroupsToLoadBalancer API operation for Elastic Load Balancing. +// // Associates one or more security groups with your load balancer in a virtual // private cloud (VPC). The specified security groups override the previously // associated security groups. // // For more information, see Security Groups for Load Balancers in a VPC (http://docs.aws.amazon.com/elasticloadbalancing/latest/classic/elb-security-groups.html#elb-vpc-security-groups) // in the Classic Load Balancers Guide. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Elastic Load Balancing's +// API operation, ApplySecurityGroupsToLoadBalancer for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// AccessPointNotFoundException +// InvalidConfigurationRequestException +// InvalidSecurityGroupException func (c *ELB) ApplySecurityGroupsToLoadBalancer(input *ApplySecurityGroupsToLoadBalancerInput) (*ApplySecurityGroupsToLoadBalancerOutput, error) { req, out := c.ApplySecurityGroupsToLoadBalancerRequest(input) err := req.Send() @@ -160,6 +192,8 @@ func (c *ELB) AttachLoadBalancerToSubnetsRequest(input *AttachLoadBalancerToSubn return } +// AttachLoadBalancerToSubnets API operation for Elastic Load Balancing. +// // Adds one or more subnets to the set of configured subnets for the specified // load balancer. // @@ -167,6 +201,21 @@ func (c *ELB) AttachLoadBalancerToSubnetsRequest(input *AttachLoadBalancerToSubn // For more information, see Add or Remove Subnets for Your Load Balancer in // a VPC (http://docs.aws.amazon.com/elasticloadbalancing/latest/classic/elb-manage-subnets.html) // in the Classic Load Balancers Guide. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Elastic Load Balancing's +// API operation, AttachLoadBalancerToSubnets for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// AccessPointNotFoundException +// InvalidConfigurationRequestException +// SubnetNotFoundException +// InvalidSubnetException func (c *ELB) AttachLoadBalancerToSubnets(input *AttachLoadBalancerToSubnetsInput) (*AttachLoadBalancerToSubnetsOutput, error) { req, out := c.AttachLoadBalancerToSubnetsRequest(input) err := req.Send() @@ -214,12 +263,26 @@ func (c *ELB) ConfigureHealthCheckRequest(input *ConfigureHealthCheckInput) (req return } +// ConfigureHealthCheck API operation for Elastic Load Balancing. +// // Specifies the health check settings to use when evaluating the health state // of your EC2 instances. // // For more information, see Configure Health Checks for Your Load Balancer // (http://docs.aws.amazon.com/elasticloadbalancing/latest/classic/elb-healthchecks.html) // in the Classic Load Balancers Guide. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Elastic Load Balancing's +// API operation, ConfigureHealthCheck for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// AccessPointNotFoundException func (c *ELB) ConfigureHealthCheck(input *ConfigureHealthCheckInput) (*ConfigureHealthCheckOutput, error) { req, out := c.ConfigureHealthCheckRequest(input) err := req.Send() @@ -267,6 +330,8 @@ func (c *ELB) CreateAppCookieStickinessPolicyRequest(input *CreateAppCookieStick return } +// CreateAppCookieStickinessPolicy API operation for Elastic Load Balancing. +// // Generates a stickiness policy with sticky session lifetimes that follow that // of an application-generated cookie. This policy can be associated only with // HTTP/HTTPS listeners. @@ -282,6 +347,21 @@ func (c *ELB) CreateAppCookieStickinessPolicyRequest(input *CreateAppCookieStick // // For more information, see Application-Controlled Session Stickiness (http://docs.aws.amazon.com/elasticloadbalancing/latest/classic/elb-sticky-sessions.html#enable-sticky-sessions-application) // in the Classic Load Balancers Guide. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Elastic Load Balancing's +// API operation, CreateAppCookieStickinessPolicy for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// AccessPointNotFoundException +// DuplicatePolicyNameException +// TooManyPoliciesException +// InvalidConfigurationRequestException func (c *ELB) CreateAppCookieStickinessPolicy(input *CreateAppCookieStickinessPolicyInput) (*CreateAppCookieStickinessPolicyOutput, error) { req, out := c.CreateAppCookieStickinessPolicyRequest(input) err := req.Send() @@ -329,6 +409,8 @@ func (c *ELB) CreateLBCookieStickinessPolicyRequest(input *CreateLBCookieStickin return } +// CreateLBCookieStickinessPolicy API operation for Elastic Load Balancing. +// // Generates a stickiness policy with sticky session lifetimes controlled by // the lifetime of the browser (user-agent) or a specified expiration period. // This policy can be associated only with HTTP/HTTPS listeners. @@ -346,6 +428,21 @@ func (c *ELB) CreateLBCookieStickinessPolicyRequest(input *CreateLBCookieStickin // // For more information, see Duration-Based Session Stickiness (http://docs.aws.amazon.com/elasticloadbalancing/latest/classic/elb-sticky-sessions.html#enable-sticky-sessions-duration) // in the Classic Load Balancers Guide. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Elastic Load Balancing's +// API operation, CreateLBCookieStickinessPolicy for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// AccessPointNotFoundException +// DuplicatePolicyNameException +// TooManyPoliciesException +// InvalidConfigurationRequestException func (c *ELB) CreateLBCookieStickinessPolicy(input *CreateLBCookieStickinessPolicyInput) (*CreateLBCookieStickinessPolicyOutput, error) { req, out := c.CreateLBCookieStickinessPolicyRequest(input) err := req.Send() @@ -393,6 +490,8 @@ func (c *ELB) CreateLoadBalancerRequest(input *CreateLoadBalancerInput) (req *re return } +// CreateLoadBalancer API operation for Elastic Load Balancing. +// // Creates a Classic load balancer. // // You can add listeners, security groups, subnets, and tags when you create @@ -406,6 +505,28 @@ func (c *ELB) CreateLoadBalancerRequest(input *CreateLoadBalancerInput) (req *re // an increase for the number of load balancers for your account. For more information, // see Limits for Your Classic Load Balancer (http://docs.aws.amazon.com/elasticloadbalancing/latest/classic/elb-limits.html) // in the Classic Load Balancers Guide. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Elastic Load Balancing's +// API operation, CreateLoadBalancer for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// DuplicateAccessPointNameException +// TooManyAccessPointsException +// CertificateNotFoundException +// InvalidConfigurationRequestException +// SubnetNotFoundException +// InvalidSubnetException +// InvalidSecurityGroupException +// InvalidSchemeException +// TooManyTagsException +// DuplicateTagKeysException +// UnsupportedProtocolException func (c *ELB) CreateLoadBalancer(input *CreateLoadBalancerInput) (*CreateLoadBalancerOutput, error) { req, out := c.CreateLoadBalancerRequest(input) err := req.Send() @@ -453,6 +574,8 @@ func (c *ELB) CreateLoadBalancerListenersRequest(input *CreateLoadBalancerListen return } +// CreateLoadBalancerListeners API operation for Elastic Load Balancing. +// // Creates one or more listeners for the specified load balancer. If a listener // with the specified port does not already exist, it is created; otherwise, // the properties of the new listener must match the properties of the existing @@ -460,6 +583,22 @@ func (c *ELB) CreateLoadBalancerListenersRequest(input *CreateLoadBalancerListen // // For more information, see Listeners for Your Classic Load Balancer (http://docs.aws.amazon.com/elasticloadbalancing/latest/classic/elb-listener-config.html) // in the Classic Load Balancers Guide. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Elastic Load Balancing's +// API operation, CreateLoadBalancerListeners for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// AccessPointNotFoundException +// DuplicateListenerException +// CertificateNotFoundException +// InvalidConfigurationRequestException +// UnsupportedProtocolException func (c *ELB) CreateLoadBalancerListeners(input *CreateLoadBalancerListenersInput) (*CreateLoadBalancerListenersOutput, error) { req, out := c.CreateLoadBalancerListenersRequest(input) err := req.Send() @@ -507,11 +646,29 @@ func (c *ELB) CreateLoadBalancerPolicyRequest(input *CreateLoadBalancerPolicyInp return } +// CreateLoadBalancerPolicy API operation for Elastic Load Balancing. +// // Creates a policy with the specified attributes for the specified load balancer. // // Policies are settings that are saved for your load balancer and that can // be applied to the listener or the application server, depending on the policy // type. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Elastic Load Balancing's +// API operation, CreateLoadBalancerPolicy for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// AccessPointNotFoundException +// PolicyTypeNotFoundException +// DuplicatePolicyNameException +// TooManyPoliciesException +// InvalidConfigurationRequestException func (c *ELB) CreateLoadBalancerPolicy(input *CreateLoadBalancerPolicyInput) (*CreateLoadBalancerPolicyOutput, error) { req, out := c.CreateLoadBalancerPolicyRequest(input) err := req.Send() @@ -559,6 +716,8 @@ func (c *ELB) DeleteLoadBalancerRequest(input *DeleteLoadBalancerInput) (req *re return } +// DeleteLoadBalancer API operation for Elastic Load Balancing. +// // Deletes the specified load balancer. // // If you are attempting to recreate a load balancer, you must reconfigure @@ -569,6 +728,14 @@ func (c *ELB) DeleteLoadBalancerRequest(input *DeleteLoadBalancerInput) (req *re // // If the load balancer does not exist or has already been deleted, the call // to DeleteLoadBalancer still succeeds. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Elastic Load Balancing's +// API operation, DeleteLoadBalancer for more information, and other errors +// that the API operation could return. func (c *ELB) DeleteLoadBalancer(input *DeleteLoadBalancerInput) (*DeleteLoadBalancerOutput, error) { req, out := c.DeleteLoadBalancerRequest(input) err := req.Send() @@ -616,7 +783,21 @@ func (c *ELB) DeleteLoadBalancerListenersRequest(input *DeleteLoadBalancerListen return } +// DeleteLoadBalancerListeners API operation for Elastic Load Balancing. +// // Deletes the specified listeners from the specified load balancer. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Elastic Load Balancing's +// API operation, DeleteLoadBalancerListeners for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// AccessPointNotFoundException func (c *ELB) DeleteLoadBalancerListeners(input *DeleteLoadBalancerListenersInput) (*DeleteLoadBalancerListenersOutput, error) { req, out := c.DeleteLoadBalancerListenersRequest(input) err := req.Send() @@ -664,8 +845,23 @@ func (c *ELB) DeleteLoadBalancerPolicyRequest(input *DeleteLoadBalancerPolicyInp return } +// DeleteLoadBalancerPolicy API operation for Elastic Load Balancing. +// // Deletes the specified policy from the specified load balancer. This policy // must not be enabled for any listeners. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Elastic Load Balancing's +// API operation, DeleteLoadBalancerPolicy for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// AccessPointNotFoundException +// InvalidConfigurationRequestException func (c *ELB) DeleteLoadBalancerPolicy(input *DeleteLoadBalancerPolicyInput) (*DeleteLoadBalancerPolicyOutput, error) { req, out := c.DeleteLoadBalancerPolicyRequest(input) err := req.Send() @@ -713,6 +909,8 @@ func (c *ELB) DeregisterInstancesFromLoadBalancerRequest(input *DeregisterInstan return } +// DeregisterInstancesFromLoadBalancer API operation for Elastic Load Balancing. +// // Deregisters the specified instances from the specified load balancer. After // the instance is deregistered, it no longer receives traffic from the load // balancer. @@ -722,6 +920,19 @@ func (c *ELB) DeregisterInstancesFromLoadBalancerRequest(input *DeregisterInstan // // For more information, see Register or De-Register EC2 Instances (http://docs.aws.amazon.com/elasticloadbalancing/latest/classic/elb-deregister-register-instances.html) // in the Classic Load Balancers Guide. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Elastic Load Balancing's +// API operation, DeregisterInstancesFromLoadBalancer for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// AccessPointNotFoundException +// InvalidEndPointException func (c *ELB) DeregisterInstancesFromLoadBalancer(input *DeregisterInstancesFromLoadBalancerInput) (*DeregisterInstancesFromLoadBalancerOutput, error) { req, out := c.DeregisterInstancesFromLoadBalancerRequest(input) err := req.Send() @@ -769,12 +980,27 @@ func (c *ELB) DescribeInstanceHealthRequest(input *DescribeInstanceHealthInput) return } +// DescribeInstanceHealth API operation for Elastic Load Balancing. +// // Describes the state of the specified instances with respect to the specified // load balancer. If no instances are specified, the call describes the state // of all instances that are currently registered with the load balancer. If // instances are specified, their state is returned even if they are no longer // registered with the load balancer. The state of terminated instances is not // returned. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Elastic Load Balancing's +// API operation, DescribeInstanceHealth for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// AccessPointNotFoundException +// InvalidEndPointException func (c *ELB) DescribeInstanceHealth(input *DescribeInstanceHealthInput) (*DescribeInstanceHealthOutput, error) { req, out := c.DescribeInstanceHealthRequest(input) err := req.Send() @@ -822,7 +1048,22 @@ func (c *ELB) DescribeLoadBalancerAttributesRequest(input *DescribeLoadBalancerA return } +// DescribeLoadBalancerAttributes API operation for Elastic Load Balancing. +// // Describes the attributes for the specified load balancer. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Elastic Load Balancing's +// API operation, DescribeLoadBalancerAttributes for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// AccessPointNotFoundException +// LoadBalancerAttributeNotFoundException func (c *ELB) DescribeLoadBalancerAttributes(input *DescribeLoadBalancerAttributesInput) (*DescribeLoadBalancerAttributesOutput, error) { req, out := c.DescribeLoadBalancerAttributesRequest(input) err := req.Send() @@ -870,6 +1111,8 @@ func (c *ELB) DescribeLoadBalancerPoliciesRequest(input *DescribeLoadBalancerPol return } +// DescribeLoadBalancerPolicies API operation for Elastic Load Balancing. +// // Describes the specified policies. // // If you specify a load balancer name, the action returns the descriptions @@ -878,6 +1121,19 @@ func (c *ELB) DescribeLoadBalancerPoliciesRequest(input *DescribeLoadBalancerPol // that policy. If you don't specify a load balancer name, the action returns // descriptions of the specified sample policies, or descriptions of all sample // policies. The names of the sample policies have the ELBSample- prefix. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Elastic Load Balancing's +// API operation, DescribeLoadBalancerPolicies for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// AccessPointNotFoundException +// PolicyNotFoundException func (c *ELB) DescribeLoadBalancerPolicies(input *DescribeLoadBalancerPoliciesInput) (*DescribeLoadBalancerPoliciesOutput, error) { req, out := c.DescribeLoadBalancerPoliciesRequest(input) err := req.Send() @@ -925,6 +1181,8 @@ func (c *ELB) DescribeLoadBalancerPolicyTypesRequest(input *DescribeLoadBalancer return } +// DescribeLoadBalancerPolicyTypes API operation for Elastic Load Balancing. +// // Describes the specified load balancer policy types or all load balancer policy // types. // @@ -937,6 +1195,18 @@ func (c *ELB) DescribeLoadBalancerPolicyTypesRequest(input *DescribeLoadBalancer // any of these policy types. Then, depending on the policy type, use either // SetLoadBalancerPoliciesOfListener or SetLoadBalancerPoliciesForBackendServer // to set the policy. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Elastic Load Balancing's +// API operation, DescribeLoadBalancerPolicyTypes for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// PolicyTypeNotFoundException func (c *ELB) DescribeLoadBalancerPolicyTypes(input *DescribeLoadBalancerPolicyTypesInput) (*DescribeLoadBalancerPolicyTypesOutput, error) { req, out := c.DescribeLoadBalancerPolicyTypesRequest(input) err := req.Send() @@ -990,8 +1260,23 @@ func (c *ELB) DescribeLoadBalancersRequest(input *DescribeLoadBalancersInput) (r return } +// DescribeLoadBalancers API operation for Elastic Load Balancing. +// // Describes the specified the load balancers. If no load balancers are specified, // the call describes all of your load balancers. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Elastic Load Balancing's +// API operation, DescribeLoadBalancers for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// AccessPointNotFoundException +// DependencyThrottleException func (c *ELB) DescribeLoadBalancers(input *DescribeLoadBalancersInput) (*DescribeLoadBalancersOutput, error) { req, out := c.DescribeLoadBalancersRequest(input) err := req.Send() @@ -1064,7 +1349,21 @@ func (c *ELB) DescribeTagsRequest(input *DescribeTagsInput) (req *request.Reques return } +// DescribeTags API operation for Elastic Load Balancing. +// // Describes the tags associated with the specified load balancers. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Elastic Load Balancing's +// API operation, DescribeTags for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// AccessPointNotFoundException func (c *ELB) DescribeTags(input *DescribeTagsInput) (*DescribeTagsOutput, error) { req, out := c.DescribeTagsRequest(input) err := req.Send() @@ -1112,12 +1411,27 @@ func (c *ELB) DetachLoadBalancerFromSubnetsRequest(input *DetachLoadBalancerFrom return } +// DetachLoadBalancerFromSubnets API operation for Elastic Load Balancing. +// // Removes the specified subnets from the set of configured subnets for the // load balancer. // // After a subnet is removed, all EC2 instances registered with the load balancer // in the removed subnet go into the OutOfService state. Then, the load balancer // balances the traffic among the remaining routable subnets. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Elastic Load Balancing's +// API operation, DetachLoadBalancerFromSubnets for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// AccessPointNotFoundException +// InvalidConfigurationRequestException func (c *ELB) DetachLoadBalancerFromSubnets(input *DetachLoadBalancerFromSubnetsInput) (*DetachLoadBalancerFromSubnetsOutput, error) { req, out := c.DetachLoadBalancerFromSubnetsRequest(input) err := req.Send() @@ -1165,6 +1479,8 @@ func (c *ELB) DisableAvailabilityZonesForLoadBalancerRequest(input *DisableAvail return } +// DisableAvailabilityZonesForLoadBalancer API operation for Elastic Load Balancing. +// // Removes the specified Availability Zones from the set of Availability Zones // for the specified load balancer. // @@ -1176,6 +1492,19 @@ func (c *ELB) DisableAvailabilityZonesForLoadBalancerRequest(input *DisableAvail // // For more information, see Add or Remove Availability Zones (http://docs.aws.amazon.com/elasticloadbalancing/latest/classic/enable-disable-az.html) // in the Classic Load Balancers Guide. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Elastic Load Balancing's +// API operation, DisableAvailabilityZonesForLoadBalancer for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// AccessPointNotFoundException +// InvalidConfigurationRequestException func (c *ELB) DisableAvailabilityZonesForLoadBalancer(input *DisableAvailabilityZonesForLoadBalancerInput) (*DisableAvailabilityZonesForLoadBalancerOutput, error) { req, out := c.DisableAvailabilityZonesForLoadBalancerRequest(input) err := req.Send() @@ -1223,6 +1552,8 @@ func (c *ELB) EnableAvailabilityZonesForLoadBalancerRequest(input *EnableAvailab return } +// EnableAvailabilityZonesForLoadBalancer API operation for Elastic Load Balancing. +// // Adds the specified Availability Zones to the set of Availability Zones for // the specified load balancer. // @@ -1231,6 +1562,18 @@ func (c *ELB) EnableAvailabilityZonesForLoadBalancerRequest(input *EnableAvailab // // For more information, see Add or Remove Availability Zones (http://docs.aws.amazon.com/elasticloadbalancing/latest/classic/enable-disable-az.html) // in the Classic Load Balancers Guide. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Elastic Load Balancing's +// API operation, EnableAvailabilityZonesForLoadBalancer for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// AccessPointNotFoundException func (c *ELB) EnableAvailabilityZonesForLoadBalancer(input *EnableAvailabilityZonesForLoadBalancerInput) (*EnableAvailabilityZonesForLoadBalancerOutput, error) { req, out := c.EnableAvailabilityZonesForLoadBalancerRequest(input) err := req.Send() @@ -1278,6 +1621,8 @@ func (c *ELB) ModifyLoadBalancerAttributesRequest(input *ModifyLoadBalancerAttri return } +// ModifyLoadBalancerAttributes API operation for Elastic Load Balancing. +// // Modifies the attributes of the specified load balancer. // // You can modify the load balancer attributes, such as AccessLogs, ConnectionDraining, @@ -1294,6 +1639,20 @@ func (c *ELB) ModifyLoadBalancerAttributesRequest(input *ModifyLoadBalancerAttri // Access Logs (http://docs.aws.amazon.com/elasticloadbalancing/latest/classic/access-log-collection.html) // // Idle Connection Timeout (http://docs.aws.amazon.com/elasticloadbalancing/latest/classic/config-idle-timeout.html) +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Elastic Load Balancing's +// API operation, ModifyLoadBalancerAttributes for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// AccessPointNotFoundException +// LoadBalancerAttributeNotFoundException +// InvalidConfigurationRequestException func (c *ELB) ModifyLoadBalancerAttributes(input *ModifyLoadBalancerAttributesInput) (*ModifyLoadBalancerAttributesOutput, error) { req, out := c.ModifyLoadBalancerAttributesRequest(input) err := req.Send() @@ -1341,6 +1700,8 @@ func (c *ELB) RegisterInstancesWithLoadBalancerRequest(input *RegisterInstancesW return } +// RegisterInstancesWithLoadBalancer API operation for Elastic Load Balancing. +// // Adds the specified instances to the specified load balancer. // // The instance must be a running instance in the same network as the load @@ -1364,6 +1725,19 @@ func (c *ELB) RegisterInstancesWithLoadBalancerRequest(input *RegisterInstancesW // // For more information, see Register or De-Register EC2 Instances (http://docs.aws.amazon.com/elasticloadbalancing/latest/classic/elb-deregister-register-instances.html) // in the Classic Load Balancers Guide. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Elastic Load Balancing's +// API operation, RegisterInstancesWithLoadBalancer for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// AccessPointNotFoundException +// InvalidEndPointException func (c *ELB) RegisterInstancesWithLoadBalancer(input *RegisterInstancesWithLoadBalancerInput) (*RegisterInstancesWithLoadBalancerOutput, error) { req, out := c.RegisterInstancesWithLoadBalancerRequest(input) err := req.Send() @@ -1411,7 +1785,21 @@ func (c *ELB) RemoveTagsRequest(input *RemoveTagsInput) (req *request.Request, o return } +// RemoveTags API operation for Elastic Load Balancing. +// // Removes one or more tags from the specified load balancer. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Elastic Load Balancing's +// API operation, RemoveTags for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// AccessPointNotFoundException func (c *ELB) RemoveTags(input *RemoveTagsInput) (*RemoveTagsOutput, error) { req, out := c.RemoveTagsRequest(input) err := req.Send() @@ -1459,6 +1847,8 @@ func (c *ELB) SetLoadBalancerListenerSSLCertificateRequest(input *SetLoadBalance return } +// SetLoadBalancerListenerSSLCertificate API operation for Elastic Load Balancing. +// // Sets the certificate that terminates the specified listener's SSL connections. // The specified certificate replaces any prior certificate that was used on // the same load balancer and port. @@ -1466,6 +1856,22 @@ func (c *ELB) SetLoadBalancerListenerSSLCertificateRequest(input *SetLoadBalance // For more information about updating your SSL certificate, see Replace the // SSL Certificate for Your Load Balancer (http://docs.aws.amazon.com/elasticloadbalancing/latest/classic/elb-update-ssl-cert.html) // in the Classic Load Balancers Guide. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Elastic Load Balancing's +// API operation, SetLoadBalancerListenerSSLCertificate for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// CertificateNotFoundException +// AccessPointNotFoundException +// ListenerNotFoundException +// InvalidConfigurationRequestException +// UnsupportedProtocolException func (c *ELB) SetLoadBalancerListenerSSLCertificate(input *SetLoadBalancerListenerSSLCertificateInput) (*SetLoadBalancerListenerSSLCertificateOutput, error) { req, out := c.SetLoadBalancerListenerSSLCertificateRequest(input) err := req.Send() @@ -1513,6 +1919,8 @@ func (c *ELB) SetLoadBalancerPoliciesForBackendServerRequest(input *SetLoadBalan return } +// SetLoadBalancerPoliciesForBackendServer API operation for Elastic Load Balancing. +// // Replaces the set of policies associated with the specified port on which // the EC2 instance is listening with a new set of policies. At this time, only // the back-end server authentication policy type can be applied to the instance @@ -1530,6 +1938,20 @@ func (c *ELB) SetLoadBalancerPoliciesForBackendServerRequest(input *SetLoadBalan // in the Classic Load Balancers Guide. For more information about Proxy Protocol, // see Configure Proxy Protocol Support (http://docs.aws.amazon.com/elasticloadbalancing/latest/classic/enable-proxy-protocol.html) // in the Classic Load Balancers Guide. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Elastic Load Balancing's +// API operation, SetLoadBalancerPoliciesForBackendServer for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// AccessPointNotFoundException +// PolicyNotFoundException +// InvalidConfigurationRequestException func (c *ELB) SetLoadBalancerPoliciesForBackendServer(input *SetLoadBalancerPoliciesForBackendServerInput) (*SetLoadBalancerPoliciesForBackendServerOutput, error) { req, out := c.SetLoadBalancerPoliciesForBackendServerRequest(input) err := req.Send() @@ -1577,6 +1999,8 @@ func (c *ELB) SetLoadBalancerPoliciesOfListenerRequest(input *SetLoadBalancerPol return } +// SetLoadBalancerPoliciesOfListener API operation for Elastic Load Balancing. +// // Replaces the current set of policies for the specified load balancer port // with the specified set of policies. // @@ -1587,6 +2011,21 @@ func (c *ELB) SetLoadBalancerPoliciesOfListenerRequest(input *SetLoadBalancerPol // Duration-Based Session Stickiness (http://docs.aws.amazon.com/elasticloadbalancing/latest/classic/elb-sticky-sessions.html#enable-sticky-sessions-duration), // and Application-Controlled Session Stickiness (http://docs.aws.amazon.com/elasticloadbalancing/latest/classic/elb-sticky-sessions.html#enable-sticky-sessions-application) // in the Classic Load Balancers Guide. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Elastic Load Balancing's +// API operation, SetLoadBalancerPoliciesOfListener for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// AccessPointNotFoundException +// PolicyNotFoundException +// ListenerNotFoundException +// InvalidConfigurationRequestException func (c *ELB) SetLoadBalancerPoliciesOfListener(input *SetLoadBalancerPoliciesOfListenerInput) (*SetLoadBalancerPoliciesOfListenerOutput, error) { req, out := c.SetLoadBalancerPoliciesOfListenerRequest(input) err := req.Send() diff --git a/service/elbv2/api.go b/service/elbv2/api.go index 81aa7150eba..92f6efbf515 100644 --- a/service/elbv2/api.go +++ b/service/elbv2/api.go @@ -52,6 +52,8 @@ func (c *ELBV2) AddTagsRequest(input *AddTagsInput) (req *request.Request, outpu return } +// AddTags API operation for Elastic Load Balancing. +// // Adds the specified tags to the specified resource. You can tag your Application // load balancers and your target groups. // @@ -60,6 +62,21 @@ func (c *ELBV2) AddTagsRequest(input *AddTagsInput) (req *request.Request, outpu // // To list the current tags for your resources, use DescribeTags. To remove // tags from your resources, use RemoveTags. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Elastic Load Balancing's +// API operation, AddTags for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// DuplicateTagKeysException +// TooManyTagsException +// LoadBalancerNotFoundException +// TargetGroupNotFoundException func (c *ELBV2) AddTags(input *AddTagsInput) (*AddTagsOutput, error) { req, out := c.AddTagsRequest(input) err := req.Send() @@ -107,6 +124,8 @@ func (c *ELBV2) CreateListenerRequest(input *CreateListenerInput) (req *request. return } +// CreateListener API operation for Elastic Load Balancing. +// // Creates a listener for the specified Application load balancer. // // To update a listener, use ModifyListener. When you are finished with a listener, @@ -116,6 +135,29 @@ func (c *ELBV2) CreateListenerRequest(input *CreateListenerInput) (req *request. // For more information, see Listeners for Your Application Load Balancers // (http://docs.aws.amazon.com/elasticloadbalancing/latest/application/load-balancer-listeners.html) // in the Application Load Balancers Guide. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Elastic Load Balancing's +// API operation, CreateListener for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// DuplicateListenerException +// TooManyListenersException +// TooManyCertificatesException +// LoadBalancerNotFoundException +// TargetGroupNotFoundException +// TargetGroupAssociationLimitException +// InvalidConfigurationRequestException +// IncompatibleProtocolsException +// SSLPolicyNotFoundException +// CertificateNotFoundException +// UnsupportedProtocolException +// TooManyRegistrationsForTargetIdException func (c *ELBV2) CreateListener(input *CreateListenerInput) (*CreateListenerOutput, error) { req, out := c.CreateListenerRequest(input) err := req.Send() @@ -163,6 +205,8 @@ func (c *ELBV2) CreateLoadBalancerRequest(input *CreateLoadBalancerInput) (req * return } +// CreateLoadBalancer API operation for Elastic Load Balancing. +// // Creates an Application load balancer. // // To create listeners for your load balancer, use CreateListener. You can @@ -176,6 +220,26 @@ func (c *ELBV2) CreateLoadBalancerRequest(input *CreateLoadBalancerInput) (req * // an increase for the number of load balancers for your account. For more information, // see Limits for Your Application Load Balancer (http://docs.aws.amazon.com/elasticloadbalancing/latest/application/load-balancer-limits.html) // in the Application Load Balancers Guide. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Elastic Load Balancing's +// API operation, CreateLoadBalancer for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// DuplicateLoadBalancerNameException +// TooManyLoadBalancersException +// InvalidConfigurationRequestException +// SubnetNotFoundException +// InvalidSubnetException +// InvalidSecurityGroupException +// InvalidSchemeException +// TooManyTagsException +// DuplicateTagKeysException func (c *ELBV2) CreateLoadBalancer(input *CreateLoadBalancerInput) (*CreateLoadBalancerOutput, error) { req, out := c.CreateLoadBalancerRequest(input) err := req.Send() @@ -223,6 +287,8 @@ func (c *ELBV2) CreateRuleRequest(input *CreateRuleInput) (req *request.Request, return } +// CreateRule API operation for Elastic Load Balancing. +// // Creates a rule for the specified listener. // // A rule consists conditions and actions. Rules are evaluated in priority @@ -233,6 +299,25 @@ func (c *ELBV2) CreateRuleRequest(input *CreateRuleInput) (req *request.Request, // To view your current rules, use DescribeRules. To update a rule, use ModifyRule. // To set the priorities of your rules, use SetRulePriorities. To delete a rule, // use DeleteRule. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Elastic Load Balancing's +// API operation, CreateRule for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// PriorityInUseException +// TooManyTargetGroupsException +// TooManyRulesException +// TargetGroupAssociationLimitException +// ListenerNotFoundException +// TargetGroupNotFoundException +// InvalidConfigurationRequestException +// TooManyRegistrationsForTargetIdException func (c *ELBV2) CreateRule(input *CreateRuleInput) (*CreateRuleOutput, error) { req, out := c.CreateRuleRequest(input) err := req.Send() @@ -280,6 +365,8 @@ func (c *ELBV2) CreateTargetGroupRequest(input *CreateTargetGroupInput) (req *re return } +// CreateTargetGroup API operation for Elastic Load Balancing. +// // Creates a target group. // // To register targets with the target group, use RegisterTargets. To update @@ -294,6 +381,19 @@ func (c *ELBV2) CreateTargetGroupRequest(input *CreateTargetGroupInput) (req *re // For more information, see Target Groups for Your Application Load Balancers // (http://docs.aws.amazon.com/elasticloadbalancing/latest/application/load-balancer-target-groups.html) // in the Application Load Balancers Guide. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Elastic Load Balancing's +// API operation, CreateTargetGroup for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// DuplicateTargetGroupNameException +// TooManyTargetGroupsException func (c *ELBV2) CreateTargetGroup(input *CreateTargetGroupInput) (*CreateTargetGroupOutput, error) { req, out := c.CreateTargetGroupRequest(input) err := req.Send() @@ -341,10 +441,24 @@ func (c *ELBV2) DeleteListenerRequest(input *DeleteListenerInput) (req *request. return } +// DeleteListener API operation for Elastic Load Balancing. +// // Deletes the specified listener. // // Alternatively, your listener is deleted when you delete the load balancer // it is attached to using DeleteLoadBalancer. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Elastic Load Balancing's +// API operation, DeleteListener for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ListenerNotFoundException func (c *ELBV2) DeleteListener(input *DeleteListenerInput) (*DeleteListenerOutput, error) { req, out := c.DeleteListenerRequest(input) err := req.Send() @@ -392,6 +506,8 @@ func (c *ELBV2) DeleteLoadBalancerRequest(input *DeleteLoadBalancerInput) (req * return } +// DeleteLoadBalancer API operation for Elastic Load Balancing. +// // Deletes the specified load balancer and its attached listeners. // // You can't delete a load balancer if deletion protection is enabled. If the @@ -401,6 +517,19 @@ func (c *ELBV2) DeleteLoadBalancerRequest(input *DeleteLoadBalancerInput) (req * // your EC2 instances continue to run and are still registered to their target // groups. If you no longer need these EC2 instances, you can stop or terminate // them. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Elastic Load Balancing's +// API operation, DeleteLoadBalancer for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// LoadBalancerNotFoundException +// OperationNotPermittedException func (c *ELBV2) DeleteLoadBalancer(input *DeleteLoadBalancerInput) (*DeleteLoadBalancerOutput, error) { req, out := c.DeleteLoadBalancerRequest(input) err := req.Send() @@ -448,7 +577,22 @@ func (c *ELBV2) DeleteRuleRequest(input *DeleteRuleInput) (req *request.Request, return } +// DeleteRule API operation for Elastic Load Balancing. +// // Deletes the specified rule. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Elastic Load Balancing's +// API operation, DeleteRule for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// RuleNotFoundException +// OperationNotPermittedException func (c *ELBV2) DeleteRule(input *DeleteRuleInput) (*DeleteRuleOutput, error) { req, out := c.DeleteRuleRequest(input) err := req.Send() @@ -496,10 +640,24 @@ func (c *ELBV2) DeleteTargetGroupRequest(input *DeleteTargetGroupInput) (req *re return } +// DeleteTargetGroup API operation for Elastic Load Balancing. +// // Deletes the specified target group. // // You can delete a target group if it is not referenced by any actions. Deleting // a target group also deletes any associated health checks. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Elastic Load Balancing's +// API operation, DeleteTargetGroup for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ResourceInUseException func (c *ELBV2) DeleteTargetGroup(input *DeleteTargetGroupInput) (*DeleteTargetGroupOutput, error) { req, out := c.DeleteTargetGroupRequest(input) err := req.Send() @@ -547,9 +705,24 @@ func (c *ELBV2) DeregisterTargetsRequest(input *DeregisterTargetsInput) (req *re return } +// DeregisterTargets API operation for Elastic Load Balancing. +// // Deregisters the specified targets from the specified target group. After // the targets are deregistered, they no longer receive traffic from the load // balancer. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Elastic Load Balancing's +// API operation, DeregisterTargets for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// TargetGroupNotFoundException +// InvalidTargetException func (c *ELBV2) DeregisterTargets(input *DeregisterTargetsInput) (*DeregisterTargetsOutput, error) { req, out := c.DeregisterTargetsRequest(input) err := req.Send() @@ -603,8 +776,23 @@ func (c *ELBV2) DescribeListenersRequest(input *DescribeListenersInput) (req *re return } +// DescribeListeners API operation for Elastic Load Balancing. +// // Describes the specified listeners or the listeners for the specified load // balancer. You must specify either a load balancer or one or more listeners. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Elastic Load Balancing's +// API operation, DescribeListeners for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ListenerNotFoundException +// LoadBalancerNotFoundException func (c *ELBV2) DescribeListeners(input *DescribeListenersInput) (*DescribeListenersOutput, error) { req, out := c.DescribeListenersRequest(input) err := req.Send() @@ -677,7 +865,21 @@ func (c *ELBV2) DescribeLoadBalancerAttributesRequest(input *DescribeLoadBalance return } +// DescribeLoadBalancerAttributes API operation for Elastic Load Balancing. +// // Describes the attributes for the specified load balancer. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Elastic Load Balancing's +// API operation, DescribeLoadBalancerAttributes for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// LoadBalancerNotFoundException func (c *ELBV2) DescribeLoadBalancerAttributes(input *DescribeLoadBalancerAttributesInput) (*DescribeLoadBalancerAttributesOutput, error) { req, out := c.DescribeLoadBalancerAttributesRequest(input) err := req.Send() @@ -731,11 +933,25 @@ func (c *ELBV2) DescribeLoadBalancersRequest(input *DescribeLoadBalancersInput) return } +// DescribeLoadBalancers API operation for Elastic Load Balancing. +// // Describes the specified Application load balancers or all of your Application // load balancers. // // To describe the listeners for a load balancer, use DescribeListeners. To // describe the attributes for a load balancer, use DescribeLoadBalancerAttributes. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Elastic Load Balancing's +// API operation, DescribeLoadBalancers for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// LoadBalancerNotFoundException func (c *ELBV2) DescribeLoadBalancers(input *DescribeLoadBalancersInput) (*DescribeLoadBalancersOutput, error) { req, out := c.DescribeLoadBalancersRequest(input) err := req.Send() @@ -808,8 +1024,23 @@ func (c *ELBV2) DescribeRulesRequest(input *DescribeRulesInput) (req *request.Re return } +// DescribeRules API operation for Elastic Load Balancing. +// // Describes the specified rules or the rules for the specified listener. You // must specify either a listener or one or more rules. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Elastic Load Balancing's +// API operation, DescribeRules for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ListenerNotFoundException +// RuleNotFoundException func (c *ELBV2) DescribeRules(input *DescribeRulesInput) (*DescribeRulesOutput, error) { req, out := c.DescribeRulesRequest(input) err := req.Send() @@ -857,9 +1088,23 @@ func (c *ELBV2) DescribeSSLPoliciesRequest(input *DescribeSSLPoliciesInput) (req return } +// DescribeSSLPolicies API operation for Elastic Load Balancing. +// // Describes the specified policies or all policies used for SSL negotiation. // // Note that the only supported policy at this time is ELBSecurityPolicy-2015-05. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Elastic Load Balancing's +// API operation, DescribeSSLPolicies for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// SSLPolicyNotFoundException func (c *ELBV2) DescribeSSLPolicies(input *DescribeSSLPoliciesInput) (*DescribeSSLPoliciesOutput, error) { req, out := c.DescribeSSLPoliciesRequest(input) err := req.Send() @@ -907,7 +1152,24 @@ func (c *ELBV2) DescribeTagsRequest(input *DescribeTagsInput) (req *request.Requ return } +// DescribeTags API operation for Elastic Load Balancing. +// // Describes the tags for the specified resources. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Elastic Load Balancing's +// API operation, DescribeTags for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// LoadBalancerNotFoundException +// TargetGroupNotFoundException +// ListenerNotFoundException +// RuleNotFoundException func (c *ELBV2) DescribeTags(input *DescribeTagsInput) (*DescribeTagsOutput, error) { req, out := c.DescribeTagsRequest(input) err := req.Send() @@ -955,7 +1217,21 @@ func (c *ELBV2) DescribeTargetGroupAttributesRequest(input *DescribeTargetGroupA return } +// DescribeTargetGroupAttributes API operation for Elastic Load Balancing. +// // Describes the attributes for the specified target group. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Elastic Load Balancing's +// API operation, DescribeTargetGroupAttributes for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// TargetGroupNotFoundException func (c *ELBV2) DescribeTargetGroupAttributes(input *DescribeTargetGroupAttributesInput) (*DescribeTargetGroupAttributesOutput, error) { req, out := c.DescribeTargetGroupAttributesRequest(input) err := req.Send() @@ -1009,6 +1285,8 @@ func (c *ELBV2) DescribeTargetGroupsRequest(input *DescribeTargetGroupsInput) (r return } +// DescribeTargetGroups API operation for Elastic Load Balancing. +// // Describes the specified target groups or all of your target groups. By default, // all target groups are described. Alternatively, you can specify one of the // following to filter the results: the ARN of the load balancer, the names @@ -1016,6 +1294,19 @@ func (c *ELBV2) DescribeTargetGroupsRequest(input *DescribeTargetGroupsInput) (r // // To describe the targets for a target group, use DescribeTargetHealth. To // describe the attributes of a target group, use DescribeTargetGroupAttributes. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Elastic Load Balancing's +// API operation, DescribeTargetGroups for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// LoadBalancerNotFoundException +// TargetGroupNotFoundException func (c *ELBV2) DescribeTargetGroups(input *DescribeTargetGroupsInput) (*DescribeTargetGroupsOutput, error) { req, out := c.DescribeTargetGroupsRequest(input) err := req.Send() @@ -1088,7 +1379,23 @@ func (c *ELBV2) DescribeTargetHealthRequest(input *DescribeTargetHealthInput) (r return } +// DescribeTargetHealth API operation for Elastic Load Balancing. +// // Describes the health of the specified targets or all of your targets. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Elastic Load Balancing's +// API operation, DescribeTargetHealth for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidTargetException +// TargetGroupNotFoundException +// HealthUnavailableException func (c *ELBV2) DescribeTargetHealth(input *DescribeTargetHealthInput) (*DescribeTargetHealthOutput, error) { req, out := c.DescribeTargetHealthRequest(input) err := req.Send() @@ -1136,12 +1443,37 @@ func (c *ELBV2) ModifyListenerRequest(input *ModifyListenerInput) (req *request. return } +// ModifyListener API operation for Elastic Load Balancing. +// // Modifies the specified properties of the specified listener. // // Any properties that you do not specify retain their current values. However, // changing the protocol from HTTPS to HTTP removes the security policy and // SSL certificate properties. If you change the protocol from HTTP to HTTPS, // you must add the security policy. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Elastic Load Balancing's +// API operation, ModifyListener for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// DuplicateListenerException +// TooManyListenersException +// TooManyCertificatesException +// ListenerNotFoundException +// TargetGroupNotFoundException +// TargetGroupAssociationLimitException +// IncompatibleProtocolsException +// SSLPolicyNotFoundException +// CertificateNotFoundException +// InvalidConfigurationRequestException +// UnsupportedProtocolException +// TooManyRegistrationsForTargetIdException func (c *ELBV2) ModifyListener(input *ModifyListenerInput) (*ModifyListenerOutput, error) { req, out := c.ModifyListenerRequest(input) err := req.Send() @@ -1189,11 +1521,26 @@ func (c *ELBV2) ModifyLoadBalancerAttributesRequest(input *ModifyLoadBalancerAtt return } +// ModifyLoadBalancerAttributes API operation for Elastic Load Balancing. +// // Modifies the specified attributes of the specified load balancer. // // If any of the specified attributes can't be modified as requested, the call // fails. Any existing attributes that you do not modify retain their current // values. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Elastic Load Balancing's +// API operation, ModifyLoadBalancerAttributes for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// LoadBalancerNotFoundException +// InvalidConfigurationRequestException func (c *ELBV2) ModifyLoadBalancerAttributes(input *ModifyLoadBalancerAttributesInput) (*ModifyLoadBalancerAttributesOutput, error) { req, out := c.ModifyLoadBalancerAttributesRequest(input) err := req.Send() @@ -1241,11 +1588,28 @@ func (c *ELBV2) ModifyRuleRequest(input *ModifyRuleInput) (req *request.Request, return } +// ModifyRule API operation for Elastic Load Balancing. +// // Modifies the specified rule. // // Any existing properties that you do not modify retain their current values. // // To modify the default action, use ModifyListener. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Elastic Load Balancing's +// API operation, ModifyRule for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// TargetGroupAssociationLimitException +// RuleNotFoundException +// OperationNotPermittedException +// TooManyRegistrationsForTargetIdException func (c *ELBV2) ModifyRule(input *ModifyRuleInput) (*ModifyRuleOutput, error) { req, out := c.ModifyRuleRequest(input) err := req.Send() @@ -1293,10 +1657,24 @@ func (c *ELBV2) ModifyTargetGroupRequest(input *ModifyTargetGroupInput) (req *re return } +// ModifyTargetGroup API operation for Elastic Load Balancing. +// // Modifies the health checks used when evaluating the health state of the targets // in the specified target group. // // To monitor the health of the targets, use DescribeTargetHealth. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Elastic Load Balancing's +// API operation, ModifyTargetGroup for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// TargetGroupNotFoundException func (c *ELBV2) ModifyTargetGroup(input *ModifyTargetGroupInput) (*ModifyTargetGroupOutput, error) { req, out := c.ModifyTargetGroupRequest(input) err := req.Send() @@ -1344,7 +1722,21 @@ func (c *ELBV2) ModifyTargetGroupAttributesRequest(input *ModifyTargetGroupAttri return } +// ModifyTargetGroupAttributes API operation for Elastic Load Balancing. +// // Modifies the specified attributes of the specified target group. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Elastic Load Balancing's +// API operation, ModifyTargetGroupAttributes for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// TargetGroupNotFoundException func (c *ELBV2) ModifyTargetGroupAttributes(input *ModifyTargetGroupAttributesInput) (*ModifyTargetGroupAttributesOutput, error) { req, out := c.ModifyTargetGroupAttributesRequest(input) err := req.Send() @@ -1392,12 +1784,29 @@ func (c *ELBV2) RegisterTargetsRequest(input *RegisterTargetsInput) (req *reques return } +// RegisterTargets API operation for Elastic Load Balancing. +// // Registers the specified targets with the specified target group. // // The target must be in the virtual private cloud (VPC) that you specified // for the target group. // // To remove a target from a target group, use DeregisterTargets. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Elastic Load Balancing's +// API operation, RegisterTargets for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// TargetGroupNotFoundException +// TooManyTargetsException +// InvalidTargetException +// TooManyRegistrationsForTargetIdException func (c *ELBV2) RegisterTargets(input *RegisterTargetsInput) (*RegisterTargetsOutput, error) { req, out := c.RegisterTargetsRequest(input) err := req.Send() @@ -1445,9 +1854,27 @@ func (c *ELBV2) RemoveTagsRequest(input *RemoveTagsInput) (req *request.Request, return } +// RemoveTags API operation for Elastic Load Balancing. +// // Removes the specified tags from the specified resource. // // To list the current tags for your resources, use DescribeTags. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Elastic Load Balancing's +// API operation, RemoveTags for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// LoadBalancerNotFoundException +// TargetGroupNotFoundException +// ListenerNotFoundException +// RuleNotFoundException +// TooManyTagsException func (c *ELBV2) RemoveTags(input *RemoveTagsInput) (*RemoveTagsOutput, error) { req, out := c.RemoveTagsRequest(input) err := req.Send() @@ -1495,11 +1922,27 @@ func (c *ELBV2) SetRulePrioritiesRequest(input *SetRulePrioritiesInput) (req *re return } +// SetRulePriorities API operation for Elastic Load Balancing. +// // Sets the priorities of the specified rules. // // You can reorder the rules as long as there are no priority conflicts in // the new order. Any existing rules that you do not specify retain their current // priority. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Elastic Load Balancing's +// API operation, SetRulePriorities for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// RuleNotFoundException +// PriorityInUseException +// OperationNotPermittedException func (c *ELBV2) SetRulePriorities(input *SetRulePrioritiesInput) (*SetRulePrioritiesOutput, error) { req, out := c.SetRulePrioritiesRequest(input) err := req.Send() @@ -1547,9 +1990,25 @@ func (c *ELBV2) SetSecurityGroupsRequest(input *SetSecurityGroupsInput) (req *re return } +// SetSecurityGroups API operation for Elastic Load Balancing. +// // Associates the specified security groups with the specified load balancer. // The specified security groups override the previously associated security // groups. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Elastic Load Balancing's +// API operation, SetSecurityGroups for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// LoadBalancerNotFoundException +// InvalidConfigurationRequestException +// InvalidSecurityGroupException func (c *ELBV2) SetSecurityGroups(input *SetSecurityGroupsInput) (*SetSecurityGroupsOutput, error) { req, out := c.SetSecurityGroupsRequest(input) err := req.Send() @@ -1597,8 +2056,25 @@ func (c *ELBV2) SetSubnetsRequest(input *SetSubnetsInput) (req *request.Request, return } +// SetSubnets API operation for Elastic Load Balancing. +// // Enables the Availability Zone for the specified subnets for the specified // load balancer. The specified subnets replace the previously enabled subnets. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Elastic Load Balancing's +// API operation, SetSubnets for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// LoadBalancerNotFoundException +// InvalidConfigurationRequestException +// SubnetNotFoundException +// InvalidSubnetException func (c *ELBV2) SetSubnets(input *SetSubnetsInput) (*SetSubnetsOutput, error) { req, out := c.SetSubnetsRequest(input) err := req.Send() diff --git a/service/emr/api.go b/service/emr/api.go index fcf4f5985a7..a8c5919879b 100644 --- a/service/emr/api.go +++ b/service/emr/api.go @@ -54,7 +54,21 @@ func (c *EMR) AddInstanceGroupsRequest(input *AddInstanceGroupsInput) (req *requ return } +// AddInstanceGroups API operation for Amazon Elastic MapReduce. +// // AddInstanceGroups adds an instance group to a running cluster. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Elastic MapReduce's +// API operation, AddInstanceGroups for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InternalServerError func (c *EMR) AddInstanceGroups(input *AddInstanceGroupsInput) (*AddInstanceGroupsOutput, error) { req, out := c.AddInstanceGroupsRequest(input) err := req.Send() @@ -102,6 +116,8 @@ func (c *EMR) AddJobFlowStepsRequest(input *AddJobFlowStepsInput) (req *request. return } +// AddJobFlowSteps API operation for Amazon Elastic MapReduce. +// // AddJobFlowSteps adds new steps to a running job flow. A maximum of 256 steps // are allowed in each job flow. // @@ -126,6 +142,18 @@ func (c *EMR) AddJobFlowStepsRequest(input *AddJobFlowStepsInput) (req *request. // // You can only add steps to a job flow that is in one of the following states: // STARTING, BOOTSTRAPPING, RUNNING, or WAITING. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Elastic MapReduce's +// API operation, AddJobFlowSteps for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InternalServerError func (c *EMR) AddJobFlowSteps(input *AddJobFlowStepsInput) (*AddJobFlowStepsOutput, error) { req, out := c.AddJobFlowStepsRequest(input) err := req.Send() @@ -173,10 +201,25 @@ func (c *EMR) AddTagsRequest(input *AddTagsInput) (req *request.Request, output return } +// AddTags API operation for Amazon Elastic MapReduce. +// // Adds tags to an Amazon EMR resource. Tags make it easier to associate clusters // in various ways, such as grouping clusters to track your Amazon EMR resource // allocation costs. For more information, see Tagging Amazon EMR Resources // (http://docs.aws.amazon.com/ElasticMapReduce/latest/DeveloperGuide/emr-plan-tags.html). +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Elastic MapReduce's +// API operation, AddTags for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InternalServerException +// InvalidRequestException func (c *EMR) AddTags(input *AddTagsInput) (*AddTagsOutput, error) { req, out := c.AddTagsRequest(input) err := req.Send() @@ -224,9 +267,24 @@ func (c *EMR) CreateSecurityConfigurationRequest(input *CreateSecurityConfigurat return } +// CreateSecurityConfiguration API operation for Amazon Elastic MapReduce. +// // Creates a security configuration using EMR Security Configurations, which // are stored in the service. Security Configurations enable you to more easily // create a configuration, reuse it, and apply it whenever a cluster is created. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Elastic MapReduce's +// API operation, CreateSecurityConfiguration for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InternalServerException +// InvalidRequestException func (c *EMR) CreateSecurityConfiguration(input *CreateSecurityConfigurationInput) (*CreateSecurityConfigurationOutput, error) { req, out := c.CreateSecurityConfigurationRequest(input) err := req.Send() @@ -274,7 +332,22 @@ func (c *EMR) DeleteSecurityConfigurationRequest(input *DeleteSecurityConfigurat return } +// DeleteSecurityConfiguration API operation for Amazon Elastic MapReduce. +// // Deletes a security configuration. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Elastic MapReduce's +// API operation, DeleteSecurityConfiguration for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InternalServerException +// InvalidRequestException func (c *EMR) DeleteSecurityConfiguration(input *DeleteSecurityConfigurationInput) (*DeleteSecurityConfigurationOutput, error) { req, out := c.DeleteSecurityConfigurationRequest(input) err := req.Send() @@ -322,8 +395,23 @@ func (c *EMR) DescribeClusterRequest(input *DescribeClusterInput) (req *request. return } +// DescribeCluster API operation for Amazon Elastic MapReduce. +// // Provides cluster-level details including status, hardware and software configuration, // VPC settings, and so on. For information about the cluster steps, see ListSteps. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Elastic MapReduce's +// API operation, DescribeCluster for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InternalServerException +// InvalidRequestException func (c *EMR) DescribeCluster(input *DescribeClusterInput) (*DescribeClusterOutput, error) { req, out := c.DescribeClusterRequest(input) err := req.Send() @@ -374,6 +462,8 @@ func (c *EMR) DescribeJobFlowsRequest(input *DescribeJobFlowsInput) (req *reques return } +// DescribeJobFlows API operation for Amazon Elastic MapReduce. +// // This API is deprecated and will eventually be removed. We recommend you use // ListClusters, DescribeCluster, ListSteps, ListInstanceGroups and ListBootstrapActions // instead. @@ -394,6 +484,18 @@ func (c *EMR) DescribeJobFlowsRequest(input *DescribeJobFlowsInput) (req *reques // states: RUNNING, WAITING, SHUTTING_DOWN, STARTING // // Amazon Elastic MapReduce can return a maximum of 512 job flow descriptions. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Elastic MapReduce's +// API operation, DescribeJobFlows for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InternalServerError func (c *EMR) DescribeJobFlows(input *DescribeJobFlowsInput) (*DescribeJobFlowsOutput, error) { req, out := c.DescribeJobFlowsRequest(input) err := req.Send() @@ -441,8 +543,23 @@ func (c *EMR) DescribeSecurityConfigurationRequest(input *DescribeSecurityConfig return } +// DescribeSecurityConfiguration API operation for Amazon Elastic MapReduce. +// // Provides the details of a security configuration by returning the configuration // JSON. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Elastic MapReduce's +// API operation, DescribeSecurityConfiguration for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InternalServerException +// InvalidRequestException func (c *EMR) DescribeSecurityConfiguration(input *DescribeSecurityConfigurationInput) (*DescribeSecurityConfigurationOutput, error) { req, out := c.DescribeSecurityConfigurationRequest(input) err := req.Send() @@ -490,7 +607,22 @@ func (c *EMR) DescribeStepRequest(input *DescribeStepInput) (req *request.Reques return } +// DescribeStep API operation for Amazon Elastic MapReduce. +// // Provides more detail about the cluster step. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Elastic MapReduce's +// API operation, DescribeStep for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InternalServerException +// InvalidRequestException func (c *EMR) DescribeStep(input *DescribeStepInput) (*DescribeStepOutput, error) { req, out := c.DescribeStepRequest(input) err := req.Send() @@ -544,7 +676,22 @@ func (c *EMR) ListBootstrapActionsRequest(input *ListBootstrapActionsInput) (req return } +// ListBootstrapActions API operation for Amazon Elastic MapReduce. +// // Provides information about the bootstrap actions associated with a cluster. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Elastic MapReduce's +// API operation, ListBootstrapActions for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InternalServerException +// InvalidRequestException func (c *EMR) ListBootstrapActions(input *ListBootstrapActionsInput) (*ListBootstrapActionsOutput, error) { req, out := c.ListBootstrapActionsRequest(input) err := req.Send() @@ -623,11 +770,26 @@ func (c *EMR) ListClustersRequest(input *ListClustersInput) (req *request.Reques return } +// ListClusters API operation for Amazon Elastic MapReduce. +// // Provides the status of all clusters visible to this AWS account. Allows you // to filter the list of clusters based on certain criteria; for example, filtering // by cluster creation date and time or by status. This call returns a maximum // of 50 clusters per call, but returns a marker to track the paging of the // cluster list across multiple ListClusters calls. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Elastic MapReduce's +// API operation, ListClusters for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InternalServerException +// InvalidRequestException func (c *EMR) ListClusters(input *ListClustersInput) (*ListClustersOutput, error) { req, out := c.ListClustersRequest(input) err := req.Send() @@ -706,7 +868,22 @@ func (c *EMR) ListInstanceGroupsRequest(input *ListInstanceGroupsInput) (req *re return } +// ListInstanceGroups API operation for Amazon Elastic MapReduce. +// // Provides all available details about the instance groups in a cluster. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Elastic MapReduce's +// API operation, ListInstanceGroups for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InternalServerException +// InvalidRequestException func (c *EMR) ListInstanceGroups(input *ListInstanceGroupsInput) (*ListInstanceGroupsOutput, error) { req, out := c.ListInstanceGroupsRequest(input) err := req.Send() @@ -785,11 +962,26 @@ func (c *EMR) ListInstancesRequest(input *ListInstancesInput) (req *request.Requ return } +// ListInstances API operation for Amazon Elastic MapReduce. +// // Provides information about the cluster instances that Amazon EMR provisions // on behalf of a user when it creates the cluster. For example, this operation // indicates when the EC2 instances reach the Ready state, when instances become // available to Amazon EMR to use for jobs, and the IP addresses for cluster // instances, etc. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Elastic MapReduce's +// API operation, ListInstances for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InternalServerException +// InvalidRequestException func (c *EMR) ListInstances(input *ListInstancesInput) (*ListInstancesOutput, error) { req, out := c.ListInstancesRequest(input) err := req.Send() @@ -862,10 +1054,25 @@ func (c *EMR) ListSecurityConfigurationsRequest(input *ListSecurityConfiguration return } +// ListSecurityConfigurations API operation for Amazon Elastic MapReduce. +// // Lists all the security configurations visible to this account, providing // their creation dates and times, and their names. This call returns a maximum // of 50 clusters per call, but returns a marker to track the paging of the // cluster list across multiple ListSecurityConfigurations calls. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Elastic MapReduce's +// API operation, ListSecurityConfigurations for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InternalServerException +// InvalidRequestException func (c *EMR) ListSecurityConfigurations(input *ListSecurityConfigurationsInput) (*ListSecurityConfigurationsOutput, error) { req, out := c.ListSecurityConfigurationsRequest(input) err := req.Send() @@ -919,7 +1126,22 @@ func (c *EMR) ListStepsRequest(input *ListStepsInput) (req *request.Request, out return } +// ListSteps API operation for Amazon Elastic MapReduce. +// // Provides a list of steps for the cluster. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Elastic MapReduce's +// API operation, ListSteps for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InternalServerException +// InvalidRequestException func (c *EMR) ListSteps(input *ListStepsInput) (*ListStepsOutput, error) { req, out := c.ListStepsRequest(input) err := req.Send() @@ -994,10 +1216,24 @@ func (c *EMR) ModifyInstanceGroupsRequest(input *ModifyInstanceGroupsInput) (req return } +// ModifyInstanceGroups API operation for Amazon Elastic MapReduce. +// // ModifyInstanceGroups modifies the number of nodes and configuration settings // of an instance group. The input parameters include the new target instance // count for the group and the instance group ID. The call will either succeed // or fail atomically. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Elastic MapReduce's +// API operation, ModifyInstanceGroups for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InternalServerError func (c *EMR) ModifyInstanceGroups(input *ModifyInstanceGroupsInput) (*ModifyInstanceGroupsOutput, error) { req, out := c.ModifyInstanceGroupsRequest(input) err := req.Send() @@ -1045,12 +1281,27 @@ func (c *EMR) RemoveTagsRequest(input *RemoveTagsInput) (req *request.Request, o return } +// RemoveTags API operation for Amazon Elastic MapReduce. +// // Removes tags from an Amazon EMR resource. Tags make it easier to associate // clusters in various ways, such as grouping clusters to track your Amazon // EMR resource allocation costs. For more information, see Tagging Amazon EMR // Resources (http://docs.aws.amazon.com/ElasticMapReduce/latest/DeveloperGuide/emr-plan-tags.html). // // The following example removes the stack tag with value Prod from a cluster: +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Elastic MapReduce's +// API operation, RemoveTags for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InternalServerException +// InvalidRequestException func (c *EMR) RemoveTags(input *RemoveTagsInput) (*RemoveTagsOutput, error) { req, out := c.RemoveTagsRequest(input) err := req.Send() @@ -1098,6 +1349,8 @@ func (c *EMR) RunJobFlowRequest(input *RunJobFlowInput) (req *request.Request, o return } +// RunJobFlow API operation for Amazon Elastic MapReduce. +// // RunJobFlow creates and starts running a new job flow. The job flow will run // the steps specified. Once the job flow completes, the cluster is stopped // and the HDFS partition is lost. To prevent loss of data, configure the last @@ -1121,6 +1374,18 @@ func (c *EMR) RunJobFlowRequest(input *RunJobFlowInput) (req *request.Request, o // // For long running job flows, we recommend that you periodically store your // results. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Elastic MapReduce's +// API operation, RunJobFlow for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InternalServerError func (c *EMR) RunJobFlow(input *RunJobFlowInput) (*RunJobFlowOutput, error) { req, out := c.RunJobFlowRequest(input) err := req.Send() @@ -1170,6 +1435,8 @@ func (c *EMR) SetTerminationProtectionRequest(input *SetTerminationProtectionInp return } +// SetTerminationProtection API operation for Amazon Elastic MapReduce. +// // SetTerminationProtection locks a job flow so the Amazon EC2 instances in // the cluster cannot be terminated by user intervention, an API call, or in // the event of a job-flow error. The cluster still terminates upon successful @@ -1187,6 +1454,18 @@ func (c *EMR) SetTerminationProtectionRequest(input *SetTerminationProtectionInp // // For more information, go to Protecting a Job Flow from Termination (http://docs.aws.amazon.com/ElasticMapReduce/latest/DeveloperGuide/UsingEMR_TerminationProtection.html) // in the Amazon Elastic MapReduce Developer's Guide. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Elastic MapReduce's +// API operation, SetTerminationProtection for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InternalServerError func (c *EMR) SetTerminationProtection(input *SetTerminationProtectionInput) (*SetTerminationProtectionOutput, error) { req, out := c.SetTerminationProtectionRequest(input) err := req.Send() @@ -1236,12 +1515,26 @@ func (c *EMR) SetVisibleToAllUsersRequest(input *SetVisibleToAllUsersInput) (req return } +// SetVisibleToAllUsers API operation for Amazon Elastic MapReduce. +// // Sets whether all AWS Identity and Access Management (IAM) users under your // account can access the specified job flows. This action works on running // job flows. You can also set the visibility of a job flow when you launch // it using the VisibleToAllUsers parameter of RunJobFlow. The SetVisibleToAllUsers // action can be called only by an IAM user who created the job flow or the // AWS account that owns the job flow. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Elastic MapReduce's +// API operation, SetVisibleToAllUsers for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InternalServerError func (c *EMR) SetVisibleToAllUsers(input *SetVisibleToAllUsersInput) (*SetVisibleToAllUsersOutput, error) { req, out := c.SetVisibleToAllUsersRequest(input) err := req.Send() @@ -1291,6 +1584,8 @@ func (c *EMR) TerminateJobFlowsRequest(input *TerminateJobFlowsInput) (req *requ return } +// TerminateJobFlows API operation for Amazon Elastic MapReduce. +// // TerminateJobFlows shuts a list of job flows down. When a job flow is shut // down, any step not yet completed is canceled and the EC2 instances on which // the job flow is running are stopped. Any log files not already saved are @@ -1300,6 +1595,18 @@ func (c *EMR) TerminateJobFlowsRequest(input *TerminateJobFlowsInput) (req *requ // is asynchronous. Depending on the configuration of the job flow, it may take // up to 5-20 minutes for the job flow to completely terminate and release allocated // resources, such as Amazon EC2 instances. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Elastic MapReduce's +// API operation, TerminateJobFlows for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InternalServerError func (c *EMR) TerminateJobFlows(input *TerminateJobFlowsInput) (*TerminateJobFlowsOutput, error) { req, out := c.TerminateJobFlowsRequest(input) err := req.Send() diff --git a/service/firehose/api.go b/service/firehose/api.go index f549378a9fd..cdd1504a0c7 100644 --- a/service/firehose/api.go +++ b/service/firehose/api.go @@ -52,6 +52,8 @@ func (c *Firehose) CreateDeliveryStreamRequest(input *CreateDeliveryStreamInput) return } +// CreateDeliveryStream API operation for Amazon Kinesis Firehose. +// // Creates a delivery stream. // // CreateDeliveryStream is an asynchronous operation that immediately returns. @@ -102,6 +104,20 @@ func (c *Firehose) CreateDeliveryStreamRequest(input *CreateDeliveryStreamInput) // the role should have permissions that allows the service to deliver the data. // For more information, see Amazon S3 Bucket Access (http://docs.aws.amazon.com/firehose/latest/dev/controlling-access.html#using-iam-s3) // in the Amazon Kinesis Firehose Developer Guide. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Kinesis Firehose's +// API operation, CreateDeliveryStream for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidArgumentException +// LimitExceededException +// ResourceInUseException func (c *Firehose) CreateDeliveryStream(input *CreateDeliveryStreamInput) (*CreateDeliveryStreamOutput, error) { req, out := c.CreateDeliveryStreamRequest(input) err := req.Send() @@ -149,6 +165,8 @@ func (c *Firehose) DeleteDeliveryStreamRequest(input *DeleteDeliveryStreamInput) return } +// DeleteDeliveryStream API operation for Amazon Kinesis Firehose. +// // Deletes a delivery stream and its data. // // You can delete a delivery stream only if it is in ACTIVE or DELETING state, @@ -161,6 +179,19 @@ func (c *Firehose) DeleteDeliveryStreamRequest(input *DeleteDeliveryStreamInput) // accept the records, but the service doesn't make any guarantees with respect // to delivering the data. Therefore, as a best practice, you should first stop // any applications that are sending records before deleting a delivery stream. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Kinesis Firehose's +// API operation, DeleteDeliveryStream for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ResourceInUseException +// ResourceNotFoundException func (c *Firehose) DeleteDeliveryStream(input *DeleteDeliveryStreamInput) (*DeleteDeliveryStreamOutput, error) { req, out := c.DeleteDeliveryStreamRequest(input) err := req.Send() @@ -208,10 +239,24 @@ func (c *Firehose) DescribeDeliveryStreamRequest(input *DescribeDeliveryStreamIn return } +// DescribeDeliveryStream API operation for Amazon Kinesis Firehose. +// // Describes the specified delivery stream and gets the status. For example, // after your delivery stream is created, call DescribeDeliveryStream to see // if the delivery stream is ACTIVE and therefore ready for data to be sent // to it. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Kinesis Firehose's +// API operation, DescribeDeliveryStream for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ResourceNotFoundException func (c *Firehose) DescribeDeliveryStream(input *DescribeDeliveryStreamInput) (*DescribeDeliveryStreamOutput, error) { req, out := c.DescribeDeliveryStreamRequest(input) err := req.Send() @@ -259,6 +304,8 @@ func (c *Firehose) ListDeliveryStreamsRequest(input *ListDeliveryStreamsInput) ( return } +// ListDeliveryStreams API operation for Amazon Kinesis Firehose. +// // Lists your delivery streams. // // The number of delivery streams might be too large to return using a single @@ -268,6 +315,14 @@ func (c *Firehose) ListDeliveryStreamsRequest(input *ListDeliveryStreamsInput) ( // output. If there are more delivery streams to list, you can request them // by specifying the name of the last delivery stream returned in the call in // the ExclusiveStartDeliveryStreamName parameter of a subsequent call. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Kinesis Firehose's +// API operation, ListDeliveryStreams for more information, and other errors +// that the API operation could return. func (c *Firehose) ListDeliveryStreams(input *ListDeliveryStreamsInput) (*ListDeliveryStreamsOutput, error) { req, out := c.ListDeliveryStreamsRequest(input) err := req.Send() @@ -315,6 +370,8 @@ func (c *Firehose) PutRecordRequest(input *PutRecordInput) (req *request.Request return } +// PutRecord API operation for Amazon Kinesis Firehose. +// // Writes a single data record into an Amazon Kinesis Firehose delivery stream. // To write multiple data records into a delivery stream, use PutRecordBatch. // Applications using these operations are referred to as producers. @@ -348,6 +405,20 @@ func (c *Firehose) PutRecordRequest(input *PutRecordInput) (req *request.Request // are added to a delivery stream as it attempts to send the records to the // destination. If the destination is unreachable for more than 24 hours, the // data is no longer available. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Kinesis Firehose's +// API operation, PutRecord for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ResourceNotFoundException +// InvalidArgumentException +// ServiceUnavailableException func (c *Firehose) PutRecord(input *PutRecordInput) (*PutRecordOutput, error) { req, out := c.PutRecordRequest(input) err := req.Send() @@ -395,6 +466,8 @@ func (c *Firehose) PutRecordBatchRequest(input *PutRecordBatchInput) (req *reque return } +// PutRecordBatch API operation for Amazon Kinesis Firehose. +// // Writes multiple data records into a delivery stream in a single call, which // can achieve higher throughput per producer than when writing single records. // To write single data records into a delivery stream, use PutRecord. Applications @@ -451,6 +524,20 @@ func (c *Firehose) PutRecordBatchRequest(input *PutRecordBatchInput) (req *reque // are added to a delivery stream as it attempts to send the records to the // destination. If the destination is unreachable for more than 24 hours, the // data is no longer available. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Kinesis Firehose's +// API operation, PutRecordBatch for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ResourceNotFoundException +// InvalidArgumentException +// ServiceUnavailableException func (c *Firehose) PutRecordBatch(input *PutRecordBatchInput) (*PutRecordBatchOutput, error) { req, out := c.PutRecordBatchRequest(input) err := req.Send() @@ -498,6 +585,8 @@ func (c *Firehose) UpdateDestinationRequest(input *UpdateDestinationInput) (req return } +// UpdateDestination API operation for Amazon Kinesis Firehose. +// // Updates the specified destination of the specified delivery stream. Note: // Switching between Elasticsearch and other services is not supported. For // Elasticsearch destination, you can only update an existing Elasticsearch @@ -530,6 +619,21 @@ func (c *Firehose) UpdateDestinationRequest(input *UpdateDestinationInput) (req // updated, which can be retrieved with the DescribeDeliveryStream operation. // The new VersionId should be uses to set CurrentDeliveryStreamVersionId in // the next UpdateDestination operation. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Kinesis Firehose's +// API operation, UpdateDestination for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidArgumentException +// ResourceInUseException +// ResourceNotFoundException +// ConcurrentModificationException func (c *Firehose) UpdateDestination(input *UpdateDestinationInput) (*UpdateDestinationOutput, error) { req, out := c.UpdateDestinationRequest(input) err := req.Send() diff --git a/service/gamelift/api.go b/service/gamelift/api.go index a0e7fa5b5ea..9c1ff76935a 100644 --- a/service/gamelift/api.go +++ b/service/gamelift/api.go @@ -54,6 +54,8 @@ func (c *GameLift) CreateAliasRequest(input *CreateAliasInput) (req *request.Req return } +// CreateAlias API operation for Amazon GameLift. +// // Creates an alias for a fleet. You can use an alias to anonymize your fleet // by referencing an alias instead of a specific fleet when you create game // sessions. Amazon GameLift supports two types of routing strategies for aliases: @@ -67,6 +69,22 @@ func (c *GameLift) CreateAliasRequest(input *CreateAliasInput) (req *request.Req // description. If successful, a new alias record is returned, including an // alias ID, which you can reference when creating a game session. To reassign // the alias to another fleet ID, call UpdateAlias. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon GameLift's +// API operation, CreateAlias for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// UnauthorizedException +// InvalidRequestException +// ConflictException +// InternalServiceException +// LimitExceededException func (c *GameLift) CreateAlias(input *CreateAliasInput) (*CreateAliasOutput, error) { req, out := c.CreateAliasRequest(input) err := req.Send() @@ -114,6 +132,8 @@ func (c *GameLift) CreateBuildRequest(input *CreateBuildInput) (req *request.Req return } +// CreateBuild API operation for Amazon GameLift. +// // Initializes a new build record and generates information required to upload // a game build to Amazon GameLift. Once the build record has been created and // its status is INITIALIZED, you can upload your game build. @@ -132,6 +152,21 @@ func (c *GameLift) CreateBuildRequest(input *CreateBuildInput) (req *request.Req // (it is not visible to players). If successful, this action returns the newly // created build record along with the Amazon S3 storage location and AWS account // credentials. Use the location and credentials to upload your game build. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon GameLift's +// API operation, CreateBuild for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// UnauthorizedException +// InvalidRequestException +// ConflictException +// InternalServiceException func (c *GameLift) CreateBuild(input *CreateBuildInput) (*CreateBuildOutput, error) { req, out := c.CreateBuildRequest(input) err := req.Send() @@ -179,6 +214,8 @@ func (c *GameLift) CreateFleetRequest(input *CreateFleetInput) (req *request.Req return } +// CreateFleet API operation for Amazon GameLift. +// // Creates a new fleet to run your game servers. A fleet is a set of Amazon // Elastic Compute Cloud (Amazon EC2) instances, each of which can run multiple // server processes to host game sessions. You configure a fleet to create instances @@ -214,6 +251,23 @@ func (c *GameLift) CreateFleetRequest(input *CreateFleetInput) (req *request.Req // and port ranges that allow access to incoming traffic. UpdateRuntimeConfiguration // -- Change how server processes are launched in the fleet, including launch // path, launch parameters, and the number of concurrent processes. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon GameLift's +// API operation, CreateFleet for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InternalServiceException +// NotFoundException +// ConflictException +// LimitExceededException +// InvalidRequestException +// UnauthorizedException func (c *GameLift) CreateFleet(input *CreateFleetInput) (*CreateFleetOutput, error) { req, out := c.CreateFleetRequest(input) err := req.Send() @@ -261,6 +315,8 @@ func (c *GameLift) CreateGameSessionRequest(input *CreateGameSessionInput) (req return } +// CreateGameSession API operation for Amazon GameLift. +// // Creates a multiplayer game session for players. This action creates a game // session record and assigns the new session to an instance in the specified // fleet, which initializes a new server process to host the game session. A @@ -274,6 +330,25 @@ func (c *GameLift) CreateGameSessionRequest(input *CreateGameSessionInput) (req // IP address. By default, newly created game sessions are set to accept adding // any new players to the game session. Use UpdateGameSession to change the // creation policy. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon GameLift's +// API operation, CreateGameSession for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ConflictException +// InternalServiceException +// UnauthorizedException +// InvalidFleetStatusException +// TerminalRoutingStrategyException +// InvalidRequestException +// NotFoundException +// FleetCapacityExceededException func (c *GameLift) CreateGameSession(input *CreateGameSessionInput) (*CreateGameSessionOutput, error) { req, out := c.CreateGameSessionRequest(input) err := req.Send() @@ -321,6 +396,8 @@ func (c *GameLift) CreatePlayerSessionRequest(input *CreatePlayerSessionInput) ( return } +// CreatePlayerSession API operation for Amazon GameLift. +// // Adds a player to a game session and creates a player session record. A game // session must be in an ACTIVE status, have a creation policy of ALLOW_ALL, // and have an open player slot before players can be added to the session. @@ -328,6 +405,24 @@ func (c *GameLift) CreatePlayerSessionRequest(input *CreatePlayerSessionInput) ( // To create a player session, specify a game session ID and player ID. If // successful, the player is added to the game session and a new PlayerSession // object is returned. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon GameLift's +// API operation, CreatePlayerSession for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InternalServiceException +// UnauthorizedException +// InvalidGameSessionStatusException +// GameSessionFullException +// TerminalRoutingStrategyException +// InvalidRequestException +// NotFoundException func (c *GameLift) CreatePlayerSession(input *CreatePlayerSessionInput) (*CreatePlayerSessionOutput, error) { req, out := c.CreatePlayerSessionRequest(input) err := req.Send() @@ -375,6 +470,8 @@ func (c *GameLift) CreatePlayerSessionsRequest(input *CreatePlayerSessionsInput) return } +// CreatePlayerSessions API operation for Amazon GameLift. +// // Adds a group of players to a game session. Similar to CreatePlayerSession, // this action allows you to add multiple players in a single call, which is // useful for games that provide party and/or matchmaking features. A game session @@ -384,6 +481,24 @@ func (c *GameLift) CreatePlayerSessionsRequest(input *CreatePlayerSessionsInput) // To create player sessions, specify a game session ID and a list of player // IDs. If successful, the players are added to the game session and a set of // new PlayerSession objects is returned. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon GameLift's +// API operation, CreatePlayerSessions for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InternalServiceException +// UnauthorizedException +// InvalidGameSessionStatusException +// GameSessionFullException +// TerminalRoutingStrategyException +// InvalidRequestException +// NotFoundException func (c *GameLift) CreatePlayerSessions(input *CreatePlayerSessionsInput) (*CreatePlayerSessionsOutput, error) { req, out := c.CreatePlayerSessionsRequest(input) err := req.Send() @@ -433,9 +548,26 @@ func (c *GameLift) DeleteAliasRequest(input *DeleteAliasInput) (req *request.Req return } +// DeleteAlias API operation for Amazon GameLift. +// // Deletes an alias. This action removes all record of the alias; game clients // attempting to access a server process using the deleted alias receive an // error. To delete an alias, specify the alias ID to be deleted. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon GameLift's +// API operation, DeleteAlias for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// UnauthorizedException +// NotFoundException +// InvalidRequestException +// InternalServiceException func (c *GameLift) DeleteAlias(input *DeleteAliasInput) (*DeleteAliasOutput, error) { req, out := c.DeleteAliasRequest(input) err := req.Send() @@ -485,12 +617,29 @@ func (c *GameLift) DeleteBuildRequest(input *DeleteBuildInput) (req *request.Req return } +// DeleteBuild API operation for Amazon GameLift. +// // Deletes a build. This action permanently deletes the build record and any // uploaded build files. // // To delete a build, specify its ID. Deleting a build does not affect the // status of any active fleets using the build, but you can no longer create // new fleets with the deleted build. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon GameLift's +// API operation, DeleteBuild for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// UnauthorizedException +// NotFoundException +// InternalServiceException +// InvalidRequestException func (c *GameLift) DeleteBuild(input *DeleteBuildInput) (*DeleteBuildOutput, error) { req, out := c.DeleteBuildRequest(input) err := req.Send() @@ -540,11 +689,29 @@ func (c *GameLift) DeleteFleetRequest(input *DeleteFleetInput) (req *request.Req return } +// DeleteFleet API operation for Amazon GameLift. +// // Deletes everything related to a fleet. Before deleting a fleet, you must // set the fleet's desired capacity to zero. See UpdateFleetCapacity. // // This action removes the fleet's resources and the fleet record. Once a fleet // is deleted, you can no longer use that fleet. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon GameLift's +// API operation, DeleteFleet for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// NotFoundException +// InternalServiceException +// InvalidFleetStatusException +// UnauthorizedException +// InvalidRequestException func (c *GameLift) DeleteFleet(input *DeleteFleetInput) (*DeleteFleetOutput, error) { req, out := c.DeleteFleetRequest(input) err := req.Send() @@ -594,9 +761,26 @@ func (c *GameLift) DeleteScalingPolicyRequest(input *DeleteScalingPolicyInput) ( return } +// DeleteScalingPolicy API operation for Amazon GameLift. +// // Deletes a fleet scaling policy. This action means that the policy is no longer // in force and removes all record of it. To delete a scaling policy, specify // both the scaling policy name and the fleet ID it is associated with. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon GameLift's +// API operation, DeleteScalingPolicy for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InternalServiceException +// InvalidRequestException +// UnauthorizedException +// NotFoundException func (c *GameLift) DeleteScalingPolicy(input *DeleteScalingPolicyInput) (*DeleteScalingPolicyOutput, error) { req, out := c.DeleteScalingPolicyRequest(input) err := req.Send() @@ -644,8 +828,25 @@ func (c *GameLift) DescribeAliasRequest(input *DescribeAliasInput) (req *request return } +// DescribeAlias API operation for Amazon GameLift. +// // Retrieves properties for a specified alias. To get the alias, specify an // alias ID. If successful, an Alias object is returned. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon GameLift's +// API operation, DescribeAlias for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// UnauthorizedException +// InvalidRequestException +// NotFoundException +// InternalServiceException func (c *GameLift) DescribeAlias(input *DescribeAliasInput) (*DescribeAliasOutput, error) { req, out := c.DescribeAliasRequest(input) err := req.Send() @@ -693,8 +894,25 @@ func (c *GameLift) DescribeBuildRequest(input *DescribeBuildInput) (req *request return } +// DescribeBuild API operation for Amazon GameLift. +// // Retrieves properties for a build. To get a build record, specify a build // ID. If successful, an object containing the build properties is returned. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon GameLift's +// API operation, DescribeBuild for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// UnauthorizedException +// InvalidRequestException +// NotFoundException +// InternalServiceException func (c *GameLift) DescribeBuild(input *DescribeBuildInput) (*DescribeBuildOutput, error) { req, out := c.DescribeBuildRequest(input) err := req.Send() @@ -742,12 +960,28 @@ func (c *GameLift) DescribeEC2InstanceLimitsRequest(input *DescribeEC2InstanceLi return } +// DescribeEC2InstanceLimits API operation for Amazon GameLift. +// // Retrieves the following information for the specified EC2 instance type: // // maximum number of instances allowed per AWS account (service limit) current // usage level for the AWS account Service limits vary depending on region. // Available regions for GameLift can be found in the AWS Management Console // for GameLift (see the drop-down list in the upper right corner). +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon GameLift's +// API operation, DescribeEC2InstanceLimits for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidRequestException +// InternalServiceException +// UnauthorizedException func (c *GameLift) DescribeEC2InstanceLimits(input *DescribeEC2InstanceLimitsInput) (*DescribeEC2InstanceLimitsOutput, error) { req, out := c.DescribeEC2InstanceLimitsRequest(input) err := req.Send() @@ -795,6 +1029,8 @@ func (c *GameLift) DescribeFleetAttributesRequest(input *DescribeFleetAttributes return } +// DescribeFleetAttributes API operation for Amazon GameLift. +// // Retrieves fleet properties, including metadata, status, and configuration, // for one or more fleets. You can request attributes for all fleets, or specify // a list of one or more fleet IDs. When requesting multiple fleets, use the @@ -806,6 +1042,21 @@ func (c *GameLift) DescribeFleetAttributesRequest(input *DescribeFleetAttributes // Some API actions may limit the number of fleet IDs allowed in one request. // If a request exceeds this limit, the request fails and the error message // includes the maximum allowed. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon GameLift's +// API operation, DescribeFleetAttributes for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InternalServiceException +// NotFoundException +// InvalidRequestException +// UnauthorizedException func (c *GameLift) DescribeFleetAttributes(input *DescribeFleetAttributesInput) (*DescribeFleetAttributesOutput, error) { req, out := c.DescribeFleetAttributesRequest(input) err := req.Send() @@ -853,6 +1104,8 @@ func (c *GameLift) DescribeFleetCapacityRequest(input *DescribeFleetCapacityInpu return } +// DescribeFleetCapacity API operation for Amazon GameLift. +// // Retrieves the current status of fleet capacity for one or more fleets. This // information includes the number of instances that have been requested for // the fleet and the number currently active. You can request capacity for all @@ -865,6 +1118,21 @@ func (c *GameLift) DescribeFleetCapacityRequest(input *DescribeFleetCapacityInpu // Some API actions may limit the number of fleet IDs allowed in one request. // If a request exceeds this limit, the request fails and the error message // includes the maximum allowed. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon GameLift's +// API operation, DescribeFleetCapacity for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InternalServiceException +// NotFoundException +// InvalidRequestException +// UnauthorizedException func (c *GameLift) DescribeFleetCapacity(input *DescribeFleetCapacityInput) (*DescribeFleetCapacityOutput, error) { req, out := c.DescribeFleetCapacityRequest(input) err := req.Send() @@ -912,10 +1180,27 @@ func (c *GameLift) DescribeFleetEventsRequest(input *DescribeFleetEventsInput) ( return } +// DescribeFleetEvents API operation for Amazon GameLift. +// // Retrieves entries from the specified fleet's event log. You can specify a // time range to limit the result set. Use the pagination parameters to retrieve // results as a set of sequential pages. If successful, a collection of event // log entries matching the request are returned. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon GameLift's +// API operation, DescribeFleetEvents for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// NotFoundException +// InternalServiceException +// UnauthorizedException +// InvalidRequestException func (c *GameLift) DescribeFleetEvents(input *DescribeFleetEventsInput) (*DescribeFleetEventsOutput, error) { req, out := c.DescribeFleetEventsRequest(input) err := req.Send() @@ -963,12 +1248,29 @@ func (c *GameLift) DescribeFleetPortSettingsRequest(input *DescribeFleetPortSett return } +// DescribeFleetPortSettings API operation for Amazon GameLift. +// // Retrieves the inbound connection permissions for a fleet. Connection permissions // include a range of IP addresses and port settings that incoming traffic can // use to access server processes in the fleet. To get a fleet's inbound connection // permissions, specify a fleet ID. If successful, a collection of IpPermission // objects is returned for the requested fleet ID. If the requested fleet has // been deleted, the result set is empty. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon GameLift's +// API operation, DescribeFleetPortSettings for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InternalServiceException +// NotFoundException +// InvalidRequestException +// UnauthorizedException func (c *GameLift) DescribeFleetPortSettings(input *DescribeFleetPortSettingsInput) (*DescribeFleetPortSettingsOutput, error) { req, out := c.DescribeFleetPortSettingsRequest(input) err := req.Send() @@ -1016,6 +1318,8 @@ func (c *GameLift) DescribeFleetUtilizationRequest(input *DescribeFleetUtilizati return } +// DescribeFleetUtilization API operation for Amazon GameLift. +// // Retrieves utilization statistics for one or more fleets. You can request // utilization data for all fleets, or specify a list of one or more fleet IDs. // When requesting multiple fleets, use the pagination parameters to retrieve @@ -1026,6 +1330,21 @@ func (c *GameLift) DescribeFleetUtilizationRequest(input *DescribeFleetUtilizati // Some API actions may limit the number of fleet IDs allowed in one request. // If a request exceeds this limit, the request fails and the error message // includes the maximum allowed. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon GameLift's +// API operation, DescribeFleetUtilization for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InternalServiceException +// NotFoundException +// InvalidRequestException +// UnauthorizedException func (c *GameLift) DescribeFleetUtilization(input *DescribeFleetUtilizationInput) (*DescribeFleetUtilizationOutput, error) { req, out := c.DescribeFleetUtilizationRequest(input) err := req.Send() @@ -1073,6 +1392,8 @@ func (c *GameLift) DescribeGameSessionDetailsRequest(input *DescribeGameSessionD return } +// DescribeGameSessionDetails API operation for Amazon GameLift. +// // Retrieves properties, including the protection policy in force, for one or // more game sessions. This action can be used in several ways: (1) provide // a GameSessionId to request details for a specific game session; (2) provide @@ -1084,6 +1405,22 @@ func (c *GameLift) DescribeGameSessionDetailsRequest(input *DescribeGameSessionD // Use the pagination parameters to retrieve results as a set of sequential // pages. If successful, a GameSessionDetail object is returned for each session // matching the request. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon GameLift's +// API operation, DescribeGameSessionDetails for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InternalServiceException +// NotFoundException +// InvalidRequestException +// UnauthorizedException +// TerminalRoutingStrategyException func (c *GameLift) DescribeGameSessionDetails(input *DescribeGameSessionDetailsInput) (*DescribeGameSessionDetailsOutput, error) { req, out := c.DescribeGameSessionDetailsRequest(input) err := req.Send() @@ -1131,6 +1468,8 @@ func (c *GameLift) DescribeGameSessionsRequest(input *DescribeGameSessionsInput) return } +// DescribeGameSessions API operation for Amazon GameLift. +// // Retrieves properties for one or more game sessions. This action can be used // in several ways: (1) provide a GameSessionId to request properties for a // specific game session; (2) provide a FleetId or an AliasId to request properties @@ -1141,6 +1480,22 @@ func (c *GameLift) DescribeGameSessionsRequest(input *DescribeGameSessionsInput) // Use the pagination parameters to retrieve results as a set of sequential // pages. If successful, a GameSession object is returned for each session matching // the request. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon GameLift's +// API operation, DescribeGameSessions for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InternalServiceException +// NotFoundException +// InvalidRequestException +// UnauthorizedException +// TerminalRoutingStrategyException func (c *GameLift) DescribeGameSessions(input *DescribeGameSessionsInput) (*DescribeGameSessionsOutput, error) { req, out := c.DescribeGameSessionsRequest(input) err := req.Send() @@ -1188,6 +1543,8 @@ func (c *GameLift) DescribePlayerSessionsRequest(input *DescribePlayerSessionsIn return } +// DescribePlayerSessions API operation for Amazon GameLift. +// // Retrieves properties for one or more player sessions. This action can be // used in several ways: (1) provide a PlayerSessionId parameter to request // properties for a specific player session; (2) provide a GameSessionId parameter @@ -1200,6 +1557,21 @@ func (c *GameLift) DescribePlayerSessionsRequest(input *DescribePlayerSessionsIn // by player session status. Use the pagination parameters to retrieve results // as a set of sequential pages. If successful, a PlayerSession object is returned // for each session matching the request. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon GameLift's +// API operation, DescribePlayerSessions for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InternalServiceException +// NotFoundException +// InvalidRequestException +// UnauthorizedException func (c *GameLift) DescribePlayerSessions(input *DescribePlayerSessionsInput) (*DescribePlayerSessionsOutput, error) { req, out := c.DescribePlayerSessionsRequest(input) err := req.Send() @@ -1247,9 +1619,26 @@ func (c *GameLift) DescribeRuntimeConfigurationRequest(input *DescribeRuntimeCon return } +// DescribeRuntimeConfiguration API operation for Amazon GameLift. +// // Retrieves the current runtime configuration for the specified fleet. The // runtime configuration tells GameLift how to launch server processes on instances // in the fleet. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon GameLift's +// API operation, DescribeRuntimeConfiguration for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// UnauthorizedException +// NotFoundException +// InternalServiceException +// InvalidRequestException func (c *GameLift) DescribeRuntimeConfiguration(input *DescribeRuntimeConfigurationInput) (*DescribeRuntimeConfigurationOutput, error) { req, out := c.DescribeRuntimeConfigurationRequest(input) err := req.Send() @@ -1297,12 +1686,29 @@ func (c *GameLift) DescribeScalingPoliciesRequest(input *DescribeScalingPolicies return } +// DescribeScalingPolicies API operation for Amazon GameLift. +// // Retrieves all scaling policies applied to a fleet. // // To get a fleet's scaling policies, specify the fleet ID. You can filter // this request by policy status, such as to retrieve only active scaling policies. // Use the pagination parameters to retrieve results as a set of sequential // pages. If successful, set of ScalingPolicy objects is returned for the fleet. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon GameLift's +// API operation, DescribeScalingPolicies for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InternalServiceException +// InvalidRequestException +// UnauthorizedException +// NotFoundException func (c *GameLift) DescribeScalingPolicies(input *DescribeScalingPoliciesInput) (*DescribeScalingPoliciesOutput, error) { req, out := c.DescribeScalingPoliciesRequest(input) err := req.Send() @@ -1350,6 +1756,8 @@ func (c *GameLift) GetGameSessionLogUrlRequest(input *GetGameSessionLogUrlInput) return } +// GetGameSessionLogUrl API operation for Amazon GameLift. +// // Retrieves the location of stored game session logs for a specified game session. // When a game session is terminated, Amazon GameLift automatically stores the // logs in Amazon S3. Use this URL to download the logs. @@ -1357,6 +1765,21 @@ func (c *GameLift) GetGameSessionLogUrlRequest(input *GetGameSessionLogUrlInput) // See the AWS Service Limits (http://docs.aws.amazon.com/general/latest/gr/aws_service_limits.html#limits_gamelift) // page for maximum log file sizes. Log files that exceed this limit are not // saved. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon GameLift's +// API operation, GetGameSessionLogUrl for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InternalServiceException +// NotFoundException +// UnauthorizedException +// InvalidRequestException func (c *GameLift) GetGameSessionLogUrl(input *GetGameSessionLogUrlInput) (*GetGameSessionLogUrlOutput, error) { req, out := c.GetGameSessionLogUrlRequest(input) err := req.Send() @@ -1404,11 +1827,27 @@ func (c *GameLift) ListAliasesRequest(input *ListAliasesInput) (req *request.Req return } +// ListAliases API operation for Amazon GameLift. +// // Retrieves a collection of alias records for this AWS account. You can filter // the result set by alias name and/or routing strategy type. Use the pagination // parameters to retrieve results in sequential pages. // // Aliases are not listed in any particular order. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon GameLift's +// API operation, ListAliases for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// UnauthorizedException +// InvalidRequestException +// InternalServiceException func (c *GameLift) ListAliases(input *ListAliasesInput) (*ListAliasesOutput, error) { req, out := c.ListAliasesRequest(input) err := req.Send() @@ -1456,12 +1895,28 @@ func (c *GameLift) ListBuildsRequest(input *ListBuildsInput) (req *request.Reque return } +// ListBuilds API operation for Amazon GameLift. +// // Retrieves build records for all builds associated with the AWS account in // use. You can limit results to builds that are in a specific status by using // the Status parameter. Use the pagination parameters to retrieve results in // a set of sequential pages. // // Build records are not listed in any particular order. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon GameLift's +// API operation, ListBuilds for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// UnauthorizedException +// InvalidRequestException +// InternalServiceException func (c *GameLift) ListBuilds(input *ListBuildsInput) (*ListBuildsOutput, error) { req, out := c.ListBuildsRequest(input) err := req.Send() @@ -1509,11 +1964,28 @@ func (c *GameLift) ListFleetsRequest(input *ListFleetsInput) (req *request.Reque return } +// ListFleets API operation for Amazon GameLift. +// // Retrieves a collection of fleet records for this AWS account. You can filter // the result set by build ID. Use the pagination parameters to retrieve results // in sequential pages. // // Fleet records are not listed in any particular order. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon GameLift's +// API operation, ListFleets for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InternalServiceException +// NotFoundException +// InvalidRequestException +// UnauthorizedException func (c *GameLift) ListFleets(input *ListFleetsInput) (*ListFleetsOutput, error) { req, out := c.ListFleetsRequest(input) err := req.Send() @@ -1561,6 +2033,8 @@ func (c *GameLift) PutScalingPolicyRequest(input *PutScalingPolicyInput) (req *r return } +// PutScalingPolicy API operation for Amazon GameLift. +// // Creates or updates a scaling policy for a fleet. An active scaling policy // prompts Amazon GameLift to track a certain metric for a fleet and automatically // change the fleet's capacity in specific circumstances. Each scaling policy @@ -1583,6 +2057,21 @@ func (c *GameLift) PutScalingPolicyRequest(input *PutScalingPolicyInput) (req *r // and fleet ID, and set the rule values. All parameters for this action are // required. If successful, the policy name is returned. Scaling policies cannot // be suspended or made inactive. To stop enforcing a scaling policy, call DeleteScalingPolicy. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon GameLift's +// API operation, PutScalingPolicy for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InternalServiceException +// InvalidRequestException +// UnauthorizedException +// NotFoundException func (c *GameLift) PutScalingPolicy(input *PutScalingPolicyInput) (*PutScalingPolicyOutput, error) { req, out := c.PutScalingPolicyRequest(input) err := req.Send() @@ -1630,6 +2119,8 @@ func (c *GameLift) RequestUploadCredentialsRequest(input *RequestUploadCredentia return } +// RequestUploadCredentials API operation for Amazon GameLift. +// // Retrieves a fresh set of upload credentials and the assigned Amazon S3 storage // location for a specific build. Valid credentials are required to upload your // game build files to Amazon S3. @@ -1643,6 +2134,21 @@ func (c *GameLift) RequestUploadCredentialsRequest(input *RequestUploadCredentia // a limited lifespan. You can get fresh credentials and use them to re-upload // game files until the status of that build changes to READY. Once this happens, // you must create a brand new build. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon GameLift's +// API operation, RequestUploadCredentials for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// UnauthorizedException +// InvalidRequestException +// NotFoundException +// InternalServiceException func (c *GameLift) RequestUploadCredentials(input *RequestUploadCredentialsInput) (*RequestUploadCredentialsOutput, error) { req, out := c.RequestUploadCredentialsRequest(input) err := req.Send() @@ -1690,7 +2196,25 @@ func (c *GameLift) ResolveAliasRequest(input *ResolveAliasInput) (req *request.R return } +// ResolveAlias API operation for Amazon GameLift. +// // Retrieves the fleet ID that a specified alias is currently pointing to. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon GameLift's +// API operation, ResolveAlias for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// UnauthorizedException +// InvalidRequestException +// NotFoundException +// TerminalRoutingStrategyException +// InternalServiceException func (c *GameLift) ResolveAlias(input *ResolveAliasInput) (*ResolveAliasOutput, error) { req, out := c.ResolveAliasRequest(input) err := req.Send() @@ -1738,6 +2262,8 @@ func (c *GameLift) SearchGameSessionsRequest(input *SearchGameSessionsInput) (re return } +// SearchGameSessions API operation for Amazon GameLift. +// // Retrieves a list of game sessions in a fleet that match a set of search criteria // and sorts them in a specified order. Currently game session searches are // limited to a single fleet. Search results include only game sessions that @@ -1770,6 +2296,22 @@ func (c *GameLift) SearchGameSessionsRequest(input *SearchGameSessionsInput) (re // quickly as players join sessions and others drop out. Results should be considered // a snapshot in time. Be sure to refresh search results often, and handle sessions // that fill up before a player can join. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon GameLift's +// API operation, SearchGameSessions for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InternalServiceException +// NotFoundException +// InvalidRequestException +// UnauthorizedException +// TerminalRoutingStrategyException func (c *GameLift) SearchGameSessions(input *SearchGameSessionsInput) (*SearchGameSessionsOutput, error) { req, out := c.SearchGameSessionsRequest(input) err := req.Send() @@ -1817,10 +2359,27 @@ func (c *GameLift) UpdateAliasRequest(input *UpdateAliasInput) (req *request.Req return } +// UpdateAlias API operation for Amazon GameLift. +// // Updates properties for an alias. To update properties, specify the alias // ID to be updated and provide the information to be changed. To reassign an // alias to another fleet, provide an updated routing strategy. If successful, // the updated alias record is returned. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon GameLift's +// API operation, UpdateAlias for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// UnauthorizedException +// InvalidRequestException +// NotFoundException +// InternalServiceException func (c *GameLift) UpdateAlias(input *UpdateAliasInput) (*UpdateAliasOutput, error) { req, out := c.UpdateAliasRequest(input) err := req.Send() @@ -1868,10 +2427,27 @@ func (c *GameLift) UpdateBuildRequest(input *UpdateBuildInput) (req *request.Req return } +// UpdateBuild API operation for Amazon GameLift. +// // Updates metadata in a build record, including the build name and version. // To update the metadata, specify the build ID to update and provide the new // values. If successful, a build object containing the updated metadata is // returned. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon GameLift's +// API operation, UpdateBuild for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// UnauthorizedException +// InvalidRequestException +// NotFoundException +// InternalServiceException func (c *GameLift) UpdateBuild(input *UpdateBuildInput) (*UpdateBuildOutput, error) { req, out := c.UpdateBuildRequest(input) err := req.Send() @@ -1919,9 +2495,29 @@ func (c *GameLift) UpdateFleetAttributesRequest(input *UpdateFleetAttributesInpu return } +// UpdateFleetAttributes API operation for Amazon GameLift. +// // Updates fleet properties, including name and description, for a fleet. To // update metadata, specify the fleet ID and the property values you want to // change. If successful, the fleet ID for the updated fleet is returned. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon GameLift's +// API operation, UpdateFleetAttributes for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// NotFoundException +// ConflictException +// InvalidFleetStatusException +// LimitExceededException +// InternalServiceException +// InvalidRequestException +// UnauthorizedException func (c *GameLift) UpdateFleetAttributes(input *UpdateFleetAttributesInput) (*UpdateFleetAttributesOutput, error) { req, out := c.UpdateFleetAttributesRequest(input) err := req.Send() @@ -1969,6 +2565,8 @@ func (c *GameLift) UpdateFleetCapacityRequest(input *UpdateFleetCapacityInput) ( return } +// UpdateFleetCapacity API operation for Amazon GameLift. +// // Updates capacity settings for a fleet. Use this action to specify the number // of EC2 instances (hosts) that you want this fleet to contain. Before calling // this action, you may want to call DescribeEC2InstanceLimits to get the maximum @@ -1984,6 +2582,24 @@ func (c *GameLift) UpdateFleetCapacityRequest(input *UpdateFleetCapacityInput) ( // count. You can view a fleet's current capacity information by calling DescribeFleetCapacity. // If the desired instance count is higher than the instance type's limit, the // "Limit Exceeded" exception occurs. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon GameLift's +// API operation, UpdateFleetCapacity for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// NotFoundException +// ConflictException +// LimitExceededException +// InvalidFleetStatusException +// InternalServiceException +// InvalidRequestException +// UnauthorizedException func (c *GameLift) UpdateFleetCapacity(input *UpdateFleetCapacityInput) (*UpdateFleetCapacityOutput, error) { req, out := c.UpdateFleetCapacityRequest(input) err := req.Send() @@ -2031,12 +2647,32 @@ func (c *GameLift) UpdateFleetPortSettingsRequest(input *UpdateFleetPortSettings return } +// UpdateFleetPortSettings API operation for Amazon GameLift. +// // Updates port settings for a fleet. To update settings, specify the fleet // ID to be updated and list the permissions you want to update. List the permissions // you want to add in InboundPermissionAuthorizations, and permissions you want // to remove in InboundPermissionRevocations. Permissions to be removed must // match existing fleet permissions. If successful, the fleet ID for the updated // fleet is returned. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon GameLift's +// API operation, UpdateFleetPortSettings for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// NotFoundException +// ConflictException +// InvalidFleetStatusException +// LimitExceededException +// InternalServiceException +// InvalidRequestException +// UnauthorizedException func (c *GameLift) UpdateFleetPortSettings(input *UpdateFleetPortSettingsInput) (*UpdateFleetPortSettingsOutput, error) { req, out := c.UpdateFleetPortSettingsRequest(input) err := req.Send() @@ -2084,6 +2720,8 @@ func (c *GameLift) UpdateGameSessionRequest(input *UpdateGameSessionInput) (req return } +// UpdateGameSession API operation for Amazon GameLift. +// // Updates game session properties. This includes the session name, maximum // player count, protection policy, which controls whether or not an active // game session can be terminated during a scale-down event, and the player @@ -2091,6 +2729,23 @@ func (c *GameLift) UpdateGameSessionRequest(input *UpdateGameSessionInput) (req // the session. To update a game session, specify the game session ID and the // values you want to change. If successful, an updated GameSession object is // returned. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon GameLift's +// API operation, UpdateGameSession for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// NotFoundException +// ConflictException +// InternalServiceException +// UnauthorizedException +// InvalidGameSessionStatusException +// InvalidRequestException func (c *GameLift) UpdateGameSession(input *UpdateGameSessionInput) (*UpdateGameSessionOutput, error) { req, out := c.UpdateGameSessionRequest(input) err := req.Send() @@ -2138,6 +2793,8 @@ func (c *GameLift) UpdateRuntimeConfigurationRequest(input *UpdateRuntimeConfigu return } +// UpdateRuntimeConfiguration API operation for Amazon GameLift. +// // Updates the current runtime configuration for the specified fleet, which // tells GameLift how to launch server processes on instances in the fleet. // You can update a fleet's runtime configuration at any time after the fleet @@ -2153,6 +2810,22 @@ func (c *GameLift) UpdateRuntimeConfigurationRequest(input *UpdateRuntimeConfigu // processes to fit the current runtime configuration. As a result, the runtime // configuration changes are applied gradually as existing processes shut down // and new processes are launched in GameLift's normal process recycling activity. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon GameLift's +// API operation, UpdateRuntimeConfiguration for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// UnauthorizedException +// NotFoundException +// InternalServiceException +// InvalidRequestException +// InvalidFleetStatusException func (c *GameLift) UpdateRuntimeConfiguration(input *UpdateRuntimeConfigurationInput) (*UpdateRuntimeConfigurationOutput, error) { req, out := c.UpdateRuntimeConfigurationRequest(input) err := req.Send() diff --git a/service/glacier/api.go b/service/glacier/api.go index 6e575ec72a1..44e929e1c42 100644 --- a/service/glacier/api.go +++ b/service/glacier/api.go @@ -55,6 +55,8 @@ func (c *Glacier) AbortMultipartUploadRequest(input *AbortMultipartUploadInput) return } +// AbortMultipartUpload API operation for Amazon Glacier. +// // This operation aborts a multipart upload identified by the upload ID. // // After the Abort Multipart Upload request succeeds, you cannot upload any @@ -75,6 +77,21 @@ func (c *Glacier) AbortMultipartUploadRequest(input *AbortMultipartUploadInput) // Archives in Amazon Glacier (http://docs.aws.amazon.com/amazonglacier/latest/dev/working-with-archives.html) // and Abort Multipart Upload (http://docs.aws.amazon.com/amazonglacier/latest/dev/api-multipart-abort-upload.html) // in the Amazon Glacier Developer Guide. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Glacier's +// API operation, AbortMultipartUpload for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ResourceNotFoundException +// InvalidParameterValueException +// MissingParameterValueException +// ServiceUnavailableException func (c *Glacier) AbortMultipartUpload(input *AbortMultipartUploadInput) (*AbortMultipartUploadOutput, error) { req, out := c.AbortMultipartUploadRequest(input) err := req.Send() @@ -124,6 +141,8 @@ func (c *Glacier) AbortVaultLockRequest(input *AbortVaultLockInput) (req *reques return } +// AbortVaultLock API operation for Amazon Glacier. +// // This operation aborts the vault locking process if the vault lock is not // in the Locked state. If the vault lock is in the Locked state when this operation // is requested, the operation returns an AccessDeniedException error. Aborting @@ -140,6 +159,21 @@ func (c *Glacier) AbortVaultLockRequest(input *AbortVaultLockInput) (req *reques // This operation is idempotent. You can successfully invoke this operation // multiple times, if the vault lock is in the InProgress state or if there // is no policy associated with the vault. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Glacier's +// API operation, AbortVaultLock for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ResourceNotFoundException +// InvalidParameterValueException +// MissingParameterValueException +// ServiceUnavailableException func (c *Glacier) AbortVaultLock(input *AbortVaultLockInput) (*AbortVaultLockOutput, error) { req, out := c.AbortVaultLockRequest(input) err := req.Send() @@ -189,12 +223,30 @@ func (c *Glacier) AddTagsToVaultRequest(input *AddTagsToVaultInput) (req *reques return } +// AddTagsToVault API operation for Amazon Glacier. +// // This operation adds the specified tags to a vault. Each tag is composed of // a key and a value. Each vault can have up to 10 tags. If your request would // cause the tag limit for the vault to be exceeded, the operation throws the // LimitExceededException error. If a tag already exists on the vault under // a specified key, the existing key value will be overwritten. For more information // about tags, see Tagging Amazon Glacier Resources (http://docs.aws.amazon.com/amazonglacier/latest/dev/tagging.html). +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Glacier's +// API operation, AddTagsToVault for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidParameterValueException +// MissingParameterValueException +// ResourceNotFoundException +// LimitExceededException +// ServiceUnavailableException func (c *Glacier) AddTagsToVault(input *AddTagsToVaultInput) (*AddTagsToVaultOutput, error) { req, out := c.AddTagsToVaultRequest(input) err := req.Send() @@ -242,6 +294,8 @@ func (c *Glacier) CompleteMultipartUploadRequest(input *CompleteMultipartUploadI return } +// CompleteMultipartUpload API operation for Amazon Glacier. +// // You call this operation to inform Amazon Glacier that all the archive parts // have been uploaded and that Amazon Glacier can now assemble the archive from // the uploaded parts. After assembling and saving the archive to the vault, @@ -286,6 +340,21 @@ func (c *Glacier) CompleteMultipartUploadRequest(input *CompleteMultipartUploadI // Archives in Parts (Multipart Upload) (http://docs.aws.amazon.com/amazonglacier/latest/dev/uploading-archive-mpu.html) // and Complete Multipart Upload (http://docs.aws.amazon.com/amazonglacier/latest/dev/api-multipart-complete-upload.html) // in the Amazon Glacier Developer Guide. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Glacier's +// API operation, CompleteMultipartUpload for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ResourceNotFoundException +// InvalidParameterValueException +// MissingParameterValueException +// ServiceUnavailableException func (c *Glacier) CompleteMultipartUpload(input *CompleteMultipartUploadInput) (*ArchiveCreationOutput, error) { req, out := c.CompleteMultipartUploadRequest(input) err := req.Send() @@ -335,6 +404,8 @@ func (c *Glacier) CompleteVaultLockRequest(input *CompleteVaultLockInput) (req * return } +// CompleteVaultLock API operation for Amazon Glacier. +// // This operation completes the vault locking process by transitioning the vault // lock from the InProgress state to the Locked state, which causes the vault // lock policy to become unchangeable. A vault lock is put into the InProgress @@ -350,6 +421,21 @@ func (c *Glacier) CompleteVaultLockRequest(input *CompleteVaultLockInput) (req * // the Locked state, the operation returns an AccessDeniedException error. If // an invalid lock ID is passed in the request when the vault lock is in the // InProgress state, the operation throws an InvalidParameter error. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Glacier's +// API operation, CompleteVaultLock for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ResourceNotFoundException +// InvalidParameterValueException +// MissingParameterValueException +// ServiceUnavailableException func (c *Glacier) CompleteVaultLock(input *CompleteVaultLockInput) (*CompleteVaultLockOutput, error) { req, out := c.CompleteVaultLockRequest(input) err := req.Send() @@ -397,6 +483,8 @@ func (c *Glacier) CreateVaultRequest(input *CreateVaultInput) (req *request.Requ return } +// CreateVault API operation for Amazon Glacier. +// // This operation creates a new vault with the specified name. The name of the // vault must be unique within a region for an AWS account. You can create up // to 1,000 vaults per account. If you need to create more vaults, contact Amazon @@ -421,6 +509,21 @@ func (c *Glacier) CreateVaultRequest(input *CreateVaultInput) (req *request.Requ // in Amazon Glacier (http://docs.aws.amazon.com/amazonglacier/latest/dev/creating-vaults.html) // and Create Vault (http://docs.aws.amazon.com/amazonglacier/latest/dev/api-vault-put.html) // in the Amazon Glacier Developer Guide. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Glacier's +// API operation, CreateVault for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidParameterValueException +// MissingParameterValueException +// ServiceUnavailableException +// LimitExceededException func (c *Glacier) CreateVault(input *CreateVaultInput) (*CreateVaultOutput, error) { req, out := c.CreateVaultRequest(input) err := req.Send() @@ -470,6 +573,8 @@ func (c *Glacier) DeleteArchiveRequest(input *DeleteArchiveInput) (req *request. return } +// DeleteArchive API operation for Amazon Glacier. +// // This operation deletes an archive from a vault. Subsequent requests to initiate // a retrieval of this archive will fail. Archive retrievals that are in progress // for this archive ID may or may not succeed according to the following scenarios: @@ -491,6 +596,21 @@ func (c *Glacier) DeleteArchiveRequest(input *DeleteArchiveInput) (req *request. // in Amazon Glacier (http://docs.aws.amazon.com/amazonglacier/latest/dev/deleting-an-archive.html) // and Delete Archive (http://docs.aws.amazon.com/amazonglacier/latest/dev/api-archive-delete.html) // in the Amazon Glacier Developer Guide. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Glacier's +// API operation, DeleteArchive for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ResourceNotFoundException +// InvalidParameterValueException +// MissingParameterValueException +// ServiceUnavailableException func (c *Glacier) DeleteArchive(input *DeleteArchiveInput) (*DeleteArchiveOutput, error) { req, out := c.DeleteArchiveRequest(input) err := req.Send() @@ -540,6 +660,8 @@ func (c *Glacier) DeleteVaultRequest(input *DeleteVaultInput) (req *request.Requ return } +// DeleteVault API operation for Amazon Glacier. +// // This operation deletes a vault. Amazon Glacier will delete a vault only if // there are no archives in the vault as of the last inventory and there have // been no writes to the vault since the last inventory. If either of these @@ -563,6 +685,21 @@ func (c *Glacier) DeleteVaultRequest(input *DeleteVaultInput) (req *request.Requ // in Amazon Glacier (http://docs.aws.amazon.com/amazonglacier/latest/dev/deleting-vaults.html) // and Delete Vault (http://docs.aws.amazon.com/amazonglacier/latest/dev/api-vault-delete.html) // in the Amazon Glacier Developer Guide. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Glacier's +// API operation, DeleteVault for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ResourceNotFoundException +// InvalidParameterValueException +// MissingParameterValueException +// ServiceUnavailableException func (c *Glacier) DeleteVault(input *DeleteVaultInput) (*DeleteVaultOutput, error) { req, out := c.DeleteVaultRequest(input) err := req.Send() @@ -612,6 +749,8 @@ func (c *Glacier) DeleteVaultAccessPolicyRequest(input *DeleteVaultAccessPolicyI return } +// DeleteVaultAccessPolicy API operation for Amazon Glacier. +// // This operation deletes the access policy associated with the specified vault. // The operation is eventually consistent; that is, it might take some time // for Amazon Glacier to completely remove the access policy, and you might @@ -622,6 +761,21 @@ func (c *Glacier) DeleteVaultAccessPolicyRequest(input *DeleteVaultAccessPolicyI // if there is no policy associated with the vault. For more information about // vault access policies, see Amazon Glacier Access Control with Vault Access // Policies (http://docs.aws.amazon.com/amazonglacier/latest/dev/vault-access-policy.html). +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Glacier's +// API operation, DeleteVaultAccessPolicy for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ResourceNotFoundException +// InvalidParameterValueException +// MissingParameterValueException +// ServiceUnavailableException func (c *Glacier) DeleteVaultAccessPolicy(input *DeleteVaultAccessPolicyInput) (*DeleteVaultAccessPolicyOutput, error) { req, out := c.DeleteVaultAccessPolicyRequest(input) err := req.Send() @@ -671,6 +825,8 @@ func (c *Glacier) DeleteVaultNotificationsRequest(input *DeleteVaultNotification return } +// DeleteVaultNotifications API operation for Amazon Glacier. +// // This operation deletes the notification configuration set for a vault. The // operation is eventually consistent; that is, it might take some time for // Amazon Glacier to completely disable the notifications and you might still @@ -686,6 +842,21 @@ func (c *Glacier) DeleteVaultNotificationsRequest(input *DeleteVaultNotification // Notifications in Amazon Glacier (http://docs.aws.amazon.com/amazonglacier/latest/dev/configuring-notifications.html) // and Delete Vault Notification Configuration (http://docs.aws.amazon.com/amazonglacier/latest/dev/api-vault-notifications-delete.html) // in the Amazon Glacier Developer Guide. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Glacier's +// API operation, DeleteVaultNotifications for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ResourceNotFoundException +// InvalidParameterValueException +// MissingParameterValueException +// ServiceUnavailableException func (c *Glacier) DeleteVaultNotifications(input *DeleteVaultNotificationsInput) (*DeleteVaultNotificationsOutput, error) { req, out := c.DeleteVaultNotificationsRequest(input) err := req.Send() @@ -733,6 +904,8 @@ func (c *Glacier) DescribeJobRequest(input *DescribeJobInput) (req *request.Requ return } +// DescribeJob API operation for Amazon Glacier. +// // This operation returns information about a job you previously initiated, // including the job initiation date, the user who initiated the job, the job // status code/message and the Amazon SNS topic to notify after Amazon Glacier @@ -755,6 +928,21 @@ func (c *Glacier) DescribeJobRequest(input *DescribeJobInput) (req *request.Requ // For information about the underlying REST API, go to Working with Archives // in Amazon Glacier (http://docs.aws.amazon.com/amazonglacier/latest/dev/api-describe-job-get.html) // in the Amazon Glacier Developer Guide. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Glacier's +// API operation, DescribeJob for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ResourceNotFoundException +// InvalidParameterValueException +// MissingParameterValueException +// ServiceUnavailableException func (c *Glacier) DescribeJob(input *DescribeJobInput) (*JobDescription, error) { req, out := c.DescribeJobRequest(input) err := req.Send() @@ -802,6 +990,8 @@ func (c *Glacier) DescribeVaultRequest(input *DescribeVaultInput) (req *request. return } +// DescribeVault API operation for Amazon Glacier. +// // This operation returns information about a vault, including the vault's Amazon // Resource Name (ARN), the date the vault was created, the number of archives // it contains, and the total size of all the archives in the vault. The number @@ -822,6 +1012,21 @@ func (c *Glacier) DescribeVaultRequest(input *DescribeVaultInput) (req *request. // Metadata in Amazon Glacier (http://docs.aws.amazon.com/amazonglacier/latest/dev/retrieving-vault-info.html) // and Describe Vault (http://docs.aws.amazon.com/amazonglacier/latest/dev/api-vault-get.html) // in the Amazon Glacier Developer Guide. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Glacier's +// API operation, DescribeVault for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ResourceNotFoundException +// InvalidParameterValueException +// MissingParameterValueException +// ServiceUnavailableException func (c *Glacier) DescribeVault(input *DescribeVaultInput) (*DescribeVaultOutput, error) { req, out := c.DescribeVaultRequest(input) err := req.Send() @@ -869,9 +1074,25 @@ func (c *Glacier) GetDataRetrievalPolicyRequest(input *GetDataRetrievalPolicyInp return } +// GetDataRetrievalPolicy API operation for Amazon Glacier. +// // This operation returns the current data retrieval policy for the account // and region specified in the GET request. For more information about data // retrieval policies, see Amazon Glacier Data Retrieval Policies (http://docs.aws.amazon.com/amazonglacier/latest/dev/data-retrieval-policy.html). +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Glacier's +// API operation, GetDataRetrievalPolicy for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidParameterValueException +// MissingParameterValueException +// ServiceUnavailableException func (c *Glacier) GetDataRetrievalPolicy(input *GetDataRetrievalPolicyInput) (*GetDataRetrievalPolicyOutput, error) { req, out := c.GetDataRetrievalPolicyRequest(input) err := req.Send() @@ -919,6 +1140,8 @@ func (c *Glacier) GetJobOutputRequest(input *GetJobOutputInput) (req *request.Re return } +// GetJobOutput API operation for Amazon Glacier. +// // This operation downloads the output of the job you initiated using InitiateJob. // Depending on the job type you specified when you initiated the job, the output // will be either the content of an archive or a vault inventory. @@ -963,6 +1186,21 @@ func (c *Glacier) GetJobOutputRequest(input *GetJobOutputInput) (req *request.Re // a Vault Inventory (http://docs.aws.amazon.com/amazonglacier/latest/dev/vault-inventory.html), // Downloading an Archive (http://docs.aws.amazon.com/amazonglacier/latest/dev/downloading-an-archive.html), // and Get Job Output (http://docs.aws.amazon.com/amazonglacier/latest/dev/api-job-output-get.html) +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Glacier's +// API operation, GetJobOutput for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ResourceNotFoundException +// InvalidParameterValueException +// MissingParameterValueException +// ServiceUnavailableException func (c *Glacier) GetJobOutput(input *GetJobOutputInput) (*GetJobOutputOutput, error) { req, out := c.GetJobOutputRequest(input) err := req.Send() @@ -1010,12 +1248,29 @@ func (c *Glacier) GetVaultAccessPolicyRequest(input *GetVaultAccessPolicyInput) return } +// GetVaultAccessPolicy API operation for Amazon Glacier. +// // This operation retrieves the access-policy subresource set on the vault; // for more information on setting this subresource, see Set Vault Access Policy // (PUT access-policy) (http://docs.aws.amazon.com/amazonglacier/latest/dev/api-SetVaultAccessPolicy.html). // If there is no access policy set on the vault, the operation returns a 404 // Not found error. For more information about vault access policies, see Amazon // Glacier Access Control with Vault Access Policies (http://docs.aws.amazon.com/amazonglacier/latest/dev/vault-access-policy.html). +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Glacier's +// API operation, GetVaultAccessPolicy for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ResourceNotFoundException +// InvalidParameterValueException +// MissingParameterValueException +// ServiceUnavailableException func (c *Glacier) GetVaultAccessPolicy(input *GetVaultAccessPolicyInput) (*GetVaultAccessPolicyOutput, error) { req, out := c.GetVaultAccessPolicyRequest(input) err := req.Send() @@ -1063,6 +1318,8 @@ func (c *Glacier) GetVaultLockRequest(input *GetVaultLockInput) (req *request.Re return } +// GetVaultLock API operation for Amazon Glacier. +// // This operation retrieves the following attributes from the lock-policy subresource // set on the specified vault: The vault lock policy set on the vault. // @@ -1081,6 +1338,21 @@ func (c *Glacier) GetVaultLockRequest(input *GetVaultLockInput) (req *request.Re // If there is no vault lock policy set on the vault, the operation returns // a 404 Not found error. For more information about vault lock policies, Amazon // Glacier Access Control with Vault Lock Policies (http://docs.aws.amazon.com/amazonglacier/latest/dev/vault-lock-policy.html). +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Glacier's +// API operation, GetVaultLock for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ResourceNotFoundException +// InvalidParameterValueException +// MissingParameterValueException +// ServiceUnavailableException func (c *Glacier) GetVaultLock(input *GetVaultLockInput) (*GetVaultLockOutput, error) { req, out := c.GetVaultLockRequest(input) err := req.Send() @@ -1128,6 +1400,8 @@ func (c *Glacier) GetVaultNotificationsRequest(input *GetVaultNotificationsInput return } +// GetVaultNotifications API operation for Amazon Glacier. +// // This operation retrieves the notification-configuration subresource of the // specified vault. // @@ -1147,6 +1421,21 @@ func (c *Glacier) GetVaultNotificationsRequest(input *GetVaultNotificationsInput // Notifications in Amazon Glacier (http://docs.aws.amazon.com/amazonglacier/latest/dev/configuring-notifications.html) // and Get Vault Notification Configuration (http://docs.aws.amazon.com/amazonglacier/latest/dev/api-vault-notifications-get.html) // in the Amazon Glacier Developer Guide. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Glacier's +// API operation, GetVaultNotifications for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ResourceNotFoundException +// InvalidParameterValueException +// MissingParameterValueException +// ServiceUnavailableException func (c *Glacier) GetVaultNotifications(input *GetVaultNotificationsInput) (*GetVaultNotificationsOutput, error) { req, out := c.GetVaultNotificationsRequest(input) err := req.Send() @@ -1194,6 +1483,8 @@ func (c *Glacier) InitiateJobRequest(input *InitiateJobInput) (req *request.Requ return } +// InitiateJob API operation for Amazon Glacier. +// // This operation initiates a job of the specified type. In this release, you // can initiate a job to retrieve either an archive or a vault inventory (a // list of archives in a vault). @@ -1310,6 +1601,22 @@ func (c *Glacier) InitiateJobRequest(input *InitiateJobInput) (req *request.Requ // For conceptual information and the underlying REST API, go to Initiate a // Job (http://docs.aws.amazon.com/amazonglacier/latest/dev/api-initiate-job-post.html) // and Downloading a Vault Inventory (http://docs.aws.amazon.com/amazonglacier/latest/dev/vault-inventory.html) +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Glacier's +// API operation, InitiateJob for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ResourceNotFoundException +// PolicyEnforcedException +// InvalidParameterValueException +// MissingParameterValueException +// ServiceUnavailableException func (c *Glacier) InitiateJob(input *InitiateJobInput) (*InitiateJobOutput, error) { req, out := c.InitiateJobRequest(input) err := req.Send() @@ -1357,6 +1664,8 @@ func (c *Glacier) InitiateMultipartUploadRequest(input *InitiateMultipartUploadI return } +// InitiateMultipartUpload API operation for Amazon Glacier. +// // This operation initiates a multipart upload. Amazon Glacier creates a multipart // upload resource and returns its ID in the response. The multipart upload // ID is used in subsequent requests to upload parts of an archive (see UploadMultipartPart). @@ -1392,6 +1701,21 @@ func (c *Glacier) InitiateMultipartUploadRequest(input *InitiateMultipartUploadI // Archives in Parts (Multipart Upload) (http://docs.aws.amazon.com/amazonglacier/latest/dev/uploading-archive-mpu.html) // and Initiate Multipart Upload (http://docs.aws.amazon.com/amazonglacier/latest/dev/api-multipart-initiate-upload.html) // in the Amazon Glacier Developer Guide. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Glacier's +// API operation, InitiateMultipartUpload for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ResourceNotFoundException +// InvalidParameterValueException +// MissingParameterValueException +// ServiceUnavailableException func (c *Glacier) InitiateMultipartUpload(input *InitiateMultipartUploadInput) (*InitiateMultipartUploadOutput, error) { req, out := c.InitiateMultipartUploadRequest(input) err := req.Send() @@ -1439,6 +1763,8 @@ func (c *Glacier) InitiateVaultLockRequest(input *InitiateVaultLockInput) (req * return } +// InitiateVaultLock API operation for Amazon Glacier. +// // This operation initiates the vault locking process by doing the following: // Installing a vault lock policy on the specified vault. // @@ -1467,6 +1793,21 @@ func (c *Glacier) InitiateVaultLockRequest(input *InitiateVaultLockInput) (req * // the operation returns an AccessDeniedException error. When the vault lock // is in the InProgress state you must call AbortVaultLock before you can initiate // a new vault lock policy. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Glacier's +// API operation, InitiateVaultLock for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ResourceNotFoundException +// InvalidParameterValueException +// MissingParameterValueException +// ServiceUnavailableException func (c *Glacier) InitiateVaultLock(input *InitiateVaultLockInput) (*InitiateVaultLockOutput, error) { req, out := c.InitiateVaultLockRequest(input) err := req.Send() @@ -1520,6 +1861,8 @@ func (c *Glacier) ListJobsRequest(input *ListJobsInput) (req *request.Request, o return } +// ListJobs API operation for Amazon Glacier. +// // This operation lists jobs for a vault, including jobs that are in-progress // and jobs that have recently finished. // @@ -1560,6 +1903,21 @@ func (c *Glacier) ListJobsRequest(input *ListJobsInput) (req *request.Request, o // (IAM) (http://docs.aws.amazon.com/amazonglacier/latest/dev/using-iam-with-amazon-glacier.html). // // For the underlying REST API, go to List Jobs (http://docs.aws.amazon.com/amazonglacier/latest/dev/api-jobs-get.html) +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Glacier's +// API operation, ListJobs for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ResourceNotFoundException +// InvalidParameterValueException +// MissingParameterValueException +// ServiceUnavailableException func (c *Glacier) ListJobs(input *ListJobsInput) (*ListJobsOutput, error) { req, out := c.ListJobsRequest(input) err := req.Send() @@ -1638,6 +1996,8 @@ func (c *Glacier) ListMultipartUploadsRequest(input *ListMultipartUploadsInput) return } +// ListMultipartUploads API operation for Amazon Glacier. +// // This operation lists in-progress multipart uploads for the specified vault. // An in-progress multipart upload is a multipart upload that has been initiated // by an InitiateMultipartUpload request, but has not yet been completed or @@ -1668,6 +2028,21 @@ func (c *Glacier) ListMultipartUploadsRequest(input *ListMultipartUploadsInput) // Archives in Amazon Glacier (http://docs.aws.amazon.com/amazonglacier/latest/dev/working-with-archives.html) // and List Multipart Uploads (http://docs.aws.amazon.com/amazonglacier/latest/dev/api-multipart-list-uploads.html) // in the Amazon Glacier Developer Guide. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Glacier's +// API operation, ListMultipartUploads for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ResourceNotFoundException +// InvalidParameterValueException +// MissingParameterValueException +// ServiceUnavailableException func (c *Glacier) ListMultipartUploads(input *ListMultipartUploadsInput) (*ListMultipartUploadsOutput, error) { req, out := c.ListMultipartUploadsRequest(input) err := req.Send() @@ -1746,6 +2121,8 @@ func (c *Glacier) ListPartsRequest(input *ListPartsInput) (req *request.Request, return } +// ListParts API operation for Amazon Glacier. +// // This operation lists the parts of an archive that have been uploaded in a // specific multipart upload. You can make this request at any time during an // in-progress multipart upload before you complete the upload (see CompleteMultipartUpload. @@ -1770,6 +2147,21 @@ func (c *Glacier) ListPartsRequest(input *ListPartsInput) (req *request.Request, // Archives in Amazon Glacier (http://docs.aws.amazon.com/amazonglacier/latest/dev/working-with-archives.html) // and List Parts (http://docs.aws.amazon.com/amazonglacier/latest/dev/api-multipart-list-parts.html) // in the Amazon Glacier Developer Guide. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Glacier's +// API operation, ListParts for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ResourceNotFoundException +// InvalidParameterValueException +// MissingParameterValueException +// ServiceUnavailableException func (c *Glacier) ListParts(input *ListPartsInput) (*ListPartsOutput, error) { req, out := c.ListPartsRequest(input) err := req.Send() @@ -1842,9 +2234,26 @@ func (c *Glacier) ListTagsForVaultRequest(input *ListTagsForVaultInput) (req *re return } +// ListTagsForVault API operation for Amazon Glacier. +// // This operation lists all the tags attached to a vault. The operation returns // an empty map if there are no tags. For more information about tags, see Tagging // Amazon Glacier Resources (http://docs.aws.amazon.com/amazonglacier/latest/dev/tagging.html). +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Glacier's +// API operation, ListTagsForVault for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidParameterValueException +// MissingParameterValueException +// ResourceNotFoundException +// ServiceUnavailableException func (c *Glacier) ListTagsForVault(input *ListTagsForVaultInput) (*ListTagsForVaultOutput, error) { req, out := c.ListTagsForVaultRequest(input) err := req.Send() @@ -1898,6 +2307,8 @@ func (c *Glacier) ListVaultsRequest(input *ListVaultsInput) (req *request.Reques return } +// ListVaults API operation for Amazon Glacier. +// // This operation lists all vaults owned by the calling user's account. The // list returned in the response is ASCII-sorted by vault name. // @@ -1920,6 +2331,21 @@ func (c *Glacier) ListVaultsRequest(input *ListVaultsInput) (req *request.Reques // Metadata in Amazon Glacier (http://docs.aws.amazon.com/amazonglacier/latest/dev/retrieving-vault-info.html) // and List Vaults (http://docs.aws.amazon.com/amazonglacier/latest/dev/api-vaults-get.html) // in the Amazon Glacier Developer Guide. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Glacier's +// API operation, ListVaults for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ResourceNotFoundException +// InvalidParameterValueException +// MissingParameterValueException +// ServiceUnavailableException func (c *Glacier) ListVaults(input *ListVaultsInput) (*ListVaultsOutput, error) { req, out := c.ListVaultsRequest(input) err := req.Send() @@ -1994,11 +2420,28 @@ func (c *Glacier) RemoveTagsFromVaultRequest(input *RemoveTagsFromVaultInput) (r return } +// RemoveTagsFromVault API operation for Amazon Glacier. +// // This operation removes one or more tags from the set of tags attached to // a vault. For more information about tags, see Tagging Amazon Glacier Resources // (http://docs.aws.amazon.com/amazonglacier/latest/dev/tagging.html). This // operation is idempotent. The operation will be successful, even if there // are no tags attached to the vault. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Glacier's +// API operation, RemoveTagsFromVault for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidParameterValueException +// MissingParameterValueException +// ResourceNotFoundException +// ServiceUnavailableException func (c *Glacier) RemoveTagsFromVault(input *RemoveTagsFromVaultInput) (*RemoveTagsFromVaultOutput, error) { req, out := c.RemoveTagsFromVaultRequest(input) err := req.Send() @@ -2048,6 +2491,8 @@ func (c *Glacier) SetDataRetrievalPolicyRequest(input *SetDataRetrievalPolicyInp return } +// SetDataRetrievalPolicy API operation for Amazon Glacier. +// // This operation sets and then enacts a data retrieval policy in the region // specified in the PUT request. You can set one policy per region for an AWS // account. The policy is enacted within a few minutes of a successful PUT operation. @@ -2055,6 +2500,20 @@ func (c *Glacier) SetDataRetrievalPolicyRequest(input *SetDataRetrievalPolicyInp // The set policy operation does not affect retrieval jobs that were in progress // before the policy was enacted. For more information about data retrieval // policies, see Amazon Glacier Data Retrieval Policies (http://docs.aws.amazon.com/amazonglacier/latest/dev/data-retrieval-policy.html). +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Glacier's +// API operation, SetDataRetrievalPolicy for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidParameterValueException +// MissingParameterValueException +// ServiceUnavailableException func (c *Glacier) SetDataRetrievalPolicy(input *SetDataRetrievalPolicyInput) (*SetDataRetrievalPolicyOutput, error) { req, out := c.SetDataRetrievalPolicyRequest(input) err := req.Send() @@ -2104,6 +2563,8 @@ func (c *Glacier) SetVaultAccessPolicyRequest(input *SetVaultAccessPolicyInput) return } +// SetVaultAccessPolicy API operation for Amazon Glacier. +// // This operation configures an access policy for a vault and will overwrite // an existing policy. To configure a vault access policy, send a PUT request // to the access-policy subresource of the vault. An access policy is specific @@ -2111,6 +2572,21 @@ func (c *Glacier) SetVaultAccessPolicyRequest(input *SetVaultAccessPolicyInput) // policy per vault and the policy can be up to 20 KB in size. For more information // about vault access policies, see Amazon Glacier Access Control with Vault // Access Policies (http://docs.aws.amazon.com/amazonglacier/latest/dev/vault-access-policy.html). +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Glacier's +// API operation, SetVaultAccessPolicy for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ResourceNotFoundException +// InvalidParameterValueException +// MissingParameterValueException +// ServiceUnavailableException func (c *Glacier) SetVaultAccessPolicy(input *SetVaultAccessPolicyInput) (*SetVaultAccessPolicyOutput, error) { req, out := c.SetVaultAccessPolicyRequest(input) err := req.Send() @@ -2160,6 +2636,8 @@ func (c *Glacier) SetVaultNotificationsRequest(input *SetVaultNotificationsInput return } +// SetVaultNotifications API operation for Amazon Glacier. +// // This operation configures notifications that will be sent when specific events // happen to a vault. By default, you don't get any notifications. // @@ -2189,6 +2667,21 @@ func (c *Glacier) SetVaultNotificationsRequest(input *SetVaultNotificationsInput // Notifications in Amazon Glacier (http://docs.aws.amazon.com/amazonglacier/latest/dev/configuring-notifications.html) // and Set Vault Notification Configuration (http://docs.aws.amazon.com/amazonglacier/latest/dev/api-vault-notifications-put.html) // in the Amazon Glacier Developer Guide. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Glacier's +// API operation, SetVaultNotifications for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ResourceNotFoundException +// InvalidParameterValueException +// MissingParameterValueException +// ServiceUnavailableException func (c *Glacier) SetVaultNotifications(input *SetVaultNotificationsInput) (*SetVaultNotificationsOutput, error) { req, out := c.SetVaultNotificationsRequest(input) err := req.Send() @@ -2236,6 +2729,8 @@ func (c *Glacier) UploadArchiveRequest(input *UploadArchiveInput) (req *request. return } +// UploadArchive API operation for Amazon Glacier. +// // This operation adds an archive to a vault. This is a synchronous operation, // and for a successful upload, your data is durably persisted. Amazon Glacier // returns the archive ID in the x-amz-archive-id header of the response. @@ -2272,6 +2767,22 @@ func (c *Glacier) UploadArchiveRequest(input *UploadArchiveInput) (req *request. // Archive in Amazon Glacier (http://docs.aws.amazon.com/amazonglacier/latest/dev/uploading-an-archive.html) // and Upload Archive (http://docs.aws.amazon.com/amazonglacier/latest/dev/api-archive-post.html) // in the Amazon Glacier Developer Guide. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Glacier's +// API operation, UploadArchive for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ResourceNotFoundException +// InvalidParameterValueException +// MissingParameterValueException +// RequestTimeoutException +// ServiceUnavailableException func (c *Glacier) UploadArchive(input *UploadArchiveInput) (*ArchiveCreationOutput, error) { req, out := c.UploadArchiveRequest(input) err := req.Send() @@ -2319,6 +2830,8 @@ func (c *Glacier) UploadMultipartPartRequest(input *UploadMultipartPartInput) (r return } +// UploadMultipartPart API operation for Amazon Glacier. +// // This operation uploads a part of an archive. You can upload archive parts // in any order. You can also upload them in parallel. You can upload up to // 10,000 parts for a multipart upload. @@ -2362,6 +2875,22 @@ func (c *Glacier) UploadMultipartPartRequest(input *UploadMultipartPartInput) (r // Archives in Parts (Multipart Upload) (http://docs.aws.amazon.com/amazonglacier/latest/dev/uploading-archive-mpu.html) // and Upload Part (http://docs.aws.amazon.com/amazonglacier/latest/dev/api-upload-part.html) // in the Amazon Glacier Developer Guide. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Glacier's +// API operation, UploadMultipartPart for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ResourceNotFoundException +// InvalidParameterValueException +// MissingParameterValueException +// RequestTimeoutException +// ServiceUnavailableException func (c *Glacier) UploadMultipartPart(input *UploadMultipartPartInput) (*UploadMultipartPartOutput, error) { req, out := c.UploadMultipartPartRequest(input) err := req.Send() diff --git a/service/iam/api.go b/service/iam/api.go index d04f4049cc8..85a5c603dc6 100644 --- a/service/iam/api.go +++ b/service/iam/api.go @@ -56,11 +56,28 @@ func (c *IAM) AddClientIDToOpenIDConnectProviderRequest(input *AddClientIDToOpen return } +// AddClientIDToOpenIDConnectProvider API operation for AWS Identity and Access Management. +// // Adds a new client ID (also known as audience) to the list of client IDs already // registered for the specified IAM OpenID Connect (OIDC) provider resource. // // This action is idempotent; it does not fail or return an error if you add // an existing client ID to the provider. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Identity and Access Management's +// API operation, AddClientIDToOpenIDConnectProvider for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidInputException +// NoSuchEntityException +// LimitExceededException +// ServiceFailureException func (c *IAM) AddClientIDToOpenIDConnectProvider(input *AddClientIDToOpenIDConnectProviderInput) (*AddClientIDToOpenIDConnectProviderOutput, error) { req, out := c.AddClientIDToOpenIDConnectProviderRequest(input) err := req.Send() @@ -110,6 +127,8 @@ func (c *IAM) AddRoleToInstanceProfileRequest(input *AddRoleToInstanceProfileInp return } +// AddRoleToInstanceProfile API operation for AWS Identity and Access Management. +// // Adds the specified IAM role to the specified instance profile. // // The caller of this API must be granted the PassRole permission on the IAM @@ -118,6 +137,21 @@ func (c *IAM) AddRoleToInstanceProfileRequest(input *AddRoleToInstanceProfileInp // For more information about roles, go to Working with Roles (http://docs.aws.amazon.com/IAM/latest/UserGuide/WorkingWithRoles.html). // For more information about instance profiles, go to About Instance Profiles // (http://docs.aws.amazon.com/IAM/latest/UserGuide/AboutInstanceProfiles.html). +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Identity and Access Management's +// API operation, AddRoleToInstanceProfile for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// NoSuchEntityException +// EntityAlreadyExistsException +// LimitExceededException +// ServiceFailureException func (c *IAM) AddRoleToInstanceProfile(input *AddRoleToInstanceProfileInput) (*AddRoleToInstanceProfileOutput, error) { req, out := c.AddRoleToInstanceProfileRequest(input) err := req.Send() @@ -167,7 +201,23 @@ func (c *IAM) AddUserToGroupRequest(input *AddUserToGroupInput) (req *request.Re return } +// AddUserToGroup API operation for AWS Identity and Access Management. +// // Adds the specified user to the specified group. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Identity and Access Management's +// API operation, AddUserToGroup for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// NoSuchEntityException +// LimitExceededException +// ServiceFailureException func (c *IAM) AddUserToGroup(input *AddUserToGroupInput) (*AddUserToGroupOutput, error) { req, out := c.AddUserToGroupRequest(input) err := req.Send() @@ -217,6 +267,8 @@ func (c *IAM) AttachGroupPolicyRequest(input *AttachGroupPolicyInput) (req *requ return } +// AttachGroupPolicy API operation for AWS Identity and Access Management. +// // Attaches the specified managed policy to the specified IAM group. // // You use this API to attach a managed policy to a group. To embed an inline @@ -225,6 +277,21 @@ func (c *IAM) AttachGroupPolicyRequest(input *AttachGroupPolicyInput) (req *requ // For more information about policies, see Managed Policies and Inline Policies // (http://docs.aws.amazon.com/IAM/latest/UserGuide/policies-managed-vs-inline.html) // in the IAM User Guide. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Identity and Access Management's +// API operation, AttachGroupPolicy for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// NoSuchEntityException +// LimitExceededException +// InvalidInputException +// ServiceFailureException func (c *IAM) AttachGroupPolicy(input *AttachGroupPolicyInput) (*AttachGroupPolicyOutput, error) { req, out := c.AttachGroupPolicyRequest(input) err := req.Send() @@ -274,6 +341,8 @@ func (c *IAM) AttachRolePolicyRequest(input *AttachRolePolicyInput) (req *reques return } +// AttachRolePolicy API operation for AWS Identity and Access Management. +// // Attaches the specified managed policy to the specified IAM role. // // When you attach a managed policy to a role, the managed policy becomes part @@ -286,6 +355,21 @@ func (c *IAM) AttachRolePolicyRequest(input *AttachRolePolicyInput) (req *reques // in a role, use PutRolePolicy. For more information about policies, see Managed // Policies and Inline Policies (http://docs.aws.amazon.com/IAM/latest/UserGuide/policies-managed-vs-inline.html) // in the IAM User Guide. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Identity and Access Management's +// API operation, AttachRolePolicy for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// NoSuchEntityException +// LimitExceededException +// InvalidInputException +// ServiceFailureException func (c *IAM) AttachRolePolicy(input *AttachRolePolicyInput) (*AttachRolePolicyOutput, error) { req, out := c.AttachRolePolicyRequest(input) err := req.Send() @@ -335,6 +419,8 @@ func (c *IAM) AttachUserPolicyRequest(input *AttachUserPolicyInput) (req *reques return } +// AttachUserPolicy API operation for AWS Identity and Access Management. +// // Attaches the specified managed policy to the specified user. // // You use this API to attach a managed policy to a user. To embed an inline @@ -343,6 +429,21 @@ func (c *IAM) AttachUserPolicyRequest(input *AttachUserPolicyInput) (req *reques // For more information about policies, see Managed Policies and Inline Policies // (http://docs.aws.amazon.com/IAM/latest/UserGuide/policies-managed-vs-inline.html) // in the IAM User Guide. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Identity and Access Management's +// API operation, AttachUserPolicy for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// NoSuchEntityException +// LimitExceededException +// InvalidInputException +// ServiceFailureException func (c *IAM) AttachUserPolicy(input *AttachUserPolicyInput) (*AttachUserPolicyOutput, error) { req, out := c.AttachUserPolicyRequest(input) err := req.Send() @@ -392,12 +493,31 @@ func (c *IAM) ChangePasswordRequest(input *ChangePasswordInput) (req *request.Re return } +// ChangePassword API operation for AWS Identity and Access Management. +// // Changes the password of the IAM user who is calling this action. The root // account password is not affected by this action. // // To change the password for a different user, see UpdateLoginProfile. For // more information about modifying passwords, see Managing Passwords (http://docs.aws.amazon.com/IAM/latest/UserGuide/Using_ManagingLogins.html) // in the IAM User Guide. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Identity and Access Management's +// API operation, ChangePassword for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// NoSuchEntityException +// InvalidUserTypeException +// LimitExceededException +// EntityTemporarilyUnmodifiableException +// PasswordPolicyViolationException +// ServiceFailureException func (c *IAM) ChangePassword(input *ChangePasswordInput) (*ChangePasswordOutput, error) { req, out := c.ChangePasswordRequest(input) err := req.Send() @@ -445,6 +565,8 @@ func (c *IAM) CreateAccessKeyRequest(input *CreateAccessKeyInput) (req *request. return } +// CreateAccessKey API operation for AWS Identity and Access Management. +// // Creates a new AWS secret access key and corresponding AWS access key ID for // the specified user. The default status for new keys is Active. // @@ -462,6 +584,20 @@ func (c *IAM) CreateAccessKeyRequest(input *CreateAccessKeyInput) (req *request. // a text file) if you want to be able to access it again. If a secret key is // lost, you can delete the access keys for the associated user and then create // new keys. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Identity and Access Management's +// API operation, CreateAccessKey for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// NoSuchEntityException +// LimitExceededException +// ServiceFailureException func (c *IAM) CreateAccessKey(input *CreateAccessKeyInput) (*CreateAccessKeyOutput, error) { req, out := c.CreateAccessKeyRequest(input) err := req.Send() @@ -511,9 +647,25 @@ func (c *IAM) CreateAccountAliasRequest(input *CreateAccountAliasInput) (req *re return } +// CreateAccountAlias API operation for AWS Identity and Access Management. +// // Creates an alias for your AWS account. For information about using an AWS // account alias, see Using an Alias for Your AWS Account ID (http://docs.aws.amazon.com/IAM/latest/UserGuide/AccountAlias.html) // in the IAM User Guide. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Identity and Access Management's +// API operation, CreateAccountAlias for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// EntityAlreadyExistsException +// LimitExceededException +// ServiceFailureException func (c *IAM) CreateAccountAlias(input *CreateAccountAliasInput) (*CreateAccountAliasOutput, error) { req, out := c.CreateAccountAliasRequest(input) err := req.Send() @@ -561,11 +713,28 @@ func (c *IAM) CreateGroupRequest(input *CreateGroupInput) (req *request.Request, return } +// CreateGroup API operation for AWS Identity and Access Management. +// // Creates a new group. // // For information about the number of groups you can create, see Limitations // on IAM Entities (http://docs.aws.amazon.com/IAM/latest/UserGuide/LimitationsOnEntities.html) // in the IAM User Guide. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Identity and Access Management's +// API operation, CreateGroup for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// LimitExceededException +// EntityAlreadyExistsException +// NoSuchEntityException +// ServiceFailureException func (c *IAM) CreateGroup(input *CreateGroupInput) (*CreateGroupOutput, error) { req, out := c.CreateGroupRequest(input) err := req.Send() @@ -613,12 +782,28 @@ func (c *IAM) CreateInstanceProfileRequest(input *CreateInstanceProfileInput) (r return } +// CreateInstanceProfile API operation for AWS Identity and Access Management. +// // Creates a new instance profile. For information about instance profiles, // go to About Instance Profiles (http://docs.aws.amazon.com/IAM/latest/UserGuide/AboutInstanceProfiles.html). // // For information about the number of instance profiles you can create, see // Limitations on IAM Entities (http://docs.aws.amazon.com/IAM/latest/UserGuide/LimitationsOnEntities.html) // in the IAM User Guide. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Identity and Access Management's +// API operation, CreateInstanceProfile for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// EntityAlreadyExistsException +// LimitExceededException +// ServiceFailureException func (c *IAM) CreateInstanceProfile(input *CreateInstanceProfileInput) (*CreateInstanceProfileOutput, error) { req, out := c.CreateInstanceProfileRequest(input) err := req.Send() @@ -666,10 +851,28 @@ func (c *IAM) CreateLoginProfileRequest(input *CreateLoginProfileInput) (req *re return } +// CreateLoginProfile API operation for AWS Identity and Access Management. +// // Creates a password for the specified user, giving the user the ability to // access AWS services through the AWS Management Console. For more information // about managing passwords, see Managing Passwords (http://docs.aws.amazon.com/IAM/latest/UserGuide/Using_ManagingLogins.html) // in the IAM User Guide. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Identity and Access Management's +// API operation, CreateLoginProfile for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// EntityAlreadyExistsException +// NoSuchEntityException +// PasswordPolicyViolationException +// LimitExceededException +// ServiceFailureException func (c *IAM) CreateLoginProfile(input *CreateLoginProfileInput) (*CreateLoginProfileOutput, error) { req, out := c.CreateLoginProfileRequest(input) err := req.Send() @@ -717,6 +920,8 @@ func (c *IAM) CreateOpenIDConnectProviderRequest(input *CreateOpenIDConnectProvi return } +// CreateOpenIDConnectProvider API operation for AWS Identity and Access Management. +// // Creates an IAM entity to describe an identity provider (IdP) that supports // OpenID Connect (OIDC) (http://openid.net/connect/). // @@ -734,6 +939,21 @@ func (c *IAM) CreateOpenIDConnectProviderRequest(input *CreateOpenIDConnectProvi // Because trust for the OIDC provider is ultimately derived from the IAM // provider that this action creates, it is a best practice to limit access // to the CreateOpenIDConnectProvider action to highly-privileged users. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Identity and Access Management's +// API operation, CreateOpenIDConnectProvider for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidInputException +// EntityAlreadyExistsException +// LimitExceededException +// ServiceFailureException func (c *IAM) CreateOpenIDConnectProvider(input *CreateOpenIDConnectProviderInput) (*CreateOpenIDConnectProviderOutput, error) { req, out := c.CreateOpenIDConnectProviderRequest(input) err := req.Send() @@ -781,6 +1001,8 @@ func (c *IAM) CreatePolicyRequest(input *CreatePolicyInput) (req *request.Reques return } +// CreatePolicy API operation for AWS Identity and Access Management. +// // Creates a new managed policy for your AWS account. // // This operation creates a policy version with a version identifier of v1 @@ -791,6 +1013,22 @@ func (c *IAM) CreatePolicyRequest(input *CreatePolicyInput) (req *request.Reques // For more information about managed policies in general, see Managed Policies // and Inline Policies (http://docs.aws.amazon.com/IAM/latest/UserGuide/policies-managed-vs-inline.html) // in the IAM User Guide. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Identity and Access Management's +// API operation, CreatePolicy for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidInputException +// LimitExceededException +// EntityAlreadyExistsException +// MalformedPolicyDocumentException +// ServiceFailureException func (c *IAM) CreatePolicy(input *CreatePolicyInput) (*CreatePolicyOutput, error) { req, out := c.CreatePolicyRequest(input) err := req.Send() @@ -838,6 +1076,8 @@ func (c *IAM) CreatePolicyVersionRequest(input *CreatePolicyVersionInput) (req * return } +// CreatePolicyVersion API operation for AWS Identity and Access Management. +// // Creates a new version of the specified managed policy. To update a managed // policy, you create a new policy version. A managed policy can have up to // five versions. If the policy has five versions, you must delete an existing @@ -850,6 +1090,22 @@ func (c *IAM) CreatePolicyVersionRequest(input *CreatePolicyVersionInput) (req * // For more information about managed policy versions, see Versioning for Managed // Policies (http://docs.aws.amazon.com/IAM/latest/UserGuide/policies-managed-versions.html) // in the IAM User Guide. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Identity and Access Management's +// API operation, CreatePolicyVersion for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// NoSuchEntityException +// MalformedPolicyDocumentException +// InvalidInputException +// LimitExceededException +// ServiceFailureException func (c *IAM) CreatePolicyVersion(input *CreatePolicyVersionInput) (*CreatePolicyVersionOutput, error) { req, out := c.CreatePolicyVersionRequest(input) err := req.Send() @@ -897,11 +1153,28 @@ func (c *IAM) CreateRoleRequest(input *CreateRoleInput) (req *request.Request, o return } +// CreateRole API operation for AWS Identity and Access Management. +// // Creates a new role for your AWS account. For more information about roles, // go to Working with Roles (http://docs.aws.amazon.com/IAM/latest/UserGuide/WorkingWithRoles.html). // For information about limitations on role names and the number of roles you // can create, go to Limitations on IAM Entities (http://docs.aws.amazon.com/IAM/latest/UserGuide/LimitationsOnEntities.html) // in the IAM User Guide. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Identity and Access Management's +// API operation, CreateRole for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// LimitExceededException +// EntityAlreadyExistsException +// MalformedPolicyDocumentException +// ServiceFailureException func (c *IAM) CreateRole(input *CreateRoleInput) (*CreateRoleOutput, error) { req, out := c.CreateRoleRequest(input) err := req.Send() @@ -949,6 +1222,8 @@ func (c *IAM) CreateSAMLProviderRequest(input *CreateSAMLProviderInput) (req *re return } +// CreateSAMLProvider API operation for AWS Identity and Access Management. +// // Creates an IAM resource that describes an identity provider (IdP) that supports // SAML 2.0. // @@ -971,6 +1246,21 @@ func (c *IAM) CreateSAMLProviderRequest(input *CreateSAMLProviderInput) (req *re // the AWS Management Console (http://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_providers_enable-console-saml.html) // and About SAML 2.0-based Federation (http://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_providers_saml.html) // in the IAM User Guide. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Identity and Access Management's +// API operation, CreateSAMLProvider for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidInputException +// EntityAlreadyExistsException +// LimitExceededException +// ServiceFailureException func (c *IAM) CreateSAMLProvider(input *CreateSAMLProviderInput) (*CreateSAMLProviderOutput, error) { req, out := c.CreateSAMLProviderRequest(input) err := req.Send() @@ -1018,11 +1308,28 @@ func (c *IAM) CreateUserRequest(input *CreateUserInput) (req *request.Request, o return } +// CreateUser API operation for AWS Identity and Access Management. +// // Creates a new IAM user for your AWS account. // // For information about limitations on the number of IAM users you can create, // see Limitations on IAM Entities (http://docs.aws.amazon.com/IAM/latest/UserGuide/LimitationsOnEntities.html) // in the IAM User Guide. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Identity and Access Management's +// API operation, CreateUser for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// LimitExceededException +// EntityAlreadyExistsException +// NoSuchEntityException +// ServiceFailureException func (c *IAM) CreateUser(input *CreateUserInput) (*CreateUserOutput, error) { req, out := c.CreateUserRequest(input) err := req.Send() @@ -1070,6 +1377,8 @@ func (c *IAM) CreateVirtualMFADeviceRequest(input *CreateVirtualMFADeviceInput) return } +// CreateVirtualMFADevice API operation for AWS Identity and Access Management. +// // Creates a new virtual MFA device for the AWS account. After creating the // virtual MFA, use EnableMFADevice to attach the MFA device to an IAM user. // For more information about creating and working with virtual MFA devices, @@ -1084,6 +1393,20 @@ func (c *IAM) CreateVirtualMFADeviceRequest(input *CreateVirtualMFADeviceInput) // be treated like any other secret access information, such as your AWS access // keys or your passwords. After you provision your virtual device, you should // ensure that the information is destroyed following secure procedures. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Identity and Access Management's +// API operation, CreateVirtualMFADevice for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// LimitExceededException +// EntityAlreadyExistsException +// ServiceFailureException func (c *IAM) CreateVirtualMFADevice(input *CreateVirtualMFADeviceInput) (*CreateVirtualMFADeviceOutput, error) { req, out := c.CreateVirtualMFADeviceRequest(input) err := req.Send() @@ -1133,12 +1456,29 @@ func (c *IAM) DeactivateMFADeviceRequest(input *DeactivateMFADeviceInput) (req * return } +// DeactivateMFADevice API operation for AWS Identity and Access Management. +// // Deactivates the specified MFA device and removes it from association with // the user name for which it was originally enabled. // // For more information about creating and working with virtual MFA devices, // go to Using a Virtual MFA Device (http://docs.aws.amazon.com/IAM/latest/UserGuide/Using_VirtualMFA.html) // in the IAM User Guide. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Identity and Access Management's +// API operation, DeactivateMFADevice for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// EntityTemporarilyUnmodifiableException +// NoSuchEntityException +// LimitExceededException +// ServiceFailureException func (c *IAM) DeactivateMFADevice(input *DeactivateMFADeviceInput) (*DeactivateMFADeviceOutput, error) { req, out := c.DeactivateMFADeviceRequest(input) err := req.Send() @@ -1188,12 +1528,28 @@ func (c *IAM) DeleteAccessKeyRequest(input *DeleteAccessKeyInput) (req *request. return } +// DeleteAccessKey API operation for AWS Identity and Access Management. +// // Deletes the access key pair associated with the specified IAM user. // // If you do not specify a user name, IAM determines the user name implicitly // based on the AWS access key ID signing the request. Because this action works // for access keys under the AWS account, you can use this action to manage // root credentials even if the AWS account has no associated users. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Identity and Access Management's +// API operation, DeleteAccessKey for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// NoSuchEntityException +// LimitExceededException +// ServiceFailureException func (c *IAM) DeleteAccessKey(input *DeleteAccessKeyInput) (*DeleteAccessKeyOutput, error) { req, out := c.DeleteAccessKeyRequest(input) err := req.Send() @@ -1243,9 +1599,25 @@ func (c *IAM) DeleteAccountAliasRequest(input *DeleteAccountAliasInput) (req *re return } +// DeleteAccountAlias API operation for AWS Identity and Access Management. +// // Deletes the specified AWS account alias. For information about using an AWS // account alias, see Using an Alias for Your AWS Account ID (http://docs.aws.amazon.com/IAM/latest/UserGuide/AccountAlias.html) // in the IAM User Guide. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Identity and Access Management's +// API operation, DeleteAccountAlias for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// NoSuchEntityException +// LimitExceededException +// ServiceFailureException func (c *IAM) DeleteAccountAlias(input *DeleteAccountAliasInput) (*DeleteAccountAliasOutput, error) { req, out := c.DeleteAccountAliasRequest(input) err := req.Send() @@ -1295,7 +1667,23 @@ func (c *IAM) DeleteAccountPasswordPolicyRequest(input *DeleteAccountPasswordPol return } +// DeleteAccountPasswordPolicy API operation for AWS Identity and Access Management. +// // Deletes the password policy for the AWS account. There are no parameters. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Identity and Access Management's +// API operation, DeleteAccountPasswordPolicy for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// NoSuchEntityException +// LimitExceededException +// ServiceFailureException func (c *IAM) DeleteAccountPasswordPolicy(input *DeleteAccountPasswordPolicyInput) (*DeleteAccountPasswordPolicyOutput, error) { req, out := c.DeleteAccountPasswordPolicyRequest(input) err := req.Send() @@ -1345,8 +1733,25 @@ func (c *IAM) DeleteGroupRequest(input *DeleteGroupInput) (req *request.Request, return } +// DeleteGroup API operation for AWS Identity and Access Management. +// // Deletes the specified IAM group. The group must not contain any users or // have any attached policies. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Identity and Access Management's +// API operation, DeleteGroup for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// NoSuchEntityException +// DeleteConflictException +// LimitExceededException +// ServiceFailureException func (c *IAM) DeleteGroup(input *DeleteGroupInput) (*DeleteGroupOutput, error) { req, out := c.DeleteGroupRequest(input) err := req.Send() @@ -1396,6 +1801,8 @@ func (c *IAM) DeleteGroupPolicyRequest(input *DeleteGroupPolicyInput) (req *requ return } +// DeleteGroupPolicy API operation for AWS Identity and Access Management. +// // Deletes the specified inline policy that is embedded in the specified IAM // group. // @@ -1403,6 +1810,20 @@ func (c *IAM) DeleteGroupPolicyRequest(input *DeleteGroupPolicyInput) (req *requ // policy from a group, use DetachGroupPolicy. For more information about policies, // refer to Managed Policies and Inline Policies (http://docs.aws.amazon.com/IAM/latest/UserGuide/policies-managed-vs-inline.html) // in the IAM User Guide. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Identity and Access Management's +// API operation, DeleteGroupPolicy for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// NoSuchEntityException +// LimitExceededException +// ServiceFailureException func (c *IAM) DeleteGroupPolicy(input *DeleteGroupPolicyInput) (*DeleteGroupPolicyOutput, error) { req, out := c.DeleteGroupPolicyRequest(input) err := req.Send() @@ -1452,6 +1873,8 @@ func (c *IAM) DeleteInstanceProfileRequest(input *DeleteInstanceProfileInput) (r return } +// DeleteInstanceProfile API operation for AWS Identity and Access Management. +// // Deletes the specified instance profile. The instance profile must not have // an associated role. // @@ -1462,6 +1885,21 @@ func (c *IAM) DeleteInstanceProfileRequest(input *DeleteInstanceProfileInput) (r // // For more information about instance profiles, go to About Instance Profiles // (http://docs.aws.amazon.com/IAM/latest/UserGuide/AboutInstanceProfiles.html). +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Identity and Access Management's +// API operation, DeleteInstanceProfile for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// NoSuchEntityException +// DeleteConflictException +// LimitExceededException +// ServiceFailureException func (c *IAM) DeleteInstanceProfile(input *DeleteInstanceProfileInput) (*DeleteInstanceProfileOutput, error) { req, out := c.DeleteInstanceProfileRequest(input) err := req.Send() @@ -1511,6 +1949,8 @@ func (c *IAM) DeleteLoginProfileRequest(input *DeleteLoginProfileInput) (req *re return } +// DeleteLoginProfile API operation for AWS Identity and Access Management. +// // Deletes the password for the specified IAM user, which terminates the user's // ability to access AWS services through the AWS Management Console. // @@ -1519,6 +1959,21 @@ func (c *IAM) DeleteLoginProfileRequest(input *DeleteLoginProfileInput) (req *re // you must also either make any access keys inactive or delete them. For more // information about making keys inactive or deleting them, see UpdateAccessKey // and DeleteAccessKey. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Identity and Access Management's +// API operation, DeleteLoginProfile for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// EntityTemporarilyUnmodifiableException +// NoSuchEntityException +// LimitExceededException +// ServiceFailureException func (c *IAM) DeleteLoginProfile(input *DeleteLoginProfileInput) (*DeleteLoginProfileOutput, error) { req, out := c.DeleteLoginProfileRequest(input) err := req.Send() @@ -1568,6 +2023,8 @@ func (c *IAM) DeleteOpenIDConnectProviderRequest(input *DeleteOpenIDConnectProvi return } +// DeleteOpenIDConnectProvider API operation for AWS Identity and Access Management. +// // Deletes an OpenID Connect identity provider (IdP) resource object in IAM. // // Deleting an IAM OIDC provider resource does not update any roles that reference @@ -1576,6 +2033,20 @@ func (c *IAM) DeleteOpenIDConnectProviderRequest(input *DeleteOpenIDConnectProvi // // This action is idempotent; it does not fail or return an error if you call // the action for a provider that does not exist. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Identity and Access Management's +// API operation, DeleteOpenIDConnectProvider for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidInputException +// NoSuchEntityException +// ServiceFailureException func (c *IAM) DeleteOpenIDConnectProvider(input *DeleteOpenIDConnectProviderInput) (*DeleteOpenIDConnectProviderOutput, error) { req, out := c.DeleteOpenIDConnectProviderRequest(input) err := req.Send() @@ -1625,6 +2096,8 @@ func (c *IAM) DeletePolicyRequest(input *DeletePolicyInput) (req *request.Reques return } +// DeletePolicy API operation for AWS Identity and Access Management. +// // Deletes the specified managed policy. // // Before you can delete a managed policy, you must first detach the policy @@ -1648,6 +2121,22 @@ func (c *IAM) DeletePolicyRequest(input *DeletePolicyInput) (req *request.Reques // For information about managed policies, see Managed Policies and Inline // Policies (http://docs.aws.amazon.com/IAM/latest/UserGuide/policies-managed-vs-inline.html) // in the IAM User Guide. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Identity and Access Management's +// API operation, DeletePolicy for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// NoSuchEntityException +// LimitExceededException +// InvalidInputException +// DeleteConflictException +// ServiceFailureException func (c *IAM) DeletePolicy(input *DeletePolicyInput) (*DeletePolicyOutput, error) { req, out := c.DeletePolicyRequest(input) err := req.Send() @@ -1697,6 +2186,8 @@ func (c *IAM) DeletePolicyVersionRequest(input *DeletePolicyVersionInput) (req * return } +// DeletePolicyVersion API operation for AWS Identity and Access Management. +// // Deletes the specified version from the specified managed policy. // // You cannot delete the default version from a policy using this API. To delete @@ -1706,6 +2197,22 @@ func (c *IAM) DeletePolicyVersionRequest(input *DeletePolicyVersionInput) (req * // For information about versions for managed policies, see Versioning for // Managed Policies (http://docs.aws.amazon.com/IAM/latest/UserGuide/policies-managed-versions.html) // in the IAM User Guide. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Identity and Access Management's +// API operation, DeletePolicyVersion for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// NoSuchEntityException +// LimitExceededException +// InvalidInputException +// DeleteConflictException +// ServiceFailureException func (c *IAM) DeletePolicyVersion(input *DeletePolicyVersionInput) (*DeletePolicyVersionOutput, error) { req, out := c.DeletePolicyVersionRequest(input) err := req.Send() @@ -1755,12 +2262,29 @@ func (c *IAM) DeleteRoleRequest(input *DeleteRoleInput) (req *request.Request, o return } +// DeleteRole API operation for AWS Identity and Access Management. +// // Deletes the specified role. The role must not have any policies attached. // For more information about roles, go to Working with Roles (http://docs.aws.amazon.com/IAM/latest/UserGuide/WorkingWithRoles.html). // // Make sure you do not have any Amazon EC2 instances running with the role // you are about to delete. Deleting a role or instance profile that is associated // with a running instance will break any applications running on the instance. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Identity and Access Management's +// API operation, DeleteRole for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// NoSuchEntityException +// DeleteConflictException +// LimitExceededException +// ServiceFailureException func (c *IAM) DeleteRole(input *DeleteRoleInput) (*DeleteRoleOutput, error) { req, out := c.DeleteRoleRequest(input) err := req.Send() @@ -1810,6 +2334,8 @@ func (c *IAM) DeleteRolePolicyRequest(input *DeleteRolePolicyInput) (req *reques return } +// DeleteRolePolicy API operation for AWS Identity and Access Management. +// // Deletes the specified inline policy that is embedded in the specified IAM // role. // @@ -1817,6 +2343,20 @@ func (c *IAM) DeleteRolePolicyRequest(input *DeleteRolePolicyInput) (req *reques // policy from a role, use DetachRolePolicy. For more information about policies, // refer to Managed Policies and Inline Policies (http://docs.aws.amazon.com/IAM/latest/UserGuide/policies-managed-vs-inline.html) // in the IAM User Guide. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Identity and Access Management's +// API operation, DeleteRolePolicy for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// NoSuchEntityException +// LimitExceededException +// ServiceFailureException func (c *IAM) DeleteRolePolicy(input *DeleteRolePolicyInput) (*DeleteRolePolicyOutput, error) { req, out := c.DeleteRolePolicyRequest(input) err := req.Send() @@ -1866,6 +2406,8 @@ func (c *IAM) DeleteSAMLProviderRequest(input *DeleteSAMLProviderInput) (req *re return } +// DeleteSAMLProvider API operation for AWS Identity and Access Management. +// // Deletes a SAML provider resource in IAM. // // Deleting the provider resource from IAM does not update any roles that reference @@ -1874,6 +2416,21 @@ func (c *IAM) DeleteSAMLProviderRequest(input *DeleteSAMLProviderInput) (req *re // ARN fails. // // This operation requires Signature Version 4 (http://docs.aws.amazon.com/general/latest/gr/signature-version-4.html). +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Identity and Access Management's +// API operation, DeleteSAMLProvider for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidInputException +// LimitExceededException +// NoSuchEntityException +// ServiceFailureException func (c *IAM) DeleteSAMLProvider(input *DeleteSAMLProviderInput) (*DeleteSAMLProviderOutput, error) { req, out := c.DeleteSAMLProviderRequest(input) err := req.Send() @@ -1923,6 +2480,8 @@ func (c *IAM) DeleteSSHPublicKeyRequest(input *DeleteSSHPublicKeyInput) (req *re return } +// DeleteSSHPublicKey API operation for AWS Identity and Access Management. +// // Deletes the specified SSH public key. // // The SSH public key deleted by this action is used only for authenticating @@ -1930,6 +2489,18 @@ func (c *IAM) DeleteSSHPublicKeyRequest(input *DeleteSSHPublicKeyInput) (req *re // about using SSH keys to authenticate to an AWS CodeCommit repository, see // Set up AWS CodeCommit for SSH Connections (http://docs.aws.amazon.com/codecommit/latest/userguide/setting-up-credentials-ssh.html) // in the AWS CodeCommit User Guide. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Identity and Access Management's +// API operation, DeleteSSHPublicKey for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// NoSuchEntityException func (c *IAM) DeleteSSHPublicKey(input *DeleteSSHPublicKeyInput) (*DeleteSSHPublicKeyOutput, error) { req, out := c.DeleteSSHPublicKeyRequest(input) err := req.Send() @@ -1979,6 +2550,8 @@ func (c *IAM) DeleteServerCertificateRequest(input *DeleteServerCertificateInput return } +// DeleteServerCertificate API operation for AWS Identity and Access Management. +// // Deletes the specified server certificate. // // For more information about working with server certificates, including a @@ -1995,6 +2568,21 @@ func (c *IAM) DeleteServerCertificateRequest(input *DeleteServerCertificateInput // delete the certificate. For more information, go to DeleteLoadBalancerListeners // (http://docs.aws.amazon.com/ElasticLoadBalancing/latest/APIReference/API_DeleteLoadBalancerListeners.html) // in the Elastic Load Balancing API Reference. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Identity and Access Management's +// API operation, DeleteServerCertificate for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// NoSuchEntityException +// DeleteConflictException +// LimitExceededException +// ServiceFailureException func (c *IAM) DeleteServerCertificate(input *DeleteServerCertificateInput) (*DeleteServerCertificateOutput, error) { req, out := c.DeleteServerCertificateRequest(input) err := req.Send() @@ -2044,12 +2632,28 @@ func (c *IAM) DeleteSigningCertificateRequest(input *DeleteSigningCertificateInp return } +// DeleteSigningCertificate API operation for AWS Identity and Access Management. +// // Deletes a signing certificate associated with the specified IAM user. // // If you do not specify a user name, IAM determines the user name implicitly // based on the AWS access key ID signing the request. Because this action works // for access keys under the AWS account, you can use this action to manage // root credentials even if the AWS account has no associated IAM users. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Identity and Access Management's +// API operation, DeleteSigningCertificate for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// NoSuchEntityException +// LimitExceededException +// ServiceFailureException func (c *IAM) DeleteSigningCertificate(input *DeleteSigningCertificateInput) (*DeleteSigningCertificateOutput, error) { req, out := c.DeleteSigningCertificateRequest(input) err := req.Send() @@ -2099,8 +2703,25 @@ func (c *IAM) DeleteUserRequest(input *DeleteUserInput) (req *request.Request, o return } +// DeleteUser API operation for AWS Identity and Access Management. +// // Deletes the specified IAM user. The user must not belong to any groups or // have any access keys, signing certificates, or attached policies. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Identity and Access Management's +// API operation, DeleteUser for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// LimitExceededException +// NoSuchEntityException +// DeleteConflictException +// ServiceFailureException func (c *IAM) DeleteUser(input *DeleteUserInput) (*DeleteUserOutput, error) { req, out := c.DeleteUserRequest(input) err := req.Send() @@ -2150,6 +2771,8 @@ func (c *IAM) DeleteUserPolicyRequest(input *DeleteUserPolicyInput) (req *reques return } +// DeleteUserPolicy API operation for AWS Identity and Access Management. +// // Deletes the specified inline policy that is embedded in the specified IAM // user. // @@ -2157,6 +2780,20 @@ func (c *IAM) DeleteUserPolicyRequest(input *DeleteUserPolicyInput) (req *reques // policy from a user, use DetachUserPolicy. For more information about policies, // refer to Managed Policies and Inline Policies (http://docs.aws.amazon.com/IAM/latest/UserGuide/policies-managed-vs-inline.html) // in the IAM User Guide. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Identity and Access Management's +// API operation, DeleteUserPolicy for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// NoSuchEntityException +// LimitExceededException +// ServiceFailureException func (c *IAM) DeleteUserPolicy(input *DeleteUserPolicyInput) (*DeleteUserPolicyOutput, error) { req, out := c.DeleteUserPolicyRequest(input) err := req.Send() @@ -2206,10 +2843,27 @@ func (c *IAM) DeleteVirtualMFADeviceRequest(input *DeleteVirtualMFADeviceInput) return } +// DeleteVirtualMFADevice API operation for AWS Identity and Access Management. +// // Deletes a virtual MFA device. // // You must deactivate a user's virtual MFA device before you can delete // it. For information about deactivating MFA devices, see DeactivateMFADevice. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Identity and Access Management's +// API operation, DeleteVirtualMFADevice for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// NoSuchEntityException +// DeleteConflictException +// LimitExceededException +// ServiceFailureException func (c *IAM) DeleteVirtualMFADevice(input *DeleteVirtualMFADeviceInput) (*DeleteVirtualMFADeviceOutput, error) { req, out := c.DeleteVirtualMFADeviceRequest(input) err := req.Send() @@ -2259,12 +2913,29 @@ func (c *IAM) DetachGroupPolicyRequest(input *DetachGroupPolicyInput) (req *requ return } +// DetachGroupPolicy API operation for AWS Identity and Access Management. +// // Removes the specified managed policy from the specified IAM group. // // A group can also have inline policies embedded with it. To delete an inline // policy, use the DeleteGroupPolicy API. For information about policies, see // Managed Policies and Inline Policies (http://docs.aws.amazon.com/IAM/latest/UserGuide/policies-managed-vs-inline.html) // in the IAM User Guide. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Identity and Access Management's +// API operation, DetachGroupPolicy for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// NoSuchEntityException +// LimitExceededException +// InvalidInputException +// ServiceFailureException func (c *IAM) DetachGroupPolicy(input *DetachGroupPolicyInput) (*DetachGroupPolicyOutput, error) { req, out := c.DetachGroupPolicyRequest(input) err := req.Send() @@ -2314,12 +2985,29 @@ func (c *IAM) DetachRolePolicyRequest(input *DetachRolePolicyInput) (req *reques return } +// DetachRolePolicy API operation for AWS Identity and Access Management. +// // Removes the specified managed policy from the specified role. // // A role can also have inline policies embedded with it. To delete an inline // policy, use the DeleteRolePolicy API. For information about policies, see // Managed Policies and Inline Policies (http://docs.aws.amazon.com/IAM/latest/UserGuide/policies-managed-vs-inline.html) // in the IAM User Guide. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Identity and Access Management's +// API operation, DetachRolePolicy for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// NoSuchEntityException +// LimitExceededException +// InvalidInputException +// ServiceFailureException func (c *IAM) DetachRolePolicy(input *DetachRolePolicyInput) (*DetachRolePolicyOutput, error) { req, out := c.DetachRolePolicyRequest(input) err := req.Send() @@ -2369,12 +3057,29 @@ func (c *IAM) DetachUserPolicyRequest(input *DetachUserPolicyInput) (req *reques return } +// DetachUserPolicy API operation for AWS Identity and Access Management. +// // Removes the specified managed policy from the specified user. // // A user can also have inline policies embedded with it. To delete an inline // policy, use the DeleteUserPolicy API. For information about policies, see // Managed Policies and Inline Policies (http://docs.aws.amazon.com/IAM/latest/UserGuide/policies-managed-vs-inline.html) // in the IAM User Guide. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Identity and Access Management's +// API operation, DetachUserPolicy for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// NoSuchEntityException +// LimitExceededException +// InvalidInputException +// ServiceFailureException func (c *IAM) DetachUserPolicy(input *DetachUserPolicyInput) (*DetachUserPolicyOutput, error) { req, out := c.DetachUserPolicyRequest(input) err := req.Send() @@ -2424,9 +3129,28 @@ func (c *IAM) EnableMFADeviceRequest(input *EnableMFADeviceInput) (req *request. return } +// EnableMFADevice API operation for AWS Identity and Access Management. +// // Enables the specified MFA device and associates it with the specified IAM // user. When enabled, the MFA device is required for every subsequent login // by the IAM user associated with the device. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Identity and Access Management's +// API operation, EnableMFADevice for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// EntityAlreadyExistsException +// EntityTemporarilyUnmodifiableException +// InvalidAuthenticationCodeException +// LimitExceededException +// NoSuchEntityException +// ServiceFailureException func (c *IAM) EnableMFADevice(input *EnableMFADeviceInput) (*EnableMFADeviceOutput, error) { req, out := c.EnableMFADeviceRequest(input) err := req.Send() @@ -2474,9 +3198,24 @@ func (c *IAM) GenerateCredentialReportRequest(input *GenerateCredentialReportInp return } +// GenerateCredentialReport API operation for AWS Identity and Access Management. +// // Generates a credential report for the AWS account. For more information about // the credential report, see Getting Credential Reports (http://docs.aws.amazon.com/IAM/latest/UserGuide/credential-reports.html) // in the IAM User Guide. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Identity and Access Management's +// API operation, GenerateCredentialReport for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// LimitExceededException +// ServiceFailureException func (c *IAM) GenerateCredentialReport(input *GenerateCredentialReportInput) (*GenerateCredentialReportOutput, error) { req, out := c.GenerateCredentialReportRequest(input) err := req.Send() @@ -2524,10 +3263,24 @@ func (c *IAM) GetAccessKeyLastUsedRequest(input *GetAccessKeyLastUsedInput) (req return } +// GetAccessKeyLastUsed API operation for AWS Identity and Access Management. +// // Retrieves information about when the specified access key was last used. // The information includes the date and time of last use, along with the AWS // service and region that were specified in the last request made with that // key. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Identity and Access Management's +// API operation, GetAccessKeyLastUsed for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// NoSuchEntityException func (c *IAM) GetAccessKeyLastUsed(input *GetAccessKeyLastUsedInput) (*GetAccessKeyLastUsedOutput, error) { req, out := c.GetAccessKeyLastUsedRequest(input) err := req.Send() @@ -2581,6 +3334,8 @@ func (c *IAM) GetAccountAuthorizationDetailsRequest(input *GetAccountAuthorizati return } +// GetAccountAuthorizationDetails API operation for AWS Identity and Access Management. +// // Retrieves information about all IAM users, groups, roles, and policies in // your AWS account, including their relationships to one another. Use this // API to obtain a snapshot of the configuration of IAM permissions (users, @@ -2588,6 +3343,18 @@ func (c *IAM) GetAccountAuthorizationDetailsRequest(input *GetAccountAuthorizati // // You can optionally filter the results using the Filter parameter. You can // paginate the results using the MaxItems and Marker parameters. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Identity and Access Management's +// API operation, GetAccountAuthorizationDetails for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ServiceFailureException func (c *IAM) GetAccountAuthorizationDetails(input *GetAccountAuthorizationDetailsInput) (*GetAccountAuthorizationDetailsOutput, error) { req, out := c.GetAccountAuthorizationDetailsRequest(input) err := req.Send() @@ -2660,8 +3427,23 @@ func (c *IAM) GetAccountPasswordPolicyRequest(input *GetAccountPasswordPolicyInp return } +// GetAccountPasswordPolicy API operation for AWS Identity and Access Management. +// // Retrieves the password policy for the AWS account. For more information about // using a password policy, go to Managing an IAM Password Policy (http://docs.aws.amazon.com/IAM/latest/UserGuide/Using_ManagingPasswordPolicies.html). +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Identity and Access Management's +// API operation, GetAccountPasswordPolicy for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// NoSuchEntityException +// ServiceFailureException func (c *IAM) GetAccountPasswordPolicy(input *GetAccountPasswordPolicyInput) (*GetAccountPasswordPolicyOutput, error) { req, out := c.GetAccountPasswordPolicyRequest(input) err := req.Send() @@ -2709,11 +3491,25 @@ func (c *IAM) GetAccountSummaryRequest(input *GetAccountSummaryInput) (req *requ return } +// GetAccountSummary API operation for AWS Identity and Access Management. +// // Retrieves information about IAM entity usage and IAM quotas in the AWS account. // // For information about limitations on IAM entities, see Limitations on IAM // Entities (http://docs.aws.amazon.com/IAM/latest/UserGuide/LimitationsOnEntities.html) // in the IAM User Guide. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Identity and Access Management's +// API operation, GetAccountSummary for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ServiceFailureException func (c *IAM) GetAccountSummary(input *GetAccountSummaryInput) (*GetAccountSummaryOutput, error) { req, out := c.GetAccountSummaryRequest(input) err := req.Send() @@ -2761,6 +3557,8 @@ func (c *IAM) GetContextKeysForCustomPolicyRequest(input *GetContextKeysForCusto return } +// GetContextKeysForCustomPolicy API operation for AWS Identity and Access Management. +// // Gets a list of all of the context keys referenced in the input policies. // The policies are supplied as a list of one or more strings. To get the context // keys from policies associated with an IAM user, group, or role, use GetContextKeysForPrincipalPolicy. @@ -2771,6 +3569,18 @@ func (c *IAM) GetContextKeysForCustomPolicyRequest(input *GetContextKeysForCusto // to understand what key names and values you must supply when you call SimulateCustomPolicy. // Note that all parameters are shown in unencoded form here for clarity, but // must be URL encoded to be included as a part of a real HTML request. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Identity and Access Management's +// API operation, GetContextKeysForCustomPolicy for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidInputException func (c *IAM) GetContextKeysForCustomPolicy(input *GetContextKeysForCustomPolicyInput) (*GetContextKeysForPolicyResponse, error) { req, out := c.GetContextKeysForCustomPolicyRequest(input) err := req.Send() @@ -2818,6 +3628,8 @@ func (c *IAM) GetContextKeysForPrincipalPolicyRequest(input *GetContextKeysForPr return } +// GetContextKeysForPrincipalPolicy API operation for AWS Identity and Access Management. +// // Gets a list of all of the context keys referenced in all of the IAM policies // attached to the specified IAM entity. The entity can be an IAM user, group, // or role. If you specify a user, then the request also includes all of the @@ -2835,6 +3647,19 @@ func (c *IAM) GetContextKeysForPrincipalPolicyRequest(input *GetContextKeysForPr // details about the context of an API query request, and can be evaluated by // testing against a value in an IAM policy. Use GetContextKeysForPrincipalPolicy // to understand what key names and values you must supply when you call SimulatePrincipalPolicy. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Identity and Access Management's +// API operation, GetContextKeysForPrincipalPolicy for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// NoSuchEntityException +// InvalidInputException func (c *IAM) GetContextKeysForPrincipalPolicy(input *GetContextKeysForPrincipalPolicyInput) (*GetContextKeysForPolicyResponse, error) { req, out := c.GetContextKeysForPrincipalPolicyRequest(input) err := req.Send() @@ -2882,9 +3707,26 @@ func (c *IAM) GetCredentialReportRequest(input *GetCredentialReportInput) (req * return } +// GetCredentialReport API operation for AWS Identity and Access Management. +// // Retrieves a credential report for the AWS account. For more information about // the credential report, see Getting Credential Reports (http://docs.aws.amazon.com/IAM/latest/UserGuide/credential-reports.html) // in the IAM User Guide. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Identity and Access Management's +// API operation, GetCredentialReport for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// CredentialReportNotPresentException +// CredentialReportExpiredException +// CredentialReportNotReadyException +// ServiceFailureException func (c *IAM) GetCredentialReport(input *GetCredentialReportInput) (*GetCredentialReportOutput, error) { req, out := c.GetCredentialReportRequest(input) err := req.Send() @@ -2938,8 +3780,23 @@ func (c *IAM) GetGroupRequest(input *GetGroupInput) (req *request.Request, outpu return } +// GetGroup API operation for AWS Identity and Access Management. +// // Returns a list of IAM users that are in the specified IAM group. You can // paginate the results using the MaxItems and Marker parameters. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Identity and Access Management's +// API operation, GetGroup for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// NoSuchEntityException +// ServiceFailureException func (c *IAM) GetGroup(input *GetGroupInput) (*GetGroupOutput, error) { req, out := c.GetGroupRequest(input) err := req.Send() @@ -3012,6 +3869,8 @@ func (c *IAM) GetGroupPolicyRequest(input *GetGroupPolicyInput) (req *request.Re return } +// GetGroupPolicy API operation for AWS Identity and Access Management. +// // Retrieves the specified inline policy document that is embedded in the specified // IAM group. // @@ -3029,6 +3888,19 @@ func (c *IAM) GetGroupPolicyRequest(input *GetGroupPolicyInput) (req *request.Re // For more information about policies, see Managed Policies and Inline Policies // (http://docs.aws.amazon.com/IAM/latest/UserGuide/policies-managed-vs-inline.html) // in the IAM User Guide. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Identity and Access Management's +// API operation, GetGroupPolicy for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// NoSuchEntityException +// ServiceFailureException func (c *IAM) GetGroupPolicy(input *GetGroupPolicyInput) (*GetGroupPolicyOutput, error) { req, out := c.GetGroupPolicyRequest(input) err := req.Send() @@ -3076,10 +3948,25 @@ func (c *IAM) GetInstanceProfileRequest(input *GetInstanceProfileInput) (req *re return } +// GetInstanceProfile API operation for AWS Identity and Access Management. +// // Retrieves information about the specified instance profile, including the // instance profile's path, GUID, ARN, and role. For more information about // instance profiles, see About Instance Profiles (http://docs.aws.amazon.com/IAM/latest/UserGuide/AboutInstanceProfiles.html) // in the IAM User Guide. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Identity and Access Management's +// API operation, GetInstanceProfile for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// NoSuchEntityException +// ServiceFailureException func (c *IAM) GetInstanceProfile(input *GetInstanceProfileInput) (*GetInstanceProfileOutput, error) { req, out := c.GetInstanceProfileRequest(input) err := req.Send() @@ -3127,9 +4014,24 @@ func (c *IAM) GetLoginProfileRequest(input *GetLoginProfileInput) (req *request. return } +// GetLoginProfile API operation for AWS Identity and Access Management. +// // Retrieves the user name and password-creation date for the specified IAM // user. If the user has not been assigned a password, the action returns a // 404 (NoSuchEntity) error. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Identity and Access Management's +// API operation, GetLoginProfile for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// NoSuchEntityException +// ServiceFailureException func (c *IAM) GetLoginProfile(input *GetLoginProfileInput) (*GetLoginProfileOutput, error) { req, out := c.GetLoginProfileRequest(input) err := req.Send() @@ -3177,8 +4079,24 @@ func (c *IAM) GetOpenIDConnectProviderRequest(input *GetOpenIDConnectProviderInp return } +// GetOpenIDConnectProvider API operation for AWS Identity and Access Management. +// // Returns information about the specified OpenID Connect (OIDC) provider resource // object in IAM. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Identity and Access Management's +// API operation, GetOpenIDConnectProvider for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidInputException +// NoSuchEntityException +// ServiceFailureException func (c *IAM) GetOpenIDConnectProvider(input *GetOpenIDConnectProviderInput) (*GetOpenIDConnectProviderOutput, error) { req, out := c.GetOpenIDConnectProviderRequest(input) err := req.Send() @@ -3226,6 +4144,8 @@ func (c *IAM) GetPolicyRequest(input *GetPolicyInput) (req *request.Request, out return } +// GetPolicy API operation for AWS Identity and Access Management. +// // Retrieves information about the specified managed policy, including the policy's // default version and the total number of IAM users, groups, and roles to which // the policy is attached. To retrieve the list of the specific users, groups, @@ -3240,6 +4160,20 @@ func (c *IAM) GetPolicyRequest(input *GetPolicyInput) (req *request.Request, out // For more information about policies, see Managed Policies and Inline Policies // (http://docs.aws.amazon.com/IAM/latest/UserGuide/policies-managed-vs-inline.html) // in the IAM User Guide. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Identity and Access Management's +// API operation, GetPolicy for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// NoSuchEntityException +// InvalidInputException +// ServiceFailureException func (c *IAM) GetPolicy(input *GetPolicyInput) (*GetPolicyOutput, error) { req, out := c.GetPolicyRequest(input) err := req.Send() @@ -3287,6 +4221,8 @@ func (c *IAM) GetPolicyVersionRequest(input *GetPolicyVersionInput) (req *reques return } +// GetPolicyVersion API operation for AWS Identity and Access Management. +// // Retrieves information about the specified version of the specified managed // policy, including the policy document. // @@ -3309,6 +4245,20 @@ func (c *IAM) GetPolicyVersionRequest(input *GetPolicyVersionInput) (req *reques // For more information about managed policy versions, see Versioning for Managed // Policies (http://docs.aws.amazon.com/IAM/latest/UserGuide/policies-managed-versions.html) // in the IAM User Guide. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Identity and Access Management's +// API operation, GetPolicyVersion for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// NoSuchEntityException +// InvalidInputException +// ServiceFailureException func (c *IAM) GetPolicyVersion(input *GetPolicyVersionInput) (*GetPolicyVersionOutput, error) { req, out := c.GetPolicyVersionRequest(input) err := req.Send() @@ -3356,6 +4306,8 @@ func (c *IAM) GetRoleRequest(input *GetRoleInput) (req *request.Request, output return } +// GetRole API operation for AWS Identity and Access Management. +// // Retrieves information about the specified role, including the role's path, // GUID, ARN, and the role's trust policy that grants permission to assume the // role. For more information about roles, see Working with Roles (http://docs.aws.amazon.com/IAM/latest/UserGuide/WorkingWithRoles.html). @@ -3365,6 +4317,19 @@ func (c *IAM) GetRoleRequest(input *GetRoleInput) (req *request.Request, output // text. For example, if you use Java, you can use the decode method of the // java.net.URLDecoder utility class in the Java SDK. Other languages and SDKs // provide similar functionality. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Identity and Access Management's +// API operation, GetRole for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// NoSuchEntityException +// ServiceFailureException func (c *IAM) GetRole(input *GetRoleInput) (*GetRoleOutput, error) { req, out := c.GetRoleRequest(input) err := req.Send() @@ -3412,6 +4377,8 @@ func (c *IAM) GetRolePolicyRequest(input *GetRolePolicyInput) (req *request.Requ return } +// GetRolePolicy API operation for AWS Identity and Access Management. +// // Retrieves the specified inline policy document that is embedded with the // specified IAM role. // @@ -3432,6 +4399,19 @@ func (c *IAM) GetRolePolicyRequest(input *GetRolePolicyInput) (req *request.Requ // // For more information about roles, see Using Roles to Delegate Permissions // and Federate Identities (http://docs.aws.amazon.com/IAM/latest/UserGuide/roles-toplevel.html). +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Identity and Access Management's +// API operation, GetRolePolicy for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// NoSuchEntityException +// ServiceFailureException func (c *IAM) GetRolePolicy(input *GetRolePolicyInput) (*GetRolePolicyOutput, error) { req, out := c.GetRolePolicyRequest(input) err := req.Send() @@ -3479,10 +4459,26 @@ func (c *IAM) GetSAMLProviderRequest(input *GetSAMLProviderInput) (req *request. return } +// GetSAMLProvider API operation for AWS Identity and Access Management. +// // Returns the SAML provider metadocument that was uploaded when the IAM SAML // provider resource object was created or updated. // // This operation requires Signature Version 4 (http://docs.aws.amazon.com/general/latest/gr/signature-version-4.html). +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Identity and Access Management's +// API operation, GetSAMLProvider for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// NoSuchEntityException +// InvalidInputException +// ServiceFailureException func (c *IAM) GetSAMLProvider(input *GetSAMLProviderInput) (*GetSAMLProviderOutput, error) { req, out := c.GetSAMLProviderRequest(input) err := req.Send() @@ -3530,6 +4526,8 @@ func (c *IAM) GetSSHPublicKeyRequest(input *GetSSHPublicKeyInput) (req *request. return } +// GetSSHPublicKey API operation for AWS Identity and Access Management. +// // Retrieves the specified SSH public key, including metadata about the key. // // The SSH public key retrieved by this action is used only for authenticating @@ -3537,6 +4535,19 @@ func (c *IAM) GetSSHPublicKeyRequest(input *GetSSHPublicKeyInput) (req *request. // about using SSH keys to authenticate to an AWS CodeCommit repository, see // Set up AWS CodeCommit for SSH Connections (http://docs.aws.amazon.com/codecommit/latest/userguide/setting-up-credentials-ssh.html) // in the AWS CodeCommit User Guide. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Identity and Access Management's +// API operation, GetSSHPublicKey for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// NoSuchEntityException +// UnrecognizedPublicKeyEncodingException func (c *IAM) GetSSHPublicKey(input *GetSSHPublicKeyInput) (*GetSSHPublicKeyOutput, error) { req, out := c.GetSSHPublicKeyRequest(input) err := req.Send() @@ -3584,12 +4595,27 @@ func (c *IAM) GetServerCertificateRequest(input *GetServerCertificateInput) (req return } +// GetServerCertificate API operation for AWS Identity and Access Management. +// // Retrieves information about the specified server certificate stored in IAM. // // For more information about working with server certificates, including a // list of AWS services that can use the server certificates that you manage // with IAM, go to Working with Server Certificates (http://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_server-certs.html) // in the IAM User Guide. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Identity and Access Management's +// API operation, GetServerCertificate for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// NoSuchEntityException +// ServiceFailureException func (c *IAM) GetServerCertificate(input *GetServerCertificateInput) (*GetServerCertificateOutput, error) { req, out := c.GetServerCertificateRequest(input) err := req.Send() @@ -3637,11 +4663,26 @@ func (c *IAM) GetUserRequest(input *GetUserInput) (req *request.Request, output return } +// GetUser API operation for AWS Identity and Access Management. +// // Retrieves information about the specified IAM user, including the user's // creation date, path, unique ID, and ARN. // // If you do not specify a user name, IAM determines the user name implicitly // based on the AWS access key ID used to sign the request to this API. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Identity and Access Management's +// API operation, GetUser for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// NoSuchEntityException +// ServiceFailureException func (c *IAM) GetUser(input *GetUserInput) (*GetUserOutput, error) { req, out := c.GetUserRequest(input) err := req.Send() @@ -3689,6 +4730,8 @@ func (c *IAM) GetUserPolicyRequest(input *GetUserPolicyInput) (req *request.Requ return } +// GetUserPolicy API operation for AWS Identity and Access Management. +// // Retrieves the specified inline policy document that is embedded in the specified // IAM user. // @@ -3706,6 +4749,19 @@ func (c *IAM) GetUserPolicyRequest(input *GetUserPolicyInput) (req *request.Requ // For more information about policies, see Managed Policies and Inline Policies // (http://docs.aws.amazon.com/IAM/latest/UserGuide/policies-managed-vs-inline.html) // in the IAM User Guide. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Identity and Access Management's +// API operation, GetUserPolicy for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// NoSuchEntityException +// ServiceFailureException func (c *IAM) GetUserPolicy(input *GetUserPolicyInput) (*GetUserPolicyOutput, error) { req, out := c.GetUserPolicyRequest(input) err := req.Send() @@ -3759,6 +4815,8 @@ func (c *IAM) ListAccessKeysRequest(input *ListAccessKeysInput) (req *request.Re return } +// ListAccessKeys API operation for AWS Identity and Access Management. +// // Returns information about the access key IDs associated with the specified // IAM user. If there are none, the action returns an empty list. // @@ -3772,6 +4830,19 @@ func (c *IAM) ListAccessKeysRequest(input *ListAccessKeysInput) (req *request.Re // // To ensure the security of your AWS account, the secret access key is accessible // only during key and user creation. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Identity and Access Management's +// API operation, ListAccessKeys for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// NoSuchEntityException +// ServiceFailureException func (c *IAM) ListAccessKeys(input *ListAccessKeysInput) (*ListAccessKeysOutput, error) { req, out := c.ListAccessKeysRequest(input) err := req.Send() @@ -3850,10 +4921,24 @@ func (c *IAM) ListAccountAliasesRequest(input *ListAccountAliasesInput) (req *re return } +// ListAccountAliases API operation for AWS Identity and Access Management. +// // Lists the account alias associated with the AWS account (Note: you can have // only one). For information about using an AWS account alias, see Using an // Alias for Your AWS Account ID (http://docs.aws.amazon.com/IAM/latest/UserGuide/AccountAlias.html) // in the IAM User Guide. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Identity and Access Management's +// API operation, ListAccountAliases for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ServiceFailureException func (c *IAM) ListAccountAliases(input *ListAccountAliasesInput) (*ListAccountAliasesOutput, error) { req, out := c.ListAccountAliasesRequest(input) err := req.Send() @@ -3932,6 +5017,8 @@ func (c *IAM) ListAttachedGroupPoliciesRequest(input *ListAttachedGroupPoliciesI return } +// ListAttachedGroupPolicies API operation for AWS Identity and Access Management. +// // Lists all managed policies that are attached to the specified IAM group. // // An IAM group can also have inline policies embedded with it. To list the @@ -3944,6 +5031,20 @@ func (c *IAM) ListAttachedGroupPoliciesRequest(input *ListAttachedGroupPoliciesI // matching the specified path prefix. If there are no policies attached to // the specified group (or none that match the specified path prefix), the action // returns an empty list. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Identity and Access Management's +// API operation, ListAttachedGroupPolicies for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// NoSuchEntityException +// InvalidInputException +// ServiceFailureException func (c *IAM) ListAttachedGroupPolicies(input *ListAttachedGroupPoliciesInput) (*ListAttachedGroupPoliciesOutput, error) { req, out := c.ListAttachedGroupPoliciesRequest(input) err := req.Send() @@ -4022,6 +5123,8 @@ func (c *IAM) ListAttachedRolePoliciesRequest(input *ListAttachedRolePoliciesInp return } +// ListAttachedRolePolicies API operation for AWS Identity and Access Management. +// // Lists all managed policies that are attached to the specified IAM role. // // An IAM role can also have inline policies embedded with it. To list the @@ -4034,6 +5137,20 @@ func (c *IAM) ListAttachedRolePoliciesRequest(input *ListAttachedRolePoliciesInp // matching the specified path prefix. If there are no policies attached to // the specified role (or none that match the specified path prefix), the action // returns an empty list. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Identity and Access Management's +// API operation, ListAttachedRolePolicies for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// NoSuchEntityException +// InvalidInputException +// ServiceFailureException func (c *IAM) ListAttachedRolePolicies(input *ListAttachedRolePoliciesInput) (*ListAttachedRolePoliciesOutput, error) { req, out := c.ListAttachedRolePoliciesRequest(input) err := req.Send() @@ -4112,6 +5229,8 @@ func (c *IAM) ListAttachedUserPoliciesRequest(input *ListAttachedUserPoliciesInp return } +// ListAttachedUserPolicies API operation for AWS Identity and Access Management. +// // Lists all managed policies that are attached to the specified IAM user. // // An IAM user can also have inline policies embedded with it. To list the @@ -4124,6 +5243,20 @@ func (c *IAM) ListAttachedUserPoliciesRequest(input *ListAttachedUserPoliciesInp // matching the specified path prefix. If there are no policies attached to // the specified group (or none that match the specified path prefix), the action // returns an empty list. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Identity and Access Management's +// API operation, ListAttachedUserPolicies for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// NoSuchEntityException +// InvalidInputException +// ServiceFailureException func (c *IAM) ListAttachedUserPolicies(input *ListAttachedUserPoliciesInput) (*ListAttachedUserPoliciesOutput, error) { req, out := c.ListAttachedUserPoliciesRequest(input) err := req.Send() @@ -4202,6 +5335,8 @@ func (c *IAM) ListEntitiesForPolicyRequest(input *ListEntitiesForPolicyInput) (r return } +// ListEntitiesForPolicy API operation for AWS Identity and Access Management. +// // Lists all IAM users, groups, and roles that the specified managed policy // is attached to. // @@ -4211,6 +5346,20 @@ func (c *IAM) ListEntitiesForPolicyRequest(input *ListEntitiesForPolicyInput) (r // to Role. // // You can paginate the results using the MaxItems and Marker parameters. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Identity and Access Management's +// API operation, ListEntitiesForPolicy for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// NoSuchEntityException +// InvalidInputException +// ServiceFailureException func (c *IAM) ListEntitiesForPolicy(input *ListEntitiesForPolicyInput) (*ListEntitiesForPolicyOutput, error) { req, out := c.ListEntitiesForPolicyRequest(input) err := req.Send() @@ -4289,6 +5438,8 @@ func (c *IAM) ListGroupPoliciesRequest(input *ListGroupPoliciesInput) (req *requ return } +// ListGroupPolicies API operation for AWS Identity and Access Management. +// // Lists the names of the inline policies that are embedded in the specified // IAM group. // @@ -4301,6 +5452,19 @@ func (c *IAM) ListGroupPoliciesRequest(input *ListGroupPoliciesInput) (req *requ // You can paginate the results using the MaxItems and Marker parameters. If // there are no inline policies embedded with the specified group, the action // returns an empty list. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Identity and Access Management's +// API operation, ListGroupPolicies for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// NoSuchEntityException +// ServiceFailureException func (c *IAM) ListGroupPolicies(input *ListGroupPoliciesInput) (*ListGroupPoliciesOutput, error) { req, out := c.ListGroupPoliciesRequest(input) err := req.Send() @@ -4379,9 +5543,23 @@ func (c *IAM) ListGroupsRequest(input *ListGroupsInput) (req *request.Request, o return } +// ListGroups API operation for AWS Identity and Access Management. +// // Lists the IAM groups that have the specified path prefix. // // You can paginate the results using the MaxItems and Marker parameters. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Identity and Access Management's +// API operation, ListGroups for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ServiceFailureException func (c *IAM) ListGroups(input *ListGroupsInput) (*ListGroupsOutput, error) { req, out := c.ListGroupsRequest(input) err := req.Send() @@ -4460,9 +5638,24 @@ func (c *IAM) ListGroupsForUserRequest(input *ListGroupsForUserInput) (req *requ return } +// ListGroupsForUser API operation for AWS Identity and Access Management. +// // Lists the IAM groups that the specified IAM user belongs to. // // You can paginate the results using the MaxItems and Marker parameters. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Identity and Access Management's +// API operation, ListGroupsForUser for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// NoSuchEntityException +// ServiceFailureException func (c *IAM) ListGroupsForUser(input *ListGroupsForUserInput) (*ListGroupsForUserOutput, error) { req, out := c.ListGroupsForUserRequest(input) err := req.Send() @@ -4541,11 +5734,25 @@ func (c *IAM) ListInstanceProfilesRequest(input *ListInstanceProfilesInput) (req return } +// ListInstanceProfiles API operation for AWS Identity and Access Management. +// // Lists the instance profiles that have the specified path prefix. If there // are none, the action returns an empty list. For more information about instance // profiles, go to About Instance Profiles (http://docs.aws.amazon.com/IAM/latest/UserGuide/AboutInstanceProfiles.html). // // You can paginate the results using the MaxItems and Marker parameters. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Identity and Access Management's +// API operation, ListInstanceProfiles for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ServiceFailureException func (c *IAM) ListInstanceProfiles(input *ListInstanceProfilesInput) (*ListInstanceProfilesOutput, error) { req, out := c.ListInstanceProfilesRequest(input) err := req.Send() @@ -4624,11 +5831,26 @@ func (c *IAM) ListInstanceProfilesForRoleRequest(input *ListInstanceProfilesForR return } +// ListInstanceProfilesForRole API operation for AWS Identity and Access Management. +// // Lists the instance profiles that have the specified associated IAM role. // If there are none, the action returns an empty list. For more information // about instance profiles, go to About Instance Profiles (http://docs.aws.amazon.com/IAM/latest/UserGuide/AboutInstanceProfiles.html). // // You can paginate the results using the MaxItems and Marker parameters. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Identity and Access Management's +// API operation, ListInstanceProfilesForRole for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// NoSuchEntityException +// ServiceFailureException func (c *IAM) ListInstanceProfilesForRole(input *ListInstanceProfilesForRoleInput) (*ListInstanceProfilesForRoleOutput, error) { req, out := c.ListInstanceProfilesForRoleRequest(input) err := req.Send() @@ -4707,12 +5929,27 @@ func (c *IAM) ListMFADevicesRequest(input *ListMFADevicesInput) (req *request.Re return } +// ListMFADevices API operation for AWS Identity and Access Management. +// // Lists the MFA devices for an IAM user. If the request includes a IAM user // name, then this action lists all the MFA devices associated with the specified // user. If you do not specify a user name, IAM determines the user name implicitly // based on the AWS access key ID signing the request for this API. // // You can paginate the results using the MaxItems and Marker parameters. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Identity and Access Management's +// API operation, ListMFADevices for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// NoSuchEntityException +// ServiceFailureException func (c *IAM) ListMFADevices(input *ListMFADevicesInput) (*ListMFADevicesOutput, error) { req, out := c.ListMFADevicesRequest(input) err := req.Send() @@ -4785,8 +6022,22 @@ func (c *IAM) ListOpenIDConnectProvidersRequest(input *ListOpenIDConnectProvider return } +// ListOpenIDConnectProviders API operation for AWS Identity and Access Management. +// // Lists information about the IAM OpenID Connect (OIDC) provider resource objects // defined in the AWS account. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Identity and Access Management's +// API operation, ListOpenIDConnectProviders for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ServiceFailureException func (c *IAM) ListOpenIDConnectProviders(input *ListOpenIDConnectProvidersInput) (*ListOpenIDConnectProvidersOutput, error) { req, out := c.ListOpenIDConnectProvidersRequest(input) err := req.Send() @@ -4840,6 +6091,8 @@ func (c *IAM) ListPoliciesRequest(input *ListPoliciesInput) (req *request.Reques return } +// ListPolicies API operation for AWS Identity and Access Management. +// // Lists all the managed policies that are available in your AWS account, including // your own customer-defined managed policies and all AWS managed policies. // @@ -4853,6 +6106,18 @@ func (c *IAM) ListPoliciesRequest(input *ListPoliciesInput) (req *request.Reques // For more information about managed policies, see Managed Policies and Inline // Policies (http://docs.aws.amazon.com/IAM/latest/UserGuide/policies-managed-vs-inline.html) // in the IAM User Guide. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Identity and Access Management's +// API operation, ListPolicies for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ServiceFailureException func (c *IAM) ListPolicies(input *ListPoliciesInput) (*ListPoliciesOutput, error) { req, out := c.ListPoliciesRequest(input) err := req.Send() @@ -4931,12 +6196,28 @@ func (c *IAM) ListPolicyVersionsRequest(input *ListPolicyVersionsInput) (req *re return } +// ListPolicyVersions API operation for AWS Identity and Access Management. +// // Lists information about the versions of the specified managed policy, including // the version that is currently set as the policy's default version. // // For more information about managed policies, see Managed Policies and Inline // Policies (http://docs.aws.amazon.com/IAM/latest/UserGuide/policies-managed-vs-inline.html) // in the IAM User Guide. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Identity and Access Management's +// API operation, ListPolicyVersions for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// NoSuchEntityException +// InvalidInputException +// ServiceFailureException func (c *IAM) ListPolicyVersions(input *ListPolicyVersionsInput) (*ListPolicyVersionsOutput, error) { req, out := c.ListPolicyVersionsRequest(input) err := req.Send() @@ -5015,6 +6296,8 @@ func (c *IAM) ListRolePoliciesRequest(input *ListRolePoliciesInput) (req *reques return } +// ListRolePolicies API operation for AWS Identity and Access Management. +// // Lists the names of the inline policies that are embedded in the specified // IAM role. // @@ -5026,6 +6309,19 @@ func (c *IAM) ListRolePoliciesRequest(input *ListRolePoliciesInput) (req *reques // You can paginate the results using the MaxItems and Marker parameters. If // there are no inline policies embedded with the specified role, the action // returns an empty list. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Identity and Access Management's +// API operation, ListRolePolicies for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// NoSuchEntityException +// ServiceFailureException func (c *IAM) ListRolePolicies(input *ListRolePoliciesInput) (*ListRolePoliciesOutput, error) { req, out := c.ListRolePoliciesRequest(input) err := req.Send() @@ -5104,11 +6400,25 @@ func (c *IAM) ListRolesRequest(input *ListRolesInput) (req *request.Request, out return } +// ListRoles API operation for AWS Identity and Access Management. +// // Lists the IAM roles that have the specified path prefix. If there are none, // the action returns an empty list. For more information about roles, go to // Working with Roles (http://docs.aws.amazon.com/IAM/latest/UserGuide/WorkingWithRoles.html). // // You can paginate the results using the MaxItems and Marker parameters. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Identity and Access Management's +// API operation, ListRoles for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ServiceFailureException func (c *IAM) ListRoles(input *ListRolesInput) (*ListRolesOutput, error) { req, out := c.ListRolesRequest(input) err := req.Send() @@ -5181,9 +6491,23 @@ func (c *IAM) ListSAMLProvidersRequest(input *ListSAMLProvidersInput) (req *requ return } +// ListSAMLProviders API operation for AWS Identity and Access Management. +// // Lists the SAML provider resource objects defined in IAM in the account. // // This operation requires Signature Version 4 (http://docs.aws.amazon.com/general/latest/gr/signature-version-4.html). +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Identity and Access Management's +// API operation, ListSAMLProviders for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ServiceFailureException func (c *IAM) ListSAMLProviders(input *ListSAMLProvidersInput) (*ListSAMLProvidersOutput, error) { req, out := c.ListSAMLProvidersRequest(input) err := req.Send() @@ -5237,6 +6561,8 @@ func (c *IAM) ListSSHPublicKeysRequest(input *ListSSHPublicKeysInput) (req *requ return } +// ListSSHPublicKeys API operation for AWS Identity and Access Management. +// // Returns information about the SSH public keys associated with the specified // IAM user. If there are none, the action returns an empty list. // @@ -5248,6 +6574,18 @@ func (c *IAM) ListSSHPublicKeysRequest(input *ListSSHPublicKeysInput) (req *requ // // Although each user is limited to a small number of keys, you can still paginate // the results using the MaxItems and Marker parameters. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Identity and Access Management's +// API operation, ListSSHPublicKeys for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// NoSuchEntityException func (c *IAM) ListSSHPublicKeys(input *ListSSHPublicKeysInput) (*ListSSHPublicKeysOutput, error) { req, out := c.ListSSHPublicKeysRequest(input) err := req.Send() @@ -5326,6 +6664,8 @@ func (c *IAM) ListServerCertificatesRequest(input *ListServerCertificatesInput) return } +// ListServerCertificates API operation for AWS Identity and Access Management. +// // Lists the server certificates stored in IAM that have the specified path // prefix. If none exist, the action returns an empty list. // @@ -5335,6 +6675,18 @@ func (c *IAM) ListServerCertificatesRequest(input *ListServerCertificatesInput) // list of AWS services that can use the server certificates that you manage // with IAM, go to Working with Server Certificates (http://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_server-certs.html) // in the IAM User Guide. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Identity and Access Management's +// API operation, ListServerCertificates for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ServiceFailureException func (c *IAM) ListServerCertificates(input *ListServerCertificatesInput) (*ListServerCertificatesOutput, error) { req, out := c.ListServerCertificatesRequest(input) err := req.Send() @@ -5413,6 +6765,8 @@ func (c *IAM) ListSigningCertificatesRequest(input *ListSigningCertificatesInput return } +// ListSigningCertificates API operation for AWS Identity and Access Management. +// // Returns information about the signing certificates associated with the specified // IAM user. If there are none, the action returns an empty list. // @@ -5424,6 +6778,19 @@ func (c *IAM) ListSigningCertificatesRequest(input *ListSigningCertificatesInput // this action works for access keys under the AWS account, you can use this // action to manage root credentials even if the AWS account has no associated // users. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Identity and Access Management's +// API operation, ListSigningCertificates for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// NoSuchEntityException +// ServiceFailureException func (c *IAM) ListSigningCertificates(input *ListSigningCertificatesInput) (*ListSigningCertificatesOutput, error) { req, out := c.ListSigningCertificatesRequest(input) err := req.Send() @@ -5502,6 +6869,8 @@ func (c *IAM) ListUserPoliciesRequest(input *ListUserPoliciesInput) (req *reques return } +// ListUserPolicies API operation for AWS Identity and Access Management. +// // Lists the names of the inline policies embedded in the specified IAM user. // // An IAM user can also have managed policies attached to it. To list the managed @@ -5512,6 +6881,19 @@ func (c *IAM) ListUserPoliciesRequest(input *ListUserPoliciesInput) (req *reques // You can paginate the results using the MaxItems and Marker parameters. If // there are no inline policies embedded with the specified user, the action // returns an empty list. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Identity and Access Management's +// API operation, ListUserPolicies for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// NoSuchEntityException +// ServiceFailureException func (c *IAM) ListUserPolicies(input *ListUserPoliciesInput) (*ListUserPoliciesOutput, error) { req, out := c.ListUserPoliciesRequest(input) err := req.Send() @@ -5590,11 +6972,25 @@ func (c *IAM) ListUsersRequest(input *ListUsersInput) (req *request.Request, out return } +// ListUsers API operation for AWS Identity and Access Management. +// // Lists the IAM users that have the specified path prefix. If no path prefix // is specified, the action returns all users in the AWS account. If there are // none, the action returns an empty list. // // You can paginate the results using the MaxItems and Marker parameters. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Identity and Access Management's +// API operation, ListUsers for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ServiceFailureException func (c *IAM) ListUsers(input *ListUsersInput) (*ListUsersOutput, error) { req, out := c.ListUsersRequest(input) err := req.Send() @@ -5673,12 +7069,22 @@ func (c *IAM) ListVirtualMFADevicesRequest(input *ListVirtualMFADevicesInput) (r return } +// ListVirtualMFADevices API operation for AWS Identity and Access Management. +// // Lists the virtual MFA devices defined in the AWS account by assignment status. // If you do not specify an assignment status, the action returns a list of // all virtual MFA devices. Assignment status can be Assigned, Unassigned, or // Any. // // You can paginate the results using the MaxItems and Marker parameters. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Identity and Access Management's +// API operation, ListVirtualMFADevices for more information, and other errors +// that the API operation could return. func (c *IAM) ListVirtualMFADevices(input *ListVirtualMFADevicesInput) (*ListVirtualMFADevicesOutput, error) { req, out := c.ListVirtualMFADevicesRequest(input) err := req.Send() @@ -5753,6 +7159,8 @@ func (c *IAM) PutGroupPolicyRequest(input *PutGroupPolicyInput) (req *request.Re return } +// PutGroupPolicy API operation for AWS Identity and Access Management. +// // Adds or updates an inline policy document that is embedded in the specified // IAM group. // @@ -5770,6 +7178,21 @@ func (c *IAM) PutGroupPolicyRequest(input *PutGroupPolicyInput) (req *request.Re // GET when calling PutGroupPolicy. For general information about using the // Query API with IAM, go to Making Query Requests (http://docs.aws.amazon.com/IAM/latest/UserGuide/IAM_UsingQueryAPI.html) // in the IAM User Guide. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Identity and Access Management's +// API operation, PutGroupPolicy for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// LimitExceededException +// MalformedPolicyDocumentException +// NoSuchEntityException +// ServiceFailureException func (c *IAM) PutGroupPolicy(input *PutGroupPolicyInput) (*PutGroupPolicyOutput, error) { req, out := c.PutGroupPolicyRequest(input) err := req.Send() @@ -5819,6 +7242,8 @@ func (c *IAM) PutRolePolicyRequest(input *PutRolePolicyInput) (req *request.Requ return } +// PutRolePolicy API operation for AWS Identity and Access Management. +// // Adds or updates an inline policy document that is embedded in the specified // IAM role. // @@ -5843,6 +7268,21 @@ func (c *IAM) PutRolePolicyRequest(input *PutRolePolicyInput) (req *request.Requ // GET when calling PutRolePolicy. For general information about using the Query // API with IAM, go to Making Query Requests (http://docs.aws.amazon.com/IAM/latest/UserGuide/IAM_UsingQueryAPI.html) // in the IAM User Guide. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Identity and Access Management's +// API operation, PutRolePolicy for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// LimitExceededException +// MalformedPolicyDocumentException +// NoSuchEntityException +// ServiceFailureException func (c *IAM) PutRolePolicy(input *PutRolePolicyInput) (*PutRolePolicyOutput, error) { req, out := c.PutRolePolicyRequest(input) err := req.Send() @@ -5892,6 +7332,8 @@ func (c *IAM) PutUserPolicyRequest(input *PutUserPolicyInput) (req *request.Requ return } +// PutUserPolicy API operation for AWS Identity and Access Management. +// // Adds or updates an inline policy document that is embedded in the specified // IAM user. // @@ -5909,6 +7351,21 @@ func (c *IAM) PutUserPolicyRequest(input *PutUserPolicyInput) (req *request.Requ // GET when calling PutUserPolicy. For general information about using the Query // API with IAM, go to Making Query Requests (http://docs.aws.amazon.com/IAM/latest/UserGuide/IAM_UsingQueryAPI.html) // in the IAM User Guide. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Identity and Access Management's +// API operation, PutUserPolicy for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// LimitExceededException +// MalformedPolicyDocumentException +// NoSuchEntityException +// ServiceFailureException func (c *IAM) PutUserPolicy(input *PutUserPolicyInput) (*PutUserPolicyOutput, error) { req, out := c.PutUserPolicyRequest(input) err := req.Send() @@ -5958,12 +7415,28 @@ func (c *IAM) RemoveClientIDFromOpenIDConnectProviderRequest(input *RemoveClient return } +// RemoveClientIDFromOpenIDConnectProvider API operation for AWS Identity and Access Management. +// // Removes the specified client ID (also known as audience) from the list of // client IDs registered for the specified IAM OpenID Connect (OIDC) provider // resource object. // // This action is idempotent; it does not fail or return an error if you try // to remove a client ID that does not exist. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Identity and Access Management's +// API operation, RemoveClientIDFromOpenIDConnectProvider for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidInputException +// NoSuchEntityException +// ServiceFailureException func (c *IAM) RemoveClientIDFromOpenIDConnectProvider(input *RemoveClientIDFromOpenIDConnectProviderInput) (*RemoveClientIDFromOpenIDConnectProviderOutput, error) { req, out := c.RemoveClientIDFromOpenIDConnectProviderRequest(input) err := req.Send() @@ -6013,6 +7486,8 @@ func (c *IAM) RemoveRoleFromInstanceProfileRequest(input *RemoveRoleFromInstance return } +// RemoveRoleFromInstanceProfile API operation for AWS Identity and Access Management. +// // Removes the specified IAM role from the specified EC2 instance profile. // // Make sure you do not have any Amazon EC2 instances running with the role @@ -6023,6 +7498,20 @@ func (c *IAM) RemoveRoleFromInstanceProfileRequest(input *RemoveRoleFromInstance // For more information about IAM roles, go to Working with Roles (http://docs.aws.amazon.com/IAM/latest/UserGuide/WorkingWithRoles.html). // For more information about instance profiles, go to About Instance Profiles // (http://docs.aws.amazon.com/IAM/latest/UserGuide/AboutInstanceProfiles.html). +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Identity and Access Management's +// API operation, RemoveRoleFromInstanceProfile for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// NoSuchEntityException +// LimitExceededException +// ServiceFailureException func (c *IAM) RemoveRoleFromInstanceProfile(input *RemoveRoleFromInstanceProfileInput) (*RemoveRoleFromInstanceProfileOutput, error) { req, out := c.RemoveRoleFromInstanceProfileRequest(input) err := req.Send() @@ -6072,7 +7561,23 @@ func (c *IAM) RemoveUserFromGroupRequest(input *RemoveUserFromGroupInput) (req * return } +// RemoveUserFromGroup API operation for AWS Identity and Access Management. +// // Removes the specified user from the specified group. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Identity and Access Management's +// API operation, RemoveUserFromGroup for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// NoSuchEntityException +// LimitExceededException +// ServiceFailureException func (c *IAM) RemoveUserFromGroup(input *RemoveUserFromGroupInput) (*RemoveUserFromGroupOutput, error) { req, out := c.RemoveUserFromGroupRequest(input) err := req.Send() @@ -6122,12 +7627,29 @@ func (c *IAM) ResyncMFADeviceRequest(input *ResyncMFADeviceInput) (req *request. return } +// ResyncMFADevice API operation for AWS Identity and Access Management. +// // Synchronizes the specified MFA device with its IAM resource object on the // AWS servers. // // For more information about creating and working with virtual MFA devices, // go to Using a Virtual MFA Device (http://docs.aws.amazon.com/IAM/latest/UserGuide/Using_VirtualMFA.html) // in the IAM User Guide. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Identity and Access Management's +// API operation, ResyncMFADevice for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidAuthenticationCodeException +// NoSuchEntityException +// LimitExceededException +// ServiceFailureException func (c *IAM) ResyncMFADevice(input *ResyncMFADeviceInput) (*ResyncMFADeviceOutput, error) { req, out := c.ResyncMFADeviceRequest(input) err := req.Send() @@ -6177,6 +7699,8 @@ func (c *IAM) SetDefaultPolicyVersionRequest(input *SetDefaultPolicyVersionInput return } +// SetDefaultPolicyVersion API operation for AWS Identity and Access Management. +// // Sets the specified version of the specified policy as the policy's default // (operative) version. // @@ -6187,6 +7711,21 @@ func (c *IAM) SetDefaultPolicyVersionRequest(input *SetDefaultPolicyVersionInput // For information about managed policies, see Managed Policies and Inline // Policies (http://docs.aws.amazon.com/IAM/latest/UserGuide/policies-managed-vs-inline.html) // in the IAM User Guide. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Identity and Access Management's +// API operation, SetDefaultPolicyVersion for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// NoSuchEntityException +// InvalidInputException +// LimitExceededException +// ServiceFailureException func (c *IAM) SetDefaultPolicyVersion(input *SetDefaultPolicyVersionInput) (*SetDefaultPolicyVersionOutput, error) { req, out := c.SetDefaultPolicyVersionRequest(input) err := req.Send() @@ -6240,6 +7779,8 @@ func (c *IAM) SimulateCustomPolicyRequest(input *SimulateCustomPolicyInput) (req return } +// SimulateCustomPolicy API operation for AWS Identity and Access Management. +// // Simulate how a set of IAM policies and optionally a resource-based policy // works with a list of API actions and AWS resources to determine the policies' // effective permissions. The policies are provided as strings. @@ -6257,6 +7798,19 @@ func (c *IAM) SimulateCustomPolicyRequest(input *SimulateCustomPolicyInput) (req // // If the output is long, you can use MaxItems and Marker parameters to paginate // the results. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Identity and Access Management's +// API operation, SimulateCustomPolicy for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidInputException +// PolicyEvaluationException func (c *IAM) SimulateCustomPolicy(input *SimulateCustomPolicyInput) (*SimulatePolicyResponse, error) { req, out := c.SimulateCustomPolicyRequest(input) err := req.Send() @@ -6335,6 +7889,8 @@ func (c *IAM) SimulatePrincipalPolicyRequest(input *SimulatePrincipalPolicyInput return } +// SimulatePrincipalPolicy API operation for AWS Identity and Access Management. +// // Simulate how a set of IAM policies attached to an IAM entity works with a // list of API actions and AWS resources to determine the policies' effective // permissions. The entity can be an IAM user, group, or role. If you specify @@ -6362,6 +7918,20 @@ func (c *IAM) SimulatePrincipalPolicyRequest(input *SimulatePrincipalPolicyInput // // If the output is long, you can use the MaxItems and Marker parameters to // paginate the results. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Identity and Access Management's +// API operation, SimulatePrincipalPolicy for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// NoSuchEntityException +// InvalidInputException +// PolicyEvaluationException func (c *IAM) SimulatePrincipalPolicy(input *SimulatePrincipalPolicyInput) (*SimulatePolicyResponse, error) { req, out := c.SimulatePrincipalPolicyRequest(input) err := req.Send() @@ -6436,6 +8006,8 @@ func (c *IAM) UpdateAccessKeyRequest(input *UpdateAccessKeyInput) (req *request. return } +// UpdateAccessKey API operation for AWS Identity and Access Management. +// // Changes the status of the specified access key from Active to Inactive, or // vice versa. This action can be used to disable a user's key as part of a // key rotation work flow. @@ -6448,6 +8020,20 @@ func (c *IAM) UpdateAccessKeyRequest(input *UpdateAccessKeyInput) (req *request. // For information about rotating keys, see Managing Keys and Certificates // (http://docs.aws.amazon.com/IAM/latest/UserGuide/ManagingCredentials.html) // in the IAM User Guide. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Identity and Access Management's +// API operation, UpdateAccessKey for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// NoSuchEntityException +// LimitExceededException +// ServiceFailureException func (c *IAM) UpdateAccessKey(input *UpdateAccessKeyInput) (*UpdateAccessKeyOutput, error) { req, out := c.UpdateAccessKeyRequest(input) err := req.Send() @@ -6497,6 +8083,8 @@ func (c *IAM) UpdateAccountPasswordPolicyRequest(input *UpdateAccountPasswordPol return } +// UpdateAccountPasswordPolicy API operation for AWS Identity and Access Management. +// // Updates the password policy settings for the AWS account. // // This action does not support partial updates. No parameters are required, @@ -6507,6 +8095,21 @@ func (c *IAM) UpdateAccountPasswordPolicyRequest(input *UpdateAccountPasswordPol // For more information about using a password policy, see Managing an IAM // Password Policy (http://docs.aws.amazon.com/IAM/latest/UserGuide/Using_ManagingPasswordPolicies.html) // in the IAM User Guide. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Identity and Access Management's +// API operation, UpdateAccountPasswordPolicy for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// NoSuchEntityException +// MalformedPolicyDocumentException +// LimitExceededException +// ServiceFailureException func (c *IAM) UpdateAccountPasswordPolicy(input *UpdateAccountPasswordPolicyInput) (*UpdateAccountPasswordPolicyOutput, error) { req, out := c.UpdateAccountPasswordPolicyRequest(input) err := req.Send() @@ -6556,10 +8159,27 @@ func (c *IAM) UpdateAssumeRolePolicyRequest(input *UpdateAssumeRolePolicyInput) return } +// UpdateAssumeRolePolicy API operation for AWS Identity and Access Management. +// // Updates the policy that grants an IAM entity permission to assume a role. // This is typically referred to as the "role trust policy". For more information // about roles, go to Using Roles to Delegate Permissions and Federate Identities // (http://docs.aws.amazon.com/IAM/latest/UserGuide/roles-toplevel.html). +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Identity and Access Management's +// API operation, UpdateAssumeRolePolicy for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// NoSuchEntityException +// MalformedPolicyDocumentException +// LimitExceededException +// ServiceFailureException func (c *IAM) UpdateAssumeRolePolicy(input *UpdateAssumeRolePolicyInput) (*UpdateAssumeRolePolicyOutput, error) { req, out := c.UpdateAssumeRolePolicyRequest(input) err := req.Send() @@ -6609,6 +8229,8 @@ func (c *IAM) UpdateGroupRequest(input *UpdateGroupInput) (req *request.Request, return } +// UpdateGroup API operation for AWS Identity and Access Management. +// // Updates the name and/or the path of the specified IAM group. // // You should understand the implications of changing a group's path or name. @@ -6620,6 +8242,21 @@ func (c *IAM) UpdateGroupRequest(input *UpdateGroupInput) (req *request.Request, // to "MGRs", the entity making the request must have permission on both "Managers" // and "MGRs", or must have permission on all (*). For more information about // permissions, see Permissions and Policies (http://docs.aws.amazon.com/IAM/latest/UserGuide/PermissionsAndPolicies.html). +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Identity and Access Management's +// API operation, UpdateGroup for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// NoSuchEntityException +// EntityAlreadyExistsException +// LimitExceededException +// ServiceFailureException func (c *IAM) UpdateGroup(input *UpdateGroupInput) (*UpdateGroupOutput, error) { req, out := c.UpdateGroupRequest(input) err := req.Send() @@ -6669,11 +8306,29 @@ func (c *IAM) UpdateLoginProfileRequest(input *UpdateLoginProfileInput) (req *re return } +// UpdateLoginProfile API operation for AWS Identity and Access Management. +// // Changes the password for the specified IAM user. // // IAM users can change their own passwords by calling ChangePassword. For // more information about modifying passwords, see Managing Passwords (http://docs.aws.amazon.com/IAM/latest/UserGuide/Using_ManagingLogins.html) // in the IAM User Guide. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Identity and Access Management's +// API operation, UpdateLoginProfile for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// EntityTemporarilyUnmodifiableException +// NoSuchEntityException +// PasswordPolicyViolationException +// LimitExceededException +// ServiceFailureException func (c *IAM) UpdateLoginProfile(input *UpdateLoginProfileInput) (*UpdateLoginProfileOutput, error) { req, out := c.UpdateLoginProfileRequest(input) err := req.Send() @@ -6723,6 +8378,8 @@ func (c *IAM) UpdateOpenIDConnectProviderThumbprintRequest(input *UpdateOpenIDCo return } +// UpdateOpenIDConnectProviderThumbprint API operation for AWS Identity and Access Management. +// // Replaces the existing list of server certificate thumbprints associated with // an OpenID Connect (OIDC) provider resource object with a new list of thumbprints. // @@ -6738,6 +8395,20 @@ func (c *IAM) UpdateOpenIDConnectProviderThumbprintRequest(input *UpdateOpenIDCo // certificate and is validated by the thumbprint, it is a best practice to // limit access to the UpdateOpenIDConnectProviderThumbprint action to highly-privileged // users. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Identity and Access Management's +// API operation, UpdateOpenIDConnectProviderThumbprint for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidInputException +// NoSuchEntityException +// ServiceFailureException func (c *IAM) UpdateOpenIDConnectProviderThumbprint(input *UpdateOpenIDConnectProviderThumbprintInput) (*UpdateOpenIDConnectProviderThumbprintOutput, error) { req, out := c.UpdateOpenIDConnectProviderThumbprintRequest(input) err := req.Send() @@ -6785,9 +8456,26 @@ func (c *IAM) UpdateSAMLProviderRequest(input *UpdateSAMLProviderInput) (req *re return } +// UpdateSAMLProvider API operation for AWS Identity and Access Management. +// // Updates the metadata document for an existing SAML provider resource object. // // This operation requires Signature Version 4 (http://docs.aws.amazon.com/general/latest/gr/signature-version-4.html). +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Identity and Access Management's +// API operation, UpdateSAMLProvider for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// NoSuchEntityException +// InvalidInputException +// LimitExceededException +// ServiceFailureException func (c *IAM) UpdateSAMLProvider(input *UpdateSAMLProviderInput) (*UpdateSAMLProviderOutput, error) { req, out := c.UpdateSAMLProviderRequest(input) err := req.Send() @@ -6837,6 +8525,8 @@ func (c *IAM) UpdateSSHPublicKeyRequest(input *UpdateSSHPublicKeyInput) (req *re return } +// UpdateSSHPublicKey API operation for AWS Identity and Access Management. +// // Sets the status of an IAM user's SSH public key to active or inactive. SSH // public keys that are inactive cannot be used for authentication. This action // can be used to disable a user's SSH public key as part of a key rotation @@ -6847,6 +8537,18 @@ func (c *IAM) UpdateSSHPublicKeyRequest(input *UpdateSSHPublicKeyInput) (req *re // about using SSH keys to authenticate to an AWS CodeCommit repository, see // Set up AWS CodeCommit for SSH Connections (http://docs.aws.amazon.com/codecommit/latest/userguide/setting-up-credentials-ssh.html) // in the AWS CodeCommit User Guide. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Identity and Access Management's +// API operation, UpdateSSHPublicKey for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// NoSuchEntityException func (c *IAM) UpdateSSHPublicKey(input *UpdateSSHPublicKeyInput) (*UpdateSSHPublicKeyOutput, error) { req, out := c.UpdateSSHPublicKeyRequest(input) err := req.Send() @@ -6896,6 +8598,8 @@ func (c *IAM) UpdateServerCertificateRequest(input *UpdateServerCertificateInput return } +// UpdateServerCertificate API operation for AWS Identity and Access Management. +// // Updates the name and/or the path of the specified server certificate stored // in IAM. // @@ -6915,6 +8619,21 @@ func (c *IAM) UpdateServerCertificateRequest(input *UpdateServerCertificateInput // have permission on all (*). For more information about permissions, see Access // Management (http://docs.aws.amazon.com/IAM/latest/UserGuide/access.html) // in the IAM User Guide. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Identity and Access Management's +// API operation, UpdateServerCertificate for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// NoSuchEntityException +// EntityAlreadyExistsException +// LimitExceededException +// ServiceFailureException func (c *IAM) UpdateServerCertificate(input *UpdateServerCertificateInput) (*UpdateServerCertificateOutput, error) { req, out := c.UpdateServerCertificateRequest(input) err := req.Send() @@ -6964,6 +8683,8 @@ func (c *IAM) UpdateSigningCertificateRequest(input *UpdateSigningCertificateInp return } +// UpdateSigningCertificate API operation for AWS Identity and Access Management. +// // Changes the status of the specified user signing certificate from active // to disabled, or vice versa. This action can be used to disable an IAM user's // signing certificate as part of a certificate rotation work flow. @@ -6972,6 +8693,20 @@ func (c *IAM) UpdateSigningCertificateRequest(input *UpdateSigningCertificateInp // based on the AWS access key ID used to sign the request. Because this action // works for access keys under the AWS account, you can use this action to manage // root credentials even if the AWS account has no associated users. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Identity and Access Management's +// API operation, UpdateSigningCertificate for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// NoSuchEntityException +// LimitExceededException +// ServiceFailureException func (c *IAM) UpdateSigningCertificate(input *UpdateSigningCertificateInput) (*UpdateSigningCertificateOutput, error) { req, out := c.UpdateSigningCertificateRequest(input) err := req.Send() @@ -7021,6 +8756,8 @@ func (c *IAM) UpdateUserRequest(input *UpdateUserInput) (req *request.Request, o return } +// UpdateUser API operation for AWS Identity and Access Management. +// // Updates the name and/or the path of the specified IAM user. // // You should understand the implications of changing an IAM user's path @@ -7033,6 +8770,22 @@ func (c *IAM) UpdateUserRequest(input *UpdateUserInput) (req *request.Request, o // to Robert, the entity making the request must have permission on Bob and // Robert, or must have permission on all (*). For more information about permissions, // see Permissions and Policies (http://docs.aws.amazon.com/IAM/latest/UserGuide/PermissionsAndPolicies.html). +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Identity and Access Management's +// API operation, UpdateUser for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// NoSuchEntityException +// LimitExceededException +// EntityAlreadyExistsException +// EntityTemporarilyUnmodifiableException +// ServiceFailureException func (c *IAM) UpdateUser(input *UpdateUserInput) (*UpdateUserOutput, error) { req, out := c.UpdateUserRequest(input) err := req.Send() @@ -7080,6 +8833,8 @@ func (c *IAM) UploadSSHPublicKeyRequest(input *UploadSSHPublicKeyInput) (req *re return } +// UploadSSHPublicKey API operation for AWS Identity and Access Management. +// // Uploads an SSH public key and associates it with the specified IAM user. // // The SSH public key uploaded by this action can be used only for authenticating @@ -7087,6 +8842,22 @@ func (c *IAM) UploadSSHPublicKeyRequest(input *UploadSSHPublicKeyInput) (req *re // about using SSH keys to authenticate to an AWS CodeCommit repository, see // Set up AWS CodeCommit for SSH Connections (http://docs.aws.amazon.com/codecommit/latest/userguide/setting-up-credentials-ssh.html) // in the AWS CodeCommit User Guide. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Identity and Access Management's +// API operation, UploadSSHPublicKey for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// LimitExceededException +// NoSuchEntityException +// InvalidPublicKeyException +// DuplicateSSHPublicKeyException +// UnrecognizedPublicKeyEncodingException func (c *IAM) UploadSSHPublicKey(input *UploadSSHPublicKeyInput) (*UploadSSHPublicKeyOutput, error) { req, out := c.UploadSSHPublicKeyRequest(input) err := req.Send() @@ -7134,6 +8905,8 @@ func (c *IAM) UploadServerCertificateRequest(input *UploadServerCertificateInput return } +// UploadServerCertificate API operation for AWS Identity and Access Management. +// // Uploads a server certificate entity for the AWS account. The server certificate // entity includes a public key certificate, a private key, and an optional // certificate chain, which should all be PEM-encoded. @@ -7154,6 +8927,22 @@ func (c *IAM) UploadServerCertificateRequest(input *UploadServerCertificateInput // in the AWS General Reference. For general information about using the Query // API with IAM, go to Calling the API by Making HTTP Query Requests (http://docs.aws.amazon.com/IAM/latest/UserGuide/programming.html) // in the IAM User Guide. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Identity and Access Management's +// API operation, UploadServerCertificate for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// LimitExceededException +// EntityAlreadyExistsException +// MalformedCertificateException +// KeyPairMismatchException +// ServiceFailureException func (c *IAM) UploadServerCertificate(input *UploadServerCertificateInput) (*UploadServerCertificateOutput, error) { req, out := c.UploadServerCertificateRequest(input) err := req.Send() @@ -7201,6 +8990,8 @@ func (c *IAM) UploadSigningCertificateRequest(input *UploadSigningCertificateInp return } +// UploadSigningCertificate API operation for AWS Identity and Access Management. +// // Uploads an X.509 signing certificate and associates it with the specified // IAM user. Some AWS services use X.509 signing certificates to validate requests // that are signed with a corresponding private key. When you upload the certificate, @@ -7219,6 +9010,24 @@ func (c *IAM) UploadSigningCertificateRequest(input *UploadSigningCertificateInp // in the AWS General Reference. For general information about using the Query // API with IAM, go to Making Query Requests (http://docs.aws.amazon.com/IAM/latest/UserGuide/IAM_UsingQueryAPI.html) // in the IAM User Guide. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Identity and Access Management's +// API operation, UploadSigningCertificate for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// LimitExceededException +// EntityAlreadyExistsException +// MalformedCertificateException +// InvalidCertificateException +// DuplicateCertificateException +// NoSuchEntityException +// ServiceFailureException func (c *IAM) UploadSigningCertificate(input *UploadSigningCertificateInput) (*UploadSigningCertificateOutput, error) { req, out := c.UploadSigningCertificateRequest(input) err := req.Send() diff --git a/service/inspector/api.go b/service/inspector/api.go index 6858e43532a..e0e7031d919 100644 --- a/service/inspector/api.go +++ b/service/inspector/api.go @@ -54,8 +54,25 @@ func (c *Inspector) AddAttributesToFindingsRequest(input *AddAttributesToFinding return } +// AddAttributesToFindings API operation for Amazon Inspector. +// // Assigns attributes (key and value pairs) to the findings that are specified // by the ARNs of the findings. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Inspector's +// API operation, AddAttributesToFindings for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InternalException +// InvalidInputException +// AccessDeniedException +// NoSuchEntityException func (c *Inspector) AddAttributesToFindings(input *AddAttributesToFindingsInput) (*AddAttributesToFindingsOutput, error) { req, out := c.AddAttributesToFindingsRequest(input) err := req.Send() @@ -103,10 +120,28 @@ func (c *Inspector) CreateAssessmentTargetRequest(input *CreateAssessmentTargetI return } +// CreateAssessmentTarget API operation for Amazon Inspector. +// // Creates a new assessment target using the ARN of the resource group that // is generated by CreateResourceGroup. You can create up to 50 assessment targets // per AWS account. You can run up to 500 concurrent agents per AWS account. // For more information, see Amazon Inspector Assessment Targets (http://docs.aws.amazon.com/inspector/latest/userguide/inspector_applications.html). +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Inspector's +// API operation, CreateAssessmentTarget for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InternalException +// InvalidInputException +// LimitExceededException +// AccessDeniedException +// NoSuchEntityException func (c *Inspector) CreateAssessmentTarget(input *CreateAssessmentTargetInput) (*CreateAssessmentTargetOutput, error) { req, out := c.CreateAssessmentTargetRequest(input) err := req.Send() @@ -154,8 +189,26 @@ func (c *Inspector) CreateAssessmentTemplateRequest(input *CreateAssessmentTempl return } +// CreateAssessmentTemplate API operation for Amazon Inspector. +// // Creates an assessment template for the assessment target that is specified // by the ARN of the assessment target. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Inspector's +// API operation, CreateAssessmentTemplate for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InternalException +// InvalidInputException +// LimitExceededException +// AccessDeniedException +// NoSuchEntityException func (c *Inspector) CreateAssessmentTemplate(input *CreateAssessmentTemplateInput) (*CreateAssessmentTemplateOutput, error) { req, out := c.CreateAssessmentTemplateRequest(input) err := req.Send() @@ -203,10 +256,27 @@ func (c *Inspector) CreateResourceGroupRequest(input *CreateResourceGroupInput) return } +// CreateResourceGroup API operation for Amazon Inspector. +// // Creates a resource group using the specified set of tags (key and value pairs) // that are used to select the EC2 instances to be included in an Amazon Inspector // assessment target. The created resource group is then used to create an Amazon // Inspector assessment target. For more information, see CreateAssessmentTarget. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Inspector's +// API operation, CreateResourceGroup for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InternalException +// InvalidInputException +// LimitExceededException +// AccessDeniedException func (c *Inspector) CreateResourceGroup(input *CreateResourceGroupInput) (*CreateResourceGroupOutput, error) { req, out := c.CreateResourceGroupRequest(input) err := req.Send() @@ -256,8 +326,26 @@ func (c *Inspector) DeleteAssessmentRunRequest(input *DeleteAssessmentRunInput) return } +// DeleteAssessmentRun API operation for Amazon Inspector. +// // Deletes the assessment run that is specified by the ARN of the assessment // run. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Inspector's +// API operation, DeleteAssessmentRun for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InternalException +// InvalidInputException +// AssessmentRunInProgressException +// AccessDeniedException +// NoSuchEntityException func (c *Inspector) DeleteAssessmentRun(input *DeleteAssessmentRunInput) (*DeleteAssessmentRunOutput, error) { req, out := c.DeleteAssessmentRunRequest(input) err := req.Send() @@ -307,8 +395,26 @@ func (c *Inspector) DeleteAssessmentTargetRequest(input *DeleteAssessmentTargetI return } +// DeleteAssessmentTarget API operation for Amazon Inspector. +// // Deletes the assessment target that is specified by the ARN of the assessment // target. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Inspector's +// API operation, DeleteAssessmentTarget for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InternalException +// InvalidInputException +// AssessmentRunInProgressException +// AccessDeniedException +// NoSuchEntityException func (c *Inspector) DeleteAssessmentTarget(input *DeleteAssessmentTargetInput) (*DeleteAssessmentTargetOutput, error) { req, out := c.DeleteAssessmentTargetRequest(input) err := req.Send() @@ -358,8 +464,26 @@ func (c *Inspector) DeleteAssessmentTemplateRequest(input *DeleteAssessmentTempl return } +// DeleteAssessmentTemplate API operation for Amazon Inspector. +// // Deletes the assessment template that is specified by the ARN of the assessment // template. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Inspector's +// API operation, DeleteAssessmentTemplate for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InternalException +// InvalidInputException +// AssessmentRunInProgressException +// AccessDeniedException +// NoSuchEntityException func (c *Inspector) DeleteAssessmentTemplate(input *DeleteAssessmentTemplateInput) (*DeleteAssessmentTemplateOutput, error) { req, out := c.DeleteAssessmentTemplateRequest(input) err := req.Send() @@ -407,8 +531,23 @@ func (c *Inspector) DescribeAssessmentRunsRequest(input *DescribeAssessmentRunsI return } +// DescribeAssessmentRuns API operation for Amazon Inspector. +// // Describes the assessment runs that are specified by the ARNs of the assessment // runs. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Inspector's +// API operation, DescribeAssessmentRuns for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InternalException +// InvalidInputException func (c *Inspector) DescribeAssessmentRuns(input *DescribeAssessmentRunsInput) (*DescribeAssessmentRunsOutput, error) { req, out := c.DescribeAssessmentRunsRequest(input) err := req.Send() @@ -456,8 +595,23 @@ func (c *Inspector) DescribeAssessmentTargetsRequest(input *DescribeAssessmentTa return } +// DescribeAssessmentTargets API operation for Amazon Inspector. +// // Describes the assessment targets that are specified by the ARNs of the assessment // targets. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Inspector's +// API operation, DescribeAssessmentTargets for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InternalException +// InvalidInputException func (c *Inspector) DescribeAssessmentTargets(input *DescribeAssessmentTargetsInput) (*DescribeAssessmentTargetsOutput, error) { req, out := c.DescribeAssessmentTargetsRequest(input) err := req.Send() @@ -505,8 +659,23 @@ func (c *Inspector) DescribeAssessmentTemplatesRequest(input *DescribeAssessment return } +// DescribeAssessmentTemplates API operation for Amazon Inspector. +// // Describes the assessment templates that are specified by the ARNs of the // assessment templates. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Inspector's +// API operation, DescribeAssessmentTemplates for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InternalException +// InvalidInputException func (c *Inspector) DescribeAssessmentTemplates(input *DescribeAssessmentTemplatesInput) (*DescribeAssessmentTemplatesOutput, error) { req, out := c.DescribeAssessmentTemplatesRequest(input) err := req.Send() @@ -554,7 +723,21 @@ func (c *Inspector) DescribeCrossAccountAccessRoleRequest(input *DescribeCrossAc return } +// DescribeCrossAccountAccessRole API operation for Amazon Inspector. +// // Describes the IAM role that enables Amazon Inspector to access your AWS account. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Inspector's +// API operation, DescribeCrossAccountAccessRole for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InternalException func (c *Inspector) DescribeCrossAccountAccessRole(input *DescribeCrossAccountAccessRoleInput) (*DescribeCrossAccountAccessRoleOutput, error) { req, out := c.DescribeCrossAccountAccessRoleRequest(input) err := req.Send() @@ -602,7 +785,22 @@ func (c *Inspector) DescribeFindingsRequest(input *DescribeFindingsInput) (req * return } +// DescribeFindings API operation for Amazon Inspector. +// // Describes the findings that are specified by the ARNs of the findings. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Inspector's +// API operation, DescribeFindings for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InternalException +// InvalidInputException func (c *Inspector) DescribeFindings(input *DescribeFindingsInput) (*DescribeFindingsOutput, error) { req, out := c.DescribeFindingsRequest(input) err := req.Send() @@ -650,8 +848,23 @@ func (c *Inspector) DescribeResourceGroupsRequest(input *DescribeResourceGroupsI return } +// DescribeResourceGroups API operation for Amazon Inspector. +// // Describes the resource groups that are specified by the ARNs of the resource // groups. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Inspector's +// API operation, DescribeResourceGroups for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InternalException +// InvalidInputException func (c *Inspector) DescribeResourceGroups(input *DescribeResourceGroupsInput) (*DescribeResourceGroupsOutput, error) { req, out := c.DescribeResourceGroupsRequest(input) err := req.Send() @@ -699,8 +912,23 @@ func (c *Inspector) DescribeRulesPackagesRequest(input *DescribeRulesPackagesInp return } +// DescribeRulesPackages API operation for Amazon Inspector. +// // Describes the rules packages that are specified by the ARNs of the rules // packages. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Inspector's +// API operation, DescribeRulesPackages for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InternalException +// InvalidInputException func (c *Inspector) DescribeRulesPackages(input *DescribeRulesPackagesInput) (*DescribeRulesPackagesOutput, error) { req, out := c.DescribeRulesPackagesRequest(input) err := req.Send() @@ -748,8 +976,25 @@ func (c *Inspector) GetTelemetryMetadataRequest(input *GetTelemetryMetadataInput return } +// GetTelemetryMetadata API operation for Amazon Inspector. +// // Information about the data that is collected for the specified assessment // run. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Inspector's +// API operation, GetTelemetryMetadata for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InternalException +// InvalidInputException +// AccessDeniedException +// NoSuchEntityException func (c *Inspector) GetTelemetryMetadata(input *GetTelemetryMetadataInput) (*GetTelemetryMetadataOutput, error) { req, out := c.GetTelemetryMetadataRequest(input) err := req.Send() @@ -797,8 +1042,25 @@ func (c *Inspector) ListAssessmentRunAgentsRequest(input *ListAssessmentRunAgent return } +// ListAssessmentRunAgents API operation for Amazon Inspector. +// // Lists the agents of the assessment runs that are specified by the ARNs of // the assessment runs. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Inspector's +// API operation, ListAssessmentRunAgents for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InternalException +// InvalidInputException +// AccessDeniedException +// NoSuchEntityException func (c *Inspector) ListAssessmentRunAgents(input *ListAssessmentRunAgentsInput) (*ListAssessmentRunAgentsOutput, error) { req, out := c.ListAssessmentRunAgentsRequest(input) err := req.Send() @@ -846,8 +1108,25 @@ func (c *Inspector) ListAssessmentRunsRequest(input *ListAssessmentRunsInput) (r return } +// ListAssessmentRuns API operation for Amazon Inspector. +// // Lists the assessment runs that correspond to the assessment templates that // are specified by the ARNs of the assessment templates. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Inspector's +// API operation, ListAssessmentRuns for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InternalException +// InvalidInputException +// AccessDeniedException +// NoSuchEntityException func (c *Inspector) ListAssessmentRuns(input *ListAssessmentRunsInput) (*ListAssessmentRunsOutput, error) { req, out := c.ListAssessmentRunsRequest(input) err := req.Send() @@ -895,9 +1174,25 @@ func (c *Inspector) ListAssessmentTargetsRequest(input *ListAssessmentTargetsInp return } +// ListAssessmentTargets API operation for Amazon Inspector. +// // Lists the ARNs of the assessment targets within this AWS account. For more // information about assessment targets, see Amazon Inspector Assessment Targets // (http://docs.aws.amazon.com/inspector/latest/userguide/inspector_applications.html). +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Inspector's +// API operation, ListAssessmentTargets for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InternalException +// InvalidInputException +// AccessDeniedException func (c *Inspector) ListAssessmentTargets(input *ListAssessmentTargetsInput) (*ListAssessmentTargetsOutput, error) { req, out := c.ListAssessmentTargetsRequest(input) err := req.Send() @@ -945,8 +1240,25 @@ func (c *Inspector) ListAssessmentTemplatesRequest(input *ListAssessmentTemplate return } +// ListAssessmentTemplates API operation for Amazon Inspector. +// // Lists the assessment templates that correspond to the assessment targets // that are specified by the ARNs of the assessment targets. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Inspector's +// API operation, ListAssessmentTemplates for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InternalException +// InvalidInputException +// AccessDeniedException +// NoSuchEntityException func (c *Inspector) ListAssessmentTemplates(input *ListAssessmentTemplatesInput) (*ListAssessmentTemplatesOutput, error) { req, out := c.ListAssessmentTemplatesRequest(input) err := req.Send() @@ -994,9 +1306,26 @@ func (c *Inspector) ListEventSubscriptionsRequest(input *ListEventSubscriptionsI return } +// ListEventSubscriptions API operation for Amazon Inspector. +// // Lists all the event subscriptions for the assessment template that is specified // by the ARN of the assessment template. For more information, see SubscribeToEvent // and UnsubscribeFromEvent. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Inspector's +// API operation, ListEventSubscriptions for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InternalException +// InvalidInputException +// AccessDeniedException +// NoSuchEntityException func (c *Inspector) ListEventSubscriptions(input *ListEventSubscriptionsInput) (*ListEventSubscriptionsOutput, error) { req, out := c.ListEventSubscriptionsRequest(input) err := req.Send() @@ -1044,8 +1373,25 @@ func (c *Inspector) ListFindingsRequest(input *ListFindingsInput) (req *request. return } +// ListFindings API operation for Amazon Inspector. +// // Lists findings that are generated by the assessment runs that are specified // by the ARNs of the assessment runs. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Inspector's +// API operation, ListFindings for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InternalException +// InvalidInputException +// AccessDeniedException +// NoSuchEntityException func (c *Inspector) ListFindings(input *ListFindingsInput) (*ListFindingsOutput, error) { req, out := c.ListFindingsRequest(input) err := req.Send() @@ -1093,7 +1439,23 @@ func (c *Inspector) ListRulesPackagesRequest(input *ListRulesPackagesInput) (req return } +// ListRulesPackages API operation for Amazon Inspector. +// // Lists all available Amazon Inspector rules packages. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Inspector's +// API operation, ListRulesPackages for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InternalException +// InvalidInputException +// AccessDeniedException func (c *Inspector) ListRulesPackages(input *ListRulesPackagesInput) (*ListRulesPackagesOutput, error) { req, out := c.ListRulesPackagesRequest(input) err := req.Send() @@ -1141,7 +1503,24 @@ func (c *Inspector) ListTagsForResourceRequest(input *ListTagsForResourceInput) return } +// ListTagsForResource API operation for Amazon Inspector. +// // Lists all tags associated with an assessment template. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Inspector's +// API operation, ListTagsForResource for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InternalException +// InvalidInputException +// AccessDeniedException +// NoSuchEntityException func (c *Inspector) ListTagsForResource(input *ListTagsForResourceInput) (*ListTagsForResourceOutput, error) { req, out := c.ListTagsForResourceRequest(input) err := req.Send() @@ -1189,8 +1568,26 @@ func (c *Inspector) PreviewAgentsRequest(input *PreviewAgentsInput) (req *reques return } +// PreviewAgents API operation for Amazon Inspector. +// // Previews the agents installed on the EC2 instances that are part of the specified // assessment target. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Inspector's +// API operation, PreviewAgents for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InternalException +// InvalidInputException +// AccessDeniedException +// NoSuchEntityException +// InvalidCrossAccountRoleException func (c *Inspector) PreviewAgents(input *PreviewAgentsInput) (*PreviewAgentsOutput, error) { req, out := c.PreviewAgentsRequest(input) err := req.Send() @@ -1240,8 +1637,25 @@ func (c *Inspector) RegisterCrossAccountAccessRoleRequest(input *RegisterCrossAc return } +// RegisterCrossAccountAccessRole API operation for Amazon Inspector. +// // Registers the IAM role that Amazon Inspector uses to list your EC2 instances // at the start of the assessment run or when you call the PreviewAgents action. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Inspector's +// API operation, RegisterCrossAccountAccessRole for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InternalException +// InvalidInputException +// AccessDeniedException +// InvalidCrossAccountRoleException func (c *Inspector) RegisterCrossAccountAccessRole(input *RegisterCrossAccountAccessRoleInput) (*RegisterCrossAccountAccessRoleOutput, error) { req, out := c.RegisterCrossAccountAccessRoleRequest(input) err := req.Send() @@ -1289,9 +1703,26 @@ func (c *Inspector) RemoveAttributesFromFindingsRequest(input *RemoveAttributesF return } +// RemoveAttributesFromFindings API operation for Amazon Inspector. +// // Removes entire attributes (key and value pairs) from the findings that are // specified by the ARNs of the findings where an attribute with the specified // key exists. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Inspector's +// API operation, RemoveAttributesFromFindings for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InternalException +// InvalidInputException +// AccessDeniedException +// NoSuchEntityException func (c *Inspector) RemoveAttributesFromFindings(input *RemoveAttributesFromFindingsInput) (*RemoveAttributesFromFindingsOutput, error) { req, out := c.RemoveAttributesFromFindingsRequest(input) err := req.Send() @@ -1341,8 +1772,25 @@ func (c *Inspector) SetTagsForResourceRequest(input *SetTagsForResourceInput) (r return } +// SetTagsForResource API operation for Amazon Inspector. +// // Sets tags (key and value pairs) to the assessment template that is specified // by the ARN of the assessment template. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Inspector's +// API operation, SetTagsForResource for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InternalException +// InvalidInputException +// AccessDeniedException +// NoSuchEntityException func (c *Inspector) SetTagsForResource(input *SetTagsForResourceInput) (*SetTagsForResourceOutput, error) { req, out := c.SetTagsForResourceRequest(input) err := req.Send() @@ -1390,9 +1838,29 @@ func (c *Inspector) StartAssessmentRunRequest(input *StartAssessmentRunInput) (r return } +// StartAssessmentRun API operation for Amazon Inspector. +// // Starts the assessment run specified by the ARN of the assessment template. // For this API to function properly, you must not exceed the limit of running // up to 500 concurrent agents per AWS account. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Inspector's +// API operation, StartAssessmentRun for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InternalException +// InvalidInputException +// LimitExceededException +// AccessDeniedException +// NoSuchEntityException +// InvalidCrossAccountRoleException +// AgentsAlreadyRunningAssessmentException func (c *Inspector) StartAssessmentRun(input *StartAssessmentRunInput) (*StartAssessmentRunOutput, error) { req, out := c.StartAssessmentRunRequest(input) err := req.Send() @@ -1442,7 +1910,24 @@ func (c *Inspector) StopAssessmentRunRequest(input *StopAssessmentRunInput) (req return } +// StopAssessmentRun API operation for Amazon Inspector. +// // Stops the assessment run that is specified by the ARN of the assessment run. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Inspector's +// API operation, StopAssessmentRun for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InternalException +// InvalidInputException +// AccessDeniedException +// NoSuchEntityException func (c *Inspector) StopAssessmentRun(input *StopAssessmentRunInput) (*StopAssessmentRunOutput, error) { req, out := c.StopAssessmentRunRequest(input) err := req.Send() @@ -1492,8 +1977,26 @@ func (c *Inspector) SubscribeToEventRequest(input *SubscribeToEventInput) (req * return } +// SubscribeToEvent API operation for Amazon Inspector. +// // Enables the process of sending Amazon Simple Notification Service (SNS) notifications // about a specified event to a specified SNS topic. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Inspector's +// API operation, SubscribeToEvent for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InternalException +// InvalidInputException +// LimitExceededException +// AccessDeniedException +// NoSuchEntityException func (c *Inspector) SubscribeToEvent(input *SubscribeToEventInput) (*SubscribeToEventOutput, error) { req, out := c.SubscribeToEventRequest(input) err := req.Send() @@ -1543,8 +2046,25 @@ func (c *Inspector) UnsubscribeFromEventRequest(input *UnsubscribeFromEventInput return } +// UnsubscribeFromEvent API operation for Amazon Inspector. +// // Disables the process of sending Amazon Simple Notification Service (SNS) // notifications about a specified event to a specified SNS topic. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Inspector's +// API operation, UnsubscribeFromEvent for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InternalException +// InvalidInputException +// AccessDeniedException +// NoSuchEntityException func (c *Inspector) UnsubscribeFromEvent(input *UnsubscribeFromEventInput) (*UnsubscribeFromEventOutput, error) { req, out := c.UnsubscribeFromEventRequest(input) err := req.Send() @@ -1594,8 +2114,25 @@ func (c *Inspector) UpdateAssessmentTargetRequest(input *UpdateAssessmentTargetI return } +// UpdateAssessmentTarget API operation for Amazon Inspector. +// // Updates the assessment target that is specified by the ARN of the assessment // target. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Inspector's +// API operation, UpdateAssessmentTarget for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InternalException +// InvalidInputException +// AccessDeniedException +// NoSuchEntityException func (c *Inspector) UpdateAssessmentTarget(input *UpdateAssessmentTargetInput) (*UpdateAssessmentTargetOutput, error) { req, out := c.UpdateAssessmentTargetRequest(input) err := req.Send() diff --git a/service/iot/api.go b/service/iot/api.go index 6f75cc419f9..8f63fb3b688 100644 --- a/service/iot/api.go +++ b/service/iot/api.go @@ -56,11 +56,31 @@ func (c *IoT) AcceptCertificateTransferRequest(input *AcceptCertificateTransferI return } +// AcceptCertificateTransfer API operation for AWS IoT. +// // Accepts a pending certificate transfer. The default state of the certificate // is INACTIVE. // // To check for pending certificate transfers, call ListCertificates to enumerate // your certificates. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS IoT's +// API operation, AcceptCertificateTransfer for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ResourceNotFoundException +// TransferAlreadyCompletedException +// InvalidRequestException +// ThrottlingException +// UnauthorizedException +// ServiceUnavailableException +// InternalFailureException func (c *IoT) AcceptCertificateTransfer(input *AcceptCertificateTransferInput) (*AcceptCertificateTransferOutput, error) { req, out := c.AcceptCertificateTransferRequest(input) err := req.Send() @@ -110,8 +130,28 @@ func (c *IoT) AttachPrincipalPolicyRequest(input *AttachPrincipalPolicyInput) (r return } +// AttachPrincipalPolicy API operation for AWS IoT. +// // Attaches the specified policy to the specified principal (certificate or // other credential). +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS IoT's +// API operation, AttachPrincipalPolicy for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ResourceNotFoundException +// InvalidRequestException +// ThrottlingException +// UnauthorizedException +// ServiceUnavailableException +// InternalFailureException +// LimitExceededException func (c *IoT) AttachPrincipalPolicy(input *AttachPrincipalPolicyInput) (*AttachPrincipalPolicyOutput, error) { req, out := c.AttachPrincipalPolicyRequest(input) err := req.Send() @@ -159,7 +199,26 @@ func (c *IoT) AttachThingPrincipalRequest(input *AttachThingPrincipalInput) (req return } +// AttachThingPrincipal API operation for AWS IoT. +// // Attaches the specified principal to the specified thing. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS IoT's +// API operation, AttachThingPrincipal for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ResourceNotFoundException +// InvalidRequestException +// ThrottlingException +// UnauthorizedException +// ServiceUnavailableException +// InternalFailureException func (c *IoT) AttachThingPrincipal(input *AttachThingPrincipalInput) (*AttachThingPrincipalOutput, error) { req, out := c.AttachThingPrincipalRequest(input) err := req.Send() @@ -209,6 +268,8 @@ func (c *IoT) CancelCertificateTransferRequest(input *CancelCertificateTransferI return } +// CancelCertificateTransfer API operation for AWS IoT. +// // Cancels a pending transfer for the specified certificate. // // Note Only the transfer source account can use this operation to cancel a @@ -219,6 +280,24 @@ func (c *IoT) CancelCertificateTransferRequest(input *CancelCertificateTransferI // // After a certificate transfer is cancelled, the status of the certificate // changes from PENDING_TRANSFER to INACTIVE. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS IoT's +// API operation, CancelCertificateTransfer for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ResourceNotFoundException +// TransferAlreadyCompletedException +// InvalidRequestException +// ThrottlingException +// UnauthorizedException +// ServiceUnavailableException +// InternalFailureException func (c *IoT) CancelCertificateTransfer(input *CancelCertificateTransferInput) (*CancelCertificateTransferOutput, error) { req, out := c.CancelCertificateTransferRequest(input) err := req.Send() @@ -266,6 +345,8 @@ func (c *IoT) CreateCertificateFromCsrRequest(input *CreateCertificateFromCsrInp return } +// CreateCertificateFromCsr API operation for AWS IoT. +// // Creates an X.509 certificate using the specified certificate signing request. // // Note Reusing the same certificate signing request (CSR) results in a distinct @@ -304,6 +385,22 @@ func (c *IoT) CreateCertificateFromCsrRequest(input *CreateCertificateFromCsrInp // // > forfiles /p my-csr-directory /c "cmd /c aws iot create-certificate-from-csr // --certificate-signing-request file://@path" +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS IoT's +// API operation, CreateCertificateFromCsr for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidRequestException +// ThrottlingException +// UnauthorizedException +// ServiceUnavailableException +// InternalFailureException func (c *IoT) CreateCertificateFromCsr(input *CreateCertificateFromCsrInput) (*CreateCertificateFromCsrOutput, error) { req, out := c.CreateCertificateFromCsrRequest(input) err := req.Send() @@ -351,11 +448,29 @@ func (c *IoT) CreateKeysAndCertificateRequest(input *CreateKeysAndCertificateInp return } +// CreateKeysAndCertificate API operation for AWS IoT. +// // Creates a 2048-bit RSA key pair and issues an X.509 certificate using the // issued public key. // // Note This is the only time AWS IoT issues the private key for this certificate, // so it is important to keep it in a secure location. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS IoT's +// API operation, CreateKeysAndCertificate for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidRequestException +// ThrottlingException +// UnauthorizedException +// ServiceUnavailableException +// InternalFailureException func (c *IoT) CreateKeysAndCertificate(input *CreateKeysAndCertificateInput) (*CreateKeysAndCertificateOutput, error) { req, out := c.CreateKeysAndCertificateRequest(input) err := req.Send() @@ -403,11 +518,31 @@ func (c *IoT) CreatePolicyRequest(input *CreatePolicyInput) (req *request.Reques return } +// CreatePolicy API operation for AWS IoT. +// // Creates an AWS IoT policy. // // The created policy is the default version for the policy. This operation // creates a policy version with a version identifier of 1 and sets 1 as the // policy's default version. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS IoT's +// API operation, CreatePolicy for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ResourceAlreadyExistsException +// MalformedPolicyException +// InvalidRequestException +// ThrottlingException +// UnauthorizedException +// ServiceUnavailableException +// InternalFailureException func (c *IoT) CreatePolicy(input *CreatePolicyInput) (*CreatePolicyOutput, error) { req, out := c.CreatePolicyRequest(input) err := req.Send() @@ -455,6 +590,8 @@ func (c *IoT) CreatePolicyVersionRequest(input *CreatePolicyVersionInput) (req * return } +// CreatePolicyVersion API operation for AWS IoT. +// // Creates a new version of the specified AWS IoT policy. To update a policy, // create a new policy version. A managed policy can have up to five versions. // If the policy has five versions, you must use DeletePolicyVersion to delete @@ -463,6 +600,25 @@ func (c *IoT) CreatePolicyVersionRequest(input *CreatePolicyVersionInput) (req * // Optionally, you can set the new version as the policy's default version. // The default version is the operative version (that is, the version that is // in effect for the certificates to which the policy is attached). +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS IoT's +// API operation, CreatePolicyVersion for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ResourceNotFoundException +// MalformedPolicyException +// VersionsLimitExceededException +// InvalidRequestException +// ThrottlingException +// UnauthorizedException +// ServiceUnavailableException +// InternalFailureException func (c *IoT) CreatePolicyVersion(input *CreatePolicyVersionInput) (*CreatePolicyVersionOutput, error) { req, out := c.CreatePolicyVersionRequest(input) err := req.Send() @@ -510,7 +666,27 @@ func (c *IoT) CreateThingRequest(input *CreateThingInput) (req *request.Request, return } +// CreateThing API operation for AWS IoT. +// // Creates a thing record in the thing registry. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS IoT's +// API operation, CreateThing for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidRequestException +// ThrottlingException +// UnauthorizedException +// ServiceUnavailableException +// InternalFailureException +// ResourceAlreadyExistsException +// ResourceNotFoundException func (c *IoT) CreateThing(input *CreateThingInput) (*CreateThingOutput, error) { req, out := c.CreateThingRequest(input) err := req.Send() @@ -558,7 +734,26 @@ func (c *IoT) CreateThingTypeRequest(input *CreateThingTypeInput) (req *request. return } +// CreateThingType API operation for AWS IoT. +// // Creates a new thing type. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS IoT's +// API operation, CreateThingType for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidRequestException +// ThrottlingException +// UnauthorizedException +// ServiceUnavailableException +// InternalFailureException +// ResourceAlreadyExistsException func (c *IoT) CreateThingType(input *CreateThingTypeInput) (*CreateThingTypeOutput, error) { req, out := c.CreateThingTypeRequest(input) err := req.Send() @@ -608,9 +803,27 @@ func (c *IoT) CreateTopicRuleRequest(input *CreateTopicRuleInput) (req *request. return } +// CreateTopicRule API operation for AWS IoT. +// // Creates a rule. Creating rules is an administrator-level action. Any user // who has permission to create rules will be able to access data processed // by the rule. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS IoT's +// API operation, CreateTopicRule for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// SqlParseException +// InternalException +// InvalidRequestException +// ResourceAlreadyExistsException +// ServiceUnavailableException func (c *IoT) CreateTopicRule(input *CreateTopicRuleInput) (*CreateTopicRuleOutput, error) { req, out := c.CreateTopicRuleRequest(input) err := req.Send() @@ -658,7 +871,27 @@ func (c *IoT) DeleteCACertificateRequest(input *DeleteCACertificateInput) (req * return } +// DeleteCACertificate API operation for AWS IoT. +// // Deletes a registered CA certificate. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS IoT's +// API operation, DeleteCACertificate for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidRequestException +// CertificateStateException +// ThrottlingException +// UnauthorizedException +// ServiceUnavailableException +// InternalFailureException +// ResourceNotFoundException func (c *IoT) DeleteCACertificate(input *DeleteCACertificateInput) (*DeleteCACertificateOutput, error) { req, out := c.DeleteCACertificateRequest(input) err := req.Send() @@ -708,12 +941,33 @@ func (c *IoT) DeleteCertificateRequest(input *DeleteCertificateInput) (req *requ return } +// DeleteCertificate API operation for AWS IoT. +// // Deletes the specified certificate. // // A certificate cannot be deleted if it has a policy attached to it or if // its status is set to ACTIVE. To delete a certificate, first use the DetachPrincipalPolicy // API to detach all policies. Next, use the UpdateCertificate API to set the // certificate to the INACTIVE status. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS IoT's +// API operation, DeleteCertificate for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// CertificateStateException +// DeleteConflictException +// InvalidRequestException +// ThrottlingException +// UnauthorizedException +// ServiceUnavailableException +// InternalFailureException +// ResourceNotFoundException func (c *IoT) DeleteCertificate(input *DeleteCertificateInput) (*DeleteCertificateOutput, error) { req, out := c.DeleteCertificateRequest(input) err := req.Send() @@ -763,6 +1017,8 @@ func (c *IoT) DeletePolicyRequest(input *DeletePolicyInput) (req *request.Reques return } +// DeletePolicy API operation for AWS IoT. +// // Deletes the specified policy. // // A policy cannot be deleted if it has non-default versions or it is attached @@ -774,6 +1030,24 @@ func (c *IoT) DeletePolicyRequest(input *DeletePolicyInput) (req *request.Reques // // When a policy is deleted using DeletePolicy, its default version is deleted // with it. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS IoT's +// API operation, DeletePolicy for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// DeleteConflictException +// ResourceNotFoundException +// InvalidRequestException +// ThrottlingException +// UnauthorizedException +// ServiceUnavailableException +// InternalFailureException func (c *IoT) DeletePolicy(input *DeletePolicyInput) (*DeletePolicyOutput, error) { req, out := c.DeletePolicyRequest(input) err := req.Send() @@ -823,10 +1097,30 @@ func (c *IoT) DeletePolicyVersionRequest(input *DeletePolicyVersionInput) (req * return } +// DeletePolicyVersion API operation for AWS IoT. +// // Deletes the specified version of the specified policy. You cannot delete // the default version of a policy using this API. To delete the default version // of a policy, use DeletePolicy. To find out which version of a policy is marked // as the default version, use ListPolicyVersions. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS IoT's +// API operation, DeletePolicyVersion for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// DeleteConflictException +// ResourceNotFoundException +// InvalidRequestException +// ThrottlingException +// UnauthorizedException +// ServiceUnavailableException +// InternalFailureException func (c *IoT) DeletePolicyVersion(input *DeletePolicyVersionInput) (*DeletePolicyVersionOutput, error) { req, out := c.DeletePolicyVersionRequest(input) err := req.Send() @@ -874,7 +1168,25 @@ func (c *IoT) DeleteRegistrationCodeRequest(input *DeleteRegistrationCodeInput) return } +// DeleteRegistrationCode API operation for AWS IoT. +// // Deletes a CA certificate registration code. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS IoT's +// API operation, DeleteRegistrationCode for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ThrottlingException +// ResourceNotFoundException +// UnauthorizedException +// ServiceUnavailableException +// InternalFailureException func (c *IoT) DeleteRegistrationCode(input *DeleteRegistrationCodeInput) (*DeleteRegistrationCodeOutput, error) { req, out := c.DeleteRegistrationCodeRequest(input) err := req.Send() @@ -922,7 +1234,27 @@ func (c *IoT) DeleteThingRequest(input *DeleteThingInput) (req *request.Request, return } +// DeleteThing API operation for AWS IoT. +// // Deletes the specified thing. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS IoT's +// API operation, DeleteThing for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ResourceNotFoundException +// VersionConflictException +// InvalidRequestException +// ThrottlingException +// UnauthorizedException +// ServiceUnavailableException +// InternalFailureException func (c *IoT) DeleteThing(input *DeleteThingInput) (*DeleteThingOutput, error) { req, out := c.DeleteThingRequest(input) err := req.Send() @@ -970,11 +1302,30 @@ func (c *IoT) DeleteThingTypeRequest(input *DeleteThingTypeInput) (req *request. return } +// DeleteThingType API operation for AWS IoT. +// // Deletes the specified thing type . You cannot delete a thing type if it has // things associated with it. To delete a thing type, first mark it as deprecated // by calling DeprecateThingType, then remove any associated things by calling // UpdateThing to change the thing type on any associated thing, and finally // use DeleteThingType to delete the thing type. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS IoT's +// API operation, DeleteThingType for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ResourceNotFoundException +// InvalidRequestException +// ThrottlingException +// UnauthorizedException +// ServiceUnavailableException +// InternalFailureException func (c *IoT) DeleteThingType(input *DeleteThingTypeInput) (*DeleteThingTypeOutput, error) { req, out := c.DeleteThingTypeRequest(input) err := req.Send() @@ -1024,7 +1375,24 @@ func (c *IoT) DeleteTopicRuleRequest(input *DeleteTopicRuleInput) (req *request. return } +// DeleteTopicRule API operation for AWS IoT. +// // Deletes the specified rule. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS IoT's +// API operation, DeleteTopicRule for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InternalException +// InvalidRequestException +// ServiceUnavailableException +// UnauthorizedException func (c *IoT) DeleteTopicRule(input *DeleteTopicRuleInput) (*DeleteTopicRuleOutput, error) { req, out := c.DeleteTopicRuleRequest(input) err := req.Send() @@ -1072,8 +1440,27 @@ func (c *IoT) DeprecateThingTypeRequest(input *DeprecateThingTypeInput) (req *re return } +// DeprecateThingType API operation for AWS IoT. +// // Deprecates a thing type. You can not associate new things with deprecated // thing type. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS IoT's +// API operation, DeprecateThingType for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ResourceNotFoundException +// InvalidRequestException +// ThrottlingException +// UnauthorizedException +// ServiceUnavailableException +// InternalFailureException func (c *IoT) DeprecateThingType(input *DeprecateThingTypeInput) (*DeprecateThingTypeOutput, error) { req, out := c.DeprecateThingTypeRequest(input) err := req.Send() @@ -1121,7 +1508,26 @@ func (c *IoT) DescribeCACertificateRequest(input *DescribeCACertificateInput) (r return } +// DescribeCACertificate API operation for AWS IoT. +// // Describes a registered CA certificate. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS IoT's +// API operation, DescribeCACertificate for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidRequestException +// ThrottlingException +// UnauthorizedException +// ServiceUnavailableException +// InternalFailureException +// ResourceNotFoundException func (c *IoT) DescribeCACertificate(input *DescribeCACertificateInput) (*DescribeCACertificateOutput, error) { req, out := c.DescribeCACertificateRequest(input) err := req.Send() @@ -1169,7 +1575,26 @@ func (c *IoT) DescribeCertificateRequest(input *DescribeCertificateInput) (req * return } +// DescribeCertificate API operation for AWS IoT. +// // Gets information about the specified certificate. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS IoT's +// API operation, DescribeCertificate for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidRequestException +// ThrottlingException +// UnauthorizedException +// ServiceUnavailableException +// InternalFailureException +// ResourceNotFoundException func (c *IoT) DescribeCertificate(input *DescribeCertificateInput) (*DescribeCertificateOutput, error) { req, out := c.DescribeCertificateRequest(input) err := req.Send() @@ -1217,7 +1642,23 @@ func (c *IoT) DescribeEndpointRequest(input *DescribeEndpointInput) (req *reques return } +// DescribeEndpoint API operation for AWS IoT. +// // Returns a unique endpoint specific to the AWS account making the call. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS IoT's +// API operation, DescribeEndpoint for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InternalFailureException +// UnauthorizedException +// ThrottlingException func (c *IoT) DescribeEndpoint(input *DescribeEndpointInput) (*DescribeEndpointOutput, error) { req, out := c.DescribeEndpointRequest(input) err := req.Send() @@ -1265,7 +1706,26 @@ func (c *IoT) DescribeThingRequest(input *DescribeThingInput) (req *request.Requ return } +// DescribeThing API operation for AWS IoT. +// // Gets information about the specified thing. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS IoT's +// API operation, DescribeThing for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ResourceNotFoundException +// InvalidRequestException +// ThrottlingException +// UnauthorizedException +// ServiceUnavailableException +// InternalFailureException func (c *IoT) DescribeThing(input *DescribeThingInput) (*DescribeThingOutput, error) { req, out := c.DescribeThingRequest(input) err := req.Send() @@ -1313,7 +1773,26 @@ func (c *IoT) DescribeThingTypeRequest(input *DescribeThingTypeInput) (req *requ return } +// DescribeThingType API operation for AWS IoT. +// // Gets information about the specified thing type. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS IoT's +// API operation, DescribeThingType for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ResourceNotFoundException +// InvalidRequestException +// ThrottlingException +// UnauthorizedException +// ServiceUnavailableException +// InternalFailureException func (c *IoT) DescribeThingType(input *DescribeThingTypeInput) (*DescribeThingTypeOutput, error) { req, out := c.DescribeThingTypeRequest(input) err := req.Send() @@ -1363,7 +1842,26 @@ func (c *IoT) DetachPrincipalPolicyRequest(input *DetachPrincipalPolicyInput) (r return } +// DetachPrincipalPolicy API operation for AWS IoT. +// // Removes the specified policy from the specified certificate. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS IoT's +// API operation, DetachPrincipalPolicy for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ResourceNotFoundException +// InvalidRequestException +// ThrottlingException +// UnauthorizedException +// ServiceUnavailableException +// InternalFailureException func (c *IoT) DetachPrincipalPolicy(input *DetachPrincipalPolicyInput) (*DetachPrincipalPolicyOutput, error) { req, out := c.DetachPrincipalPolicyRequest(input) err := req.Send() @@ -1411,7 +1909,26 @@ func (c *IoT) DetachThingPrincipalRequest(input *DetachThingPrincipalInput) (req return } +// DetachThingPrincipal API operation for AWS IoT. +// // Detaches the specified principal from the specified thing. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS IoT's +// API operation, DetachThingPrincipal for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ResourceNotFoundException +// InvalidRequestException +// ThrottlingException +// UnauthorizedException +// ServiceUnavailableException +// InternalFailureException func (c *IoT) DetachThingPrincipal(input *DetachThingPrincipalInput) (*DetachThingPrincipalOutput, error) { req, out := c.DetachThingPrincipalRequest(input) err := req.Send() @@ -1461,7 +1978,24 @@ func (c *IoT) DisableTopicRuleRequest(input *DisableTopicRuleInput) (req *reques return } +// DisableTopicRule API operation for AWS IoT. +// // Disables the specified rule. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS IoT's +// API operation, DisableTopicRule for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InternalException +// InvalidRequestException +// ServiceUnavailableException +// UnauthorizedException func (c *IoT) DisableTopicRule(input *DisableTopicRuleInput) (*DisableTopicRuleOutput, error) { req, out := c.DisableTopicRuleRequest(input) err := req.Send() @@ -1511,7 +2045,24 @@ func (c *IoT) EnableTopicRuleRequest(input *EnableTopicRuleInput) (req *request. return } +// EnableTopicRule API operation for AWS IoT. +// // Enables the specified rule. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS IoT's +// API operation, EnableTopicRule for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InternalException +// InvalidRequestException +// ServiceUnavailableException +// UnauthorizedException func (c *IoT) EnableTopicRule(input *EnableTopicRuleInput) (*EnableTopicRuleOutput, error) { req, out := c.EnableTopicRuleRequest(input) err := req.Send() @@ -1559,7 +2110,23 @@ func (c *IoT) GetLoggingOptionsRequest(input *GetLoggingOptionsInput) (req *requ return } +// GetLoggingOptions API operation for AWS IoT. +// // Gets the logging options. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS IoT's +// API operation, GetLoggingOptions for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InternalException +// InvalidRequestException +// ServiceUnavailableException func (c *IoT) GetLoggingOptions(input *GetLoggingOptionsInput) (*GetLoggingOptionsOutput, error) { req, out := c.GetLoggingOptionsRequest(input) err := req.Send() @@ -1607,8 +2174,27 @@ func (c *IoT) GetPolicyRequest(input *GetPolicyInput) (req *request.Request, out return } +// GetPolicy API operation for AWS IoT. +// // Gets information about the specified policy with the policy document of the // default version. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS IoT's +// API operation, GetPolicy for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ResourceNotFoundException +// InvalidRequestException +// ThrottlingException +// UnauthorizedException +// ServiceUnavailableException +// InternalFailureException func (c *IoT) GetPolicy(input *GetPolicyInput) (*GetPolicyOutput, error) { req, out := c.GetPolicyRequest(input) err := req.Send() @@ -1656,7 +2242,26 @@ func (c *IoT) GetPolicyVersionRequest(input *GetPolicyVersionInput) (req *reques return } +// GetPolicyVersion API operation for AWS IoT. +// // Gets information about the specified policy version. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS IoT's +// API operation, GetPolicyVersion for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ResourceNotFoundException +// InvalidRequestException +// ThrottlingException +// UnauthorizedException +// ServiceUnavailableException +// InternalFailureException func (c *IoT) GetPolicyVersion(input *GetPolicyVersionInput) (*GetPolicyVersionOutput, error) { req, out := c.GetPolicyVersionRequest(input) err := req.Send() @@ -1704,7 +2309,25 @@ func (c *IoT) GetRegistrationCodeRequest(input *GetRegistrationCodeInput) (req * return } +// GetRegistrationCode API operation for AWS IoT. +// // Gets a registration code used to register a CA certificate with AWS IoT. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS IoT's +// API operation, GetRegistrationCode for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ThrottlingException +// UnauthorizedException +// ServiceUnavailableException +// InternalFailureException +// InvalidRequestException func (c *IoT) GetRegistrationCode(input *GetRegistrationCodeInput) (*GetRegistrationCodeOutput, error) { req, out := c.GetRegistrationCodeRequest(input) err := req.Send() @@ -1752,7 +2375,24 @@ func (c *IoT) GetTopicRuleRequest(input *GetTopicRuleInput) (req *request.Reques return } +// GetTopicRule API operation for AWS IoT. +// // Gets information about the specified rule. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS IoT's +// API operation, GetTopicRule for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InternalException +// InvalidRequestException +// ServiceUnavailableException +// UnauthorizedException func (c *IoT) GetTopicRule(input *GetTopicRuleInput) (*GetTopicRuleOutput, error) { req, out := c.GetTopicRuleRequest(input) err := req.Send() @@ -1800,10 +2440,28 @@ func (c *IoT) ListCACertificatesRequest(input *ListCACertificatesInput) (req *re return } +// ListCACertificates API operation for AWS IoT. +// // Lists the CA certificates registered for your AWS account. // // The results are paginated with a default page size of 25. You can use the // returned marker to retrieve additional results. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS IoT's +// API operation, ListCACertificates for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidRequestException +// ThrottlingException +// UnauthorizedException +// ServiceUnavailableException +// InternalFailureException func (c *IoT) ListCACertificates(input *ListCACertificatesInput) (*ListCACertificatesOutput, error) { req, out := c.ListCACertificatesRequest(input) err := req.Send() @@ -1851,10 +2509,28 @@ func (c *IoT) ListCertificatesRequest(input *ListCertificatesInput) (req *reques return } +// ListCertificates API operation for AWS IoT. +// // Lists the certificates registered in your AWS account. // // The results are paginated with a default page size of 25. You can use the // returned marker to retrieve additional results. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS IoT's +// API operation, ListCertificates for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidRequestException +// ThrottlingException +// UnauthorizedException +// ServiceUnavailableException +// InternalFailureException func (c *IoT) ListCertificates(input *ListCertificatesInput) (*ListCertificatesOutput, error) { req, out := c.ListCertificatesRequest(input) err := req.Send() @@ -1902,7 +2578,25 @@ func (c *IoT) ListCertificatesByCARequest(input *ListCertificatesByCAInput) (req return } +// ListCertificatesByCA API operation for AWS IoT. +// // List the device certificates signed by the specified CA certificate. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS IoT's +// API operation, ListCertificatesByCA for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidRequestException +// ThrottlingException +// UnauthorizedException +// ServiceUnavailableException +// InternalFailureException func (c *IoT) ListCertificatesByCA(input *ListCertificatesByCAInput) (*ListCertificatesByCAOutput, error) { req, out := c.ListCertificatesByCARequest(input) err := req.Send() @@ -1950,7 +2644,25 @@ func (c *IoT) ListOutgoingCertificatesRequest(input *ListOutgoingCertificatesInp return } +// ListOutgoingCertificates API operation for AWS IoT. +// // Lists certificates that are being transfered but not yet accepted. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS IoT's +// API operation, ListOutgoingCertificates for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidRequestException +// ThrottlingException +// UnauthorizedException +// ServiceUnavailableException +// InternalFailureException func (c *IoT) ListOutgoingCertificates(input *ListOutgoingCertificatesInput) (*ListOutgoingCertificatesOutput, error) { req, out := c.ListOutgoingCertificatesRequest(input) err := req.Send() @@ -1998,7 +2710,25 @@ func (c *IoT) ListPoliciesRequest(input *ListPoliciesInput) (req *request.Reques return } +// ListPolicies API operation for AWS IoT. +// // Lists your policies. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS IoT's +// API operation, ListPolicies for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidRequestException +// ThrottlingException +// UnauthorizedException +// ServiceUnavailableException +// InternalFailureException func (c *IoT) ListPolicies(input *ListPoliciesInput) (*ListPoliciesOutput, error) { req, out := c.ListPoliciesRequest(input) err := req.Send() @@ -2046,7 +2776,26 @@ func (c *IoT) ListPolicyPrincipalsRequest(input *ListPolicyPrincipalsInput) (req return } +// ListPolicyPrincipals API operation for AWS IoT. +// // Lists the principals associated with the specified policy. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS IoT's +// API operation, ListPolicyPrincipals for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ResourceNotFoundException +// InvalidRequestException +// ThrottlingException +// UnauthorizedException +// ServiceUnavailableException +// InternalFailureException func (c *IoT) ListPolicyPrincipals(input *ListPolicyPrincipalsInput) (*ListPolicyPrincipalsOutput, error) { req, out := c.ListPolicyPrincipalsRequest(input) err := req.Send() @@ -2094,7 +2843,26 @@ func (c *IoT) ListPolicyVersionsRequest(input *ListPolicyVersionsInput) (req *re return } +// ListPolicyVersions API operation for AWS IoT. +// // Lists the versions of the specified policy and identifies the default version. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS IoT's +// API operation, ListPolicyVersions for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ResourceNotFoundException +// InvalidRequestException +// ThrottlingException +// UnauthorizedException +// ServiceUnavailableException +// InternalFailureException func (c *IoT) ListPolicyVersions(input *ListPolicyVersionsInput) (*ListPolicyVersionsOutput, error) { req, out := c.ListPolicyVersionsRequest(input) err := req.Send() @@ -2142,8 +2910,27 @@ func (c *IoT) ListPrincipalPoliciesRequest(input *ListPrincipalPoliciesInput) (r return } +// ListPrincipalPolicies API operation for AWS IoT. +// // Lists the policies attached to the specified principal. If you use an Cognito // identity, the ID must be in AmazonCognito Identity format (http://docs.aws.amazon.com/cognitoidentity/latest/APIReference/API_GetCredentialsForIdentity.html#API_GetCredentialsForIdentity_RequestSyntax). +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS IoT's +// API operation, ListPrincipalPolicies for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ResourceNotFoundException +// InvalidRequestException +// ThrottlingException +// UnauthorizedException +// ServiceUnavailableException +// InternalFailureException func (c *IoT) ListPrincipalPolicies(input *ListPrincipalPoliciesInput) (*ListPrincipalPoliciesOutput, error) { req, out := c.ListPrincipalPoliciesRequest(input) err := req.Send() @@ -2191,7 +2978,26 @@ func (c *IoT) ListPrincipalThingsRequest(input *ListPrincipalThingsInput) (req * return } +// ListPrincipalThings API operation for AWS IoT. +// // Lists the things associated with the specified principal. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS IoT's +// API operation, ListPrincipalThings for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidRequestException +// ThrottlingException +// UnauthorizedException +// ServiceUnavailableException +// InternalFailureException +// ResourceNotFoundException func (c *IoT) ListPrincipalThings(input *ListPrincipalThingsInput) (*ListPrincipalThingsOutput, error) { req, out := c.ListPrincipalThingsRequest(input) err := req.Send() @@ -2239,7 +3045,26 @@ func (c *IoT) ListThingPrincipalsRequest(input *ListThingPrincipalsInput) (req * return } +// ListThingPrincipals API operation for AWS IoT. +// // Lists the principals associated with the specified thing. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS IoT's +// API operation, ListThingPrincipals for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidRequestException +// ThrottlingException +// UnauthorizedException +// ServiceUnavailableException +// InternalFailureException +// ResourceNotFoundException func (c *IoT) ListThingPrincipals(input *ListThingPrincipalsInput) (*ListThingPrincipalsOutput, error) { req, out := c.ListThingPrincipalsRequest(input) err := req.Send() @@ -2287,7 +3112,25 @@ func (c *IoT) ListThingTypesRequest(input *ListThingTypesInput) (req *request.Re return } +// ListThingTypes API operation for AWS IoT. +// // Lists the existing thing types. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS IoT's +// API operation, ListThingTypes for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidRequestException +// ThrottlingException +// UnauthorizedException +// ServiceUnavailableException +// InternalFailureException func (c *IoT) ListThingTypes(input *ListThingTypesInput) (*ListThingTypesOutput, error) { req, out := c.ListThingTypesRequest(input) err := req.Send() @@ -2335,10 +3178,28 @@ func (c *IoT) ListThingsRequest(input *ListThingsInput) (req *request.Request, o return } +// ListThings API operation for AWS IoT. +// // Lists your things. Use the attributeName and attributeValue parameters to // filter your things. For example, calling ListThings with attributeName=Color // and attributeValue=Red retrieves all things in the registry that contain // an attribute Color with the value Red. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS IoT's +// API operation, ListThings for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidRequestException +// ThrottlingException +// UnauthorizedException +// ServiceUnavailableException +// InternalFailureException func (c *IoT) ListThings(input *ListThingsInput) (*ListThingsOutput, error) { req, out := c.ListThingsRequest(input) err := req.Send() @@ -2386,7 +3247,23 @@ func (c *IoT) ListTopicRulesRequest(input *ListTopicRulesInput) (req *request.Re return } +// ListTopicRules API operation for AWS IoT. +// // Lists the rules for the specific topic. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS IoT's +// API operation, ListTopicRules for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InternalException +// InvalidRequestException +// ServiceUnavailableException func (c *IoT) ListTopicRules(input *ListTopicRulesInput) (*ListTopicRulesOutput, error) { req, out := c.ListTopicRulesRequest(input) err := req.Send() @@ -2434,6 +3311,8 @@ func (c *IoT) RegisterCACertificateRequest(input *RegisterCACertificateInput) (r return } +// RegisterCACertificate API operation for AWS IoT. +// // Registers a CA certificate with AWS IoT. This CA certificate can then be // used to sign device certificates, which can be then registered with AWS IoT. // You can register up to 10 CA certificates per AWS account that have the same @@ -2441,6 +3320,26 @@ func (c *IoT) RegisterCACertificateRequest(input *RegisterCACertificateInput) (r // authorities sign your device certificates. If you have more than one CA certificate // registered, make sure you pass the CA certificate when you register your // device certificates with the RegisterCertificate API. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS IoT's +// API operation, RegisterCACertificate for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ResourceAlreadyExistsException +// RegistrationCodeValidationException +// InvalidRequestException +// CertificateValidationException +// ThrottlingException +// LimitExceededException +// UnauthorizedException +// ServiceUnavailableException +// InternalFailureException func (c *IoT) RegisterCACertificate(input *RegisterCACertificateInput) (*RegisterCACertificateOutput, error) { req, out := c.RegisterCACertificateRequest(input) err := req.Send() @@ -2488,9 +3387,31 @@ func (c *IoT) RegisterCertificateRequest(input *RegisterCertificateInput) (req * return } +// RegisterCertificate API operation for AWS IoT. +// // Registers a device certificate with AWS IoT. If you have more than one CA // certificate that has the same subject field, you must specify the CA certificate // that was used to sign the device certificate being registered. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS IoT's +// API operation, RegisterCertificate for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ResourceAlreadyExistsException +// InvalidRequestException +// CertificateValidationException +// CertificateStateException +// CertificateConflictException +// ThrottlingException +// UnauthorizedException +// ServiceUnavailableException +// InternalFailureException func (c *IoT) RegisterCertificate(input *RegisterCertificateInput) (*RegisterCertificateOutput, error) { req, out := c.RegisterCertificateRequest(input) err := req.Send() @@ -2540,6 +3461,8 @@ func (c *IoT) RejectCertificateTransferRequest(input *RejectCertificateTransferI return } +// RejectCertificateTransfer API operation for AWS IoT. +// // Rejects a pending certificate transfer. After AWS IoT rejects a certificate // transfer, the certificate status changes from PENDING_TRANSFER to INACTIVE. // @@ -2549,6 +3472,24 @@ func (c *IoT) RejectCertificateTransferRequest(input *RejectCertificateTransferI // This operation can only be called by the transfer destination. After it // is called, the certificate will be returned to the source's account in the // INACTIVE state. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS IoT's +// API operation, RejectCertificateTransfer for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ResourceNotFoundException +// TransferAlreadyCompletedException +// InvalidRequestException +// ThrottlingException +// UnauthorizedException +// ServiceUnavailableException +// InternalFailureException func (c *IoT) RejectCertificateTransfer(input *RejectCertificateTransferInput) (*RejectCertificateTransferOutput, error) { req, out := c.RejectCertificateTransferRequest(input) err := req.Send() @@ -2598,9 +3539,27 @@ func (c *IoT) ReplaceTopicRuleRequest(input *ReplaceTopicRuleInput) (req *reques return } +// ReplaceTopicRule API operation for AWS IoT. +// // Replaces the specified rule. You must specify all parameters for the new // rule. Creating rules is an administrator-level action. Any user who has permission // to create rules will be able to access data processed by the rule. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS IoT's +// API operation, ReplaceTopicRule for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// SqlParseException +// InternalException +// InvalidRequestException +// ServiceUnavailableException +// UnauthorizedException func (c *IoT) ReplaceTopicRule(input *ReplaceTopicRuleInput) (*ReplaceTopicRuleOutput, error) { req, out := c.ReplaceTopicRuleRequest(input) err := req.Send() @@ -2650,10 +3609,29 @@ func (c *IoT) SetDefaultPolicyVersionRequest(input *SetDefaultPolicyVersionInput return } +// SetDefaultPolicyVersion API operation for AWS IoT. +// // Sets the specified version of the specified policy as the policy's default // (operative) version. This action affects all certificates to which the policy // is attached. To list the principals the policy is attached to, use the ListPrincipalPolicy // API. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS IoT's +// API operation, SetDefaultPolicyVersion for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ResourceNotFoundException +// InvalidRequestException +// ThrottlingException +// UnauthorizedException +// ServiceUnavailableException +// InternalFailureException func (c *IoT) SetDefaultPolicyVersion(input *SetDefaultPolicyVersionInput) (*SetDefaultPolicyVersionOutput, error) { req, out := c.SetDefaultPolicyVersionRequest(input) err := req.Send() @@ -2703,7 +3681,23 @@ func (c *IoT) SetLoggingOptionsRequest(input *SetLoggingOptionsInput) (req *requ return } +// SetLoggingOptions API operation for AWS IoT. +// // Sets the logging options. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS IoT's +// API operation, SetLoggingOptions for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InternalException +// InvalidRequestException +// ServiceUnavailableException func (c *IoT) SetLoggingOptions(input *SetLoggingOptionsInput) (*SetLoggingOptionsOutput, error) { req, out := c.SetLoggingOptionsRequest(input) err := req.Send() @@ -2751,6 +3745,8 @@ func (c *IoT) TransferCertificateRequest(input *TransferCertificateInput) (req * return } +// TransferCertificate API operation for AWS IoT. +// // Transfers the specified certificate to the specified AWS account. // // You can cancel the transfer until it is acknowledged by the recipient. @@ -2763,6 +3759,25 @@ func (c *IoT) TransferCertificateRequest(input *TransferCertificateInput) (req * // // The certificate must not have any policies attached to it. You can use the // DetachPrincipalPolicy API to detach them. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS IoT's +// API operation, TransferCertificate for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidRequestException +// ResourceNotFoundException +// CertificateStateException +// TransferConflictException +// ThrottlingException +// UnauthorizedException +// ServiceUnavailableException +// InternalFailureException func (c *IoT) TransferCertificate(input *TransferCertificateInput) (*TransferCertificateOutput, error) { req, out := c.TransferCertificateRequest(input) err := req.Send() @@ -2812,7 +3827,26 @@ func (c *IoT) UpdateCACertificateRequest(input *UpdateCACertificateInput) (req * return } +// UpdateCACertificate API operation for AWS IoT. +// // Updates a registered CA certificate. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS IoT's +// API operation, UpdateCACertificate for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ResourceNotFoundException +// InvalidRequestException +// ThrottlingException +// UnauthorizedException +// ServiceUnavailableException +// InternalFailureException func (c *IoT) UpdateCACertificate(input *UpdateCACertificateInput) (*UpdateCACertificateOutput, error) { req, out := c.UpdateCACertificateRequest(input) err := req.Send() @@ -2862,6 +3896,8 @@ func (c *IoT) UpdateCertificateRequest(input *UpdateCertificateInput) (req *requ return } +// UpdateCertificate API operation for AWS IoT. +// // Updates the status of the specified certificate. This operation is idempotent. // // Moving a certificate from the ACTIVE state (including REVOKED) will not @@ -2870,6 +3906,24 @@ func (c *IoT) UpdateCertificateRequest(input *UpdateCertificateInput) (req *requ // // The ACTIVE state is required to authenticate devices connecting to AWS IoT // using a certificate. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS IoT's +// API operation, UpdateCertificate for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ResourceNotFoundException +// CertificateStateException +// InvalidRequestException +// ThrottlingException +// UnauthorizedException +// ServiceUnavailableException +// InternalFailureException func (c *IoT) UpdateCertificate(input *UpdateCertificateInput) (*UpdateCertificateOutput, error) { req, out := c.UpdateCertificateRequest(input) err := req.Send() @@ -2917,7 +3971,27 @@ func (c *IoT) UpdateThingRequest(input *UpdateThingInput) (req *request.Request, return } +// UpdateThing API operation for AWS IoT. +// // Updates the data for a thing. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS IoT's +// API operation, UpdateThing for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidRequestException +// VersionConflictException +// ThrottlingException +// UnauthorizedException +// ServiceUnavailableException +// InternalFailureException +// ResourceNotFoundException func (c *IoT) UpdateThing(input *UpdateThingInput) (*UpdateThingOutput, error) { req, out := c.UpdateThingRequest(input) err := req.Send() diff --git a/service/iotdataplane/api.go b/service/iotdataplane/api.go index 3c730a33f8b..0f2e9f28f57 100644 --- a/service/iotdataplane/api.go +++ b/service/iotdataplane/api.go @@ -51,10 +51,31 @@ func (c *IoTDataPlane) DeleteThingShadowRequest(input *DeleteThingShadowInput) ( return } +// DeleteThingShadow API operation for AWS IoT Data Plane. +// // Deletes the thing shadow for the specified thing. // // For more information, see DeleteThingShadow (http://docs.aws.amazon.com/iot/latest/developerguide/API_DeleteThingShadow.html) // in the AWS IoT Developer Guide. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS IoT Data Plane's +// API operation, DeleteThingShadow for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ResourceNotFoundException +// InvalidRequestException +// ThrottlingException +// UnauthorizedException +// ServiceUnavailableException +// InternalFailureException +// MethodNotAllowedException +// UnsupportedDocumentEncodingException func (c *IoTDataPlane) DeleteThingShadow(input *DeleteThingShadowInput) (*DeleteThingShadowOutput, error) { req, out := c.DeleteThingShadowRequest(input) err := req.Send() @@ -102,10 +123,31 @@ func (c *IoTDataPlane) GetThingShadowRequest(input *GetThingShadowInput) (req *r return } +// GetThingShadow API operation for AWS IoT Data Plane. +// // Gets the thing shadow for the specified thing. // // For more information, see GetThingShadow (http://docs.aws.amazon.com/iot/latest/developerguide/API_GetThingShadow.html) // in the AWS IoT Developer Guide. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS IoT Data Plane's +// API operation, GetThingShadow for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidRequestException +// ResourceNotFoundException +// ThrottlingException +// UnauthorizedException +// ServiceUnavailableException +// InternalFailureException +// MethodNotAllowedException +// UnsupportedDocumentEncodingException func (c *IoTDataPlane) GetThingShadow(input *GetThingShadowInput) (*GetThingShadowOutput, error) { req, out := c.GetThingShadowRequest(input) err := req.Send() @@ -155,10 +197,27 @@ func (c *IoTDataPlane) PublishRequest(input *PublishInput) (req *request.Request return } +// Publish API operation for AWS IoT Data Plane. +// // Publishes state information. // // For more information, see HTTP Protocol (http://docs.aws.amazon.com/iot/latest/developerguide/protocols.html#http) // in the AWS IoT Developer Guide. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS IoT Data Plane's +// API operation, Publish for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InternalFailureException +// InvalidRequestException +// UnauthorizedException +// MethodNotAllowedException func (c *IoTDataPlane) Publish(input *PublishInput) (*PublishOutput, error) { req, out := c.PublishRequest(input) err := req.Send() @@ -206,10 +265,32 @@ func (c *IoTDataPlane) UpdateThingShadowRequest(input *UpdateThingShadowInput) ( return } +// UpdateThingShadow API operation for AWS IoT Data Plane. +// // Updates the thing shadow for the specified thing. // // For more information, see UpdateThingShadow (http://docs.aws.amazon.com/iot/latest/developerguide/API_UpdateThingShadow.html) // in the AWS IoT Developer Guide. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS IoT Data Plane's +// API operation, UpdateThingShadow for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ConflictException +// RequestEntityTooLargeException +// InvalidRequestException +// ThrottlingException +// UnauthorizedException +// ServiceUnavailableException +// InternalFailureException +// MethodNotAllowedException +// UnsupportedDocumentEncodingException func (c *IoTDataPlane) UpdateThingShadow(input *UpdateThingShadowInput) (*UpdateThingShadowOutput, error) { req, out := c.UpdateThingShadowRequest(input) err := req.Send() diff --git a/service/kinesis/api.go b/service/kinesis/api.go index fbf14aa3236..78f7c07f91d 100644 --- a/service/kinesis/api.go +++ b/service/kinesis/api.go @@ -56,11 +56,28 @@ func (c *Kinesis) AddTagsToStreamRequest(input *AddTagsToStreamInput) (req *requ return } +// AddTagsToStream API operation for Amazon Kinesis. +// // Adds or updates tags for the specified Amazon Kinesis stream. Each stream // can have up to 10 tags. // // If tags have already been assigned to the stream, AddTagsToStream overwrites // any existing tags that correspond to the specified tag keys. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Kinesis's +// API operation, AddTagsToStream for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ResourceNotFoundException +// ResourceInUseException +// InvalidArgumentException +// LimitExceededException func (c *Kinesis) AddTagsToStream(input *AddTagsToStreamInput) (*AddTagsToStreamOutput, error) { req, out := c.AddTagsToStreamRequest(input) err := req.Send() @@ -110,6 +127,8 @@ func (c *Kinesis) CreateStreamRequest(input *CreateStreamInput) (req *request.Re return } +// CreateStream API operation for Amazon Kinesis. +// // Creates an Amazon Kinesis stream. A stream captures and transports data records // that are continuously emitted from different data sources or producers. Scale-out // within a stream is explicitly supported by means of shards, which are uniquely @@ -146,6 +165,20 @@ func (c *Kinesis) CreateStreamRequest(input *CreateStreamInput) (req *request.Re // in StreamStatus. // // CreateStream has a limit of 5 transactions per second per account. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Kinesis's +// API operation, CreateStream for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ResourceInUseException +// LimitExceededException +// InvalidArgumentException func (c *Kinesis) CreateStream(input *CreateStreamInput) (*CreateStreamOutput, error) { req, out := c.CreateStreamRequest(input) err := req.Send() @@ -195,6 +228,8 @@ func (c *Kinesis) DecreaseStreamRetentionPeriodRequest(input *DecreaseStreamRete return } +// DecreaseStreamRetentionPeriod API operation for Amazon Kinesis. +// // Decreases the Amazon Kinesis stream's retention period, which is the length // of time data records are accessible after they are added to the stream. The // minimum value of a stream's retention period is 24 hours. @@ -202,6 +237,21 @@ func (c *Kinesis) DecreaseStreamRetentionPeriodRequest(input *DecreaseStreamRete // This operation may result in lost data. For example, if the stream's retention // period is 48 hours and is decreased to 24 hours, any data already in the // stream that is older than 24 hours is inaccessible. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Kinesis's +// API operation, DecreaseStreamRetentionPeriod for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ResourceInUseException +// ResourceNotFoundException +// LimitExceededException +// InvalidArgumentException func (c *Kinesis) DecreaseStreamRetentionPeriod(input *DecreaseStreamRetentionPeriodInput) (*DecreaseStreamRetentionPeriodOutput, error) { req, out := c.DecreaseStreamRetentionPeriodRequest(input) err := req.Send() @@ -251,6 +301,8 @@ func (c *Kinesis) DeleteStreamRequest(input *DeleteStreamInput) (req *request.Re return } +// DeleteStream API operation for Amazon Kinesis. +// // Deletes an Amazon Kinesis stream and all its shards and data. You must shut // down any applications that are operating on the stream before you delete // the stream. If an application attempts to operate on a deleted stream, it @@ -271,6 +323,19 @@ func (c *Kinesis) DeleteStreamRequest(input *DeleteStreamInput) (req *request.Re // which is returned in StreamStatus. // // DeleteStream has a limit of 5 transactions per second per account. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Kinesis's +// API operation, DeleteStream for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ResourceNotFoundException +// LimitExceededException func (c *Kinesis) DeleteStream(input *DeleteStreamInput) (*DeleteStreamOutput, error) { req, out := c.DeleteStreamRequest(input) err := req.Send() @@ -324,6 +389,8 @@ func (c *Kinesis) DescribeStreamRequest(input *DescribeStreamInput) (req *reques return } +// DescribeStream API operation for Amazon Kinesis. +// // Describes the specified Amazon Kinesis stream. // // The information about the stream includes its current status, its Amazon @@ -350,6 +417,19 @@ func (c *Kinesis) DescribeStreamRequest(input *DescribeStreamInput) (req *reques // use ParentShardId to track lineage to the oldest shard. // // DescribeStream has a limit of 10 transactions per second per account. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Kinesis's +// API operation, DescribeStream for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ResourceNotFoundException +// LimitExceededException func (c *Kinesis) DescribeStream(input *DescribeStreamInput) (*DescribeStreamOutput, error) { req, out := c.DescribeStreamRequest(input) err := req.Send() @@ -422,7 +502,24 @@ func (c *Kinesis) DisableEnhancedMonitoringRequest(input *DisableEnhancedMonitor return } +// DisableEnhancedMonitoring API operation for Amazon Kinesis. +// // Disables enhanced monitoring. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Kinesis's +// API operation, DisableEnhancedMonitoring for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidArgumentException +// LimitExceededException +// ResourceInUseException +// ResourceNotFoundException func (c *Kinesis) DisableEnhancedMonitoring(input *DisableEnhancedMonitoringInput) (*EnhancedMonitoringOutput, error) { req, out := c.DisableEnhancedMonitoringRequest(input) err := req.Send() @@ -470,7 +567,24 @@ func (c *Kinesis) EnableEnhancedMonitoringRequest(input *EnableEnhancedMonitorin return } +// EnableEnhancedMonitoring API operation for Amazon Kinesis. +// // Enables enhanced Amazon Kinesis stream monitoring for shard-level metrics. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Kinesis's +// API operation, EnableEnhancedMonitoring for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidArgumentException +// LimitExceededException +// ResourceInUseException +// ResourceNotFoundException func (c *Kinesis) EnableEnhancedMonitoring(input *EnableEnhancedMonitoringInput) (*EnhancedMonitoringOutput, error) { req, out := c.EnableEnhancedMonitoringRequest(input) err := req.Send() @@ -518,6 +632,8 @@ func (c *Kinesis) GetRecordsRequest(input *GetRecordsInput) (req *request.Reques return } +// GetRecords API operation for Amazon Kinesis. +// // Gets data records from an Amazon Kinesis stream's shard. // // Specify a shard iterator using the ShardIterator parameter. The shard iterator @@ -571,6 +687,21 @@ func (c *Kinesis) GetRecordsRequest(input *GetRecordsInput) (req *request.Reques // are no guarantees about the timestamp accuracy, or that the timestamp is // always increasing. For example, records in a shard or across a stream might // have timestamps that are out of order. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Kinesis's +// API operation, GetRecords for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ResourceNotFoundException +// InvalidArgumentException +// ProvisionedThroughputExceededException +// ExpiredIteratorException func (c *Kinesis) GetRecords(input *GetRecordsInput) (*GetRecordsOutput, error) { req, out := c.GetRecordsRequest(input) err := req.Send() @@ -618,6 +749,8 @@ func (c *Kinesis) GetShardIteratorRequest(input *GetShardIteratorInput) (req *re return } +// GetShardIterator API operation for Amazon Kinesis. +// // Gets an Amazon Kinesis shard iterator. A shard iterator expires five minutes // after it is returned to the requester. // @@ -656,6 +789,20 @@ func (c *Kinesis) GetShardIteratorRequest(input *GetShardIteratorInput) (req *re // // GetShardIterator has a limit of 5 transactions per second per account per // open shard. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Kinesis's +// API operation, GetShardIterator for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ResourceNotFoundException +// InvalidArgumentException +// ProvisionedThroughputExceededException func (c *Kinesis) GetShardIterator(input *GetShardIteratorInput) (*GetShardIteratorOutput, error) { req, out := c.GetShardIteratorRequest(input) err := req.Send() @@ -705,6 +852,8 @@ func (c *Kinesis) IncreaseStreamRetentionPeriodRequest(input *IncreaseStreamRete return } +// IncreaseStreamRetentionPeriod API operation for Amazon Kinesis. +// // Increases the Amazon Kinesis stream's retention period, which is the length // of time data records are accessible after they are added to the stream. The // maximum value of a stream's retention period is 168 hours (7 days). @@ -716,6 +865,21 @@ func (c *Kinesis) IncreaseStreamRetentionPeriodRequest(input *IncreaseStreamRete // For example, if a stream's retention period is set to 24 hours and is increased // to 168 hours, any data that is older than 24 hours will remain inaccessible // to consumer applications. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Kinesis's +// API operation, IncreaseStreamRetentionPeriod for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ResourceInUseException +// ResourceNotFoundException +// LimitExceededException +// InvalidArgumentException func (c *Kinesis) IncreaseStreamRetentionPeriod(input *IncreaseStreamRetentionPeriodInput) (*IncreaseStreamRetentionPeriodOutput, error) { req, out := c.IncreaseStreamRetentionPeriodRequest(input) err := req.Send() @@ -769,6 +933,8 @@ func (c *Kinesis) ListStreamsRequest(input *ListStreamsInput) (req *request.Requ return } +// ListStreams API operation for Amazon Kinesis. +// // Lists your Amazon Kinesis streams. // // The number of streams may be too large to return from a single call to ListStreams. @@ -785,6 +951,18 @@ func (c *Kinesis) ListStreamsRequest(input *ListStreamsInput) (req *request.Requ // until all the stream names have been collected in the list. // // ListStreams has a limit of 5 transactions per second per account. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Kinesis's +// API operation, ListStreams for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// LimitExceededException func (c *Kinesis) ListStreams(input *ListStreamsInput) (*ListStreamsOutput, error) { req, out := c.ListStreamsRequest(input) err := req.Send() @@ -857,7 +1035,23 @@ func (c *Kinesis) ListTagsForStreamRequest(input *ListTagsForStreamInput) (req * return } +// ListTagsForStream API operation for Amazon Kinesis. +// // Lists the tags for the specified Amazon Kinesis stream. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Kinesis's +// API operation, ListTagsForStream for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ResourceNotFoundException +// InvalidArgumentException +// LimitExceededException func (c *Kinesis) ListTagsForStream(input *ListTagsForStreamInput) (*ListTagsForStreamOutput, error) { req, out := c.ListTagsForStreamRequest(input) err := req.Send() @@ -907,6 +1101,8 @@ func (c *Kinesis) MergeShardsRequest(input *MergeShardsInput) (req *request.Requ return } +// MergeShards API operation for Amazon Kinesis. +// // Merges two adjacent shards in an Amazon Kinesis stream and combines them // into a single shard to reduce the stream's capacity to ingest and transport // data. Two shards are considered adjacent if the union of the hash key ranges @@ -943,6 +1139,21 @@ func (c *Kinesis) MergeShardsRequest(input *MergeShardsInput) (req *request.Requ // DeleteStream, MergeShards or SplitShard, you will receive a LimitExceededException. // // MergeShards has limit of 5 transactions per second per account. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Kinesis's +// API operation, MergeShards for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ResourceNotFoundException +// ResourceInUseException +// InvalidArgumentException +// LimitExceededException func (c *Kinesis) MergeShards(input *MergeShardsInput) (*MergeShardsOutput, error) { req, out := c.MergeShardsRequest(input) err := req.Send() @@ -990,6 +1201,8 @@ func (c *Kinesis) PutRecordRequest(input *PutRecordInput) (req *request.Request, return } +// PutRecord API operation for Amazon Kinesis. +// // Writes a single data record into an Amazon Kinesis stream. Call PutRecord // to send data into the stream for real-time ingestion and subsequent processing, // one record at a time. Each shard can support writes up to 1,000 records per @@ -1028,6 +1241,20 @@ func (c *Kinesis) PutRecordRequest(input *PutRecordInput) (req *request.Request, // // Data records are accessible for only 24 hours from the time that they are // added to a stream. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Kinesis's +// API operation, PutRecord for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ResourceNotFoundException +// InvalidArgumentException +// ProvisionedThroughputExceededException func (c *Kinesis) PutRecord(input *PutRecordInput) (*PutRecordOutput, error) { req, out := c.PutRecordRequest(input) err := req.Send() @@ -1075,6 +1302,8 @@ func (c *Kinesis) PutRecordsRequest(input *PutRecordsInput) (req *request.Reques return } +// PutRecords API operation for Amazon Kinesis. +// // Writes multiple data records into an Amazon Kinesis stream in a single call // (also referred to as a PutRecords request). Use this operation to send data // into the stream for data ingestion and processing. @@ -1135,6 +1364,20 @@ func (c *Kinesis) PutRecordsRequest(input *PutRecordsInput) (req *request.Reques // that they are added to an Amazon Kinesis stream. This retention period can // be modified using the DecreaseStreamRetentionPeriod and IncreaseStreamRetentionPeriod // operations. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Kinesis's +// API operation, PutRecords for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ResourceNotFoundException +// InvalidArgumentException +// ProvisionedThroughputExceededException func (c *Kinesis) PutRecords(input *PutRecordsInput) (*PutRecordsOutput, error) { req, out := c.PutRecordsRequest(input) err := req.Send() @@ -1184,10 +1427,27 @@ func (c *Kinesis) RemoveTagsFromStreamRequest(input *RemoveTagsFromStreamInput) return } +// RemoveTagsFromStream API operation for Amazon Kinesis. +// // Removes tags from the specified Amazon Kinesis stream. Removed tags are deleted // and cannot be recovered after this operation successfully completes. // // If you specify a tag that does not exist, it is ignored. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Kinesis's +// API operation, RemoveTagsFromStream for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ResourceNotFoundException +// ResourceInUseException +// InvalidArgumentException +// LimitExceededException func (c *Kinesis) RemoveTagsFromStream(input *RemoveTagsFromStreamInput) (*RemoveTagsFromStreamOutput, error) { req, out := c.RemoveTagsFromStreamRequest(input) err := req.Send() @@ -1237,6 +1497,8 @@ func (c *Kinesis) SplitShardRequest(input *SplitShardInput) (req *request.Reques return } +// SplitShard API operation for Amazon Kinesis. +// // Splits a shard into two new shards in the Amazon Kinesis stream to increase // the stream's capacity to ingest and transport data. SplitShard is called // when there is a need to increase the overall capacity of a stream because @@ -1282,6 +1544,21 @@ func (c *Kinesis) SplitShardRequest(input *SplitShardInput) (req *request.Reques // DeleteStream, MergeShards, and/or SplitShard, you receive a LimitExceededException. // // SplitShard has limit of 5 transactions per second per account. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Kinesis's +// API operation, SplitShard for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ResourceNotFoundException +// ResourceInUseException +// InvalidArgumentException +// LimitExceededException func (c *Kinesis) SplitShard(input *SplitShardInput) (*SplitShardOutput, error) { req, out := c.SplitShardRequest(input) err := req.Send() diff --git a/service/kinesisanalytics/api.go b/service/kinesisanalytics/api.go index 3a2e1550b29..6335ae7f737 100644 --- a/service/kinesisanalytics/api.go +++ b/service/kinesisanalytics/api.go @@ -52,6 +52,8 @@ func (c *KinesisAnalytics) AddApplicationInputRequest(input *AddApplicationInput return } +// AddApplicationInput API operation for Amazon Kinesis Analytics. +// // Adds a streaming source to your Amazon Kinesis application. For conceptual // information, see Configuring Application Input (http://docs.aws.amazon.com/kinesisanalytics/latest/dev/how-it-works-input.html). // @@ -65,6 +67,21 @@ func (c *KinesisAnalytics) AddApplicationInputRequest(input *AddApplicationInput // // This operation requires permissions to perform the kinesisanalytics:AddApplicationInput // action. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Kinesis Analytics's +// API operation, AddApplicationInput for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ResourceNotFoundException +// ResourceInUseException +// InvalidArgumentException +// ConcurrentModificationException func (c *KinesisAnalytics) AddApplicationInput(input *AddApplicationInputInput) (*AddApplicationInputOutput, error) { req, out := c.AddApplicationInputRequest(input) err := req.Send() @@ -112,6 +129,8 @@ func (c *KinesisAnalytics) AddApplicationOutputRequest(input *AddApplicationOutp return } +// AddApplicationOutput API operation for Amazon Kinesis Analytics. +// // Adds an external destination to your Amazon Kinesis Analytics application. // // If you want Amazon Kinesis Analytics to deliver data from an in-application @@ -135,6 +154,21 @@ func (c *KinesisAnalytics) AddApplicationOutputRequest(input *AddApplicationOutp // // This operation requires permissions to perform the kinesisanalytics:AddApplicationOutput // action. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Kinesis Analytics's +// API operation, AddApplicationOutput for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ResourceNotFoundException +// ResourceInUseException +// InvalidArgumentException +// ConcurrentModificationException func (c *KinesisAnalytics) AddApplicationOutput(input *AddApplicationOutputInput) (*AddApplicationOutputOutput, error) { req, out := c.AddApplicationOutputRequest(input) err := req.Send() @@ -182,6 +216,8 @@ func (c *KinesisAnalytics) AddApplicationReferenceDataSourceRequest(input *AddAp return } +// AddApplicationReferenceDataSource API operation for Amazon Kinesis Analytics. +// // Adds a reference data source to an existing application. // // Amazon Kinesis Analytics reads reference data (that is, an Amazon S3 object) @@ -197,6 +233,21 @@ func (c *KinesisAnalytics) AddApplicationReferenceDataSourceRequest(input *AddAp // // This operation requires permissions to perform the kinesisanalytics:AddApplicationOutput // action. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Kinesis Analytics's +// API operation, AddApplicationReferenceDataSource for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ResourceNotFoundException +// ResourceInUseException +// InvalidArgumentException +// ConcurrentModificationException func (c *KinesisAnalytics) AddApplicationReferenceDataSource(input *AddApplicationReferenceDataSourceInput) (*AddApplicationReferenceDataSourceOutput, error) { req, out := c.AddApplicationReferenceDataSourceRequest(input) err := req.Send() @@ -244,6 +295,8 @@ func (c *KinesisAnalytics) CreateApplicationRequest(input *CreateApplicationInpu return } +// CreateApplication API operation for Amazon Kinesis Analytics. +// // Creates an Amazon Kinesis Analytics application. You can configure each application // with one streaming source as input, application code to process the input, // and up to five streaming destinations where you want Amazon Kinesis Analytics @@ -271,6 +324,21 @@ func (c *KinesisAnalytics) CreateApplicationRequest(input *CreateApplicationInpu // // For introductory exercises to create an Amazon Kinesis Analytics application, // see Getting Started (http://docs.aws.amazon.com/kinesisanalytics/latest/dev/getting-started.html). +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Kinesis Analytics's +// API operation, CreateApplication for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// CodeValidationException +// ResourceInUseException +// LimitExceededException +// InvalidArgumentException func (c *KinesisAnalytics) CreateApplication(input *CreateApplicationInput) (*CreateApplicationOutput, error) { req, out := c.CreateApplicationRequest(input) err := req.Send() @@ -318,12 +386,28 @@ func (c *KinesisAnalytics) DeleteApplicationRequest(input *DeleteApplicationInpu return } +// DeleteApplication API operation for Amazon Kinesis Analytics. +// // Deletes the specified application. Amazon Kinesis Analytics halts application // execution and deletes the application, including any application artifacts // (such as in-application streams, reference table, and application code). // // This operation requires permissions to perform the kinesisanalytics:DeleteApplication // action. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Kinesis Analytics's +// API operation, DeleteApplication for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ConcurrentModificationException +// ResourceNotFoundException +// ResourceInUseException func (c *KinesisAnalytics) DeleteApplication(input *DeleteApplicationInput) (*DeleteApplicationOutput, error) { req, out := c.DeleteApplicationRequest(input) err := req.Send() @@ -371,12 +455,28 @@ func (c *KinesisAnalytics) DeleteApplicationOutputRequest(input *DeleteApplicati return } +// DeleteApplicationOutput API operation for Amazon Kinesis Analytics. +// // Deletes output destination configuration from your application configuration. // Amazon Kinesis Analytics will no longer write data from the corresponding // in-application stream to the external output destination. // // This operation requires permissions to perform the kinesisanalytics:DeleteApplicationOutput // action. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Kinesis Analytics's +// API operation, DeleteApplicationOutput for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ResourceNotFoundException +// ResourceInUseException +// ConcurrentModificationException func (c *KinesisAnalytics) DeleteApplicationOutput(input *DeleteApplicationOutputInput) (*DeleteApplicationOutputOutput, error) { req, out := c.DeleteApplicationOutputRequest(input) err := req.Send() @@ -424,6 +524,8 @@ func (c *KinesisAnalytics) DeleteApplicationReferenceDataSourceRequest(input *De return } +// DeleteApplicationReferenceDataSource API operation for Amazon Kinesis Analytics. +// // Deletes a reference data source configuration from the specified application // configuration. // @@ -433,6 +535,21 @@ func (c *KinesisAnalytics) DeleteApplicationReferenceDataSourceRequest(input *De // // This operation requires permissions to perform the kinesisanalytics.DeleteApplicationReferenceDataSource // action. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Kinesis Analytics's +// API operation, DeleteApplicationReferenceDataSource for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ResourceNotFoundException +// ResourceInUseException +// InvalidArgumentException +// ConcurrentModificationException func (c *KinesisAnalytics) DeleteApplicationReferenceDataSource(input *DeleteApplicationReferenceDataSourceInput) (*DeleteApplicationReferenceDataSourceOutput, error) { req, out := c.DeleteApplicationReferenceDataSourceRequest(input) err := req.Send() @@ -480,6 +597,8 @@ func (c *KinesisAnalytics) DescribeApplicationRequest(input *DescribeApplication return } +// DescribeApplication API operation for Amazon Kinesis Analytics. +// // Returns information about a specific Amazon Kinesis Analytics application. // // If you want to retrieve a list of all applications in your account, use @@ -488,6 +607,18 @@ func (c *KinesisAnalytics) DescribeApplicationRequest(input *DescribeApplication // This operation requires permissions to perform the kinesisanalytics:DescribeApplication // action. You can use DescribeApplication to get the current application versionId, // which you need to call other operations such as Update. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Kinesis Analytics's +// API operation, DescribeApplication for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ResourceNotFoundException func (c *KinesisAnalytics) DescribeApplication(input *DescribeApplicationInput) (*DescribeApplicationOutput, error) { req, out := c.DescribeApplicationRequest(input) err := req.Send() @@ -535,6 +666,8 @@ func (c *KinesisAnalytics) DiscoverInputSchemaRequest(input *DiscoverInputSchema return } +// DiscoverInputSchema API operation for Amazon Kinesis Analytics. +// // Infers a schema by evaluating sample records on the specified streaming source // (Amazon Kinesis stream or Amazon Kinesis Firehose delivery stream). In the // response, the operation returns the inferred schema and also the sample records @@ -549,6 +682,20 @@ func (c *KinesisAnalytics) DiscoverInputSchemaRequest(input *DiscoverInputSchema // // This operation requires permissions to perform the kinesisanalytics:DiscoverInputSchema // action. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Kinesis Analytics's +// API operation, DiscoverInputSchema for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidArgumentException +// UnableToDetectSchemaException +// ResourceProvisionedThroughputExceededException func (c *KinesisAnalytics) DiscoverInputSchema(input *DiscoverInputSchemaInput) (*DiscoverInputSchemaOutput, error) { req, out := c.DiscoverInputSchemaRequest(input) err := req.Send() @@ -596,6 +743,8 @@ func (c *KinesisAnalytics) ListApplicationsRequest(input *ListApplicationsInput) return } +// ListApplications API operation for Amazon Kinesis Analytics. +// // Returns a list of Amazon Kinesis Analytics applications in your account. // For each application, the response includes the application name, Amazon // Resource Name (ARN), and status. If the response returns the HasMoreApplications @@ -607,6 +756,14 @@ func (c *KinesisAnalytics) ListApplicationsRequest(input *ListApplicationsInput) // // This operation requires permissions to perform the kinesisanalytics:ListApplications // action. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Kinesis Analytics's +// API operation, ListApplications for more information, and other errors +// that the API operation could return. func (c *KinesisAnalytics) ListApplications(input *ListApplicationsInput) (*ListApplicationsOutput, error) { req, out := c.ListApplicationsRequest(input) err := req.Send() @@ -654,6 +811,8 @@ func (c *KinesisAnalytics) StartApplicationRequest(input *StartApplicationInput) return } +// StartApplication API operation for Amazon Kinesis Analytics. +// // Starts the specified Amazon Kinesis Analytics application. After creating // an application, you must exclusively call this operation to start your application. // @@ -669,6 +828,21 @@ func (c *KinesisAnalytics) StartApplicationRequest(input *StartApplicationInput) // // This operation requires permissions to perform the kinesisanalytics:StartApplication // action. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Kinesis Analytics's +// API operation, StartApplication for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ResourceNotFoundException +// ResourceInUseException +// InvalidArgumentException +// InvalidApplicationConfigurationException func (c *KinesisAnalytics) StartApplication(input *StartApplicationInput) (*StartApplicationOutput, error) { req, out := c.StartApplicationRequest(input) err := req.Send() @@ -716,6 +890,8 @@ func (c *KinesisAnalytics) StopApplicationRequest(input *StopApplicationInput) ( return } +// StopApplication API operation for Amazon Kinesis Analytics. +// // Stops the application from processing input data. You can stop an application // only if it is in the running state. You can use the DescribeApplication operation // to find the application state. After the application is stopped, Amazon Kinesis @@ -724,6 +900,19 @@ func (c *KinesisAnalytics) StopApplicationRequest(input *StopApplicationInput) ( // // This operation requires permissions to perform the kinesisanalytics:StopApplication // action. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Kinesis Analytics's +// API operation, StopApplication for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ResourceNotFoundException +// ResourceInUseException func (c *KinesisAnalytics) StopApplication(input *StopApplicationInput) (*StopApplicationOutput, error) { req, out := c.StopApplicationRequest(input) err := req.Send() @@ -771,6 +960,8 @@ func (c *KinesisAnalytics) UpdateApplicationRequest(input *UpdateApplicationInpu return } +// UpdateApplication API operation for Amazon Kinesis Analytics. +// // Updates an existing Kinesis Analytics application. Using this API, you can // update application code, input configuration, and output configuration. // @@ -779,6 +970,22 @@ func (c *KinesisAnalytics) UpdateApplicationRequest(input *UpdateApplicationInpu // // This opeation requires permission for the kinesisanalytics:UpdateApplication // action. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Kinesis Analytics's +// API operation, UpdateApplication for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// CodeValidationException +// ResourceNotFoundException +// ResourceInUseException +// InvalidArgumentException +// ConcurrentModificationException func (c *KinesisAnalytics) UpdateApplication(input *UpdateApplicationInput) (*UpdateApplicationOutput, error) { req, out := c.UpdateApplicationRequest(input) err := req.Send() diff --git a/service/kms/api.go b/service/kms/api.go index 4c0e214c193..a6957364dbc 100644 --- a/service/kms/api.go +++ b/service/kms/api.go @@ -53,6 +53,8 @@ func (c *KMS) CancelKeyDeletionRequest(input *CancelKeyDeletionInput) (req *requ return } +// CancelKeyDeletion API operation for AWS Key Management Service. +// // Cancels the deletion of a customer master key (CMK). When this operation // is successful, the CMK is set to the Disabled state. To enable a CMK, use // EnableKey. @@ -60,6 +62,22 @@ func (c *KMS) CancelKeyDeletionRequest(input *CancelKeyDeletionInput) (req *requ // For more information about scheduling and canceling deletion of a CMK, see // Deleting Customer Master Keys (http://docs.aws.amazon.com/kms/latest/developerguide/deleting-keys.html) // in the AWS Key Management Service Developer Guide. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Key Management Service's +// API operation, CancelKeyDeletion for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// NotFoundException +// InvalidArnException +// DependencyTimeoutException +// KMSInternalException +// KMSInvalidStateException func (c *KMS) CancelKeyDeletion(input *CancelKeyDeletionInput) (*CancelKeyDeletionOutput, error) { req, out := c.CancelKeyDeletionRequest(input) err := req.Send() @@ -109,6 +127,8 @@ func (c *KMS) CreateAliasRequest(input *CreateAliasInput) (req *request.Request, return } +// CreateAlias API operation for AWS Key Management Service. +// // Creates a display name for a customer master key. An alias can be used to // identify a key and should be unique. The console enforces a one-to-one mapping // between the alias and a key. An alias name can contain only alphanumeric @@ -121,6 +141,24 @@ func (c *KMS) CreateAliasRequest(input *CreateAliasInput) (req *request.Request, // the same region. // // To map an alias to a different key, call UpdateAlias. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Key Management Service's +// API operation, CreateAlias for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// DependencyTimeoutException +// AlreadyExistsException +// NotFoundException +// InvalidAliasNameException +// KMSInternalException +// LimitExceededException +// KMSInvalidStateException func (c *KMS) CreateAlias(input *CreateAliasInput) (*CreateAliasOutput, error) { req, out := c.CreateAliasRequest(input) err := req.Send() @@ -168,11 +206,32 @@ func (c *KMS) CreateGrantRequest(input *CreateGrantInput) (req *request.Request, return } +// CreateGrant API operation for AWS Key Management Service. +// // Adds a grant to a key to specify who can use the key and under what conditions. // Grants are alternate permission mechanisms to key policies. // // For more information about grants, see Grants (http://docs.aws.amazon.com/kms/latest/developerguide/grants.html) // in the AWS Key Management Service Developer Guide. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Key Management Service's +// API operation, CreateGrant for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// NotFoundException +// DisabledException +// DependencyTimeoutException +// InvalidArnException +// KMSInternalException +// InvalidGrantTokenException +// LimitExceededException +// KMSInvalidStateException func (c *KMS) CreateGrant(input *CreateGrantInput) (*CreateGrantOutput, error) { req, out := c.CreateGrantRequest(input) err := req.Send() @@ -220,6 +279,8 @@ func (c *KMS) CreateKeyRequest(input *CreateKeyInput) (req *request.Request, out return } +// CreateKey API operation for AWS Key Management Service. +// // Creates a customer master key (CMK). // // You can use a CMK to encrypt small amounts of data (4 KiB or less) directly, @@ -231,6 +292,23 @@ func (c *KMS) CreateKeyRequest(input *CreateKeyInput) (req *request.Request, out // // AWS Key Management Service Concepts (http://docs.aws.amazon.com/kms/latest/developerguide/concepts.html) // in the AWS Key Management Service Developer Guide +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Key Management Service's +// API operation, CreateKey for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// MalformedPolicyDocumentException +// DependencyTimeoutException +// InvalidArnException +// UnsupportedOperationException +// KMSInternalException +// LimitExceededException func (c *KMS) CreateKey(input *CreateKeyInput) (*CreateKeyOutput, error) { req, out := c.CreateKeyRequest(input) err := req.Send() @@ -278,6 +356,8 @@ func (c *KMS) DecryptRequest(input *DecryptInput) (req *request.Request, output return } +// Decrypt API operation for AWS Key Management Service. +// // Decrypts ciphertext. Ciphertext is plaintext that has been previously encrypted // by using any of the following functions: // @@ -295,6 +375,25 @@ func (c *KMS) DecryptRequest(input *DecryptInput) (req *request.Request, output // Instead grant Decrypt access only in key policies. If you must grant Decrypt // access in an IAM user policy, you should scope the resource to specific keys // or to specific trusted accounts. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Key Management Service's +// API operation, Decrypt for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// NotFoundException +// DisabledException +// InvalidCiphertextException +// KeyUnavailableException +// DependencyTimeoutException +// InvalidGrantTokenException +// KMSInternalException +// KMSInvalidStateException func (c *KMS) Decrypt(input *DecryptInput) (*DecryptOutput, error) { req, out := c.DecryptRequest(input) err := req.Send() @@ -344,7 +443,24 @@ func (c *KMS) DeleteAliasRequest(input *DeleteAliasInput) (req *request.Request, return } +// DeleteAlias API operation for AWS Key Management Service. +// // Deletes the specified alias. To map an alias to a different key, call UpdateAlias. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Key Management Service's +// API operation, DeleteAlias for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// DependencyTimeoutException +// NotFoundException +// KMSInternalException +// KMSInvalidStateException func (c *KMS) DeleteAlias(input *DeleteAliasInput) (*DeleteAliasOutput, error) { req, out := c.DeleteAliasRequest(input) err := req.Send() @@ -394,6 +510,8 @@ func (c *KMS) DeleteImportedKeyMaterialRequest(input *DeleteImportedKeyMaterialI return } +// DeleteImportedKeyMaterial API operation for AWS Key Management Service. +// // Deletes key material that you previously imported and makes the specified // customer master key (CMK) unusable. For more information about importing // key material into AWS KMS, see Importing Key Material (http://docs.aws.amazon.com/kms/latest/developerguide/importing-keys.html) @@ -404,6 +522,23 @@ func (c *KMS) DeleteImportedKeyMaterialRequest(input *DeleteImportedKeyMaterialI // // After you delete key material, you can use ImportKeyMaterial to reimport // the same key material into the CMK. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Key Management Service's +// API operation, DeleteImportedKeyMaterial for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidArnException +// UnsupportedOperationException +// DependencyTimeoutException +// NotFoundException +// KMSInternalException +// KMSInvalidStateException func (c *KMS) DeleteImportedKeyMaterial(input *DeleteImportedKeyMaterialInput) (*DeleteImportedKeyMaterialOutput, error) { req, out := c.DeleteImportedKeyMaterialRequest(input) err := req.Send() @@ -451,7 +586,24 @@ func (c *KMS) DescribeKeyRequest(input *DescribeKeyInput) (req *request.Request, return } +// DescribeKey API operation for AWS Key Management Service. +// // Provides detailed information about the specified customer master key. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Key Management Service's +// API operation, DescribeKey for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// NotFoundException +// InvalidArnException +// DependencyTimeoutException +// KMSInternalException func (c *KMS) DescribeKey(input *DescribeKeyInput) (*DescribeKeyOutput, error) { req, out := c.DescribeKeyRequest(input) err := req.Send() @@ -501,11 +653,29 @@ func (c *KMS) DisableKeyRequest(input *DisableKeyInput) (req *request.Request, o return } +// DisableKey API operation for AWS Key Management Service. +// // Sets the state of a customer master key (CMK) to disabled, thereby preventing // its use for cryptographic operations. For more information about how key // state affects the use of a CMK, see How Key State Affects the 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. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Key Management Service's +// API operation, DisableKey for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// NotFoundException +// InvalidArnException +// DependencyTimeoutException +// KMSInternalException +// KMSInvalidStateException func (c *KMS) DisableKey(input *DisableKeyInput) (*DisableKeyOutput, error) { req, out := c.DisableKeyRequest(input) err := req.Send() @@ -555,7 +725,27 @@ func (c *KMS) DisableKeyRotationRequest(input *DisableKeyRotationInput) (req *re return } +// DisableKeyRotation API operation for AWS Key Management Service. +// // Disables rotation of the specified key. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Key Management Service's +// API operation, DisableKeyRotation for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// NotFoundException +// DisabledException +// InvalidArnException +// DependencyTimeoutException +// KMSInternalException +// KMSInvalidStateException +// UnsupportedOperationException func (c *KMS) DisableKeyRotation(input *DisableKeyRotationInput) (*DisableKeyRotationOutput, error) { req, out := c.DisableKeyRotationRequest(input) err := req.Send() @@ -605,7 +795,26 @@ func (c *KMS) EnableKeyRequest(input *EnableKeyInput) (req *request.Request, out return } +// EnableKey API operation for AWS Key Management Service. +// // Marks a key as enabled, thereby permitting its use. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Key Management Service's +// API operation, EnableKey for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// NotFoundException +// InvalidArnException +// DependencyTimeoutException +// KMSInternalException +// LimitExceededException +// KMSInvalidStateException func (c *KMS) EnableKey(input *EnableKeyInput) (*EnableKeyOutput, error) { req, out := c.EnableKeyRequest(input) err := req.Send() @@ -655,7 +864,27 @@ func (c *KMS) EnableKeyRotationRequest(input *EnableKeyRotationInput) (req *requ return } +// EnableKeyRotation API operation for AWS Key Management Service. +// // Enables rotation of the specified customer master key. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Key Management Service's +// API operation, EnableKeyRotation for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// NotFoundException +// DisabledException +// InvalidArnException +// DependencyTimeoutException +// KMSInternalException +// KMSInvalidStateException +// UnsupportedOperationException func (c *KMS) EnableKeyRotation(input *EnableKeyRotationInput) (*EnableKeyRotationOutput, error) { req, out := c.EnableKeyRotationRequest(input) err := req.Send() @@ -703,6 +932,8 @@ func (c *KMS) EncryptRequest(input *EncryptInput) (req *request.Request, output return } +// Encrypt API operation for AWS Key Management Service. +// // Encrypts plaintext into ciphertext by using a customer master key. The Encrypt // function has two primary use cases: // @@ -723,6 +954,25 @@ func (c *KMS) EncryptRequest(input *EncryptInput) (req *request.Request, output // If you want to encrypt data locally in your application, you can use the // GenerateDataKey function to return a plaintext data encryption key and a // copy of the key encrypted under the customer master key (CMK) of your choosing. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Key Management Service's +// API operation, Encrypt for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// NotFoundException +// DisabledException +// KeyUnavailableException +// DependencyTimeoutException +// InvalidKeyUsageException +// InvalidGrantTokenException +// KMSInternalException +// KMSInvalidStateException func (c *KMS) Encrypt(input *EncryptInput) (*EncryptOutput, error) { req, out := c.EncryptRequest(input) err := req.Send() @@ -770,6 +1020,8 @@ func (c *KMS) GenerateDataKeyRequest(input *GenerateDataKeyInput) (req *request. return } +// GenerateDataKey API operation for AWS Key Management Service. +// // Returns a data encryption key that you can use in your application to encrypt // data locally. // @@ -814,6 +1066,25 @@ func (c *KMS) GenerateDataKeyRequest(input *GenerateDataKeyInput) (req *request. // fly to better secure the ciphertext. For more information, see Encryption // Context (http://docs.aws.amazon.com/kms/latest/developerguide/encryption-context.html) // in the AWS Key Management Service Developer Guide. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Key Management Service's +// API operation, GenerateDataKey for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// NotFoundException +// DisabledException +// KeyUnavailableException +// DependencyTimeoutException +// InvalidKeyUsageException +// InvalidGrantTokenException +// KMSInternalException +// KMSInvalidStateException func (c *KMS) GenerateDataKey(input *GenerateDataKeyInput) (*GenerateDataKeyOutput, error) { req, out := c.GenerateDataKeyRequest(input) err := req.Send() @@ -861,6 +1132,8 @@ func (c *KMS) GenerateDataKeyWithoutPlaintextRequest(input *GenerateDataKeyWitho return } +// GenerateDataKeyWithoutPlaintext API operation for AWS Key Management Service. +// // Returns a data encryption key encrypted under a customer master key (CMK). // This operation is identical to GenerateDataKey but returns only the encrypted // copy of the data key. @@ -876,6 +1149,25 @@ func (c *KMS) GenerateDataKeyWithoutPlaintextRequest(input *GenerateDataKeyWitho // the encrypted data key to the Decrypt operation, then uses the returned plaintext // data key to encrypt data, and finally stores the encrypted data in the container. // In this system, the control plane never sees the plaintext data key. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Key Management Service's +// API operation, GenerateDataKeyWithoutPlaintext for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// NotFoundException +// DisabledException +// KeyUnavailableException +// DependencyTimeoutException +// InvalidKeyUsageException +// InvalidGrantTokenException +// KMSInternalException +// KMSInvalidStateException func (c *KMS) GenerateDataKeyWithoutPlaintext(input *GenerateDataKeyWithoutPlaintextInput) (*GenerateDataKeyWithoutPlaintextOutput, error) { req, out := c.GenerateDataKeyWithoutPlaintextRequest(input) err := req.Send() @@ -923,7 +1215,22 @@ func (c *KMS) GenerateRandomRequest(input *GenerateRandomInput) (req *request.Re return } +// GenerateRandom API operation for AWS Key Management Service. +// // Generates an unpredictable byte string. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Key Management Service's +// API operation, GenerateRandom for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// DependencyTimeoutException +// KMSInternalException func (c *KMS) GenerateRandom(input *GenerateRandomInput) (*GenerateRandomOutput, error) { req, out := c.GenerateRandomRequest(input) err := req.Send() @@ -971,7 +1278,25 @@ func (c *KMS) GetKeyPolicyRequest(input *GetKeyPolicyInput) (req *request.Reques return } +// GetKeyPolicy API operation for AWS Key Management Service. +// // Retrieves a policy attached to the specified key. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Key Management Service's +// API operation, GetKeyPolicy for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// NotFoundException +// InvalidArnException +// DependencyTimeoutException +// KMSInternalException +// KMSInvalidStateException func (c *KMS) GetKeyPolicy(input *GetKeyPolicyInput) (*GetKeyPolicyOutput, error) { req, out := c.GetKeyPolicyRequest(input) err := req.Send() @@ -1019,8 +1344,27 @@ func (c *KMS) GetKeyRotationStatusRequest(input *GetKeyRotationStatusInput) (req return } +// GetKeyRotationStatus API operation for AWS Key Management Service. +// // Retrieves a Boolean value that indicates whether key rotation is enabled // for the specified key. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Key Management Service's +// API operation, GetKeyRotationStatus for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// NotFoundException +// InvalidArnException +// DependencyTimeoutException +// KMSInternalException +// KMSInvalidStateException +// UnsupportedOperationException func (c *KMS) GetKeyRotationStatus(input *GetKeyRotationStatusInput) (*GetKeyRotationStatusOutput, error) { req, out := c.GetKeyRotationStatusRequest(input) err := req.Send() @@ -1068,6 +1412,8 @@ func (c *KMS) GetParametersForImportRequest(input *GetParametersForImportInput) return } +// GetParametersForImport API operation for AWS Key Management Service. +// // Returns the items you need in order to import key material into AWS KMS from // your existing key management infrastructure. For more information about importing // key material into AWS KMS, see Importing Key Material (http://docs.aws.amazon.com/kms/latest/developerguide/importing-keys.html) @@ -1084,6 +1430,23 @@ func (c *KMS) GetParametersForImportRequest(input *GetParametersForImportInput) // response must be used together. These items are valid for 24 hours, after // which they cannot be used for a subsequent ImportKeyMaterial request. To // retrieve new ones, send another GetParametersForImport request. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Key Management Service's +// API operation, GetParametersForImport for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidArnException +// UnsupportedOperationException +// DependencyTimeoutException +// NotFoundException +// KMSInternalException +// KMSInvalidStateException func (c *KMS) GetParametersForImport(input *GetParametersForImportInput) (*GetParametersForImportOutput, error) { req, out := c.GetParametersForImportRequest(input) err := req.Send() @@ -1131,6 +1494,8 @@ func (c *KMS) ImportKeyMaterialRequest(input *ImportKeyMaterialInput) (req *requ return } +// ImportKeyMaterial API operation for AWS Key Management Service. +// // Imports key material into an AWS KMS customer master key (CMK) from your // existing key management infrastructure. For more information about importing // key material into AWS KMS, see Importing Key Material (http://docs.aws.amazon.com/kms/latest/developerguide/importing-keys.html) @@ -1153,6 +1518,27 @@ func (c *KMS) ImportKeyMaterialRequest(input *ImportKeyMaterialInput) (req *requ // After you successfully import key material into a CMK, you can reimport // the same key material into that CMK, but you cannot import different key // material. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Key Management Service's +// API operation, ImportKeyMaterial for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidArnException +// UnsupportedOperationException +// DependencyTimeoutException +// NotFoundException +// KMSInternalException +// KMSInvalidStateException +// InvalidCiphertextException +// IncorrectKeyMaterialException +// ExpiredImportTokenException +// InvalidImportTokenException func (c *KMS) ImportKeyMaterial(input *ImportKeyMaterialInput) (*ImportKeyMaterialOutput, error) { req, out := c.ImportKeyMaterialRequest(input) err := req.Send() @@ -1206,7 +1592,23 @@ func (c *KMS) ListAliasesRequest(input *ListAliasesInput) (req *request.Request, return } +// ListAliases API operation for AWS Key Management Service. +// // Lists all of the key aliases in the account. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Key Management Service's +// API operation, ListAliases for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// DependencyTimeoutException +// InvalidMarkerException +// KMSInternalException func (c *KMS) ListAliases(input *ListAliasesInput) (*ListAliasesOutput, error) { req, out := c.ListAliasesRequest(input) err := req.Send() @@ -1285,7 +1687,26 @@ func (c *KMS) ListGrantsRequest(input *ListGrantsInput) (req *request.Request, o return } +// ListGrants API operation for AWS Key Management Service. +// // List the grants for a specified key. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Key Management Service's +// API operation, ListGrants for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// NotFoundException +// DependencyTimeoutException +// InvalidMarkerException +// InvalidArnException +// KMSInternalException +// KMSInvalidStateException func (c *KMS) ListGrants(input *ListGrantsInput) (*ListGrantsResponse, error) { req, out := c.ListGrantsRequest(input) err := req.Send() @@ -1364,7 +1785,25 @@ func (c *KMS) ListKeyPoliciesRequest(input *ListKeyPoliciesInput) (req *request. return } +// ListKeyPolicies API operation for AWS Key Management Service. +// // Retrieves a list of policies attached to a key. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Key Management Service's +// API operation, ListKeyPolicies for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// NotFoundException +// InvalidArnException +// DependencyTimeoutException +// KMSInternalException +// KMSInvalidStateException func (c *KMS) ListKeyPolicies(input *ListKeyPoliciesInput) (*ListKeyPoliciesOutput, error) { req, out := c.ListKeyPoliciesRequest(input) err := req.Send() @@ -1443,7 +1882,23 @@ func (c *KMS) ListKeysRequest(input *ListKeysInput) (req *request.Request, outpu return } +// ListKeys API operation for AWS Key Management Service. +// // Lists the customer master keys. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Key Management Service's +// API operation, ListKeys for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// DependencyTimeoutException +// KMSInternalException +// InvalidMarkerException func (c *KMS) ListKeys(input *ListKeysInput) (*ListKeysOutput, error) { req, out := c.ListKeysRequest(input) err := req.Send() @@ -1516,11 +1971,29 @@ func (c *KMS) ListRetirableGrantsRequest(input *ListRetirableGrantsInput) (req * return } +// ListRetirableGrants API operation for AWS Key Management Service. +// // Returns a list of all grants for which the grant's RetiringPrincipal matches // the one specified. // // A typical use is to list all grants that you are able to retire. To retire // a grant, use RetireGrant. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Key Management Service's +// API operation, ListRetirableGrants for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// DependencyTimeoutException +// InvalidMarkerException +// InvalidArnException +// NotFoundException +// KMSInternalException func (c *KMS) ListRetirableGrants(input *ListRetirableGrantsInput) (*ListGrantsResponse, error) { req, out := c.ListRetirableGrantsRequest(input) err := req.Send() @@ -1570,10 +2043,31 @@ func (c *KMS) PutKeyPolicyRequest(input *PutKeyPolicyInput) (req *request.Reques return } +// PutKeyPolicy API operation for AWS Key Management Service. +// // Attaches a key policy to the specified customer master key (CMK). // // For more information about key policies, see Key Policies (http://docs.aws.amazon.com/kms/latest/developerguide/key-policies.html) // in the AWS Key Management Service Developer Guide. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Key Management Service's +// API operation, PutKeyPolicy for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// NotFoundException +// InvalidArnException +// MalformedPolicyDocumentException +// DependencyTimeoutException +// UnsupportedOperationException +// KMSInternalException +// LimitExceededException +// KMSInvalidStateException func (c *KMS) PutKeyPolicy(input *PutKeyPolicyInput) (*PutKeyPolicyOutput, error) { req, out := c.PutKeyPolicyRequest(input) err := req.Send() @@ -1621,6 +2115,8 @@ func (c *KMS) ReEncryptRequest(input *ReEncryptInput) (req *request.Request, out return } +// ReEncrypt API operation for AWS Key Management Service. +// // Encrypts data on the server side with a new customer master key without exposing // the plaintext of the data on the client side. The data is first decrypted // and then encrypted. This operation can also be used to change the encryption @@ -1633,6 +2129,26 @@ func (c *KMS) ReEncryptRequest(input *ReEncryptInput) (req *request.Request, out // included automatically when you authorize use of the key through the console // but must be included manually when you set a policy by using the PutKeyPolicy // function. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Key Management Service's +// API operation, ReEncrypt for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// NotFoundException +// DisabledException +// InvalidCiphertextException +// KeyUnavailableException +// DependencyTimeoutException +// InvalidKeyUsageException +// InvalidGrantTokenException +// KMSInternalException +// KMSInvalidStateException func (c *KMS) ReEncrypt(input *ReEncryptInput) (*ReEncryptOutput, error) { req, out := c.ReEncryptRequest(input) err := req.Send() @@ -1682,6 +2198,8 @@ func (c *KMS) RetireGrantRequest(input *RetireGrantInput) (req *request.Request, return } +// RetireGrant API operation for AWS Key Management Service. +// // Retires a grant. You can retire a grant when you're done using it to clean // up. You should revoke a grant when you intend to actively deny operations // that depend on it. The following are permitted to call this API: @@ -1696,6 +2214,23 @@ func (c *KMS) RetireGrantRequest(input *RetireGrantInput) (req *request.Request, // of the key ARN and the grant ID. A grant token is a unique variable-length // base64-encoded string. A grant ID is a 64 character unique identifier of // a grant. Both are returned by the CreateGrant function. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Key Management Service's +// API operation, RetireGrant for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidGrantTokenException +// InvalidGrantIdException +// NotFoundException +// DependencyTimeoutException +// KMSInternalException +// KMSInvalidStateException func (c *KMS) RetireGrant(input *RetireGrantInput) (*RetireGrantOutput, error) { req, out := c.RetireGrantRequest(input) err := req.Send() @@ -1745,8 +2280,27 @@ func (c *KMS) RevokeGrantRequest(input *RevokeGrantInput) (req *request.Request, return } +// RevokeGrant API operation for AWS Key Management Service. +// // Revokes a grant. You can revoke a grant to actively deny operations that // depend on it. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Key Management Service's +// API operation, RevokeGrant for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// NotFoundException +// DependencyTimeoutException +// InvalidArnException +// InvalidGrantIdException +// KMSInternalException +// KMSInvalidStateException func (c *KMS) RevokeGrant(input *RevokeGrantInput) (*RevokeGrantOutput, error) { req, out := c.RevokeGrantRequest(input) err := req.Send() @@ -1794,6 +2348,8 @@ func (c *KMS) ScheduleKeyDeletionRequest(input *ScheduleKeyDeletionInput) (req * return } +// ScheduleKeyDeletion API operation for AWS Key Management Service. +// // Schedules the deletion of a customer master key (CMK). You may provide a // waiting period, specified in days, before deletion occurs. If you do not // provide a waiting period, the default period of 30 days is used. When this @@ -1810,6 +2366,22 @@ func (c *KMS) ScheduleKeyDeletionRequest(input *ScheduleKeyDeletionInput) (req * // For more information about scheduling a CMK for deletion, see Deleting // Customer Master Keys (http://docs.aws.amazon.com/kms/latest/developerguide/deleting-keys.html) // in the AWS Key Management Service Developer Guide. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Key Management Service's +// API operation, ScheduleKeyDeletion for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// NotFoundException +// InvalidArnException +// DependencyTimeoutException +// KMSInternalException +// KMSInvalidStateException func (c *KMS) ScheduleKeyDeletion(input *ScheduleKeyDeletionInput) (*ScheduleKeyDeletionOutput, error) { req, out := c.ScheduleKeyDeletionRequest(input) err := req.Send() @@ -1859,6 +2431,8 @@ func (c *KMS) UpdateAliasRequest(input *UpdateAliasInput) (req *request.Request, return } +// UpdateAlias API operation for AWS Key Management Service. +// // Updates an alias to map it to a different key. // // An alias is not a property of a key. Therefore, an alias can be mapped to @@ -1872,6 +2446,21 @@ func (c *KMS) UpdateAliasRequest(input *UpdateAliasInput) (req *request.Request, // // The alias and the key it is mapped to must be in the same AWS account and // the same region. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Key Management Service's +// API operation, UpdateAlias for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// DependencyTimeoutException +// NotFoundException +// KMSInternalException +// KMSInvalidStateException func (c *KMS) UpdateAlias(input *UpdateAliasInput) (*UpdateAliasOutput, error) { req, out := c.UpdateAliasRequest(input) err := req.Send() @@ -1921,7 +2510,25 @@ func (c *KMS) UpdateKeyDescriptionRequest(input *UpdateKeyDescriptionInput) (req return } +// UpdateKeyDescription API operation for AWS Key Management Service. +// // Updates the description of a key. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Key Management Service's +// API operation, UpdateKeyDescription for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// NotFoundException +// InvalidArnException +// DependencyTimeoutException +// KMSInternalException +// KMSInvalidStateException func (c *KMS) UpdateKeyDescription(input *UpdateKeyDescriptionInput) (*UpdateKeyDescriptionOutput, error) { req, out := c.UpdateKeyDescriptionRequest(input) err := req.Send() diff --git a/service/lambda/api.go b/service/lambda/api.go index 2d3d80c2420..9020649cb67 100644 --- a/service/lambda/api.go +++ b/service/lambda/api.go @@ -54,6 +54,8 @@ func (c *Lambda) AddPermissionRequest(input *AddPermissionInput) (req *request.R return } +// AddPermission API operation for AWS Lambda. +// // Adds a permission to the resource policy associated with the specified AWS // Lambda function. You use resource policies to grant permissions to event // sources that use push model. In a push model, event sources (such as Amazon @@ -69,6 +71,23 @@ func (c *Lambda) AddPermissionRequest(input *AddPermissionInput) (req *request.R // Lambda Function Versioning and Aliases (http://docs.aws.amazon.com/lambda/latest/dg/versioning-aliases.html). // // This operation requires permission for the lambda:AddPermission action. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Lambda's +// API operation, AddPermission for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ServiceException +// ResourceNotFoundException +// ResourceConflictException +// InvalidParameterValueException +// PolicyLengthExceededException +// TooManyRequestsException func (c *Lambda) AddPermission(input *AddPermissionInput) (*AddPermissionOutput, error) { req, out := c.AddPermissionRequest(input) err := req.Send() @@ -116,11 +135,29 @@ func (c *Lambda) CreateAliasRequest(input *CreateAliasInput) (req *request.Reque return } +// CreateAlias API operation for AWS Lambda. +// // Creates an alias that points to the specified Lambda function version. For // more information, see Introduction to AWS Lambda Aliases (http://docs.aws.amazon.com/lambda/latest/dg/aliases-intro.html). // // Alias names are unique for a given function. This requires permission for // the lambda:CreateAlias action. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Lambda's +// API operation, CreateAlias for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ServiceException +// ResourceNotFoundException +// ResourceConflictException +// InvalidParameterValueException +// TooManyRequestsException func (c *Lambda) CreateAlias(input *CreateAliasInput) (*AliasConfiguration, error) { req, out := c.CreateAliasRequest(input) err := req.Send() @@ -168,6 +205,8 @@ func (c *Lambda) CreateEventSourceMappingRequest(input *CreateEventSourceMapping return } +// CreateEventSourceMapping API operation for AWS Lambda. +// // Identifies a stream as an event source for a Lambda function. It can be either // an Amazon Kinesis stream or an Amazon DynamoDB stream. AWS Lambda invokes // the specified function when records are posted to the stream. @@ -193,6 +232,22 @@ func (c *Lambda) CreateEventSourceMappingRequest(input *CreateEventSourceMapping // // This operation requires permission for the lambda:CreateEventSourceMapping // action. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Lambda's +// API operation, CreateEventSourceMapping for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ServiceException +// InvalidParameterValueException +// ResourceConflictException +// TooManyRequestsException +// ResourceNotFoundException func (c *Lambda) CreateEventSourceMapping(input *CreateEventSourceMappingInput) (*EventSourceMappingConfiguration, error) { req, out := c.CreateEventSourceMappingRequest(input) err := req.Send() @@ -240,6 +295,8 @@ func (c *Lambda) CreateFunctionRequest(input *CreateFunctionInput) (req *request return } +// CreateFunction API operation for AWS Lambda. +// // Creates a new Lambda function. The function metadata is created from the // request parameters, and the code for the function is provided by a .zip file // in the request body. If the function name already exists, the operation will @@ -250,6 +307,23 @@ func (c *Lambda) CreateFunctionRequest(input *CreateFunctionInput) (req *request // about versioning, see AWS Lambda Function Versioning and Aliases (http://docs.aws.amazon.com/lambda/latest/dg/versioning-aliases.html). // // This operation requires permission for the lambda:CreateFunction action. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Lambda's +// API operation, CreateFunction for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ServiceException +// InvalidParameterValueException +// ResourceNotFoundException +// ResourceConflictException +// TooManyRequestsException +// CodeStorageExceededException func (c *Lambda) CreateFunction(input *CreateFunctionInput) (*FunctionConfiguration, error) { req, out := c.CreateFunctionRequest(input) err := req.Send() @@ -299,10 +373,26 @@ func (c *Lambda) DeleteAliasRequest(input *DeleteAliasInput) (req *request.Reque return } +// DeleteAlias API operation for AWS Lambda. +// // Deletes the specified Lambda function alias. For more information, see Introduction // to AWS Lambda Aliases (http://docs.aws.amazon.com/lambda/latest/dg/aliases-intro.html). // // This requires permission for the lambda:DeleteAlias action. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Lambda's +// API operation, DeleteAlias for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ServiceException +// InvalidParameterValueException +// TooManyRequestsException func (c *Lambda) DeleteAlias(input *DeleteAliasInput) (*DeleteAliasOutput, error) { req, out := c.DeleteAliasRequest(input) err := req.Send() @@ -350,11 +440,28 @@ func (c *Lambda) DeleteEventSourceMappingRequest(input *DeleteEventSourceMapping return } +// DeleteEventSourceMapping API operation for AWS Lambda. +// // Removes an event source mapping. This means AWS Lambda will no longer invoke // the function for events in the associated source. // // This operation requires permission for the lambda:DeleteEventSourceMapping // action. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Lambda's +// API operation, DeleteEventSourceMapping for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ServiceException +// ResourceNotFoundException +// InvalidParameterValueException +// TooManyRequestsException func (c *Lambda) DeleteEventSourceMapping(input *DeleteEventSourceMappingInput) (*EventSourceMappingConfiguration, error) { req, out := c.DeleteEventSourceMappingRequest(input) err := req.Send() @@ -404,6 +511,8 @@ func (c *Lambda) DeleteFunctionRequest(input *DeleteFunctionInput) (req *request return } +// DeleteFunction API operation for AWS Lambda. +// // Deletes the specified Lambda function code and configuration. // // If you are using the versioning feature and you don't specify a function @@ -417,6 +526,22 @@ func (c *Lambda) DeleteFunctionRequest(input *DeleteFunctionInput) (req *request // You will need to delete the event source mappings explicitly. // // This operation requires permission for the lambda:DeleteFunction action. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Lambda's +// API operation, DeleteFunction for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ServiceException +// ResourceNotFoundException +// TooManyRequestsException +// InvalidParameterValueException +// ResourceConflictException func (c *Lambda) DeleteFunction(input *DeleteFunctionInput) (*DeleteFunctionOutput, error) { req, out := c.DeleteFunctionRequest(input) err := req.Send() @@ -464,11 +589,28 @@ func (c *Lambda) GetAliasRequest(input *GetAliasInput) (req *request.Request, ou return } +// GetAlias API operation for AWS Lambda. +// // Returns the specified alias information such as the alias ARN, description, // and function version it is pointing to. For more information, see Introduction // to AWS Lambda Aliases (http://docs.aws.amazon.com/lambda/latest/dg/aliases-intro.html). // // This requires permission for the lambda:GetAlias action. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Lambda's +// API operation, GetAlias for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ServiceException +// ResourceNotFoundException +// InvalidParameterValueException +// TooManyRequestsException func (c *Lambda) GetAlias(input *GetAliasInput) (*AliasConfiguration, error) { req, out := c.GetAliasRequest(input) err := req.Send() @@ -516,11 +658,28 @@ func (c *Lambda) GetEventSourceMappingRequest(input *GetEventSourceMappingInput) return } +// GetEventSourceMapping API operation for AWS Lambda. +// // Returns configuration information for the specified event source mapping // (see CreateEventSourceMapping). // // This operation requires permission for the lambda:GetEventSourceMapping // action. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Lambda's +// API operation, GetEventSourceMapping for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ServiceException +// ResourceNotFoundException +// InvalidParameterValueException +// TooManyRequestsException func (c *Lambda) GetEventSourceMapping(input *GetEventSourceMappingInput) (*EventSourceMappingConfiguration, error) { req, out := c.GetEventSourceMappingRequest(input) err := req.Send() @@ -568,6 +727,8 @@ func (c *Lambda) GetFunctionRequest(input *GetFunctionInput) (req *request.Reque return } +// GetFunction API operation for AWS Lambda. +// // Returns the configuration information of the Lambda function and a presigned // URL link to the .zip file you uploaded with CreateFunction so you can download // the .zip file. Note that the URL is valid for up to 10 minutes. The configuration @@ -581,6 +742,21 @@ func (c *Lambda) GetFunctionRequest(input *GetFunctionInput) (req *request.Reque // Function Versioning and Aliases (http://docs.aws.amazon.com/lambda/latest/dg/versioning-aliases.html). // // This operation requires permission for the lambda:GetFunction action. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Lambda's +// API operation, GetFunction for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ServiceException +// ResourceNotFoundException +// TooManyRequestsException +// InvalidParameterValueException func (c *Lambda) GetFunction(input *GetFunctionInput) (*GetFunctionOutput, error) { req, out := c.GetFunctionRequest(input) err := req.Send() @@ -628,6 +804,8 @@ func (c *Lambda) GetFunctionConfigurationRequest(input *GetFunctionConfiguration return } +// GetFunctionConfiguration API operation for AWS Lambda. +// // Returns the configuration information of the Lambda function. This the same // information you provided as parameters when uploading the function by using // CreateFunction. @@ -641,6 +819,21 @@ func (c *Lambda) GetFunctionConfigurationRequest(input *GetFunctionConfiguration // // This operation requires permission for the lambda:GetFunctionConfiguration // operation. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Lambda's +// API operation, GetFunctionConfiguration for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ServiceException +// ResourceNotFoundException +// TooManyRequestsException +// InvalidParameterValueException func (c *Lambda) GetFunctionConfiguration(input *GetFunctionConfigurationInput) (*FunctionConfiguration, error) { req, out := c.GetFunctionConfigurationRequest(input) err := req.Send() @@ -688,6 +881,8 @@ func (c *Lambda) GetPolicyRequest(input *GetPolicyInput) (req *request.Request, return } +// GetPolicy API operation for AWS Lambda. +// // Returns the resource policy associated with the specified Lambda function. // // If you are using the versioning feature, you can get the resource policy @@ -698,6 +893,21 @@ func (c *Lambda) GetPolicyRequest(input *GetPolicyInput) (req *request.Request, // For information about adding permissions, see AddPermission. // // You need permission for the lambda:GetPolicy action. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Lambda's +// API operation, GetPolicy for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ServiceException +// ResourceNotFoundException +// TooManyRequestsException +// InvalidParameterValueException func (c *Lambda) GetPolicy(input *GetPolicyInput) (*GetPolicyOutput, error) { req, out := c.GetPolicyRequest(input) err := req.Send() @@ -745,6 +955,8 @@ func (c *Lambda) InvokeRequest(input *InvokeInput) (req *request.Request, output return } +// Invoke API operation for AWS Lambda. +// // Invokes a specific Lambda function. // // If you are using the versioning feature, you can invoke the specific function @@ -756,6 +968,32 @@ func (c *Lambda) InvokeRequest(input *InvokeInput) (req *request.Request, output // see AWS Lambda Function Versioning and Aliases (http://docs.aws.amazon.com/lambda/latest/dg/versioning-aliases.html). // // This operation requires permission for the lambda:InvokeFunction action. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Lambda's +// API operation, Invoke for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ServiceException +// ResourceNotFoundException +// InvalidRequestContentException +// RequestTooLargeException +// UnsupportedMediaTypeException +// TooManyRequestsException +// InvalidParameterValueException +// EC2UnexpectedException +// SubnetIPAddressLimitReachedException +// ENILimitReachedException +// EC2ThrottledException +// EC2AccessDeniedException +// InvalidSubnetIDException +// InvalidSecurityGroupIDException +// InvalidZipFileException func (c *Lambda) Invoke(input *InvokeInput) (*InvokeOutput, error) { req, out := c.InvokeRequest(input) err := req.Send() @@ -806,6 +1044,8 @@ func (c *Lambda) InvokeAsyncRequest(input *InvokeAsyncInput) (req *request.Reque return } +// InvokeAsync API operation for AWS Lambda. +// // This API is deprecated. We recommend you use Invoke API (see Invoke). // // Submits an invocation request to AWS Lambda. Upon receiving the request, @@ -813,6 +1053,20 @@ func (c *Lambda) InvokeAsyncRequest(input *InvokeAsyncInput) (req *request.Reque // by the Lambda function execution, see the CloudWatch Logs console. // // This operation requires permission for the lambda:InvokeFunction action. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Lambda's +// API operation, InvokeAsync for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ServiceException +// ResourceNotFoundException +// InvalidRequestContentException func (c *Lambda) InvokeAsync(input *InvokeAsyncInput) (*InvokeAsyncOutput, error) { req, out := c.InvokeAsyncRequest(input) err := req.Send() @@ -860,12 +1114,29 @@ func (c *Lambda) ListAliasesRequest(input *ListAliasesInput) (req *request.Reque return } +// ListAliases API operation for AWS Lambda. +// // Returns list of aliases created for a Lambda function. For each alias, the // response includes information such as the alias ARN, description, alias name, // and the function version to which it points. For more information, see Introduction // to AWS Lambda Aliases (http://docs.aws.amazon.com/lambda/latest/dg/aliases-intro.html). // // This requires permission for the lambda:ListAliases action. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Lambda's +// API operation, ListAliases for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ServiceException +// ResourceNotFoundException +// InvalidParameterValueException +// TooManyRequestsException func (c *Lambda) ListAliases(input *ListAliasesInput) (*ListAliasesOutput, error) { req, out := c.ListAliasesRequest(input) err := req.Send() @@ -919,6 +1190,8 @@ func (c *Lambda) ListEventSourceMappingsRequest(input *ListEventSourceMappingsIn return } +// ListEventSourceMappings API operation for AWS Lambda. +// // Returns a list of event source mappings you created using the CreateEventSourceMapping // (see CreateEventSourceMapping). // @@ -932,6 +1205,21 @@ func (c *Lambda) ListEventSourceMappingsRequest(input *ListEventSourceMappingsIn // // This operation requires permission for the lambda:ListEventSourceMappings // action. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Lambda's +// API operation, ListEventSourceMappings for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ServiceException +// ResourceNotFoundException +// InvalidParameterValueException +// TooManyRequestsException func (c *Lambda) ListEventSourceMappings(input *ListEventSourceMappingsInput) (*ListEventSourceMappingsOutput, error) { req, out := c.ListEventSourceMappingsRequest(input) err := req.Send() @@ -1010,6 +1298,8 @@ func (c *Lambda) ListFunctionsRequest(input *ListFunctionsInput) (req *request.R return } +// ListFunctions API operation for AWS Lambda. +// // Returns a list of your Lambda functions. For each function, the response // includes the function configuration information. You must use GetFunction // to retrieve the code for your function. @@ -1019,6 +1309,19 @@ func (c *Lambda) ListFunctionsRequest(input *ListFunctionsInput) (req *request.R // If you are using versioning feature, the response returns list of $LATEST // versions of your functions. For information about the versioning feature, // see AWS Lambda Function Versioning and Aliases (http://docs.aws.amazon.com/lambda/latest/dg/versioning-aliases.html). +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Lambda's +// API operation, ListFunctions for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ServiceException +// TooManyRequestsException func (c *Lambda) ListFunctions(input *ListFunctionsInput) (*ListFunctionsOutput, error) { req, out := c.ListFunctionsRequest(input) err := req.Send() @@ -1091,8 +1394,25 @@ func (c *Lambda) ListVersionsByFunctionRequest(input *ListVersionsByFunctionInpu return } +// ListVersionsByFunction API operation for AWS Lambda. +// // List all versions of a function. For information about the versioning feature, // see AWS Lambda Function Versioning and Aliases (http://docs.aws.amazon.com/lambda/latest/dg/versioning-aliases.html). +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Lambda's +// API operation, ListVersionsByFunction for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ServiceException +// ResourceNotFoundException +// InvalidParameterValueException +// TooManyRequestsException func (c *Lambda) ListVersionsByFunction(input *ListVersionsByFunctionInput) (*ListVersionsByFunctionOutput, error) { req, out := c.ListVersionsByFunctionRequest(input) err := req.Send() @@ -1140,11 +1460,29 @@ func (c *Lambda) PublishVersionRequest(input *PublishVersionInput) (req *request return } +// PublishVersion API operation for AWS Lambda. +// // Publishes a version of your function from the current snapshot of $LATEST. // That is, AWS Lambda takes a snapshot of the function code and configuration // information from $LATEST and publishes a new version. The code and configuration // cannot be modified after publication. For information about the versioning // feature, see AWS Lambda Function Versioning and Aliases (http://docs.aws.amazon.com/lambda/latest/dg/versioning-aliases.html). +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Lambda's +// API operation, PublishVersion for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ServiceException +// ResourceNotFoundException +// InvalidParameterValueException +// TooManyRequestsException +// CodeStorageExceededException func (c *Lambda) PublishVersion(input *PublishVersionInput) (*FunctionConfiguration, error) { req, out := c.PublishVersionRequest(input) err := req.Send() @@ -1194,6 +1532,8 @@ func (c *Lambda) RemovePermissionRequest(input *RemovePermissionInput) (req *req return } +// RemovePermission API operation for AWS Lambda. +// // You can remove individual permissions from an resource policy associated // with a Lambda function by providing a statement ID that you provided when // you added the permission. @@ -1207,6 +1547,21 @@ func (c *Lambda) RemovePermissionRequest(input *RemovePermissionInput) (req *req // permission to the function. // // You need permission for the lambda:RemovePermission action. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Lambda's +// API operation, RemovePermission for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ServiceException +// ResourceNotFoundException +// InvalidParameterValueException +// TooManyRequestsException func (c *Lambda) RemovePermission(input *RemovePermissionInput) (*RemovePermissionOutput, error) { req, out := c.RemovePermissionRequest(input) err := req.Send() @@ -1254,11 +1609,28 @@ func (c *Lambda) UpdateAliasRequest(input *UpdateAliasInput) (req *request.Reque return } +// UpdateAlias API operation for AWS Lambda. +// // Using this API you can update the function version to which the alias points // and the alias description. For more information, see Introduction to AWS // Lambda Aliases (http://docs.aws.amazon.com/lambda/latest/dg/aliases-intro.html). // // This requires permission for the lambda:UpdateAlias action. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Lambda's +// API operation, UpdateAlias for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ServiceException +// ResourceNotFoundException +// InvalidParameterValueException +// TooManyRequestsException func (c *Lambda) UpdateAlias(input *UpdateAliasInput) (*AliasConfiguration, error) { req, out := c.UpdateAliasRequest(input) err := req.Send() @@ -1306,6 +1678,8 @@ func (c *Lambda) UpdateEventSourceMappingRequest(input *UpdateEventSourceMapping return } +// UpdateEventSourceMapping API operation for AWS Lambda. +// // You can update an event source mapping. This is useful if you want to change // the parameters of the existing mapping without losing your position in the // stream. You can change which function will receive the stream records, but @@ -1323,6 +1697,22 @@ func (c *Lambda) UpdateEventSourceMappingRequest(input *UpdateEventSourceMapping // // This operation requires permission for the lambda:UpdateEventSourceMapping // action. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Lambda's +// API operation, UpdateEventSourceMapping for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ServiceException +// ResourceNotFoundException +// InvalidParameterValueException +// TooManyRequestsException +// ResourceConflictException func (c *Lambda) UpdateEventSourceMapping(input *UpdateEventSourceMappingInput) (*EventSourceMappingConfiguration, error) { req, out := c.UpdateEventSourceMappingRequest(input) err := req.Send() @@ -1370,6 +1760,8 @@ func (c *Lambda) UpdateFunctionCodeRequest(input *UpdateFunctionCodeInput) (req return } +// UpdateFunctionCode API operation for AWS Lambda. +// // Updates the code for the specified Lambda function. This operation must only // be used on an existing Lambda function and cannot be used to update the function // configuration. @@ -1379,6 +1771,22 @@ func (c *Lambda) UpdateFunctionCodeRequest(input *UpdateFunctionCodeInput) (req // feature, see AWS Lambda Function Versioning and Aliases (http://docs.aws.amazon.com/lambda/latest/dg/versioning-aliases.html). // // This operation requires permission for the lambda:UpdateFunctionCode action. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Lambda's +// API operation, UpdateFunctionCode for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ServiceException +// ResourceNotFoundException +// InvalidParameterValueException +// TooManyRequestsException +// CodeStorageExceededException func (c *Lambda) UpdateFunctionCode(input *UpdateFunctionCodeInput) (*FunctionConfiguration, error) { req, out := c.UpdateFunctionCodeRequest(input) err := req.Send() @@ -1426,6 +1834,8 @@ func (c *Lambda) UpdateFunctionConfigurationRequest(input *UpdateFunctionConfigu return } +// UpdateFunctionConfiguration API operation for AWS Lambda. +// // Updates the configuration parameters for the specified Lambda function by // using the values provided in the request. You provide only the parameters // you want to change. This operation must only be used on an existing Lambda @@ -1437,6 +1847,21 @@ func (c *Lambda) UpdateFunctionConfigurationRequest(input *UpdateFunctionConfigu // // This operation requires permission for the lambda:UpdateFunctionConfiguration // action. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Lambda's +// API operation, UpdateFunctionConfiguration for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ServiceException +// ResourceNotFoundException +// InvalidParameterValueException +// TooManyRequestsException func (c *Lambda) UpdateFunctionConfiguration(input *UpdateFunctionConfigurationInput) (*FunctionConfiguration, error) { req, out := c.UpdateFunctionConfigurationRequest(input) err := req.Send() diff --git a/service/machinelearning/api.go b/service/machinelearning/api.go index 7048b2952ef..83476ba6311 100644 --- a/service/machinelearning/api.go +++ b/service/machinelearning/api.go @@ -52,9 +52,27 @@ func (c *MachineLearning) AddTagsRequest(input *AddTagsInput) (req *request.Requ return } +// AddTags API operation for Amazon Machine Learning. +// // Adds one or more tags to an object, up to a limit of 10. Each tag consists // of a key and an optional value. If you add a tag using a key that is already // associated with the ML object, AddTags updates the tag's value. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Machine Learning's +// API operation, AddTags for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidInputException +// InvalidTagException +// TagLimitExceededException +// ResourceNotFoundException +// InternalServerException func (c *MachineLearning) AddTags(input *AddTagsInput) (*AddTagsOutput, error) { req, out := c.AddTagsRequest(input) err := req.Send() @@ -102,6 +120,8 @@ func (c *MachineLearning) CreateBatchPredictionRequest(input *CreateBatchPredict return } +// CreateBatchPrediction API operation for Amazon Machine Learning. +// // Generates predictions for a group of observations. The observations to process // exist in one or more data files referenced by a DataSource. This operation // creates a new BatchPrediction, and uses an MLModel and the data files referenced @@ -116,6 +136,20 @@ func (c *MachineLearning) CreateBatchPredictionRequest(input *CreateBatchPredict // and checking the Status parameter of the result. After the COMPLETED status // appears, the results are available in the location specified by the OutputUri // parameter. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Machine Learning's +// API operation, CreateBatchPrediction for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidInputException +// InternalServerException +// IdempotentParameterMismatchException func (c *MachineLearning) CreateBatchPrediction(input *CreateBatchPredictionInput) (*CreateBatchPredictionOutput, error) { req, out := c.CreateBatchPredictionRequest(input) err := req.Send() @@ -163,6 +197,8 @@ func (c *MachineLearning) CreateDataSourceFromRDSRequest(input *CreateDataSource return } +// CreateDataSourceFromRDS API operation for Amazon Machine Learning. +// // Creates a DataSource object from an Amazon Relational Database Service (http://aws.amazon.com/rds/) // (Amazon RDS). A DataSource references data that can be used to perform CreateMLModel, // CreateEvaluation, or CreateBatchPrediction operations. @@ -177,6 +213,20 @@ func (c *MachineLearning) CreateDataSourceFromRDSRequest(input *CreateDataSource // If Amazon ML cannot accept the input source, it sets the Status parameter // to FAILED and includes an error message in the Message attribute of the GetDataSource // operation response. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Machine Learning's +// API operation, CreateDataSourceFromRDS for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidInputException +// InternalServerException +// IdempotentParameterMismatchException func (c *MachineLearning) CreateDataSourceFromRDS(input *CreateDataSourceFromRDSInput) (*CreateDataSourceFromRDSOutput, error) { req, out := c.CreateDataSourceFromRDSRequest(input) err := req.Send() @@ -224,6 +274,8 @@ func (c *MachineLearning) CreateDataSourceFromRedshiftRequest(input *CreateDataS return } +// CreateDataSourceFromRedshift API operation for Amazon Machine Learning. +// // Creates a DataSource from a database hosted on an Amazon Redshift cluster. // A DataSource references data that can be used to perform either CreateMLModel, // CreateEvaluation, or CreateBatchPrediction operations. @@ -257,6 +309,20 @@ func (c *MachineLearning) CreateDataSourceFromRedshiftRequest(input *CreateDataS // To do so, call GetDataSource for an existing datasource and copy the values // to a CreateDataSource call. Change the settings that you want to change and // make sure that all required fields have the appropriate values. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Machine Learning's +// API operation, CreateDataSourceFromRedshift for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidInputException +// InternalServerException +// IdempotentParameterMismatchException func (c *MachineLearning) CreateDataSourceFromRedshift(input *CreateDataSourceFromRedshiftInput) (*CreateDataSourceFromRedshiftOutput, error) { req, out := c.CreateDataSourceFromRedshiftRequest(input) err := req.Send() @@ -304,6 +370,8 @@ func (c *MachineLearning) CreateDataSourceFromS3Request(input *CreateDataSourceF return } +// CreateDataSourceFromS3 API operation for Amazon Machine Learning. +// // Creates a DataSource object. A DataSource references data that can be used // to perform CreateMLModel, CreateEvaluation, or CreateBatchPrediction operations. // @@ -332,6 +400,20 @@ func (c *MachineLearning) CreateDataSourceFromS3Request(input *CreateDataSourceF // from training? Will the variable be manipulated; for example, will it be // combined with another variable or will it be split apart into word combinations? // The recipe provides answers to these questions. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Machine Learning's +// API operation, CreateDataSourceFromS3 for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidInputException +// InternalServerException +// IdempotentParameterMismatchException func (c *MachineLearning) CreateDataSourceFromS3(input *CreateDataSourceFromS3Input) (*CreateDataSourceFromS3Output, error) { req, out := c.CreateDataSourceFromS3Request(input) err := req.Send() @@ -379,6 +461,8 @@ func (c *MachineLearning) CreateEvaluationRequest(input *CreateEvaluationInput) return } +// CreateEvaluation API operation for Amazon Machine Learning. +// // Creates a new Evaluation of an MLModel. An MLModel is evaluated on a set // of observations associated to a DataSource. Like a DataSource for an MLModel, // the DataSource for an Evaluation contains values for the Target Variable. @@ -395,6 +479,20 @@ func (c *MachineLearning) CreateEvaluationRequest(input *CreateEvaluationInput) // // You can use the GetEvaluation operation to check progress of the evaluation // during the creation operation. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Machine Learning's +// API operation, CreateEvaluation for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidInputException +// InternalServerException +// IdempotentParameterMismatchException func (c *MachineLearning) CreateEvaluation(input *CreateEvaluationInput) (*CreateEvaluationOutput, error) { req, out := c.CreateEvaluationRequest(input) err := req.Send() @@ -442,6 +540,8 @@ func (c *MachineLearning) CreateMLModelRequest(input *CreateMLModelInput) (req * return } +// CreateMLModel API operation for Amazon Machine Learning. +// // Creates a new MLModel using the DataSource and the recipe as information // sources. // @@ -459,6 +559,20 @@ func (c *MachineLearning) CreateMLModelRequest(input *CreateMLModelInput) (req * // CreateMLModel requires a DataSource with computed statistics, which can // be created by setting ComputeStatistics to true in CreateDataSourceFromRDS, // CreateDataSourceFromS3, or CreateDataSourceFromRedshift operations. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Machine Learning's +// API operation, CreateMLModel for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidInputException +// InternalServerException +// IdempotentParameterMismatchException func (c *MachineLearning) CreateMLModel(input *CreateMLModelInput) (*CreateMLModelOutput, error) { req, out := c.CreateMLModelRequest(input) err := req.Send() @@ -506,9 +620,25 @@ func (c *MachineLearning) CreateRealtimeEndpointRequest(input *CreateRealtimeEnd return } +// CreateRealtimeEndpoint API operation for Amazon Machine Learning. +// // Creates a real-time endpoint for the MLModel. The endpoint contains the URI // of the MLModel; that is, the location to send real-time prediction requests // for the specified MLModel. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Machine Learning's +// API operation, CreateRealtimeEndpoint for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidInputException +// ResourceNotFoundException +// InternalServerException func (c *MachineLearning) CreateRealtimeEndpoint(input *CreateRealtimeEndpointInput) (*CreateRealtimeEndpointOutput, error) { req, out := c.CreateRealtimeEndpointRequest(input) err := req.Send() @@ -556,12 +686,28 @@ func (c *MachineLearning) DeleteBatchPredictionRequest(input *DeleteBatchPredict return } +// DeleteBatchPrediction API operation for Amazon Machine Learning. +// // Assigns the DELETED status to a BatchPrediction, rendering it unusable. // // After using the DeleteBatchPrediction operation, you can use the GetBatchPrediction // operation to verify that the status of the BatchPrediction changed to DELETED. // // Caution: The result of the DeleteBatchPrediction operation is irreversible. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Machine Learning's +// API operation, DeleteBatchPrediction for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidInputException +// ResourceNotFoundException +// InternalServerException func (c *MachineLearning) DeleteBatchPrediction(input *DeleteBatchPredictionInput) (*DeleteBatchPredictionOutput, error) { req, out := c.DeleteBatchPredictionRequest(input) err := req.Send() @@ -609,12 +755,28 @@ func (c *MachineLearning) DeleteDataSourceRequest(input *DeleteDataSourceInput) return } +// DeleteDataSource API operation for Amazon Machine Learning. +// // Assigns the DELETED status to a DataSource, rendering it unusable. // // After using the DeleteDataSource operation, you can use the GetDataSource // operation to verify that the status of the DataSource changed to DELETED. // // Caution: The results of the DeleteDataSource operation are irreversible. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Machine Learning's +// API operation, DeleteDataSource for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidInputException +// ResourceNotFoundException +// InternalServerException func (c *MachineLearning) DeleteDataSource(input *DeleteDataSourceInput) (*DeleteDataSourceOutput, error) { req, out := c.DeleteDataSourceRequest(input) err := req.Send() @@ -662,12 +824,28 @@ func (c *MachineLearning) DeleteEvaluationRequest(input *DeleteEvaluationInput) return } +// DeleteEvaluation API operation for Amazon Machine Learning. +// // Assigns the DELETED status to an Evaluation, rendering it unusable. // // After invoking the DeleteEvaluation operation, you can use the GetEvaluation // operation to verify that the status of the Evaluation changed to DELETED. // // Caution The results of the DeleteEvaluation operation are irreversible. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Machine Learning's +// API operation, DeleteEvaluation for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidInputException +// ResourceNotFoundException +// InternalServerException func (c *MachineLearning) DeleteEvaluation(input *DeleteEvaluationInput) (*DeleteEvaluationOutput, error) { req, out := c.DeleteEvaluationRequest(input) err := req.Send() @@ -715,12 +893,28 @@ func (c *MachineLearning) DeleteMLModelRequest(input *DeleteMLModelInput) (req * return } +// DeleteMLModel API operation for Amazon Machine Learning. +// // Assigns the DELETED status to an MLModel, rendering it unusable. // // After using the DeleteMLModel operation, you can use the GetMLModel operation // to verify that the status of the MLModel changed to DELETED. // // Caution: The result of the DeleteMLModel operation is irreversible. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Machine Learning's +// API operation, DeleteMLModel for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidInputException +// ResourceNotFoundException +// InternalServerException func (c *MachineLearning) DeleteMLModel(input *DeleteMLModelInput) (*DeleteMLModelOutput, error) { req, out := c.DeleteMLModelRequest(input) err := req.Send() @@ -768,7 +962,23 @@ func (c *MachineLearning) DeleteRealtimeEndpointRequest(input *DeleteRealtimeEnd return } +// DeleteRealtimeEndpoint API operation for Amazon Machine Learning. +// // Deletes a real time endpoint of an MLModel. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Machine Learning's +// API operation, DeleteRealtimeEndpoint for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidInputException +// ResourceNotFoundException +// InternalServerException func (c *MachineLearning) DeleteRealtimeEndpoint(input *DeleteRealtimeEndpointInput) (*DeleteRealtimeEndpointOutput, error) { req, out := c.DeleteRealtimeEndpointRequest(input) err := req.Send() @@ -816,10 +1026,27 @@ func (c *MachineLearning) DeleteTagsRequest(input *DeleteTagsInput) (req *reques return } +// DeleteTags API operation for Amazon Machine Learning. +// // Deletes the specified tags associated with an ML object. After this operation // is complete, you can't recover deleted tags. // // If you specify a tag that doesn't exist, Amazon ML ignores it. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Machine Learning's +// API operation, DeleteTags for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidInputException +// InvalidTagException +// ResourceNotFoundException +// InternalServerException func (c *MachineLearning) DeleteTags(input *DeleteTagsInput) (*DeleteTagsOutput, error) { req, out := c.DeleteTagsRequest(input) err := req.Send() @@ -873,8 +1100,23 @@ func (c *MachineLearning) DescribeBatchPredictionsRequest(input *DescribeBatchPr return } +// DescribeBatchPredictions API operation for Amazon Machine Learning. +// // Returns a list of BatchPrediction operations that match the search criteria // in the request. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Machine Learning's +// API operation, DescribeBatchPredictions for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidInputException +// InternalServerException func (c *MachineLearning) DescribeBatchPredictions(input *DescribeBatchPredictionsInput) (*DescribeBatchPredictionsOutput, error) { req, out := c.DescribeBatchPredictionsRequest(input) err := req.Send() @@ -953,7 +1195,22 @@ func (c *MachineLearning) DescribeDataSourcesRequest(input *DescribeDataSourcesI return } +// DescribeDataSources API operation for Amazon Machine Learning. +// // Returns a list of DataSource that match the search criteria in the request. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Machine Learning's +// API operation, DescribeDataSources for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidInputException +// InternalServerException func (c *MachineLearning) DescribeDataSources(input *DescribeDataSourcesInput) (*DescribeDataSourcesOutput, error) { req, out := c.DescribeDataSourcesRequest(input) err := req.Send() @@ -1032,8 +1289,23 @@ func (c *MachineLearning) DescribeEvaluationsRequest(input *DescribeEvaluationsI return } +// DescribeEvaluations API operation for Amazon Machine Learning. +// // Returns a list of DescribeEvaluations that match the search criteria in the // request. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Machine Learning's +// API operation, DescribeEvaluations for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidInputException +// InternalServerException func (c *MachineLearning) DescribeEvaluations(input *DescribeEvaluationsInput) (*DescribeEvaluationsOutput, error) { req, out := c.DescribeEvaluationsRequest(input) err := req.Send() @@ -1112,7 +1384,22 @@ func (c *MachineLearning) DescribeMLModelsRequest(input *DescribeMLModelsInput) return } +// DescribeMLModels API operation for Amazon Machine Learning. +// // Returns a list of MLModel that match the search criteria in the request. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Machine Learning's +// API operation, DescribeMLModels for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidInputException +// InternalServerException func (c *MachineLearning) DescribeMLModels(input *DescribeMLModelsInput) (*DescribeMLModelsOutput, error) { req, out := c.DescribeMLModelsRequest(input) err := req.Send() @@ -1185,7 +1472,23 @@ func (c *MachineLearning) DescribeTagsRequest(input *DescribeTagsInput) (req *re return } +// DescribeTags API operation for Amazon Machine Learning. +// // Describes one or more of the tags for your Amazon ML object. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Machine Learning's +// API operation, DescribeTags for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidInputException +// ResourceNotFoundException +// InternalServerException func (c *MachineLearning) DescribeTags(input *DescribeTagsInput) (*DescribeTagsOutput, error) { req, out := c.DescribeTagsRequest(input) err := req.Send() @@ -1233,8 +1536,24 @@ func (c *MachineLearning) GetBatchPredictionRequest(input *GetBatchPredictionInp return } +// GetBatchPrediction API operation for Amazon Machine Learning. +// // Returns a BatchPrediction that includes detailed metadata, status, and data // file information for a Batch Prediction request. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Machine Learning's +// API operation, GetBatchPrediction for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidInputException +// ResourceNotFoundException +// InternalServerException func (c *MachineLearning) GetBatchPrediction(input *GetBatchPredictionInput) (*GetBatchPredictionOutput, error) { req, out := c.GetBatchPredictionRequest(input) err := req.Send() @@ -1282,12 +1601,28 @@ func (c *MachineLearning) GetDataSourceRequest(input *GetDataSourceInput) (req * return } +// GetDataSource API operation for Amazon Machine Learning. +// // Returns a DataSource that includes metadata and data file information, as // well as the current status of the DataSource. // // GetDataSource provides results in normal or verbose format. The verbose // format adds the schema description and the list of files pointed to by the // DataSource to the normal format. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Machine Learning's +// API operation, GetDataSource for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidInputException +// ResourceNotFoundException +// InternalServerException func (c *MachineLearning) GetDataSource(input *GetDataSourceInput) (*GetDataSourceOutput, error) { req, out := c.GetDataSourceRequest(input) err := req.Send() @@ -1335,8 +1670,24 @@ func (c *MachineLearning) GetEvaluationRequest(input *GetEvaluationInput) (req * return } +// GetEvaluation API operation for Amazon Machine Learning. +// // Returns an Evaluation that includes metadata as well as the current status // of the Evaluation. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Machine Learning's +// API operation, GetEvaluation for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidInputException +// ResourceNotFoundException +// InternalServerException func (c *MachineLearning) GetEvaluation(input *GetEvaluationInput) (*GetEvaluationOutput, error) { req, out := c.GetEvaluationRequest(input) err := req.Send() @@ -1384,10 +1735,26 @@ func (c *MachineLearning) GetMLModelRequest(input *GetMLModelInput) (req *reques return } +// GetMLModel API operation for Amazon Machine Learning. +// // Returns an MLModel that includes detailed metadata, data source information, // and the current status of the MLModel. // // GetMLModel provides results in normal or verbose format. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Machine Learning's +// API operation, GetMLModel for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidInputException +// ResourceNotFoundException +// InternalServerException func (c *MachineLearning) GetMLModel(input *GetMLModelInput) (*GetMLModelOutput, error) { req, out := c.GetMLModelRequest(input) err := req.Send() @@ -1435,10 +1802,28 @@ func (c *MachineLearning) PredictRequest(input *PredictInput) (req *request.Requ return } +// Predict API operation for Amazon Machine Learning. +// // Generates a prediction for the observation using the specified ML Model. // // Note Not all response parameters will be populated. Whether a response parameter // is populated depends on the type of model requested. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Machine Learning's +// API operation, Predict for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidInputException +// ResourceNotFoundException +// LimitExceededException +// InternalServerException +// PredictorNotMountedException func (c *MachineLearning) Predict(input *PredictInput) (*PredictOutput, error) { req, out := c.PredictRequest(input) err := req.Send() @@ -1486,10 +1871,26 @@ func (c *MachineLearning) UpdateBatchPredictionRequest(input *UpdateBatchPredict return } +// UpdateBatchPrediction API operation for Amazon Machine Learning. +// // Updates the BatchPredictionName of a BatchPrediction. // // You can use the GetBatchPrediction operation to view the contents of the // updated data element. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Machine Learning's +// API operation, UpdateBatchPrediction for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidInputException +// ResourceNotFoundException +// InternalServerException func (c *MachineLearning) UpdateBatchPrediction(input *UpdateBatchPredictionInput) (*UpdateBatchPredictionOutput, error) { req, out := c.UpdateBatchPredictionRequest(input) err := req.Send() @@ -1537,10 +1938,26 @@ func (c *MachineLearning) UpdateDataSourceRequest(input *UpdateDataSourceInput) return } +// UpdateDataSource API operation for Amazon Machine Learning. +// // Updates the DataSourceName of a DataSource. // // You can use the GetDataSource operation to view the contents of the updated // data element. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Machine Learning's +// API operation, UpdateDataSource for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidInputException +// ResourceNotFoundException +// InternalServerException func (c *MachineLearning) UpdateDataSource(input *UpdateDataSourceInput) (*UpdateDataSourceOutput, error) { req, out := c.UpdateDataSourceRequest(input) err := req.Send() @@ -1588,10 +2005,26 @@ func (c *MachineLearning) UpdateEvaluationRequest(input *UpdateEvaluationInput) return } +// UpdateEvaluation API operation for Amazon Machine Learning. +// // Updates the EvaluationName of an Evaluation. // // You can use the GetEvaluation operation to view the contents of the updated // data element. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Machine Learning's +// API operation, UpdateEvaluation for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidInputException +// ResourceNotFoundException +// InternalServerException func (c *MachineLearning) UpdateEvaluation(input *UpdateEvaluationInput) (*UpdateEvaluationOutput, error) { req, out := c.UpdateEvaluationRequest(input) err := req.Send() @@ -1639,10 +2072,26 @@ func (c *MachineLearning) UpdateMLModelRequest(input *UpdateMLModelInput) (req * return } +// UpdateMLModel API operation for Amazon Machine Learning. +// // Updates the MLModelName and the ScoreThreshold of an MLModel. // // You can use the GetMLModel operation to view the contents of the updated // data element. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Machine Learning's +// API operation, UpdateMLModel for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidInputException +// ResourceNotFoundException +// InternalServerException func (c *MachineLearning) UpdateMLModel(input *UpdateMLModelInput) (*UpdateMLModelOutput, error) { req, out := c.UpdateMLModelRequest(input) err := req.Send() diff --git a/service/marketplacecommerceanalytics/api.go b/service/marketplacecommerceanalytics/api.go index 782cda3a154..e790c2b1867 100644 --- a/service/marketplacecommerceanalytics/api.go +++ b/service/marketplacecommerceanalytics/api.go @@ -51,6 +51,8 @@ func (c *MarketplaceCommerceAnalytics) GenerateDataSetRequest(input *GenerateDat return } +// GenerateDataSet API operation for AWS Marketplace Commerce Analytics. +// // Given a data set type and data set publication date, asynchronously publishes // the requested data set to the specified S3 bucket and notifies the specified // SNS topic once the data is available. Returns a unique request identifier @@ -61,6 +63,18 @@ func (c *MarketplaceCommerceAnalytics) GenerateDataSetRequest(input *GenerateDat // will be overwritten by the new file. Requires a Role with an attached permissions // policy providing Allow permissions for the following actions: s3:PutObject, // s3:GetBucketLocation, sns:GetTopicAttributes, sns:Publish, iam:GetRolePolicy. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Marketplace Commerce Analytics's +// API operation, GenerateDataSet for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// MarketplaceCommerceAnalyticsException func (c *MarketplaceCommerceAnalytics) GenerateDataSet(input *GenerateDataSetInput) (*GenerateDataSetOutput, error) { req, out := c.GenerateDataSetRequest(input) err := req.Send() @@ -108,6 +122,8 @@ func (c *MarketplaceCommerceAnalytics) StartSupportDataExportRequest(input *Star return } +// StartSupportDataExport API operation for AWS Marketplace Commerce Analytics. +// // Given a data set type and a from date, asynchronously publishes the requested // customer support data to the specified S3 bucket and notifies the specified // SNS topic once the data is available. Returns a unique request identifier @@ -119,6 +135,18 @@ func (c *MarketplaceCommerceAnalytics) StartSupportDataExportRequest(input *Star // an attached permissions policy providing Allow permissions for the following // actions: s3:PutObject, s3:GetBucketLocation, sns:GetTopicAttributes, sns:Publish, // iam:GetRolePolicy. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Marketplace Commerce Analytics's +// API operation, StartSupportDataExport for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// MarketplaceCommerceAnalyticsException func (c *MarketplaceCommerceAnalytics) StartSupportDataExport(input *StartSupportDataExportInput) (*StartSupportDataExportOutput, error) { req, out := c.StartSupportDataExportRequest(input) err := req.Send() diff --git a/service/marketplacemetering/api.go b/service/marketplacemetering/api.go index b1737cbabc3..9cf08e912ba 100644 --- a/service/marketplacemetering/api.go +++ b/service/marketplacemetering/api.go @@ -51,8 +51,28 @@ func (c *MarketplaceMetering) MeterUsageRequest(input *MeterUsageInput) (req *re return } +// MeterUsage API operation for AWSMarketplace Metering. +// // API to emit metering records. For identical requests, the API is idempotent. // It simply returns the metering record ID. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWSMarketplace Metering's +// API operation, MeterUsage for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InternalServiceErrorException +// InvalidProductCodeException +// InvalidUsageDimensionException +// InvalidEndpointRegionException +// TimestampOutOfBoundsException +// DuplicateRequestException +// ThrottlingException func (c *MarketplaceMetering) MeterUsage(input *MeterUsageInput) (*MeterUsageOutput, error) { req, out := c.MeterUsageRequest(input) err := req.Send() diff --git a/service/mobileanalytics/api.go b/service/mobileanalytics/api.go index 8388602ed0c..d5ce99df32b 100644 --- a/service/mobileanalytics/api.go +++ b/service/mobileanalytics/api.go @@ -55,9 +55,23 @@ func (c *MobileAnalytics) PutEventsRequest(input *PutEventsInput) (req *request. return } +// PutEvents API operation for Amazon Mobile Analytics. +// // The PutEvents operation records one or more events. You can have up to 1,500 // unique custom events per app, any combination of up to 40 attributes and // metrics per custom event, and any number of attribute or metric values. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Mobile Analytics's +// API operation, PutEvents for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// BadRequestException func (c *MobileAnalytics) PutEvents(input *PutEventsInput) (*PutEventsOutput, error) { req, out := c.PutEventsRequest(input) err := req.Send() diff --git a/service/opsworks/api.go b/service/opsworks/api.go index 4d32fe9eac9..34de7460781 100644 --- a/service/opsworks/api.go +++ b/service/opsworks/api.go @@ -55,6 +55,8 @@ func (c *OpsWorks) AssignInstanceRequest(input *AssignInstanceInput) (req *reque return } +// AssignInstance API operation for AWS OpsWorks. +// // Assign a registered instance to a layer. // // You can assign registered on-premises instances to any layer type. @@ -67,6 +69,19 @@ func (c *OpsWorks) AssignInstanceRequest(input *AssignInstanceInput) (req *reque // Management (IAM) user must have a Manage permissions level for the stack // or an attached policy that explicitly grants permissions. For more information // on user permissions, see Managing User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html). +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS OpsWorks's +// API operation, AssignInstance for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ValidationException +// ResourceNotFoundException func (c *OpsWorks) AssignInstance(input *AssignInstanceInput) (*AssignInstanceOutput, error) { req, out := c.AssignInstanceRequest(input) err := req.Send() @@ -116,6 +131,8 @@ func (c *OpsWorks) AssignVolumeRequest(input *AssignVolumeInput) (req *request.R return } +// AssignVolume API operation for AWS OpsWorks. +// // Assigns one of the stack's registered Amazon EBS volumes to a specified instance. // The volume must first be registered with the stack by calling RegisterVolume. // After you register the volume, you must call UpdateVolume to specify a mount @@ -126,6 +143,19 @@ func (c *OpsWorks) AssignVolumeRequest(input *AssignVolumeInput) (req *request.R // permissions level for the stack, or an attached policy that explicitly grants // permissions. For more information on user permissions, see Managing User // Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html). +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS OpsWorks's +// API operation, AssignVolume for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ValidationException +// ResourceNotFoundException func (c *OpsWorks) AssignVolume(input *AssignVolumeInput) (*AssignVolumeOutput, error) { req, out := c.AssignVolumeRequest(input) err := req.Send() @@ -175,6 +205,8 @@ func (c *OpsWorks) AssociateElasticIpRequest(input *AssociateElasticIpInput) (re return } +// AssociateElasticIp API operation for AWS OpsWorks. +// // Associates one of the stack's registered Elastic IP addresses with a specified // instance. The address must first be registered with the stack by calling // RegisterElasticIp. For more information, see Resource Management (http://docs.aws.amazon.com/opsworks/latest/userguide/resources.html). @@ -183,6 +215,19 @@ func (c *OpsWorks) AssociateElasticIpRequest(input *AssociateElasticIpInput) (re // permissions level for the stack, or an attached policy that explicitly grants // permissions. For more information on user permissions, see Managing User // Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html). +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS OpsWorks's +// API operation, AssociateElasticIp for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ValidationException +// ResourceNotFoundException func (c *OpsWorks) AssociateElasticIp(input *AssociateElasticIpInput) (*AssociateElasticIpOutput, error) { req, out := c.AssociateElasticIpRequest(input) err := req.Send() @@ -232,6 +277,8 @@ func (c *OpsWorks) AttachElasticLoadBalancerRequest(input *AttachElasticLoadBala return } +// AttachElasticLoadBalancer API operation for AWS OpsWorks. +// // Attaches an Elastic Load Balancing load balancer to a specified layer. For // more information, see Elastic Load Balancing (http://docs.aws.amazon.com/opsworks/latest/userguide/load-balancer-elb.html). // @@ -243,6 +290,19 @@ func (c *OpsWorks) AttachElasticLoadBalancerRequest(input *AttachElasticLoadBala // permissions level for the stack, or an attached policy that explicitly grants // permissions. For more information on user permissions, see Managing User // Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html). +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS OpsWorks's +// API operation, AttachElasticLoadBalancer for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ValidationException +// ResourceNotFoundException func (c *OpsWorks) AttachElasticLoadBalancer(input *AttachElasticLoadBalancerInput) (*AttachElasticLoadBalancerOutput, error) { req, out := c.AttachElasticLoadBalancerRequest(input) err := req.Send() @@ -290,6 +350,8 @@ func (c *OpsWorks) CloneStackRequest(input *CloneStackInput) (req *request.Reque return } +// CloneStack API operation for AWS OpsWorks. +// // Creates a clone of a specified stack. For more information, see Clone a Stack // (http://docs.aws.amazon.com/opsworks/latest/userguide/workingstacks-cloning.html). // By default, all parameters are set to the values used by the parent stack. @@ -297,6 +359,19 @@ func (c *OpsWorks) CloneStackRequest(input *CloneStackInput) (req *request.Reque // Required Permissions: To use this action, an IAM user must have an attached // policy that explicitly grants permissions. For more information on user permissions, // see Managing User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html). +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS OpsWorks's +// API operation, CloneStack for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ValidationException +// ResourceNotFoundException func (c *OpsWorks) CloneStack(input *CloneStackInput) (*CloneStackOutput, error) { req, out := c.CloneStackRequest(input) err := req.Send() @@ -344,6 +419,8 @@ func (c *OpsWorks) CreateAppRequest(input *CreateAppInput) (req *request.Request return } +// CreateApp API operation for AWS OpsWorks. +// // Creates an app for a specified stack. For more information, see Creating // Apps (http://docs.aws.amazon.com/opsworks/latest/userguide/workingapps-creating.html). // @@ -351,6 +428,19 @@ func (c *OpsWorks) CreateAppRequest(input *CreateAppInput) (req *request.Request // permissions level for the stack, or an attached policy that explicitly grants // permissions. For more information on user permissions, see Managing User // Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html). +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS OpsWorks's +// API operation, CreateApp for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ValidationException +// ResourceNotFoundException func (c *OpsWorks) CreateApp(input *CreateAppInput) (*CreateAppOutput, error) { req, out := c.CreateAppRequest(input) err := req.Send() @@ -398,6 +488,8 @@ func (c *OpsWorks) CreateDeploymentRequest(input *CreateDeploymentInput) (req *r return } +// CreateDeployment API operation for AWS OpsWorks. +// // Runs deployment or stack commands. For more information, see Deploying Apps // (http://docs.aws.amazon.com/opsworks/latest/userguide/workingapps-deploying.html) // and Run Stack Commands (http://docs.aws.amazon.com/opsworks/latest/userguide/workingstacks-commands.html). @@ -406,6 +498,19 @@ func (c *OpsWorks) CreateDeploymentRequest(input *CreateDeploymentInput) (req *r // or Manage permissions level for the stack, or an attached policy that explicitly // grants permissions. For more information on user permissions, see Managing // User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html). +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS OpsWorks's +// API operation, CreateDeployment for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ValidationException +// ResourceNotFoundException func (c *OpsWorks) CreateDeployment(input *CreateDeploymentInput) (*CreateDeploymentOutput, error) { req, out := c.CreateDeploymentRequest(input) err := req.Send() @@ -453,6 +558,8 @@ func (c *OpsWorks) CreateInstanceRequest(input *CreateInstanceInput) (req *reque return } +// CreateInstance API operation for AWS OpsWorks. +// // Creates an instance in a specified stack. For more information, see Adding // an Instance to a Layer (http://docs.aws.amazon.com/opsworks/latest/userguide/workinginstances-add.html). // @@ -460,6 +567,19 @@ func (c *OpsWorks) CreateInstanceRequest(input *CreateInstanceInput) (req *reque // permissions level for the stack, or an attached policy that explicitly grants // permissions. For more information on user permissions, see Managing User // Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html). +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS OpsWorks's +// API operation, CreateInstance for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ValidationException +// ResourceNotFoundException func (c *OpsWorks) CreateInstance(input *CreateInstanceInput) (*CreateInstanceOutput, error) { req, out := c.CreateInstanceRequest(input) err := req.Send() @@ -507,6 +627,8 @@ func (c *OpsWorks) CreateLayerRequest(input *CreateLayerInput) (req *request.Req return } +// CreateLayer API operation for AWS OpsWorks. +// // Creates a layer. For more information, see How to Create a Layer (http://docs.aws.amazon.com/opsworks/latest/userguide/workinglayers-basics-create.html). // // You should use CreateLayer for noncustom layer types such as PHP App Server @@ -520,6 +642,19 @@ func (c *OpsWorks) CreateLayerRequest(input *CreateLayerInput) (req *request.Req // permissions level for the stack, or an attached policy that explicitly grants // permissions. For more information on user permissions, see Managing User // Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html). +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS OpsWorks's +// API operation, CreateLayer for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ValidationException +// ResourceNotFoundException func (c *OpsWorks) CreateLayer(input *CreateLayerInput) (*CreateLayerOutput, error) { req, out := c.CreateLayerRequest(input) err := req.Send() @@ -567,11 +702,25 @@ func (c *OpsWorks) CreateStackRequest(input *CreateStackInput) (req *request.Req return } +// CreateStack API operation for AWS OpsWorks. +// // Creates a new stack. For more information, see Create a New Stack (http://docs.aws.amazon.com/opsworks/latest/userguide/workingstacks-edit.html). // // Required Permissions: To use this action, an IAM user must have an attached // policy that explicitly grants permissions. For more information on user permissions, // see Managing User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html). +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS OpsWorks's +// API operation, CreateStack for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ValidationException func (c *OpsWorks) CreateStack(input *CreateStackInput) (*CreateStackOutput, error) { req, out := c.CreateStackRequest(input) err := req.Send() @@ -619,11 +768,25 @@ func (c *OpsWorks) CreateUserProfileRequest(input *CreateUserProfileInput) (req return } +// CreateUserProfile API operation for AWS OpsWorks. +// // Creates a new user profile. // // Required Permissions: To use this action, an IAM user must have an attached // policy that explicitly grants permissions. For more information on user permissions, // see Managing User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html). +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS OpsWorks's +// API operation, CreateUserProfile for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ValidationException func (c *OpsWorks) CreateUserProfile(input *CreateUserProfileInput) (*CreateUserProfileOutput, error) { req, out := c.CreateUserProfileRequest(input) err := req.Send() @@ -673,12 +836,27 @@ func (c *OpsWorks) DeleteAppRequest(input *DeleteAppInput) (req *request.Request return } +// DeleteApp API operation for AWS OpsWorks. +// // Deletes a specified app. // // Required Permissions: To use this action, an IAM user must have a Manage // permissions level for the stack, or an attached policy that explicitly grants // permissions. For more information on user permissions, see Managing User // Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html). +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS OpsWorks's +// API operation, DeleteApp for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ValidationException +// ResourceNotFoundException func (c *OpsWorks) DeleteApp(input *DeleteAppInput) (*DeleteAppOutput, error) { req, out := c.DeleteAppRequest(input) err := req.Send() @@ -728,6 +906,8 @@ func (c *OpsWorks) DeleteInstanceRequest(input *DeleteInstanceInput) (req *reque return } +// DeleteInstance API operation for AWS OpsWorks. +// // Deletes a specified instance, which terminates the associated Amazon EC2 // instance. You must stop an instance before you can delete it. // @@ -737,6 +917,19 @@ func (c *OpsWorks) DeleteInstanceRequest(input *DeleteInstanceInput) (req *reque // permissions level for the stack, or an attached policy that explicitly grants // permissions. For more information on user permissions, see Managing User // Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html). +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS OpsWorks's +// API operation, DeleteInstance for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ValidationException +// ResourceNotFoundException func (c *OpsWorks) DeleteInstance(input *DeleteInstanceInput) (*DeleteInstanceOutput, error) { req, out := c.DeleteInstanceRequest(input) err := req.Send() @@ -786,6 +979,8 @@ func (c *OpsWorks) DeleteLayerRequest(input *DeleteLayerInput) (req *request.Req return } +// DeleteLayer API operation for AWS OpsWorks. +// // Deletes a specified layer. You must first stop and then delete all associated // instances or unassign registered instances. For more information, see How // to Delete a Layer (http://docs.aws.amazon.com/opsworks/latest/userguide/workinglayers-basics-delete.html). @@ -794,6 +989,19 @@ func (c *OpsWorks) DeleteLayerRequest(input *DeleteLayerInput) (req *request.Req // permissions level for the stack, or an attached policy that explicitly grants // permissions. For more information on user permissions, see Managing User // Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html). +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS OpsWorks's +// API operation, DeleteLayer for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ValidationException +// ResourceNotFoundException func (c *OpsWorks) DeleteLayer(input *DeleteLayerInput) (*DeleteLayerOutput, error) { req, out := c.DeleteLayerRequest(input) err := req.Send() @@ -843,6 +1051,8 @@ func (c *OpsWorks) DeleteStackRequest(input *DeleteStackInput) (req *request.Req return } +// DeleteStack API operation for AWS OpsWorks. +// // Deletes a specified stack. You must first delete all instances, layers, and // apps or deregister registered instances. For more information, see Shut Down // a Stack (http://docs.aws.amazon.com/opsworks/latest/userguide/workingstacks-shutting.html). @@ -851,6 +1061,19 @@ func (c *OpsWorks) DeleteStackRequest(input *DeleteStackInput) (req *request.Req // permissions level for the stack, or an attached policy that explicitly grants // permissions. For more information on user permissions, see Managing User // Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html). +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS OpsWorks's +// API operation, DeleteStack for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ValidationException +// ResourceNotFoundException func (c *OpsWorks) DeleteStack(input *DeleteStackInput) (*DeleteStackOutput, error) { req, out := c.DeleteStackRequest(input) err := req.Send() @@ -900,11 +1123,26 @@ func (c *OpsWorks) DeleteUserProfileRequest(input *DeleteUserProfileInput) (req return } +// DeleteUserProfile API operation for AWS OpsWorks. +// // Deletes a user profile. // // Required Permissions: To use this action, an IAM user must have an attached // policy that explicitly grants permissions. For more information on user permissions, // see Managing User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html). +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS OpsWorks's +// API operation, DeleteUserProfile for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ValidationException +// ResourceNotFoundException func (c *OpsWorks) DeleteUserProfile(input *DeleteUserProfileInput) (*DeleteUserProfileOutput, error) { req, out := c.DeleteUserProfileRequest(input) err := req.Send() @@ -954,6 +1192,8 @@ func (c *OpsWorks) DeregisterEcsClusterRequest(input *DeregisterEcsClusterInput) return } +// DeregisterEcsCluster API operation for AWS OpsWorks. +// // Deregisters a specified Amazon ECS cluster from a stack. For more information, // see Resource Management (http://docs.aws.amazon.com/opsworks/latest/userguide/workinglayers-ecscluster.html#workinglayers-ecscluster-delete). // @@ -961,6 +1201,19 @@ func (c *OpsWorks) DeregisterEcsClusterRequest(input *DeregisterEcsClusterInput) // permissions level for the stack or an attached policy that explicitly grants // permissions. For more information on user permissions, see http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html // (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html). +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS OpsWorks's +// API operation, DeregisterEcsCluster for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ValidationException +// ResourceNotFoundException func (c *OpsWorks) DeregisterEcsCluster(input *DeregisterEcsClusterInput) (*DeregisterEcsClusterOutput, error) { req, out := c.DeregisterEcsClusterRequest(input) err := req.Send() @@ -1010,6 +1263,8 @@ func (c *OpsWorks) DeregisterElasticIpRequest(input *DeregisterElasticIpInput) ( return } +// DeregisterElasticIp API operation for AWS OpsWorks. +// // Deregisters a specified Elastic IP address. The address can then be registered // by another stack. For more information, see Resource Management (http://docs.aws.amazon.com/opsworks/latest/userguide/resources.html). // @@ -1017,6 +1272,19 @@ func (c *OpsWorks) DeregisterElasticIpRequest(input *DeregisterElasticIpInput) ( // permissions level for the stack, or an attached policy that explicitly grants // permissions. For more information on user permissions, see Managing User // Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html). +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS OpsWorks's +// API operation, DeregisterElasticIp for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ValidationException +// ResourceNotFoundException func (c *OpsWorks) DeregisterElasticIp(input *DeregisterElasticIpInput) (*DeregisterElasticIpOutput, error) { req, out := c.DeregisterElasticIpRequest(input) err := req.Send() @@ -1066,6 +1334,8 @@ func (c *OpsWorks) DeregisterInstanceRequest(input *DeregisterInstanceInput) (re return } +// DeregisterInstance API operation for AWS OpsWorks. +// // Deregister a registered Amazon EC2 or on-premises instance. This action removes // the instance from the stack and returns it to your control. This action can // not be used with instances that were created with AWS OpsWorks. @@ -1074,6 +1344,19 @@ func (c *OpsWorks) DeregisterInstanceRequest(input *DeregisterInstanceInput) (re // permissions level for the stack or an attached policy that explicitly grants // permissions. For more information on user permissions, see Managing User // Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html). +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS OpsWorks's +// API operation, DeregisterInstance for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ValidationException +// ResourceNotFoundException func (c *OpsWorks) DeregisterInstance(input *DeregisterInstanceInput) (*DeregisterInstanceOutput, error) { req, out := c.DeregisterInstanceRequest(input) err := req.Send() @@ -1123,12 +1406,27 @@ func (c *OpsWorks) DeregisterRdsDbInstanceRequest(input *DeregisterRdsDbInstance return } +// DeregisterRdsDbInstance API operation for AWS OpsWorks. +// // Deregisters an Amazon RDS instance. // // Required Permissions: To use this action, an IAM user must have a Manage // permissions level for the stack, or an attached policy that explicitly grants // permissions. For more information on user permissions, see Managing User // Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html). +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS OpsWorks's +// API operation, DeregisterRdsDbInstance for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ValidationException +// ResourceNotFoundException func (c *OpsWorks) DeregisterRdsDbInstance(input *DeregisterRdsDbInstanceInput) (*DeregisterRdsDbInstanceOutput, error) { req, out := c.DeregisterRdsDbInstanceRequest(input) err := req.Send() @@ -1178,6 +1476,8 @@ func (c *OpsWorks) DeregisterVolumeRequest(input *DeregisterVolumeInput) (req *r return } +// DeregisterVolume API operation for AWS OpsWorks. +// // Deregisters an Amazon EBS volume. The volume can then be registered by another // stack. For more information, see Resource Management (http://docs.aws.amazon.com/opsworks/latest/userguide/resources.html). // @@ -1185,6 +1485,19 @@ func (c *OpsWorks) DeregisterVolumeRequest(input *DeregisterVolumeInput) (req *r // permissions level for the stack, or an attached policy that explicitly grants // permissions. For more information on user permissions, see Managing User // Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html). +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS OpsWorks's +// API operation, DeregisterVolume for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ValidationException +// ResourceNotFoundException func (c *OpsWorks) DeregisterVolume(input *DeregisterVolumeInput) (*DeregisterVolumeOutput, error) { req, out := c.DeregisterVolumeRequest(input) err := req.Send() @@ -1232,9 +1545,24 @@ func (c *OpsWorks) DescribeAgentVersionsRequest(input *DescribeAgentVersionsInpu return } +// DescribeAgentVersions API operation for AWS OpsWorks. +// // Describes the available AWS OpsWorks agent versions. You must specify a stack // ID or a configuration manager. DescribeAgentVersions returns a list of available // agent versions for the specified stack or configuration manager. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS OpsWorks's +// API operation, DescribeAgentVersions for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ValidationException +// ResourceNotFoundException func (c *OpsWorks) DescribeAgentVersions(input *DescribeAgentVersionsInput) (*DescribeAgentVersionsOutput, error) { req, out := c.DescribeAgentVersionsRequest(input) err := req.Send() @@ -1282,6 +1610,8 @@ func (c *OpsWorks) DescribeAppsRequest(input *DescribeAppsInput) (req *request.R return } +// DescribeApps API operation for AWS OpsWorks. +// // Requests a description of a specified set of apps. // // You must specify at least one of the parameters. @@ -1290,6 +1620,19 @@ func (c *OpsWorks) DescribeAppsRequest(input *DescribeAppsInput) (req *request.R // Deploy, or Manage permissions level for the stack, or an attached policy // that explicitly grants permissions. For more information on user permissions, // see Managing User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html). +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS OpsWorks's +// API operation, DescribeApps for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ValidationException +// ResourceNotFoundException func (c *OpsWorks) DescribeApps(input *DescribeAppsInput) (*DescribeAppsOutput, error) { req, out := c.DescribeAppsRequest(input) err := req.Send() @@ -1337,6 +1680,8 @@ func (c *OpsWorks) DescribeCommandsRequest(input *DescribeCommandsInput) (req *r return } +// DescribeCommands API operation for AWS OpsWorks. +// // Describes the results of specified commands. // // You must specify at least one of the parameters. @@ -1345,6 +1690,19 @@ func (c *OpsWorks) DescribeCommandsRequest(input *DescribeCommandsInput) (req *r // Deploy, or Manage permissions level for the stack, or an attached policy // that explicitly grants permissions. For more information on user permissions, // see Managing User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html). +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS OpsWorks's +// API operation, DescribeCommands for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ValidationException +// ResourceNotFoundException func (c *OpsWorks) DescribeCommands(input *DescribeCommandsInput) (*DescribeCommandsOutput, error) { req, out := c.DescribeCommandsRequest(input) err := req.Send() @@ -1392,6 +1750,8 @@ func (c *OpsWorks) DescribeDeploymentsRequest(input *DescribeDeploymentsInput) ( return } +// DescribeDeployments API operation for AWS OpsWorks. +// // Requests a description of a specified set of deployments. // // You must specify at least one of the parameters. @@ -1400,6 +1760,19 @@ func (c *OpsWorks) DescribeDeploymentsRequest(input *DescribeDeploymentsInput) ( // Deploy, or Manage permissions level for the stack, or an attached policy // that explicitly grants permissions. For more information on user permissions, // see Managing User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html). +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS OpsWorks's +// API operation, DescribeDeployments for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ValidationException +// ResourceNotFoundException func (c *OpsWorks) DescribeDeployments(input *DescribeDeploymentsInput) (*DescribeDeploymentsOutput, error) { req, out := c.DescribeDeploymentsRequest(input) err := req.Send() @@ -1453,6 +1826,8 @@ func (c *OpsWorks) DescribeEcsClustersRequest(input *DescribeEcsClustersInput) ( return } +// DescribeEcsClusters API operation for AWS OpsWorks. +// // Describes Amazon ECS clusters that are registered with a stack. If you specify // only a stack ID, you can use the MaxResults and NextToken parameters to paginate // the response. However, AWS OpsWorks currently supports only one cluster per @@ -1462,6 +1837,19 @@ func (c *OpsWorks) DescribeEcsClustersRequest(input *DescribeEcsClustersInput) ( // Deploy, or Manage permissions level for the stack or an attached policy that // explicitly grants permission. For more information on user permissions, see // Managing User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html). +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS OpsWorks's +// API operation, DescribeEcsClusters for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ValidationException +// ResourceNotFoundException func (c *OpsWorks) DescribeEcsClusters(input *DescribeEcsClustersInput) (*DescribeEcsClustersOutput, error) { req, out := c.DescribeEcsClustersRequest(input) err := req.Send() @@ -1534,6 +1922,8 @@ func (c *OpsWorks) DescribeElasticIpsRequest(input *DescribeElasticIpsInput) (re return } +// DescribeElasticIps API operation for AWS OpsWorks. +// // Describes Elastic IP addresses (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/elastic-ip-addresses-eip.html). // // You must specify at least one of the parameters. @@ -1542,6 +1932,19 @@ func (c *OpsWorks) DescribeElasticIpsRequest(input *DescribeElasticIpsInput) (re // Deploy, or Manage permissions level for the stack, or an attached policy // that explicitly grants permissions. For more information on user permissions, // see Managing User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html). +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS OpsWorks's +// API operation, DescribeElasticIps for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ValidationException +// ResourceNotFoundException func (c *OpsWorks) DescribeElasticIps(input *DescribeElasticIpsInput) (*DescribeElasticIpsOutput, error) { req, out := c.DescribeElasticIpsRequest(input) err := req.Send() @@ -1589,6 +1992,8 @@ func (c *OpsWorks) DescribeElasticLoadBalancersRequest(input *DescribeElasticLoa return } +// DescribeElasticLoadBalancers API operation for AWS OpsWorks. +// // Describes a stack's Elastic Load Balancing instances. // // You must specify at least one of the parameters. @@ -1597,6 +2002,19 @@ func (c *OpsWorks) DescribeElasticLoadBalancersRequest(input *DescribeElasticLoa // Deploy, or Manage permissions level for the stack, or an attached policy // that explicitly grants permissions. For more information on user permissions, // see Managing User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html). +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS OpsWorks's +// API operation, DescribeElasticLoadBalancers for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ValidationException +// ResourceNotFoundException func (c *OpsWorks) DescribeElasticLoadBalancers(input *DescribeElasticLoadBalancersInput) (*DescribeElasticLoadBalancersOutput, error) { req, out := c.DescribeElasticLoadBalancersRequest(input) err := req.Send() @@ -1644,6 +2062,8 @@ func (c *OpsWorks) DescribeInstancesRequest(input *DescribeInstancesInput) (req return } +// DescribeInstances API operation for AWS OpsWorks. +// // Requests a description of a set of instances. // // You must specify at least one of the parameters. @@ -1652,6 +2072,19 @@ func (c *OpsWorks) DescribeInstancesRequest(input *DescribeInstancesInput) (req // Deploy, or Manage permissions level for the stack, or an attached policy // that explicitly grants permissions. For more information on user permissions, // see Managing User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html). +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS OpsWorks's +// API operation, DescribeInstances for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ValidationException +// ResourceNotFoundException func (c *OpsWorks) DescribeInstances(input *DescribeInstancesInput) (*DescribeInstancesOutput, error) { req, out := c.DescribeInstancesRequest(input) err := req.Send() @@ -1699,6 +2132,8 @@ func (c *OpsWorks) DescribeLayersRequest(input *DescribeLayersInput) (req *reque return } +// DescribeLayers API operation for AWS OpsWorks. +// // Requests a description of one or more layers in a specified stack. // // You must specify at least one of the parameters. @@ -1707,6 +2142,19 @@ func (c *OpsWorks) DescribeLayersRequest(input *DescribeLayersInput) (req *reque // Deploy, or Manage permissions level for the stack, or an attached policy // that explicitly grants permissions. For more information on user permissions, // see Managing User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html). +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS OpsWorks's +// API operation, DescribeLayers for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ValidationException +// ResourceNotFoundException func (c *OpsWorks) DescribeLayers(input *DescribeLayersInput) (*DescribeLayersOutput, error) { req, out := c.DescribeLayersRequest(input) err := req.Send() @@ -1754,6 +2202,8 @@ func (c *OpsWorks) DescribeLoadBasedAutoScalingRequest(input *DescribeLoadBasedA return } +// DescribeLoadBasedAutoScaling API operation for AWS OpsWorks. +// // Describes load-based auto scaling configurations for specified layers. // // You must specify at least one of the parameters. @@ -1762,6 +2212,19 @@ func (c *OpsWorks) DescribeLoadBasedAutoScalingRequest(input *DescribeLoadBasedA // Deploy, or Manage permissions level for the stack, or an attached policy // that explicitly grants permissions. For more information on user permissions, // see Managing User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html). +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS OpsWorks's +// API operation, DescribeLoadBasedAutoScaling for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ValidationException +// ResourceNotFoundException func (c *OpsWorks) DescribeLoadBasedAutoScaling(input *DescribeLoadBasedAutoScalingInput) (*DescribeLoadBasedAutoScalingOutput, error) { req, out := c.DescribeLoadBasedAutoScalingRequest(input) err := req.Send() @@ -1809,11 +2272,21 @@ func (c *OpsWorks) DescribeMyUserProfileRequest(input *DescribeMyUserProfileInpu return } +// DescribeMyUserProfile API operation for AWS OpsWorks. +// // Describes a user's SSH information. // // Required Permissions: To use this action, an IAM user must have self-management // enabled or an attached policy that explicitly grants permissions. For more // information on user permissions, see Managing User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html). +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS OpsWorks's +// API operation, DescribeMyUserProfile for more information, and other errors +// that the API operation could return. func (c *OpsWorks) DescribeMyUserProfile(input *DescribeMyUserProfileInput) (*DescribeMyUserProfileOutput, error) { req, out := c.DescribeMyUserProfileRequest(input) err := req.Send() @@ -1861,12 +2334,27 @@ func (c *OpsWorks) DescribePermissionsRequest(input *DescribePermissionsInput) ( return } +// DescribePermissions API operation for AWS OpsWorks. +// // Describes the permissions for a specified stack. // // Required Permissions: To use this action, an IAM user must have a Manage // permissions level for the stack, or an attached policy that explicitly grants // permissions. For more information on user permissions, see Managing User // Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html). +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS OpsWorks's +// API operation, DescribePermissions for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ValidationException +// ResourceNotFoundException func (c *OpsWorks) DescribePermissions(input *DescribePermissionsInput) (*DescribePermissionsOutput, error) { req, out := c.DescribePermissionsRequest(input) err := req.Send() @@ -1914,6 +2402,8 @@ func (c *OpsWorks) DescribeRaidArraysRequest(input *DescribeRaidArraysInput) (re return } +// DescribeRaidArrays API operation for AWS OpsWorks. +// // Describe an instance's RAID arrays. // // You must specify at least one of the parameters. @@ -1922,6 +2412,19 @@ func (c *OpsWorks) DescribeRaidArraysRequest(input *DescribeRaidArraysInput) (re // Deploy, or Manage permissions level for the stack, or an attached policy // that explicitly grants permissions. For more information on user permissions, // see Managing User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html). +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS OpsWorks's +// API operation, DescribeRaidArrays for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ValidationException +// ResourceNotFoundException func (c *OpsWorks) DescribeRaidArrays(input *DescribeRaidArraysInput) (*DescribeRaidArraysOutput, error) { req, out := c.DescribeRaidArraysRequest(input) err := req.Send() @@ -1969,12 +2472,27 @@ func (c *OpsWorks) DescribeRdsDbInstancesRequest(input *DescribeRdsDbInstancesIn return } +// DescribeRdsDbInstances API operation for AWS OpsWorks. +// // Describes Amazon RDS instances. // // Required Permissions: To use this action, an IAM user must have a Show, // Deploy, or Manage permissions level for the stack, or an attached policy // that explicitly grants permissions. For more information on user permissions, // see Managing User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html). +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS OpsWorks's +// API operation, DescribeRdsDbInstances for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ValidationException +// ResourceNotFoundException func (c *OpsWorks) DescribeRdsDbInstances(input *DescribeRdsDbInstancesInput) (*DescribeRdsDbInstancesOutput, error) { req, out := c.DescribeRdsDbInstancesRequest(input) err := req.Send() @@ -2022,12 +2540,27 @@ func (c *OpsWorks) DescribeServiceErrorsRequest(input *DescribeServiceErrorsInpu return } +// DescribeServiceErrors API operation for AWS OpsWorks. +// // Describes AWS OpsWorks service errors. // // Required Permissions: To use this action, an IAM user must have a Show, // Deploy, or Manage permissions level for the stack, or an attached policy // that explicitly grants permissions. For more information on user permissions, // see Managing User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html). +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS OpsWorks's +// API operation, DescribeServiceErrors for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ValidationException +// ResourceNotFoundException func (c *OpsWorks) DescribeServiceErrors(input *DescribeServiceErrorsInput) (*DescribeServiceErrorsOutput, error) { req, out := c.DescribeServiceErrorsRequest(input) err := req.Send() @@ -2075,12 +2608,27 @@ func (c *OpsWorks) DescribeStackProvisioningParametersRequest(input *DescribeSta return } +// DescribeStackProvisioningParameters API operation for AWS OpsWorks. +// // Requests a description of a stack's provisioning parameters. // // Required Permissions: To use this action, an IAM user must have a Show, // Deploy, or Manage permissions level for the stack or an attached policy that // explicitly grants permissions. For more information on user permissions, // see Managing User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html). +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS OpsWorks's +// API operation, DescribeStackProvisioningParameters for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ValidationException +// ResourceNotFoundException func (c *OpsWorks) DescribeStackProvisioningParameters(input *DescribeStackProvisioningParametersInput) (*DescribeStackProvisioningParametersOutput, error) { req, out := c.DescribeStackProvisioningParametersRequest(input) err := req.Send() @@ -2128,6 +2676,8 @@ func (c *OpsWorks) DescribeStackSummaryRequest(input *DescribeStackSummaryInput) return } +// DescribeStackSummary API operation for AWS OpsWorks. +// // Describes the number of layers and apps in a specified stack, and the number // of instances in each state, such as running_setup or online. // @@ -2135,6 +2685,19 @@ func (c *OpsWorks) DescribeStackSummaryRequest(input *DescribeStackSummaryInput) // Deploy, or Manage permissions level for the stack, or an attached policy // that explicitly grants permissions. For more information on user permissions, // see Managing User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html). +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS OpsWorks's +// API operation, DescribeStackSummary for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ValidationException +// ResourceNotFoundException func (c *OpsWorks) DescribeStackSummary(input *DescribeStackSummaryInput) (*DescribeStackSummaryOutput, error) { req, out := c.DescribeStackSummaryRequest(input) err := req.Send() @@ -2182,12 +2745,27 @@ func (c *OpsWorks) DescribeStacksRequest(input *DescribeStacksInput) (req *reque return } +// DescribeStacks API operation for AWS OpsWorks. +// // Requests a description of one or more stacks. // // Required Permissions: To use this action, an IAM user must have a Show, // Deploy, or Manage permissions level for the stack, or an attached policy // that explicitly grants permissions. For more information on user permissions, // see Managing User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html). +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS OpsWorks's +// API operation, DescribeStacks for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ValidationException +// ResourceNotFoundException func (c *OpsWorks) DescribeStacks(input *DescribeStacksInput) (*DescribeStacksOutput, error) { req, out := c.DescribeStacksRequest(input) err := req.Send() @@ -2235,6 +2813,8 @@ func (c *OpsWorks) DescribeTimeBasedAutoScalingRequest(input *DescribeTimeBasedA return } +// DescribeTimeBasedAutoScaling API operation for AWS OpsWorks. +// // Describes time-based auto scaling configurations for specified instances. // // You must specify at least one of the parameters. @@ -2243,6 +2823,19 @@ func (c *OpsWorks) DescribeTimeBasedAutoScalingRequest(input *DescribeTimeBasedA // Deploy, or Manage permissions level for the stack, or an attached policy // that explicitly grants permissions. For more information on user permissions, // see Managing User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html). +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS OpsWorks's +// API operation, DescribeTimeBasedAutoScaling for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ValidationException +// ResourceNotFoundException func (c *OpsWorks) DescribeTimeBasedAutoScaling(input *DescribeTimeBasedAutoScalingInput) (*DescribeTimeBasedAutoScalingOutput, error) { req, out := c.DescribeTimeBasedAutoScalingRequest(input) err := req.Send() @@ -2290,11 +2883,26 @@ func (c *OpsWorks) DescribeUserProfilesRequest(input *DescribeUserProfilesInput) return } +// DescribeUserProfiles API operation for AWS OpsWorks. +// // Describe specified users. // // Required Permissions: To use this action, an IAM user must have an attached // policy that explicitly grants permissions. For more information on user permissions, // see Managing User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html). +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS OpsWorks's +// API operation, DescribeUserProfiles for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ValidationException +// ResourceNotFoundException func (c *OpsWorks) DescribeUserProfiles(input *DescribeUserProfilesInput) (*DescribeUserProfilesOutput, error) { req, out := c.DescribeUserProfilesRequest(input) err := req.Send() @@ -2342,6 +2950,8 @@ func (c *OpsWorks) DescribeVolumesRequest(input *DescribeVolumesInput) (req *req return } +// DescribeVolumes API operation for AWS OpsWorks. +// // Describes an instance's Amazon EBS volumes. // // You must specify at least one of the parameters. @@ -2350,6 +2960,19 @@ func (c *OpsWorks) DescribeVolumesRequest(input *DescribeVolumesInput) (req *req // Deploy, or Manage permissions level for the stack, or an attached policy // that explicitly grants permissions. For more information on user permissions, // see Managing User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html). +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS OpsWorks's +// API operation, DescribeVolumes for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ValidationException +// ResourceNotFoundException func (c *OpsWorks) DescribeVolumes(input *DescribeVolumesInput) (*DescribeVolumesOutput, error) { req, out := c.DescribeVolumesRequest(input) err := req.Send() @@ -2399,12 +3022,26 @@ func (c *OpsWorks) DetachElasticLoadBalancerRequest(input *DetachElasticLoadBala return } +// DetachElasticLoadBalancer API operation for AWS OpsWorks. +// // Detaches a specified Elastic Load Balancing instance from its layer. // // Required Permissions: To use this action, an IAM user must have a Manage // permissions level for the stack, or an attached policy that explicitly grants // permissions. For more information on user permissions, see Managing User // Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html). +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS OpsWorks's +// API operation, DetachElasticLoadBalancer for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ResourceNotFoundException func (c *OpsWorks) DetachElasticLoadBalancer(input *DetachElasticLoadBalancerInput) (*DetachElasticLoadBalancerOutput, error) { req, out := c.DetachElasticLoadBalancerRequest(input) err := req.Send() @@ -2454,6 +3091,8 @@ func (c *OpsWorks) DisassociateElasticIpRequest(input *DisassociateElasticIpInpu return } +// DisassociateElasticIp API operation for AWS OpsWorks. +// // Disassociates an Elastic IP address from its instance. The address remains // registered with the stack. For more information, see Resource Management // (http://docs.aws.amazon.com/opsworks/latest/userguide/resources.html). @@ -2462,6 +3101,19 @@ func (c *OpsWorks) DisassociateElasticIpRequest(input *DisassociateElasticIpInpu // permissions level for the stack, or an attached policy that explicitly grants // permissions. For more information on user permissions, see Managing User // Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html). +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS OpsWorks's +// API operation, DisassociateElasticIp for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ValidationException +// ResourceNotFoundException func (c *OpsWorks) DisassociateElasticIp(input *DisassociateElasticIpInput) (*DisassociateElasticIpOutput, error) { req, out := c.DisassociateElasticIpRequest(input) err := req.Send() @@ -2509,6 +3161,8 @@ func (c *OpsWorks) GetHostnameSuggestionRequest(input *GetHostnameSuggestionInpu return } +// GetHostnameSuggestion API operation for AWS OpsWorks. +// // Gets a generated host name for the specified layer, based on the current // host name theme. // @@ -2516,6 +3170,19 @@ func (c *OpsWorks) GetHostnameSuggestionRequest(input *GetHostnameSuggestionInpu // permissions level for the stack, or an attached policy that explicitly grants // permissions. For more information on user permissions, see Managing User // Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html). +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS OpsWorks's +// API operation, GetHostnameSuggestion for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ValidationException +// ResourceNotFoundException func (c *OpsWorks) GetHostnameSuggestion(input *GetHostnameSuggestionInput) (*GetHostnameSuggestionOutput, error) { req, out := c.GetHostnameSuggestionRequest(input) err := req.Send() @@ -2563,9 +3230,24 @@ func (c *OpsWorks) GrantAccessRequest(input *GrantAccessInput) (req *request.Req return } +// GrantAccess API operation for AWS OpsWorks. +// // This action can be used only with Windows stacks. // // Grants RDP access to a Windows instance for a specified time period. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS OpsWorks's +// API operation, GrantAccess for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ValidationException +// ResourceNotFoundException func (c *OpsWorks) GrantAccess(input *GrantAccessInput) (*GrantAccessOutput, error) { req, out := c.GrantAccessRequest(input) err := req.Send() @@ -2615,6 +3297,8 @@ func (c *OpsWorks) RebootInstanceRequest(input *RebootInstanceInput) (req *reque return } +// RebootInstance API operation for AWS OpsWorks. +// // Reboots a specified instance. For more information, see Starting, Stopping, // and Rebooting Instances (http://docs.aws.amazon.com/opsworks/latest/userguide/workinginstances-starting.html). // @@ -2622,6 +3306,19 @@ func (c *OpsWorks) RebootInstanceRequest(input *RebootInstanceInput) (req *reque // permissions level for the stack, or an attached policy that explicitly grants // permissions. For more information on user permissions, see Managing User // Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html). +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS OpsWorks's +// API operation, RebootInstance for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ValidationException +// ResourceNotFoundException func (c *OpsWorks) RebootInstance(input *RebootInstanceInput) (*RebootInstanceOutput, error) { req, out := c.RebootInstanceRequest(input) err := req.Send() @@ -2669,6 +3366,8 @@ func (c *OpsWorks) RegisterEcsClusterRequest(input *RegisterEcsClusterInput) (re return } +// RegisterEcsCluster API operation for AWS OpsWorks. +// // Registers a specified Amazon ECS cluster with a stack. You can register only // one cluster with a stack. A cluster can be registered with only one stack. // For more information, see Resource Management (http://docs.aws.amazon.com/opsworks/latest/userguide/workinglayers-ecscluster.html). @@ -2677,6 +3376,19 @@ func (c *OpsWorks) RegisterEcsClusterRequest(input *RegisterEcsClusterInput) (re // permissions level for the stack or an attached policy that explicitly grants // permissions. For more information on user permissions, see Managing User // Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html). +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS OpsWorks's +// API operation, RegisterEcsCluster for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ValidationException +// ResourceNotFoundException func (c *OpsWorks) RegisterEcsCluster(input *RegisterEcsClusterInput) (*RegisterEcsClusterOutput, error) { req, out := c.RegisterEcsClusterRequest(input) err := req.Send() @@ -2724,6 +3436,8 @@ func (c *OpsWorks) RegisterElasticIpRequest(input *RegisterElasticIpInput) (req return } +// RegisterElasticIp API operation for AWS OpsWorks. +// // Registers an Elastic IP address with a specified stack. An address can be // registered with only one stack at a time. If the address is already registered, // you must first deregister it by calling DeregisterElasticIp. For more information, @@ -2733,6 +3447,19 @@ func (c *OpsWorks) RegisterElasticIpRequest(input *RegisterElasticIpInput) (req // permissions level for the stack, or an attached policy that explicitly grants // permissions. For more information on user permissions, see Managing User // Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html). +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS OpsWorks's +// API operation, RegisterElasticIp for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ValidationException +// ResourceNotFoundException func (c *OpsWorks) RegisterElasticIp(input *RegisterElasticIpInput) (*RegisterElasticIpOutput, error) { req, out := c.RegisterElasticIpRequest(input) err := req.Send() @@ -2780,6 +3507,8 @@ func (c *OpsWorks) RegisterInstanceRequest(input *RegisterInstanceInput) (req *r return } +// RegisterInstance API operation for AWS OpsWorks. +// // Registers instances with a specified stack that were created outside of AWS // OpsWorks. // @@ -2794,6 +3523,19 @@ func (c *OpsWorks) RegisterInstanceRequest(input *RegisterInstanceInput) (req *r // permissions level for the stack or an attached policy that explicitly grants // permissions. For more information on user permissions, see Managing User // Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html). +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS OpsWorks's +// API operation, RegisterInstance for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ValidationException +// ResourceNotFoundException func (c *OpsWorks) RegisterInstance(input *RegisterInstanceInput) (*RegisterInstanceOutput, error) { req, out := c.RegisterInstanceRequest(input) err := req.Send() @@ -2843,12 +3585,27 @@ func (c *OpsWorks) RegisterRdsDbInstanceRequest(input *RegisterRdsDbInstanceInpu return } +// RegisterRdsDbInstance API operation for AWS OpsWorks. +// // Registers an Amazon RDS instance with a stack. // // Required Permissions: To use this action, an IAM user must have a Manage // permissions level for the stack, or an attached policy that explicitly grants // permissions. For more information on user permissions, see Managing User // Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html). +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS OpsWorks's +// API operation, RegisterRdsDbInstance for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ValidationException +// ResourceNotFoundException func (c *OpsWorks) RegisterRdsDbInstance(input *RegisterRdsDbInstanceInput) (*RegisterRdsDbInstanceOutput, error) { req, out := c.RegisterRdsDbInstanceRequest(input) err := req.Send() @@ -2896,6 +3653,8 @@ func (c *OpsWorks) RegisterVolumeRequest(input *RegisterVolumeInput) (req *reque return } +// RegisterVolume API operation for AWS OpsWorks. +// // Registers an Amazon EBS volume with a specified stack. A volume can be registered // with only one stack at a time. If the volume is already registered, you must // first deregister it by calling DeregisterVolume. For more information, see @@ -2905,6 +3664,19 @@ func (c *OpsWorks) RegisterVolumeRequest(input *RegisterVolumeInput) (req *reque // permissions level for the stack, or an attached policy that explicitly grants // permissions. For more information on user permissions, see Managing User // Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html). +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS OpsWorks's +// API operation, RegisterVolume for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ValidationException +// ResourceNotFoundException func (c *OpsWorks) RegisterVolume(input *RegisterVolumeInput) (*RegisterVolumeOutput, error) { req, out := c.RegisterVolumeRequest(input) err := req.Send() @@ -2954,6 +3726,8 @@ func (c *OpsWorks) SetLoadBasedAutoScalingRequest(input *SetLoadBasedAutoScaling return } +// SetLoadBasedAutoScaling API operation for AWS OpsWorks. +// // Specify the load-based auto scaling configuration for a specified layer. // For more information, see Managing Load with Time-based and Load-based Instances // (http://docs.aws.amazon.com/opsworks/latest/userguide/workinginstances-autoscaling.html). @@ -2967,6 +3741,19 @@ func (c *OpsWorks) SetLoadBasedAutoScalingRequest(input *SetLoadBasedAutoScaling // permissions level for the stack, or an attached policy that explicitly grants // permissions. For more information on user permissions, see Managing User // Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html). +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS OpsWorks's +// API operation, SetLoadBasedAutoScaling for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ValidationException +// ResourceNotFoundException func (c *OpsWorks) SetLoadBasedAutoScaling(input *SetLoadBasedAutoScalingInput) (*SetLoadBasedAutoScalingOutput, error) { req, out := c.SetLoadBasedAutoScalingRequest(input) err := req.Send() @@ -3016,6 +3803,8 @@ func (c *OpsWorks) SetPermissionRequest(input *SetPermissionInput) (req *request return } +// SetPermission API operation for AWS OpsWorks. +// // Specifies a user's permissions. For more information, see Security and Permissions // (http://docs.aws.amazon.com/opsworks/latest/userguide/workingsecurity.html). // @@ -3023,6 +3812,19 @@ func (c *OpsWorks) SetPermissionRequest(input *SetPermissionInput) (req *request // permissions level for the stack, or an attached policy that explicitly grants // permissions. For more information on user permissions, see Managing User // Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html). +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS OpsWorks's +// API operation, SetPermission for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ValidationException +// ResourceNotFoundException func (c *OpsWorks) SetPermission(input *SetPermissionInput) (*SetPermissionOutput, error) { req, out := c.SetPermissionRequest(input) err := req.Send() @@ -3072,6 +3874,8 @@ func (c *OpsWorks) SetTimeBasedAutoScalingRequest(input *SetTimeBasedAutoScaling return } +// SetTimeBasedAutoScaling API operation for AWS OpsWorks. +// // Specify the time-based auto scaling configuration for a specified instance. // For more information, see Managing Load with Time-based and Load-based Instances // (http://docs.aws.amazon.com/opsworks/latest/userguide/workinginstances-autoscaling.html). @@ -3080,6 +3884,19 @@ func (c *OpsWorks) SetTimeBasedAutoScalingRequest(input *SetTimeBasedAutoScaling // permissions level for the stack, or an attached policy that explicitly grants // permissions. For more information on user permissions, see Managing User // Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html). +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS OpsWorks's +// API operation, SetTimeBasedAutoScaling for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ValidationException +// ResourceNotFoundException func (c *OpsWorks) SetTimeBasedAutoScaling(input *SetTimeBasedAutoScalingInput) (*SetTimeBasedAutoScalingOutput, error) { req, out := c.SetTimeBasedAutoScalingRequest(input) err := req.Send() @@ -3129,6 +3946,8 @@ func (c *OpsWorks) StartInstanceRequest(input *StartInstanceInput) (req *request return } +// StartInstance API operation for AWS OpsWorks. +// // Starts a specified instance. For more information, see Starting, Stopping, // and Rebooting Instances (http://docs.aws.amazon.com/opsworks/latest/userguide/workinginstances-starting.html). // @@ -3136,6 +3955,19 @@ func (c *OpsWorks) StartInstanceRequest(input *StartInstanceInput) (req *request // permissions level for the stack, or an attached policy that explicitly grants // permissions. For more information on user permissions, see Managing User // Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html). +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS OpsWorks's +// API operation, StartInstance for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ValidationException +// ResourceNotFoundException func (c *OpsWorks) StartInstance(input *StartInstanceInput) (*StartInstanceOutput, error) { req, out := c.StartInstanceRequest(input) err := req.Send() @@ -3185,12 +4017,27 @@ func (c *OpsWorks) StartStackRequest(input *StartStackInput) (req *request.Reque return } +// StartStack API operation for AWS OpsWorks. +// // Starts a stack's instances. // // Required Permissions: To use this action, an IAM user must have a Manage // permissions level for the stack, or an attached policy that explicitly grants // permissions. For more information on user permissions, see Managing User // Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html). +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS OpsWorks's +// API operation, StartStack for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ValidationException +// ResourceNotFoundException func (c *OpsWorks) StartStack(input *StartStackInput) (*StartStackOutput, error) { req, out := c.StartStackRequest(input) err := req.Send() @@ -3240,6 +4087,8 @@ func (c *OpsWorks) StopInstanceRequest(input *StopInstanceInput) (req *request.R return } +// StopInstance API operation for AWS OpsWorks. +// // Stops a specified instance. When you stop a standard instance, the data disappears // and must be reinstalled when you restart the instance. You can stop an Amazon // EBS-backed instance without losing data. For more information, see Starting, @@ -3249,6 +4098,19 @@ func (c *OpsWorks) StopInstanceRequest(input *StopInstanceInput) (req *request.R // permissions level for the stack, or an attached policy that explicitly grants // permissions. For more information on user permissions, see Managing User // Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html). +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS OpsWorks's +// API operation, StopInstance for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ValidationException +// ResourceNotFoundException func (c *OpsWorks) StopInstance(input *StopInstanceInput) (*StopInstanceOutput, error) { req, out := c.StopInstanceRequest(input) err := req.Send() @@ -3298,12 +4160,27 @@ func (c *OpsWorks) StopStackRequest(input *StopStackInput) (req *request.Request return } +// StopStack API operation for AWS OpsWorks. +// // Stops a specified stack. // // Required Permissions: To use this action, an IAM user must have a Manage // permissions level for the stack, or an attached policy that explicitly grants // permissions. For more information on user permissions, see Managing User // Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html). +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS OpsWorks's +// API operation, StopStack for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ValidationException +// ResourceNotFoundException func (c *OpsWorks) StopStack(input *StopStackInput) (*StopStackOutput, error) { req, out := c.StopStackRequest(input) err := req.Send() @@ -3353,6 +4230,8 @@ func (c *OpsWorks) UnassignInstanceRequest(input *UnassignInstanceInput) (req *r return } +// UnassignInstance API operation for AWS OpsWorks. +// // Unassigns a registered instance from all of it's layers. The instance remains // in the stack as an unassigned instance and can be assigned to another layer, // as needed. You cannot use this action with instances that were created with @@ -3362,6 +4241,19 @@ func (c *OpsWorks) UnassignInstanceRequest(input *UnassignInstanceInput) (req *r // permissions level for the stack or an attached policy that explicitly grants // permissions. For more information on user permissions, see Managing User // Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html). +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS OpsWorks's +// API operation, UnassignInstance for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ValidationException +// ResourceNotFoundException func (c *OpsWorks) UnassignInstance(input *UnassignInstanceInput) (*UnassignInstanceOutput, error) { req, out := c.UnassignInstanceRequest(input) err := req.Send() @@ -3411,6 +4303,8 @@ func (c *OpsWorks) UnassignVolumeRequest(input *UnassignVolumeInput) (req *reque return } +// UnassignVolume API operation for AWS OpsWorks. +// // Unassigns an assigned Amazon EBS volume. The volume remains registered with // the stack. For more information, see Resource Management (http://docs.aws.amazon.com/opsworks/latest/userguide/resources.html). // @@ -3418,6 +4312,19 @@ func (c *OpsWorks) UnassignVolumeRequest(input *UnassignVolumeInput) (req *reque // permissions level for the stack, or an attached policy that explicitly grants // permissions. For more information on user permissions, see Managing User // Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html). +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS OpsWorks's +// API operation, UnassignVolume for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ValidationException +// ResourceNotFoundException func (c *OpsWorks) UnassignVolume(input *UnassignVolumeInput) (*UnassignVolumeOutput, error) { req, out := c.UnassignVolumeRequest(input) err := req.Send() @@ -3467,12 +4374,27 @@ func (c *OpsWorks) UpdateAppRequest(input *UpdateAppInput) (req *request.Request return } +// UpdateApp API operation for AWS OpsWorks. +// // Updates a specified app. // // Required Permissions: To use this action, an IAM user must have a Deploy // or Manage permissions level for the stack, or an attached policy that explicitly // grants permissions. For more information on user permissions, see Managing // User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html). +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS OpsWorks's +// API operation, UpdateApp for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ValidationException +// ResourceNotFoundException func (c *OpsWorks) UpdateApp(input *UpdateAppInput) (*UpdateAppOutput, error) { req, out := c.UpdateAppRequest(input) err := req.Send() @@ -3522,6 +4444,8 @@ func (c *OpsWorks) UpdateElasticIpRequest(input *UpdateElasticIpInput) (req *req return } +// UpdateElasticIp API operation for AWS OpsWorks. +// // Updates a registered Elastic IP address's name. For more information, see // Resource Management (http://docs.aws.amazon.com/opsworks/latest/userguide/resources.html). // @@ -3529,6 +4453,19 @@ func (c *OpsWorks) UpdateElasticIpRequest(input *UpdateElasticIpInput) (req *req // permissions level for the stack, or an attached policy that explicitly grants // permissions. For more information on user permissions, see Managing User // Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html). +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS OpsWorks's +// API operation, UpdateElasticIp for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ValidationException +// ResourceNotFoundException func (c *OpsWorks) UpdateElasticIp(input *UpdateElasticIpInput) (*UpdateElasticIpOutput, error) { req, out := c.UpdateElasticIpRequest(input) err := req.Send() @@ -3578,12 +4515,27 @@ func (c *OpsWorks) UpdateInstanceRequest(input *UpdateInstanceInput) (req *reque return } +// UpdateInstance API operation for AWS OpsWorks. +// // Updates a specified instance. // // Required Permissions: To use this action, an IAM user must have a Manage // permissions level for the stack, or an attached policy that explicitly grants // permissions. For more information on user permissions, see Managing User // Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html). +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS OpsWorks's +// API operation, UpdateInstance for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ValidationException +// ResourceNotFoundException func (c *OpsWorks) UpdateInstance(input *UpdateInstanceInput) (*UpdateInstanceOutput, error) { req, out := c.UpdateInstanceRequest(input) err := req.Send() @@ -3633,12 +4585,27 @@ func (c *OpsWorks) UpdateLayerRequest(input *UpdateLayerInput) (req *request.Req return } +// UpdateLayer API operation for AWS OpsWorks. +// // Updates a specified layer. // // Required Permissions: To use this action, an IAM user must have a Manage // permissions level for the stack, or an attached policy that explicitly grants // permissions. For more information on user permissions, see Managing User // Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html). +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS OpsWorks's +// API operation, UpdateLayer for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ValidationException +// ResourceNotFoundException func (c *OpsWorks) UpdateLayer(input *UpdateLayerInput) (*UpdateLayerOutput, error) { req, out := c.UpdateLayerRequest(input) err := req.Send() @@ -3688,11 +4655,25 @@ func (c *OpsWorks) UpdateMyUserProfileRequest(input *UpdateMyUserProfileInput) ( return } +// UpdateMyUserProfile API operation for AWS OpsWorks. +// // Updates a user's SSH public key. // // Required Permissions: To use this action, an IAM user must have self-management // enabled or an attached policy that explicitly grants permissions. For more // information on user permissions, see Managing User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html). +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS OpsWorks's +// API operation, UpdateMyUserProfile for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ValidationException func (c *OpsWorks) UpdateMyUserProfile(input *UpdateMyUserProfileInput) (*UpdateMyUserProfileOutput, error) { req, out := c.UpdateMyUserProfileRequest(input) err := req.Send() @@ -3742,12 +4723,27 @@ func (c *OpsWorks) UpdateRdsDbInstanceRequest(input *UpdateRdsDbInstanceInput) ( return } +// UpdateRdsDbInstance API operation for AWS OpsWorks. +// // Updates an Amazon RDS instance. // // Required Permissions: To use this action, an IAM user must have a Manage // permissions level for the stack, or an attached policy that explicitly grants // permissions. For more information on user permissions, see Managing User // Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html). +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS OpsWorks's +// API operation, UpdateRdsDbInstance for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ValidationException +// ResourceNotFoundException func (c *OpsWorks) UpdateRdsDbInstance(input *UpdateRdsDbInstanceInput) (*UpdateRdsDbInstanceOutput, error) { req, out := c.UpdateRdsDbInstanceRequest(input) err := req.Send() @@ -3797,12 +4793,27 @@ func (c *OpsWorks) UpdateStackRequest(input *UpdateStackInput) (req *request.Req return } +// UpdateStack API operation for AWS OpsWorks. +// // Updates a specified stack. // // Required Permissions: To use this action, an IAM user must have a Manage // permissions level for the stack, or an attached policy that explicitly grants // permissions. For more information on user permissions, see Managing User // Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html). +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS OpsWorks's +// API operation, UpdateStack for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ValidationException +// ResourceNotFoundException func (c *OpsWorks) UpdateStack(input *UpdateStackInput) (*UpdateStackOutput, error) { req, out := c.UpdateStackRequest(input) err := req.Send() @@ -3852,11 +4863,26 @@ func (c *OpsWorks) UpdateUserProfileRequest(input *UpdateUserProfileInput) (req return } +// UpdateUserProfile API operation for AWS OpsWorks. +// // Updates a specified user profile. // // Required Permissions: To use this action, an IAM user must have an attached // policy that explicitly grants permissions. For more information on user permissions, // see Managing User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html). +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS OpsWorks's +// API operation, UpdateUserProfile for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ValidationException +// ResourceNotFoundException func (c *OpsWorks) UpdateUserProfile(input *UpdateUserProfileInput) (*UpdateUserProfileOutput, error) { req, out := c.UpdateUserProfileRequest(input) err := req.Send() @@ -3906,6 +4932,8 @@ func (c *OpsWorks) UpdateVolumeRequest(input *UpdateVolumeInput) (req *request.R return } +// UpdateVolume API operation for AWS OpsWorks. +// // Updates an Amazon EBS volume's name or mount point. For more information, // see Resource Management (http://docs.aws.amazon.com/opsworks/latest/userguide/resources.html). // @@ -3913,6 +4941,19 @@ func (c *OpsWorks) UpdateVolumeRequest(input *UpdateVolumeInput) (req *request.R // permissions level for the stack, or an attached policy that explicitly grants // permissions. For more information on user permissions, see Managing User // Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html). +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS OpsWorks's +// API operation, UpdateVolume for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ValidationException +// ResourceNotFoundException func (c *OpsWorks) UpdateVolume(input *UpdateVolumeInput) (*UpdateVolumeOutput, error) { req, out := c.UpdateVolumeRequest(input) err := req.Send() diff --git a/service/rds/api.go b/service/rds/api.go index 9caa366cd25..91f087fe03e 100644 --- a/service/rds/api.go +++ b/service/rds/api.go @@ -54,7 +54,22 @@ func (c *RDS) AddSourceIdentifierToSubscriptionRequest(input *AddSourceIdentifie return } +// AddSourceIdentifierToSubscription API operation for Amazon Relational Database Service. +// // Adds a source identifier to an existing RDS event notification subscription. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Relational Database Service's +// API operation, AddSourceIdentifierToSubscription for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// SubscriptionNotFoundFault +// SourceNotFoundFault func (c *RDS) AddSourceIdentifierToSubscription(input *AddSourceIdentifierToSubscriptionInput) (*AddSourceIdentifierToSubscriptionOutput, error) { req, out := c.AddSourceIdentifierToSubscriptionRequest(input) err := req.Send() @@ -104,12 +119,27 @@ func (c *RDS) AddTagsToResourceRequest(input *AddTagsToResourceInput) (req *requ return } +// AddTagsToResource API operation for Amazon Relational Database Service. +// // Adds metadata tags to an Amazon RDS resource. These tags can also be used // with cost allocation reporting to track cost associated with Amazon RDS resources, // or used in a Condition statement in an IAM policy for Amazon RDS. // // For an overview on tagging Amazon RDS resources, see Tagging Amazon RDS // Resources (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Overview.Tagging.html). +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Relational Database Service's +// API operation, AddTagsToResource for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// DBInstanceNotFoundFault +// DBSnapshotNotFoundFault func (c *RDS) AddTagsToResource(input *AddTagsToResourceInput) (*AddTagsToResourceOutput, error) { req, out := c.AddTagsToResourceRequest(input) err := req.Send() @@ -157,8 +187,22 @@ func (c *RDS) ApplyPendingMaintenanceActionRequest(input *ApplyPendingMaintenanc return } +// ApplyPendingMaintenanceAction API operation for Amazon Relational Database Service. +// // Applies a pending maintenance action to a resource (for example, to a DB // instance). +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Relational Database Service's +// API operation, ApplyPendingMaintenanceAction for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ResourceNotFoundFault func (c *RDS) ApplyPendingMaintenanceAction(input *ApplyPendingMaintenanceActionInput) (*ApplyPendingMaintenanceActionOutput, error) { req, out := c.ApplyPendingMaintenanceActionRequest(input) err := req.Send() @@ -206,6 +250,8 @@ func (c *RDS) AuthorizeDBSecurityGroupIngressRequest(input *AuthorizeDBSecurityG return } +// AuthorizeDBSecurityGroupIngress API operation for Amazon Relational Database Service. +// // Enables ingress to a DBSecurityGroup using one of two forms of authorization. // First, EC2 or VPC security groups can be added to the DBSecurityGroup if // the application using the database is running on EC2 or VPC instances. Second, @@ -219,6 +265,21 @@ func (c *RDS) AuthorizeDBSecurityGroupIngressRequest(input *AuthorizeDBSecurityG // VPC security group in one VPC to an Amazon RDS DB instance in another. // // For an overview of CIDR ranges, go to the Wikipedia Tutorial (http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing). +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Relational Database Service's +// API operation, AuthorizeDBSecurityGroupIngress for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// DBSecurityGroupNotFoundFault +// InvalidDBSecurityGroupStateFault +// AuthorizationAlreadyExistsFault +// AuthorizationQuotaExceededFault func (c *RDS) AuthorizeDBSecurityGroupIngress(input *AuthorizeDBSecurityGroupIngressInput) (*AuthorizeDBSecurityGroupIngressOutput, error) { req, out := c.AuthorizeDBSecurityGroupIngressRequest(input) err := req.Send() @@ -266,7 +327,23 @@ func (c *RDS) CopyDBClusterParameterGroupRequest(input *CopyDBClusterParameterGr return } +// CopyDBClusterParameterGroup API operation for Amazon Relational Database Service. +// // Copies the specified DB cluster parameter group. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Relational Database Service's +// API operation, CopyDBClusterParameterGroup for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// DBParameterGroupNotFoundFault +// DBParameterGroupQuotaExceededFault +// DBParameterGroupAlreadyExistsFault func (c *RDS) CopyDBClusterParameterGroup(input *CopyDBClusterParameterGroupInput) (*CopyDBClusterParameterGroupOutput, error) { req, out := c.CopyDBClusterParameterGroupRequest(input) err := req.Send() @@ -314,9 +391,26 @@ func (c *RDS) CopyDBClusterSnapshotRequest(input *CopyDBClusterSnapshotInput) (r return } +// CopyDBClusterSnapshot API operation for Amazon Relational Database Service. +// // Creates a snapshot of a DB cluster. 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. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Relational Database Service's +// API operation, CopyDBClusterSnapshot for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// DBClusterSnapshotAlreadyExistsFault +// DBClusterSnapshotNotFoundFault +// InvalidDBClusterStateFault +// InvalidDBClusterSnapshotStateFault func (c *RDS) CopyDBClusterSnapshot(input *CopyDBClusterSnapshotInput) (*CopyDBClusterSnapshotOutput, error) { req, out := c.CopyDBClusterSnapshotRequest(input) err := req.Send() @@ -364,7 +458,23 @@ func (c *RDS) CopyDBParameterGroupRequest(input *CopyDBParameterGroupInput) (req return } +// CopyDBParameterGroup API operation for Amazon Relational Database Service. +// // Copies the specified DB parameter group. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Relational Database Service's +// API operation, CopyDBParameterGroup for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// DBParameterGroupNotFoundFault +// DBParameterGroupAlreadyExistsFault +// DBParameterGroupQuotaExceededFault func (c *RDS) CopyDBParameterGroup(input *CopyDBParameterGroupInput) (*CopyDBParameterGroupOutput, error) { req, out := c.CopyDBParameterGroupRequest(input) err := req.Send() @@ -412,11 +522,29 @@ func (c *RDS) CopyDBSnapshotRequest(input *CopyDBSnapshotInput) (req *request.Re return } +// CopyDBSnapshot API operation for Amazon Relational Database Service. +// // Copies the specified DB snapshot. The source DB snapshot must be in the "available" // state. // // If you are copying from a shared manual DB snapshot, the SourceDBSnapshotIdentifier // must be the ARN of the shared DB snapshot. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Relational Database Service's +// API operation, CopyDBSnapshot for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// DBSnapshotAlreadyExistsFault +// DBSnapshotNotFoundFault +// InvalidDBSnapshotStateFault +// SnapshotQuotaExceededFault +// KMSKeyNotAccessibleFault func (c *RDS) CopyDBSnapshot(input *CopyDBSnapshotInput) (*CopyDBSnapshotOutput, error) { req, out := c.CopyDBSnapshotRequest(input) err := req.Send() @@ -464,7 +592,23 @@ func (c *RDS) CopyOptionGroupRequest(input *CopyOptionGroupInput) (req *request. return } +// CopyOptionGroup API operation for Amazon Relational Database Service. +// // Copies the specified option group. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Relational Database Service's +// API operation, CopyOptionGroup for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// OptionGroupAlreadyExistsFault +// OptionGroupNotFoundFault +// OptionGroupQuotaExceededFault func (c *RDS) CopyOptionGroup(input *CopyOptionGroupInput) (*CopyOptionGroupOutput, error) { req, out := c.CopyOptionGroupRequest(input) err := req.Send() @@ -512,6 +656,8 @@ func (c *RDS) CreateDBClusterRequest(input *CreateDBClusterInput) (req *request. return } +// CreateDBCluster API operation for Amazon Relational Database Service. +// // Creates a new Amazon Aurora DB cluster. // // You can use the ReplicationSourceIdentifier parameter to create the DB cluster @@ -519,6 +665,29 @@ func (c *RDS) CreateDBClusterRequest(input *CreateDBClusterInput) (req *request. // // 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. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Relational Database Service's +// API operation, CreateDBCluster for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// DBClusterAlreadyExistsFault +// InsufficientStorageClusterCapacityFault +// DBClusterQuotaExceededFault +// StorageQuotaExceededFault +// DBSubnetGroupNotFoundFault +// InvalidVPCNetworkStateFault +// InvalidDBClusterStateFault +// InvalidDBSubnetGroupStateFault +// InvalidSubnet +// DBClusterParameterGroupNotFoundFault +// KMSKeyNotAccessibleFault +// DBClusterNotFoundFault func (c *RDS) CreateDBCluster(input *CreateDBClusterInput) (*CreateDBClusterOutput, error) { req, out := c.CreateDBClusterRequest(input) err := req.Send() @@ -566,6 +735,8 @@ func (c *RDS) CreateDBClusterParameterGroupRequest(input *CreateDBClusterParamet return } +// CreateDBClusterParameterGroup API operation for Amazon Relational Database Service. +// // Creates a new DB cluster parameter group. // // Parameters in a DB cluster parameter group apply to all of the instances @@ -594,6 +765,19 @@ func (c *RDS) CreateDBClusterParameterGroupRequest(input *CreateDBClusterParamet // // 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. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Relational Database Service's +// API operation, CreateDBClusterParameterGroup for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// DBParameterGroupQuotaExceededFault +// DBParameterGroupAlreadyExistsFault func (c *RDS) CreateDBClusterParameterGroup(input *CreateDBClusterParameterGroupInput) (*CreateDBClusterParameterGroupOutput, error) { req, out := c.CreateDBClusterParameterGroupRequest(input) err := req.Send() @@ -641,9 +825,27 @@ func (c *RDS) CreateDBClusterSnapshotRequest(input *CreateDBClusterSnapshotInput return } +// CreateDBClusterSnapshot API operation for Amazon Relational Database Service. +// // Creates a snapshot of a DB cluster. 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. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Relational Database Service's +// API operation, CreateDBClusterSnapshot for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// DBClusterSnapshotAlreadyExistsFault +// InvalidDBClusterStateFault +// DBClusterNotFoundFault +// SnapshotQuotaExceededFault +// InvalidDBClusterSnapshotStateFault func (c *RDS) CreateDBClusterSnapshot(input *CreateDBClusterSnapshotInput) (*CreateDBClusterSnapshotOutput, error) { req, out := c.CreateDBClusterSnapshotRequest(input) err := req.Send() @@ -691,7 +893,38 @@ func (c *RDS) CreateDBInstanceRequest(input *CreateDBInstanceInput) (req *reques return } +// CreateDBInstance API operation for Amazon Relational Database Service. +// // Creates a new DB instance. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Relational Database Service's +// API operation, CreateDBInstance for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// DBInstanceAlreadyExistsFault +// InsufficientDBInstanceCapacityFault +// DBParameterGroupNotFoundFault +// DBSecurityGroupNotFoundFault +// InstanceQuotaExceededFault +// StorageQuotaExceededFault +// DBSubnetGroupNotFoundFault +// DBSubnetGroupDoesNotCoverEnoughAZs +// InvalidDBClusterStateFault +// InvalidSubnet +// InvalidVPCNetworkStateFault +// ProvisionedIopsNotAvailableInAZFault +// OptionGroupNotFoundFault +// DBClusterNotFoundFault +// StorageTypeNotSupportedFault +// AuthorizationNotFoundFault +// KMSKeyNotAccessibleFault +// DomainNotFoundFault func (c *RDS) CreateDBInstance(input *CreateDBInstanceInput) (*CreateDBInstanceOutput, error) { req, out := c.CreateDBInstanceRequest(input) err := req.Send() @@ -739,6 +972,8 @@ func (c *RDS) CreateDBInstanceReadReplicaRequest(input *CreateDBInstanceReadRepl return } +// CreateDBInstanceReadReplica API operation for Amazon Relational Database Service. +// // Creates a DB instance for a DB instance running MySQL, MariaDB, or PostgreSQL // that acts as a Read Replica of a source DB instance. // @@ -748,6 +983,35 @@ func (c *RDS) CreateDBInstanceReadReplicaRequest(input *CreateDBInstanceReadRepl // except as specified below. // // The source DB instance must have backup retention enabled. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Relational Database Service's +// API operation, CreateDBInstanceReadReplica for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// DBInstanceAlreadyExistsFault +// InsufficientDBInstanceCapacityFault +// DBParameterGroupNotFoundFault +// DBSecurityGroupNotFoundFault +// InstanceQuotaExceededFault +// StorageQuotaExceededFault +// DBInstanceNotFoundFault +// InvalidDBInstanceStateFault +// DBSubnetGroupNotFoundFault +// DBSubnetGroupDoesNotCoverEnoughAZs +// InvalidSubnet +// InvalidVPCNetworkStateFault +// ProvisionedIopsNotAvailableInAZFault +// OptionGroupNotFoundFault +// DBSubnetGroupNotAllowedFault +// InvalidDBSubnetGroupFault +// StorageTypeNotSupportedFault +// KMSKeyNotAccessibleFault func (c *RDS) CreateDBInstanceReadReplica(input *CreateDBInstanceReadReplicaInput) (*CreateDBInstanceReadReplicaOutput, error) { req, out := c.CreateDBInstanceReadReplicaRequest(input) err := req.Send() @@ -795,6 +1059,8 @@ func (c *RDS) CreateDBParameterGroupRequest(input *CreateDBParameterGroupInput) return } +// CreateDBParameterGroup API operation for Amazon Relational Database Service. +// // Creates a new DB parameter group. // // A DB parameter group is initially created with the default parameters for @@ -816,6 +1082,19 @@ func (c *RDS) CreateDBParameterGroupRequest(input *CreateDBParameterGroupInput) // You can use the Parameter Groups option of the Amazon RDS console (https://console.aws.amazon.com/rds/) // or the DescribeDBParameters command to verify that your DB parameter group // has been created or modified. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Relational Database Service's +// API operation, CreateDBParameterGroup for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// DBParameterGroupQuotaExceededFault +// DBParameterGroupAlreadyExistsFault func (c *RDS) CreateDBParameterGroup(input *CreateDBParameterGroupInput) (*CreateDBParameterGroupOutput, error) { req, out := c.CreateDBParameterGroupRequest(input) err := req.Send() @@ -863,8 +1142,24 @@ func (c *RDS) CreateDBSecurityGroupRequest(input *CreateDBSecurityGroupInput) (r return } +// CreateDBSecurityGroup API operation for Amazon Relational Database Service. +// // Creates a new DB security group. DB security groups control access to a DB // instance. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Relational Database Service's +// API operation, CreateDBSecurityGroup for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// DBSecurityGroupAlreadyExistsFault +// DBSecurityGroupQuotaExceededFault +// DBSecurityGroupNotSupportedFault func (c *RDS) CreateDBSecurityGroup(input *CreateDBSecurityGroupInput) (*CreateDBSecurityGroupOutput, error) { req, out := c.CreateDBSecurityGroupRequest(input) err := req.Send() @@ -912,7 +1207,24 @@ func (c *RDS) CreateDBSnapshotRequest(input *CreateDBSnapshotInput) (req *reques return } +// CreateDBSnapshot API operation for Amazon Relational Database Service. +// // Creates a DBSnapshot. The source DBInstance must be in "available" state. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Relational Database Service's +// API operation, CreateDBSnapshot for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// DBSnapshotAlreadyExistsFault +// InvalidDBInstanceStateFault +// DBInstanceNotFoundFault +// SnapshotQuotaExceededFault func (c *RDS) CreateDBSnapshot(input *CreateDBSnapshotInput) (*CreateDBSnapshotOutput, error) { req, out := c.CreateDBSnapshotRequest(input) err := req.Send() @@ -960,8 +1272,26 @@ func (c *RDS) CreateDBSubnetGroupRequest(input *CreateDBSubnetGroupInput) (req * return } +// CreateDBSubnetGroup API operation for Amazon Relational Database Service. +// // Creates a new DB subnet group. DB subnet groups must contain at least one // subnet in at least two AZs in the region. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Relational Database Service's +// API operation, CreateDBSubnetGroup for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// DBSubnetGroupAlreadyExistsFault +// DBSubnetGroupQuotaExceededFault +// DBSubnetQuotaExceededFault +// DBSubnetGroupDoesNotCoverEnoughAZs +// InvalidSubnet func (c *RDS) CreateDBSubnetGroup(input *CreateDBSubnetGroupInput) (*CreateDBSubnetGroupOutput, error) { req, out := c.CreateDBSubnetGroupRequest(input) err := req.Send() @@ -1009,6 +1339,8 @@ func (c *RDS) CreateEventSubscriptionRequest(input *CreateEventSubscriptionInput return } +// CreateEventSubscription API operation for Amazon Relational Database Service. +// // Creates an RDS event notification subscription. This action requires a topic // ARN (Amazon Resource Name) created by either the RDS console, the SNS console, // or the SNS API. To obtain an ARN with SNS, you must create a topic in Amazon @@ -1028,6 +1360,24 @@ func (c *RDS) CreateEventSubscriptionRequest(input *CreateEventSubscriptionInput // type for all your RDS sources. If you do not specify either the SourceType // nor the SourceIdentifier, you will be notified of events generated from all // RDS sources belonging to your customer account. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Relational Database Service's +// API operation, CreateEventSubscription for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// EventSubscriptionQuotaExceededFault +// SubscriptionAlreadyExistFault +// SNSInvalidTopicFault +// SNSNoAuthorizationFault +// SNSTopicArnNotFoundFault +// SubscriptionCategoryNotFoundFault +// SourceNotFoundFault func (c *RDS) CreateEventSubscription(input *CreateEventSubscriptionInput) (*CreateEventSubscriptionOutput, error) { req, out := c.CreateEventSubscriptionRequest(input) err := req.Send() @@ -1075,7 +1425,22 @@ func (c *RDS) CreateOptionGroupRequest(input *CreateOptionGroupInput) (req *requ return } +// CreateOptionGroup API operation for Amazon Relational Database Service. +// // Creates a new option group. You can create up to 20 option groups. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Relational Database Service's +// API operation, CreateOptionGroup for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// OptionGroupAlreadyExistsFault +// OptionGroupQuotaExceededFault func (c *RDS) CreateOptionGroup(input *CreateOptionGroupInput) (*CreateOptionGroupOutput, error) { req, out := c.CreateOptionGroupRequest(input) err := req.Send() @@ -1123,6 +1488,8 @@ func (c *RDS) DeleteDBClusterRequest(input *DeleteDBClusterInput) (req *request. return } +// DeleteDBCluster API operation for Amazon Relational Database Service. +// // The DeleteDBCluster action deletes a previously provisioned DB cluster. When // you delete a DB cluster, all automated backups for that DB cluster are deleted // and cannot be recovered. Manual DB cluster snapshots of the specified DB @@ -1130,6 +1497,22 @@ func (c *RDS) DeleteDBClusterRequest(input *DeleteDBClusterInput) (req *request. // // 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. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Relational Database Service's +// API operation, DeleteDBCluster for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// DBClusterNotFoundFault +// InvalidDBClusterStateFault +// DBClusterSnapshotAlreadyExistsFault +// SnapshotQuotaExceededFault +// InvalidDBClusterSnapshotStateFault func (c *RDS) DeleteDBCluster(input *DeleteDBClusterInput) (*DeleteDBClusterOutput, error) { req, out := c.DeleteDBClusterRequest(input) err := req.Send() @@ -1179,11 +1562,26 @@ func (c *RDS) DeleteDBClusterParameterGroupRequest(input *DeleteDBClusterParamet return } +// DeleteDBClusterParameterGroup API operation for Amazon Relational Database Service. +// // Deletes a specified DB cluster parameter group. The DB cluster parameter // group to be deleted cannot be associated with any DB clusters. // // 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. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Relational Database Service's +// API operation, DeleteDBClusterParameterGroup for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidDBParameterGroupStateFault +// DBParameterGroupNotFoundFault func (c *RDS) DeleteDBClusterParameterGroup(input *DeleteDBClusterParameterGroupInput) (*DeleteDBClusterParameterGroupOutput, error) { req, out := c.DeleteDBClusterParameterGroupRequest(input) err := req.Send() @@ -1231,6 +1629,8 @@ func (c *RDS) DeleteDBClusterSnapshotRequest(input *DeleteDBClusterSnapshotInput return } +// DeleteDBClusterSnapshot API operation for Amazon Relational Database Service. +// // Deletes a DB cluster snapshot. If the snapshot is being copied, the copy // operation is terminated. // @@ -1238,6 +1638,19 @@ func (c *RDS) DeleteDBClusterSnapshotRequest(input *DeleteDBClusterSnapshotInput // // 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. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Relational Database Service's +// API operation, DeleteDBClusterSnapshot for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidDBClusterSnapshotStateFault +// DBClusterSnapshotNotFoundFault func (c *RDS) DeleteDBClusterSnapshot(input *DeleteDBClusterSnapshotInput) (*DeleteDBClusterSnapshotOutput, error) { req, out := c.DeleteDBClusterSnapshotRequest(input) err := req.Send() @@ -1285,6 +1698,8 @@ func (c *RDS) DeleteDBInstanceRequest(input *DeleteDBInstanceInput) (req *reques return } +// DeleteDBInstance API operation for Amazon Relational Database Service. +// // The DeleteDBInstance action deletes a previously provisioned DB instance. // When you delete a DB instance, all automated backups for that instance are // deleted and cannot be recovered. Manual DB snapshots of the DB instance to @@ -1310,6 +1725,22 @@ func (c *RDS) DeleteDBInstanceRequest(input *DeleteDBInstanceInput) (req *reques // API action to promote the DB cluster so it's no longer a Read Replica. After // the promotion completes, then call the DeleteDBInstance API action to delete // the final instance in the DB cluster. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Relational Database Service's +// API operation, DeleteDBInstance for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// DBInstanceNotFoundFault +// InvalidDBInstanceStateFault +// DBSnapshotAlreadyExistsFault +// SnapshotQuotaExceededFault +// InvalidDBClusterStateFault func (c *RDS) DeleteDBInstance(input *DeleteDBInstanceInput) (*DeleteDBInstanceOutput, error) { req, out := c.DeleteDBInstanceRequest(input) err := req.Send() @@ -1359,8 +1790,23 @@ func (c *RDS) DeleteDBParameterGroupRequest(input *DeleteDBParameterGroupInput) return } +// DeleteDBParameterGroup API operation for Amazon Relational Database Service. +// // Deletes a specified DBParameterGroup. The DBParameterGroup to be deleted // cannot be associated with any DB instances. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Relational Database Service's +// API operation, DeleteDBParameterGroup for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidDBParameterGroupStateFault +// DBParameterGroupNotFoundFault func (c *RDS) DeleteDBParameterGroup(input *DeleteDBParameterGroupInput) (*DeleteDBParameterGroupOutput, error) { req, out := c.DeleteDBParameterGroupRequest(input) err := req.Send() @@ -1410,9 +1856,24 @@ func (c *RDS) DeleteDBSecurityGroupRequest(input *DeleteDBSecurityGroupInput) (r return } +// DeleteDBSecurityGroup API operation for Amazon Relational Database Service. +// // Deletes a DB security group. // // The specified DB security group must not be associated with any DB instances. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Relational Database Service's +// API operation, DeleteDBSecurityGroup for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidDBSecurityGroupStateFault +// DBSecurityGroupNotFoundFault func (c *RDS) DeleteDBSecurityGroup(input *DeleteDBSecurityGroupInput) (*DeleteDBSecurityGroupOutput, error) { req, out := c.DeleteDBSecurityGroupRequest(input) err := req.Send() @@ -1460,10 +1921,25 @@ func (c *RDS) DeleteDBSnapshotRequest(input *DeleteDBSnapshotInput) (req *reques return } +// DeleteDBSnapshot API operation for Amazon Relational Database Service. +// // Deletes a DBSnapshot. If the snapshot is being copied, the copy operation // is terminated. // // The DBSnapshot must be in the available state to be deleted. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Relational Database Service's +// API operation, DeleteDBSnapshot for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidDBSnapshotStateFault +// DBSnapshotNotFoundFault func (c *RDS) DeleteDBSnapshot(input *DeleteDBSnapshotInput) (*DeleteDBSnapshotOutput, error) { req, out := c.DeleteDBSnapshotRequest(input) err := req.Send() @@ -1513,10 +1989,26 @@ func (c *RDS) DeleteDBSubnetGroupRequest(input *DeleteDBSubnetGroupInput) (req * return } +// DeleteDBSubnetGroup API operation for Amazon Relational Database Service. +// // Deletes a DB subnet group. // // The specified database subnet group must not be associated with any DB // instances. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Relational Database Service's +// API operation, DeleteDBSubnetGroup for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidDBSubnetGroupStateFault +// InvalidDBSubnetStateFault +// DBSubnetGroupNotFoundFault func (c *RDS) DeleteDBSubnetGroup(input *DeleteDBSubnetGroupInput) (*DeleteDBSubnetGroupOutput, error) { req, out := c.DeleteDBSubnetGroupRequest(input) err := req.Send() @@ -1564,7 +2056,22 @@ func (c *RDS) DeleteEventSubscriptionRequest(input *DeleteEventSubscriptionInput return } +// DeleteEventSubscription API operation for Amazon Relational Database Service. +// // Deletes an RDS event notification subscription. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Relational Database Service's +// API operation, DeleteEventSubscription for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// SubscriptionNotFoundFault +// InvalidEventSubscriptionStateFault func (c *RDS) DeleteEventSubscription(input *DeleteEventSubscriptionInput) (*DeleteEventSubscriptionOutput, error) { req, out := c.DeleteEventSubscriptionRequest(input) err := req.Send() @@ -1614,7 +2121,22 @@ func (c *RDS) DeleteOptionGroupRequest(input *DeleteOptionGroupInput) (req *requ return } +// DeleteOptionGroup API operation for Amazon Relational Database Service. +// // Deletes an existing option group. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Relational Database Service's +// API operation, DeleteOptionGroup for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// OptionGroupNotFoundFault +// InvalidOptionGroupStateFault func (c *RDS) DeleteOptionGroup(input *DeleteOptionGroupInput) (*DeleteOptionGroupOutput, error) { req, out := c.DeleteOptionGroupRequest(input) err := req.Send() @@ -1662,12 +2184,22 @@ func (c *RDS) DescribeAccountAttributesRequest(input *DescribeAccountAttributesI return } +// DescribeAccountAttributes API operation for Amazon Relational Database Service. +// // Lists all of the attributes for a customer account. The attributes include // Amazon RDS quotas for the account, such as the number of DB instances allowed. // The description for a quota includes the quota name, current usage toward // that quota, and the quota's maximum value. // // This command does not take any parameters. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Relational Database Service's +// API operation, DescribeAccountAttributes for more information, and other errors +// that the API operation could return. func (c *RDS) DescribeAccountAttributes(input *DescribeAccountAttributesInput) (*DescribeAccountAttributesOutput, error) { req, out := c.DescribeAccountAttributesRequest(input) err := req.Send() @@ -1715,7 +2247,21 @@ func (c *RDS) DescribeCertificatesRequest(input *DescribeCertificatesInput) (req return } +// DescribeCertificates API operation for Amazon Relational Database Service. +// // Lists the set of CA certificates provided by Amazon RDS for this AWS account. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Relational Database Service's +// API operation, DescribeCertificates for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// CertificateNotFoundFault func (c *RDS) DescribeCertificates(input *DescribeCertificatesInput) (*DescribeCertificatesOutput, error) { req, out := c.DescribeCertificatesRequest(input) err := req.Send() @@ -1763,12 +2309,26 @@ func (c *RDS) DescribeDBClusterParameterGroupsRequest(input *DescribeDBClusterPa return } +// DescribeDBClusterParameterGroups API operation for Amazon Relational Database Service. +// // Returns a list of DBClusterParameterGroup descriptions. If a DBClusterParameterGroupName // parameter is specified, the list will contain only the description of the // specified DB cluster parameter group. // // 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. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Relational Database Service's +// API operation, DescribeDBClusterParameterGroups for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// DBParameterGroupNotFoundFault func (c *RDS) DescribeDBClusterParameterGroups(input *DescribeDBClusterParameterGroupsInput) (*DescribeDBClusterParameterGroupsOutput, error) { req, out := c.DescribeDBClusterParameterGroupsRequest(input) err := req.Send() @@ -1816,11 +2376,25 @@ func (c *RDS) DescribeDBClusterParametersRequest(input *DescribeDBClusterParamet return } +// DescribeDBClusterParameters API operation for Amazon Relational Database Service. +// // Returns the detailed parameter list for a particular DB cluster parameter // group. // // 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. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Relational Database Service's +// API operation, DescribeDBClusterParameters for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// DBParameterGroupNotFoundFault func (c *RDS) DescribeDBClusterParameters(input *DescribeDBClusterParametersInput) (*DescribeDBClusterParametersOutput, error) { req, out := c.DescribeDBClusterParametersRequest(input) err := req.Send() @@ -1868,6 +2442,8 @@ func (c *RDS) DescribeDBClusterSnapshotAttributesRequest(input *DescribeDBCluste return } +// DescribeDBClusterSnapshotAttributes API operation for Amazon Relational Database Service. +// // Returns a list of DB cluster snapshot attribute names and values for a manual // DB cluster snapshot. // @@ -1880,6 +2456,18 @@ func (c *RDS) DescribeDBClusterSnapshotAttributesRequest(input *DescribeDBCluste // To add or remove access for an AWS account to copy or restore a manual DB // cluster snapshot, or to make the manual DB cluster snapshot public or private, // use the ModifyDBClusterSnapshotAttribute API action. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Relational Database Service's +// API operation, DescribeDBClusterSnapshotAttributes for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// DBClusterSnapshotNotFoundFault func (c *RDS) DescribeDBClusterSnapshotAttributes(input *DescribeDBClusterSnapshotAttributesInput) (*DescribeDBClusterSnapshotAttributesOutput, error) { req, out := c.DescribeDBClusterSnapshotAttributesRequest(input) err := req.Send() @@ -1927,11 +2515,25 @@ func (c *RDS) DescribeDBClusterSnapshotsRequest(input *DescribeDBClusterSnapshot return } +// DescribeDBClusterSnapshots API operation for Amazon Relational Database Service. +// // Returns information about DB cluster snapshots. This API action supports // pagination. // // 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. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Relational Database Service's +// API operation, DescribeDBClusterSnapshots for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// DBClusterSnapshotNotFoundFault func (c *RDS) DescribeDBClusterSnapshots(input *DescribeDBClusterSnapshotsInput) (*DescribeDBClusterSnapshotsOutput, error) { req, out := c.DescribeDBClusterSnapshotsRequest(input) err := req.Send() @@ -1979,11 +2581,25 @@ func (c *RDS) DescribeDBClustersRequest(input *DescribeDBClustersInput) (req *re return } +// DescribeDBClusters API operation for Amazon Relational Database Service. +// // Returns information about provisioned Aurora DB clusters. This API supports // pagination. // // 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. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Relational Database Service's +// API operation, DescribeDBClusters for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// DBClusterNotFoundFault func (c *RDS) DescribeDBClusters(input *DescribeDBClustersInput) (*DescribeDBClustersOutput, error) { req, out := c.DescribeDBClustersRequest(input) err := req.Send() @@ -2037,7 +2653,17 @@ func (c *RDS) DescribeDBEngineVersionsRequest(input *DescribeDBEngineVersionsInp return } +// DescribeDBEngineVersions API operation for Amazon Relational Database Service. +// // Returns a list of the available DB engines. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Relational Database Service's +// API operation, DescribeDBEngineVersions for more information, and other errors +// that the API operation could return. func (c *RDS) DescribeDBEngineVersions(input *DescribeDBEngineVersionsInput) (*DescribeDBEngineVersionsOutput, error) { req, out := c.DescribeDBEngineVersionsRequest(input) err := req.Send() @@ -2116,7 +2742,21 @@ func (c *RDS) DescribeDBInstancesRequest(input *DescribeDBInstancesInput) (req * return } +// DescribeDBInstances API operation for Amazon Relational Database Service. +// // Returns information about provisioned RDS instances. This API supports pagination. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Relational Database Service's +// API operation, DescribeDBInstances for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// DBInstanceNotFoundFault func (c *RDS) DescribeDBInstances(input *DescribeDBInstancesInput) (*DescribeDBInstancesOutput, error) { req, out := c.DescribeDBInstancesRequest(input) err := req.Send() @@ -2195,7 +2835,21 @@ func (c *RDS) DescribeDBLogFilesRequest(input *DescribeDBLogFilesInput) (req *re return } +// DescribeDBLogFiles API operation for Amazon Relational Database Service. +// // Returns a list of DB log files for the DB instance. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Relational Database Service's +// API operation, DescribeDBLogFiles for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// DBInstanceNotFoundFault func (c *RDS) DescribeDBLogFiles(input *DescribeDBLogFilesInput) (*DescribeDBLogFilesOutput, error) { req, out := c.DescribeDBLogFilesRequest(input) err := req.Send() @@ -2274,9 +2928,23 @@ func (c *RDS) DescribeDBParameterGroupsRequest(input *DescribeDBParameterGroupsI return } +// DescribeDBParameterGroups API operation for Amazon Relational Database Service. +// // Returns a list of DBParameterGroup descriptions. If a DBParameterGroupName // is specified, the list will contain only the description of the specified // DB parameter group. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Relational Database Service's +// API operation, DescribeDBParameterGroups for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// DBParameterGroupNotFoundFault func (c *RDS) DescribeDBParameterGroups(input *DescribeDBParameterGroupsInput) (*DescribeDBParameterGroupsOutput, error) { req, out := c.DescribeDBParameterGroupsRequest(input) err := req.Send() @@ -2355,7 +3023,21 @@ func (c *RDS) DescribeDBParametersRequest(input *DescribeDBParametersInput) (req return } +// DescribeDBParameters API operation for Amazon Relational Database Service. +// // Returns the detailed parameter list for a particular DB parameter group. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Relational Database Service's +// API operation, DescribeDBParameters for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// DBParameterGroupNotFoundFault func (c *RDS) DescribeDBParameters(input *DescribeDBParametersInput) (*DescribeDBParametersOutput, error) { req, out := c.DescribeDBParametersRequest(input) err := req.Send() @@ -2434,9 +3116,23 @@ func (c *RDS) DescribeDBSecurityGroupsRequest(input *DescribeDBSecurityGroupsInp return } +// DescribeDBSecurityGroups API operation for Amazon Relational Database Service. +// // Returns a list of DBSecurityGroup descriptions. If a DBSecurityGroupName // is specified, the list will contain only the descriptions of the specified // DB security group. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Relational Database Service's +// API operation, DescribeDBSecurityGroups for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// DBSecurityGroupNotFoundFault func (c *RDS) DescribeDBSecurityGroups(input *DescribeDBSecurityGroupsInput) (*DescribeDBSecurityGroupsOutput, error) { req, out := c.DescribeDBSecurityGroupsRequest(input) err := req.Send() @@ -2509,6 +3205,8 @@ func (c *RDS) DescribeDBSnapshotAttributesRequest(input *DescribeDBSnapshotAttri return } +// DescribeDBSnapshotAttributes API operation for Amazon Relational Database Service. +// // Returns a list of DB snapshot attribute names and values for a manual DB // snapshot. // @@ -2521,6 +3219,18 @@ func (c *RDS) DescribeDBSnapshotAttributesRequest(input *DescribeDBSnapshotAttri // To add or remove access for an AWS account to copy or restore a manual DB // snapshot, or to make the manual DB snapshot public or private, use the ModifyDBSnapshotAttribute // API action. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Relational Database Service's +// API operation, DescribeDBSnapshotAttributes for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// DBSnapshotNotFoundFault func (c *RDS) DescribeDBSnapshotAttributes(input *DescribeDBSnapshotAttributesInput) (*DescribeDBSnapshotAttributesOutput, error) { req, out := c.DescribeDBSnapshotAttributesRequest(input) err := req.Send() @@ -2574,7 +3284,21 @@ func (c *RDS) DescribeDBSnapshotsRequest(input *DescribeDBSnapshotsInput) (req * return } +// DescribeDBSnapshots API operation for Amazon Relational Database Service. +// // Returns information about DB snapshots. This API action supports pagination. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Relational Database Service's +// API operation, DescribeDBSnapshots for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// DBSnapshotNotFoundFault func (c *RDS) DescribeDBSnapshots(input *DescribeDBSnapshotsInput) (*DescribeDBSnapshotsOutput, error) { req, out := c.DescribeDBSnapshotsRequest(input) err := req.Send() @@ -2653,10 +3377,24 @@ func (c *RDS) DescribeDBSubnetGroupsRequest(input *DescribeDBSubnetGroupsInput) return } +// DescribeDBSubnetGroups API operation for Amazon Relational Database Service. +// // Returns a list of DBSubnetGroup descriptions. If a DBSubnetGroupName is specified, // the list will contain only the descriptions of the specified DBSubnetGroup. // // For an overview of CIDR ranges, go to the Wikipedia Tutorial (http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing). +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Relational Database Service's +// API operation, DescribeDBSubnetGroups for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// DBSubnetGroupNotFoundFault func (c *RDS) DescribeDBSubnetGroups(input *DescribeDBSubnetGroupsInput) (*DescribeDBSubnetGroupsOutput, error) { req, out := c.DescribeDBSubnetGroupsRequest(input) err := req.Send() @@ -2729,11 +3467,21 @@ func (c *RDS) DescribeEngineDefaultClusterParametersRequest(input *DescribeEngin return } +// DescribeEngineDefaultClusterParameters API operation for Amazon Relational Database Service. +// // Returns the default engine and system parameter information for the cluster // database engine. // // 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. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Relational Database Service's +// API operation, DescribeEngineDefaultClusterParameters for more information, and other errors +// that the API operation could return. func (c *RDS) DescribeEngineDefaultClusterParameters(input *DescribeEngineDefaultClusterParametersInput) (*DescribeEngineDefaultClusterParametersOutput, error) { req, out := c.DescribeEngineDefaultClusterParametersRequest(input) err := req.Send() @@ -2787,8 +3535,18 @@ func (c *RDS) DescribeEngineDefaultParametersRequest(input *DescribeEngineDefaul return } +// DescribeEngineDefaultParameters API operation for Amazon Relational Database Service. +// // Returns the default engine and system parameter information for the specified // database engine. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Relational Database Service's +// API operation, DescribeEngineDefaultParameters for more information, and other errors +// that the API operation could return. func (c *RDS) DescribeEngineDefaultParameters(input *DescribeEngineDefaultParametersInput) (*DescribeEngineDefaultParametersOutput, error) { req, out := c.DescribeEngineDefaultParametersRequest(input) err := req.Send() @@ -2861,10 +3619,20 @@ func (c *RDS) DescribeEventCategoriesRequest(input *DescribeEventCategoriesInput return } +// DescribeEventCategories API operation for Amazon Relational Database Service. +// // Displays a list of categories for all event source types, or, if specified, // for a specified source type. You can see a list of the event categories and // source types in the Events (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Events.html) // topic in the Amazon RDS User Guide. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Relational Database Service's +// API operation, DescribeEventCategories for more information, and other errors +// that the API operation could return. func (c *RDS) DescribeEventCategories(input *DescribeEventCategoriesInput) (*DescribeEventCategoriesOutput, error) { req, out := c.DescribeEventCategoriesRequest(input) err := req.Send() @@ -2918,11 +3686,25 @@ func (c *RDS) DescribeEventSubscriptionsRequest(input *DescribeEventSubscription return } +// DescribeEventSubscriptions API operation for Amazon Relational Database Service. +// // Lists all the subscription descriptions for a customer account. The description // for a subscription includes SubscriptionName, SNSTopicARN, CustomerID, SourceType, // SourceID, CreationTime, and Status. // // If you specify a SubscriptionName, lists the description for that subscription. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Relational Database Service's +// API operation, DescribeEventSubscriptions for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// SubscriptionNotFoundFault func (c *RDS) DescribeEventSubscriptions(input *DescribeEventSubscriptionsInput) (*DescribeEventSubscriptionsOutput, error) { req, out := c.DescribeEventSubscriptionsRequest(input) err := req.Send() @@ -3001,11 +3783,21 @@ func (c *RDS) DescribeEventsRequest(input *DescribeEventsInput) (req *request.Re return } +// DescribeEvents API operation for Amazon Relational Database Service. +// // Returns events related to DB instances, DB security groups, DB snapshots, // and DB parameter groups for the past 14 days. Events specific to a particular // DB instance, DB security group, database snapshot, or DB parameter group // can be obtained by providing the name as a parameter. By default, the past // hour of events are returned. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Relational Database Service's +// API operation, DescribeEvents for more information, and other errors +// that the API operation could return. func (c *RDS) DescribeEvents(input *DescribeEventsInput) (*DescribeEventsOutput, error) { req, out := c.DescribeEventsRequest(input) err := req.Send() @@ -3084,7 +3876,17 @@ func (c *RDS) DescribeOptionGroupOptionsRequest(input *DescribeOptionGroupOption return } +// DescribeOptionGroupOptions API operation for Amazon Relational Database Service. +// // Describes all available options. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Relational Database Service's +// API operation, DescribeOptionGroupOptions for more information, and other errors +// that the API operation could return. func (c *RDS) DescribeOptionGroupOptions(input *DescribeOptionGroupOptionsInput) (*DescribeOptionGroupOptionsOutput, error) { req, out := c.DescribeOptionGroupOptionsRequest(input) err := req.Send() @@ -3163,7 +3965,21 @@ func (c *RDS) DescribeOptionGroupsRequest(input *DescribeOptionGroupsInput) (req return } +// DescribeOptionGroups API operation for Amazon Relational Database Service. +// // Describes the available option groups. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Relational Database Service's +// API operation, DescribeOptionGroups for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// OptionGroupNotFoundFault func (c *RDS) DescribeOptionGroups(input *DescribeOptionGroupsInput) (*DescribeOptionGroupsOutput, error) { req, out := c.DescribeOptionGroupsRequest(input) err := req.Send() @@ -3242,7 +4058,17 @@ func (c *RDS) DescribeOrderableDBInstanceOptionsRequest(input *DescribeOrderable return } +// DescribeOrderableDBInstanceOptions API operation for Amazon Relational Database Service. +// // Returns a list of orderable DB instance options for the specified engine. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Relational Database Service's +// API operation, DescribeOrderableDBInstanceOptions for more information, and other errors +// that the API operation could return. func (c *RDS) DescribeOrderableDBInstanceOptions(input *DescribeOrderableDBInstanceOptionsInput) (*DescribeOrderableDBInstanceOptionsOutput, error) { req, out := c.DescribeOrderableDBInstanceOptionsRequest(input) err := req.Send() @@ -3315,8 +4141,22 @@ func (c *RDS) DescribePendingMaintenanceActionsRequest(input *DescribePendingMai return } +// DescribePendingMaintenanceActions API operation for Amazon Relational Database Service. +// // Returns a list of resources (for example, DB instances) that have at least // one pending maintenance action. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Relational Database Service's +// API operation, DescribePendingMaintenanceActions for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ResourceNotFoundFault func (c *RDS) DescribePendingMaintenanceActions(input *DescribePendingMaintenanceActionsInput) (*DescribePendingMaintenanceActionsOutput, error) { req, out := c.DescribePendingMaintenanceActionsRequest(input) err := req.Send() @@ -3370,8 +4210,22 @@ func (c *RDS) DescribeReservedDBInstancesRequest(input *DescribeReservedDBInstan return } +// DescribeReservedDBInstances API operation for Amazon Relational Database Service. +// // Returns information about reserved DB instances for this account, or about // a specified reserved DB instance. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Relational Database Service's +// API operation, DescribeReservedDBInstances for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ReservedDBInstanceNotFoundFault func (c *RDS) DescribeReservedDBInstances(input *DescribeReservedDBInstancesInput) (*DescribeReservedDBInstancesOutput, error) { req, out := c.DescribeReservedDBInstancesRequest(input) err := req.Send() @@ -3450,7 +4304,21 @@ func (c *RDS) DescribeReservedDBInstancesOfferingsRequest(input *DescribeReserve return } +// DescribeReservedDBInstancesOfferings API operation for Amazon Relational Database Service. +// // Lists available reserved DB instance offerings. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Relational Database Service's +// API operation, DescribeReservedDBInstancesOfferings for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ReservedDBInstancesOfferingNotFoundFault func (c *RDS) DescribeReservedDBInstancesOfferings(input *DescribeReservedDBInstancesOfferingsInput) (*DescribeReservedDBInstancesOfferingsOutput, error) { req, out := c.DescribeReservedDBInstancesOfferingsRequest(input) err := req.Send() @@ -3523,9 +4391,19 @@ func (c *RDS) DescribeSourceRegionsRequest(input *DescribeSourceRegionsInput) (r return } +// DescribeSourceRegions API operation for Amazon Relational Database Service. +// // Returns a list of the source AWS regions where the current AWS region can // create a Read Replica or copy a DB snapshot from. This API action supports // pagination. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Relational Database Service's +// API operation, DescribeSourceRegions for more information, and other errors +// that the API operation could return. func (c *RDS) DescribeSourceRegions(input *DescribeSourceRegionsInput) (*DescribeSourceRegionsOutput, error) { req, out := c.DescribeSourceRegionsRequest(input) err := req.Send() @@ -3579,7 +4457,22 @@ func (c *RDS) DownloadDBLogFilePortionRequest(input *DownloadDBLogFilePortionInp return } +// DownloadDBLogFilePortion API operation for Amazon Relational Database Service. +// // Downloads all or a portion of the specified log file, up to 1 MB in size. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Relational Database Service's +// API operation, DownloadDBLogFilePortion for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// DBInstanceNotFoundFault +// DBLogFileNotFoundFault func (c *RDS) DownloadDBLogFilePortion(input *DownloadDBLogFilePortionInput) (*DownloadDBLogFilePortionOutput, error) { req, out := c.DownloadDBLogFilePortionRequest(input) err := req.Send() @@ -3652,6 +4545,8 @@ func (c *RDS) FailoverDBClusterRequest(input *FailoverDBClusterInput) (req *requ return } +// FailoverDBCluster API operation for Amazon Relational Database Service. +// // Forces a failover for a DB cluster. // // A failover for a DB cluster promotes one of the read-only instances in the @@ -3667,6 +4562,20 @@ func (c *RDS) FailoverDBClusterRequest(input *FailoverDBClusterInput) (req *requ // // 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. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Relational Database Service's +// API operation, FailoverDBCluster for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// DBClusterNotFoundFault +// InvalidDBClusterStateFault +// InvalidDBInstanceStateFault func (c *RDS) FailoverDBCluster(input *FailoverDBClusterInput) (*FailoverDBClusterOutput, error) { req, out := c.FailoverDBClusterRequest(input) err := req.Send() @@ -3714,10 +4623,25 @@ func (c *RDS) ListTagsForResourceRequest(input *ListTagsForResourceInput) (req * return } +// ListTagsForResource API operation for Amazon Relational Database Service. +// // Lists all tags on an Amazon RDS resource. // // For an overview on tagging an Amazon RDS resource, see Tagging Amazon RDS // Resources (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Overview.Tagging.html). +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Relational Database Service's +// API operation, ListTagsForResource for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// DBInstanceNotFoundFault +// DBSnapshotNotFoundFault func (c *RDS) ListTagsForResource(input *ListTagsForResourceInput) (*ListTagsForResourceOutput, error) { req, out := c.ListTagsForResourceRequest(input) err := req.Send() @@ -3765,11 +4689,35 @@ func (c *RDS) ModifyDBClusterRequest(input *ModifyDBClusterInput) (req *request. return } +// ModifyDBCluster API operation for Amazon Relational Database Service. +// // Modify a setting for an Amazon Aurora DB cluster. You can change one or more // database configuration parameters by specifying these parameters and the // new values in the request. 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. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Relational Database Service's +// API operation, ModifyDBCluster for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// DBClusterNotFoundFault +// InvalidDBClusterStateFault +// StorageQuotaExceededFault +// DBSubnetGroupNotFoundFault +// InvalidVPCNetworkStateFault +// InvalidDBSubnetGroupStateFault +// InvalidSubnet +// DBClusterParameterGroupNotFoundFault +// InvalidDBSecurityGroupStateFault +// InvalidDBInstanceStateFault +// DBClusterAlreadyExistsFault func (c *RDS) ModifyDBCluster(input *ModifyDBClusterInput) (*ModifyDBClusterOutput, error) { req, out := c.ModifyDBClusterRequest(input) err := req.Send() @@ -3817,6 +4765,8 @@ func (c *RDS) ModifyDBClusterParameterGroupRequest(input *ModifyDBClusterParamet return } +// ModifyDBClusterParameterGroup API operation for Amazon Relational Database Service. +// // Modifies the parameters of a DB cluster parameter group. To modify more than // one parameter, submit a list of the following: ParameterName, ParameterValue, // and ApplyMethod. A maximum of 20 parameters can be modified in a single request. @@ -3839,6 +4789,19 @@ func (c *RDS) ModifyDBClusterParameterGroupRequest(input *ModifyDBClusterParamet // (https://console.aws.amazon.com/rds/) or the DescribeDBClusterParameters // command to verify that your DB cluster parameter group has been created or // modified. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Relational Database Service's +// API operation, ModifyDBClusterParameterGroup for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// DBParameterGroupNotFoundFault +// InvalidDBParameterGroupStateFault func (c *RDS) ModifyDBClusterParameterGroup(input *ModifyDBClusterParameterGroupInput) (*DBClusterParameterGroupNameMessage, error) { req, out := c.ModifyDBClusterParameterGroupRequest(input) err := req.Send() @@ -3886,6 +4849,8 @@ func (c *RDS) ModifyDBClusterSnapshotAttributeRequest(input *ModifyDBClusterSnap return } +// ModifyDBClusterSnapshotAttribute API operation for Amazon Relational Database Service. +// // Adds an attribute and values to, or removes an attribute and values from, // a manual DB cluster snapshot. // @@ -3902,6 +4867,20 @@ func (c *RDS) ModifyDBClusterSnapshotAttributeRequest(input *ModifyDBClusterSnap // the DescribeDBClusterSnapshotAttributes API action. // // If a manual DB cluster snapshot is encrypted, it cannot be shared. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Relational Database Service's +// API operation, ModifyDBClusterSnapshotAttribute for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// DBClusterSnapshotNotFoundFault +// InvalidDBClusterSnapshotStateFault +// SharedSnapshotQuotaExceededFault func (c *RDS) ModifyDBClusterSnapshotAttribute(input *ModifyDBClusterSnapshotAttributeInput) (*ModifyDBClusterSnapshotAttributeOutput, error) { req, out := c.ModifyDBClusterSnapshotAttributeRequest(input) err := req.Send() @@ -3949,9 +4928,38 @@ func (c *RDS) ModifyDBInstanceRequest(input *ModifyDBInstanceInput) (req *reques return } +// ModifyDBInstance API operation for Amazon Relational Database Service. +// // Modifies settings for a DB instance. You can change one or more database // configuration parameters by specifying these parameters and the new values // in the request. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Relational Database Service's +// API operation, ModifyDBInstance for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidDBInstanceStateFault +// InvalidDBSecurityGroupStateFault +// DBInstanceAlreadyExistsFault +// DBInstanceNotFoundFault +// DBSecurityGroupNotFoundFault +// DBParameterGroupNotFoundFault +// InsufficientDBInstanceCapacityFault +// StorageQuotaExceededFault +// InvalidVPCNetworkStateFault +// ProvisionedIopsNotAvailableInAZFault +// OptionGroupNotFoundFault +// DBUpgradeDependencyFailureFault +// StorageTypeNotSupportedFault +// AuthorizationNotFoundFault +// CertificateNotFoundFault +// DomainNotFoundFault func (c *RDS) ModifyDBInstance(input *ModifyDBInstanceInput) (*ModifyDBInstanceOutput, error) { req, out := c.ModifyDBInstanceRequest(input) err := req.Send() @@ -3999,6 +5007,8 @@ func (c *RDS) ModifyDBParameterGroupRequest(input *ModifyDBParameterGroupInput) return } +// ModifyDBParameterGroup API operation for Amazon Relational Database Service. +// // Modifies the parameters of a DB parameter group. To modify more than one // parameter, submit a list of the following: ParameterName, ParameterValue, // and ApplyMethod. A maximum of 20 parameters can be modified in a single request. @@ -4017,6 +5027,19 @@ func (c *RDS) ModifyDBParameterGroupRequest(input *ModifyDBParameterGroupInput) // You can use the Parameter Groups option of the Amazon RDS console (https://console.aws.amazon.com/rds/) // or the DescribeDBParameters command to verify that your DB parameter group // has been created or modified. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Relational Database Service's +// API operation, ModifyDBParameterGroup for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// DBParameterGroupNotFoundFault +// InvalidDBParameterGroupStateFault func (c *RDS) ModifyDBParameterGroup(input *ModifyDBParameterGroupInput) (*DBParameterGroupNameMessage, error) { req, out := c.ModifyDBParameterGroupRequest(input) err := req.Send() @@ -4064,6 +5087,8 @@ func (c *RDS) ModifyDBSnapshotAttributeRequest(input *ModifyDBSnapshotAttributeI return } +// ModifyDBSnapshotAttribute API operation for Amazon Relational Database Service. +// // Adds an attribute and values to, or removes an attribute and values from, // a manual DB snapshot. // @@ -4080,6 +5105,20 @@ func (c *RDS) ModifyDBSnapshotAttributeRequest(input *ModifyDBSnapshotAttributeI // API action. // // If the manual DB snapshot is encrypted, it cannot be shared. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Relational Database Service's +// API operation, ModifyDBSnapshotAttribute for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// DBSnapshotNotFoundFault +// InvalidDBSnapshotStateFault +// SharedSnapshotQuotaExceededFault func (c *RDS) ModifyDBSnapshotAttribute(input *ModifyDBSnapshotAttributeInput) (*ModifyDBSnapshotAttributeOutput, error) { req, out := c.ModifyDBSnapshotAttributeRequest(input) err := req.Send() @@ -4127,8 +5166,26 @@ func (c *RDS) ModifyDBSubnetGroupRequest(input *ModifyDBSubnetGroupInput) (req * return } +// ModifyDBSubnetGroup API operation for Amazon Relational Database Service. +// // Modifies an existing DB subnet group. DB subnet groups must contain at least // one subnet in at least two AZs in the region. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Relational Database Service's +// API operation, ModifyDBSubnetGroup for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// DBSubnetGroupNotFoundFault +// DBSubnetQuotaExceededFault +// SubnetAlreadyInUse +// DBSubnetGroupDoesNotCoverEnoughAZs +// InvalidSubnet func (c *RDS) ModifyDBSubnetGroup(input *ModifyDBSubnetGroupInput) (*ModifyDBSubnetGroupOutput, error) { req, out := c.ModifyDBSubnetGroupRequest(input) err := req.Send() @@ -4176,6 +5233,8 @@ func (c *RDS) ModifyEventSubscriptionRequest(input *ModifyEventSubscriptionInput return } +// ModifyEventSubscription API operation for Amazon Relational Database Service. +// // Modifies an existing RDS event notification subscription. Note that you cannot // modify the source identifiers using this call; to change source identifiers // for a subscription, use the AddSourceIdentifierToSubscription and RemoveSourceIdentifierFromSubscription @@ -4185,6 +5244,23 @@ func (c *RDS) ModifyEventSubscriptionRequest(input *ModifyEventSubscriptionInput // Events (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Events.html) // topic in the Amazon RDS User Guide or by using the DescribeEventCategories // action. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Relational Database Service's +// API operation, ModifyEventSubscription for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// EventSubscriptionQuotaExceededFault +// SubscriptionNotFoundFault +// SNSInvalidTopicFault +// SNSNoAuthorizationFault +// SNSTopicArnNotFoundFault +// SubscriptionCategoryNotFoundFault func (c *RDS) ModifyEventSubscription(input *ModifyEventSubscriptionInput) (*ModifyEventSubscriptionOutput, error) { req, out := c.ModifyEventSubscriptionRequest(input) err := req.Send() @@ -4232,7 +5308,22 @@ func (c *RDS) ModifyOptionGroupRequest(input *ModifyOptionGroupInput) (req *requ return } +// ModifyOptionGroup API operation for Amazon Relational Database Service. +// // Modifies an existing option group. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Relational Database Service's +// API operation, ModifyOptionGroup for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidOptionGroupStateFault +// OptionGroupNotFoundFault func (c *RDS) ModifyOptionGroup(input *ModifyOptionGroupInput) (*ModifyOptionGroupOutput, error) { req, out := c.ModifyOptionGroupRequest(input) err := req.Send() @@ -4280,12 +5371,27 @@ func (c *RDS) PromoteReadReplicaRequest(input *PromoteReadReplicaInput) (req *re return } +// PromoteReadReplica API operation for Amazon Relational Database Service. +// // Promotes a Read Replica DB instance to a standalone DB instance. // // We recommend that you enable automated backups on your Read Replica before // promoting the Read Replica. This ensures that no backup is taken during the // promotion process. Once the instance is promoted to a primary instance, backups // are taken based on your backup settings. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Relational Database Service's +// API operation, PromoteReadReplica for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidDBInstanceStateFault +// DBInstanceNotFoundFault func (c *RDS) PromoteReadReplica(input *PromoteReadReplicaInput) (*PromoteReadReplicaOutput, error) { req, out := c.PromoteReadReplicaRequest(input) err := req.Send() @@ -4333,7 +5439,22 @@ func (c *RDS) PromoteReadReplicaDBClusterRequest(input *PromoteReadReplicaDBClus return } +// PromoteReadReplicaDBCluster API operation for Amazon Relational Database Service. +// // Promotes a Read Replica DB cluster to a standalone DB cluster. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Relational Database Service's +// API operation, PromoteReadReplicaDBCluster for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// DBClusterNotFoundFault +// InvalidDBClusterStateFault func (c *RDS) PromoteReadReplicaDBCluster(input *PromoteReadReplicaDBClusterInput) (*PromoteReadReplicaDBClusterOutput, error) { req, out := c.PromoteReadReplicaDBClusterRequest(input) err := req.Send() @@ -4381,7 +5502,23 @@ func (c *RDS) PurchaseReservedDBInstancesOfferingRequest(input *PurchaseReserved return } +// PurchaseReservedDBInstancesOffering API operation for Amazon Relational Database Service. +// // Purchases a reserved DB instance offering. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Relational Database Service's +// API operation, PurchaseReservedDBInstancesOffering for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ReservedDBInstancesOfferingNotFoundFault +// ReservedDBInstanceAlreadyExistsFault +// ReservedDBInstanceQuotaExceededFault func (c *RDS) PurchaseReservedDBInstancesOffering(input *PurchaseReservedDBInstancesOfferingInput) (*PurchaseReservedDBInstancesOfferingOutput, error) { req, out := c.PurchaseReservedDBInstancesOfferingRequest(input) err := req.Send() @@ -4429,6 +5566,8 @@ func (c *RDS) RebootDBInstanceRequest(input *RebootDBInstanceInput) (req *reques return } +// RebootDBInstance API operation for Amazon Relational Database Service. +// // Rebooting a DB instance restarts the database engine service. A reboot also // applies to the DB instance any modifications to the associated DB parameter // group that were pending. Rebooting a DB instance results in a momentary outage @@ -4446,6 +5585,19 @@ func (c *RDS) RebootDBInstanceRequest(input *RebootDBInstanceInput) (req *reques // crash recovery process. To improve the reboot time, we recommend that you // reduce database activities as much as possible during the reboot process // to reduce rollback activity for in-transit transactions. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Relational Database Service's +// API operation, RebootDBInstance for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidDBInstanceStateFault +// DBInstanceNotFoundFault func (c *RDS) RebootDBInstance(input *RebootDBInstanceInput) (*RebootDBInstanceOutput, error) { req, out := c.RebootDBInstanceRequest(input) err := req.Send() @@ -4493,7 +5645,22 @@ func (c *RDS) RemoveSourceIdentifierFromSubscriptionRequest(input *RemoveSourceI return } +// RemoveSourceIdentifierFromSubscription API operation for Amazon Relational Database Service. +// // Removes a source identifier from an existing RDS event notification subscription. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Relational Database Service's +// API operation, RemoveSourceIdentifierFromSubscription for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// SubscriptionNotFoundFault +// SourceNotFoundFault func (c *RDS) RemoveSourceIdentifierFromSubscription(input *RemoveSourceIdentifierFromSubscriptionInput) (*RemoveSourceIdentifierFromSubscriptionOutput, error) { req, out := c.RemoveSourceIdentifierFromSubscriptionRequest(input) err := req.Send() @@ -4543,10 +5710,25 @@ func (c *RDS) RemoveTagsFromResourceRequest(input *RemoveTagsFromResourceInput) return } +// RemoveTagsFromResource API operation for Amazon Relational Database Service. +// // Removes metadata tags from an Amazon RDS resource. // // For an overview on tagging an Amazon RDS resource, see Tagging Amazon RDS // Resources (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Overview.Tagging.html). +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Relational Database Service's +// API operation, RemoveTagsFromResource for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// DBInstanceNotFoundFault +// DBSnapshotNotFoundFault func (c *RDS) RemoveTagsFromResource(input *RemoveTagsFromResourceInput) (*RemoveTagsFromResourceOutput, error) { req, out := c.RemoveTagsFromResourceRequest(input) err := req.Send() @@ -4594,6 +5776,8 @@ func (c *RDS) ResetDBClusterParameterGroupRequest(input *ResetDBClusterParameter return } +// ResetDBClusterParameterGroup API operation for Amazon Relational Database Service. +// // Modifies the parameters of a DB cluster parameter group to the default value. // To reset specific parameters submit a list of the following: ParameterName // and ApplyMethod. To reset the entire DB cluster parameter group, specify @@ -4607,6 +5791,19 @@ func (c *RDS) ResetDBClusterParameterGroupRequest(input *ResetDBClusterParameter // // 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. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Relational Database Service's +// API operation, ResetDBClusterParameterGroup for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidDBParameterGroupStateFault +// DBParameterGroupNotFoundFault func (c *RDS) ResetDBClusterParameterGroup(input *ResetDBClusterParameterGroupInput) (*DBClusterParameterGroupNameMessage, error) { req, out := c.ResetDBClusterParameterGroupRequest(input) err := req.Send() @@ -4654,6 +5851,8 @@ func (c *RDS) ResetDBParameterGroupRequest(input *ResetDBParameterGroupInput) (r return } +// ResetDBParameterGroup API operation for Amazon Relational Database Service. +// // Modifies the parameters of a DB parameter group to the engine/system default // value. To reset specific parameters submit a list of the following: ParameterName // and ApplyMethod. To reset the entire DB parameter group, specify the DBParameterGroup @@ -4661,6 +5860,19 @@ func (c *RDS) ResetDBParameterGroupRequest(input *ResetDBParameterGroupInput) (r // dynamic parameters are updated immediately and static parameters are set // to pending-reboot to take effect on the next DB instance restart or RebootDBInstance // request. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Relational Database Service's +// API operation, ResetDBParameterGroup for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidDBParameterGroupStateFault +// DBParameterGroupNotFoundFault func (c *RDS) ResetDBParameterGroup(input *ResetDBParameterGroupInput) (*DBParameterGroupNameMessage, error) { req, out := c.ResetDBParameterGroupRequest(input) err := req.Send() @@ -4708,10 +5920,36 @@ func (c *RDS) RestoreDBClusterFromS3Request(input *RestoreDBClusterFromS3Input) return } +// RestoreDBClusterFromS3 API operation for Amazon Relational Database Service. +// // Creates an Amazon Aurora DB cluster from data stored in an Amazon S3 bucket. // Amazon RDS must be authorized to access the Amazon S3 bucket and the data // must be created using the Percona XtraBackup utility as described in Migrating // Data from MySQL by Using an Amazon S3 Bucket (AmazonRDS/latest/UserGuide/Aurora.Migrate.MySQL.html#Aurora.Migrate.MySQL.S3). +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Relational Database Service's +// API operation, RestoreDBClusterFromS3 for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// DBClusterAlreadyExistsFault +// DBClusterQuotaExceededFault +// StorageQuotaExceededFault +// DBSubnetGroupNotFoundFault +// InvalidVPCNetworkStateFault +// InvalidDBClusterStateFault +// InvalidDBSubnetGroupStateFault +// InvalidSubnet +// InvalidS3BucketFault +// DBClusterParameterGroupNotFoundFault +// KMSKeyNotAccessibleFault +// DBClusterNotFoundFault +// InsufficientStorageClusterCapacityFault func (c *RDS) RestoreDBClusterFromS3(input *RestoreDBClusterFromS3Input) (*RestoreDBClusterFromS3Output, error) { req, out := c.RestoreDBClusterFromS3Request(input) err := req.Send() @@ -4759,6 +5997,8 @@ func (c *RDS) RestoreDBClusterFromSnapshotRequest(input *RestoreDBClusterFromSna return } +// RestoreDBClusterFromSnapshot API operation for Amazon Relational Database Service. +// // Creates a new DB cluster from a DB cluster snapshot. The target DB cluster // is created from the source DB cluster restore point with the same configuration // as the original source DB cluster, except that the new DB cluster is created @@ -4766,6 +6006,34 @@ func (c *RDS) RestoreDBClusterFromSnapshotRequest(input *RestoreDBClusterFromSna // // 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. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Relational Database Service's +// API operation, RestoreDBClusterFromSnapshot for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// DBClusterAlreadyExistsFault +// DBClusterQuotaExceededFault +// StorageQuotaExceededFault +// DBSubnetGroupNotFoundFault +// DBSnapshotNotFoundFault +// DBClusterSnapshotNotFoundFault +// InsufficientDBClusterCapacityFault +// InsufficientStorageClusterCapacityFault +// InvalidDBSnapshotStateFault +// InvalidDBClusterSnapshotStateFault +// StorageQuotaExceededFault +// InvalidVPCNetworkStateFault +// InvalidRestoreFault +// DBSubnetGroupNotFoundFault +// InvalidSubnet +// OptionGroupNotFoundFault +// KMSKeyNotAccessibleFault func (c *RDS) RestoreDBClusterFromSnapshot(input *RestoreDBClusterFromSnapshotInput) (*RestoreDBClusterFromSnapshotOutput, error) { req, out := c.RestoreDBClusterFromSnapshotRequest(input) err := req.Send() @@ -4813,6 +6081,8 @@ func (c *RDS) RestoreDBClusterToPointInTimeRequest(input *RestoreDBClusterToPoin return } +// RestoreDBClusterToPointInTime API operation for Amazon Relational Database Service. +// // Restores a DB cluster to an arbitrary point in time. Users can restore to // any point in time before LatestRestorableTime for up to BackupRetentionPeriod // days. The target DB cluster is created from the source DB cluster with the @@ -4821,6 +6091,34 @@ func (c *RDS) RestoreDBClusterToPointInTimeRequest(input *RestoreDBClusterToPoin // // 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. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Relational Database Service's +// API operation, RestoreDBClusterToPointInTime for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// DBClusterAlreadyExistsFault +// DBClusterQuotaExceededFault +// StorageQuotaExceededFault +// DBSubnetGroupNotFoundFault +// DBClusterNotFoundFault +// DBClusterSnapshotNotFoundFault +// InsufficientDBClusterCapacityFault +// InsufficientStorageClusterCapacityFault +// InvalidDBSnapshotStateFault +// InvalidDBClusterSnapshotStateFault +// StorageQuotaExceededFault +// InvalidVPCNetworkStateFault +// InvalidRestoreFault +// DBSubnetGroupNotFoundFault +// InvalidSubnet +// OptionGroupNotFoundFault +// KMSKeyNotAccessibleFault func (c *RDS) RestoreDBClusterToPointInTime(input *RestoreDBClusterToPointInTimeInput) (*RestoreDBClusterToPointInTimeOutput, error) { req, out := c.RestoreDBClusterToPointInTimeRequest(input) err := req.Send() @@ -4868,6 +6166,8 @@ func (c *RDS) RestoreDBInstanceFromDBSnapshotRequest(input *RestoreDBInstanceFro return } +// RestoreDBInstanceFromDBSnapshot API operation for Amazon Relational Database Service. +// // Creates a new DB instance from a DB snapshot. The target database is created // from the source database restore point with the most of original configuration // with the default security group and the default DB parameter group. By default, @@ -4887,6 +6187,35 @@ func (c *RDS) RestoreDBInstanceFromDBSnapshotRequest(input *RestoreDBInstanceFro // // If you are restoring from a shared manual DB snapshot, the DBSnapshotIdentifier // must be the ARN of the shared DB snapshot. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Relational Database Service's +// API operation, RestoreDBInstanceFromDBSnapshot for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// DBInstanceAlreadyExistsFault +// DBSnapshotNotFoundFault +// InstanceQuotaExceededFault +// InsufficientDBInstanceCapacityFault +// InvalidDBSnapshotStateFault +// StorageQuotaExceededFault +// InvalidVPCNetworkStateFault +// InvalidRestoreFault +// DBSubnetGroupNotFoundFault +// DBSubnetGroupDoesNotCoverEnoughAZs +// InvalidSubnet +// ProvisionedIopsNotAvailableInAZFault +// OptionGroupNotFoundFault +// StorageTypeNotSupportedFault +// AuthorizationNotFoundFault +// KMSKeyNotAccessibleFault +// DBSecurityGroupNotFoundFault +// DomainNotFoundFault func (c *RDS) RestoreDBInstanceFromDBSnapshot(input *RestoreDBInstanceFromDBSnapshotInput) (*RestoreDBInstanceFromDBSnapshotOutput, error) { req, out := c.RestoreDBInstanceFromDBSnapshotRequest(input) err := req.Send() @@ -4934,6 +6263,8 @@ func (c *RDS) RestoreDBInstanceToPointInTimeRequest(input *RestoreDBInstanceToPo return } +// RestoreDBInstanceToPointInTime API operation for Amazon Relational Database Service. +// // Restores a DB instance to an arbitrary point in time. You can restore to // any point in time before the time identified by the LatestRestorableTime // property. You can restore to a point up to the number of days specified by @@ -4946,6 +6277,36 @@ func (c *RDS) RestoreDBInstanceToPointInTimeRequest(input *RestoreDBInstanceToPo // instance is a SQL Server instance that has an option group that is associated // with mirroring; in this case, the instance becomes a mirrored deployment // and not a single-AZ deployment. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Relational Database Service's +// API operation, RestoreDBInstanceToPointInTime for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// DBInstanceAlreadyExistsFault +// DBInstanceNotFoundFault +// InstanceQuotaExceededFault +// InsufficientDBInstanceCapacityFault +// InvalidDBInstanceStateFault +// PointInTimeRestoreNotEnabledFault +// StorageQuotaExceededFault +// InvalidVPCNetworkStateFault +// InvalidRestoreFault +// DBSubnetGroupNotFoundFault +// DBSubnetGroupDoesNotCoverEnoughAZs +// InvalidSubnet +// ProvisionedIopsNotAvailableInAZFault +// OptionGroupNotFoundFault +// StorageTypeNotSupportedFault +// AuthorizationNotFoundFault +// KMSKeyNotAccessibleFault +// DBSecurityGroupNotFoundFault +// DomainNotFoundFault func (c *RDS) RestoreDBInstanceToPointInTime(input *RestoreDBInstanceToPointInTimeInput) (*RestoreDBInstanceToPointInTimeOutput, error) { req, out := c.RestoreDBInstanceToPointInTimeRequest(input) err := req.Send() @@ -4993,10 +6354,26 @@ func (c *RDS) RevokeDBSecurityGroupIngressRequest(input *RevokeDBSecurityGroupIn return } +// RevokeDBSecurityGroupIngress API operation for Amazon Relational Database Service. +// // Revokes ingress from a DBSecurityGroup for previously authorized IP ranges // or EC2 or VPC Security Groups. Required parameters for this API are one of // CIDRIP, EC2SecurityGroupId for VPC, or (EC2SecurityGroupOwnerId and either // EC2SecurityGroupName or EC2SecurityGroupId). +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Relational Database Service's +// API operation, RevokeDBSecurityGroupIngress for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// DBSecurityGroupNotFoundFault +// AuthorizationNotFoundFault +// InvalidDBSecurityGroupStateFault func (c *RDS) RevokeDBSecurityGroupIngress(input *RevokeDBSecurityGroupIngressInput) (*RevokeDBSecurityGroupIngressOutput, error) { req, out := c.RevokeDBSecurityGroupIngressRequest(input) err := req.Send() diff --git a/service/redshift/api.go b/service/redshift/api.go index ac1cf16a6db..221b46bc308 100644 --- a/service/redshift/api.go +++ b/service/redshift/api.go @@ -53,6 +53,8 @@ func (c *Redshift) AuthorizeClusterSecurityGroupIngressRequest(input *AuthorizeC return } +// AuthorizeClusterSecurityGroupIngress API operation for Amazon Redshift. +// // Adds an inbound (ingress) rule to an Amazon Redshift security group. Depending // on whether the application accessing your cluster is running on the Internet // or an Amazon EC2 instance, you can authorize inbound access to either a Classless @@ -73,6 +75,21 @@ func (c *Redshift) AuthorizeClusterSecurityGroupIngressRequest(input *AuthorizeC // to the cluster. For information about managing security groups, go to Working // with Security Groups (http://docs.aws.amazon.com/redshift/latest/mgmt/working-with-security-groups.html) // in the Amazon Redshift Cluster Management Guide. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Redshift's +// API operation, AuthorizeClusterSecurityGroupIngress for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ClusterSecurityGroupNotFoundFault +// InvalidClusterSecurityGroupStateFault +// AuthorizationAlreadyExistsFault +// AuthorizationQuotaExceededFault func (c *Redshift) AuthorizeClusterSecurityGroupIngress(input *AuthorizeClusterSecurityGroupIngressInput) (*AuthorizeClusterSecurityGroupIngressOutput, error) { req, out := c.AuthorizeClusterSecurityGroupIngressRequest(input) err := req.Send() @@ -120,11 +137,30 @@ func (c *Redshift) AuthorizeSnapshotAccessRequest(input *AuthorizeSnapshotAccess return } +// AuthorizeSnapshotAccess API operation for Amazon Redshift. +// // Authorizes the specified AWS customer account to restore the specified snapshot. // // For more information about working with snapshots, go to Amazon Redshift // Snapshots (http://docs.aws.amazon.com/redshift/latest/mgmt/working-with-snapshots.html) // in the Amazon Redshift Cluster Management Guide. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Redshift's +// API operation, AuthorizeSnapshotAccess for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ClusterSnapshotNotFoundFault +// AuthorizationAlreadyExistsFault +// AuthorizationQuotaExceededFault +// DependentServiceRequestThrottlingFault +// InvalidClusterSnapshotStateFault +// LimitExceededFault func (c *Redshift) AuthorizeSnapshotAccess(input *AuthorizeSnapshotAccessInput) (*AuthorizeSnapshotAccessOutput, error) { req, out := c.AuthorizeSnapshotAccessRequest(input) err := req.Send() @@ -172,6 +208,8 @@ func (c *Redshift) CopyClusterSnapshotRequest(input *CopyClusterSnapshotInput) ( return } +// CopyClusterSnapshot API operation for Amazon Redshift. +// // Copies the specified automated cluster snapshot to a new manual cluster snapshot. // The source must be an automated snapshot and it must be in the available // state. @@ -185,6 +223,21 @@ func (c *Redshift) CopyClusterSnapshotRequest(input *CopyClusterSnapshotInput) ( // For more information about working with snapshots, go to Amazon Redshift // Snapshots (http://docs.aws.amazon.com/redshift/latest/mgmt/working-with-snapshots.html) // in the Amazon Redshift Cluster Management Guide. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Redshift's +// API operation, CopyClusterSnapshot for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ClusterSnapshotAlreadyExistsFault +// ClusterSnapshotNotFoundFault +// InvalidClusterSnapshotStateFault +// ClusterSnapshotQuotaExceededFault func (c *Redshift) CopyClusterSnapshot(input *CopyClusterSnapshotInput) (*CopyClusterSnapshotOutput, error) { req, out := c.CopyClusterSnapshotRequest(input) err := req.Send() @@ -232,6 +285,8 @@ func (c *Redshift) CreateClusterRequest(input *CreateClusterInput) (req *request return } +// CreateCluster API operation for Amazon Redshift. +// // Creates a new cluster. // // To create the cluster in Virtual Private Cloud (VPC), you must provide a @@ -239,6 +294,36 @@ func (c *Redshift) CreateClusterRequest(input *CreateClusterInput) (req *request // of your VPC that Amazon Redshift uses when creating the cluster. For more // information about managing clusters, go to Amazon Redshift Clusters (http://docs.aws.amazon.com/redshift/latest/mgmt/working-with-clusters.html) // in the Amazon Redshift Cluster Management Guide. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Redshift's +// API operation, CreateCluster for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ClusterAlreadyExistsFault +// InsufficientClusterCapacityFault +// ClusterParameterGroupNotFoundFault +// ClusterSecurityGroupNotFoundFault +// ClusterQuotaExceededFault +// NumberOfNodesQuotaExceededFault +// NumberOfNodesPerClusterLimitExceededFault +// ClusterSubnetGroupNotFoundFault +// InvalidVPCNetworkStateFault +// InvalidClusterSubnetGroupStateFault +// InvalidSubnet +// UnauthorizedOperation +// HsmClientCertificateNotFoundFault +// HsmConfigurationNotFoundFault +// InvalidElasticIpFault +// TagLimitExceededFault +// InvalidTagFault +// LimitExceededFault +// DependentServiceRequestThrottlingFault func (c *Redshift) CreateCluster(input *CreateClusterInput) (*CreateClusterOutput, error) { req, out := c.CreateClusterRequest(input) err := req.Send() @@ -286,6 +371,8 @@ func (c *Redshift) CreateClusterParameterGroupRequest(input *CreateClusterParame return } +// CreateClusterParameterGroup API operation for Amazon Redshift. +// // Creates an Amazon Redshift parameter group. // // Creating parameter groups is independent of creating clusters. You can associate @@ -297,6 +384,21 @@ func (c *Redshift) CreateClusterParameterGroupRequest(input *CreateClusterParame // to the databases you create on the cluster. For more information about parameters // and parameter groups, go to Amazon Redshift Parameter Groups (http://docs.aws.amazon.com/redshift/latest/mgmt/working-with-parameter-groups.html) // in the Amazon Redshift Cluster Management Guide. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Redshift's +// API operation, CreateClusterParameterGroup for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ClusterParameterGroupQuotaExceededFault +// ClusterParameterGroupAlreadyExistsFault +// TagLimitExceededFault +// InvalidTagFault func (c *Redshift) CreateClusterParameterGroup(input *CreateClusterParameterGroupInput) (*CreateClusterParameterGroupOutput, error) { req, out := c.CreateClusterParameterGroupRequest(input) err := req.Send() @@ -344,12 +446,29 @@ func (c *Redshift) CreateClusterSecurityGroupRequest(input *CreateClusterSecurit return } +// CreateClusterSecurityGroup API operation for Amazon Redshift. +// // Creates a new Amazon Redshift security group. You use security groups to // control access to non-VPC clusters. // // For information about managing security groups, go to Amazon Redshift Cluster // Security Groups (http://docs.aws.amazon.com/redshift/latest/mgmt/working-with-security-groups.html) // in the Amazon Redshift Cluster Management Guide. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Redshift's +// API operation, CreateClusterSecurityGroup for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ClusterSecurityGroupAlreadyExistsFault +// ClusterSecurityGroupQuotaExceededFault +// TagLimitExceededFault +// InvalidTagFault func (c *Redshift) CreateClusterSecurityGroup(input *CreateClusterSecurityGroupInput) (*CreateClusterSecurityGroupOutput, error) { req, out := c.CreateClusterSecurityGroupRequest(input) err := req.Send() @@ -397,12 +516,31 @@ func (c *Redshift) CreateClusterSnapshotRequest(input *CreateClusterSnapshotInpu return } +// CreateClusterSnapshot API operation for Amazon Redshift. +// // Creates a manual snapshot of the specified cluster. The cluster must be in // the available state. // // For more information about working with snapshots, go to Amazon Redshift // Snapshots (http://docs.aws.amazon.com/redshift/latest/mgmt/working-with-snapshots.html) // in the Amazon Redshift Cluster Management Guide. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Redshift's +// API operation, CreateClusterSnapshot for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ClusterSnapshotAlreadyExistsFault +// InvalidClusterStateFault +// ClusterNotFoundFault +// ClusterSnapshotQuotaExceededFault +// TagLimitExceededFault +// InvalidTagFault func (c *Redshift) CreateClusterSnapshot(input *CreateClusterSnapshotInput) (*CreateClusterSnapshotOutput, error) { req, out := c.CreateClusterSnapshotRequest(input) err := req.Send() @@ -450,6 +588,8 @@ func (c *Redshift) CreateClusterSubnetGroupRequest(input *CreateClusterSubnetGro return } +// CreateClusterSubnetGroup API operation for Amazon Redshift. +// // Creates a new Amazon Redshift subnet group. You must provide a list of one // or more subnets in your existing Amazon Virtual Private Cloud (Amazon VPC) // when creating Amazon Redshift subnet group. @@ -457,6 +597,25 @@ func (c *Redshift) CreateClusterSubnetGroupRequest(input *CreateClusterSubnetGro // For information about subnet groups, go to Amazon Redshift Cluster Subnet // Groups (http://docs.aws.amazon.com/redshift/latest/mgmt/working-with-cluster-subnet-groups.html) // in the Amazon Redshift Cluster Management Guide. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Redshift's +// API operation, CreateClusterSubnetGroup for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ClusterSubnetGroupAlreadyExistsFault +// ClusterSubnetGroupQuotaExceededFault +// ClusterSubnetQuotaExceededFault +// InvalidSubnet +// UnauthorizedOperation +// TagLimitExceededFault +// InvalidTagFault +// DependentServiceRequestThrottlingFault func (c *Redshift) CreateClusterSubnetGroup(input *CreateClusterSubnetGroupInput) (*CreateClusterSubnetGroupOutput, error) { req, out := c.CreateClusterSubnetGroupRequest(input) err := req.Send() @@ -504,6 +663,8 @@ func (c *Redshift) CreateEventSubscriptionRequest(input *CreateEventSubscription return } +// CreateEventSubscription API operation for Amazon Redshift. +// // Creates an Amazon Redshift event notification subscription. This action requires // an ARN (Amazon Resource Name) of an Amazon SNS topic created by either the // Amazon Redshift console, the Amazon SNS console, or the Amazon SNS API. To @@ -526,6 +687,28 @@ func (c *Redshift) CreateEventSubscriptionRequest(input *CreateEventSubscription // the SourceType nor the SourceIdentifier, you will be notified of events generated // from all Amazon Redshift sources belonging to your AWS account. You must // specify a source type if you specify a source ID. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Redshift's +// API operation, CreateEventSubscription for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// EventSubscriptionQuotaExceededFault +// SubscriptionAlreadyExistFault +// SNSInvalidTopicFault +// SNSNoAuthorizationFault +// SNSTopicArnNotFoundFault +// SubscriptionEventIdNotFoundFault +// SubscriptionCategoryNotFoundFault +// SubscriptionSeverityNotFoundFault +// SourceNotFoundFault +// TagLimitExceededFault +// InvalidTagFault func (c *Redshift) CreateEventSubscription(input *CreateEventSubscriptionInput) (*CreateEventSubscriptionOutput, error) { req, out := c.CreateEventSubscriptionRequest(input) err := req.Send() @@ -573,6 +756,8 @@ func (c *Redshift) CreateHsmClientCertificateRequest(input *CreateHsmClientCerti return } +// CreateHsmClientCertificate API operation for Amazon Redshift. +// // Creates an HSM client certificate that an Amazon Redshift cluster will use // to connect to the client's HSM in order to store and retrieve the keys used // to encrypt the cluster databases. @@ -582,6 +767,21 @@ func (c *Redshift) CreateHsmClientCertificateRequest(input *CreateHsmClientCerti // that provides a cluster the information needed to store and use encryption // keys in the HSM. For more information, go to Hardware Security Modules (http://docs.aws.amazon.com/redshift/latest/mgmt/working-with-HSM.html) // in the Amazon Redshift Cluster Management Guide. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Redshift's +// API operation, CreateHsmClientCertificate for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// HsmClientCertificateAlreadyExistsFault +// HsmClientCertificateQuotaExceededFault +// TagLimitExceededFault +// InvalidTagFault func (c *Redshift) CreateHsmClientCertificate(input *CreateHsmClientCertificateInput) (*CreateHsmClientCertificateOutput, error) { req, out := c.CreateHsmClientCertificateRequest(input) err := req.Send() @@ -629,6 +829,8 @@ func (c *Redshift) CreateHsmConfigurationRequest(input *CreateHsmConfigurationIn return } +// CreateHsmConfiguration API operation for Amazon Redshift. +// // Creates an HSM configuration that contains the information required by an // Amazon Redshift cluster to store and use database encryption keys in a Hardware // Security Module (HSM). After creating the HSM configuration, you can specify @@ -639,6 +841,21 @@ func (c *Redshift) CreateHsmConfigurationRequest(input *CreateHsmConfigurationIn // client certificate. For more information, go to Hardware Security Modules // (http://docs.aws.amazon.com/redshift/latest/mgmt/working-with-HSM.html) in // the Amazon Redshift Cluster Management Guide. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Redshift's +// API operation, CreateHsmConfiguration for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// HsmConfigurationAlreadyExistsFault +// HsmConfigurationQuotaExceededFault +// TagLimitExceededFault +// InvalidTagFault func (c *Redshift) CreateHsmConfiguration(input *CreateHsmConfigurationInput) (*CreateHsmConfigurationOutput, error) { req, out := c.CreateHsmConfigurationRequest(input) err := req.Send() @@ -686,6 +903,8 @@ func (c *Redshift) CreateSnapshotCopyGrantRequest(input *CreateSnapshotCopyGrant return } +// CreateSnapshotCopyGrant API operation for Amazon Redshift. +// // Creates a snapshot copy grant that permits Amazon Redshift to use a customer // master key (CMK) from AWS Key Management Service (AWS KMS) to encrypt copied // snapshots in a destination region. @@ -693,6 +912,23 @@ func (c *Redshift) CreateSnapshotCopyGrantRequest(input *CreateSnapshotCopyGrant // For more information about managing snapshot copy grants, go to Amazon // Redshift Database Encryption (http://docs.aws.amazon.com/redshift/latest/mgmt/working-with-db-encryption.html) // in the Amazon Redshift Cluster Management Guide. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Redshift's +// API operation, CreateSnapshotCopyGrant for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// SnapshotCopyGrantAlreadyExistsFault +// SnapshotCopyGrantQuotaExceededFault +// LimitExceededFault +// TagLimitExceededFault +// InvalidTagFault +// DependentServiceRequestThrottlingFault func (c *Redshift) CreateSnapshotCopyGrant(input *CreateSnapshotCopyGrantInput) (*CreateSnapshotCopyGrantOutput, error) { req, out := c.CreateSnapshotCopyGrantRequest(input) err := req.Send() @@ -742,6 +978,8 @@ func (c *Redshift) CreateTagsRequest(input *CreateTagsInput) (req *request.Reque return } +// CreateTags API operation for Amazon Redshift. +// // Adds one or more tags to a specified resource. // // A resource can have up to 10 tags. If you try to create more than 10 tags @@ -749,6 +987,20 @@ func (c *Redshift) CreateTagsRequest(input *CreateTagsInput) (req *request.Reque // // If you specify a key that already exists for the resource, the value for // that key will be updated with the new value. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Redshift's +// API operation, CreateTags for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// TagLimitExceededFault +// ResourceNotFoundFault +// InvalidTagFault func (c *Redshift) CreateTags(input *CreateTagsInput) (*CreateTagsOutput, error) { req, out := c.CreateTagsRequest(input) err := req.Send() @@ -796,6 +1048,8 @@ func (c *Redshift) DeleteClusterRequest(input *DeleteClusterInput) (req *request return } +// DeleteCluster API operation for Amazon Redshift. +// // Deletes a previously provisioned cluster. A successful response from the // web service indicates that the request was received correctly. Use DescribeClusters // to monitor the status of the deletion. The delete operation cannot be canceled @@ -813,6 +1067,21 @@ func (c *Redshift) DeleteClusterRequest(input *DeleteClusterInput) (req *request // For more information about managing clusters, go to Amazon Redshift Clusters // (http://docs.aws.amazon.com/redshift/latest/mgmt/working-with-clusters.html) // in the Amazon Redshift Cluster Management Guide. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Redshift's +// API operation, DeleteCluster for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ClusterNotFoundFault +// InvalidClusterStateFault +// ClusterSnapshotAlreadyExistsFault +// ClusterSnapshotQuotaExceededFault func (c *Redshift) DeleteCluster(input *DeleteClusterInput) (*DeleteClusterOutput, error) { req, out := c.DeleteClusterRequest(input) err := req.Send() @@ -862,9 +1131,24 @@ func (c *Redshift) DeleteClusterParameterGroupRequest(input *DeleteClusterParame return } +// DeleteClusterParameterGroup API operation for Amazon Redshift. +// // Deletes a specified Amazon Redshift parameter group. // // You cannot delete a parameter group if it is associated with a cluster. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Redshift's +// API operation, DeleteClusterParameterGroup for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidClusterParameterGroupStateFault +// ClusterParameterGroupNotFoundFault func (c *Redshift) DeleteClusterParameterGroup(input *DeleteClusterParameterGroupInput) (*DeleteClusterParameterGroupOutput, error) { req, out := c.DeleteClusterParameterGroupRequest(input) err := req.Send() @@ -914,6 +1198,8 @@ func (c *Redshift) DeleteClusterSecurityGroupRequest(input *DeleteClusterSecurit return } +// DeleteClusterSecurityGroup API operation for Amazon Redshift. +// // Deletes an Amazon Redshift security group. // // You cannot delete a security group that is associated with any clusters. @@ -922,6 +1208,19 @@ func (c *Redshift) DeleteClusterSecurityGroupRequest(input *DeleteClusterSecurit // For information about managing security groups, go to Amazon Redshift // Cluster Security Groups (http://docs.aws.amazon.com/redshift/latest/mgmt/working-with-security-groups.html) // in the Amazon Redshift Cluster Management Guide. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Redshift's +// API operation, DeleteClusterSecurityGroup for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidClusterSecurityGroupStateFault +// ClusterSecurityGroupNotFoundFault func (c *Redshift) DeleteClusterSecurityGroup(input *DeleteClusterSecurityGroupInput) (*DeleteClusterSecurityGroupOutput, error) { req, out := c.DeleteClusterSecurityGroupRequest(input) err := req.Send() @@ -969,6 +1268,8 @@ func (c *Redshift) DeleteClusterSnapshotRequest(input *DeleteClusterSnapshotInpu return } +// DeleteClusterSnapshot API operation for Amazon Redshift. +// // Deletes the specified manual snapshot. The snapshot must be in the available // state, with no other users authorized to access the snapshot. // @@ -977,6 +1278,19 @@ func (c *Redshift) DeleteClusterSnapshotRequest(input *DeleteClusterSnapshotInpu // You must delete manual snapshot explicitly to avoid getting charged. If other // accounts are authorized to access the snapshot, you must revoke all of the // authorizations before you can delete the snapshot. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Redshift's +// API operation, DeleteClusterSnapshot for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidClusterSnapshotStateFault +// ClusterSnapshotNotFoundFault func (c *Redshift) DeleteClusterSnapshot(input *DeleteClusterSnapshotInput) (*DeleteClusterSnapshotOutput, error) { req, out := c.DeleteClusterSnapshotRequest(input) err := req.Send() @@ -1026,7 +1340,23 @@ func (c *Redshift) DeleteClusterSubnetGroupRequest(input *DeleteClusterSubnetGro return } +// DeleteClusterSubnetGroup API operation for Amazon Redshift. +// // Deletes the specified cluster subnet group. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Redshift's +// API operation, DeleteClusterSubnetGroup for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidClusterSubnetGroupStateFault +// InvalidClusterSubnetStateFault +// ClusterSubnetGroupNotFoundFault func (c *Redshift) DeleteClusterSubnetGroup(input *DeleteClusterSubnetGroupInput) (*DeleteClusterSubnetGroupOutput, error) { req, out := c.DeleteClusterSubnetGroupRequest(input) err := req.Send() @@ -1076,7 +1406,22 @@ func (c *Redshift) DeleteEventSubscriptionRequest(input *DeleteEventSubscription return } +// DeleteEventSubscription API operation for Amazon Redshift. +// // Deletes an Amazon Redshift event notification subscription. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Redshift's +// API operation, DeleteEventSubscription for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// SubscriptionNotFoundFault +// InvalidSubscriptionStateFault func (c *Redshift) DeleteEventSubscription(input *DeleteEventSubscriptionInput) (*DeleteEventSubscriptionOutput, error) { req, out := c.DeleteEventSubscriptionRequest(input) err := req.Send() @@ -1126,7 +1471,22 @@ func (c *Redshift) DeleteHsmClientCertificateRequest(input *DeleteHsmClientCerti return } +// DeleteHsmClientCertificate API operation for Amazon Redshift. +// // Deletes the specified HSM client certificate. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Redshift's +// API operation, DeleteHsmClientCertificate for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidHsmClientCertificateStateFault +// HsmClientCertificateNotFoundFault func (c *Redshift) DeleteHsmClientCertificate(input *DeleteHsmClientCertificateInput) (*DeleteHsmClientCertificateOutput, error) { req, out := c.DeleteHsmClientCertificateRequest(input) err := req.Send() @@ -1176,7 +1536,22 @@ func (c *Redshift) DeleteHsmConfigurationRequest(input *DeleteHsmConfigurationIn return } +// DeleteHsmConfiguration API operation for Amazon Redshift. +// // Deletes the specified Amazon Redshift HSM configuration. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Redshift's +// API operation, DeleteHsmConfiguration for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidHsmConfigurationStateFault +// HsmConfigurationNotFoundFault func (c *Redshift) DeleteHsmConfiguration(input *DeleteHsmConfigurationInput) (*DeleteHsmConfigurationOutput, error) { req, out := c.DeleteHsmConfigurationRequest(input) err := req.Send() @@ -1226,7 +1601,22 @@ func (c *Redshift) DeleteSnapshotCopyGrantRequest(input *DeleteSnapshotCopyGrant return } +// DeleteSnapshotCopyGrant API operation for Amazon Redshift. +// // Deletes the specified snapshot copy grant. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Redshift's +// API operation, DeleteSnapshotCopyGrant for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidSnapshotCopyGrantStateFault +// SnapshotCopyGrantNotFoundFault func (c *Redshift) DeleteSnapshotCopyGrant(input *DeleteSnapshotCopyGrantInput) (*DeleteSnapshotCopyGrantOutput, error) { req, out := c.DeleteSnapshotCopyGrantRequest(input) err := req.Send() @@ -1276,8 +1666,23 @@ func (c *Redshift) DeleteTagsRequest(input *DeleteTagsInput) (req *request.Reque return } +// DeleteTags API operation for Amazon Redshift. +// // Deletes a tag or tags from a resource. You must provide the ARN of the resource // from which you want to delete the tag or tags. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Redshift's +// API operation, DeleteTags for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ResourceNotFoundFault +// InvalidTagFault func (c *Redshift) DeleteTags(input *DeleteTagsInput) (*DeleteTagsOutput, error) { req, out := c.DeleteTagsRequest(input) err := req.Send() @@ -1331,6 +1736,8 @@ func (c *Redshift) DescribeClusterParameterGroupsRequest(input *DescribeClusterP return } +// DescribeClusterParameterGroups API operation for Amazon Redshift. +// // Returns a list of Amazon Redshift parameter groups, including parameter groups // you created and the default parameter group. For each parameter group, the // response includes the parameter group name, description, and parameter group @@ -1350,6 +1757,19 @@ func (c *Redshift) DescribeClusterParameterGroupsRequest(input *DescribeClusterP // If both tag keys and values are omitted from the request, parameter groups // are returned regardless of whether they have tag keys or values associated // with them. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Redshift's +// API operation, DescribeClusterParameterGroups for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ClusterParameterGroupNotFoundFault +// InvalidTagFault func (c *Redshift) DescribeClusterParameterGroups(input *DescribeClusterParameterGroupsInput) (*DescribeClusterParameterGroupsOutput, error) { req, out := c.DescribeClusterParameterGroupsRequest(input) err := req.Send() @@ -1428,6 +1848,8 @@ func (c *Redshift) DescribeClusterParametersRequest(input *DescribeClusterParame return } +// DescribeClusterParameters API operation for Amazon Redshift. +// // Returns a detailed list of parameters contained within the specified Amazon // Redshift parameter group. For each parameter the response includes information // such as parameter name, description, data type, value, whether the parameter @@ -1440,6 +1862,18 @@ func (c *Redshift) DescribeClusterParametersRequest(input *DescribeClusterParame // For more information about parameters and parameter groups, go to Amazon // Redshift Parameter Groups (http://docs.aws.amazon.com/redshift/latest/mgmt/working-with-parameter-groups.html) // in the Amazon Redshift Cluster Management Guide. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Redshift's +// API operation, DescribeClusterParameters for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ClusterParameterGroupNotFoundFault func (c *Redshift) DescribeClusterParameters(input *DescribeClusterParametersInput) (*DescribeClusterParametersOutput, error) { req, out := c.DescribeClusterParametersRequest(input) err := req.Send() @@ -1518,6 +1952,8 @@ func (c *Redshift) DescribeClusterSecurityGroupsRequest(input *DescribeClusterSe return } +// DescribeClusterSecurityGroups API operation for Amazon Redshift. +// // Returns information about Amazon Redshift security groups. If the name of // a security group is specified, the response will contain only information // about only that security group. @@ -1535,6 +1971,19 @@ func (c *Redshift) DescribeClusterSecurityGroupsRequest(input *DescribeClusterSe // If both tag keys and values are omitted from the request, security groups // are returned regardless of whether they have tag keys or values associated // with them. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Redshift's +// API operation, DescribeClusterSecurityGroups for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ClusterSecurityGroupNotFoundFault +// InvalidTagFault func (c *Redshift) DescribeClusterSecurityGroups(input *DescribeClusterSecurityGroupsInput) (*DescribeClusterSecurityGroupsOutput, error) { req, out := c.DescribeClusterSecurityGroupsRequest(input) err := req.Send() @@ -1613,6 +2062,8 @@ func (c *Redshift) DescribeClusterSnapshotsRequest(input *DescribeClusterSnapsho return } +// DescribeClusterSnapshots API operation for Amazon Redshift. +// // Returns one or more snapshot objects, which contain metadata about your cluster // snapshots. By default, this operation returns information about all snapshots // of all clusters that are owned by you AWS customer account. No information @@ -1629,6 +2080,19 @@ func (c *Redshift) DescribeClusterSnapshotsRequest(input *DescribeClusterSnapsho // If both tag keys and values are omitted from the request, snapshots are // returned regardless of whether they have tag keys or values associated with // them. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Redshift's +// API operation, DescribeClusterSnapshots for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ClusterSnapshotNotFoundFault +// InvalidTagFault func (c *Redshift) DescribeClusterSnapshots(input *DescribeClusterSnapshotsInput) (*DescribeClusterSnapshotsOutput, error) { req, out := c.DescribeClusterSnapshotsRequest(input) err := req.Send() @@ -1707,6 +2171,8 @@ func (c *Redshift) DescribeClusterSubnetGroupsRequest(input *DescribeClusterSubn return } +// DescribeClusterSubnetGroups API operation for Amazon Redshift. +// // Returns one or more cluster subnet group objects, which contain metadata // about your cluster subnet groups. By default, this operation returns information // about all cluster subnet groups that are defined in you AWS account. @@ -1720,6 +2186,19 @@ func (c *Redshift) DescribeClusterSubnetGroupsRequest(input *DescribeClusterSubn // If both tag keys and values are omitted from the request, subnet groups // are returned regardless of whether they have tag keys or values associated // with them. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Redshift's +// API operation, DescribeClusterSubnetGroups for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ClusterSubnetGroupNotFoundFault +// InvalidTagFault func (c *Redshift) DescribeClusterSubnetGroups(input *DescribeClusterSubnetGroupsInput) (*DescribeClusterSubnetGroupsOutput, error) { req, out := c.DescribeClusterSubnetGroupsRequest(input) err := req.Send() @@ -1798,11 +2277,21 @@ func (c *Redshift) DescribeClusterVersionsRequest(input *DescribeClusterVersions return } +// DescribeClusterVersions API operation for Amazon Redshift. +// // Returns descriptions of the available Amazon Redshift cluster versions. You // can call this operation even before creating any clusters to learn more about // the Amazon Redshift versions. For more information about managing clusters, // go to Amazon Redshift Clusters (http://docs.aws.amazon.com/redshift/latest/mgmt/working-with-clusters.html) // in the Amazon Redshift Cluster Management Guide. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Redshift's +// API operation, DescribeClusterVersions for more information, and other errors +// that the API operation could return. func (c *Redshift) DescribeClusterVersions(input *DescribeClusterVersionsInput) (*DescribeClusterVersionsOutput, error) { req, out := c.DescribeClusterVersionsRequest(input) err := req.Send() @@ -1881,6 +2370,8 @@ func (c *Redshift) DescribeClustersRequest(input *DescribeClustersInput) (req *r return } +// DescribeClusters API operation for Amazon Redshift. +// // Returns properties of provisioned clusters including general cluster properties, // cluster database properties, maintenance and backup properties, and security // and access properties. This operation supports pagination. For more information @@ -1895,6 +2386,19 @@ func (c *Redshift) DescribeClustersRequest(input *DescribeClustersInput) (req *r // // If both tag keys and values are omitted from the request, clusters are returned // regardless of whether they have tag keys or values associated with them. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Redshift's +// API operation, DescribeClusters for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ClusterNotFoundFault +// InvalidTagFault func (c *Redshift) DescribeClusters(input *DescribeClustersInput) (*DescribeClustersOutput, error) { req, out := c.DescribeClustersRequest(input) err := req.Send() @@ -1973,11 +2477,21 @@ func (c *Redshift) DescribeDefaultClusterParametersRequest(input *DescribeDefaul return } +// DescribeDefaultClusterParameters API operation for Amazon Redshift. +// // Returns a list of parameter settings for the specified parameter group family. // // For more information about parameters and parameter groups, go to Amazon // Redshift Parameter Groups (http://docs.aws.amazon.com/redshift/latest/mgmt/working-with-parameter-groups.html) // in the Amazon Redshift Cluster Management Guide. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Redshift's +// API operation, DescribeDefaultClusterParameters for more information, and other errors +// that the API operation could return. func (c *Redshift) DescribeDefaultClusterParameters(input *DescribeDefaultClusterParametersInput) (*DescribeDefaultClusterParametersOutput, error) { req, out := c.DescribeDefaultClusterParametersRequest(input) err := req.Send() @@ -2050,9 +2564,19 @@ func (c *Redshift) DescribeEventCategoriesRequest(input *DescribeEventCategories return } +// DescribeEventCategories API operation for Amazon Redshift. +// // Displays a list of event categories for all event source types, or for a // specified source type. For a list of the event categories and source types, // go to Amazon Redshift Event Notifications (http://docs.aws.amazon.com/redshift/latest/mgmt/working-with-event-notifications.html). +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Redshift's +// API operation, DescribeEventCategories for more information, and other errors +// that the API operation could return. func (c *Redshift) DescribeEventCategories(input *DescribeEventCategoriesInput) (*DescribeEventCategoriesOutput, error) { req, out := c.DescribeEventCategoriesRequest(input) err := req.Send() @@ -2106,9 +2630,23 @@ func (c *Redshift) DescribeEventSubscriptionsRequest(input *DescribeEventSubscri return } +// DescribeEventSubscriptions API operation for Amazon Redshift. +// // Lists descriptions of all the Amazon Redshift event notifications subscription // for a customer account. If you specify a subscription name, lists the description // for that subscription. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Redshift's +// API operation, DescribeEventSubscriptions for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// SubscriptionNotFoundFault func (c *Redshift) DescribeEventSubscriptions(input *DescribeEventSubscriptionsInput) (*DescribeEventSubscriptionsOutput, error) { req, out := c.DescribeEventSubscriptionsRequest(input) err := req.Send() @@ -2187,10 +2725,20 @@ func (c *Redshift) DescribeEventsRequest(input *DescribeEventsInput) (req *reque return } +// DescribeEvents API operation for Amazon Redshift. +// // Returns events related to clusters, security groups, snapshots, and parameter // groups for the past 14 days. Events specific to a particular cluster, security // group, snapshot or parameter group can be obtained by providing the name // as a parameter. By default, the past hour of events are returned. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Redshift's +// API operation, DescribeEvents for more information, and other errors +// that the API operation could return. func (c *Redshift) DescribeEvents(input *DescribeEventsInput) (*DescribeEventsOutput, error) { req, out := c.DescribeEventsRequest(input) err := req.Send() @@ -2269,6 +2817,8 @@ func (c *Redshift) DescribeHsmClientCertificatesRequest(input *DescribeHsmClient return } +// DescribeHsmClientCertificates API operation for Amazon Redshift. +// // Returns information about the specified HSM client certificate. If no certificate // ID is specified, returns information about all the HSM certificates owned // by your AWS customer account. @@ -2282,6 +2832,19 @@ func (c *Redshift) DescribeHsmClientCertificatesRequest(input *DescribeHsmClient // If both tag keys and values are omitted from the request, HSM client certificates // are returned regardless of whether they have tag keys or values associated // with them. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Redshift's +// API operation, DescribeHsmClientCertificates for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// HsmClientCertificateNotFoundFault +// InvalidTagFault func (c *Redshift) DescribeHsmClientCertificates(input *DescribeHsmClientCertificatesInput) (*DescribeHsmClientCertificatesOutput, error) { req, out := c.DescribeHsmClientCertificatesRequest(input) err := req.Send() @@ -2360,6 +2923,8 @@ func (c *Redshift) DescribeHsmConfigurationsRequest(input *DescribeHsmConfigurat return } +// DescribeHsmConfigurations API operation for Amazon Redshift. +// // Returns information about the specified Amazon Redshift HSM configuration. // If no configuration ID is specified, returns information about all the HSM // configurations owned by your AWS customer account. @@ -2373,6 +2938,19 @@ func (c *Redshift) DescribeHsmConfigurationsRequest(input *DescribeHsmConfigurat // If both tag keys and values are omitted from the request, HSM connections // are returned regardless of whether they have tag keys or values associated // with them. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Redshift's +// API operation, DescribeHsmConfigurations for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// HsmConfigurationNotFoundFault +// InvalidTagFault func (c *Redshift) DescribeHsmConfigurations(input *DescribeHsmConfigurationsInput) (*DescribeHsmConfigurationsOutput, error) { req, out := c.DescribeHsmConfigurationsRequest(input) err := req.Send() @@ -2445,8 +3023,22 @@ func (c *Redshift) DescribeLoggingStatusRequest(input *DescribeLoggingStatusInpu return } +// DescribeLoggingStatus API operation for Amazon Redshift. +// // Describes whether information, such as queries and connection attempts, is // being logged for the specified Amazon Redshift cluster. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Redshift's +// API operation, DescribeLoggingStatus for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ClusterNotFoundFault func (c *Redshift) DescribeLoggingStatus(input *DescribeLoggingStatusInput) (*LoggingStatus, error) { req, out := c.DescribeLoggingStatusRequest(input) err := req.Send() @@ -2500,6 +3092,8 @@ func (c *Redshift) DescribeOrderableClusterOptionsRequest(input *DescribeOrderab return } +// DescribeOrderableClusterOptions API operation for Amazon Redshift. +// // Returns a list of orderable cluster options. Before you create a new cluster // you can use this operation to find what options are available, such as the // EC2 Availability Zones (AZ) in the specific AWS region that you can specify, @@ -2509,6 +3103,14 @@ func (c *Redshift) DescribeOrderableClusterOptionsRequest(input *DescribeOrderab // a cluster. For more information about managing clusters, go to Amazon Redshift // Clusters (http://docs.aws.amazon.com/redshift/latest/mgmt/working-with-clusters.html) // in the Amazon Redshift Cluster Management Guide. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Redshift's +// API operation, DescribeOrderableClusterOptions for more information, and other errors +// that the API operation could return. func (c *Redshift) DescribeOrderableClusterOptions(input *DescribeOrderableClusterOptionsInput) (*DescribeOrderableClusterOptionsOutput, error) { req, out := c.DescribeOrderableClusterOptionsRequest(input) err := req.Send() @@ -2587,6 +3189,8 @@ func (c *Redshift) DescribeReservedNodeOfferingsRequest(input *DescribeReservedN return } +// DescribeReservedNodeOfferings API operation for Amazon Redshift. +// // Returns a list of the available reserved node offerings by Amazon Redshift // with their descriptions including the node type, the fixed and recurring // costs of reserving the node and duration the node will be reserved for you. @@ -2597,6 +3201,19 @@ func (c *Redshift) DescribeReservedNodeOfferingsRequest(input *DescribeReservedN // For more information about reserved node offerings, go to Purchasing Reserved // Nodes (http://docs.aws.amazon.com/redshift/latest/mgmt/purchase-reserved-node-instance.html) // in the Amazon Redshift Cluster Management Guide. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Redshift's +// API operation, DescribeReservedNodeOfferings for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ReservedNodeOfferingNotFoundFault +// UnsupportedOperationFault func (c *Redshift) DescribeReservedNodeOfferings(input *DescribeReservedNodeOfferingsInput) (*DescribeReservedNodeOfferingsOutput, error) { req, out := c.DescribeReservedNodeOfferingsRequest(input) err := req.Send() @@ -2675,7 +3292,21 @@ func (c *Redshift) DescribeReservedNodesRequest(input *DescribeReservedNodesInpu return } +// DescribeReservedNodes API operation for Amazon Redshift. +// // Returns the descriptions of the reserved nodes. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Redshift's +// API operation, DescribeReservedNodes for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ReservedNodeNotFoundFault func (c *Redshift) DescribeReservedNodes(input *DescribeReservedNodesInput) (*DescribeReservedNodesOutput, error) { req, out := c.DescribeReservedNodesRequest(input) err := req.Send() @@ -2748,6 +3379,8 @@ func (c *Redshift) DescribeResizeRequest(input *DescribeResizeInput) (req *reque return } +// DescribeResize API operation for Amazon Redshift. +// // Returns information about the last resize operation for the specified cluster. // If no resize operation has ever been initiated for the specified cluster, // a HTTP 404 error is returned. If a resize operation was initiated and completed, @@ -2755,6 +3388,19 @@ func (c *Redshift) DescribeResizeRequest(input *DescribeResizeInput) (req *reque // // A resize operation can be requested using ModifyCluster and specifying a // different number or type of nodes for the cluster. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Redshift's +// API operation, DescribeResize for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ClusterNotFoundFault +// ResizeNotFoundFault func (c *Redshift) DescribeResize(input *DescribeResizeInput) (*DescribeResizeOutput, error) { req, out := c.DescribeResizeRequest(input) err := req.Send() @@ -2802,12 +3448,27 @@ func (c *Redshift) DescribeSnapshotCopyGrantsRequest(input *DescribeSnapshotCopy return } +// DescribeSnapshotCopyGrants API operation for Amazon Redshift. +// // Returns a list of snapshot copy grants owned by the AWS account in the destination // region. // // For more information about managing snapshot copy grants, go to Amazon // Redshift Database Encryption (http://docs.aws.amazon.com/redshift/latest/mgmt/working-with-db-encryption.html) // in the Amazon Redshift Cluster Management Guide. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Redshift's +// API operation, DescribeSnapshotCopyGrants for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// SnapshotCopyGrantNotFoundFault +// InvalidTagFault func (c *Redshift) DescribeSnapshotCopyGrants(input *DescribeSnapshotCopyGrantsInput) (*DescribeSnapshotCopyGrantsOutput, error) { req, out := c.DescribeSnapshotCopyGrantsRequest(input) err := req.Send() @@ -2855,11 +3516,26 @@ func (c *Redshift) DescribeTableRestoreStatusRequest(input *DescribeTableRestore return } +// DescribeTableRestoreStatus API operation for Amazon Redshift. +// // Lists the status of one or more table restore requests made using the RestoreTableFromClusterSnapshot // API action. If you don't specify a value for the TableRestoreRequestId parameter, // then DescribeTableRestoreStatus returns the status of all table restore requests // ordered by the date and time of the request in ascending order. Otherwise // DescribeTableRestoreStatus returns the status of the table specified by TableRestoreRequestId. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Redshift's +// API operation, DescribeTableRestoreStatus for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// TableRestoreNotFoundFault +// ClusterNotFoundFault func (c *Redshift) DescribeTableRestoreStatus(input *DescribeTableRestoreStatusInput) (*DescribeTableRestoreStatusOutput, error) { req, out := c.DescribeTableRestoreStatusRequest(input) err := req.Send() @@ -2907,6 +3583,8 @@ func (c *Redshift) DescribeTagsRequest(input *DescribeTagsInput) (req *request.R return } +// DescribeTags API operation for Amazon Redshift. +// // Returns a list of tags. You can return tags from a specific resource by specifying // an ARN, or you can return all tags for a given type of resource, such as // clusters, snapshots, and so on. @@ -2931,6 +3609,19 @@ func (c *Redshift) DescribeTagsRequest(input *DescribeTagsInput) (req *request.R // If both tag keys and values are omitted from the request, resources are // returned regardless of whether they have tag keys or values associated with // them. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Redshift's +// API operation, DescribeTags for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ResourceNotFoundFault +// InvalidTagFault func (c *Redshift) DescribeTags(input *DescribeTagsInput) (*DescribeTagsOutput, error) { req, out := c.DescribeTagsRequest(input) err := req.Send() @@ -2978,8 +3669,22 @@ func (c *Redshift) DisableLoggingRequest(input *DisableLoggingInput) (req *reque return } +// DisableLogging API operation for Amazon Redshift. +// // Stops logging information, such as queries and connection attempts, for the // specified Amazon Redshift cluster. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Redshift's +// API operation, DisableLogging for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ClusterNotFoundFault func (c *Redshift) DisableLogging(input *DisableLoggingInput) (*LoggingStatus, error) { req, out := c.DisableLoggingRequest(input) err := req.Send() @@ -3027,12 +3732,29 @@ func (c *Redshift) DisableSnapshotCopyRequest(input *DisableSnapshotCopyInput) ( return } +// DisableSnapshotCopy API operation for Amazon Redshift. +// // Disables the automatic copying of snapshots from one region to another region // for a specified cluster. // // If your cluster and its snapshots are encrypted using a customer master // key (CMK) from AWS KMS, use DeleteSnapshotCopyGrant to delete the grant that // grants Amazon Redshift permission to the CMK in the destination region. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Redshift's +// API operation, DisableSnapshotCopy for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ClusterNotFoundFault +// SnapshotCopyAlreadyDisabledFault +// InvalidClusterStateFault +// UnauthorizedOperation func (c *Redshift) DisableSnapshotCopy(input *DisableSnapshotCopyInput) (*DisableSnapshotCopyOutput, error) { req, out := c.DisableSnapshotCopyRequest(input) err := req.Send() @@ -3080,8 +3802,26 @@ func (c *Redshift) EnableLoggingRequest(input *EnableLoggingInput) (req *request return } +// EnableLogging API operation for Amazon Redshift. +// // Starts logging information, such as queries and connection attempts, for // the specified Amazon Redshift cluster. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Redshift's +// API operation, EnableLogging for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ClusterNotFoundFault +// BucketNotFoundFault +// InsufficientS3BucketPolicyFault +// InvalidS3KeyPrefixFault +// InvalidS3BucketNameFault func (c *Redshift) EnableLogging(input *EnableLoggingInput) (*LoggingStatus, error) { req, out := c.EnableLoggingRequest(input) err := req.Send() @@ -3129,8 +3869,31 @@ func (c *Redshift) EnableSnapshotCopyRequest(input *EnableSnapshotCopyInput) (re return } +// EnableSnapshotCopy API operation for Amazon Redshift. +// // Enables the automatic copy of snapshots from one region to another region // for a specified cluster. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Redshift's +// API operation, EnableSnapshotCopy for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// IncompatibleOrderableOptions +// InvalidClusterStateFault +// ClusterNotFoundFault +// CopyToRegionDisabledFault +// SnapshotCopyAlreadyEnabledFault +// UnknownSnapshotCopyRegionFault +// UnauthorizedOperation +// SnapshotCopyGrantNotFoundFault +// LimitExceededFault +// DependentServiceRequestThrottlingFault func (c *Redshift) EnableSnapshotCopy(input *EnableSnapshotCopyInput) (*EnableSnapshotCopyOutput, error) { req, out := c.EnableSnapshotCopyRequest(input) err := req.Send() @@ -3178,6 +3941,8 @@ func (c *Redshift) ModifyClusterRequest(input *ModifyClusterInput) (req *request return } +// ModifyCluster API operation for Amazon Redshift. +// // Modifies the settings for a cluster. For example, you can add another security // or parameter group, update the preferred maintenance window, or change the // master user password. Resetting a cluster password or modifying the security @@ -3189,6 +3954,32 @@ func (c *Redshift) ModifyClusterRequest(input *ModifyClusterInput) (req *request // You can also change node type and the number of nodes to scale up or down // the cluster. When resizing a cluster, you must specify both the number of // nodes and the node type even if one of the parameters does not change. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Redshift's +// API operation, ModifyCluster for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidClusterStateFault +// InvalidClusterSecurityGroupStateFault +// ClusterNotFoundFault +// NumberOfNodesQuotaExceededFault +// ClusterSecurityGroupNotFoundFault +// ClusterParameterGroupNotFoundFault +// InsufficientClusterCapacityFault +// UnsupportedOptionFault +// UnauthorizedOperation +// HsmClientCertificateNotFoundFault +// HsmConfigurationNotFoundFault +// ClusterAlreadyExistsFault +// LimitExceededFault +// DependentServiceRequestThrottlingFault +// InvalidElasticIpFault func (c *Redshift) ModifyCluster(input *ModifyClusterInput) (*ModifyClusterOutput, error) { req, out := c.ModifyClusterRequest(input) err := req.Send() @@ -3236,10 +4027,25 @@ func (c *Redshift) ModifyClusterIamRolesRequest(input *ModifyClusterIamRolesInpu return } +// ModifyClusterIamRoles API operation for Amazon Redshift. +// // Modifies the list of AWS Identity and Access Management (IAM) roles that // can be used by the cluster to access other AWS services. // // A cluster can have up to 10 IAM roles associated at any time. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Redshift's +// API operation, ModifyClusterIamRoles for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidClusterStateFault +// ClusterNotFoundFault func (c *Redshift) ModifyClusterIamRoles(input *ModifyClusterIamRolesInput) (*ModifyClusterIamRolesOutput, error) { req, out := c.ModifyClusterIamRolesRequest(input) err := req.Send() @@ -3287,11 +4093,26 @@ func (c *Redshift) ModifyClusterParameterGroupRequest(input *ModifyClusterParame return } +// ModifyClusterParameterGroup API operation for Amazon Redshift. +// // Modifies the parameters of a parameter group. // // For more information about parameters and parameter groups, go to Amazon // Redshift Parameter Groups (http://docs.aws.amazon.com/redshift/latest/mgmt/working-with-parameter-groups.html) // in the Amazon Redshift Cluster Management Guide. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Redshift's +// API operation, ModifyClusterParameterGroup for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ClusterParameterGroupNotFoundFault +// InvalidClusterParameterGroupStateFault func (c *Redshift) ModifyClusterParameterGroup(input *ModifyClusterParameterGroupInput) (*ClusterParameterGroupNameMessage, error) { req, out := c.ModifyClusterParameterGroupRequest(input) err := req.Send() @@ -3339,9 +4160,28 @@ func (c *Redshift) ModifyClusterSubnetGroupRequest(input *ModifyClusterSubnetGro return } +// ModifyClusterSubnetGroup API operation for Amazon Redshift. +// // Modifies a cluster subnet group to include the specified list of VPC subnets. // The operation replaces the existing list of subnets with the new list of // subnets. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Redshift's +// API operation, ModifyClusterSubnetGroup for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ClusterSubnetGroupNotFoundFault +// ClusterSubnetQuotaExceededFault +// SubnetAlreadyInUse +// InvalidSubnet +// UnauthorizedOperation +// DependentServiceRequestThrottlingFault func (c *Redshift) ModifyClusterSubnetGroup(input *ModifyClusterSubnetGroupInput) (*ModifyClusterSubnetGroupOutput, error) { req, out := c.ModifyClusterSubnetGroupRequest(input) err := req.Send() @@ -3389,7 +4229,29 @@ func (c *Redshift) ModifyEventSubscriptionRequest(input *ModifyEventSubscription return } +// ModifyEventSubscription API operation for Amazon Redshift. +// // Modifies an existing Amazon Redshift event notification subscription. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Redshift's +// API operation, ModifyEventSubscription for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// SubscriptionNotFoundFault +// SNSInvalidTopicFault +// SNSNoAuthorizationFault +// SNSTopicArnNotFoundFault +// SubscriptionEventIdNotFoundFault +// SubscriptionCategoryNotFoundFault +// SubscriptionSeverityNotFoundFault +// SourceNotFoundFault +// InvalidSubscriptionStateFault func (c *Redshift) ModifyEventSubscription(input *ModifyEventSubscriptionInput) (*ModifyEventSubscriptionOutput, error) { req, out := c.ModifyEventSubscriptionRequest(input) err := req.Send() @@ -3437,8 +4299,25 @@ func (c *Redshift) ModifySnapshotCopyRetentionPeriodRequest(input *ModifySnapsho return } +// ModifySnapshotCopyRetentionPeriod API operation for Amazon Redshift. +// // Modifies the number of days to retain automated snapshots in the destination // region after they are copied from the source region. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Redshift's +// API operation, ModifySnapshotCopyRetentionPeriod for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ClusterNotFoundFault +// SnapshotCopyDisabledFault +// UnauthorizedOperation +// InvalidClusterStateFault func (c *Redshift) ModifySnapshotCopyRetentionPeriod(input *ModifySnapshotCopyRetentionPeriodInput) (*ModifySnapshotCopyRetentionPeriodOutput, error) { req, out := c.ModifySnapshotCopyRetentionPeriodRequest(input) err := req.Send() @@ -3486,6 +4365,8 @@ func (c *Redshift) PurchaseReservedNodeOfferingRequest(input *PurchaseReservedNo return } +// PurchaseReservedNodeOffering API operation for Amazon Redshift. +// // Allows you to purchase reserved nodes. Amazon Redshift offers a predefined // set of reserved node offerings. You can purchase one or more of the offerings. // You can call the DescribeReservedNodeOfferings API to obtain the available @@ -3495,6 +4376,21 @@ func (c *Redshift) PurchaseReservedNodeOfferingRequest(input *PurchaseReservedNo // For more information about reserved node offerings, go to Purchasing Reserved // Nodes (http://docs.aws.amazon.com/redshift/latest/mgmt/purchase-reserved-node-instance.html) // in the Amazon Redshift Cluster Management Guide. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Redshift's +// API operation, PurchaseReservedNodeOffering for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ReservedNodeOfferingNotFoundFault +// ReservedNodeAlreadyExistsFault +// ReservedNodeQuotaExceededFault +// UnsupportedOperationFault func (c *Redshift) PurchaseReservedNodeOffering(input *PurchaseReservedNodeOfferingInput) (*PurchaseReservedNodeOfferingOutput, error) { req, out := c.PurchaseReservedNodeOfferingRequest(input) err := req.Send() @@ -3542,6 +4438,8 @@ func (c *Redshift) RebootClusterRequest(input *RebootClusterInput) (req *request return } +// RebootCluster API operation for Amazon Redshift. +// // Reboots a cluster. This action is taken as soon as possible. It results in // a momentary outage to the cluster, during which the cluster status is set // to rebooting. A cluster event is created when the reboot is completed. Any @@ -3549,6 +4447,19 @@ func (c *Redshift) RebootClusterRequest(input *RebootClusterInput) (req *request // For more information about managing clusters, go to Amazon Redshift Clusters // (http://docs.aws.amazon.com/redshift/latest/mgmt/working-with-clusters.html) // in the Amazon Redshift Cluster Management Guide. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Redshift's +// API operation, RebootCluster for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidClusterStateFault +// ClusterNotFoundFault func (c *Redshift) RebootCluster(input *RebootClusterInput) (*RebootClusterOutput, error) { req, out := c.RebootClusterRequest(input) err := req.Send() @@ -3596,10 +4507,25 @@ func (c *Redshift) ResetClusterParameterGroupRequest(input *ResetClusterParamete return } +// ResetClusterParameterGroup API operation for Amazon Redshift. +// // Sets one or more parameters of the specified parameter group to their default // values and sets the source values of the parameters to "engine-default". // To reset the entire parameter group specify the ResetAllParameters parameter. // For parameter changes to take effect you must reboot any associated clusters. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Redshift's +// API operation, ResetClusterParameterGroup for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidClusterParameterGroupStateFault +// ClusterParameterGroupNotFoundFault func (c *Redshift) ResetClusterParameterGroup(input *ResetClusterParameterGroupInput) (*ClusterParameterGroupNameMessage, error) { req, out := c.ResetClusterParameterGroupRequest(input) err := req.Send() @@ -3647,6 +4573,8 @@ func (c *Redshift) RestoreFromClusterSnapshotRequest(input *RestoreFromClusterSn return } +// RestoreFromClusterSnapshot API operation for Amazon Redshift. +// // Creates a new cluster from a snapshot. By default, Amazon Redshift creates // the resulting cluster with the same configuration as the original cluster // from which the snapshot was created, except that the new cluster is created @@ -3662,6 +4590,38 @@ func (c *Redshift) RestoreFromClusterSnapshotRequest(input *RestoreFromClusterSn // For more information about working with snapshots, go to Amazon Redshift // Snapshots (http://docs.aws.amazon.com/redshift/latest/mgmt/working-with-snapshots.html) // in the Amazon Redshift Cluster Management Guide. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Redshift's +// API operation, RestoreFromClusterSnapshot for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// AccessToSnapshotDeniedFault +// ClusterAlreadyExistsFault +// ClusterSnapshotNotFoundFault +// ClusterQuotaExceededFault +// InsufficientClusterCapacityFault +// InvalidClusterSnapshotStateFault +// InvalidRestoreFault +// NumberOfNodesQuotaExceededFault +// NumberOfNodesPerClusterLimitExceededFault +// InvalidVPCNetworkStateFault +// InvalidClusterSubnetGroupStateFault +// InvalidSubnet +// ClusterSubnetGroupNotFoundFault +// UnauthorizedOperation +// HsmClientCertificateNotFoundFault +// HsmConfigurationNotFoundFault +// InvalidElasticIpFault +// ClusterParameterGroupNotFoundFault +// ClusterSecurityGroupNotFoundFault +// LimitExceededFault +// DependentServiceRequestThrottlingFault func (c *Redshift) RestoreFromClusterSnapshot(input *RestoreFromClusterSnapshotInput) (*RestoreFromClusterSnapshotOutput, error) { req, out := c.RestoreFromClusterSnapshotRequest(input) err := req.Send() @@ -3709,6 +4669,8 @@ func (c *Redshift) RestoreTableFromClusterSnapshotRequest(input *RestoreTableFro return } +// RestoreTableFromClusterSnapshot API operation for Amazon Redshift. +// // Creates a new table from a table in an Amazon Redshift cluster snapshot. // You must create the new table within the Amazon Redshift cluster that the // snapshot was taken from. @@ -3722,6 +4684,24 @@ func (c *Redshift) RestoreTableFromClusterSnapshotRequest(input *RestoreTableFro // name of the table as the NewTableName parameter value in the call to RestoreTableFromClusterSnapshot. // This way, you can replace the original table with the table created from // the snapshot. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Redshift's +// API operation, RestoreTableFromClusterSnapshot for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ClusterSnapshotNotFoundFault +// InProgressTableRestoreQuotaExceededFault +// InvalidClusterSnapshotStateFault +// InvalidTableRestoreArgumentFault +// ClusterNotFoundFault +// InvalidClusterStateFault +// UnsupportedOperationFault func (c *Redshift) RestoreTableFromClusterSnapshot(input *RestoreTableFromClusterSnapshotInput) (*RestoreTableFromClusterSnapshotOutput, error) { req, out := c.RestoreTableFromClusterSnapshotRequest(input) err := req.Send() @@ -3769,11 +4749,27 @@ func (c *Redshift) RevokeClusterSecurityGroupIngressRequest(input *RevokeCluster return } +// RevokeClusterSecurityGroupIngress API operation for Amazon Redshift. +// // Revokes an ingress rule in an Amazon Redshift security group for a previously // authorized IP range or Amazon EC2 security group. To add an ingress rule, // see AuthorizeClusterSecurityGroupIngress. For information about managing // security groups, go to Amazon Redshift Cluster Security Groups (http://docs.aws.amazon.com/redshift/latest/mgmt/working-with-security-groups.html) // in the Amazon Redshift Cluster Management Guide. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Redshift's +// API operation, RevokeClusterSecurityGroupIngress for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ClusterSecurityGroupNotFoundFault +// AuthorizationNotFoundFault +// InvalidClusterSecurityGroupStateFault func (c *Redshift) RevokeClusterSecurityGroupIngress(input *RevokeClusterSecurityGroupIngressInput) (*RevokeClusterSecurityGroupIngressOutput, error) { req, out := c.RevokeClusterSecurityGroupIngressRequest(input) err := req.Send() @@ -3821,6 +4817,8 @@ func (c *Redshift) RevokeSnapshotAccessRequest(input *RevokeSnapshotAccessInput) return } +// RevokeSnapshotAccess API operation for Amazon Redshift. +// // Removes the ability of the specified AWS customer account to restore the // specified snapshot. If the account is currently restoring the snapshot, the // restore will run to completion. @@ -3828,6 +4826,20 @@ func (c *Redshift) RevokeSnapshotAccessRequest(input *RevokeSnapshotAccessInput) // For more information about working with snapshots, go to Amazon Redshift // Snapshots (http://docs.aws.amazon.com/redshift/latest/mgmt/working-with-snapshots.html) // in the Amazon Redshift Cluster Management Guide. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Redshift's +// API operation, RevokeSnapshotAccess for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// AccessToSnapshotDeniedFault +// AuthorizationNotFoundFault +// ClusterSnapshotNotFoundFault func (c *Redshift) RevokeSnapshotAccess(input *RevokeSnapshotAccessInput) (*RevokeSnapshotAccessOutput, error) { req, out := c.RevokeSnapshotAccessRequest(input) err := req.Send() @@ -3875,7 +4887,23 @@ func (c *Redshift) RotateEncryptionKeyRequest(input *RotateEncryptionKeyInput) ( return } +// RotateEncryptionKey API operation for Amazon Redshift. +// // Rotates the encryption keys for a cluster. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Redshift's +// API operation, RotateEncryptionKey for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ClusterNotFoundFault +// InvalidClusterStateFault +// DependentServiceRequestThrottlingFault func (c *Redshift) RotateEncryptionKey(input *RotateEncryptionKeyInput) (*RotateEncryptionKeyOutput, error) { req, out := c.RotateEncryptionKeyRequest(input) err := req.Send() diff --git a/service/route53/api.go b/service/route53/api.go index 4cc44a5f3a5..7ccc7dd01f1 100644 --- a/service/route53/api.go +++ b/service/route53/api.go @@ -52,6 +52,8 @@ func (c *Route53) AssociateVPCWithHostedZoneRequest(input *AssociateVPCWithHoste return } +// AssociateVPCWithHostedZone API operation for Amazon Route 53. +// // Associates an Amazon VPC with a private hosted zone. // // The VPC and the hosted zone must already exist, and you must have created @@ -69,6 +71,23 @@ func (c *Route53) AssociateVPCWithHostedZoneRequest(input *AssociateVPCWithHoste // Amazon VPCs and Private Hosted Zones That You Create with Different AWS Accounts // (http://docs.aws.amazon.com/Route53/latest/DeveloperGuide/hosted-zone-private-associate-vpcs-different-accounts.html) // in the Amazon Route 53 Developer Guide. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Route 53's +// API operation, AssociateVPCWithHostedZone for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// NoSuchHostedZone +// InvalidVPCId +// InvalidInput +// PublicZoneVPCAssociation +// ConflictingDomainExists +// LimitsExceeded func (c *Route53) AssociateVPCWithHostedZone(input *AssociateVPCWithHostedZoneInput) (*AssociateVPCWithHostedZoneOutput, error) { req, out := c.AssociateVPCWithHostedZoneRequest(input) err := req.Send() @@ -116,6 +135,8 @@ func (c *Route53) ChangeResourceRecordSetsRequest(input *ChangeResourceRecordSet return } +// ChangeResourceRecordSets API operation for Amazon Route 53. +// // Create, change, update, or delete authoritative DNS information on all Amazon // Route 53 servers. Send a POST request to: // @@ -208,6 +229,22 @@ func (c *Route53) ChangeResourceRecordSetsRequest(input *ChangeResourceRecordSet // resource record set being created. // // For more information on transactional changes, see ChangeResourceRecordSets. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Route 53's +// API operation, ChangeResourceRecordSets for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// NoSuchHostedZone +// NoSuchHealthCheck +// InvalidChangeBatch +// InvalidInput +// PriorRequestNotComplete func (c *Route53) ChangeResourceRecordSets(input *ChangeResourceRecordSetsInput) (*ChangeResourceRecordSetsOutput, error) { req, out := c.ChangeResourceRecordSetsRequest(input) err := req.Send() @@ -255,6 +292,23 @@ func (c *Route53) ChangeTagsForResourceRequest(input *ChangeTagsForResourceInput return } +// ChangeTagsForResource API operation for Amazon Route 53. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Route 53's +// API operation, ChangeTagsForResource for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidInput +// NoSuchHealthCheck +// NoSuchHostedZone +// PriorRequestNotComplete +// ThrottlingException func (c *Route53) ChangeTagsForResource(input *ChangeTagsForResourceInput) (*ChangeTagsForResourceOutput, error) { req, out := c.ChangeTagsForResourceRequest(input) err := req.Send() @@ -302,6 +356,8 @@ func (c *Route53) CreateHealthCheckRequest(input *CreateHealthCheckInput) (req * return } +// CreateHealthCheck API operation for Amazon Route 53. +// // Creates a new health check. // // To create a new health check, send a POST request to the /2013-04-01/healthcheck @@ -334,6 +390,20 @@ func (c *Route53) CreateHealthCheckRequest(input *CreateHealthCheckInput) (req * // create a health check that is based on the state of the alarm. For information // about creating CloudWatch metrics and alarms by using the CloudWatch console, // see the Amazon CloudWatch Developer Guide (http://docs.aws.amazon.com/AmazonCloudWatch/latest/DeveloperGuide/WhatIsCloudWatch.html). +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Route 53's +// API operation, CreateHealthCheck for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// TooManyHealthChecks +// HealthCheckAlreadyExists +// InvalidInput func (c *Route53) CreateHealthCheck(input *CreateHealthCheckInput) (*CreateHealthCheckOutput, error) { req, out := c.CreateHealthCheckRequest(input) err := req.Send() @@ -381,6 +451,8 @@ func (c *Route53) CreateHostedZoneRequest(input *CreateHostedZoneInput) (req *re return } +// CreateHostedZone API operation for Amazon Route 53. +// // Creates a new public hosted zone, used to specify how the Domain Name System // (DNS) routes traffic on the Internet for a domain, such as example.com, and // its subdomains. @@ -420,6 +492,26 @@ func (c *Route53) CreateHostedZoneRequest(input *CreateHostedZoneInput) (req *re // When trying to create a hosted zone using a reusable delegation set, specify // an optional DelegationSetId, and Amazon Route 53 would assign those 4 NS // records for the zone, instead of alloting a new one. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Route 53's +// API operation, CreateHostedZone for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidDomainName +// HostedZoneAlreadyExists +// TooManyHostedZones +// InvalidVPCId +// InvalidInput +// DelegationSetNotAvailable +// ConflictingDomainExists +// NoSuchDelegationSet +// DelegationSetNotReusable func (c *Route53) CreateHostedZone(input *CreateHostedZoneInput) (*CreateHostedZoneOutput, error) { req, out := c.CreateHostedZoneRequest(input) err := req.Send() @@ -467,6 +559,8 @@ func (c *Route53) CreateReusableDelegationSetRequest(input *CreateReusableDelega return } +// CreateReusableDelegationSet API operation for Amazon Route 53. +// // Creates a delegation set (a group of four anem servers) that can be reused // by multiple hosted zones. If a hosted zoned ID is specified, CreateReusableDelegationSet // marks the delegation set associated with that zone as reusable @@ -480,6 +574,24 @@ func (c *Route53) CreateReusableDelegationSetRequest(input *CreateReusableDelega // For more information, including a procedure on how to create and configure // a reusable delegation set (also known as white label name servers), see Configuring // White Label Name Servers (http://docs.aws.amazon.com/Route53/latest/DeveloperGuide/white-label-name-servers.html). +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Route 53's +// API operation, CreateReusableDelegationSet for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// DelegationSetAlreadyCreated +// LimitsExceeded +// HostedZoneNotFound +// InvalidArgument +// InvalidInput +// DelegationSetNotAvailable +// DelegationSetAlreadyReusable func (c *Route53) CreateReusableDelegationSet(input *CreateReusableDelegationSetInput) (*CreateReusableDelegationSetOutput, error) { req, out := c.CreateReusableDelegationSetRequest(input) err := req.Send() @@ -527,6 +639,8 @@ func (c *Route53) CreateTrafficPolicyRequest(input *CreateTrafficPolicyInput) (r return } +// CreateTrafficPolicy API operation for Amazon Route 53. +// // Creates a traffic policy, which you use to create multiple DNS resource record // sets for one domain name (such as example.com) or one subdomain name (such // as www.example.com). @@ -535,6 +649,21 @@ func (c *Route53) CreateTrafficPolicyRequest(input *CreateTrafficPolicyInput) (r // The request body must include a document with a CreateTrafficPolicyRequest // element. The response includes the CreateTrafficPolicyResponse element, which // contains information about the new traffic policy. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Route 53's +// API operation, CreateTrafficPolicy for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidInput +// TooManyTrafficPolicies +// TrafficPolicyAlreadyExists +// InvalidTrafficPolicyDocument func (c *Route53) CreateTrafficPolicy(input *CreateTrafficPolicyInput) (*CreateTrafficPolicyOutput, error) { req, out := c.CreateTrafficPolicyRequest(input) err := req.Send() @@ -582,6 +711,8 @@ func (c *Route53) CreateTrafficPolicyInstanceRequest(input *CreateTrafficPolicyI return } +// CreateTrafficPolicyInstance API operation for Amazon Route 53. +// // Creates resource record sets in a specified hosted zone based on the settings // in a specified traffic policy version. In addition, CreateTrafficPolicyInstance // associates the resource record sets with a specified domain name (such as @@ -593,6 +724,22 @@ func (c *Route53) CreateTrafficPolicyInstanceRequest(input *CreateTrafficPolicyI // resource. The request body must include a document with a CreateTrafficPolicyRequest // element. The response returns the CreateTrafficPolicyInstanceResponse element, // which contains information about the traffic policy instance. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Route 53's +// API operation, CreateTrafficPolicyInstance for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// NoSuchHostedZone +// InvalidInput +// TooManyTrafficPolicyInstances +// NoSuchTrafficPolicy +// TrafficPolicyInstanceAlreadyExists func (c *Route53) CreateTrafficPolicyInstance(input *CreateTrafficPolicyInstanceInput) (*CreateTrafficPolicyInstanceOutput, error) { req, out := c.CreateTrafficPolicyInstanceRequest(input) err := req.Send() @@ -640,6 +787,8 @@ func (c *Route53) CreateTrafficPolicyVersionRequest(input *CreateTrafficPolicyVe return } +// CreateTrafficPolicyVersion API operation for Amazon Route 53. +// // Creates a new version of an existing traffic policy. When you create a new // version of a traffic policy, you specify the ID of the traffic policy that // you want to update and a JSON-formatted document that describes the new version. @@ -653,6 +802,21 @@ func (c *Route53) CreateTrafficPolicyVersionRequest(input *CreateTrafficPolicyVe // The request body includes a document with a CreateTrafficPolicyVersionRequest // element. The response returns the CreateTrafficPolicyVersionResponse element, // which contains information about the new version of the traffic policy. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Route 53's +// API operation, CreateTrafficPolicyVersion for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// NoSuchTrafficPolicy +// InvalidInput +// ConcurrentModification +// InvalidTrafficPolicyDocument func (c *Route53) CreateTrafficPolicyVersion(input *CreateTrafficPolicyVersionInput) (*CreateTrafficPolicyVersionOutput, error) { req, out := c.CreateTrafficPolicyVersionRequest(input) err := req.Send() @@ -700,6 +864,8 @@ func (c *Route53) DeleteHealthCheckRequest(input *DeleteHealthCheckInput) (req * return } +// DeleteHealthCheck API operation for Amazon Route 53. +// // Deletes a health check. Send a DELETE request to the /2013-04-01/healthcheck/health // check ID resource. // @@ -711,6 +877,20 @@ func (c *Route53) DeleteHealthCheckRequest(input *DeleteHealthCheckInput) (req * // configuration. For more information, see Replacing and Deleting Health Checks // (http://docs.aws.amazon.com/Route53/latest/DeveloperGuide/health-checks-creating-deleting.html#health-checks-deleting.html) // in the Amazon Route 53 Developer Guide. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Route 53's +// API operation, DeleteHealthCheck for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// NoSuchHealthCheck +// HealthCheckInUse +// InvalidInput func (c *Route53) DeleteHealthCheck(input *DeleteHealthCheckInput) (*DeleteHealthCheckOutput, error) { req, out := c.DeleteHealthCheckRequest(input) err := req.Send() @@ -758,6 +938,8 @@ func (c *Route53) DeleteHostedZoneRequest(input *DeleteHostedZoneInput) (req *re return } +// DeleteHostedZone API operation for Amazon Route 53. +// // Deletes a hosted zone. Send a DELETE request to the /Amazon Route 53 API // version/hostedzone/hosted zone ID resource. // @@ -767,6 +949,22 @@ func (c *Route53) DeleteHostedZoneRequest(input *DeleteHostedZoneInput) (req *re // If you try to delete a hosted zone that contains other resource record sets, // Amazon Route 53 denies your request with a HostedZoneNotEmpty error. For // information about deleting records from your hosted zone, see ChangeResourceRecordSets. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Route 53's +// API operation, DeleteHostedZone for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// NoSuchHostedZone +// HostedZoneNotEmpty +// PriorRequestNotComplete +// InvalidInput +// InvalidDomainName func (c *Route53) DeleteHostedZone(input *DeleteHostedZoneInput) (*DeleteHostedZoneOutput, error) { req, out := c.DeleteHostedZoneRequest(input) err := req.Send() @@ -814,6 +1012,8 @@ func (c *Route53) DeleteReusableDelegationSetRequest(input *DeleteReusableDelega return } +// DeleteReusableDelegationSet API operation for Amazon Route 53. +// // Deletes a reusable delegation set. Send a DELETE request to the /2013-04-01/delegationset/delegation // set ID resource. // @@ -823,6 +1023,21 @@ func (c *Route53) DeleteReusableDelegationSetRequest(input *DeleteReusableDelega // To verify that the reusable delegation set is not associated with any hosted // zones, run the GetReusableDelegationSet action and specify the ID of the // reusable delegation set that you want to delete. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Route 53's +// API operation, DeleteReusableDelegationSet for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// NoSuchDelegationSet +// DelegationSetInUse +// DelegationSetNotReusable +// InvalidInput func (c *Route53) DeleteReusableDelegationSet(input *DeleteReusableDelegationSetInput) (*DeleteReusableDelegationSetOutput, error) { req, out := c.DeleteReusableDelegationSetRequest(input) err := req.Send() @@ -870,10 +1085,27 @@ func (c *Route53) DeleteTrafficPolicyRequest(input *DeleteTrafficPolicyInput) (r return } +// DeleteTrafficPolicy API operation for Amazon Route 53. +// // Deletes a traffic policy. // // Send a DELETE request to the /Amazon Route 53 API version/trafficpolicy // resource. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Route 53's +// API operation, DeleteTrafficPolicy for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// NoSuchTrafficPolicy +// InvalidInput +// TrafficPolicyInUse +// ConcurrentModification func (c *Route53) DeleteTrafficPolicy(input *DeleteTrafficPolicyInput) (*DeleteTrafficPolicyOutput, error) { req, out := c.DeleteTrafficPolicyRequest(input) err := req.Send() @@ -921,6 +1153,8 @@ func (c *Route53) DeleteTrafficPolicyInstanceRequest(input *DeleteTrafficPolicyI return } +// DeleteTrafficPolicyInstance API operation for Amazon Route 53. +// // Deletes a traffic policy instance and all of the resource record sets that // Amazon Route 53 created when you created the instance. // @@ -929,6 +1163,20 @@ func (c *Route53) DeleteTrafficPolicyInstanceRequest(input *DeleteTrafficPolicyI // // In the Amazon Route 53 console, traffic policy instances are known as policy // records. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Route 53's +// API operation, DeleteTrafficPolicyInstance for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// NoSuchTrafficPolicyInstance +// InvalidInput +// PriorRequestNotComplete func (c *Route53) DeleteTrafficPolicyInstance(input *DeleteTrafficPolicyInstanceInput) (*DeleteTrafficPolicyInstanceOutput, error) { req, out := c.DeleteTrafficPolicyInstanceRequest(input) err := req.Send() @@ -976,6 +1224,8 @@ func (c *Route53) DisassociateVPCFromHostedZoneRequest(input *DisassociateVPCFro return } +// DisassociateVPCFromHostedZone API operation for Amazon Route 53. +// // Disassociates a VPC from a Amazon Route 53 private hosted zone. // // Send a POST request to the /Amazon Route 53 API version/hostedzone/hosted @@ -986,6 +1236,22 @@ func (c *Route53) DisassociateVPCFromHostedZoneRequest(input *DisassociateVPCFro // You can only disassociate a VPC from a private hosted zone when two or // more VPCs are associated with that hosted zone. You cannot convert a private // hosted zone into a public hosted zone. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Route 53's +// API operation, DisassociateVPCFromHostedZone for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// NoSuchHostedZone +// InvalidVPCId +// VPCAssociationNotFound +// LastVPCAssociation +// InvalidInput func (c *Route53) DisassociateVPCFromHostedZone(input *DisassociateVPCFromHostedZoneInput) (*DisassociateVPCFromHostedZoneOutput, error) { req, out := c.DisassociateVPCFromHostedZoneRequest(input) err := req.Send() @@ -1033,6 +1299,8 @@ func (c *Route53) GetChangeRequest(input *GetChangeInput) (req *request.Request, return } +// GetChange API operation for Amazon Route 53. +// // Returns the current status of a change batch request. The status is one of // the following values: // @@ -1042,6 +1310,19 @@ func (c *Route53) GetChangeRequest(input *GetChangeInput) (req *request.Request, // // INSYNC indicates that the changes have replicated to all Amazon Route // 53 DNS servers. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Route 53's +// API operation, GetChange for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// NoSuchChange +// InvalidInput func (c *Route53) GetChange(input *GetChangeInput) (*GetChangeOutput, error) { req, out := c.GetChangeRequest(input) err := req.Send() @@ -1092,7 +1373,22 @@ func (c *Route53) GetChangeDetailsRequest(input *GetChangeDetailsInput) (req *re return } +// GetChangeDetails API operation for Amazon Route 53. +// // Returns the status and changes of a change batch request. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Route 53's +// API operation, GetChangeDetails for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// NoSuchChange +// InvalidInput func (c *Route53) GetChangeDetails(input *GetChangeDetailsInput) (*GetChangeDetailsOutput, error) { req, out := c.GetChangeDetailsRequest(input) err := req.Send() @@ -1140,11 +1436,21 @@ func (c *Route53) GetCheckerIpRangesRequest(input *GetCheckerIpRangesInput) (req return } +// GetCheckerIpRanges API operation for Amazon Route 53. +// // Retrieves a list of the IP ranges used by Amazon Route 53 health checkers // to check the health of your resources. Send a GET request to the /Amazon // Route 53 API version/checkeripranges resource. Use these IP addresses to // configure router and firewall rules to allow health checkers to check the // health of your resources. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Route 53's +// API operation, GetCheckerIpRanges for more information, and other errors +// that the API operation could return. func (c *Route53) GetCheckerIpRanges(input *GetCheckerIpRangesInput) (*GetCheckerIpRangesOutput, error) { req, out := c.GetCheckerIpRangesRequest(input) err := req.Send() @@ -1192,9 +1498,24 @@ func (c *Route53) GetGeoLocationRequest(input *GetGeoLocationInput) (req *reques return } +// GetGeoLocation API operation for Amazon Route 53. +// // Retrieves a single geo location. Send a GET request to the /2013-04-01/geolocation // resource with one of these options: continentcode | countrycode | countrycode // and subdivisioncode. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Route 53's +// API operation, GetGeoLocation for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// NoSuchGeoLocation +// InvalidInput func (c *Route53) GetGeoLocation(input *GetGeoLocationInput) (*GetGeoLocationOutput, error) { req, out := c.GetGeoLocationRequest(input) err := req.Send() @@ -1242,11 +1563,27 @@ func (c *Route53) GetHealthCheckRequest(input *GetHealthCheckInput) (req *reques return } +// GetHealthCheck API operation for Amazon Route 53. +// // Gets information about a specified health check. Send a GET request to the // /2013-04-01/healthcheck/health check ID resource. For more information about // using the console to perform this operation, see Amazon Route 53 Health Checks // and DNS Failover (http://docs.aws.amazon.com/Route53/latest/DeveloperGuide/dns-failover.html) // in the Amazon Route 53 Developer Guide. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Route 53's +// API operation, GetHealthCheck for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// NoSuchHealthCheck +// InvalidInput +// IncompatibleVersion func (c *Route53) GetHealthCheck(input *GetHealthCheckInput) (*GetHealthCheckOutput, error) { req, out := c.GetHealthCheckRequest(input) err := req.Send() @@ -1294,8 +1631,18 @@ func (c *Route53) GetHealthCheckCountRequest(input *GetHealthCheckCountInput) (r return } +// GetHealthCheckCount API operation for Amazon Route 53. +// // To retrieve a count of all your health checks, send a GET request to the // /2013-04-01/healthcheckcount resource. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Route 53's +// API operation, GetHealthCheckCount for more information, and other errors +// that the API operation could return. func (c *Route53) GetHealthCheckCount(input *GetHealthCheckCountInput) (*GetHealthCheckCountOutput, error) { req, out := c.GetHealthCheckCountRequest(input) err := req.Send() @@ -1343,10 +1690,25 @@ func (c *Route53) GetHealthCheckLastFailureReasonRequest(input *GetHealthCheckLa return } +// GetHealthCheckLastFailureReason API operation for Amazon Route 53. +// // If you want to learn why a health check is currently failing or why it failed // most recently (if at all), you can get the failure reason for the most recent // failure. Send a GET request to the /Amazon Route 53 API version/healthcheck/health // check ID/lastfailurereason resource. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Route 53's +// API operation, GetHealthCheckLastFailureReason for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// NoSuchHealthCheck +// InvalidInput func (c *Route53) GetHealthCheckLastFailureReason(input *GetHealthCheckLastFailureReasonInput) (*GetHealthCheckLastFailureReasonOutput, error) { req, out := c.GetHealthCheckLastFailureReasonRequest(input) err := req.Send() @@ -1394,9 +1756,24 @@ func (c *Route53) GetHealthCheckStatusRequest(input *GetHealthCheckStatusInput) return } +// GetHealthCheckStatus API operation for Amazon Route 53. +// // Gets status of a specified health check. Send a GET request to the /2013-04-01/healthcheck/health // check ID/status resource. You can use this call to get a health check's current // status. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Route 53's +// API operation, GetHealthCheckStatus for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// NoSuchHealthCheck +// InvalidInput func (c *Route53) GetHealthCheckStatus(input *GetHealthCheckStatusInput) (*GetHealthCheckStatusOutput, error) { req, out := c.GetHealthCheckStatusRequest(input) err := req.Send() @@ -1444,9 +1821,24 @@ func (c *Route53) GetHostedZoneRequest(input *GetHostedZoneInput) (req *request. return } +// GetHostedZone API operation for Amazon Route 53. +// // Retrieves the delegation set for a hosted zone, including the four name servers // assigned to the hosted zone. Send a GET request to the /Amazon Route 53 API // version/hostedzone/hosted zone ID resource. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Route 53's +// API operation, GetHostedZone for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// NoSuchHostedZone +// InvalidInput func (c *Route53) GetHostedZone(input *GetHostedZoneInput) (*GetHostedZoneOutput, error) { req, out := c.GetHostedZoneRequest(input) err := req.Send() @@ -1494,8 +1886,22 @@ func (c *Route53) GetHostedZoneCountRequest(input *GetHostedZoneCountInput) (req return } +// GetHostedZoneCount API operation for Amazon Route 53. +// // Retrieves a count of all your hosted zones. Send a GET request to the /2013-04-01/hostedzonecount // resource. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Route 53's +// API operation, GetHostedZoneCount for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidInput func (c *Route53) GetHostedZoneCount(input *GetHostedZoneCountInput) (*GetHostedZoneCountOutput, error) { req, out := c.GetHostedZoneCountRequest(input) err := req.Send() @@ -1543,8 +1949,24 @@ func (c *Route53) GetReusableDelegationSetRequest(input *GetReusableDelegationSe return } +// GetReusableDelegationSet API operation for Amazon Route 53. +// // Retrieves the reusable delegation set. Send a GET request to the /2013-04-01/delegationset/delegation // set ID resource. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Route 53's +// API operation, GetReusableDelegationSet for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// NoSuchDelegationSet +// DelegationSetNotReusable +// InvalidInput func (c *Route53) GetReusableDelegationSet(input *GetReusableDelegationSetInput) (*GetReusableDelegationSetOutput, error) { req, out := c.GetReusableDelegationSetRequest(input) err := req.Send() @@ -1592,9 +2014,24 @@ func (c *Route53) GetTrafficPolicyRequest(input *GetTrafficPolicyInput) (req *re return } +// GetTrafficPolicy API operation for Amazon Route 53. +// // Gets information about a specific traffic policy version. // // Send a GET request to the /Amazon Route 53 API version/trafficpolicy resource. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Route 53's +// API operation, GetTrafficPolicy for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// NoSuchTrafficPolicy +// InvalidInput func (c *Route53) GetTrafficPolicy(input *GetTrafficPolicyInput) (*GetTrafficPolicyOutput, error) { req, out := c.GetTrafficPolicyRequest(input) err := req.Send() @@ -1642,6 +2079,8 @@ func (c *Route53) GetTrafficPolicyInstanceRequest(input *GetTrafficPolicyInstanc return } +// GetTrafficPolicyInstance API operation for Amazon Route 53. +// // Gets information about a specified traffic policy instance. // // Send a GET request to the /Amazon Route 53 API version/trafficpolicyinstance @@ -1654,6 +2093,19 @@ func (c *Route53) GetTrafficPolicyInstanceRequest(input *GetTrafficPolicyInstanc // // In the Amazon Route 53 console, traffic policy instances are known as // policy records. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Route 53's +// API operation, GetTrafficPolicyInstance for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// NoSuchTrafficPolicyInstance +// InvalidInput func (c *Route53) GetTrafficPolicyInstance(input *GetTrafficPolicyInstanceInput) (*GetTrafficPolicyInstanceOutput, error) { req, out := c.GetTrafficPolicyInstanceRequest(input) err := req.Send() @@ -1701,11 +2153,21 @@ func (c *Route53) GetTrafficPolicyInstanceCountRequest(input *GetTrafficPolicyIn return } +// GetTrafficPolicyInstanceCount API operation for Amazon Route 53. +// // Gets the number of traffic policy instances that are associated with the // current AWS account. // // To get the number of traffic policy instances, send a GET request to the // /2013-04-01/trafficpolicyinstancecount resource. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Route 53's +// API operation, GetTrafficPolicyInstanceCount for more information, and other errors +// that the API operation could return. func (c *Route53) GetTrafficPolicyInstanceCount(input *GetTrafficPolicyInstanceCountInput) (*GetTrafficPolicyInstanceCountOutput, error) { req, out := c.GetTrafficPolicyInstanceCountRequest(input) err := req.Send() @@ -1756,8 +2218,23 @@ func (c *Route53) ListChangeBatchesByHostedZoneRequest(input *ListChangeBatchesB return } +// ListChangeBatchesByHostedZone API operation for Amazon Route 53. +// // Gets the list of ChangeBatches in a given time period for a given hosted // zone. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Route 53's +// API operation, ListChangeBatchesByHostedZone for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// NoSuchHostedZone +// InvalidInput func (c *Route53) ListChangeBatchesByHostedZone(input *ListChangeBatchesByHostedZoneInput) (*ListChangeBatchesByHostedZoneOutput, error) { req, out := c.ListChangeBatchesByHostedZoneRequest(input) err := req.Send() @@ -1808,8 +2285,23 @@ func (c *Route53) ListChangeBatchesByRRSetRequest(input *ListChangeBatchesByRRSe return } +// ListChangeBatchesByRRSet API operation for Amazon Route 53. +// // Gets the list of ChangeBatches in a given time period for a given hosted // zone and RRSet. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Route 53's +// API operation, ListChangeBatchesByRRSet for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// NoSuchHostedZone +// InvalidInput func (c *Route53) ListChangeBatchesByRRSet(input *ListChangeBatchesByRRSetInput) (*ListChangeBatchesByRRSetOutput, error) { req, out := c.ListChangeBatchesByRRSetRequest(input) err := req.Send() @@ -1857,6 +2349,8 @@ func (c *Route53) ListGeoLocationsRequest(input *ListGeoLocationsInput) (req *re return } +// ListGeoLocations API operation for Amazon Route 53. +// // Retrieves a list of supported geo locations. Send a GET request to the /2013-04-01/geolocations // resource. The response to this request includes a GeoLocationDetailsList // element for each location that Amazon Route 53 supports. @@ -1865,6 +2359,18 @@ func (c *Route53) ListGeoLocationsRequest(input *ListGeoLocationsInput) (req *re // 53 supports subdivisions for a country (for example, states or provinces), // the subdivisions for that country are listed in alphabetical order immediately // after the corresponding country. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Route 53's +// API operation, ListGeoLocations for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidInput func (c *Route53) ListGeoLocations(input *ListGeoLocationsInput) (*ListGeoLocationsOutput, error) { req, out := c.ListGeoLocationsRequest(input) err := req.Send() @@ -1918,6 +2424,8 @@ func (c *Route53) ListHealthChecksRequest(input *ListHealthChecksInput) (req *re return } +// ListHealthChecks API operation for Amazon Route 53. +// // Retrieve a list of your health checks. Send a GET request to the /2013-04-01/healthcheck // resource. The response to this request includes a HealthChecks element with // zero or more HealthCheck child elements. By default, the list of health checks @@ -1927,6 +2435,19 @@ func (c *Route53) ListHealthChecksRequest(input *ListHealthChecksInput) (req *re // // For information about listing health checks using the Amazon Route 53 console, // see Amazon Route 53 Health Checks and DNS Failover (http://docs.aws.amazon.com/Route53/latest/DeveloperGuide/dns-failover.html). +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Route 53's +// API operation, ListHealthChecks for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidInput +// IncompatibleVersion func (c *Route53) ListHealthChecks(input *ListHealthChecksInput) (*ListHealthChecksOutput, error) { req, out := c.ListHealthChecksRequest(input) err := req.Send() @@ -2005,6 +2526,8 @@ func (c *Route53) ListHostedZonesRequest(input *ListHostedZonesInput) (req *requ return } +// ListHostedZones API operation for Amazon Route 53. +// // To retrieve a list of your public and private hosted zones, send a GET request // to the /2013-04-01/hostedzone resource. The response to this request includes // a HostedZones child element for each hosted zone created by the current AWS @@ -2031,6 +2554,20 @@ func (c *Route53) ListHostedZonesRequest(input *ListHostedZonesInput) (req *requ // If you're making the second or subsequent call to ListHostedZones, the // Marker element matches the value that you specified in the marker parameter // in the previous request. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Route 53's +// API operation, ListHostedZones for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidInput +// NoSuchDelegationSet +// DelegationSetNotReusable func (c *Route53) ListHostedZones(input *ListHostedZonesInput) (*ListHostedZonesOutput, error) { req, out := c.ListHostedZonesRequest(input) err := req.Send() @@ -2103,6 +2640,8 @@ func (c *Route53) ListHostedZonesByNameRequest(input *ListHostedZonesByNameInput return } +// ListHostedZonesByName API operation for Amazon Route 53. +// // Retrieves a list of your hosted zones in lexicographic order. Send a GET // request to the /2013-04-01/hostedzonesbyname resource. The response includes // a HostedZones child element for each hosted zone created by the current AWS @@ -2153,6 +2692,19 @@ func (c *Route53) ListHostedZonesByNameRequest(input *ListHostedZonesByNameInput // with the current AWS account. If you want to list more hosted zones, make // another call to ListHostedZonesByName, and specify the value of NextDNSName // and NextHostedZoneId in the dnsname and hostedzoneid parameters, respectively. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Route 53's +// API operation, ListHostedZonesByName for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidInput +// InvalidDomainName func (c *Route53) ListHostedZonesByName(input *ListHostedZonesByNameInput) (*ListHostedZonesByNameOutput, error) { req, out := c.ListHostedZonesByNameRequest(input) err := req.Send() @@ -2206,6 +2758,20 @@ func (c *Route53) ListResourceRecordSetsRequest(input *ListResourceRecordSetsInp return } +// ListResourceRecordSets API operation for Amazon Route 53. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Route 53's +// API operation, ListResourceRecordSets for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// NoSuchHostedZone +// InvalidInput func (c *Route53) ListResourceRecordSets(input *ListResourceRecordSetsInput) (*ListResourceRecordSetsOutput, error) { req, out := c.ListResourceRecordSetsRequest(input) err := req.Send() @@ -2278,6 +2844,8 @@ func (c *Route53) ListReusableDelegationSetsRequest(input *ListReusableDelegatio return } +// ListReusableDelegationSets API operation for Amazon Route 53. +// // To retrieve a list of your reusable delegation sets, send a GET request to // the /2013-04-01/delegationset resource. The response to this request includes // a DelegationSets element with zero, one, or multiple DelegationSet child @@ -2288,6 +2856,18 @@ func (c *Route53) ListReusableDelegationSetsRequest(input *ListReusableDelegatio // // Amazon Route 53 returns a maximum of 100 items. If you set MaxItems to // a value greater than 100, Amazon Route 53 returns only the first 100. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Route 53's +// API operation, ListReusableDelegationSets for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidInput func (c *Route53) ListReusableDelegationSets(input *ListReusableDelegationSetsInput) (*ListReusableDelegationSetsOutput, error) { req, out := c.ListReusableDelegationSetsRequest(input) err := req.Send() @@ -2335,6 +2915,23 @@ func (c *Route53) ListTagsForResourceRequest(input *ListTagsForResourceInput) (r return } +// ListTagsForResource API operation for Amazon Route 53. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Route 53's +// API operation, ListTagsForResource for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidInput +// NoSuchHealthCheck +// NoSuchHostedZone +// PriorRequestNotComplete +// ThrottlingException func (c *Route53) ListTagsForResource(input *ListTagsForResourceInput) (*ListTagsForResourceOutput, error) { req, out := c.ListTagsForResourceRequest(input) err := req.Send() @@ -2382,6 +2979,23 @@ func (c *Route53) ListTagsForResourcesRequest(input *ListTagsForResourcesInput) return } +// ListTagsForResources API operation for Amazon Route 53. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Route 53's +// API operation, ListTagsForResources for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidInput +// NoSuchHealthCheck +// NoSuchHostedZone +// PriorRequestNotComplete +// ThrottlingException func (c *Route53) ListTagsForResources(input *ListTagsForResourcesInput) (*ListTagsForResourcesOutput, error) { req, out := c.ListTagsForResourcesRequest(input) err := req.Send() @@ -2429,6 +3043,8 @@ func (c *Route53) ListTrafficPoliciesRequest(input *ListTrafficPoliciesInput) (r return } +// ListTrafficPolicies API operation for Amazon Route 53. +// // Gets information about the latest version for every traffic policy that is // associated with the current AWS account. Send a GET request to the /Amazon // Route 53 API version/trafficpolicy resource. @@ -2463,6 +3079,18 @@ func (c *Route53) ListTrafficPoliciesRequest(input *ListTrafficPoliciesInput) (r // // The value that you specified for the MaxItems parameter in the request that // produced the current response. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Route 53's +// API operation, ListTrafficPolicies for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidInput func (c *Route53) ListTrafficPolicies(input *ListTrafficPoliciesInput) (*ListTrafficPoliciesOutput, error) { req, out := c.ListTrafficPoliciesRequest(input) err := req.Send() @@ -2510,6 +3138,8 @@ func (c *Route53) ListTrafficPolicyInstancesRequest(input *ListTrafficPolicyInst return } +// ListTrafficPolicyInstances API operation for Amazon Route 53. +// // Gets information about the traffic policy instances that you created by using // the current AWS account. // @@ -2549,6 +3179,19 @@ func (c *Route53) ListTrafficPolicyInstancesRequest(input *ListTrafficPolicyInst // and specify these values in the corresponding request parameters. // // If IsTruncated is false, all three elements are omitted from the response. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Route 53's +// API operation, ListTrafficPolicyInstances for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidInput +// NoSuchTrafficPolicyInstance func (c *Route53) ListTrafficPolicyInstances(input *ListTrafficPolicyInstancesInput) (*ListTrafficPolicyInstancesOutput, error) { req, out := c.ListTrafficPolicyInstancesRequest(input) err := req.Send() @@ -2596,6 +3239,8 @@ func (c *Route53) ListTrafficPolicyInstancesByHostedZoneRequest(input *ListTraff return } +// ListTrafficPolicyInstancesByHostedZone API operation for Amazon Route 53. +// // Gets information about the traffic policy instances that you created in a // specified hosted zone. // @@ -2635,6 +3280,20 @@ func (c *Route53) ListTrafficPolicyInstancesByHostedZoneRequest(input *ListTraff // and specify these values in the corresponding request parameters. // // If IsTruncated is false, all three elements are omitted from the response. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Route 53's +// API operation, ListTrafficPolicyInstancesByHostedZone for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidInput +// NoSuchTrafficPolicyInstance +// NoSuchHostedZone func (c *Route53) ListTrafficPolicyInstancesByHostedZone(input *ListTrafficPolicyInstancesByHostedZoneInput) (*ListTrafficPolicyInstancesByHostedZoneOutput, error) { req, out := c.ListTrafficPolicyInstancesByHostedZoneRequest(input) err := req.Send() @@ -2682,6 +3341,8 @@ func (c *Route53) ListTrafficPolicyInstancesByPolicyRequest(input *ListTrafficPo return } +// ListTrafficPolicyInstancesByPolicy API operation for Amazon Route 53. +// // Gets information about the traffic policy instances that you created by using // a specify traffic policy version. // @@ -2721,6 +3382,20 @@ func (c *Route53) ListTrafficPolicyInstancesByPolicyRequest(input *ListTrafficPo // and specify these values in the corresponding request parameters. // // If IsTruncated is false, all three elements are omitted from the response. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Route 53's +// API operation, ListTrafficPolicyInstancesByPolicy for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidInput +// NoSuchTrafficPolicyInstance +// NoSuchTrafficPolicy func (c *Route53) ListTrafficPolicyInstancesByPolicy(input *ListTrafficPolicyInstancesByPolicyInput) (*ListTrafficPolicyInstancesByPolicyOutput, error) { req, out := c.ListTrafficPolicyInstancesByPolicyRequest(input) err := req.Send() @@ -2768,6 +3443,8 @@ func (c *Route53) ListTrafficPolicyVersionsRequest(input *ListTrafficPolicyVersi return } +// ListTrafficPolicyVersions API operation for Amazon Route 53. +// // Gets information about all of the versions for a specified traffic policy. // // Send a GET request to the /Amazon Route 53 API version/trafficpolicy resource @@ -2802,6 +3479,19 @@ func (c *Route53) ListTrafficPolicyVersionsRequest(input *ListTrafficPolicyVersi // // The value that you specified for the MaxItems parameter in the request that // produced the current response. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Route 53's +// API operation, ListTrafficPolicyVersions for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidInput +// NoSuchTrafficPolicy func (c *Route53) ListTrafficPolicyVersions(input *ListTrafficPolicyVersionsInput) (*ListTrafficPolicyVersionsOutput, error) { req, out := c.ListTrafficPolicyVersionsRequest(input) err := req.Send() @@ -2849,6 +3539,20 @@ func (c *Route53) TestDNSAnswerRequest(input *TestDNSAnswerInput) (req *request. return } +// TestDNSAnswer API operation for Amazon Route 53. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Route 53's +// API operation, TestDNSAnswer for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// NoSuchHostedZone +// InvalidInput func (c *Route53) TestDNSAnswer(input *TestDNSAnswerInput) (*TestDNSAnswerOutput, error) { req, out := c.TestDNSAnswerRequest(input) err := req.Send() @@ -2896,6 +3600,8 @@ func (c *Route53) UpdateHealthCheckRequest(input *UpdateHealthCheckInput) (req * return } +// UpdateHealthCheck API operation for Amazon Route 53. +// // Updates an existing health check. // // Send a POST request to the /Amazon Route 53 API version/healthcheck/health @@ -2903,6 +3609,20 @@ func (c *Route53) UpdateHealthCheckRequest(input *UpdateHealthCheckInput) (req * // UpdateHealthCheckRequest element. For more information about updating health // checks, see Creating, Updating, and Deleting Health Checks (http://docs.aws.amazon.com/Route53/latest/DeveloperGuide/health-checks-creating-deleting.html) // in the Amazon Route 53 Developer Guide. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Route 53's +// API operation, UpdateHealthCheck for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// NoSuchHealthCheck +// InvalidInput +// HealthCheckVersionMismatch func (c *Route53) UpdateHealthCheck(input *UpdateHealthCheckInput) (*UpdateHealthCheckOutput, error) { req, out := c.UpdateHealthCheckRequest(input) err := req.Send() @@ -2950,8 +3670,23 @@ func (c *Route53) UpdateHostedZoneCommentRequest(input *UpdateHostedZoneCommentI return } +// UpdateHostedZoneComment API operation for Amazon Route 53. +// // Updates the hosted zone comment. Send a POST request to the /2013-04-01/hostedzone/hosted // zone ID resource. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Route 53's +// API operation, UpdateHostedZoneComment for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// NoSuchHostedZone +// InvalidInput func (c *Route53) UpdateHostedZoneComment(input *UpdateHostedZoneCommentInput) (*UpdateHostedZoneCommentOutput, error) { req, out := c.UpdateHostedZoneCommentRequest(input) err := req.Send() @@ -2999,12 +3734,28 @@ func (c *Route53) UpdateTrafficPolicyCommentRequest(input *UpdateTrafficPolicyCo return } +// UpdateTrafficPolicyComment API operation for Amazon Route 53. +// // Updates the comment for a specified traffic policy version. // // Send a POST request to the /Amazon Route 53 API version/trafficpolicy/ resource. // // The request body must include a document with an UpdateTrafficPolicyCommentRequest // element. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Route 53's +// API operation, UpdateTrafficPolicyComment for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidInput +// NoSuchTrafficPolicy +// ConcurrentModification func (c *Route53) UpdateTrafficPolicyComment(input *UpdateTrafficPolicyCommentInput) (*UpdateTrafficPolicyCommentOutput, error) { req, out := c.UpdateTrafficPolicyCommentRequest(input) err := req.Send() @@ -3052,6 +3803,8 @@ func (c *Route53) UpdateTrafficPolicyInstanceRequest(input *UpdateTrafficPolicyI return } +// UpdateTrafficPolicyInstance API operation for Amazon Route 53. +// // Updates the resource record sets in a specified hosted zone that were created // based on the settings in a specified traffic policy version. // @@ -3075,6 +3828,22 @@ func (c *Route53) UpdateTrafficPolicyInstanceRequest(input *UpdateTrafficPolicyI // // Amazon Route 53 deletes the old group of resource record sets that are // associated with the root resource record set name. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Route 53's +// API operation, UpdateTrafficPolicyInstance for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidInput +// NoSuchTrafficPolicy +// NoSuchTrafficPolicyInstance +// PriorRequestNotComplete +// ConflictingTypes func (c *Route53) UpdateTrafficPolicyInstance(input *UpdateTrafficPolicyInstanceInput) (*UpdateTrafficPolicyInstanceOutput, error) { req, out := c.UpdateTrafficPolicyInstanceRequest(input) err := req.Send() diff --git a/service/route53domains/api.go b/service/route53domains/api.go index 458222364ac..f66a5075f87 100644 --- a/service/route53domains/api.go +++ b/service/route53domains/api.go @@ -52,9 +52,24 @@ func (c *Route53Domains) CheckDomainAvailabilityRequest(input *CheckDomainAvaila return } +// CheckDomainAvailability API operation for Amazon Route 53 Domains. +// // This operation checks the availability of one domain name. Note that if the // availability status of a domain is pending, you must submit another request // to determine the availability of the domain name. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Route 53 Domains's +// API operation, CheckDomainAvailability for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidInput +// UnsupportedTLD func (c *Route53Domains) CheckDomainAvailability(input *CheckDomainAvailabilityInput) (*CheckDomainAvailabilityOutput, error) { req, out := c.CheckDomainAvailabilityRequest(input) err := req.Send() @@ -102,10 +117,26 @@ func (c *Route53Domains) DeleteTagsForDomainRequest(input *DeleteTagsForDomainIn return } +// DeleteTagsForDomain API operation for Amazon Route 53 Domains. +// // This operation deletes the specified tags for a domain. // // All tag operations are eventually consistent; subsequent operations may // not immediately represent all issued operations. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Route 53 Domains's +// API operation, DeleteTagsForDomain for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidInput +// OperationLimitExceeded +// UnsupportedTLD func (c *Route53Domains) DeleteTagsForDomain(input *DeleteTagsForDomainInput) (*DeleteTagsForDomainOutput, error) { req, out := c.DeleteTagsForDomainRequest(input) err := req.Send() @@ -153,8 +184,23 @@ func (c *Route53Domains) DisableDomainAutoRenewRequest(input *DisableDomainAutoR return } +// DisableDomainAutoRenew API operation for Amazon Route 53 Domains. +// // This operation disables automatic renewal of domain registration for the // specified domain. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Route 53 Domains's +// API operation, DisableDomainAutoRenew for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidInput +// UnsupportedTLD func (c *Route53Domains) DisableDomainAutoRenew(input *DisableDomainAutoRenewInput) (*DisableDomainAutoRenewOutput, error) { req, out := c.DisableDomainAutoRenewRequest(input) err := req.Send() @@ -202,6 +248,8 @@ func (c *Route53Domains) DisableDomainTransferLockRequest(input *DisableDomainTr return } +// DisableDomainTransferLock API operation for Amazon Route 53 Domains. +// // This operation removes the transfer lock on the domain (specifically the // clientTransferProhibited status) to allow domain transfers. We recommend // you refrain from performing this action unless you intend to transfer the @@ -209,6 +257,22 @@ func (c *Route53Domains) DisableDomainTransferLockRequest(input *DisableDomainTr // ID that you can use to track the progress and completion of the action. If // the request is not completed successfully, the domain registrant will be // notified by email. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Route 53 Domains's +// API operation, DisableDomainTransferLock for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidInput +// DuplicateRequest +// TLDRulesViolation +// OperationLimitExceeded +// UnsupportedTLD func (c *Route53Domains) DisableDomainTransferLock(input *DisableDomainTransferLockInput) (*DisableDomainTransferLockOutput, error) { req, out := c.DisableDomainTransferLockRequest(input) err := req.Send() @@ -256,6 +320,8 @@ func (c *Route53Domains) EnableDomainAutoRenewRequest(input *EnableDomainAutoRen return } +// EnableDomainAutoRenew API operation for Amazon Route 53 Domains. +// // This operation configures Amazon Route 53 to automatically renew the specified // domain before the domain registration expires. The cost of renewing your // domain registration is billed to your AWS account. @@ -266,6 +332,20 @@ func (c *Route53Domains) EnableDomainAutoRenewRequest(input *EnableDomainAutoRen // on the website for our registrar partner, Gandi. Route 53 requires that you // renew before the end of the renewal period that is listed on the Gandi website // so we can complete processing before the deadline. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Route 53 Domains's +// API operation, EnableDomainAutoRenew for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidInput +// UnsupportedTLD +// TLDRulesViolation func (c *Route53Domains) EnableDomainAutoRenew(input *EnableDomainAutoRenewInput) (*EnableDomainAutoRenewOutput, error) { req, out := c.EnableDomainAutoRenewRequest(input) err := req.Send() @@ -313,11 +393,29 @@ func (c *Route53Domains) EnableDomainTransferLockRequest(input *EnableDomainTran return } +// EnableDomainTransferLock API operation for Amazon Route 53 Domains. +// // This operation sets the transfer lock on the domain (specifically the clientTransferProhibited // status) to prevent domain transfers. Successful submission returns an operation // ID that you can use to track the progress and completion of the action. If // the request is not completed successfully, the domain registrant will be // notified by email. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Route 53 Domains's +// API operation, EnableDomainTransferLock for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidInput +// DuplicateRequest +// TLDRulesViolation +// OperationLimitExceeded +// UnsupportedTLD func (c *Route53Domains) EnableDomainTransferLock(input *EnableDomainTransferLockInput) (*EnableDomainTransferLockOutput, error) { req, out := c.EnableDomainTransferLockRequest(input) err := req.Send() @@ -365,12 +463,28 @@ func (c *Route53Domains) GetContactReachabilityStatusRequest(input *GetContactRe return } +// GetContactReachabilityStatus API operation for Amazon Route 53 Domains. +// // For operations that require confirmation that the email address for the registrant // contact is valid, such as registering a new domain, this operation returns // information about whether the registrant contact has responded. // // If you want us to resend the email, use the ResendContactReachabilityEmail // operation. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Route 53 Domains's +// API operation, GetContactReachabilityStatus for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidInput +// OperationLimitExceeded +// UnsupportedTLD func (c *Route53Domains) GetContactReachabilityStatus(input *GetContactReachabilityStatusInput) (*GetContactReachabilityStatusOutput, error) { req, out := c.GetContactReachabilityStatusRequest(input) err := req.Send() @@ -418,8 +532,23 @@ func (c *Route53Domains) GetDomainDetailRequest(input *GetDomainDetailInput) (re return } +// GetDomainDetail API operation for Amazon Route 53 Domains. +// // This operation returns detailed information about the domain. The domain's // contact information is also returned as part of the output. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Route 53 Domains's +// API operation, GetDomainDetail for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidInput +// UnsupportedTLD func (c *Route53Domains) GetDomainDetail(input *GetDomainDetailInput) (*GetDomainDetailOutput, error) { req, out := c.GetDomainDetailRequest(input) err := req.Send() @@ -467,6 +596,8 @@ func (c *Route53Domains) GetDomainSuggestionsRequest(input *GetDomainSuggestions return } +// GetDomainSuggestions API operation for Amazon Route 53 Domains. +// // The GetDomainSuggestions operation returns a list of suggested domain names // given a string, which can either be a domain name or simply a word or phrase // (without spaces). @@ -479,6 +610,19 @@ func (c *Route53Domains) GetDomainSuggestionsRequest(input *GetDomainSuggestions // returned without checking whether the domain is actually available, and caller // will have to call checkDomainAvailability for each suggestion to determine // availability for registration. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Route 53 Domains's +// API operation, GetDomainSuggestions for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidInput +// UnsupportedTLD func (c *Route53Domains) GetDomainSuggestions(input *GetDomainSuggestionsInput) (*GetDomainSuggestionsOutput, error) { req, out := c.GetDomainSuggestionsRequest(input) err := req.Send() @@ -526,7 +670,21 @@ func (c *Route53Domains) GetOperationDetailRequest(input *GetOperationDetailInpu return } +// GetOperationDetail API operation for Amazon Route 53 Domains. +// // This operation returns the current status of an operation that is not completed. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Route 53 Domains's +// API operation, GetOperationDetail for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidInput func (c *Route53Domains) GetOperationDetail(input *GetOperationDetailInput) (*GetOperationDetailOutput, error) { req, out := c.GetOperationDetailRequest(input) err := req.Send() @@ -580,8 +738,22 @@ func (c *Route53Domains) ListDomainsRequest(input *ListDomainsInput) (req *reque return } +// ListDomains API operation for Amazon Route 53 Domains. +// // This operation returns all the domain names registered with Amazon Route // 53 for the current AWS account. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Route 53 Domains's +// API operation, ListDomains for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidInput func (c *Route53Domains) ListDomains(input *ListDomainsInput) (*ListDomainsOutput, error) { req, out := c.ListDomainsRequest(input) err := req.Send() @@ -660,7 +832,21 @@ func (c *Route53Domains) ListOperationsRequest(input *ListOperationsInput) (req return } +// ListOperations API operation for Amazon Route 53 Domains. +// // This operation returns the operation IDs of operations that are not yet complete. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Route 53 Domains's +// API operation, ListOperations for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidInput func (c *Route53Domains) ListOperations(input *ListOperationsInput) (*ListOperationsOutput, error) { req, out := c.ListOperationsRequest(input) err := req.Send() @@ -733,11 +919,27 @@ func (c *Route53Domains) ListTagsForDomainRequest(input *ListTagsForDomainInput) return } +// ListTagsForDomain API operation for Amazon Route 53 Domains. +// // This operation returns all of the tags that are associated with the specified // domain. // // All tag operations are eventually consistent; subsequent operations may // not immediately represent all issued operations. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Route 53 Domains's +// API operation, ListTagsForDomain for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidInput +// OperationLimitExceeded +// UnsupportedTLD func (c *Route53Domains) ListTagsForDomain(input *ListTagsForDomainInput) (*ListTagsForDomainOutput, error) { req, out := c.ListTagsForDomainRequest(input) err := req.Send() @@ -785,6 +987,8 @@ func (c *Route53Domains) RegisterDomainRequest(input *RegisterDomainInput) (req return } +// RegisterDomain API operation for Amazon Route 53 Domains. +// // This operation registers a domain. Domains are registered by the AWS registrar // partner, Gandi. For some top-level domains (TLDs), this operation requires // extra parameters. @@ -804,6 +1008,23 @@ func (c *Route53Domains) RegisterDomainRequest(input *RegisterDomainInput) (req // successfully, the domain registrant is notified by email. Charges your AWS // account an amount based on the top-level domain. For more information, see // Amazon Route 53 Pricing (http://aws.amazon.com/route53/pricing/). +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Route 53 Domains's +// API operation, RegisterDomain for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidInput +// UnsupportedTLD +// DuplicateRequest +// TLDRulesViolation +// DomainLimitExceeded +// OperationLimitExceeded func (c *Route53Domains) RegisterDomain(input *RegisterDomainInput) (*RegisterDomainOutput, error) { req, out := c.RegisterDomainRequest(input) err := req.Send() @@ -851,6 +1072,8 @@ func (c *Route53Domains) RenewDomainRequest(input *RenewDomainInput) (req *reque return } +// RenewDomain API operation for Amazon Route 53 Domains. +// // This operation renews a domain for the specified number of years. The cost // of renewing your domain is billed to your AWS account. // @@ -859,6 +1082,22 @@ func (c *Route53Domains) RenewDomainRequest(input *RenewDomainInput) (req *reque // haven't renewed far enough in advance. For more information about renewing // domain registration, see Renewing Registration for a Domain (http://docs.aws.amazon.com/console/route53/domain-renew) // in the Amazon Route 53 documentation. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Route 53 Domains's +// API operation, RenewDomain for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidInput +// UnsupportedTLD +// DuplicateRequest +// TLDRulesViolation +// OperationLimitExceeded func (c *Route53Domains) RenewDomain(input *RenewDomainInput) (*RenewDomainOutput, error) { req, out := c.RenewDomainRequest(input) err := req.Send() @@ -906,9 +1145,25 @@ func (c *Route53Domains) ResendContactReachabilityEmailRequest(input *ResendCont return } +// ResendContactReachabilityEmail API operation for Amazon Route 53 Domains. +// // For operations that require confirmation that the email address for the registrant // contact is valid, such as registering a new domain, this operation resends // the confirmation email to the current email address for the registrant contact. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Route 53 Domains's +// API operation, ResendContactReachabilityEmail for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidInput +// OperationLimitExceeded +// UnsupportedTLD func (c *Route53Domains) ResendContactReachabilityEmail(input *ResendContactReachabilityEmailInput) (*ResendContactReachabilityEmailOutput, error) { req, out := c.ResendContactReachabilityEmailRequest(input) err := req.Send() @@ -956,8 +1211,23 @@ func (c *Route53Domains) RetrieveDomainAuthCodeRequest(input *RetrieveDomainAuth return } +// RetrieveDomainAuthCode API operation for Amazon Route 53 Domains. +// // This operation returns the AuthCode for the domain. To transfer a domain // to another registrar, you provide this value to the new registrar. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Route 53 Domains's +// API operation, RetrieveDomainAuthCode for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidInput +// UnsupportedTLD func (c *Route53Domains) RetrieveDomainAuthCode(input *RetrieveDomainAuthCodeInput) (*RetrieveDomainAuthCodeOutput, error) { req, out := c.RetrieveDomainAuthCodeRequest(input) err := req.Send() @@ -1005,6 +1275,8 @@ func (c *Route53Domains) TransferDomainRequest(input *TransferDomainInput) (req return } +// TransferDomain API operation for Amazon Route 53 Domains. +// // This operation transfers a domain from another registrar to Amazon Route // 53. When the transfer is complete, the domain is registered with the AWS // registrar partner, Gandi. @@ -1029,6 +1301,23 @@ func (c *Route53Domains) TransferDomainRequest(input *TransferDomainInput) (req // operation ID that you can use to track the progress and completion of the // action. If the transfer doesn't complete successfully, the domain registrant // will be notified by email. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Route 53 Domains's +// API operation, TransferDomain for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidInput +// UnsupportedTLD +// DuplicateRequest +// TLDRulesViolation +// DomainLimitExceeded +// OperationLimitExceeded func (c *Route53Domains) TransferDomain(input *TransferDomainInput) (*TransferDomainOutput, error) { req, out := c.TransferDomainRequest(input) err := req.Send() @@ -1076,6 +1365,8 @@ func (c *Route53Domains) UpdateDomainContactRequest(input *UpdateDomainContactIn return } +// UpdateDomainContact API operation for Amazon Route 53 Domains. +// // This operation updates the contact information for a particular domain. Information // for at least one contact (registrant, administrator, or technical) must be // supplied for update. @@ -1084,6 +1375,22 @@ func (c *Route53Domains) UpdateDomainContactRequest(input *UpdateDomainContactIn // can use to track the progress and completion of the action. If the request // is not completed successfully, the domain registrant will be notified by // email. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Route 53 Domains's +// API operation, UpdateDomainContact for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidInput +// DuplicateRequest +// TLDRulesViolation +// OperationLimitExceeded +// UnsupportedTLD func (c *Route53Domains) UpdateDomainContact(input *UpdateDomainContactInput) (*UpdateDomainContactOutput, error) { req, out := c.UpdateDomainContactRequest(input) err := req.Send() @@ -1131,6 +1438,8 @@ func (c *Route53Domains) UpdateDomainContactPrivacyRequest(input *UpdateDomainCo return } +// UpdateDomainContactPrivacy API operation for Amazon Route 53 Domains. +// // This operation updates the specified domain contact's privacy setting. When // the privacy option is enabled, personal information such as postal or email // address is hidden from the results of a public WHOIS query. The privacy services @@ -1142,6 +1451,22 @@ func (c *Route53Domains) UpdateDomainContactPrivacyRequest(input *UpdateDomainCo // you can use with GetOperationDetail to track the progress and completion // of the action. If the request is not completed successfully, the domain registrant // will be notified by email. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Route 53 Domains's +// API operation, UpdateDomainContactPrivacy for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidInput +// DuplicateRequest +// TLDRulesViolation +// OperationLimitExceeded +// UnsupportedTLD func (c *Route53Domains) UpdateDomainContactPrivacy(input *UpdateDomainContactPrivacyInput) (*UpdateDomainContactPrivacyOutput, error) { req, out := c.UpdateDomainContactPrivacyRequest(input) err := req.Send() @@ -1189,6 +1514,8 @@ func (c *Route53Domains) UpdateDomainNameserversRequest(input *UpdateDomainNames return } +// UpdateDomainNameservers API operation for Amazon Route 53 Domains. +// // This operation replaces the current set of name servers for the domain with // the specified set of name servers. If you use Amazon Route 53 as your DNS // service, specify the four name servers in the delegation set for the hosted @@ -1197,6 +1524,22 @@ func (c *Route53Domains) UpdateDomainNameserversRequest(input *UpdateDomainNames // If successful, this operation returns an operation ID that you can use to // track the progress and completion of the action. If the request is not completed // successfully, the domain registrant will be notified by email. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Route 53 Domains's +// API operation, UpdateDomainNameservers for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidInput +// DuplicateRequest +// TLDRulesViolation +// OperationLimitExceeded +// UnsupportedTLD func (c *Route53Domains) UpdateDomainNameservers(input *UpdateDomainNameserversInput) (*UpdateDomainNameserversOutput, error) { req, out := c.UpdateDomainNameserversRequest(input) err := req.Send() @@ -1244,10 +1587,26 @@ func (c *Route53Domains) UpdateTagsForDomainRequest(input *UpdateTagsForDomainIn return } +// UpdateTagsForDomain API operation for Amazon Route 53 Domains. +// // This operation adds or updates tags for a specified domain. // // All tag operations are eventually consistent; subsequent operations may // not immediately represent all issued operations. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Route 53 Domains's +// API operation, UpdateTagsForDomain for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidInput +// OperationLimitExceeded +// UnsupportedTLD func (c *Route53Domains) UpdateTagsForDomain(input *UpdateTagsForDomainInput) (*UpdateTagsForDomainOutput, error) { req, out := c.UpdateTagsForDomainRequest(input) err := req.Send() @@ -1295,8 +1654,22 @@ func (c *Route53Domains) ViewBillingRequest(input *ViewBillingInput) (req *reque return } +// ViewBilling API operation for Amazon Route 53 Domains. +// // This operation returns all the domain-related billing records for the current // AWS account for a specified period +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Route 53 Domains's +// API operation, ViewBilling for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidInput func (c *Route53Domains) ViewBilling(input *ViewBillingInput) (*ViewBillingOutput, error) { req, out := c.ViewBillingRequest(input) err := req.Send() diff --git a/service/s3/api.go b/service/s3/api.go index c71b6ebe0ea..0e836aef430 100644 --- a/service/s3/api.go +++ b/service/s3/api.go @@ -55,11 +55,25 @@ func (c *S3) AbortMultipartUploadRequest(input *AbortMultipartUploadInput) (req return } +// AbortMultipartUpload API operation for Amazon Simple Storage Service. +// // Aborts a multipart upload. // // To verify that all parts have been removed, so you don't get charged for // the part storage, you should call the List Parts operation and ensure the // parts list is empty. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Simple Storage Service's +// API operation, AbortMultipartUpload for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// NoSuchUpload func (c *S3) AbortMultipartUpload(input *AbortMultipartUploadInput) (*AbortMultipartUploadOutput, error) { req, out := c.AbortMultipartUploadRequest(input) err := req.Send() @@ -107,7 +121,17 @@ func (c *S3) CompleteMultipartUploadRequest(input *CompleteMultipartUploadInput) return } +// CompleteMultipartUpload API operation for Amazon Simple Storage Service. +// // Completes a multipart upload by assembling previously uploaded parts. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Simple Storage Service's +// API operation, CompleteMultipartUpload for more information, and other errors +// that the API operation could return. func (c *S3) CompleteMultipartUpload(input *CompleteMultipartUploadInput) (*CompleteMultipartUploadOutput, error) { req, out := c.CompleteMultipartUploadRequest(input) err := req.Send() @@ -155,7 +179,21 @@ func (c *S3) CopyObjectRequest(input *CopyObjectInput) (req *request.Request, ou return } +// CopyObject API operation for Amazon Simple Storage Service. +// // Creates a copy of an object that is already stored in Amazon S3. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Simple Storage Service's +// API operation, CopyObject for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ObjectNotInActiveTierError func (c *S3) CopyObject(input *CopyObjectInput) (*CopyObjectOutput, error) { req, out := c.CopyObjectRequest(input) err := req.Send() @@ -203,7 +241,22 @@ func (c *S3) CreateBucketRequest(input *CreateBucketInput) (req *request.Request return } +// CreateBucket API operation for Amazon Simple Storage Service. +// // Creates a new bucket. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Simple Storage Service's +// API operation, CreateBucket for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// BucketAlreadyExists +// BucketAlreadyOwnedByYou func (c *S3) CreateBucket(input *CreateBucketInput) (*CreateBucketOutput, error) { req, out := c.CreateBucketRequest(input) err := req.Send() @@ -251,6 +304,8 @@ func (c *S3) CreateMultipartUploadRequest(input *CreateMultipartUploadInput) (re return } +// CreateMultipartUpload API operation for Amazon Simple Storage Service. +// // Initiates a multipart upload and returns an upload ID. // // Note: After you initiate multipart upload and upload one or more parts, you @@ -258,6 +313,14 @@ func (c *S3) CreateMultipartUploadRequest(input *CreateMultipartUploadInput) (re // for storage of the uploaded parts. Only after you either complete or abort // multipart upload, Amazon S3 frees up the parts storage and stops charging // you for the parts storage. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Simple Storage Service's +// API operation, CreateMultipartUpload for more information, and other errors +// that the API operation could return. func (c *S3) CreateMultipartUpload(input *CreateMultipartUploadInput) (*CreateMultipartUploadOutput, error) { req, out := c.CreateMultipartUploadRequest(input) err := req.Send() @@ -307,8 +370,18 @@ func (c *S3) DeleteBucketRequest(input *DeleteBucketInput) (req *request.Request return } +// DeleteBucket API operation for Amazon Simple Storage Service. +// // Deletes the bucket. All objects (including all object versions and Delete // Markers) in the bucket must be deleted before the bucket itself can be deleted. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Simple Storage Service's +// API operation, DeleteBucket for more information, and other errors +// that the API operation could return. func (c *S3) DeleteBucket(input *DeleteBucketInput) (*DeleteBucketOutput, error) { req, out := c.DeleteBucketRequest(input) err := req.Send() @@ -358,7 +431,17 @@ func (c *S3) DeleteBucketCorsRequest(input *DeleteBucketCorsInput) (req *request return } +// DeleteBucketCors API operation for Amazon Simple Storage Service. +// // Deletes the cors configuration information set for the bucket. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Simple Storage Service's +// API operation, DeleteBucketCors for more information, and other errors +// that the API operation could return. func (c *S3) DeleteBucketCors(input *DeleteBucketCorsInput) (*DeleteBucketCorsOutput, error) { req, out := c.DeleteBucketCorsRequest(input) err := req.Send() @@ -408,7 +491,17 @@ func (c *S3) DeleteBucketLifecycleRequest(input *DeleteBucketLifecycleInput) (re return } +// DeleteBucketLifecycle API operation for Amazon Simple Storage Service. +// // Deletes the lifecycle configuration from the bucket. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Simple Storage Service's +// API operation, DeleteBucketLifecycle for more information, and other errors +// that the API operation could return. func (c *S3) DeleteBucketLifecycle(input *DeleteBucketLifecycleInput) (*DeleteBucketLifecycleOutput, error) { req, out := c.DeleteBucketLifecycleRequest(input) err := req.Send() @@ -458,7 +551,17 @@ func (c *S3) DeleteBucketPolicyRequest(input *DeleteBucketPolicyInput) (req *req return } +// DeleteBucketPolicy API operation for Amazon Simple Storage Service. +// // Deletes the policy from the bucket. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Simple Storage Service's +// API operation, DeleteBucketPolicy for more information, and other errors +// that the API operation could return. func (c *S3) DeleteBucketPolicy(input *DeleteBucketPolicyInput) (*DeleteBucketPolicyOutput, error) { req, out := c.DeleteBucketPolicyRequest(input) err := req.Send() @@ -508,7 +611,17 @@ func (c *S3) DeleteBucketReplicationRequest(input *DeleteBucketReplicationInput) return } +// DeleteBucketReplication API operation for Amazon Simple Storage Service. +// // Deletes the replication configuration from the bucket. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Simple Storage Service's +// API operation, DeleteBucketReplication for more information, and other errors +// that the API operation could return. func (c *S3) DeleteBucketReplication(input *DeleteBucketReplicationInput) (*DeleteBucketReplicationOutput, error) { req, out := c.DeleteBucketReplicationRequest(input) err := req.Send() @@ -558,7 +671,17 @@ func (c *S3) DeleteBucketTaggingRequest(input *DeleteBucketTaggingInput) (req *r return } +// DeleteBucketTagging API operation for Amazon Simple Storage Service. +// // Deletes the tags from the bucket. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Simple Storage Service's +// API operation, DeleteBucketTagging for more information, and other errors +// that the API operation could return. func (c *S3) DeleteBucketTagging(input *DeleteBucketTaggingInput) (*DeleteBucketTaggingOutput, error) { req, out := c.DeleteBucketTaggingRequest(input) err := req.Send() @@ -608,7 +731,17 @@ func (c *S3) DeleteBucketWebsiteRequest(input *DeleteBucketWebsiteInput) (req *r return } +// DeleteBucketWebsite API operation for Amazon Simple Storage Service. +// // This operation removes the website configuration from the bucket. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Simple Storage Service's +// API operation, DeleteBucketWebsite for more information, and other errors +// that the API operation could return. func (c *S3) DeleteBucketWebsite(input *DeleteBucketWebsiteInput) (*DeleteBucketWebsiteOutput, error) { req, out := c.DeleteBucketWebsiteRequest(input) err := req.Send() @@ -656,9 +789,19 @@ func (c *S3) DeleteObjectRequest(input *DeleteObjectInput) (req *request.Request return } +// DeleteObject API operation for Amazon Simple Storage Service. +// // Removes the null version (if there is one) of an object and inserts a delete // marker, which becomes the latest version of the object. If there isn't a // null version, Amazon S3 does not remove any objects. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Simple Storage Service's +// API operation, DeleteObject for more information, and other errors +// that the API operation could return. func (c *S3) DeleteObject(input *DeleteObjectInput) (*DeleteObjectOutput, error) { req, out := c.DeleteObjectRequest(input) err := req.Send() @@ -706,8 +849,18 @@ func (c *S3) DeleteObjectsRequest(input *DeleteObjectsInput) (req *request.Reque return } +// DeleteObjects API operation for Amazon Simple Storage Service. +// // This operation enables you to delete multiple objects from a bucket using // a single HTTP request. You may specify up to 1000 keys. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Simple Storage Service's +// API operation, DeleteObjects for more information, and other errors +// that the API operation could return. func (c *S3) DeleteObjects(input *DeleteObjectsInput) (*DeleteObjectsOutput, error) { req, out := c.DeleteObjectsRequest(input) err := req.Send() @@ -755,7 +908,17 @@ func (c *S3) GetBucketAccelerateConfigurationRequest(input *GetBucketAccelerateC return } +// GetBucketAccelerateConfiguration API operation for Amazon Simple Storage Service. +// // Returns the accelerate configuration of a bucket. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Simple Storage Service's +// API operation, GetBucketAccelerateConfiguration for more information, and other errors +// that the API operation could return. func (c *S3) GetBucketAccelerateConfiguration(input *GetBucketAccelerateConfigurationInput) (*GetBucketAccelerateConfigurationOutput, error) { req, out := c.GetBucketAccelerateConfigurationRequest(input) err := req.Send() @@ -803,7 +966,17 @@ func (c *S3) GetBucketAclRequest(input *GetBucketAclInput) (req *request.Request return } +// GetBucketAcl API operation for Amazon Simple Storage Service. +// // Gets the access control policy for the bucket. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Simple Storage Service's +// API operation, GetBucketAcl for more information, and other errors +// that the API operation could return. func (c *S3) GetBucketAcl(input *GetBucketAclInput) (*GetBucketAclOutput, error) { req, out := c.GetBucketAclRequest(input) err := req.Send() @@ -851,7 +1024,17 @@ func (c *S3) GetBucketCorsRequest(input *GetBucketCorsInput) (req *request.Reque return } +// GetBucketCors API operation for Amazon Simple Storage Service. +// // Returns the cors configuration for the bucket. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Simple Storage Service's +// API operation, GetBucketCors for more information, and other errors +// that the API operation could return. func (c *S3) GetBucketCors(input *GetBucketCorsInput) (*GetBucketCorsOutput, error) { req, out := c.GetBucketCorsRequest(input) err := req.Send() @@ -902,7 +1085,17 @@ func (c *S3) GetBucketLifecycleRequest(input *GetBucketLifecycleInput) (req *req return } +// GetBucketLifecycle API operation for Amazon Simple Storage Service. +// // Deprecated, see the GetBucketLifecycleConfiguration operation. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Simple Storage Service's +// API operation, GetBucketLifecycle for more information, and other errors +// that the API operation could return. func (c *S3) GetBucketLifecycle(input *GetBucketLifecycleInput) (*GetBucketLifecycleOutput, error) { req, out := c.GetBucketLifecycleRequest(input) err := req.Send() @@ -950,7 +1143,17 @@ func (c *S3) GetBucketLifecycleConfigurationRequest(input *GetBucketLifecycleCon return } +// GetBucketLifecycleConfiguration API operation for Amazon Simple Storage Service. +// // Returns the lifecycle configuration information set on the bucket. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Simple Storage Service's +// API operation, GetBucketLifecycleConfiguration for more information, and other errors +// that the API operation could return. func (c *S3) GetBucketLifecycleConfiguration(input *GetBucketLifecycleConfigurationInput) (*GetBucketLifecycleConfigurationOutput, error) { req, out := c.GetBucketLifecycleConfigurationRequest(input) err := req.Send() @@ -998,7 +1201,17 @@ func (c *S3) GetBucketLocationRequest(input *GetBucketLocationInput) (req *reque return } +// GetBucketLocation API operation for Amazon Simple Storage Service. +// // Returns the region the bucket resides in. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Simple Storage Service's +// API operation, GetBucketLocation for more information, and other errors +// that the API operation could return. func (c *S3) GetBucketLocation(input *GetBucketLocationInput) (*GetBucketLocationOutput, error) { req, out := c.GetBucketLocationRequest(input) err := req.Send() @@ -1046,8 +1259,18 @@ func (c *S3) GetBucketLoggingRequest(input *GetBucketLoggingInput) (req *request return } +// GetBucketLogging API operation for Amazon Simple Storage Service. +// // Returns the logging status of a bucket and the permissions users have to // view and modify that status. To use GET, you must be the bucket owner. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Simple Storage Service's +// API operation, GetBucketLogging for more information, and other errors +// that the API operation could return. func (c *S3) GetBucketLogging(input *GetBucketLoggingInput) (*GetBucketLoggingOutput, error) { req, out := c.GetBucketLoggingRequest(input) err := req.Send() @@ -1098,7 +1321,17 @@ func (c *S3) GetBucketNotificationRequest(input *GetBucketNotificationConfigurat return } +// GetBucketNotification API operation for Amazon Simple Storage Service. +// // Deprecated, see the GetBucketNotificationConfiguration operation. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Simple Storage Service's +// API operation, GetBucketNotification for more information, and other errors +// that the API operation could return. func (c *S3) GetBucketNotification(input *GetBucketNotificationConfigurationRequest) (*NotificationConfigurationDeprecated, error) { req, out := c.GetBucketNotificationRequest(input) err := req.Send() @@ -1146,7 +1379,17 @@ func (c *S3) GetBucketNotificationConfigurationRequest(input *GetBucketNotificat return } +// GetBucketNotificationConfiguration API operation for Amazon Simple Storage Service. +// // Returns the notification configuration of a bucket. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Simple Storage Service's +// API operation, GetBucketNotificationConfiguration for more information, and other errors +// that the API operation could return. func (c *S3) GetBucketNotificationConfiguration(input *GetBucketNotificationConfigurationRequest) (*NotificationConfiguration, error) { req, out := c.GetBucketNotificationConfigurationRequest(input) err := req.Send() @@ -1194,7 +1437,17 @@ func (c *S3) GetBucketPolicyRequest(input *GetBucketPolicyInput) (req *request.R return } +// GetBucketPolicy API operation for Amazon Simple Storage Service. +// // Returns the policy of a specified bucket. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Simple Storage Service's +// API operation, GetBucketPolicy for more information, and other errors +// that the API operation could return. func (c *S3) GetBucketPolicy(input *GetBucketPolicyInput) (*GetBucketPolicyOutput, error) { req, out := c.GetBucketPolicyRequest(input) err := req.Send() @@ -1242,7 +1495,17 @@ func (c *S3) GetBucketReplicationRequest(input *GetBucketReplicationInput) (req return } +// GetBucketReplication API operation for Amazon Simple Storage Service. +// // Returns the replication configuration of a bucket. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Simple Storage Service's +// API operation, GetBucketReplication for more information, and other errors +// that the API operation could return. func (c *S3) GetBucketReplication(input *GetBucketReplicationInput) (*GetBucketReplicationOutput, error) { req, out := c.GetBucketReplicationRequest(input) err := req.Send() @@ -1290,7 +1553,17 @@ func (c *S3) GetBucketRequestPaymentRequest(input *GetBucketRequestPaymentInput) return } +// GetBucketRequestPayment API operation for Amazon Simple Storage Service. +// // Returns the request payment configuration of a bucket. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Simple Storage Service's +// API operation, GetBucketRequestPayment for more information, and other errors +// that the API operation could return. func (c *S3) GetBucketRequestPayment(input *GetBucketRequestPaymentInput) (*GetBucketRequestPaymentOutput, error) { req, out := c.GetBucketRequestPaymentRequest(input) err := req.Send() @@ -1338,7 +1611,17 @@ func (c *S3) GetBucketTaggingRequest(input *GetBucketTaggingInput) (req *request return } +// GetBucketTagging API operation for Amazon Simple Storage Service. +// // Returns the tag set associated with the bucket. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Simple Storage Service's +// API operation, GetBucketTagging for more information, and other errors +// that the API operation could return. func (c *S3) GetBucketTagging(input *GetBucketTaggingInput) (*GetBucketTaggingOutput, error) { req, out := c.GetBucketTaggingRequest(input) err := req.Send() @@ -1386,7 +1669,17 @@ func (c *S3) GetBucketVersioningRequest(input *GetBucketVersioningInput) (req *r return } +// GetBucketVersioning API operation for Amazon Simple Storage Service. +// // Returns the versioning state of a bucket. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Simple Storage Service's +// API operation, GetBucketVersioning for more information, and other errors +// that the API operation could return. func (c *S3) GetBucketVersioning(input *GetBucketVersioningInput) (*GetBucketVersioningOutput, error) { req, out := c.GetBucketVersioningRequest(input) err := req.Send() @@ -1434,7 +1727,17 @@ func (c *S3) GetBucketWebsiteRequest(input *GetBucketWebsiteInput) (req *request return } +// GetBucketWebsite API operation for Amazon Simple Storage Service. +// // Returns the website configuration for a bucket. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Simple Storage Service's +// API operation, GetBucketWebsite for more information, and other errors +// that the API operation could return. func (c *S3) GetBucketWebsite(input *GetBucketWebsiteInput) (*GetBucketWebsiteOutput, error) { req, out := c.GetBucketWebsiteRequest(input) err := req.Send() @@ -1482,7 +1785,21 @@ func (c *S3) GetObjectRequest(input *GetObjectInput) (req *request.Request, outp return } +// GetObject API operation for Amazon Simple Storage Service. +// // Retrieves objects from Amazon S3. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Simple Storage Service's +// API operation, GetObject for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// NoSuchKey func (c *S3) GetObject(input *GetObjectInput) (*GetObjectOutput, error) { req, out := c.GetObjectRequest(input) err := req.Send() @@ -1530,7 +1847,21 @@ func (c *S3) GetObjectAclRequest(input *GetObjectAclInput) (req *request.Request return } +// GetObjectAcl API operation for Amazon Simple Storage Service. +// // Returns the access control list (ACL) of an object. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Simple Storage Service's +// API operation, GetObjectAcl for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// NoSuchKey func (c *S3) GetObjectAcl(input *GetObjectAclInput) (*GetObjectAclOutput, error) { req, out := c.GetObjectAclRequest(input) err := req.Send() @@ -1578,7 +1909,17 @@ func (c *S3) GetObjectTorrentRequest(input *GetObjectTorrentInput) (req *request return } +// GetObjectTorrent API operation for Amazon Simple Storage Service. +// // Return torrent files from a bucket. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Simple Storage Service's +// API operation, GetObjectTorrent for more information, and other errors +// that the API operation could return. func (c *S3) GetObjectTorrent(input *GetObjectTorrentInput) (*GetObjectTorrentOutput, error) { req, out := c.GetObjectTorrentRequest(input) err := req.Send() @@ -1628,8 +1969,22 @@ func (c *S3) HeadBucketRequest(input *HeadBucketInput) (req *request.Request, ou return } +// HeadBucket API operation for Amazon Simple Storage Service. +// // This operation is useful to determine if a bucket exists and you have permission // to access it. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Simple Storage Service's +// API operation, HeadBucket for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// NoSuchBucket func (c *S3) HeadBucket(input *HeadBucketInput) (*HeadBucketOutput, error) { req, out := c.HeadBucketRequest(input) err := req.Send() @@ -1677,9 +2032,23 @@ func (c *S3) HeadObjectRequest(input *HeadObjectInput) (req *request.Request, ou return } +// HeadObject API operation for Amazon Simple Storage Service. +// // The HEAD operation retrieves metadata from an object without returning the // object itself. This operation is useful if you're only interested in an object's // metadata. To use HEAD, you must have READ access to the object. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Simple Storage Service's +// API operation, HeadObject for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// NoSuchKey func (c *S3) HeadObject(input *HeadObjectInput) (*HeadObjectOutput, error) { req, out := c.HeadObjectRequest(input) err := req.Send() @@ -1727,7 +2096,17 @@ func (c *S3) ListBucketsRequest(input *ListBucketsInput) (req *request.Request, return } +// ListBuckets API operation for Amazon Simple Storage Service. +// // Returns a list of all buckets owned by the authenticated sender of the request. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Simple Storage Service's +// API operation, ListBuckets for more information, and other errors +// that the API operation could return. func (c *S3) ListBuckets(input *ListBucketsInput) (*ListBucketsOutput, error) { req, out := c.ListBucketsRequest(input) err := req.Send() @@ -1781,7 +2160,17 @@ func (c *S3) ListMultipartUploadsRequest(input *ListMultipartUploadsInput) (req return } +// ListMultipartUploads API operation for Amazon Simple Storage Service. +// // This operation lists in-progress multipart uploads. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Simple Storage Service's +// API operation, ListMultipartUploads for more information, and other errors +// that the API operation could return. func (c *S3) ListMultipartUploads(input *ListMultipartUploadsInput) (*ListMultipartUploadsOutput, error) { req, out := c.ListMultipartUploadsRequest(input) err := req.Send() @@ -1860,7 +2249,17 @@ func (c *S3) ListObjectVersionsRequest(input *ListObjectVersionsInput) (req *req return } +// ListObjectVersions API operation for Amazon Simple Storage Service. +// // Returns metadata about all of the versions of objects in a bucket. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Simple Storage Service's +// API operation, ListObjectVersions for more information, and other errors +// that the API operation could return. func (c *S3) ListObjectVersions(input *ListObjectVersionsInput) (*ListObjectVersionsOutput, error) { req, out := c.ListObjectVersionsRequest(input) err := req.Send() @@ -1939,9 +2338,23 @@ func (c *S3) ListObjectsRequest(input *ListObjectsInput) (req *request.Request, return } +// ListObjects API operation for Amazon Simple Storage Service. +// // Returns some or all (up to 1000) of the objects in a bucket. You can use // the request parameters as selection criteria to return a subset of the objects // in a bucket. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Simple Storage Service's +// API operation, ListObjects for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// NoSuchBucket func (c *S3) ListObjects(input *ListObjectsInput) (*ListObjectsOutput, error) { req, out := c.ListObjectsRequest(input) err := req.Send() @@ -2020,10 +2433,24 @@ func (c *S3) ListObjectsV2Request(input *ListObjectsV2Input) (req *request.Reque return } +// ListObjectsV2 API operation for Amazon Simple Storage Service. +// // Returns some or all (up to 1000) of the objects in a bucket. You can use // the request parameters as selection criteria to return a subset of the objects // in a bucket. Note: ListObjectsV2 is the revised List Objects API and we recommend // you use this revised API for new application development. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Simple Storage Service's +// API operation, ListObjectsV2 for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// NoSuchBucket func (c *S3) ListObjectsV2(input *ListObjectsV2Input) (*ListObjectsV2Output, error) { req, out := c.ListObjectsV2Request(input) err := req.Send() @@ -2102,7 +2529,17 @@ func (c *S3) ListPartsRequest(input *ListPartsInput) (req *request.Request, outp return } +// ListParts API operation for Amazon Simple Storage Service. +// // Lists the parts that have been uploaded for a specific multipart upload. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Simple Storage Service's +// API operation, ListParts for more information, and other errors +// that the API operation could return. func (c *S3) ListParts(input *ListPartsInput) (*ListPartsOutput, error) { req, out := c.ListPartsRequest(input) err := req.Send() @@ -2177,7 +2614,17 @@ func (c *S3) PutBucketAccelerateConfigurationRequest(input *PutBucketAccelerateC return } +// PutBucketAccelerateConfiguration API operation for Amazon Simple Storage Service. +// // Sets the accelerate configuration of an existing bucket. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Simple Storage Service's +// API operation, PutBucketAccelerateConfiguration for more information, and other errors +// that the API operation could return. func (c *S3) PutBucketAccelerateConfiguration(input *PutBucketAccelerateConfigurationInput) (*PutBucketAccelerateConfigurationOutput, error) { req, out := c.PutBucketAccelerateConfigurationRequest(input) err := req.Send() @@ -2227,7 +2674,17 @@ func (c *S3) PutBucketAclRequest(input *PutBucketAclInput) (req *request.Request return } +// PutBucketAcl API operation for Amazon Simple Storage Service. +// // Sets the permissions on a bucket using access control lists (ACL). +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Simple Storage Service's +// API operation, PutBucketAcl for more information, and other errors +// that the API operation could return. func (c *S3) PutBucketAcl(input *PutBucketAclInput) (*PutBucketAclOutput, error) { req, out := c.PutBucketAclRequest(input) err := req.Send() @@ -2277,7 +2734,17 @@ func (c *S3) PutBucketCorsRequest(input *PutBucketCorsInput) (req *request.Reque return } +// PutBucketCors API operation for Amazon Simple Storage Service. +// // Sets the cors configuration for a bucket. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Simple Storage Service's +// API operation, PutBucketCors for more information, and other errors +// that the API operation could return. func (c *S3) PutBucketCors(input *PutBucketCorsInput) (*PutBucketCorsOutput, error) { req, out := c.PutBucketCorsRequest(input) err := req.Send() @@ -2330,7 +2797,17 @@ func (c *S3) PutBucketLifecycleRequest(input *PutBucketLifecycleInput) (req *req return } +// PutBucketLifecycle API operation for Amazon Simple Storage Service. +// // Deprecated, see the PutBucketLifecycleConfiguration operation. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Simple Storage Service's +// API operation, PutBucketLifecycle for more information, and other errors +// that the API operation could return. func (c *S3) PutBucketLifecycle(input *PutBucketLifecycleInput) (*PutBucketLifecycleOutput, error) { req, out := c.PutBucketLifecycleRequest(input) err := req.Send() @@ -2380,8 +2857,18 @@ func (c *S3) PutBucketLifecycleConfigurationRequest(input *PutBucketLifecycleCon return } +// PutBucketLifecycleConfiguration API operation for Amazon Simple Storage Service. +// // Sets lifecycle configuration for your bucket. If a lifecycle configuration // exists, it replaces it. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Simple Storage Service's +// API operation, PutBucketLifecycleConfiguration for more information, and other errors +// that the API operation could return. func (c *S3) PutBucketLifecycleConfiguration(input *PutBucketLifecycleConfigurationInput) (*PutBucketLifecycleConfigurationOutput, error) { req, out := c.PutBucketLifecycleConfigurationRequest(input) err := req.Send() @@ -2431,9 +2918,19 @@ func (c *S3) PutBucketLoggingRequest(input *PutBucketLoggingInput) (req *request return } +// PutBucketLogging API operation for Amazon Simple Storage Service. +// // Set the logging parameters for a bucket and to specify permissions for who // can view and modify the logging parameters. To set the logging status of // a bucket, you must be the bucket owner. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Simple Storage Service's +// API operation, PutBucketLogging for more information, and other errors +// that the API operation could return. func (c *S3) PutBucketLogging(input *PutBucketLoggingInput) (*PutBucketLoggingOutput, error) { req, out := c.PutBucketLoggingRequest(input) err := req.Send() @@ -2486,7 +2983,17 @@ func (c *S3) PutBucketNotificationRequest(input *PutBucketNotificationInput) (re return } +// PutBucketNotification API operation for Amazon Simple Storage Service. +// // Deprecated, see the PutBucketNotificationConfiguraiton operation. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Simple Storage Service's +// API operation, PutBucketNotification for more information, and other errors +// that the API operation could return. func (c *S3) PutBucketNotification(input *PutBucketNotificationInput) (*PutBucketNotificationOutput, error) { req, out := c.PutBucketNotificationRequest(input) err := req.Send() @@ -2536,7 +3043,17 @@ func (c *S3) PutBucketNotificationConfigurationRequest(input *PutBucketNotificat return } +// PutBucketNotificationConfiguration API operation for Amazon Simple Storage Service. +// // Enables notifications of specified events for a bucket. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Simple Storage Service's +// API operation, PutBucketNotificationConfiguration for more information, and other errors +// that the API operation could return. func (c *S3) PutBucketNotificationConfiguration(input *PutBucketNotificationConfigurationInput) (*PutBucketNotificationConfigurationOutput, error) { req, out := c.PutBucketNotificationConfigurationRequest(input) err := req.Send() @@ -2586,8 +3103,18 @@ func (c *S3) PutBucketPolicyRequest(input *PutBucketPolicyInput) (req *request.R return } +// PutBucketPolicy API operation for Amazon Simple Storage Service. +// // Replaces a policy on a bucket. If the bucket already has a policy, the one // in this request completely replaces it. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Simple Storage Service's +// API operation, PutBucketPolicy for more information, and other errors +// that the API operation could return. func (c *S3) PutBucketPolicy(input *PutBucketPolicyInput) (*PutBucketPolicyOutput, error) { req, out := c.PutBucketPolicyRequest(input) err := req.Send() @@ -2637,8 +3164,18 @@ func (c *S3) PutBucketReplicationRequest(input *PutBucketReplicationInput) (req return } +// PutBucketReplication API operation for Amazon Simple Storage Service. +// // Creates a new replication configuration (or replaces an existing one, if // present). +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Simple Storage Service's +// API operation, PutBucketReplication for more information, and other errors +// that the API operation could return. func (c *S3) PutBucketReplication(input *PutBucketReplicationInput) (*PutBucketReplicationOutput, error) { req, out := c.PutBucketReplicationRequest(input) err := req.Send() @@ -2688,11 +3225,21 @@ func (c *S3) PutBucketRequestPaymentRequest(input *PutBucketRequestPaymentInput) return } +// PutBucketRequestPayment API operation for Amazon Simple Storage Service. +// // Sets the request payment configuration for a bucket. By default, the bucket // owner pays for downloads from the bucket. This configuration parameter enables // the bucket owner (only) to specify that the person requesting the download // will be charged for the download. Documentation on requester pays buckets // can be found at http://docs.aws.amazon.com/AmazonS3/latest/dev/RequesterPaysBuckets.html +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Simple Storage Service's +// API operation, PutBucketRequestPayment for more information, and other errors +// that the API operation could return. func (c *S3) PutBucketRequestPayment(input *PutBucketRequestPaymentInput) (*PutBucketRequestPaymentOutput, error) { req, out := c.PutBucketRequestPaymentRequest(input) err := req.Send() @@ -2742,7 +3289,17 @@ func (c *S3) PutBucketTaggingRequest(input *PutBucketTaggingInput) (req *request return } +// PutBucketTagging API operation for Amazon Simple Storage Service. +// // Sets the tags for a bucket. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Simple Storage Service's +// API operation, PutBucketTagging for more information, and other errors +// that the API operation could return. func (c *S3) PutBucketTagging(input *PutBucketTaggingInput) (*PutBucketTaggingOutput, error) { req, out := c.PutBucketTaggingRequest(input) err := req.Send() @@ -2792,8 +3349,18 @@ func (c *S3) PutBucketVersioningRequest(input *PutBucketVersioningInput) (req *r return } +// PutBucketVersioning API operation for Amazon Simple Storage Service. +// // Sets the versioning state of an existing bucket. To set the versioning state, // you must be the bucket owner. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Simple Storage Service's +// API operation, PutBucketVersioning for more information, and other errors +// that the API operation could return. func (c *S3) PutBucketVersioning(input *PutBucketVersioningInput) (*PutBucketVersioningOutput, error) { req, out := c.PutBucketVersioningRequest(input) err := req.Send() @@ -2843,7 +3410,17 @@ func (c *S3) PutBucketWebsiteRequest(input *PutBucketWebsiteInput) (req *request return } +// PutBucketWebsite API operation for Amazon Simple Storage Service. +// // Set the website configuration for a bucket. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Simple Storage Service's +// API operation, PutBucketWebsite for more information, and other errors +// that the API operation could return. func (c *S3) PutBucketWebsite(input *PutBucketWebsiteInput) (*PutBucketWebsiteOutput, error) { req, out := c.PutBucketWebsiteRequest(input) err := req.Send() @@ -2891,7 +3468,17 @@ func (c *S3) PutObjectRequest(input *PutObjectInput) (req *request.Request, outp return } +// PutObject API operation for Amazon Simple Storage Service. +// // Adds an object to a bucket. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Simple Storage Service's +// API operation, PutObject for more information, and other errors +// that the API operation could return. func (c *S3) PutObject(input *PutObjectInput) (*PutObjectOutput, error) { req, out := c.PutObjectRequest(input) err := req.Send() @@ -2939,8 +3526,22 @@ func (c *S3) PutObjectAclRequest(input *PutObjectAclInput) (req *request.Request return } +// PutObjectAcl API operation for Amazon Simple Storage Service. +// // uses the acl subresource to set the access control list (ACL) permissions // for an object that already exists in a bucket +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Simple Storage Service's +// API operation, PutObjectAcl for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// NoSuchKey func (c *S3) PutObjectAcl(input *PutObjectAclInput) (*PutObjectAclOutput, error) { req, out := c.PutObjectAclRequest(input) err := req.Send() @@ -2988,7 +3589,21 @@ func (c *S3) RestoreObjectRequest(input *RestoreObjectInput) (req *request.Reque return } +// RestoreObject API operation for Amazon Simple Storage Service. +// // Restores an archived copy of an object back into Amazon S3 +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Simple Storage Service's +// API operation, RestoreObject for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ObjectAlreadyInActiveTierError func (c *S3) RestoreObject(input *RestoreObjectInput) (*RestoreObjectOutput, error) { req, out := c.RestoreObjectRequest(input) err := req.Send() @@ -3036,6 +3651,8 @@ func (c *S3) UploadPartRequest(input *UploadPartInput) (req *request.Request, ou return } +// UploadPart API operation for Amazon Simple Storage Service. +// // Uploads a part in a multipart upload. // // Note: After you initiate multipart upload and upload one or more parts, you @@ -3043,6 +3660,14 @@ func (c *S3) UploadPartRequest(input *UploadPartInput) (req *request.Request, ou // for storage of the uploaded parts. Only after you either complete or abort // multipart upload, Amazon S3 frees up the parts storage and stops charging // you for the parts storage. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Simple Storage Service's +// API operation, UploadPart for more information, and other errors +// that the API operation could return. func (c *S3) UploadPart(input *UploadPartInput) (*UploadPartOutput, error) { req, out := c.UploadPartRequest(input) err := req.Send() @@ -3090,7 +3715,17 @@ func (c *S3) UploadPartCopyRequest(input *UploadPartCopyInput) (req *request.Req return } +// UploadPartCopy API operation for Amazon Simple Storage Service. +// // Uploads a part by copying data from an existing object as data source. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Simple Storage Service's +// API operation, UploadPartCopy for more information, and other errors +// that the API operation could return. func (c *S3) UploadPartCopy(input *UploadPartCopyInput) (*UploadPartCopyOutput, error) { req, out := c.UploadPartCopyRequest(input) err := req.Send() diff --git a/service/servicecatalog/api.go b/service/servicecatalog/api.go index 88740882e57..190ad743a8c 100644 --- a/service/servicecatalog/api.go +++ b/service/servicecatalog/api.go @@ -52,10 +52,25 @@ func (c *ServiceCatalog) DescribeProductRequest(input *DescribeProductInput) (re return } +// DescribeProduct API operation for AWS Service Catalog. +// // Retrieves information about a specified product. // // This operation is functionally identical to DescribeProductView except that // it takes as input ProductId instead of ProductViewId. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Service Catalog's +// API operation, DescribeProduct for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ResourceNotFoundException +// InvalidParametersException func (c *ServiceCatalog) DescribeProduct(input *DescribeProductInput) (*DescribeProductOutput, error) { req, out := c.DescribeProductRequest(input) err := req.Send() @@ -103,10 +118,25 @@ func (c *ServiceCatalog) DescribeProductViewRequest(input *DescribeProductViewIn return } +// DescribeProductView API operation for AWS Service Catalog. +// // Retrieves information about a specified product. // // This operation is functionally identical to DescribeProduct except that // it takes as input ProductViewId instead of ProductId. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Service Catalog's +// API operation, DescribeProductView for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ResourceNotFoundException +// InvalidParametersException func (c *ServiceCatalog) DescribeProductView(input *DescribeProductViewInput) (*DescribeProductViewOutput, error) { req, out := c.DescribeProductViewRequest(input) err := req.Send() @@ -154,10 +184,25 @@ func (c *ServiceCatalog) DescribeProvisioningParametersRequest(input *DescribePr return } +// DescribeProvisioningParameters API operation for AWS Service Catalog. +// // Provides information about parameters required to provision a specified product // in a specified manner. Use this operation to obtain the list of ProvisioningArtifactParameters // parameters available to call the ProvisionProduct operation for the specified // product. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Service Catalog's +// API operation, DescribeProvisioningParameters for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidParametersException +// ResourceNotFoundException func (c *ServiceCatalog) DescribeProvisioningParameters(input *DescribeProvisioningParametersInput) (*DescribeProvisioningParametersOutput, error) { req, out := c.DescribeProvisioningParametersRequest(input) err := req.Send() @@ -205,9 +250,23 @@ func (c *ServiceCatalog) DescribeRecordRequest(input *DescribeRecordInput) (req return } +// DescribeRecord API operation for AWS Service Catalog. +// // Retrieves a paginated list of the full details of a specific request. Use // this operation after calling a request operation (ProvisionProduct, TerminateProvisionedProduct, // or UpdateProvisionedProduct). +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Service Catalog's +// API operation, DescribeRecord for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ResourceNotFoundException func (c *ServiceCatalog) DescribeRecord(input *DescribeRecordInput) (*DescribeRecordOutput, error) { req, out := c.DescribeRecordRequest(input) err := req.Send() @@ -255,9 +314,24 @@ func (c *ServiceCatalog) ListLaunchPathsRequest(input *ListLaunchPathsInput) (re return } +// ListLaunchPaths API operation for AWS Service Catalog. +// // Returns a paginated list of all paths to a specified product. A path is how // the user has access to a specified product, and is necessary when provisioning // a product. A path also determines the constraints put on the product. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Service Catalog's +// API operation, ListLaunchPaths for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidParametersException +// ResourceNotFoundException func (c *ServiceCatalog) ListLaunchPaths(input *ListLaunchPathsInput) (*ListLaunchPathsOutput, error) { req, out := c.ListLaunchPathsRequest(input) err := req.Send() @@ -305,8 +379,22 @@ func (c *ServiceCatalog) ListRecordHistoryRequest(input *ListRecordHistoryInput) return } +// ListRecordHistory API operation for AWS Service Catalog. +// // Returns a paginated list of all performed requests, in the form of RecordDetails // objects that are filtered as specified. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Service Catalog's +// API operation, ListRecordHistory for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidParametersException func (c *ServiceCatalog) ListRecordHistory(input *ListRecordHistoryInput) (*ListRecordHistoryOutput, error) { req, out := c.ListRecordHistoryRequest(input) err := req.Send() @@ -354,12 +442,28 @@ func (c *ServiceCatalog) ProvisionProductRequest(input *ProvisionProductInput) ( return } +// ProvisionProduct API operation for AWS Service Catalog. +// // Requests a Provision of a specified product. A ProvisionedProduct is a resourced // instance for a product. For example, provisioning a CloudFormation-template-backed // product results in launching a CloudFormation stack and all the underlying // resources that come with it. // // You can check the status of this request using the DescribeRecord operation. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Service Catalog's +// API operation, ProvisionProduct for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidParametersException +// ResourceNotFoundException +// DuplicateResourceException func (c *ServiceCatalog) ProvisionProduct(input *ProvisionProductInput) (*ProvisionProductOutput, error) { req, out := c.ProvisionProductRequest(input) err := req.Send() @@ -407,8 +511,22 @@ func (c *ServiceCatalog) ScanProvisionedProductsRequest(input *ScanProvisionedPr return } +// ScanProvisionedProducts API operation for AWS Service Catalog. +// // Returns a paginated list of all the ProvisionedProduct objects that are currently // available (not terminated). +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Service Catalog's +// API operation, ScanProvisionedProducts for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidParametersException func (c *ServiceCatalog) ScanProvisionedProducts(input *ScanProvisionedProductsInput) (*ScanProvisionedProductsOutput, error) { req, out := c.ScanProvisionedProductsRequest(input) err := req.Send() @@ -456,11 +574,25 @@ func (c *ServiceCatalog) SearchProductsRequest(input *SearchProductsInput) (req return } +// SearchProducts API operation for AWS Service Catalog. +// // Returns a paginated list all of the Products objects to which the caller // has access. // // The output of this operation can be used as input for other operations, // such as DescribeProductView. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Service Catalog's +// API operation, SearchProducts for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidParametersException func (c *ServiceCatalog) SearchProducts(input *SearchProductsInput) (*SearchProductsOutput, error) { req, out := c.SearchProductsRequest(input) err := req.Send() @@ -508,6 +640,8 @@ func (c *ServiceCatalog) TerminateProvisionedProductRequest(input *TerminateProv return } +// TerminateProvisionedProduct API operation for AWS Service Catalog. +// // Requests termination of an existing ProvisionedProduct object. If there are // Tags associated with the object, they are terminated when the ProvisionedProduct // object is terminated. @@ -516,6 +650,18 @@ func (c *ServiceCatalog) TerminateProvisionedProductRequest(input *TerminateProv // object. // // You can check the status of this request using the DescribeRecord operation. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Service Catalog's +// API operation, TerminateProvisionedProduct for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ResourceNotFoundException func (c *ServiceCatalog) TerminateProvisionedProduct(input *TerminateProvisionedProductInput) (*TerminateProvisionedProductOutput, error) { req, out := c.TerminateProvisionedProductRequest(input) err := req.Send() @@ -563,6 +709,8 @@ func (c *ServiceCatalog) UpdateProvisionedProductRequest(input *UpdateProvisione return } +// UpdateProvisionedProduct API operation for AWS Service Catalog. +// // Requests updates to the configuration of an existing ProvisionedProduct object. // If there are tags associated with the object, they cannot be updated or added // with this operation. Depending on the specific updates requested, this operation @@ -570,6 +718,19 @@ func (c *ServiceCatalog) UpdateProvisionedProductRequest(input *UpdateProvisione // object entirely. // // You can check the status of this request using the DescribeRecord operation. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Service Catalog's +// API operation, UpdateProvisionedProduct for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidParametersException +// ResourceNotFoundException func (c *ServiceCatalog) UpdateProvisionedProduct(input *UpdateProvisionedProductInput) (*UpdateProvisionedProductOutput, error) { req, out := c.UpdateProvisionedProductRequest(input) err := req.Send() diff --git a/service/ses/api.go b/service/ses/api.go index b8f3f69ee56..15709bb3241 100644 --- a/service/ses/api.go +++ b/service/ses/api.go @@ -54,6 +54,8 @@ func (c *SES) CloneReceiptRuleSetRequest(input *CloneReceiptRuleSetInput) (req * return } +// CloneReceiptRuleSet API operation for Amazon Simple Email Service. +// // Creates a receipt rule set by cloning an existing one. All receipt rules // and configurations are copied to the new receipt rule set and are completely // independent of the source rule set. @@ -62,6 +64,20 @@ func (c *SES) CloneReceiptRuleSetRequest(input *CloneReceiptRuleSetInput) (req * // Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/receiving-email-receipt-rule-set.html). // // This action is throttled at one request per second. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Simple Email Service's +// API operation, CloneReceiptRuleSet for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// RuleSetDoesNotExistException +// AlreadyExistsException +// LimitExceededException func (c *SES) CloneReceiptRuleSet(input *CloneReceiptRuleSetInput) (*CloneReceiptRuleSetOutput, error) { req, out := c.CloneReceiptRuleSetRequest(input) err := req.Send() @@ -109,12 +125,27 @@ func (c *SES) CreateReceiptFilterRequest(input *CreateReceiptFilterInput) (req * return } +// CreateReceiptFilter API operation for Amazon Simple Email Service. +// // Creates a new IP address filter. // // For information about setting up IP address filters, see the Amazon SES // Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/receiving-email-ip-filters.html). // // This action is throttled at one request per second. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Simple Email Service's +// API operation, CreateReceiptFilter for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// LimitExceededException +// AlreadyExistsException func (c *SES) CreateReceiptFilter(input *CreateReceiptFilterInput) (*CreateReceiptFilterOutput, error) { req, out := c.CreateReceiptFilterRequest(input) err := req.Send() @@ -162,12 +193,32 @@ func (c *SES) CreateReceiptRuleRequest(input *CreateReceiptRuleInput) (req *requ return } +// CreateReceiptRule API operation for Amazon Simple Email Service. +// // Creates a receipt rule. // // For information about setting up receipt rules, see the Amazon SES Developer // Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/receiving-email-receipt-rules.html). // // This action is throttled at one request per second. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Simple Email Service's +// API operation, CreateReceiptRule for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidSnsTopicException +// InvalidS3ConfigurationException +// InvalidLambdaFunctionException +// AlreadyExistsException +// RuleDoesNotExistException +// RuleSetDoesNotExistException +// LimitExceededException func (c *SES) CreateReceiptRule(input *CreateReceiptRuleInput) (*CreateReceiptRuleOutput, error) { req, out := c.CreateReceiptRuleRequest(input) err := req.Send() @@ -215,12 +266,27 @@ func (c *SES) CreateReceiptRuleSetRequest(input *CreateReceiptRuleSetInput) (req return } +// CreateReceiptRuleSet API operation for Amazon Simple Email Service. +// // Creates an empty receipt rule set. // // For information about setting up receipt rule sets, see the Amazon SES Developer // Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/receiving-email-receipt-rule-set.html). // // This action is throttled at one request per second. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Simple Email Service's +// API operation, CreateReceiptRuleSet for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// AlreadyExistsException +// LimitExceededException func (c *SES) CreateReceiptRuleSet(input *CreateReceiptRuleSetInput) (*CreateReceiptRuleSetOutput, error) { req, out := c.CreateReceiptRuleSetRequest(input) err := req.Send() @@ -268,10 +334,20 @@ func (c *SES) DeleteIdentityRequest(input *DeleteIdentityInput) (req *request.Re return } +// DeleteIdentity API operation for Amazon Simple Email Service. +// // Deletes the specified identity (an email address or a domain) from the list // of verified identities. // // This action is throttled at one request per second. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Simple Email Service's +// API operation, DeleteIdentity for more information, and other errors +// that the API operation could return. func (c *SES) DeleteIdentity(input *DeleteIdentityInput) (*DeleteIdentityOutput, error) { req, out := c.DeleteIdentityRequest(input) err := req.Send() @@ -319,6 +395,8 @@ func (c *SES) DeleteIdentityPolicyRequest(input *DeleteIdentityPolicyInput) (req return } +// DeleteIdentityPolicy API operation for Amazon Simple Email Service. +// // Deletes the specified sending authorization policy for the given identity // (an email address or a domain). This API returns successfully even if a policy // with the specified name does not exist. @@ -331,6 +409,14 @@ func (c *SES) DeleteIdentityPolicyRequest(input *DeleteIdentityPolicyInput) (req // authorization, see the Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/sending-authorization.html). // // This action is throttled at one request per second. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Simple Email Service's +// API operation, DeleteIdentityPolicy for more information, and other errors +// that the API operation could return. func (c *SES) DeleteIdentityPolicy(input *DeleteIdentityPolicyInput) (*DeleteIdentityPolicyOutput, error) { req, out := c.DeleteIdentityPolicyRequest(input) err := req.Send() @@ -378,12 +464,22 @@ func (c *SES) DeleteReceiptFilterRequest(input *DeleteReceiptFilterInput) (req * return } +// DeleteReceiptFilter API operation for Amazon Simple Email Service. +// // Deletes the specified IP address filter. // // For information about managing IP address filters, see the Amazon SES Developer // Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/receiving-email-managing-ip-filters.html). // // This action is throttled at one request per second. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Simple Email Service's +// API operation, DeleteReceiptFilter for more information, and other errors +// that the API operation could return. func (c *SES) DeleteReceiptFilter(input *DeleteReceiptFilterInput) (*DeleteReceiptFilterOutput, error) { req, out := c.DeleteReceiptFilterRequest(input) err := req.Send() @@ -431,12 +527,26 @@ func (c *SES) DeleteReceiptRuleRequest(input *DeleteReceiptRuleInput) (req *requ return } +// DeleteReceiptRule API operation for Amazon Simple Email Service. +// // Deletes the specified receipt rule. // // For information about managing receipt rules, see the Amazon SES Developer // Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/receiving-email-managing-receipt-rules.html). // // This action is throttled at one request per second. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Simple Email Service's +// API operation, DeleteReceiptRule for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// RuleSetDoesNotExistException func (c *SES) DeleteReceiptRule(input *DeleteReceiptRuleInput) (*DeleteReceiptRuleOutput, error) { req, out := c.DeleteReceiptRuleRequest(input) err := req.Send() @@ -484,6 +594,8 @@ func (c *SES) DeleteReceiptRuleSetRequest(input *DeleteReceiptRuleSetInput) (req return } +// DeleteReceiptRuleSet API operation for Amazon Simple Email Service. +// // Deletes the specified receipt rule set and all of the receipt rules it contains. // // The currently active rule set cannot be deleted. @@ -492,6 +604,18 @@ func (c *SES) DeleteReceiptRuleSetRequest(input *DeleteReceiptRuleSetInput) (req // Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/receiving-email-managing-receipt-rule-sets.html). // // This action is throttled at one request per second. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Simple Email Service's +// API operation, DeleteReceiptRuleSet for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// CannotDeleteException func (c *SES) DeleteReceiptRuleSet(input *DeleteReceiptRuleSetInput) (*DeleteReceiptRuleSetOutput, error) { req, out := c.DeleteReceiptRuleSetRequest(input) err := req.Send() @@ -541,12 +665,22 @@ func (c *SES) DeleteVerifiedEmailAddressRequest(input *DeleteVerifiedEmailAddres return } +// DeleteVerifiedEmailAddress API operation for Amazon Simple Email Service. +// // Deletes the specified email address from the list of verified addresses. // // The DeleteVerifiedEmailAddress action is deprecated as of the May 15, 2012 // release of Domain Verification. The DeleteIdentity action is now preferred. // // This action is throttled at one request per second. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Simple Email Service's +// API operation, DeleteVerifiedEmailAddress for more information, and other errors +// that the API operation could return. func (c *SES) DeleteVerifiedEmailAddress(input *DeleteVerifiedEmailAddressInput) (*DeleteVerifiedEmailAddressOutput, error) { req, out := c.DeleteVerifiedEmailAddressRequest(input) err := req.Send() @@ -594,6 +728,8 @@ func (c *SES) DescribeActiveReceiptRuleSetRequest(input *DescribeActiveReceiptRu return } +// DescribeActiveReceiptRuleSet API operation for Amazon Simple Email Service. +// // Returns the metadata and receipt rules for the receipt rule set that is currently // active. // @@ -601,6 +737,14 @@ func (c *SES) DescribeActiveReceiptRuleSetRequest(input *DescribeActiveReceiptRu // Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/receiving-email-receipt-rule-set.html). // // This action is throttled at one request per second. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Simple Email Service's +// API operation, DescribeActiveReceiptRuleSet for more information, and other errors +// that the API operation could return. func (c *SES) DescribeActiveReceiptRuleSet(input *DescribeActiveReceiptRuleSetInput) (*DescribeActiveReceiptRuleSetOutput, error) { req, out := c.DescribeActiveReceiptRuleSetRequest(input) err := req.Send() @@ -648,12 +792,27 @@ func (c *SES) DescribeReceiptRuleRequest(input *DescribeReceiptRuleInput) (req * return } +// DescribeReceiptRule API operation for Amazon Simple Email Service. +// // Returns the details of the specified receipt rule. // // For information about setting up receipt rules, see the Amazon SES Developer // Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/receiving-email-receipt-rules.html). // // This action is throttled at one request per second. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Simple Email Service's +// API operation, DescribeReceiptRule for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// RuleDoesNotExistException +// RuleSetDoesNotExistException func (c *SES) DescribeReceiptRule(input *DescribeReceiptRuleInput) (*DescribeReceiptRuleOutput, error) { req, out := c.DescribeReceiptRuleRequest(input) err := req.Send() @@ -701,12 +860,26 @@ func (c *SES) DescribeReceiptRuleSetRequest(input *DescribeReceiptRuleSetInput) return } +// DescribeReceiptRuleSet API operation for Amazon Simple Email Service. +// // Returns the details of the specified receipt rule set. // // For information about managing receipt rule sets, see the Amazon SES Developer // Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/receiving-email-managing-receipt-rule-sets.html). // // This action is throttled at one request per second. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Simple Email Service's +// API operation, DescribeReceiptRuleSet for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// RuleSetDoesNotExistException func (c *SES) DescribeReceiptRuleSet(input *DescribeReceiptRuleSetInput) (*DescribeReceiptRuleSetOutput, error) { req, out := c.DescribeReceiptRuleSetRequest(input) err := req.Send() @@ -754,6 +927,8 @@ func (c *SES) GetIdentityDkimAttributesRequest(input *GetIdentityDkimAttributesI return } +// GetIdentityDkimAttributes API operation for Amazon Simple Email Service. +// // Returns the current status of Easy DKIM signing for an entity. For domain // name identities, this action also returns the DKIM tokens that are required // for Easy DKIM signing, and whether Amazon SES has successfully verified that @@ -776,6 +951,14 @@ func (c *SES) GetIdentityDkimAttributesRequest(input *GetIdentityDkimAttributesI // // For more information about creating DNS records using DKIM tokens, go to // the Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/easy-dkim-dns-records.html). +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Simple Email Service's +// API operation, GetIdentityDkimAttributes for more information, and other errors +// that the API operation could return. func (c *SES) GetIdentityDkimAttributes(input *GetIdentityDkimAttributesInput) (*GetIdentityDkimAttributesOutput, error) { req, out := c.GetIdentityDkimAttributesRequest(input) err := req.Send() @@ -823,11 +1006,21 @@ func (c *SES) GetIdentityMailFromDomainAttributesRequest(input *GetIdentityMailF return } +// GetIdentityMailFromDomainAttributes API operation for Amazon Simple Email Service. +// // Returns the custom MAIL FROM attributes for a list of identities (email addresses // and/or domains). // // This action is throttled at one request per second and can only get custom // MAIL FROM attributes for up to 100 identities at a time. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Simple Email Service's +// API operation, GetIdentityMailFromDomainAttributes for more information, and other errors +// that the API operation could return. func (c *SES) GetIdentityMailFromDomainAttributes(input *GetIdentityMailFromDomainAttributesInput) (*GetIdentityMailFromDomainAttributesOutput, error) { req, out := c.GetIdentityMailFromDomainAttributesRequest(input) err := req.Send() @@ -875,6 +1068,8 @@ func (c *SES) GetIdentityNotificationAttributesRequest(input *GetIdentityNotific return } +// GetIdentityNotificationAttributes API operation for Amazon Simple Email Service. +// // Given a list of verified identities (email addresses and/or domains), returns // a structure describing identity notification attributes. // @@ -883,6 +1078,14 @@ func (c *SES) GetIdentityNotificationAttributesRequest(input *GetIdentityNotific // // For more information about using notifications with Amazon SES, see the // Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/notifications.html). +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Simple Email Service's +// API operation, GetIdentityNotificationAttributes for more information, and other errors +// that the API operation could return. func (c *SES) GetIdentityNotificationAttributes(input *GetIdentityNotificationAttributesInput) (*GetIdentityNotificationAttributesOutput, error) { req, out := c.GetIdentityNotificationAttributesRequest(input) err := req.Send() @@ -930,6 +1133,8 @@ func (c *SES) GetIdentityPoliciesRequest(input *GetIdentityPoliciesInput) (req * return } +// GetIdentityPolicies API operation for Amazon Simple Email Service. +// // Returns the requested sending authorization policies for the given identity // (an email address or a domain). The policies are returned as a map of policy // names to policy contents. You can retrieve a maximum of 20 policies at a @@ -943,6 +1148,14 @@ func (c *SES) GetIdentityPoliciesRequest(input *GetIdentityPoliciesInput) (req * // authorization, see the Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/sending-authorization.html). // // This action is throttled at one request per second. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Simple Email Service's +// API operation, GetIdentityPolicies for more information, and other errors +// that the API operation could return. func (c *SES) GetIdentityPolicies(input *GetIdentityPoliciesInput) (*GetIdentityPoliciesOutput, error) { req, out := c.GetIdentityPoliciesRequest(input) err := req.Send() @@ -990,12 +1203,22 @@ func (c *SES) GetIdentityVerificationAttributesRequest(input *GetIdentityVerific return } +// GetIdentityVerificationAttributes API operation for Amazon Simple Email Service. +// // Given a list of identities (email addresses and/or domains), returns the // verification status and (for domain identities) the verification token for // each identity. // // This action is throttled at one request per second and can only get verification // attributes for up to 100 identities at a time. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Simple Email Service's +// API operation, GetIdentityVerificationAttributes for more information, and other errors +// that the API operation could return. func (c *SES) GetIdentityVerificationAttributes(input *GetIdentityVerificationAttributesInput) (*GetIdentityVerificationAttributesOutput, error) { req, out := c.GetIdentityVerificationAttributesRequest(input) err := req.Send() @@ -1043,9 +1266,19 @@ func (c *SES) GetSendQuotaRequest(input *GetSendQuotaInput) (req *request.Reques return } +// GetSendQuota API operation for Amazon Simple Email Service. +// // Returns the user's current sending limits. // // This action is throttled at one request per second. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Simple Email Service's +// API operation, GetSendQuota for more information, and other errors +// that the API operation could return. func (c *SES) GetSendQuota(input *GetSendQuotaInput) (*GetSendQuotaOutput, error) { req, out := c.GetSendQuotaRequest(input) err := req.Send() @@ -1093,12 +1326,22 @@ func (c *SES) GetSendStatisticsRequest(input *GetSendStatisticsInput) (req *requ return } +// GetSendStatistics API operation for Amazon Simple Email Service. +// // Returns the user's sending statistics. The result is a list of data points, // representing the last two weeks of sending activity. // // Each data point in the list contains statistics for a 15-minute interval. // // This action is throttled at one request per second. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Simple Email Service's +// API operation, GetSendStatistics for more information, and other errors +// that the API operation could return. func (c *SES) GetSendStatistics(input *GetSendStatisticsInput) (*GetSendStatisticsOutput, error) { req, out := c.GetSendStatisticsRequest(input) err := req.Send() @@ -1152,10 +1395,20 @@ func (c *SES) ListIdentitiesRequest(input *ListIdentitiesInput) (req *request.Re return } +// ListIdentities API operation for Amazon Simple Email Service. +// // Returns a list containing all of the identities (email addresses and domains) // for your AWS account, regardless of verification status. // // This action is throttled at one request per second. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Simple Email Service's +// API operation, ListIdentities for more information, and other errors +// that the API operation could return. func (c *SES) ListIdentities(input *ListIdentitiesInput) (*ListIdentitiesOutput, error) { req, out := c.ListIdentitiesRequest(input) err := req.Send() @@ -1228,6 +1481,8 @@ func (c *SES) ListIdentityPoliciesRequest(input *ListIdentityPoliciesInput) (req return } +// ListIdentityPolicies API operation for Amazon Simple Email Service. +// // Returns a list of sending authorization policies that are attached to the // given identity (an email address or a domain). This API returns only a list. // If you want the actual policy content, you can use GetIdentityPolicies. @@ -1240,6 +1495,14 @@ func (c *SES) ListIdentityPoliciesRequest(input *ListIdentityPoliciesInput) (req // authorization, see the Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/sending-authorization.html). // // This action is throttled at one request per second. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Simple Email Service's +// API operation, ListIdentityPolicies for more information, and other errors +// that the API operation could return. func (c *SES) ListIdentityPolicies(input *ListIdentityPoliciesInput) (*ListIdentityPoliciesOutput, error) { req, out := c.ListIdentityPoliciesRequest(input) err := req.Send() @@ -1287,12 +1550,22 @@ func (c *SES) ListReceiptFiltersRequest(input *ListReceiptFiltersInput) (req *re return } +// ListReceiptFilters API operation for Amazon Simple Email Service. +// // Lists the IP address filters associated with your AWS account. // // For information about managing IP address filters, see the Amazon SES Developer // Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/receiving-email-managing-ip-filters.html). // // This action is throttled at one request per second. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Simple Email Service's +// API operation, ListReceiptFilters for more information, and other errors +// that the API operation could return. func (c *SES) ListReceiptFilters(input *ListReceiptFiltersInput) (*ListReceiptFiltersOutput, error) { req, out := c.ListReceiptFiltersRequest(input) err := req.Send() @@ -1340,6 +1613,8 @@ func (c *SES) ListReceiptRuleSetsRequest(input *ListReceiptRuleSetsInput) (req * return } +// ListReceiptRuleSets API operation for Amazon Simple Email Service. +// // Lists the receipt rule sets that exist under your AWS account. If there are // additional receipt rule sets to be retrieved, you will receive a NextToken // that you can provide to the next call to ListReceiptRuleSets to retrieve @@ -1349,6 +1624,14 @@ func (c *SES) ListReceiptRuleSetsRequest(input *ListReceiptRuleSetsInput) (req * // Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/receiving-email-managing-receipt-rule-sets.html). // // This action is throttled at one request per second. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Simple Email Service's +// API operation, ListReceiptRuleSets for more information, and other errors +// that the API operation could return. func (c *SES) ListReceiptRuleSets(input *ListReceiptRuleSetsInput) (*ListReceiptRuleSetsOutput, error) { req, out := c.ListReceiptRuleSetsRequest(input) err := req.Send() @@ -1396,12 +1679,22 @@ func (c *SES) ListVerifiedEmailAddressesRequest(input *ListVerifiedEmailAddresse return } +// ListVerifiedEmailAddresses API operation for Amazon Simple Email Service. +// // Returns a list containing all of the email addresses that have been verified. // // The ListVerifiedEmailAddresses action is deprecated as of the May 15, 2012 // release of Domain Verification. The ListIdentities action is now preferred. // // This action is throttled at one request per second. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Simple Email Service's +// API operation, ListVerifiedEmailAddresses for more information, and other errors +// that the API operation could return. func (c *SES) ListVerifiedEmailAddresses(input *ListVerifiedEmailAddressesInput) (*ListVerifiedEmailAddressesOutput, error) { req, out := c.ListVerifiedEmailAddressesRequest(input) err := req.Send() @@ -1449,6 +1742,8 @@ func (c *SES) PutIdentityPolicyRequest(input *PutIdentityPolicyInput) (req *requ return } +// PutIdentityPolicy API operation for Amazon Simple Email Service. +// // Adds or updates a sending authorization policy for the specified identity // (an email address or a domain). // @@ -1460,6 +1755,18 @@ func (c *SES) PutIdentityPolicyRequest(input *PutIdentityPolicyInput) (req *requ // authorization, see the Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/sending-authorization.html). // // This action is throttled at one request per second. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Simple Email Service's +// API operation, PutIdentityPolicy for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidPolicyException func (c *SES) PutIdentityPolicy(input *PutIdentityPolicyInput) (*PutIdentityPolicyOutput, error) { req, out := c.PutIdentityPolicyRequest(input) err := req.Send() @@ -1507,6 +1814,8 @@ func (c *SES) ReorderReceiptRuleSetRequest(input *ReorderReceiptRuleSetInput) (r return } +// ReorderReceiptRuleSet API operation for Amazon Simple Email Service. +// // Reorders the receipt rules within a receipt rule set. // // All of the rules in the rule set must be represented in this request. That @@ -1517,6 +1826,19 @@ func (c *SES) ReorderReceiptRuleSetRequest(input *ReorderReceiptRuleSetInput) (r // Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/receiving-email-managing-receipt-rule-sets.html). // // This action is throttled at one request per second. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Simple Email Service's +// API operation, ReorderReceiptRuleSet for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// RuleSetDoesNotExistException +// RuleDoesNotExistException func (c *SES) ReorderReceiptRuleSet(input *ReorderReceiptRuleSetInput) (*ReorderReceiptRuleSetOutput, error) { req, out := c.ReorderReceiptRuleSetRequest(input) err := req.Send() @@ -1564,6 +1886,8 @@ func (c *SES) SendBounceRequest(input *SendBounceInput) (req *request.Request, o return } +// SendBounce API operation for Amazon Simple Email Service. +// // Generates and sends a bounce message to the sender of an email you received // through Amazon SES. You can only use this API on an email up to 24 hours // after you receive it. @@ -1575,6 +1899,18 @@ func (c *SES) SendBounceRequest(input *SendBounceInput) (req *request.Request, o // SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/receiving-email.html). // // This action is throttled at one request per second. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Simple Email Service's +// API operation, SendBounce for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// MessageRejected func (c *SES) SendBounce(input *SendBounceInput) (*SendBounceOutput, error) { req, out := c.SendBounceRequest(input) err := req.Send() @@ -1622,6 +1958,8 @@ func (c *SES) SendEmailRequest(input *SendEmailInput) (req *request.Request, out return } +// SendEmail API operation for Amazon Simple Email Service. +// // Composes an email message based on input data, and then immediately queues // the message for sending. // @@ -1646,6 +1984,19 @@ func (c *SES) SendEmailRequest(input *SendEmailInput) (req *request.Request, out // CC: and BCC:) is counted against your sending quota - the maximum number // of emails you can send in a 24-hour period. For information about your sending // quota, go to the Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/manage-sending-limits.html). +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Simple Email Service's +// API operation, SendEmail for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// MessageRejected +// MailFromDomainNotVerifiedException func (c *SES) SendEmail(input *SendEmailInput) (*SendEmailOutput, error) { req, out := c.SendEmailRequest(input) err := req.Send() @@ -1693,6 +2044,8 @@ func (c *SES) SendRawEmailRequest(input *SendRawEmailInput) (req *request.Reques return } +// SendRawEmail API operation for Amazon Simple Email Service. +// // Sends an email message, with header and content specified by the client. // The SendRawEmail action is useful for sending multipart MIME emails. The // raw text of the message must comply with Internet email standards; otherwise, @@ -1749,6 +2102,19 @@ func (c *SES) SendRawEmailRequest(input *SendRawEmailInput) (req *request.Reques // "From" address and the "Return Path" address to the identity specified in // SourceIdentityArn. For more information about sending authorization, see // the Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/sending-authorization.html). +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Simple Email Service's +// API operation, SendRawEmail for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// MessageRejected +// MailFromDomainNotVerifiedException func (c *SES) SendRawEmail(input *SendRawEmailInput) (*SendRawEmailOutput, error) { req, out := c.SendRawEmailRequest(input) err := req.Send() @@ -1796,6 +2162,8 @@ func (c *SES) SetActiveReceiptRuleSetRequest(input *SetActiveReceiptRuleSetInput return } +// SetActiveReceiptRuleSet API operation for Amazon Simple Email Service. +// // Sets the specified receipt rule set as the active receipt rule set. // // To disable your email-receiving through Amazon SES completely, you can @@ -1805,6 +2173,18 @@ func (c *SES) SetActiveReceiptRuleSetRequest(input *SetActiveReceiptRuleSetInput // Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/receiving-email-managing-receipt-rule-sets.html). // // This action is throttled at one request per second. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Simple Email Service's +// API operation, SetActiveReceiptRuleSet for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// RuleSetDoesNotExistException func (c *SES) SetActiveReceiptRuleSet(input *SetActiveReceiptRuleSetInput) (*SetActiveReceiptRuleSetOutput, error) { req, out := c.SetActiveReceiptRuleSetRequest(input) err := req.Send() @@ -1852,6 +2232,8 @@ func (c *SES) SetIdentityDkimEnabledRequest(input *SetIdentityDkimEnabledInput) return } +// SetIdentityDkimEnabled API operation for Amazon Simple Email Service. +// // Enables or disables Easy DKIM signing of email sent from an identity: // // If Easy DKIM signing is enabled for a domain name identity (e.g., example.com), @@ -1869,6 +2251,14 @@ func (c *SES) SetIdentityDkimEnabledRequest(input *SetIdentityDkimEnabledInput) // // For more information about Easy DKIM signing, go to the Amazon SES Developer // Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/easy-dkim.html). +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Simple Email Service's +// API operation, SetIdentityDkimEnabled for more information, and other errors +// that the API operation could return. func (c *SES) SetIdentityDkimEnabled(input *SetIdentityDkimEnabledInput) (*SetIdentityDkimEnabledOutput, error) { req, out := c.SetIdentityDkimEnabledRequest(input) err := req.Send() @@ -1916,6 +2306,8 @@ func (c *SES) SetIdentityFeedbackForwardingEnabledRequest(input *SetIdentityFeed return } +// SetIdentityFeedbackForwardingEnabled API operation for Amazon Simple Email Service. +// // Given an identity (an email address or a domain), enables or disables whether // Amazon SES forwards bounce and complaint notifications as email. Feedback // forwarding can only be disabled when Amazon Simple Notification Service (Amazon @@ -1928,6 +2320,14 @@ func (c *SES) SetIdentityFeedbackForwardingEnabledRequest(input *SetIdentityFeed // // For more information about using notifications with Amazon SES, see the // Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/notifications.html). +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Simple Email Service's +// API operation, SetIdentityFeedbackForwardingEnabled for more information, and other errors +// that the API operation could return. func (c *SES) SetIdentityFeedbackForwardingEnabled(input *SetIdentityFeedbackForwardingEnabledInput) (*SetIdentityFeedbackForwardingEnabledOutput, error) { req, out := c.SetIdentityFeedbackForwardingEnabledRequest(input) err := req.Send() @@ -1975,6 +2375,8 @@ func (c *SES) SetIdentityHeadersInNotificationsEnabledRequest(input *SetIdentity return } +// SetIdentityHeadersInNotificationsEnabled API operation for Amazon Simple Email Service. +// // Given an identity (an email address or a domain), sets whether Amazon SES // includes the original email headers in the Amazon Simple Notification Service // (Amazon SNS) notifications of a specified type. @@ -1983,6 +2385,14 @@ func (c *SES) SetIdentityHeadersInNotificationsEnabledRequest(input *SetIdentity // // For more information about using notifications with Amazon SES, see the // Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/notifications.html). +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Simple Email Service's +// API operation, SetIdentityHeadersInNotificationsEnabled for more information, and other errors +// that the API operation could return. func (c *SES) SetIdentityHeadersInNotificationsEnabled(input *SetIdentityHeadersInNotificationsEnabledInput) (*SetIdentityHeadersInNotificationsEnabledOutput, error) { req, out := c.SetIdentityHeadersInNotificationsEnabledRequest(input) err := req.Send() @@ -2030,6 +2440,8 @@ func (c *SES) SetIdentityMailFromDomainRequest(input *SetIdentityMailFromDomainI return } +// SetIdentityMailFromDomain API operation for Amazon Simple Email Service. +// // Enables or disables the custom MAIL FROM domain setup for a verified identity // (an email address or a domain). // @@ -2039,6 +2451,14 @@ func (c *SES) SetIdentityMailFromDomainRequest(input *SetIdentityMailFromDomainI // SPF record. For more information, see the Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/mail-from-set.html). // // This action is throttled at one request per second. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Simple Email Service's +// API operation, SetIdentityMailFromDomain for more information, and other errors +// that the API operation could return. func (c *SES) SetIdentityMailFromDomain(input *SetIdentityMailFromDomainInput) (*SetIdentityMailFromDomainOutput, error) { req, out := c.SetIdentityMailFromDomainRequest(input) err := req.Send() @@ -2086,6 +2506,8 @@ func (c *SES) SetIdentityNotificationTopicRequest(input *SetIdentityNotification return } +// SetIdentityNotificationTopic API operation for Amazon Simple Email Service. +// // Given an identity (an email address or a domain), sets the Amazon Simple // Notification Service (Amazon SNS) topic to which Amazon SES will publish // bounce, complaint, and/or delivery notifications for emails sent with that @@ -2098,6 +2520,14 @@ func (c *SES) SetIdentityNotificationTopicRequest(input *SetIdentityNotification // // For more information about feedback notification, see the Amazon SES Developer // Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/notifications.html). +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Simple Email Service's +// API operation, SetIdentityNotificationTopic for more information, and other errors +// that the API operation could return. func (c *SES) SetIdentityNotificationTopic(input *SetIdentityNotificationTopicInput) (*SetIdentityNotificationTopicOutput, error) { req, out := c.SetIdentityNotificationTopicRequest(input) err := req.Send() @@ -2145,12 +2575,27 @@ func (c *SES) SetReceiptRulePositionRequest(input *SetReceiptRulePositionInput) return } +// SetReceiptRulePosition API operation for Amazon Simple Email Service. +// // Sets the position of the specified receipt rule in the receipt rule set. // // For information about managing receipt rules, see the Amazon SES Developer // Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/receiving-email-managing-receipt-rules.html). // // This action is throttled at one request per second. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Simple Email Service's +// API operation, SetReceiptRulePosition for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// RuleSetDoesNotExistException +// RuleDoesNotExistException func (c *SES) SetReceiptRulePosition(input *SetReceiptRulePositionInput) (*SetReceiptRulePositionOutput, error) { req, out := c.SetReceiptRulePositionRequest(input) err := req.Send() @@ -2198,12 +2643,31 @@ func (c *SES) UpdateReceiptRuleRequest(input *UpdateReceiptRuleInput) (req *requ return } +// UpdateReceiptRule API operation for Amazon Simple Email Service. +// // Updates a receipt rule. // // For information about managing receipt rules, see the Amazon SES Developer // Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/receiving-email-managing-receipt-rules.html). // // This action is throttled at one request per second. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Simple Email Service's +// API operation, UpdateReceiptRule for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidSnsTopicException +// InvalidS3ConfigurationException +// InvalidLambdaFunctionException +// RuleSetDoesNotExistException +// RuleDoesNotExistException +// LimitExceededException func (c *SES) UpdateReceiptRule(input *UpdateReceiptRuleInput) (*UpdateReceiptRuleOutput, error) { req, out := c.UpdateReceiptRuleRequest(input) err := req.Send() @@ -2251,6 +2715,8 @@ func (c *SES) VerifyDomainDkimRequest(input *VerifyDomainDkimInput) (req *reques return } +// VerifyDomainDkim API operation for Amazon Simple Email Service. +// // Returns a set of DKIM tokens for a domain. DKIM tokens are character strings // that represent your domain's identity. Using these tokens, you will need // to create DNS CNAME records that point to DKIM public keys hosted by Amazon @@ -2266,6 +2732,14 @@ func (c *SES) VerifyDomainDkimRequest(input *VerifyDomainDkimInput) (req *reques // // For more information about creating DNS records using DKIM tokens, go to // the Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/easy-dkim-dns-records.html). +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Simple Email Service's +// API operation, VerifyDomainDkim for more information, and other errors +// that the API operation could return. func (c *SES) VerifyDomainDkim(input *VerifyDomainDkimInput) (*VerifyDomainDkimOutput, error) { req, out := c.VerifyDomainDkimRequest(input) err := req.Send() @@ -2313,9 +2787,19 @@ func (c *SES) VerifyDomainIdentityRequest(input *VerifyDomainIdentityInput) (req return } +// VerifyDomainIdentity API operation for Amazon Simple Email Service. +// // Verifies a domain. // // This action is throttled at one request per second. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Simple Email Service's +// API operation, VerifyDomainIdentity for more information, and other errors +// that the API operation could return. func (c *SES) VerifyDomainIdentity(input *VerifyDomainIdentityInput) (*VerifyDomainIdentityOutput, error) { req, out := c.VerifyDomainIdentityRequest(input) err := req.Send() @@ -2365,6 +2849,8 @@ func (c *SES) VerifyEmailAddressRequest(input *VerifyEmailAddressInput) (req *re return } +// VerifyEmailAddress API operation for Amazon Simple Email Service. +// // Verifies an email address. This action causes a confirmation email message // to be sent to the specified address. // @@ -2372,6 +2858,14 @@ func (c *SES) VerifyEmailAddressRequest(input *VerifyEmailAddressInput) (req *re // of Domain Verification. The VerifyEmailIdentity action is now preferred. // // This action is throttled at one request per second. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Simple Email Service's +// API operation, VerifyEmailAddress for more information, and other errors +// that the API operation could return. func (c *SES) VerifyEmailAddress(input *VerifyEmailAddressInput) (*VerifyEmailAddressOutput, error) { req, out := c.VerifyEmailAddressRequest(input) err := req.Send() @@ -2419,10 +2913,20 @@ func (c *SES) VerifyEmailIdentityRequest(input *VerifyEmailIdentityInput) (req * return } +// VerifyEmailIdentity API operation for Amazon Simple Email Service. +// // Verifies an email address. This action causes a confirmation email message // to be sent to the specified address. // // This action is throttled at one request per second. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Simple Email Service's +// API operation, VerifyEmailIdentity for more information, and other errors +// that the API operation could return. func (c *SES) VerifyEmailIdentity(input *VerifyEmailIdentityInput) (*VerifyEmailIdentityOutput, error) { req, out := c.VerifyEmailIdentityRequest(input) err := req.Send() diff --git a/service/simpledb/api.go b/service/simpledb/api.go index 27a7b5452a3..e1b03195cb1 100644 --- a/service/simpledb/api.go +++ b/service/simpledb/api.go @@ -55,6 +55,8 @@ func (c *SimpleDB) BatchDeleteAttributesRequest(input *BatchDeleteAttributesInpu return } +// BatchDeleteAttributes API operation for Amazon SimpleDB. +// // Performs multiple DeleteAttributes operations in a single call, which reduces // round trips and latencies. This enables Amazon SimpleDB to optimize requests, // which generally yields better throughput. @@ -78,6 +80,14 @@ func (c *SimpleDB) BatchDeleteAttributesRequest(input *BatchDeleteAttributesInpu // // The following limitations are enforced for this operation: 1 MB request // size 25 item limit per BatchDeleteAttributes operation +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon SimpleDB's +// API operation, BatchDeleteAttributes for more information, and other errors +// that the API operation could return. func (c *SimpleDB) BatchDeleteAttributes(input *BatchDeleteAttributesInput) (*BatchDeleteAttributesOutput, error) { req, out := c.BatchDeleteAttributesRequest(input) err := req.Send() @@ -127,6 +137,8 @@ func (c *SimpleDB) BatchPutAttributesRequest(input *BatchPutAttributesInput) (re return } +// BatchPutAttributes API operation for Amazon SimpleDB. +// // The BatchPutAttributes operation creates or replaces attributes within one // or more items. By using this operation, the client can perform multiple PutAttribute // operation with a single call. This helps yield savings in round trips and @@ -168,6 +180,26 @@ func (c *SimpleDB) BatchPutAttributesRequest(input *BatchPutAttributesInput) (re // name-value pairs per item 1 MB request size 1 billion attributes per domain // 10 GB of total user data storage per domain 25 item limit per BatchPutAttributes // operation +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon SimpleDB's +// API operation, BatchPutAttributes for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// DuplicateItemName +// InvalidParameterValue +// MissingParameter +// NoSuchDomain +// NumberItemAttributesExceeded +// NumberDomainAttributesExceeded +// NumberDomainBytesExceeded +// NumberSubmittedItemsExceeded +// NumberSubmittedAttributesExceeded func (c *SimpleDB) BatchPutAttributes(input *BatchPutAttributesInput) (*BatchPutAttributesOutput, error) { req, out := c.BatchPutAttributesRequest(input) err := req.Send() @@ -217,6 +249,8 @@ func (c *SimpleDB) CreateDomainRequest(input *CreateDomainInput) (req *request.R return } +// CreateDomain API operation for Amazon SimpleDB. +// // The CreateDomain operation creates a new domain. The domain name should be // unique among the domains associated with the Access Key ID provided in the // request. The CreateDomain operation may take 10 or more seconds to complete. @@ -227,6 +261,20 @@ func (c *SimpleDB) CreateDomainRequest(input *CreateDomainInput) (req *request.R // // If the client requires additional domains, go to http://aws.amazon.com/contact-us/simpledb-limit-request/ // (http://aws.amazon.com/contact-us/simpledb-limit-request/). +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon SimpleDB's +// API operation, CreateDomain for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidParameterValue +// MissingParameter +// NumberDomainsExceeded func (c *SimpleDB) CreateDomain(input *CreateDomainInput) (*CreateDomainOutput, error) { req, out := c.CreateDomainRequest(input) err := req.Send() @@ -276,6 +324,8 @@ func (c *SimpleDB) DeleteAttributesRequest(input *DeleteAttributesInput) (req *r return } +// DeleteAttributes API operation for Amazon SimpleDB. +// // Deletes one or more attributes associated with an item. If all attributes // of the item are deleted, the item is deleted. // @@ -288,6 +338,21 @@ func (c *SimpleDB) DeleteAttributesRequest(input *DeleteAttributesInput) (req *r // eventual consistency update model, performing a GetAttributes or Select operation // (read) immediately after a DeleteAttributes or PutAttributes operation (write) // might not return updated item data. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon SimpleDB's +// API operation, DeleteAttributes for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidParameterValue +// MissingParameter +// NoSuchDomain +// AttributeDoesNotExist func (c *SimpleDB) DeleteAttributes(input *DeleteAttributesInput) (*DeleteAttributesOutput, error) { req, out := c.DeleteAttributesRequest(input) err := req.Send() @@ -337,12 +402,26 @@ func (c *SimpleDB) DeleteDomainRequest(input *DeleteDomainInput) (req *request.R return } +// DeleteDomain API operation for Amazon SimpleDB. +// // The DeleteDomain operation deletes a domain. Any items (and their attributes) // in the domain are deleted as well. The DeleteDomain operation might take // 10 or more seconds to complete. // // Running DeleteDomain on a domain that does not exist or running the function // multiple times using the same domain name will not result in an error response. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon SimpleDB's +// API operation, DeleteDomain for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// MissingParameter func (c *SimpleDB) DeleteDomain(input *DeleteDomainInput) (*DeleteDomainOutput, error) { req, out := c.DeleteDomainRequest(input) err := req.Send() @@ -390,9 +469,24 @@ func (c *SimpleDB) DomainMetadataRequest(input *DomainMetadataInput) (req *reque return } +// DomainMetadata API operation for Amazon SimpleDB. +// // Returns information about the domain, including when the domain was created, // the number of items and attributes in the domain, and the size of the attribute // names and values. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon SimpleDB's +// API operation, DomainMetadata for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// MissingParameter +// NoSuchDomain func (c *SimpleDB) DomainMetadata(input *DomainMetadataInput) (*DomainMetadataOutput, error) { req, out := c.DomainMetadataRequest(input) err := req.Send() @@ -440,6 +534,8 @@ func (c *SimpleDB) GetAttributesRequest(input *GetAttributesInput) (req *request return } +// GetAttributes API operation for Amazon SimpleDB. +// // Returns all of the attributes associated with the specified item. Optionally, // the attributes returned can be limited to one or more attributes by specifying // an attribute name parameter. @@ -450,6 +546,20 @@ func (c *SimpleDB) GetAttributesRequest(input *GetAttributesInput) (req *request // // If GetAttributes is called without being passed any attribute names, all // the attributes for the item are returned. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon SimpleDB's +// API operation, GetAttributes for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidParameterValue +// MissingParameter +// NoSuchDomain func (c *SimpleDB) GetAttributes(input *GetAttributesInput) (*GetAttributesOutput, error) { req, out := c.GetAttributesRequest(input) err := req.Send() @@ -503,12 +613,27 @@ func (c *SimpleDB) ListDomainsRequest(input *ListDomainsInput) (req *request.Req return } +// ListDomains API operation for Amazon SimpleDB. +// // The ListDomains operation lists all domains associated with the Access Key // ID. It returns domain names up to the limit set by MaxNumberOfDomains (#MaxNumberOfDomains). // A NextToken (#NextToken) is returned if there are more than MaxNumberOfDomains // domains. Calling ListDomains successive times with the NextToken provided // by the operation returns up to MaxNumberOfDomains more domain names with // each successive operation call. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon SimpleDB's +// API operation, ListDomains for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidParameterValue +// InvalidNextToken func (c *SimpleDB) ListDomains(input *ListDomainsInput) (*ListDomainsOutput, error) { req, out := c.ListDomainsRequest(input) err := req.Send() @@ -583,6 +708,8 @@ func (c *SimpleDB) PutAttributesRequest(input *PutAttributesInput) (req *request return } +// PutAttributes API operation for Amazon SimpleDB. +// // The PutAttributes operation creates or replaces attributes in an item. The // client may specify new attributes using a combination of the Attribute.X.Name // and Attribute.X.Value parameters. The client specifies the first attribute @@ -614,6 +741,24 @@ func (c *SimpleDB) PutAttributesRequest(input *PutAttributesInput) (req *request // The following limitations are enforced for this operation: 256 total attribute // name-value pairs per item One billion attributes per domain 10 GB of total // user data storage per domain +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon SimpleDB's +// API operation, PutAttributes for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidParameterValue +// MissingParameter +// NoSuchDomain +// NumberDomainAttributesExceeded +// NumberDomainBytesExceeded +// NumberItemAttributesExceeded +// AttributeDoesNotExist func (c *SimpleDB) PutAttributes(input *PutAttributesInput) (*PutAttributesOutput, error) { req, out := c.PutAttributesRequest(input) err := req.Send() @@ -667,6 +812,8 @@ func (c *SimpleDB) SelectRequest(input *SelectInput) (req *request.Request, outp return } +// Select API operation for Amazon SimpleDB. +// // The Select operation returns a set of attributes for ItemNames that match // the select expression. Select is similar to the standard SQL SELECT statement. // @@ -678,6 +825,26 @@ func (c *SimpleDB) SelectRequest(input *SelectInput) (req *request.Request, outp // // For information on how to construct select expressions, see Using Select // to Create Amazon SimpleDB Queries in the Developer Guide. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon SimpleDB's +// API operation, Select for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidParameterValue +// InvalidNextToken +// InvalidNumberPredicates +// InvalidNumberValueTests +// InvalidQueryExpression +// MissingParameter +// NoSuchDomain +// RequestTimeout +// TooManyRequestedAttributes func (c *SimpleDB) Select(input *SelectInput) (*SelectOutput, error) { req, out := c.SelectRequest(input) err := req.Send() diff --git a/service/snowball/api.go b/service/snowball/api.go index 0b9af6e7005..c3c4a38071c 100644 --- a/service/snowball/api.go +++ b/service/snowball/api.go @@ -52,10 +52,26 @@ func (c *Snowball) CancelJobRequest(input *CancelJobInput) (req *request.Request return } +// CancelJob API operation for Amazon Import/Export Snowball. +// // Cancels the specified job. Note that you can only cancel a job before its // JobState value changes to PreparingAppliance. Requesting the ListJobs or // DescribeJob action will return a job's JobState as part of the response element // data returned. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Import/Export Snowball's +// API operation, CancelJob for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidResourceException +// InvalidJobStateException +// KMSRequestFailedException func (c *Snowball) CancelJob(input *CancelJobInput) (*CancelJobOutput, error) { req, out := c.CancelJobRequest(input) err := req.Send() @@ -103,11 +119,26 @@ func (c *Snowball) CreateAddressRequest(input *CreateAddressInput) (req *request return } +// CreateAddress API operation for Amazon Import/Export Snowball. +// // Creates an address for a Snowball to be shipped to. // // Addresses are validated at the time of creation. The address you provide // must be located within the serviceable area of your region. If the address // is invalid or unsupported, then an exception is thrown. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Import/Export Snowball's +// API operation, CreateAddress for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidAddressException +// UnsupportedAddressException func (c *Snowball) CreateAddress(input *CreateAddressInput) (*CreateAddressOutput, error) { req, out := c.CreateAddressRequest(input) err := req.Send() @@ -155,10 +186,25 @@ func (c *Snowball) CreateJobRequest(input *CreateJobInput) (req *request.Request return } +// CreateJob API operation for Amazon Import/Export Snowball. +// // Creates a job to import or export data between Amazon S3 and your on-premises // data center. Note that your AWS account must have the right trust policies // and permissions in place to create a job for Snowball. For more information, // see api-reference-policies. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Import/Export Snowball's +// API operation, CreateJob for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidResourceException +// KMSRequestFailedException func (c *Snowball) CreateJob(input *CreateJobInput) (*CreateJobOutput, error) { req, out := c.CreateJobRequest(input) err := req.Send() @@ -206,8 +252,22 @@ func (c *Snowball) DescribeAddressRequest(input *DescribeAddressInput) (req *req return } +// DescribeAddress API operation for Amazon Import/Export Snowball. +// // Takes an AddressId and returns specific details about that address in the // form of an Address object. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Import/Export Snowball's +// API operation, DescribeAddress for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidResourceException func (c *Snowball) DescribeAddress(input *DescribeAddressInput) (*DescribeAddressOutput, error) { req, out := c.DescribeAddressRequest(input) err := req.Send() @@ -261,9 +321,23 @@ func (c *Snowball) DescribeAddressesRequest(input *DescribeAddressesInput) (req return } +// DescribeAddresses API operation for Amazon Import/Export Snowball. +// // Returns a specified number of ADDRESS objects. Calling this API in one of // the US regions will return addresses from the list of all addresses associated // with this account in all US regions. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Import/Export Snowball's +// API operation, DescribeAddresses for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidResourceException func (c *Snowball) DescribeAddresses(input *DescribeAddressesInput) (*DescribeAddressesOutput, error) { req, out := c.DescribeAddressesRequest(input) err := req.Send() @@ -336,8 +410,22 @@ func (c *Snowball) DescribeJobRequest(input *DescribeJobInput) (req *request.Req return } +// DescribeJob API operation for Amazon Import/Export Snowball. +// // Returns information about a specific job including shipping information, // job status, and other important metadata. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Import/Export Snowball's +// API operation, DescribeJob for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidResourceException func (c *Snowball) DescribeJob(input *DescribeJobInput) (*DescribeJobOutput, error) { req, out := c.DescribeJobRequest(input) err := req.Send() @@ -385,6 +473,8 @@ func (c *Snowball) GetJobManifestRequest(input *GetJobManifestInput) (req *reque return } +// GetJobManifest API operation for Amazon Import/Export Snowball. +// // Returns a link to an Amazon S3 presigned URL for the manifest file associated // with the specified JobId value. You can access the manifest file for up to // 60 minutes after this request has been made. To access the manifest file @@ -403,6 +493,19 @@ func (c *Snowball) GetJobManifestRequest(input *GetJobManifestInput) (req *reque // // Note that the credentials of a given job, including its manifest file and // unlock code, expire 90 days after the job is created. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Import/Export Snowball's +// API operation, GetJobManifest for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidResourceException +// InvalidJobStateException func (c *Snowball) GetJobManifest(input *GetJobManifestInput) (*GetJobManifestOutput, error) { req, out := c.GetJobManifestRequest(input) err := req.Send() @@ -450,6 +553,8 @@ func (c *Snowball) GetJobUnlockCodeRequest(input *GetJobUnlockCodeInput) (req *r return } +// GetJobUnlockCode API operation for Amazon Import/Export Snowball. +// // Returns the UnlockCode code value for the specified job. A particular UnlockCode // value can be accessed for up to 90 days after the associated job has been // created. @@ -463,6 +568,19 @@ func (c *Snowball) GetJobUnlockCodeRequest(input *GetJobUnlockCodeInput) (req *r // in the same location as the manifest file for that job. Saving these separately // helps prevent unauthorized parties from gaining access to the Snowball associated // with that job. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Import/Export Snowball's +// API operation, GetJobUnlockCode for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidResourceException +// InvalidJobStateException func (c *Snowball) GetJobUnlockCode(input *GetJobUnlockCodeInput) (*GetJobUnlockCodeOutput, error) { req, out := c.GetJobUnlockCodeRequest(input) err := req.Send() @@ -510,12 +628,22 @@ func (c *Snowball) GetSnowballUsageRequest(input *GetSnowballUsageInput) (req *r return } +// GetSnowballUsage API operation for Amazon Import/Export Snowball. +// // Returns information about the Snowball service limit for your account, and // also the number of Snowballs your account has in use. // // Note that the default service limit for the number of Snowballs that you // can have at one time is 1. If you want to increase your service limit, contact // AWS Support. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Import/Export Snowball's +// API operation, GetSnowballUsage for more information, and other errors +// that the API operation could return. func (c *Snowball) GetSnowballUsage(input *GetSnowballUsageInput) (*GetSnowballUsageOutput, error) { req, out := c.GetSnowballUsageRequest(input) err := req.Send() @@ -569,11 +697,21 @@ func (c *Snowball) ListJobsRequest(input *ListJobsInput) (req *request.Request, return } +// ListJobs API operation for Amazon Import/Export Snowball. +// // Returns an array of JobListEntry objects of the specified length. Each JobListEntry // object contains a job's state, a job's ID, and a value that indicates whether // the job is a job part, in the case of export jobs. Calling this API action // in one of the US regions will return jobs from the list of all jobs associated // with this account in all US regions. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Import/Export Snowball's +// API operation, ListJobs for more information, and other errors +// that the API operation could return. func (c *Snowball) ListJobs(input *ListJobsInput) (*ListJobsOutput, error) { req, out := c.ListJobsRequest(input) err := req.Send() @@ -646,9 +784,25 @@ func (c *Snowball) UpdateJobRequest(input *UpdateJobInput) (req *request.Request return } +// UpdateJob API operation for Amazon Import/Export Snowball. +// // While a job's JobState value is New, you can update some of the information // associated with a job. Once the job changes to a different job state, usually // within 60 minutes of the job being created, this action is no longer available. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Import/Export Snowball's +// API operation, UpdateJob for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidResourceException +// InvalidJobStateException +// KMSRequestFailedException func (c *Snowball) UpdateJob(input *UpdateJobInput) (*UpdateJobOutput, error) { req, out := c.UpdateJobRequest(input) err := req.Send() diff --git a/service/sns/api.go b/service/sns/api.go index cf3e2745ae4..6c980b48478 100644 --- a/service/sns/api.go +++ b/service/sns/api.go @@ -55,8 +55,25 @@ func (c *SNS) AddPermissionRequest(input *AddPermissionInput) (req *request.Requ return } +// AddPermission API operation for Amazon Simple Notification Service. +// // Adds a statement to a topic's access control policy, granting access for // the specified AWS accounts to the specified actions. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Simple Notification Service's +// API operation, AddPermission for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidParameterException +// InternalErrorException +// AuthorizationErrorException +// NotFoundException func (c *SNS) AddPermission(input *AddPermissionInput) (*AddPermissionOutput, error) { req, out := c.AddPermissionRequest(input) err := req.Send() @@ -104,12 +121,29 @@ func (c *SNS) CheckIfPhoneNumberIsOptedOutRequest(input *CheckIfPhoneNumberIsOpt return } +// CheckIfPhoneNumberIsOptedOut API operation for Amazon Simple Notification Service. +// // Accepts a phone number and indicates whether the phone holder has opted out // of receiving SMS messages from your account. You cannot send SMS messages // to a number that is opted out. // // To resume sending messages, you can opt in the number by using the OptInPhoneNumber // action. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Simple Notification Service's +// API operation, CheckIfPhoneNumberIsOptedOut for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ThrottledException +// InternalErrorException +// AuthorizationErrorException +// InvalidParameterException func (c *SNS) CheckIfPhoneNumberIsOptedOut(input *CheckIfPhoneNumberIsOptedOutInput) (*CheckIfPhoneNumberIsOptedOutOutput, error) { req, out := c.CheckIfPhoneNumberIsOptedOutRequest(input) err := req.Send() @@ -157,11 +191,29 @@ func (c *SNS) ConfirmSubscriptionRequest(input *ConfirmSubscriptionInput) (req * return } +// ConfirmSubscription API operation for Amazon Simple Notification Service. +// // Verifies an endpoint owner's intent to receive messages by validating the // token sent to the endpoint by an earlier Subscribe action. If the token is // valid, the action creates a new subscription and returns its Amazon Resource // Name (ARN). This call requires an AWS signature only when the AuthenticateOnUnsubscribe // flag is set to "true". +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Simple Notification Service's +// API operation, ConfirmSubscription for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// SubscriptionLimitExceededException +// InvalidParameterException +// NotFoundException +// InternalErrorException +// AuthorizationErrorException func (c *SNS) ConfirmSubscription(input *ConfirmSubscriptionInput) (*ConfirmSubscriptionOutput, error) { req, out := c.ConfirmSubscriptionRequest(input) err := req.Send() @@ -209,6 +261,8 @@ func (c *SNS) CreatePlatformApplicationRequest(input *CreatePlatformApplicationI return } +// CreatePlatformApplication API operation for Amazon Simple Notification Service. +// // Creates a platform application object for one of the supported push notification // services, such as APNS and GCM, to which devices and mobile apps may register. // You must specify PlatformPrincipal and PlatformCredential attributes when @@ -235,6 +289,20 @@ func (c *SNS) CreatePlatformApplicationRequest(input *CreatePlatformApplicationI // Getting Started with Google Cloud Messaging for Android (http://docs.aws.amazon.com/sns/latest/dg/mobile-push-gcm.html), // Getting Started with MPNS (http://docs.aws.amazon.com/sns/latest/dg/mobile-push-mpns.html), // or Getting Started with WNS (http://docs.aws.amazon.com/sns/latest/dg/mobile-push-wns.html). +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Simple Notification Service's +// API operation, CreatePlatformApplication for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidParameterException +// InternalErrorException +// AuthorizationErrorException func (c *SNS) CreatePlatformApplication(input *CreatePlatformApplicationInput) (*CreatePlatformApplicationOutput, error) { req, out := c.CreatePlatformApplicationRequest(input) err := req.Send() @@ -282,6 +350,8 @@ func (c *SNS) CreatePlatformEndpointRequest(input *CreatePlatformEndpointInput) return } +// CreatePlatformEndpoint API operation for Amazon Simple Notification Service. +// // Creates an endpoint for a device and mobile app on one of the supported push // notification services, such as GCM and APNS. CreatePlatformEndpoint requires // the PlatformApplicationArn that is returned from CreatePlatformApplication. @@ -296,6 +366,21 @@ func (c *SNS) CreatePlatformEndpointRequest(input *CreatePlatformEndpointInput) // When using CreatePlatformEndpoint with Baidu, two attributes must be provided: // ChannelId and UserId. The token field must also contain the ChannelId. For // more information, see Creating an Amazon SNS Endpoint for Baidu (http://docs.aws.amazon.com/sns/latest/dg/SNSMobilePushBaiduEndpoint.html). +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Simple Notification Service's +// API operation, CreatePlatformEndpoint for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidParameterException +// InternalErrorException +// AuthorizationErrorException +// NotFoundException func (c *SNS) CreatePlatformEndpoint(input *CreatePlatformEndpointInput) (*CreatePlatformEndpointOutput, error) { req, out := c.CreatePlatformEndpointRequest(input) err := req.Send() @@ -343,11 +428,28 @@ func (c *SNS) CreateTopicRequest(input *CreateTopicInput) (req *request.Request, return } +// CreateTopic API operation for Amazon Simple Notification Service. +// // Creates a topic to which notifications can be published. Users can create // at most 100,000 topics. For more information, see http://aws.amazon.com/sns // (http://aws.amazon.com/sns/). This action is idempotent, so if the requester // already owns a topic with the specified name, that topic's ARN is returned // without creating a new topic. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Simple Notification Service's +// API operation, CreateTopic for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidParameterException +// TopicLimitExceededException +// InternalErrorException +// AuthorizationErrorException func (c *SNS) CreateTopic(input *CreateTopicInput) (*CreateTopicOutput, error) { req, out := c.CreateTopicRequest(input) err := req.Send() @@ -397,12 +499,28 @@ func (c *SNS) DeleteEndpointRequest(input *DeleteEndpointInput) (req *request.Re return } +// DeleteEndpoint API operation for Amazon Simple Notification Service. +// // Deletes the endpoint for a device and mobile app from Amazon SNS. This action // is idempotent. For more information, see Using Amazon SNS Mobile Push Notifications // (http://docs.aws.amazon.com/sns/latest/dg/SNSMobilePush.html). // // When you delete an endpoint that is also subscribed to a topic, then you // must also unsubscribe the endpoint from the topic. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Simple Notification Service's +// API operation, DeleteEndpoint for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidParameterException +// InternalErrorException +// AuthorizationErrorException func (c *SNS) DeleteEndpoint(input *DeleteEndpointInput) (*DeleteEndpointOutput, error) { req, out := c.DeleteEndpointRequest(input) err := req.Send() @@ -452,9 +570,25 @@ func (c *SNS) DeletePlatformApplicationRequest(input *DeletePlatformApplicationI return } +// DeletePlatformApplication API operation for Amazon Simple Notification Service. +// // Deletes a platform application object for one of the supported push notification // services, such as APNS and GCM. For more information, see Using Amazon SNS // Mobile Push Notifications (http://docs.aws.amazon.com/sns/latest/dg/SNSMobilePush.html). +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Simple Notification Service's +// API operation, DeletePlatformApplication for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidParameterException +// InternalErrorException +// AuthorizationErrorException func (c *SNS) DeletePlatformApplication(input *DeletePlatformApplicationInput) (*DeletePlatformApplicationOutput, error) { req, out := c.DeletePlatformApplicationRequest(input) err := req.Send() @@ -504,10 +638,27 @@ func (c *SNS) DeleteTopicRequest(input *DeleteTopicInput) (req *request.Request, return } +// DeleteTopic API operation for Amazon Simple Notification Service. +// // Deletes a topic and all its subscriptions. Deleting a topic might prevent // some messages previously sent to the topic from being delivered to subscribers. // This action is idempotent, so deleting a topic that does not exist does not // result in an error. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Simple Notification Service's +// API operation, DeleteTopic for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidParameterException +// InternalErrorException +// AuthorizationErrorException +// NotFoundException func (c *SNS) DeleteTopic(input *DeleteTopicInput) (*DeleteTopicOutput, error) { req, out := c.DeleteTopicRequest(input) err := req.Send() @@ -555,9 +706,26 @@ func (c *SNS) GetEndpointAttributesRequest(input *GetEndpointAttributesInput) (r return } +// GetEndpointAttributes API operation for Amazon Simple Notification Service. +// // Retrieves the endpoint attributes for a device on one of the supported push // notification services, such as GCM and APNS. For more information, see Using // Amazon SNS Mobile Push Notifications (http://docs.aws.amazon.com/sns/latest/dg/SNSMobilePush.html). +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Simple Notification Service's +// API operation, GetEndpointAttributes for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidParameterException +// InternalErrorException +// AuthorizationErrorException +// NotFoundException func (c *SNS) GetEndpointAttributes(input *GetEndpointAttributesInput) (*GetEndpointAttributesOutput, error) { req, out := c.GetEndpointAttributesRequest(input) err := req.Send() @@ -605,9 +773,26 @@ func (c *SNS) GetPlatformApplicationAttributesRequest(input *GetPlatformApplicat return } +// GetPlatformApplicationAttributes API operation for Amazon Simple Notification Service. +// // Retrieves the attributes of the platform application object for the supported // push notification services, such as APNS and GCM. For more information, see // Using Amazon SNS Mobile Push Notifications (http://docs.aws.amazon.com/sns/latest/dg/SNSMobilePush.html). +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Simple Notification Service's +// API operation, GetPlatformApplicationAttributes for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidParameterException +// InternalErrorException +// AuthorizationErrorException +// NotFoundException func (c *SNS) GetPlatformApplicationAttributes(input *GetPlatformApplicationAttributesInput) (*GetPlatformApplicationAttributesOutput, error) { req, out := c.GetPlatformApplicationAttributesRequest(input) err := req.Send() @@ -655,9 +840,26 @@ func (c *SNS) GetSMSAttributesRequest(input *GetSMSAttributesInput) (req *reques return } +// GetSMSAttributes API operation for Amazon Simple Notification Service. +// // Returns the settings for sending SMS messages from your account. // // These settings are set with the SetSMSAttributes action. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Simple Notification Service's +// API operation, GetSMSAttributes for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ThrottledException +// InternalErrorException +// AuthorizationErrorException +// InvalidParameterException func (c *SNS) GetSMSAttributes(input *GetSMSAttributesInput) (*GetSMSAttributesOutput, error) { req, out := c.GetSMSAttributesRequest(input) err := req.Send() @@ -705,7 +907,24 @@ func (c *SNS) GetSubscriptionAttributesRequest(input *GetSubscriptionAttributesI return } +// GetSubscriptionAttributes API operation for Amazon Simple Notification Service. +// // Returns all of the properties of a subscription. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Simple Notification Service's +// API operation, GetSubscriptionAttributes for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidParameterException +// InternalErrorException +// NotFoundException +// AuthorizationErrorException func (c *SNS) GetSubscriptionAttributes(input *GetSubscriptionAttributesInput) (*GetSubscriptionAttributesOutput, error) { req, out := c.GetSubscriptionAttributesRequest(input) err := req.Send() @@ -753,8 +972,25 @@ func (c *SNS) GetTopicAttributesRequest(input *GetTopicAttributesInput) (req *re return } +// GetTopicAttributes API operation for Amazon Simple Notification Service. +// // Returns all of the properties of a topic. Topic properties returned might // differ based on the authorization of the user. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Simple Notification Service's +// API operation, GetTopicAttributes for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidParameterException +// InternalErrorException +// NotFoundException +// AuthorizationErrorException func (c *SNS) GetTopicAttributes(input *GetTopicAttributesInput) (*GetTopicAttributesOutput, error) { req, out := c.GetTopicAttributesRequest(input) err := req.Send() @@ -808,6 +1044,8 @@ func (c *SNS) ListEndpointsByPlatformApplicationRequest(input *ListEndpointsByPl return } +// ListEndpointsByPlatformApplication API operation for Amazon Simple Notification Service. +// // Lists the endpoints and endpoint attributes for devices in a supported push // notification service, such as GCM and APNS. The results for ListEndpointsByPlatformApplication // are paginated and return a limited list of endpoints, up to 100. If additional @@ -816,6 +1054,21 @@ func (c *SNS) ListEndpointsByPlatformApplicationRequest(input *ListEndpointsByPl // again using the NextToken string received from the previous call. When there // are no more records to return, NextToken will be null. For more information, // see Using Amazon SNS Mobile Push Notifications (http://docs.aws.amazon.com/sns/latest/dg/SNSMobilePush.html). +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Simple Notification Service's +// API operation, ListEndpointsByPlatformApplication for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidParameterException +// InternalErrorException +// AuthorizationErrorException +// NotFoundException func (c *SNS) ListEndpointsByPlatformApplication(input *ListEndpointsByPlatformApplicationInput) (*ListEndpointsByPlatformApplicationOutput, error) { req, out := c.ListEndpointsByPlatformApplicationRequest(input) err := req.Send() @@ -888,6 +1141,8 @@ func (c *SNS) ListPhoneNumbersOptedOutRequest(input *ListPhoneNumbersOptedOutInp return } +// ListPhoneNumbersOptedOut API operation for Amazon Simple Notification Service. +// // Returns a list of phone numbers that are opted out, meaning you cannot send // SMS messages to them. // @@ -897,6 +1152,21 @@ func (c *SNS) ListPhoneNumbersOptedOutRequest(input *ListPhoneNumbersOptedOutInp // the next page, you call ListPhoneNumbersOptedOut again using the NextToken // string received from the previous call. When there are no more records to // return, NextToken will be null. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Simple Notification Service's +// API operation, ListPhoneNumbersOptedOut for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ThrottledException +// InternalErrorException +// AuthorizationErrorException +// InvalidParameterException func (c *SNS) ListPhoneNumbersOptedOut(input *ListPhoneNumbersOptedOutInput) (*ListPhoneNumbersOptedOutOutput, error) { req, out := c.ListPhoneNumbersOptedOutRequest(input) err := req.Send() @@ -950,6 +1220,8 @@ func (c *SNS) ListPlatformApplicationsRequest(input *ListPlatformApplicationsInp return } +// ListPlatformApplications API operation for Amazon Simple Notification Service. +// // Lists the platform application objects for the supported push notification // services, such as APNS and GCM. The results for ListPlatformApplications // are paginated and return a limited list of applications, up to 100. If additional @@ -958,6 +1230,20 @@ func (c *SNS) ListPlatformApplicationsRequest(input *ListPlatformApplicationsInp // using the NextToken string received from the previous call. When there are // no more records to return, NextToken will be null. For more information, // see Using Amazon SNS Mobile Push Notifications (http://docs.aws.amazon.com/sns/latest/dg/SNSMobilePush.html). +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Simple Notification Service's +// API operation, ListPlatformApplications for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidParameterException +// InternalErrorException +// AuthorizationErrorException func (c *SNS) ListPlatformApplications(input *ListPlatformApplicationsInput) (*ListPlatformApplicationsOutput, error) { req, out := c.ListPlatformApplicationsRequest(input) err := req.Send() @@ -1036,10 +1322,26 @@ func (c *SNS) ListSubscriptionsRequest(input *ListSubscriptionsInput) (req *requ return } +// ListSubscriptions API operation for Amazon Simple Notification Service. +// // Returns a list of the requester's subscriptions. Each call returns a limited // list of subscriptions, up to 100. If there are more subscriptions, a NextToken // is also returned. Use the NextToken parameter in a new ListSubscriptions // call to get further results. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Simple Notification Service's +// API operation, ListSubscriptions for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidParameterException +// InternalErrorException +// AuthorizationErrorException func (c *SNS) ListSubscriptions(input *ListSubscriptionsInput) (*ListSubscriptionsOutput, error) { req, out := c.ListSubscriptionsRequest(input) err := req.Send() @@ -1118,10 +1420,27 @@ func (c *SNS) ListSubscriptionsByTopicRequest(input *ListSubscriptionsByTopicInp return } +// ListSubscriptionsByTopic API operation for Amazon Simple Notification Service. +// // Returns a list of the subscriptions to a specific topic. Each call returns // a limited list of subscriptions, up to 100. If there are more subscriptions, // a NextToken is also returned. Use the NextToken parameter in a new ListSubscriptionsByTopic // call to get further results. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Simple Notification Service's +// API operation, ListSubscriptionsByTopic for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidParameterException +// InternalErrorException +// NotFoundException +// AuthorizationErrorException func (c *SNS) ListSubscriptionsByTopic(input *ListSubscriptionsByTopicInput) (*ListSubscriptionsByTopicOutput, error) { req, out := c.ListSubscriptionsByTopicRequest(input) err := req.Send() @@ -1200,9 +1519,25 @@ func (c *SNS) ListTopicsRequest(input *ListTopicsInput) (req *request.Request, o return } +// ListTopics API operation for Amazon Simple Notification Service. +// // Returns a list of the requester's topics. Each call returns a limited list // of topics, up to 100. If there are more topics, a NextToken is also returned. // Use the NextToken parameter in a new ListTopics call to get further results. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Simple Notification Service's +// API operation, ListTopics for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidParameterException +// InternalErrorException +// AuthorizationErrorException func (c *SNS) ListTopics(input *ListTopicsInput) (*ListTopicsOutput, error) { req, out := c.ListTopicsRequest(input) err := req.Send() @@ -1275,10 +1610,27 @@ func (c *SNS) OptInPhoneNumberRequest(input *OptInPhoneNumberInput) (req *reques return } +// OptInPhoneNumber API operation for Amazon Simple Notification Service. +// // Use this request to opt in a phone number that is opted out, which enables // you to resume sending SMS messages to the number. // // You can opt in a phone number only once every 30 days. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Simple Notification Service's +// API operation, OptInPhoneNumber for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ThrottledException +// InternalErrorException +// AuthorizationErrorException +// InvalidParameterException func (c *SNS) OptInPhoneNumber(input *OptInPhoneNumberInput) (*OptInPhoneNumberOutput, error) { req, out := c.OptInPhoneNumberRequest(input) err := req.Send() @@ -1326,6 +1678,8 @@ func (c *SNS) PublishRequest(input *PublishInput) (req *request.Request, output return } +// Publish API operation for Amazon Simple Notification Service. +// // Sends a message to all of a topic's subscribed endpoints. When a messageId // is returned, the message has been saved and Amazon SNS will attempt to deliver // it to the topic's subscribers shortly. The format of the outgoing message @@ -1338,6 +1692,24 @@ func (c *SNS) PublishRequest(input *PublishInput) (req *request.Request, output // // For more information about formatting messages, see Send Custom Platform-Specific // Payloads in Messages to Mobile Devices (http://docs.aws.amazon.com/sns/latest/dg/mobile-push-send-custommessage.html). +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Simple Notification Service's +// API operation, Publish for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidParameterException +// InvalidParameterValueException +// InternalErrorException +// NotFoundException +// EndpointDisabledException +// PlatformApplicationDisabledException +// AuthorizationErrorException func (c *SNS) Publish(input *PublishInput) (*PublishOutput, error) { req, out := c.PublishRequest(input) err := req.Send() @@ -1387,7 +1759,24 @@ func (c *SNS) RemovePermissionRequest(input *RemovePermissionInput) (req *reques return } +// RemovePermission API operation for Amazon Simple Notification Service. +// // Removes a statement from a topic's access control policy. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Simple Notification Service's +// API operation, RemovePermission for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidParameterException +// InternalErrorException +// AuthorizationErrorException +// NotFoundException func (c *SNS) RemovePermission(input *RemovePermissionInput) (*RemovePermissionOutput, error) { req, out := c.RemovePermissionRequest(input) err := req.Send() @@ -1437,9 +1826,26 @@ func (c *SNS) SetEndpointAttributesRequest(input *SetEndpointAttributesInput) (r return } +// SetEndpointAttributes API operation for Amazon Simple Notification Service. +// // Sets the attributes for an endpoint for a device on one of the supported // push notification services, such as GCM and APNS. For more information, see // Using Amazon SNS Mobile Push Notifications (http://docs.aws.amazon.com/sns/latest/dg/SNSMobilePush.html). +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Simple Notification Service's +// API operation, SetEndpointAttributes for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidParameterException +// InternalErrorException +// AuthorizationErrorException +// NotFoundException func (c *SNS) SetEndpointAttributes(input *SetEndpointAttributesInput) (*SetEndpointAttributesOutput, error) { req, out := c.SetEndpointAttributesRequest(input) err := req.Send() @@ -1489,11 +1895,28 @@ func (c *SNS) SetPlatformApplicationAttributesRequest(input *SetPlatformApplicat return } +// SetPlatformApplicationAttributes API operation for Amazon Simple Notification Service. +// // Sets the attributes of the platform application object for the supported // push notification services, such as APNS and GCM. For more information, see // Using Amazon SNS Mobile Push Notifications (http://docs.aws.amazon.com/sns/latest/dg/SNSMobilePush.html). // For information on configuring attributes for message delivery status, see // Using Amazon SNS Application Attributes for Message Delivery Status (http://docs.aws.amazon.com/sns/latest/dg/sns-msg-status.html). +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Simple Notification Service's +// API operation, SetPlatformApplicationAttributes for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidParameterException +// InternalErrorException +// AuthorizationErrorException +// NotFoundException func (c *SNS) SetPlatformApplicationAttributes(input *SetPlatformApplicationAttributesInput) (*SetPlatformApplicationAttributesOutput, error) { req, out := c.SetPlatformApplicationAttributesRequest(input) err := req.Send() @@ -1541,6 +1964,8 @@ func (c *SNS) SetSMSAttributesRequest(input *SetSMSAttributesInput) (req *reques return } +// SetSMSAttributes API operation for Amazon Simple Notification Service. +// // Use this request to set the default settings for sending SMS messages and // receiving daily SMS usage reports. // @@ -1548,6 +1973,21 @@ func (c *SNS) SetSMSAttributesRequest(input *SetSMSAttributesInput) (req *reques // the Publish action with the MessageAttributes.entry.N parameter. For more // information, see Sending an SMS Message (http://docs.aws.amazon.com/sns/latest/dg/sms_publish-to-phone.html) // in the Amazon SNS Developer Guide. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Simple Notification Service's +// API operation, SetSMSAttributes for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidParameterException +// ThrottledException +// InternalErrorException +// AuthorizationErrorException func (c *SNS) SetSMSAttributes(input *SetSMSAttributesInput) (*SetSMSAttributesOutput, error) { req, out := c.SetSMSAttributesRequest(input) err := req.Send() @@ -1597,7 +2037,24 @@ func (c *SNS) SetSubscriptionAttributesRequest(input *SetSubscriptionAttributesI return } +// SetSubscriptionAttributes API operation for Amazon Simple Notification Service. +// // Allows a subscription owner to set an attribute of the topic to a new value. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Simple Notification Service's +// API operation, SetSubscriptionAttributes for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidParameterException +// InternalErrorException +// NotFoundException +// AuthorizationErrorException func (c *SNS) SetSubscriptionAttributes(input *SetSubscriptionAttributesInput) (*SetSubscriptionAttributesOutput, error) { req, out := c.SetSubscriptionAttributesRequest(input) err := req.Send() @@ -1647,7 +2104,24 @@ func (c *SNS) SetTopicAttributesRequest(input *SetTopicAttributesInput) (req *re return } +// SetTopicAttributes API operation for Amazon Simple Notification Service. +// // Allows a topic owner to set an attribute of the topic to a new value. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Simple Notification Service's +// API operation, SetTopicAttributes for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidParameterException +// InternalErrorException +// NotFoundException +// AuthorizationErrorException func (c *SNS) SetTopicAttributes(input *SetTopicAttributesInput) (*SetTopicAttributesOutput, error) { req, out := c.SetTopicAttributesRequest(input) err := req.Send() @@ -1695,10 +2169,28 @@ func (c *SNS) SubscribeRequest(input *SubscribeInput) (req *request.Request, out return } +// Subscribe API operation for Amazon Simple Notification Service. +// // Prepares to subscribe an endpoint by sending the endpoint a confirmation // message. To actually create a subscription, the endpoint owner must call // the ConfirmSubscription action with the token from the confirmation message. // Confirmation tokens are valid for three days. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Simple Notification Service's +// API operation, Subscribe for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// SubscriptionLimitExceededException +// InvalidParameterException +// InternalErrorException +// NotFoundException +// AuthorizationErrorException func (c *SNS) Subscribe(input *SubscribeInput) (*SubscribeOutput, error) { req, out := c.SubscribeRequest(input) err := req.Send() @@ -1748,12 +2240,29 @@ func (c *SNS) UnsubscribeRequest(input *UnsubscribeInput) (req *request.Request, return } +// Unsubscribe API operation for Amazon Simple Notification Service. +// // Deletes a subscription. If the subscription requires authentication for deletion, // only the owner of the subscription or the topic's owner can unsubscribe, // and an AWS signature is required. If the Unsubscribe call does not require // authentication and the requester is not the subscription owner, a final cancellation // message is delivered to the endpoint, so that the endpoint owner can easily // resubscribe to the topic if the Unsubscribe request was unintended. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Simple Notification Service's +// API operation, Unsubscribe for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidParameterException +// InternalErrorException +// AuthorizationErrorException +// NotFoundException func (c *SNS) Unsubscribe(input *UnsubscribeInput) (*UnsubscribeOutput, error) { req, out := c.UnsubscribeRequest(input) err := req.Send() diff --git a/service/sqs/api.go b/service/sqs/api.go index 7a5b7c99418..f7af004704f 100644 --- a/service/sqs/api.go +++ b/service/sqs/api.go @@ -55,6 +55,8 @@ func (c *SQS) AddPermissionRequest(input *AddPermissionInput) (req *request.Requ return } +// AddPermission API operation for Amazon Simple Queue Service. +// // Adds a permission to a queue for a specific principal (http://docs.aws.amazon.com/general/latest/gr/glos-chap.html#P). // This allows for sharing access to the queue. // @@ -71,6 +73,18 @@ func (c *SQS) AddPermissionRequest(input *AddPermissionInput) (req *request.Requ // Some API actions take lists of parameters. These lists are specified using // the param.n notation. Values of n are integers starting from 1. For example, // a parameter list with two elements looks like this: +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Simple Queue Service's +// API operation, AddPermission for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// OverLimit func (c *SQS) AddPermission(input *AddPermissionInput) (*AddPermissionOutput, error) { req, out := c.AddPermissionRequest(input) err := req.Send() @@ -120,6 +134,8 @@ func (c *SQS) ChangeMessageVisibilityRequest(input *ChangeMessageVisibilityInput return } +// ChangeMessageVisibility API operation for Amazon Simple Queue Service. +// // Changes the visibility timeout of a specified message in a queue to a new // value. The maximum allowed timeout value you can set the value to is 12 hours. // This means you can't extend the timeout of a message in an existing queue @@ -153,6 +169,19 @@ func (c *SQS) ChangeMessageVisibilityRequest(input *ChangeMessageVisibilityInput // visibility timeout for the message the next time it is received reverts to // the original timeout value, not the value you set with the ChangeMessageVisibility // action. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Simple Queue Service's +// API operation, ChangeMessageVisibility for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// MessageNotInflight +// ReceiptHandleIsInvalid func (c *SQS) ChangeMessageVisibility(input *ChangeMessageVisibilityInput) (*ChangeMessageVisibilityOutput, error) { req, out := c.ChangeMessageVisibilityRequest(input) err := req.Send() @@ -200,6 +229,8 @@ func (c *SQS) ChangeMessageVisibilityBatchRequest(input *ChangeMessageVisibility return } +// ChangeMessageVisibilityBatch API operation for Amazon Simple Queue Service. +// // Changes the visibility timeout of multiple messages. This is a batch version // of ChangeMessageVisibility. The result of the action on each message is reported // individually in the response. You can send up to 10 ChangeMessageVisibility @@ -212,6 +243,21 @@ func (c *SQS) ChangeMessageVisibilityBatchRequest(input *ChangeMessageVisibility // Some API actions take lists of parameters. These lists are specified using // the param.n notation. Values of n are integers starting from 1. For example, // a parameter list with two elements looks like this: +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Simple Queue Service's +// API operation, ChangeMessageVisibilityBatch for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// TooManyEntriesInBatchRequest +// EmptyBatchRequest +// BatchEntryIdsNotDistinct +// InvalidBatchEntryId func (c *SQS) ChangeMessageVisibilityBatch(input *ChangeMessageVisibilityBatchInput) (*ChangeMessageVisibilityBatchOutput, error) { req, out := c.ChangeMessageVisibilityBatchRequest(input) err := req.Send() @@ -259,6 +305,8 @@ func (c *SQS) CreateQueueRequest(input *CreateQueueInput) (req *request.Request, return } +// CreateQueue API operation for Amazon Simple Queue Service. +// // Creates a new queue, or returns the URL of an existing one. When you request // CreateQueue, you provide a name for the queue. To successfully create a new // queue, you must provide a name that is unique within the scope of your own @@ -282,6 +330,19 @@ func (c *SQS) CreateQueueRequest(input *CreateQueueInput) (req *request.Request, // Some API actions take lists of parameters. These lists are specified using // the param.n notation. Values of n are integers starting from 1. For example, // a parameter list with two elements looks like this: +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Simple Queue Service's +// API operation, CreateQueue for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// QueueDeletedRecently +// QueueNameExists func (c *SQS) CreateQueue(input *CreateQueueInput) (*CreateQueueOutput, error) { req, out := c.CreateQueueRequest(input) err := req.Send() @@ -331,6 +392,8 @@ func (c *SQS) DeleteMessageRequest(input *DeleteMessageInput) (req *request.Requ return } +// DeleteMessage API operation for Amazon Simple Queue Service. +// // Deletes the specified message from the specified queue. You specify the message // by using the message's receipt handle and not the message ID you received // when you sent the message. Even if the message is locked by another reader @@ -351,6 +414,19 @@ func (c *SQS) DeleteMessageRequest(input *DeleteMessageInput) (req *request.Requ // copy remains on the server and might be returned to you again on a subsequent // receive request. You should create your system to be idempotent so that receiving // a particular message more than once is not a problem. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Simple Queue Service's +// API operation, DeleteMessage for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidIdFormat +// ReceiptHandleIsInvalid func (c *SQS) DeleteMessage(input *DeleteMessageInput) (*DeleteMessageOutput, error) { req, out := c.DeleteMessageRequest(input) err := req.Send() @@ -398,6 +474,8 @@ func (c *SQS) DeleteMessageBatchRequest(input *DeleteMessageBatchInput) (req *re return } +// DeleteMessageBatch API operation for Amazon Simple Queue Service. +// // Deletes up to ten messages from the specified queue. This is a batch version // of DeleteMessage. The result of the delete action on each message is reported // individually in the response. @@ -409,6 +487,21 @@ func (c *SQS) DeleteMessageBatchRequest(input *DeleteMessageBatchInput) (req *re // Some API actions take lists of parameters. These lists are specified using // the param.n notation. Values of n are integers starting from 1. For example, // a parameter list with two elements looks like this: +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Simple Queue Service's +// API operation, DeleteMessageBatch for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// TooManyEntriesInBatchRequest +// EmptyBatchRequest +// BatchEntryIdsNotDistinct +// InvalidBatchEntryId func (c *SQS) DeleteMessageBatch(input *DeleteMessageBatchInput) (*DeleteMessageBatchOutput, error) { req, out := c.DeleteMessageBatchRequest(input) err := req.Send() @@ -458,6 +551,8 @@ func (c *SQS) DeleteQueueRequest(input *DeleteQueueInput) (req *request.Request, return } +// DeleteQueue API operation for Amazon Simple Queue Service. +// // Deletes the queue specified by the queue URL, regardless of whether the queue // is empty. If the specified queue does not exist, Amazon SQS returns a successful // response. @@ -475,6 +570,14 @@ func (c *SQS) DeleteQueueRequest(input *DeleteQueueInput) (req *request.Request, // We reserve the right to delete queues that have had no activity for more // than 30 days. For more information, see How Amazon SQS Queues Work (http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/SQSConcepts.html) // in the Amazon SQS Developer Guide. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Simple Queue Service's +// API operation, DeleteQueue for more information, and other errors +// that the API operation could return. func (c *SQS) DeleteQueue(input *DeleteQueueInput) (*DeleteQueueOutput, error) { req, out := c.DeleteQueueRequest(input) err := req.Send() @@ -522,11 +625,25 @@ func (c *SQS) GetQueueAttributesRequest(input *GetQueueAttributesInput) (req *re return } +// GetQueueAttributes API operation for Amazon Simple Queue Service. +// // Gets attributes for the specified queue. // // Some API actions take lists of parameters. These lists are specified using // the param.n notation. Values of n are integers starting from 1. For example, // a parameter list with two elements looks like this: +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Simple Queue Service's +// API operation, GetQueueAttributes for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidAttributeName func (c *SQS) GetQueueAttributes(input *GetQueueAttributesInput) (*GetQueueAttributesOutput, error) { req, out := c.GetQueueAttributesRequest(input) err := req.Send() @@ -574,6 +691,8 @@ func (c *SQS) GetQueueUrlRequest(input *GetQueueUrlInput) (req *request.Request, return } +// GetQueueUrl API operation for Amazon Simple Queue Service. +// // Returns the URL of an existing queue. This action provides a simple way to // retrieve the URL of an Amazon SQS queue. // @@ -582,6 +701,18 @@ func (c *SQS) GetQueueUrlRequest(input *GetQueueUrlInput) (req *request.Request, // must grant you permission to access the queue. For more information about // shared queue access, see AddPermission or go to Shared Queues (http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/acp-overview.html) // in the Amazon SQS Developer Guide. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Simple Queue Service's +// API operation, GetQueueUrl for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// QueueDoesNotExist func (c *SQS) GetQueueUrl(input *GetQueueUrlInput) (*GetQueueUrlOutput, error) { req, out := c.GetQueueUrlRequest(input) err := req.Send() @@ -629,11 +760,25 @@ func (c *SQS) ListDeadLetterSourceQueuesRequest(input *ListDeadLetterSourceQueue return } +// ListDeadLetterSourceQueues API operation for Amazon Simple Queue Service. +// // Returns a list of your queues that have the RedrivePolicy queue attribute // configured with a dead letter queue. // // For more information about using dead letter queues, see Using Amazon SQS // Dead Letter Queues (http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/SQSDeadLetterQueue.html). +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Simple Queue Service's +// API operation, ListDeadLetterSourceQueues for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// QueueDoesNotExist func (c *SQS) ListDeadLetterSourceQueues(input *ListDeadLetterSourceQueuesInput) (*ListDeadLetterSourceQueuesOutput, error) { req, out := c.ListDeadLetterSourceQueuesRequest(input) err := req.Send() @@ -681,9 +826,19 @@ func (c *SQS) ListQueuesRequest(input *ListQueuesInput) (req *request.Request, o return } +// ListQueues API operation for Amazon Simple Queue Service. +// // Returns a list of your queues. The maximum number of queues that can be returned // is 1000. If you specify a value for the optional QueueNamePrefix parameter, // only queues with a name beginning with the specified value are returned. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Simple Queue Service's +// API operation, ListQueues for more information, and other errors +// that the API operation could return. func (c *SQS) ListQueues(input *ListQueuesInput) (*ListQueuesOutput, error) { req, out := c.ListQueuesRequest(input) err := req.Send() @@ -733,6 +888,8 @@ func (c *SQS) PurgeQueueRequest(input *PurgeQueueInput) (req *request.Request, o return } +// PurgeQueue API operation for Amazon Simple Queue Service. +// // Deletes the messages in a queue specified by the queue URL. // // When you use the PurgeQueue API, the deleted messages in the queue cannot @@ -743,6 +900,19 @@ func (c *SQS) PurgeQueueRequest(input *PurgeQueueInput) (req *request.Request, o // messages sent to the queue while it is being purged may be deleted. While // the queue is being purged, messages sent to the queue before PurgeQueue was // called may be received, but will be deleted within the next minute. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Simple Queue Service's +// API operation, PurgeQueue for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// QueueDoesNotExist +// PurgeQueueInProgress func (c *SQS) PurgeQueue(input *PurgeQueueInput) (*PurgeQueueOutput, error) { req, out := c.PurgeQueueRequest(input) err := req.Send() @@ -790,6 +960,8 @@ func (c *SQS) ReceiveMessageRequest(input *ReceiveMessageInput) (req *request.Re return } +// ReceiveMessage API operation for Amazon Simple Queue Service. +// // Retrieves one or more messages, with a maximum limit of 10 messages, from // the specified queue. Long poll support is enabled by using the WaitTimeSeconds // parameter. For more information, see Amazon SQS Long Poll (http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-long-polling.html) @@ -832,6 +1004,18 @@ func (c *SQS) ReceiveMessageRequest(input *ReceiveMessageInput) (req *request.Re // Going forward, new attributes might be added. If you are writing code // that calls this action, we recommend that you structure your code so that // it can handle new attributes gracefully. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Simple Queue Service's +// API operation, ReceiveMessage for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// OverLimit func (c *SQS) ReceiveMessage(input *ReceiveMessageInput) (*ReceiveMessageOutput, error) { req, out := c.ReceiveMessageRequest(input) err := req.Send() @@ -881,8 +1065,18 @@ func (c *SQS) RemovePermissionRequest(input *RemovePermissionInput) (req *reques return } +// RemovePermission API operation for Amazon Simple Queue Service. +// // Revokes any permissions in the queue policy that matches the specified Label // parameter. Only the owner of the queue can remove permissions. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Simple Queue Service's +// API operation, RemovePermission for more information, and other errors +// that the API operation could return. func (c *SQS) RemovePermission(input *RemovePermissionInput) (*RemovePermissionOutput, error) { req, out := c.RemovePermissionRequest(input) err := req.Send() @@ -930,6 +1124,8 @@ func (c *SQS) SendMessageRequest(input *SendMessageInput) (req *request.Request, return } +// SendMessage API operation for Amazon Simple Queue Service. +// // Delivers a message to the specified queue. With Amazon SQS, you now have // the ability to send large payload messages that are up to 256KB (262,144 // bytes) in size. To send large payloads, you must use an AWS SDK that supports @@ -942,6 +1138,19 @@ func (c *SQS) SendMessageRequest(input *SendMessageInput) (req *request.Request, // in the list, your request will be rejected. // // #x9 | #xA | #xD | [#x20 to #xD7FF] | [#xE000 to #xFFFD] | [#x10000 to #x10FFFF] +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Simple Queue Service's +// API operation, SendMessage for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidMessageContents +// UnsupportedOperation func (c *SQS) SendMessage(input *SendMessageInput) (*SendMessageOutput, error) { req, out := c.SendMessageRequest(input) err := req.Send() @@ -989,6 +1198,8 @@ func (c *SQS) SendMessageBatchRequest(input *SendMessageBatchInput) (req *reques return } +// SendMessageBatch API operation for Amazon Simple Queue Service. +// // Delivers up to ten messages to the specified queue. This is a batch version // of SendMessage. The result of the send action on each message is reported // individually in the response. The maximum allowed individual message size @@ -1015,6 +1226,23 @@ func (c *SQS) SendMessageBatchRequest(input *SendMessageBatchInput) (req *reques // Some API actions take lists of parameters. These lists are specified using // the param.n notation. Values of n are integers starting from 1. For example, // a parameter list with two elements looks like this: +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Simple Queue Service's +// API operation, SendMessageBatch for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// TooManyEntriesInBatchRequest +// EmptyBatchRequest +// BatchEntryIdsNotDistinct +// BatchRequestTooLong +// InvalidBatchEntryId +// UnsupportedOperation func (c *SQS) SendMessageBatch(input *SendMessageBatchInput) (*SendMessageBatchOutput, error) { req, out := c.SendMessageBatchRequest(input) err := req.Send() @@ -1064,6 +1292,8 @@ func (c *SQS) SetQueueAttributesRequest(input *SetQueueAttributesInput) (req *re return } +// SetQueueAttributes API operation for Amazon Simple Queue Service. +// // Sets the value of one or more queue attributes. When you change a queue's // attributes, the change can take up to 60 seconds for most of the attributes // to propagate throughout the SQS system. Changes made to the MessageRetentionPeriod @@ -1072,6 +1302,18 @@ func (c *SQS) SetQueueAttributesRequest(input *SetQueueAttributesInput) (req *re // Going forward, new attributes might be added. If you are writing code that // calls this action, we recommend that you structure your code so that it can // handle new attributes gracefully. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Simple Queue Service's +// API operation, SetQueueAttributes for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidAttributeName func (c *SQS) SetQueueAttributes(input *SetQueueAttributesInput) (*SetQueueAttributesOutput, error) { req, out := c.SetQueueAttributesRequest(input) err := req.Send() diff --git a/service/ssm/api.go b/service/ssm/api.go index aff4623e340..6f74b40d5c5 100644 --- a/service/ssm/api.go +++ b/service/ssm/api.go @@ -52,6 +52,8 @@ func (c *SSM) AddTagsToResourceRequest(input *AddTagsToResourceInput) (req *requ return } +// AddTagsToResource API operation for Amazon Simple Systems Management Service. +// // Adds or overwrites one or more tags for the specified resource. Tags are // metadata that you assign to your managed instances. Tags enable you to categorize // your managed instances in different ways, for example, by purpose, owner, @@ -70,6 +72,20 @@ func (c *SSM) AddTagsToResourceRequest(input *AddTagsToResourceInput) (req *requ // // For more information about tags, see Tagging Your Amazon EC2 Resources (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Using_Tags.html) // in the Amazon EC2 User Guide. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Simple Systems Management Service's +// API operation, AddTagsToResource for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidResourceType +// InvalidResourceId +// InternalServerError func (c *SSM) AddTagsToResource(input *AddTagsToResourceInput) (*AddTagsToResourceOutput, error) { req, out := c.AddTagsToResourceRequest(input) err := req.Send() @@ -117,8 +133,25 @@ func (c *SSM) CancelCommandRequest(input *CancelCommandInput) (req *request.Requ return } +// CancelCommand API operation for Amazon Simple Systems Management Service. +// // Attempts to cancel the command specified by the Command ID. There is no guarantee // that the command will be terminated and the underlying process stopped. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Simple Systems Management Service's +// API operation, CancelCommand for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InternalServerError +// InvalidCommandId +// InvalidInstanceId +// DuplicateInstanceId func (c *SSM) CancelCommand(input *CancelCommandInput) (*CancelCommandOutput, error) { req, out := c.CancelCommandRequest(input) err := req.Send() @@ -166,6 +199,8 @@ func (c *SSM) CreateActivationRequest(input *CreateActivationInput) (req *reques return } +// CreateActivation API operation for Amazon Simple Systems Management Service. +// // Registers your on-premises server or virtual machine with Amazon EC2 so that // you can manage these resources using Run Command. An on-premises server or // virtual machine that has been registered with EC2 is called a managed instance. @@ -173,6 +208,18 @@ func (c *SSM) CreateActivationRequest(input *CreateActivationInput) (req *reques // (Linux) (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/managed-instances.html) // or Setting Up Managed Instances (Windows) (http://docs.aws.amazon.com/AWSEC2/latest/WindowsGuide/managed-instances.html) // in the Amazon EC2 User Guide. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Simple Systems Management Service's +// API operation, CreateActivation for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InternalServerError func (c *SSM) CreateActivation(input *CreateActivationInput) (*CreateActivationOutput, error) { req, out := c.CreateActivationRequest(input) err := req.Send() @@ -220,6 +267,8 @@ func (c *SSM) CreateAssociationRequest(input *CreateAssociationInput) (req *requ return } +// CreateAssociation API operation for Amazon Simple Systems Management Service. +// // Associates the specified SSM document with the specified instance. // // When you associate an SSM document with an instance, the configuration agent @@ -228,6 +277,24 @@ func (c *SSM) CreateAssociationRequest(input *CreateAssociationInput) (req *requ // // If you associate a document with an instance that already has an associated // document, the system throws the AssociationAlreadyExists exception. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Simple Systems Management Service's +// API operation, CreateAssociation for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// AssociationAlreadyExists +// AssociationLimitExceeded +// InternalServerError +// InvalidDocument +// InvalidInstanceId +// UnsupportedPlatformType +// InvalidParameters func (c *SSM) CreateAssociation(input *CreateAssociationInput) (*CreateAssociationOutput, error) { req, out := c.CreateAssociationRequest(input) err := req.Send() @@ -275,6 +342,8 @@ func (c *SSM) CreateAssociationBatchRequest(input *CreateAssociationBatchInput) return } +// CreateAssociationBatch API operation for Amazon Simple Systems Management Service. +// // Associates the specified SSM document with the specified instances. // // When you associate an SSM document with an instance, the configuration agent @@ -283,6 +352,24 @@ func (c *SSM) CreateAssociationBatchRequest(input *CreateAssociationBatchInput) // // If you associate a document with an instance that already has an associated // document, the system throws the AssociationAlreadyExists exception. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Simple Systems Management Service's +// API operation, CreateAssociationBatch for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InternalServerError +// InvalidDocument +// InvalidInstanceId +// InvalidParameters +// DuplicateInstanceId +// AssociationLimitExceeded +// UnsupportedPlatformType func (c *SSM) CreateAssociationBatch(input *CreateAssociationBatchInput) (*CreateAssociationBatchOutput, error) { req, out := c.CreateAssociationBatchRequest(input) err := req.Send() @@ -330,10 +417,28 @@ func (c *SSM) CreateDocumentRequest(input *CreateDocumentInput) (req *request.Re return } +// CreateDocument API operation for Amazon Simple Systems Management Service. +// // Creates an SSM document. // // After you create an SSM document, you can use CreateAssociation to associate // it with one or more running instances. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Simple Systems Management Service's +// API operation, CreateDocument for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// DocumentAlreadyExists +// MaxDocumentSizeExceeded +// InternalServerError +// InvalidDocumentContent +// DocumentLimitExceeded func (c *SSM) CreateDocument(input *CreateDocumentInput) (*CreateDocumentOutput, error) { req, out := c.CreateDocumentRequest(input) err := req.Send() @@ -381,10 +486,26 @@ func (c *SSM) DeleteActivationRequest(input *DeleteActivationInput) (req *reques return } +// DeleteActivation API operation for Amazon Simple Systems Management Service. +// // Deletes an activation. You are not required to delete an activation. If you // delete an activation, you can no longer use it to register additional managed // instances. Deleting an activation does not de-register managed instances. // You must manually de-register managed instances. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Simple Systems Management Service's +// API operation, DeleteActivation for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidActivationId +// InvalidActivation +// InternalServerError func (c *SSM) DeleteActivation(input *DeleteActivationInput) (*DeleteActivationOutput, error) { req, out := c.DeleteActivationRequest(input) err := req.Send() @@ -432,12 +553,30 @@ func (c *SSM) DeleteAssociationRequest(input *DeleteAssociationInput) (req *requ return } +// DeleteAssociation API operation for Amazon Simple Systems Management Service. +// // Disassociates the specified SSM document from the specified instance. // // When you disassociate an SSM document from an instance, it does not change // the configuration of the instance. To change the configuration state of an // instance after you disassociate a document, you must create a new document // with the desired configuration and associate it with the instance. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Simple Systems Management Service's +// API operation, DeleteAssociation for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// AssociationDoesNotExist +// InternalServerError +// InvalidDocument +// InvalidInstanceId +// TooManyUpdates func (c *SSM) DeleteAssociation(input *DeleteAssociationInput) (*DeleteAssociationOutput, error) { req, out := c.DeleteAssociationRequest(input) err := req.Send() @@ -485,10 +624,27 @@ func (c *SSM) DeleteDocumentRequest(input *DeleteDocumentInput) (req *request.Re return } +// DeleteDocument API operation for Amazon Simple Systems Management Service. +// // Deletes the SSM document and all instance associations to the document. // // Before you delete the SSM document, we recommend that you use DeleteAssociation // to disassociate all instances that are associated with the document. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Simple Systems Management Service's +// API operation, DeleteDocument for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InternalServerError +// InvalidDocument +// InvalidDocumentOperation +// AssociatedInstances func (c *SSM) DeleteDocument(input *DeleteDocumentInput) (*DeleteDocumentOutput, error) { req, out := c.DeleteDocumentRequest(input) err := req.Send() @@ -536,9 +692,24 @@ func (c *SSM) DeregisterManagedInstanceRequest(input *DeregisterManagedInstanceI return } +// DeregisterManagedInstance API operation for Amazon Simple Systems Management Service. +// // Removes the server or virtual machine from the list of registered servers. // You can reregister the instance again at any time. If you don’t plan to use // Run Command on the server, we suggest uninstalling the SSM agent first. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Simple Systems Management Service's +// API operation, DeregisterManagedInstance for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidInstanceId +// InternalServerError func (c *SSM) DeregisterManagedInstance(input *DeregisterManagedInstanceInput) (*DeregisterManagedInstanceOutput, error) { req, out := c.DeregisterManagedInstanceRequest(input) err := req.Send() @@ -592,9 +763,25 @@ func (c *SSM) DescribeActivationsRequest(input *DescribeActivationsInput) (req * return } +// DescribeActivations API operation for Amazon Simple Systems Management Service. +// // Details about the activation, including: the date and time the activation // was created, the expiration date, the IAM role assigned to the instances // in the activation, and the number of instances activated by this registration. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Simple Systems Management Service's +// API operation, DescribeActivations for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidFilter +// InvalidNextToken +// InternalServerError func (c *SSM) DescribeActivations(input *DescribeActivationsInput) (*DescribeActivationsOutput, error) { req, out := c.DescribeActivationsRequest(input) err := req.Send() @@ -667,7 +854,24 @@ func (c *SSM) DescribeAssociationRequest(input *DescribeAssociationInput) (req * return } +// DescribeAssociation API operation for Amazon Simple Systems Management Service. +// // Describes the associations for the specified SSM document or instance. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Simple Systems Management Service's +// API operation, DescribeAssociation for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// AssociationDoesNotExist +// InternalServerError +// InvalidDocument +// InvalidInstanceId func (c *SSM) DescribeAssociation(input *DescribeAssociationInput) (*DescribeAssociationOutput, error) { req, out := c.DescribeAssociationRequest(input) err := req.Send() @@ -715,7 +919,22 @@ func (c *SSM) DescribeDocumentRequest(input *DescribeDocumentInput) (req *reques return } +// DescribeDocument API operation for Amazon Simple Systems Management Service. +// // Describes the specified SSM document. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Simple Systems Management Service's +// API operation, DescribeDocument for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InternalServerError +// InvalidDocument func (c *SSM) DescribeDocument(input *DescribeDocumentInput) (*DescribeDocumentOutput, error) { req, out := c.DescribeDocumentRequest(input) err := req.Send() @@ -763,9 +982,25 @@ func (c *SSM) DescribeDocumentPermissionRequest(input *DescribeDocumentPermissio return } +// DescribeDocumentPermission API operation for Amazon Simple Systems Management Service. +// // Describes the permissions for an SSM document. If you created the document, // you are the owner. If a document is shared, it can either be shared privately // (by specifying a user’s AWS account ID) or publicly (All). +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Simple Systems Management Service's +// API operation, DescribeDocumentPermission for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InternalServerError +// InvalidDocument +// InvalidPermissionType func (c *SSM) DescribeDocumentPermission(input *DescribeDocumentPermissionInput) (*DescribeDocumentPermissionOutput, error) { req, out := c.DescribeDocumentPermissionRequest(input) err := req.Send() @@ -819,12 +1054,30 @@ func (c *SSM) DescribeInstanceInformationRequest(input *DescribeInstanceInformat return } +// DescribeInstanceInformation API operation for Amazon Simple Systems Management Service. +// // Describes one or more of your instances. You can use this to get information // about instances like the operating system platform, the SSM agent version // (Linux), status etc. If you specify one or more instance IDs, it returns // information for those instances. If you do not specify instance IDs, it returns // information for all your instances. If you specify an instance ID that is // not valid or an instance that you do not own, you receive an error. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Simple Systems Management Service's +// API operation, DescribeInstanceInformation for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InternalServerError +// InvalidInstanceId +// InvalidNextToken +// InvalidInstanceInformationFilterValue +// InvalidFilterKey func (c *SSM) DescribeInstanceInformation(input *DescribeInstanceInformationInput) (*DescribeInstanceInformationOutput, error) { req, out := c.DescribeInstanceInformationRequest(input) err := req.Send() @@ -897,7 +1150,22 @@ func (c *SSM) GetDocumentRequest(input *GetDocumentInput) (req *request.Request, return } +// GetDocument API operation for Amazon Simple Systems Management Service. +// // Gets the contents of the specified SSM document. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Simple Systems Management Service's +// API operation, GetDocument for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InternalServerError +// InvalidDocument func (c *SSM) GetDocument(input *GetDocumentInput) (*GetDocumentOutput, error) { req, out := c.GetDocumentRequest(input) err := req.Send() @@ -951,7 +1219,22 @@ func (c *SSM) ListAssociationsRequest(input *ListAssociationsInput) (req *reques return } +// ListAssociations API operation for Amazon Simple Systems Management Service. +// // Lists the associations for the specified SSM document or instance. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Simple Systems Management Service's +// API operation, ListAssociations for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InternalServerError +// InvalidNextToken func (c *SSM) ListAssociations(input *ListAssociationsInput) (*ListAssociationsOutput, error) { req, out := c.ListAssociationsRequest(input) err := req.Send() @@ -1030,11 +1313,29 @@ func (c *SSM) ListCommandInvocationsRequest(input *ListCommandInvocationsInput) return } +// ListCommandInvocations API operation for Amazon Simple Systems Management Service. +// // An invocation is copy of a command sent to a specific instance. A command // can apply to one or more instances. A command invocation applies to one instance. // For example, if a user executes SendCommand against three instances, then // a command invocation is created for each requested instance ID. ListCommandInvocations // provide status about command execution. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Simple Systems Management Service's +// API operation, ListCommandInvocations for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InternalServerError +// InvalidCommandId +// InvalidInstanceId +// InvalidFilterKey +// InvalidNextToken func (c *SSM) ListCommandInvocations(input *ListCommandInvocationsInput) (*ListCommandInvocationsOutput, error) { req, out := c.ListCommandInvocationsRequest(input) err := req.Send() @@ -1113,7 +1414,25 @@ func (c *SSM) ListCommandsRequest(input *ListCommandsInput) (req *request.Reques return } +// ListCommands API operation for Amazon Simple Systems Management Service. +// // Lists the commands requested by users of the AWS account. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Simple Systems Management Service's +// API operation, ListCommands for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InternalServerError +// InvalidCommandId +// InvalidInstanceId +// InvalidFilterKey +// InvalidNextToken func (c *SSM) ListCommands(input *ListCommandsInput) (*ListCommandsOutput, error) { req, out := c.ListCommandsRequest(input) err := req.Send() @@ -1192,7 +1511,23 @@ func (c *SSM) ListDocumentsRequest(input *ListDocumentsInput) (req *request.Requ return } +// ListDocuments API operation for Amazon Simple Systems Management Service. +// // Describes one or more of your SSM documents. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Simple Systems Management Service's +// API operation, ListDocuments for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InternalServerError +// InvalidNextToken +// InvalidFilterKey func (c *SSM) ListDocuments(input *ListDocumentsInput) (*ListDocumentsOutput, error) { req, out := c.ListDocumentsRequest(input) err := req.Send() @@ -1265,7 +1600,23 @@ func (c *SSM) ListTagsForResourceRequest(input *ListTagsForResourceInput) (req * return } +// ListTagsForResource API operation for Amazon Simple Systems Management Service. +// // Returns a list of the tags assigned to the specified resource. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Simple Systems Management Service's +// API operation, ListTagsForResource for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidResourceType +// InvalidResourceId +// InternalServerError func (c *SSM) ListTagsForResource(input *ListTagsForResourceInput) (*ListTagsForResourceOutput, error) { req, out := c.ListTagsForResourceRequest(input) err := req.Send() @@ -1313,10 +1664,28 @@ func (c *SSM) ModifyDocumentPermissionRequest(input *ModifyDocumentPermissionInp return } +// ModifyDocumentPermission API operation for Amazon Simple Systems Management Service. +// // Share a document publicly or privately. If you share a document privately, // you must specify the AWS user account IDs for those people who can use the // document. If you share a document publicly, you must specify All as the account // ID. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Simple Systems Management Service's +// API operation, ModifyDocumentPermission for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InternalServerError +// InvalidDocument +// InvalidPermissionType +// DocumentPermissionLimit +// DocumentLimitExceeded func (c *SSM) ModifyDocumentPermission(input *ModifyDocumentPermissionInput) (*ModifyDocumentPermissionOutput, error) { req, out := c.ModifyDocumentPermissionRequest(input) err := req.Send() @@ -1364,7 +1733,23 @@ func (c *SSM) RemoveTagsFromResourceRequest(input *RemoveTagsFromResourceInput) return } +// RemoveTagsFromResource API operation for Amazon Simple Systems Management Service. +// // Removes all tags from the specified resource. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Simple Systems Management Service's +// API operation, RemoveTagsFromResource for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidResourceType +// InvalidResourceId +// InternalServerError func (c *SSM) RemoveTagsFromResource(input *RemoveTagsFromResourceInput) (*RemoveTagsFromResourceOutput, error) { req, out := c.RemoveTagsFromResourceRequest(input) err := req.Send() @@ -1412,7 +1797,30 @@ func (c *SSM) SendCommandRequest(input *SendCommandInput) (req *request.Request, return } +// SendCommand API operation for Amazon Simple Systems Management Service. +// // Executes commands on one or more remote instances. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Simple Systems Management Service's +// API operation, SendCommand for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// DuplicateInstanceId +// InternalServerError +// InvalidInstanceId +// InvalidDocument +// InvalidOutputFolder +// InvalidParameters +// UnsupportedPlatformType +// MaxDocumentSizeExceeded +// InvalidRole +// InvalidNotificationConfig func (c *SSM) SendCommand(input *SendCommandInput) (*SendCommandOutput, error) { req, out := c.SendCommandRequest(input) err := req.Send() @@ -1460,7 +1868,26 @@ func (c *SSM) UpdateAssociationStatusRequest(input *UpdateAssociationStatusInput return } +// UpdateAssociationStatus API operation for Amazon Simple Systems Management Service. +// // Updates the status of the SSM document associated with the specified instance. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Simple Systems Management Service's +// API operation, UpdateAssociationStatus for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InternalServerError +// InvalidInstanceId +// InvalidDocument +// AssociationDoesNotExist +// StatusUnchanged +// TooManyUpdates func (c *SSM) UpdateAssociationStatus(input *UpdateAssociationStatusInput) (*UpdateAssociationStatusOutput, error) { req, out := c.UpdateAssociationStatusRequest(input) err := req.Send() @@ -1508,8 +1935,23 @@ func (c *SSM) UpdateManagedInstanceRoleRequest(input *UpdateManagedInstanceRoleI return } +// UpdateManagedInstanceRole API operation for Amazon Simple Systems Management Service. +// // Assigns or changes an Amazon Identity and Access Management (IAM) role to // the managed instance. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Simple Systems Management Service's +// API operation, UpdateManagedInstanceRole for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidInstanceId +// InternalServerError func (c *SSM) UpdateManagedInstanceRole(input *UpdateManagedInstanceRoleInput) (*UpdateManagedInstanceRoleOutput, error) { req, out := c.UpdateManagedInstanceRoleRequest(input) err := req.Send() diff --git a/service/storagegateway/api.go b/service/storagegateway/api.go index c7ae77d7cd0..cabea912a90 100644 --- a/service/storagegateway/api.go +++ b/service/storagegateway/api.go @@ -52,6 +52,8 @@ func (c *StorageGateway) ActivateGatewayRequest(input *ActivateGatewayInput) (re return } +// ActivateGateway API operation for AWS Storage Gateway. +// // Activates the gateway you previously deployed on your host. For more information, // see Activate the AWS Storage Gateway (http://docs.aws.amazon.com/storagegateway/latest/userguide/GettingStartedActivateGateway-common.html). // In the activation process, you specify information such as the you want to @@ -61,6 +63,19 @@ func (c *StorageGateway) ActivateGatewayRequest(input *ActivateGatewayInput) (re // more information, see UpdateGatewayInformation. // // You must turn on the gateway VM before you can activate your gateway. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Storage Gateway's +// API operation, ActivateGateway for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidGatewayRequestException +// InternalServerError func (c *StorageGateway) ActivateGateway(input *ActivateGatewayInput) (*ActivateGatewayOutput, error) { req, out := c.ActivateGatewayRequest(input) err := req.Send() @@ -108,6 +123,8 @@ func (c *StorageGateway) AddCacheRequest(input *AddCacheInput) (req *request.Req return } +// AddCache API operation for AWS Storage Gateway. +// // Configures one or more gateway local disks as cache for a cached-volume gateway. // This operation is supported only for the gateway-cached volume architecture // (see Storage Gateway Concepts (http://docs.aws.amazon.com/storagegateway/latest/userguide/StorageGatewayConcepts.html)). @@ -115,6 +132,19 @@ func (c *StorageGateway) AddCacheRequest(input *AddCacheInput) (req *request.Req // In the request, you specify the gateway Amazon Resource Name (ARN) to which // you want to add cache, and one or more disk IDs that you want to configure // as cache. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Storage Gateway's +// API operation, AddCache for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidGatewayRequestException +// InternalServerError func (c *StorageGateway) AddCache(input *AddCacheInput) (*AddCacheOutput, error) { req, out := c.AddCacheRequest(input) err := req.Send() @@ -162,6 +192,8 @@ func (c *StorageGateway) AddTagsToResourceRequest(input *AddTagsToResourceInput) return } +// AddTagsToResource API operation for AWS Storage Gateway. +// // Adds one or more tags to the specified resource. You use tags to add metadata // to resources, which you can use to categorize these resources. For example, // you can categorize resources by purpose, owner, environment, or team. Each @@ -176,6 +208,19 @@ func (c *StorageGateway) AddTagsToResourceRequest(input *AddTagsToResourceInput) // // You can create a maximum of 10 tags for each resource. Virtual tapes and // storage volumes that are recovered to a new gateway maintain their tags. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Storage Gateway's +// API operation, AddTagsToResource for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidGatewayRequestException +// InternalServerError func (c *StorageGateway) AddTagsToResource(input *AddTagsToResourceInput) (*AddTagsToResourceOutput, error) { req, out := c.AddTagsToResourceRequest(input) err := req.Send() @@ -223,6 +268,8 @@ func (c *StorageGateway) AddUploadBufferRequest(input *AddUploadBufferInput) (re return } +// AddUploadBuffer API operation for AWS Storage Gateway. +// // Configures one or more gateway local disks as upload buffer for a specified // gateway. This operation is supported for both the gateway-stored and gateway-cached // volume architectures. @@ -230,6 +277,19 @@ func (c *StorageGateway) AddUploadBufferRequest(input *AddUploadBufferInput) (re // In the request, you specify the gateway Amazon Resource Name (ARN) to which // you want to add upload buffer, and one or more disk IDs that you want to // configure as upload buffer. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Storage Gateway's +// API operation, AddUploadBuffer for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidGatewayRequestException +// InternalServerError func (c *StorageGateway) AddUploadBuffer(input *AddUploadBufferInput) (*AddUploadBufferOutput, error) { req, out := c.AddUploadBufferRequest(input) err := req.Send() @@ -277,6 +337,8 @@ func (c *StorageGateway) AddWorkingStorageRequest(input *AddWorkingStorageInput) return } +// AddWorkingStorage API operation for AWS Storage Gateway. +// // Configures one or more gateway local disks as working storage for a gateway. // This operation is supported only for the gateway-stored volume architecture. // This operation is deprecated in cached-volumes API version 20120630. Use @@ -288,6 +350,19 @@ func (c *StorageGateway) AddWorkingStorageRequest(input *AddWorkingStorageInput) // In the request, you specify the gateway Amazon Resource Name (ARN) to which // you want to add working storage, and one or more disk IDs that you want to // configure as working storage. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Storage Gateway's +// API operation, AddWorkingStorage for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidGatewayRequestException +// InternalServerError func (c *StorageGateway) AddWorkingStorage(input *AddWorkingStorageInput) (*AddWorkingStorageOutput, error) { req, out := c.AddWorkingStorageRequest(input) err := req.Send() @@ -335,8 +410,23 @@ func (c *StorageGateway) CancelArchivalRequest(input *CancelArchivalInput) (req return } +// CancelArchival API operation for AWS Storage Gateway. +// // Cancels archiving of a virtual tape to the virtual tape shelf (VTS) after // the archiving process is initiated. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Storage Gateway's +// API operation, CancelArchival for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidGatewayRequestException +// InternalServerError func (c *StorageGateway) CancelArchival(input *CancelArchivalInput) (*CancelArchivalOutput, error) { req, out := c.CancelArchivalRequest(input) err := req.Send() @@ -384,9 +474,24 @@ func (c *StorageGateway) CancelRetrievalRequest(input *CancelRetrievalInput) (re return } +// CancelRetrieval API operation for AWS Storage Gateway. +// // Cancels retrieval of a virtual tape from the virtual tape shelf (VTS) to // a gateway after the retrieval process is initiated. The virtual tape is returned // to the VTS. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Storage Gateway's +// API operation, CancelRetrieval for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidGatewayRequestException +// InternalServerError func (c *StorageGateway) CancelRetrieval(input *CancelRetrievalInput) (*CancelRetrievalOutput, error) { req, out := c.CancelRetrievalRequest(input) err := req.Send() @@ -434,6 +539,8 @@ func (c *StorageGateway) CreateCachediSCSIVolumeRequest(input *CreateCachediSCSI return } +// CreateCachediSCSIVolume API operation for AWS Storage Gateway. +// // Creates a cached volume on a specified cached gateway. This operation is // supported only for the gateway-cached volume architecture. // @@ -446,6 +553,19 @@ func (c *StorageGateway) CreateCachediSCSIVolumeRequest(input *CreateCachediSCSI // and returns information about it such as the volume Amazon Resource Name // (ARN), its size, and the iSCSI target ARN that initiators can use to connect // to the volume target. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Storage Gateway's +// API operation, CreateCachediSCSIVolume for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidGatewayRequestException +// InternalServerError func (c *StorageGateway) CreateCachediSCSIVolume(input *CreateCachediSCSIVolumeInput) (*CreateCachediSCSIVolumeOutput, error) { req, out := c.CreateCachediSCSIVolumeRequest(input) err := req.Send() @@ -493,6 +613,8 @@ func (c *StorageGateway) CreateSnapshotRequest(input *CreateSnapshotInput) (req return } +// CreateSnapshot API operation for AWS Storage Gateway. +// // Initiates a snapshot of a volume. // // AWS Storage Gateway provides the ability to back up point-in-time snapshots @@ -518,6 +640,19 @@ func (c *StorageGateway) CreateSnapshotRequest(input *CreateSnapshotInput) (req // Volume and snapshot IDs are changing to a longer length ID format. For // more information, see the important note on the Welcome (http://docs.aws.amazon.com/storagegateway/latest/APIReference/Welcome.html) // page. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Storage Gateway's +// API operation, CreateSnapshot for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidGatewayRequestException +// InternalServerError func (c *StorageGateway) CreateSnapshot(input *CreateSnapshotInput) (*CreateSnapshotOutput, error) { req, out := c.CreateSnapshotRequest(input) err := req.Send() @@ -565,6 +700,8 @@ func (c *StorageGateway) CreateSnapshotFromVolumeRecoveryPointRequest(input *Cre return } +// CreateSnapshotFromVolumeRecoveryPoint API operation for AWS Storage Gateway. +// // Initiates a snapshot of a gateway from a volume recovery point. This operation // is supported only for the gateway-cached volume architecture. // @@ -582,6 +719,19 @@ func (c *StorageGateway) CreateSnapshotFromVolumeRecoveryPointRequest(input *Cre // // To list or delete a snapshot, you must use the Amazon EC2 API. For more // information, in Amazon Elastic Compute Cloud API Reference. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Storage Gateway's +// API operation, CreateSnapshotFromVolumeRecoveryPoint for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidGatewayRequestException +// InternalServerError func (c *StorageGateway) CreateSnapshotFromVolumeRecoveryPoint(input *CreateSnapshotFromVolumeRecoveryPointInput) (*CreateSnapshotFromVolumeRecoveryPointOutput, error) { req, out := c.CreateSnapshotFromVolumeRecoveryPointRequest(input) err := req.Send() @@ -629,6 +779,8 @@ func (c *StorageGateway) CreateStorediSCSIVolumeRequest(input *CreateStorediSCSI return } +// CreateStorediSCSIVolume API operation for AWS Storage Gateway. +// // Creates a volume on a specified gateway. This operation is supported only // for the gateway-stored volume architecture. // @@ -642,6 +794,19 @@ func (c *StorageGateway) CreateStorediSCSIVolumeRequest(input *CreateStorediSCSI // the volume and returns volume information such as the volume Amazon Resource // Name (ARN), its size, and the iSCSI target ARN that initiators can use to // connect to the volume target. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Storage Gateway's +// API operation, CreateStorediSCSIVolume for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidGatewayRequestException +// InternalServerError func (c *StorageGateway) CreateStorediSCSIVolume(input *CreateStorediSCSIVolumeInput) (*CreateStorediSCSIVolumeOutput, error) { req, out := c.CreateStorediSCSIVolumeRequest(input) err := req.Send() @@ -689,11 +854,26 @@ func (c *StorageGateway) CreateTapeWithBarcodeRequest(input *CreateTapeWithBarco return } +// CreateTapeWithBarcode API operation for AWS Storage Gateway. +// // Creates a virtual tape by using your own barcode. You write data to the virtual // tape and then archive the tape. // // Cache storage must be allocated to the gateway before you can create a virtual // tape. Use the AddCache operation to add cache storage to a gateway. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Storage Gateway's +// API operation, CreateTapeWithBarcode for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidGatewayRequestException +// InternalServerError func (c *StorageGateway) CreateTapeWithBarcode(input *CreateTapeWithBarcodeInput) (*CreateTapeWithBarcodeOutput, error) { req, out := c.CreateTapeWithBarcodeRequest(input) err := req.Send() @@ -741,11 +921,26 @@ func (c *StorageGateway) CreateTapesRequest(input *CreateTapesInput) (req *reque return } +// CreateTapes API operation for AWS Storage Gateway. +// // Creates one or more virtual tapes. You write data to the virtual tapes and // then archive the tapes. // // Cache storage must be allocated to the gateway before you can create virtual // tapes. Use the AddCache operation to add cache storage to a gateway. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Storage Gateway's +// API operation, CreateTapes for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidGatewayRequestException +// InternalServerError func (c *StorageGateway) CreateTapes(input *CreateTapesInput) (*CreateTapesOutput, error) { req, out := c.CreateTapesRequest(input) err := req.Send() @@ -793,11 +988,26 @@ func (c *StorageGateway) DeleteBandwidthRateLimitRequest(input *DeleteBandwidthR return } +// DeleteBandwidthRateLimit API operation for AWS Storage Gateway. +// // Deletes the bandwidth rate limits of a gateway. You can delete either the // upload and download bandwidth rate limit, or you can delete both. If you // delete only one of the limits, the other limit remains unchanged. To specify // which gateway to work with, use the Amazon Resource Name (ARN) of the gateway // in your request. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Storage Gateway's +// API operation, DeleteBandwidthRateLimit for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidGatewayRequestException +// InternalServerError func (c *StorageGateway) DeleteBandwidthRateLimit(input *DeleteBandwidthRateLimitInput) (*DeleteBandwidthRateLimitOutput, error) { req, out := c.DeleteBandwidthRateLimitRequest(input) err := req.Send() @@ -845,8 +1055,23 @@ func (c *StorageGateway) DeleteChapCredentialsRequest(input *DeleteChapCredentia return } +// DeleteChapCredentials API operation for AWS Storage Gateway. +// // Deletes Challenge-Handshake Authentication Protocol (CHAP) credentials for // a specified iSCSI target and initiator pair. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Storage Gateway's +// API operation, DeleteChapCredentials for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidGatewayRequestException +// InternalServerError func (c *StorageGateway) DeleteChapCredentials(input *DeleteChapCredentialsInput) (*DeleteChapCredentialsOutput, error) { req, out := c.DeleteChapCredentialsRequest(input) err := req.Send() @@ -894,6 +1119,8 @@ func (c *StorageGateway) DeleteGatewayRequest(input *DeleteGatewayInput) (req *r return } +// DeleteGateway API operation for AWS Storage Gateway. +// // Deletes a gateway. To specify which gateway to delete, use the Amazon Resource // Name (ARN) of the gateway in your request. The operation deletes the gateway; // however, it does not delete the gateway virtual machine (VM) from your host @@ -910,6 +1137,19 @@ func (c *StorageGateway) DeleteGatewayRequest(input *DeleteGatewayInput) (req *r // by canceling your Amazon EC2 subscription.  If you prefer not to cancel your // Amazon EC2 subscription, you can delete your snapshots using the Amazon EC2 // console. For more information, see the AWS Storage Gateway Detail Page (http://aws.amazon.com/storagegateway). +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Storage Gateway's +// API operation, DeleteGateway for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidGatewayRequestException +// InternalServerError func (c *StorageGateway) DeleteGateway(input *DeleteGatewayInput) (*DeleteGatewayOutput, error) { req, out := c.DeleteGatewayRequest(input) err := req.Send() @@ -957,6 +1197,8 @@ func (c *StorageGateway) DeleteSnapshotScheduleRequest(input *DeleteSnapshotSche return } +// DeleteSnapshotSchedule API operation for AWS Storage Gateway. +// // Deletes a snapshot of a volume. // // You can take snapshots of your gateway volumes on a scheduled or ad hoc @@ -967,6 +1209,19 @@ func (c *StorageGateway) DeleteSnapshotScheduleRequest(input *DeleteSnapshotSche // // To list or delete a snapshot, you must use the Amazon EC2 API. in Amazon // Elastic Compute Cloud API Reference. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Storage Gateway's +// API operation, DeleteSnapshotSchedule for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidGatewayRequestException +// InternalServerError func (c *StorageGateway) DeleteSnapshotSchedule(input *DeleteSnapshotScheduleInput) (*DeleteSnapshotScheduleOutput, error) { req, out := c.DeleteSnapshotScheduleRequest(input) err := req.Send() @@ -1014,7 +1269,22 @@ func (c *StorageGateway) DeleteTapeRequest(input *DeleteTapeInput) (req *request return } +// DeleteTape API operation for AWS Storage Gateway. +// // Deletes the specified virtual tape. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Storage Gateway's +// API operation, DeleteTape for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidGatewayRequestException +// InternalServerError func (c *StorageGateway) DeleteTape(input *DeleteTapeInput) (*DeleteTapeOutput, error) { req, out := c.DeleteTapeRequest(input) err := req.Send() @@ -1062,7 +1332,22 @@ func (c *StorageGateway) DeleteTapeArchiveRequest(input *DeleteTapeArchiveInput) return } +// DeleteTapeArchive API operation for AWS Storage Gateway. +// // Deletes the specified virtual tape from the virtual tape shelf (VTS). +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Storage Gateway's +// API operation, DeleteTapeArchive for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidGatewayRequestException +// InternalServerError func (c *StorageGateway) DeleteTapeArchive(input *DeleteTapeArchiveInput) (*DeleteTapeArchiveOutput, error) { req, out := c.DeleteTapeArchiveRequest(input) err := req.Send() @@ -1110,6 +1395,8 @@ func (c *StorageGateway) DeleteVolumeRequest(input *DeleteVolumeInput) (req *req return } +// DeleteVolume API operation for AWS Storage Gateway. +// // Deletes the specified gateway volume that you previously created using the // CreateCachediSCSIVolume or CreateStorediSCSIVolume API. For gateway-stored // volumes, the local disk that was configured as the storage volume is not @@ -1124,6 +1411,19 @@ func (c *StorageGateway) DeleteVolumeRequest(input *DeleteVolumeInput) (req *req // // In the request, you must provide the Amazon Resource Name (ARN) of the storage // volume you want to delete. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Storage Gateway's +// API operation, DeleteVolume for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidGatewayRequestException +// InternalServerError func (c *StorageGateway) DeleteVolume(input *DeleteVolumeInput) (*DeleteVolumeOutput, error) { req, out := c.DeleteVolumeRequest(input) err := req.Send() @@ -1171,6 +1471,8 @@ func (c *StorageGateway) DescribeBandwidthRateLimitRequest(input *DescribeBandwi return } +// DescribeBandwidthRateLimit API operation for AWS Storage Gateway. +// // Returns the bandwidth rate limits of a gateway. By default, these limits // are not set, which means no bandwidth rate limiting is in effect. // @@ -1178,6 +1480,19 @@ func (c *StorageGateway) DescribeBandwidthRateLimitRequest(input *DescribeBandwi // limit is set. If no limits are set for the gateway, then this operation returns // only the gateway ARN in the response body. To specify which gateway to describe, // use the Amazon Resource Name (ARN) of the gateway in your request. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Storage Gateway's +// API operation, DescribeBandwidthRateLimit for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidGatewayRequestException +// InternalServerError func (c *StorageGateway) DescribeBandwidthRateLimit(input *DescribeBandwidthRateLimitInput) (*DescribeBandwidthRateLimitOutput, error) { req, out := c.DescribeBandwidthRateLimitRequest(input) err := req.Send() @@ -1225,11 +1540,26 @@ func (c *StorageGateway) DescribeCacheRequest(input *DescribeCacheInput) (req *r return } +// DescribeCache API operation for AWS Storage Gateway. +// // Returns information about the cache of a gateway. This operation is supported // only for the gateway-cached volume architecture. // // The response includes disk IDs that are configured as cache, and it includes // the amount of cache allocated and used. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Storage Gateway's +// API operation, DescribeCache for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidGatewayRequestException +// InternalServerError func (c *StorageGateway) DescribeCache(input *DescribeCacheInput) (*DescribeCacheOutput, error) { req, out := c.DescribeCacheRequest(input) err := req.Send() @@ -1277,12 +1607,27 @@ func (c *StorageGateway) DescribeCachediSCSIVolumesRequest(input *DescribeCached return } +// DescribeCachediSCSIVolumes API operation for AWS Storage Gateway. +// // Returns a description of the gateway volumes specified in the request. This // operation is supported only for the gateway-cached volume architecture. // // The list of gateway volumes in the request must be from one gateway. In // the response Amazon Storage Gateway returns volume information sorted by // volume Amazon Resource Name (ARN). +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Storage Gateway's +// API operation, DescribeCachediSCSIVolumes for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidGatewayRequestException +// InternalServerError func (c *StorageGateway) DescribeCachediSCSIVolumes(input *DescribeCachediSCSIVolumesInput) (*DescribeCachediSCSIVolumesOutput, error) { req, out := c.DescribeCachediSCSIVolumesRequest(input) err := req.Send() @@ -1330,8 +1675,23 @@ func (c *StorageGateway) DescribeChapCredentialsRequest(input *DescribeChapCrede return } +// DescribeChapCredentials API operation for AWS Storage Gateway. +// // Returns an array of Challenge-Handshake Authentication Protocol (CHAP) credentials // information for a specified iSCSI target, one for each target-initiator pair. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Storage Gateway's +// API operation, DescribeChapCredentials for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidGatewayRequestException +// InternalServerError func (c *StorageGateway) DescribeChapCredentials(input *DescribeChapCredentialsInput) (*DescribeChapCredentialsOutput, error) { req, out := c.DescribeChapCredentialsRequest(input) err := req.Send() @@ -1379,10 +1739,25 @@ func (c *StorageGateway) DescribeGatewayInformationRequest(input *DescribeGatewa return } +// DescribeGatewayInformation API operation for AWS Storage Gateway. +// // Returns metadata about a gateway such as its name, network interfaces, configured // time zone, and the state (whether the gateway is running or not). To specify // which gateway to describe, use the Amazon Resource Name (ARN) of the gateway // in your request. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Storage Gateway's +// API operation, DescribeGatewayInformation for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidGatewayRequestException +// InternalServerError func (c *StorageGateway) DescribeGatewayInformation(input *DescribeGatewayInformationInput) (*DescribeGatewayInformationOutput, error) { req, out := c.DescribeGatewayInformationRequest(input) err := req.Send() @@ -1430,8 +1805,23 @@ func (c *StorageGateway) DescribeMaintenanceStartTimeRequest(input *DescribeMain return } +// DescribeMaintenanceStartTime API operation for AWS Storage Gateway. +// // Returns your gateway's weekly maintenance start time including the day and // time of the week. Note that values are in terms of the gateway's time zone. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Storage Gateway's +// API operation, DescribeMaintenanceStartTime for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidGatewayRequestException +// InternalServerError func (c *StorageGateway) DescribeMaintenanceStartTime(input *DescribeMaintenanceStartTimeInput) (*DescribeMaintenanceStartTimeOutput, error) { req, out := c.DescribeMaintenanceStartTimeRequest(input) err := req.Send() @@ -1479,9 +1869,24 @@ func (c *StorageGateway) DescribeSnapshotScheduleRequest(input *DescribeSnapshot return } +// DescribeSnapshotSchedule API operation for AWS Storage Gateway. +// // Describes the snapshot schedule for the specified gateway volume. The snapshot // schedule information includes intervals at which snapshots are automatically // initiated on the volume. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Storage Gateway's +// API operation, DescribeSnapshotSchedule for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidGatewayRequestException +// InternalServerError func (c *StorageGateway) DescribeSnapshotSchedule(input *DescribeSnapshotScheduleInput) (*DescribeSnapshotScheduleOutput, error) { req, out := c.DescribeSnapshotScheduleRequest(input) err := req.Send() @@ -1529,10 +1934,25 @@ func (c *StorageGateway) DescribeStorediSCSIVolumesRequest(input *DescribeStored return } +// DescribeStorediSCSIVolumes API operation for AWS Storage Gateway. +// // Returns the description of the gateway volumes specified in the request. // The list of gateway volumes in the request must be from one gateway. In the // response Amazon Storage Gateway returns volume information sorted by volume // ARNs. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Storage Gateway's +// API operation, DescribeStorediSCSIVolumes for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidGatewayRequestException +// InternalServerError func (c *StorageGateway) DescribeStorediSCSIVolumes(input *DescribeStorediSCSIVolumesInput) (*DescribeStorediSCSIVolumesOutput, error) { req, out := c.DescribeStorediSCSIVolumesRequest(input) err := req.Send() @@ -1586,11 +2006,26 @@ func (c *StorageGateway) DescribeTapeArchivesRequest(input *DescribeTapeArchives return } +// DescribeTapeArchives API operation for AWS Storage Gateway. +// // Returns a description of specified virtual tapes in the virtual tape shelf // (VTS). // // If a specific TapeARN is not specified, AWS Storage Gateway returns a description // of all virtual tapes found in the VTS associated with your account. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Storage Gateway's +// API operation, DescribeTapeArchives for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidGatewayRequestException +// InternalServerError func (c *StorageGateway) DescribeTapeArchives(input *DescribeTapeArchivesInput) (*DescribeTapeArchivesOutput, error) { req, out := c.DescribeTapeArchivesRequest(input) err := req.Send() @@ -1669,12 +2104,27 @@ func (c *StorageGateway) DescribeTapeRecoveryPointsRequest(input *DescribeTapeRe return } +// DescribeTapeRecoveryPoints API operation for AWS Storage Gateway. +// // Returns a list of virtual tape recovery points that are available for the // specified gateway-VTL. // // A recovery point is a point-in-time view of a virtual tape at which all // the data on the virtual tape is consistent. If your gateway crashes, virtual // tapes that have recovery points can be recovered to a new gateway. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Storage Gateway's +// API operation, DescribeTapeRecoveryPoints for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidGatewayRequestException +// InternalServerError func (c *StorageGateway) DescribeTapeRecoveryPoints(input *DescribeTapeRecoveryPointsInput) (*DescribeTapeRecoveryPointsOutput, error) { req, out := c.DescribeTapeRecoveryPointsRequest(input) err := req.Send() @@ -1753,9 +2203,24 @@ func (c *StorageGateway) DescribeTapesRequest(input *DescribeTapesInput) (req *r return } +// DescribeTapes API operation for AWS Storage Gateway. +// // Returns a description of the specified Amazon Resource Name (ARN) of virtual // tapes. If a TapeARN is not specified, returns a description of all virtual // tapes associated with the specified gateway. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Storage Gateway's +// API operation, DescribeTapes for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidGatewayRequestException +// InternalServerError func (c *StorageGateway) DescribeTapes(input *DescribeTapesInput) (*DescribeTapesOutput, error) { req, out := c.DescribeTapesRequest(input) err := req.Send() @@ -1828,11 +2293,26 @@ func (c *StorageGateway) DescribeUploadBufferRequest(input *DescribeUploadBuffer return } +// DescribeUploadBuffer API operation for AWS Storage Gateway. +// // Returns information about the upload buffer of a gateway. This operation // is supported for both the gateway-stored and gateway-cached volume architectures. // // The response includes disk IDs that are configured as upload buffer space, // and it includes the amount of upload buffer space allocated and used. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Storage Gateway's +// API operation, DescribeUploadBuffer for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidGatewayRequestException +// InternalServerError func (c *StorageGateway) DescribeUploadBuffer(input *DescribeUploadBufferInput) (*DescribeUploadBufferOutput, error) { req, out := c.DescribeUploadBufferRequest(input) err := req.Send() @@ -1886,10 +2366,25 @@ func (c *StorageGateway) DescribeVTLDevicesRequest(input *DescribeVTLDevicesInpu return } +// DescribeVTLDevices API operation for AWS Storage Gateway. +// // Returns a description of virtual tape library (VTL) devices for the specified // gateway. In the response, AWS Storage Gateway returns VTL device information. // // The list of VTL devices must be from one gateway. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Storage Gateway's +// API operation, DescribeVTLDevices for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidGatewayRequestException +// InternalServerError func (c *StorageGateway) DescribeVTLDevices(input *DescribeVTLDevicesInput) (*DescribeVTLDevicesOutput, error) { req, out := c.DescribeVTLDevicesRequest(input) err := req.Send() @@ -1962,6 +2457,8 @@ func (c *StorageGateway) DescribeWorkingStorageRequest(input *DescribeWorkingSto return } +// DescribeWorkingStorage API operation for AWS Storage Gateway. +// // Returns information about the working storage of a gateway. This operation // is supported only for the gateway-stored volume architecture. This operation // is deprecated in cached-volumes API version (20120630). Use DescribeUploadBuffer @@ -1973,6 +2470,19 @@ func (c *StorageGateway) DescribeWorkingStorageRequest(input *DescribeWorkingSto // // The response includes disk IDs that are configured as working storage, // and it includes the amount of working storage allocated and used. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Storage Gateway's +// API operation, DescribeWorkingStorage for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidGatewayRequestException +// InternalServerError func (c *StorageGateway) DescribeWorkingStorage(input *DescribeWorkingStorageInput) (*DescribeWorkingStorageOutput, error) { req, out := c.DescribeWorkingStorageRequest(input) err := req.Send() @@ -2020,6 +2530,8 @@ func (c *StorageGateway) DisableGatewayRequest(input *DisableGatewayInput) (req return } +// DisableGateway API operation for AWS Storage Gateway. +// // Disables a gateway when the gateway is no longer functioning. For example, // if your gateway VM is damaged, you can disable the gateway so you can recover // virtual tapes. @@ -2027,6 +2539,19 @@ func (c *StorageGateway) DisableGatewayRequest(input *DisableGatewayInput) (req // Use this operation for a gateway-VTL that is not reachable or not functioning. // // Once a gateway is disabled it cannot be enabled. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Storage Gateway's +// API operation, DisableGateway for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidGatewayRequestException +// InternalServerError func (c *StorageGateway) DisableGateway(input *DisableGatewayInput) (*DisableGatewayOutput, error) { req, out := c.DisableGatewayRequest(input) err := req.Send() @@ -2080,6 +2605,8 @@ func (c *StorageGateway) ListGatewaysRequest(input *ListGatewaysInput) (req *req return } +// ListGateways API operation for AWS Storage Gateway. +// // Lists gateways owned by an AWS account in a region specified in the request. // The returned list is ordered by gateway Amazon Resource Name (ARN). // @@ -2091,6 +2618,19 @@ func (c *StorageGateway) ListGatewaysRequest(input *ListGatewaysInput) (req *req // response returns only a truncated list of your gateways), the response contains // a marker that you can specify in your next request to fetch the next page // of gateways. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Storage Gateway's +// API operation, ListGateways for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidGatewayRequestException +// InternalServerError func (c *StorageGateway) ListGateways(input *ListGatewaysInput) (*ListGatewaysOutput, error) { req, out := c.ListGatewaysRequest(input) err := req.Send() @@ -2163,6 +2703,8 @@ func (c *StorageGateway) ListLocalDisksRequest(input *ListLocalDisksInput) (req return } +// ListLocalDisks API operation for AWS Storage Gateway. +// // Returns a list of the gateway's local disks. To specify which gateway to // describe, you use the Amazon Resource Name (ARN) of the gateway in the body // of the request. @@ -2173,6 +2715,19 @@ func (c *StorageGateway) ListLocalDisksRequest(input *ListLocalDisksInput) (req // of present (the disk is available to use), missing (the disk is no longer // connected to the gateway), or mismatch (the disk node is occupied by a disk // that has incorrect metadata or the disk content is corrupted). +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Storage Gateway's +// API operation, ListLocalDisks for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidGatewayRequestException +// InternalServerError func (c *StorageGateway) ListLocalDisks(input *ListLocalDisksInput) (*ListLocalDisksOutput, error) { req, out := c.ListLocalDisksRequest(input) err := req.Send() @@ -2220,7 +2775,22 @@ func (c *StorageGateway) ListTagsForResourceRequest(input *ListTagsForResourceIn return } +// ListTagsForResource API operation for AWS Storage Gateway. +// // Lists the tags that have been added to the specified resource. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Storage Gateway's +// API operation, ListTagsForResource for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidGatewayRequestException +// InternalServerError func (c *StorageGateway) ListTagsForResource(input *ListTagsForResourceInput) (*ListTagsForResourceOutput, error) { req, out := c.ListTagsForResourceRequest(input) err := req.Send() @@ -2268,6 +2838,8 @@ func (c *StorageGateway) ListTapesRequest(input *ListTapesInput) (req *request.R return } +// ListTapes API operation for AWS Storage Gateway. +// // Lists virtual tapes in your virtual tape library (VTL) and your virtual tape // shelf (VTS). You specify the tapes to list by specifying one or more tape // Amazon Resource Names (ARNs). If you don't specify a tape ARN, the operation @@ -2279,6 +2851,19 @@ func (c *StorageGateway) ListTapesRequest(input *ListTapesInput) (req *request.R // tapes returned in the response is truncated, the response includes a Marker // element that you can use in your subsequent request to retrieve the next // set of tapes. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Storage Gateway's +// API operation, ListTapes for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidGatewayRequestException +// InternalServerError func (c *StorageGateway) ListTapes(input *ListTapesInput) (*ListTapesOutput, error) { req, out := c.ListTapesRequest(input) err := req.Send() @@ -2326,8 +2911,23 @@ func (c *StorageGateway) ListVolumeInitiatorsRequest(input *ListVolumeInitiators return } +// ListVolumeInitiators API operation for AWS Storage Gateway. +// // Lists iSCSI initiators that are connected to a volume. You can use this operation // to determine whether a volume is being used or not. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Storage Gateway's +// API operation, ListVolumeInitiators for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidGatewayRequestException +// InternalServerError func (c *StorageGateway) ListVolumeInitiators(input *ListVolumeInitiatorsInput) (*ListVolumeInitiatorsOutput, error) { req, out := c.ListVolumeInitiatorsRequest(input) err := req.Send() @@ -2375,6 +2975,8 @@ func (c *StorageGateway) ListVolumeRecoveryPointsRequest(input *ListVolumeRecove return } +// ListVolumeRecoveryPoints API operation for AWS Storage Gateway. +// // Lists the recovery points for a specified gateway. This operation is supported // only for the gateway-cached volume architecture. // @@ -2382,6 +2984,19 @@ func (c *StorageGateway) ListVolumeRecoveryPointsRequest(input *ListVolumeRecove // is a point in time at which all data of the volume is consistent and from // which you can create a snapshot. To create a snapshot from a volume recovery // point use the CreateSnapshotFromVolumeRecoveryPoint operation. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Storage Gateway's +// API operation, ListVolumeRecoveryPoints for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidGatewayRequestException +// InternalServerError func (c *StorageGateway) ListVolumeRecoveryPoints(input *ListVolumeRecoveryPointsInput) (*ListVolumeRecoveryPointsOutput, error) { req, out := c.ListVolumeRecoveryPointsRequest(input) err := req.Send() @@ -2435,6 +3050,8 @@ func (c *StorageGateway) ListVolumesRequest(input *ListVolumesInput) (req *reque return } +// ListVolumes API operation for AWS Storage Gateway. +// // Lists the iSCSI stored volumes of a gateway. Results are sorted by volume // ARN. The response includes only the volume ARNs. If you want additional volume // information, use the DescribeStorediSCSIVolumes API. @@ -2445,6 +3062,19 @@ func (c *StorageGateway) ListVolumesRequest(input *ListVolumesInput) (req *reque // returned in the response is truncated, the response includes a Marker field. // You can use this Marker value in your subsequent request to retrieve the // next set of volumes. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Storage Gateway's +// API operation, ListVolumes for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidGatewayRequestException +// InternalServerError func (c *StorageGateway) ListVolumes(input *ListVolumesInput) (*ListVolumesOutput, error) { req, out := c.ListVolumesRequest(input) err := req.Send() @@ -2517,7 +3147,22 @@ func (c *StorageGateway) RemoveTagsFromResourceRequest(input *RemoveTagsFromReso return } +// RemoveTagsFromResource API operation for AWS Storage Gateway. +// // Removes one or more tags from the specified resource. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Storage Gateway's +// API operation, RemoveTagsFromResource for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidGatewayRequestException +// InternalServerError func (c *StorageGateway) RemoveTagsFromResource(input *RemoveTagsFromResourceInput) (*RemoveTagsFromResourceOutput, error) { req, out := c.RemoveTagsFromResourceRequest(input) err := req.Send() @@ -2565,6 +3210,8 @@ func (c *StorageGateway) ResetCacheRequest(input *ResetCacheInput) (req *request return } +// ResetCache API operation for AWS Storage Gateway. +// // Resets all cache disks that have encountered a error and makes the disks // available for reconfiguration as cache storage. If your cache disk encounters // a error, the gateway prevents read and write operations on virtual tapes @@ -2576,6 +3223,19 @@ func (c *StorageGateway) ResetCacheRequest(input *ResetCacheInput) (req *request // to Amazon S3 yet, that data can be lost. After you reset cache disks, there // will be no configured cache disks left in the gateway, so you must configure // at least one new cache disk for your gateway to function properly. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Storage Gateway's +// API operation, ResetCache for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidGatewayRequestException +// InternalServerError func (c *StorageGateway) ResetCache(input *ResetCacheInput) (*ResetCacheOutput, error) { req, out := c.ResetCacheRequest(input) err := req.Send() @@ -2623,6 +3283,8 @@ func (c *StorageGateway) RetrieveTapeArchiveRequest(input *RetrieveTapeArchiveIn return } +// RetrieveTapeArchive API operation for AWS Storage Gateway. +// // Retrieves an archived virtual tape from the virtual tape shelf (VTS) to a // gateway-VTL. Virtual tapes archived in the VTS are not associated with any // gateway. However after a tape is retrieved, it is associated with a gateway, @@ -2631,6 +3293,19 @@ func (c *StorageGateway) RetrieveTapeArchiveRequest(input *RetrieveTapeArchiveIn // Once a tape is successfully retrieved to a gateway, it cannot be retrieved // again to another gateway. You must archive the tape again before you can // retrieve it to another gateway. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Storage Gateway's +// API operation, RetrieveTapeArchive for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidGatewayRequestException +// InternalServerError func (c *StorageGateway) RetrieveTapeArchive(input *RetrieveTapeArchiveInput) (*RetrieveTapeArchiveOutput, error) { req, out := c.RetrieveTapeArchiveRequest(input) err := req.Send() @@ -2678,6 +3353,8 @@ func (c *StorageGateway) RetrieveTapeRecoveryPointRequest(input *RetrieveTapeRec return } +// RetrieveTapeRecoveryPoint API operation for AWS Storage Gateway. +// // Retrieves the recovery point for the specified virtual tape. // // A recovery point is a point in time view of a virtual tape at which all @@ -2687,6 +3364,19 @@ func (c *StorageGateway) RetrieveTapeRecoveryPointRequest(input *RetrieveTapeRec // The virtual tape can be retrieved to only one gateway. The retrieved tape // is read-only. The virtual tape can be retrieved to only a gateway-VTL. There // is no charge for retrieving recovery points. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Storage Gateway's +// API operation, RetrieveTapeRecoveryPoint for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidGatewayRequestException +// InternalServerError func (c *StorageGateway) RetrieveTapeRecoveryPoint(input *RetrieveTapeRecoveryPointInput) (*RetrieveTapeRecoveryPointOutput, error) { req, out := c.RetrieveTapeRecoveryPointRequest(input) err := req.Send() @@ -2734,10 +3424,25 @@ func (c *StorageGateway) SetLocalConsolePasswordRequest(input *SetLocalConsolePa return } +// SetLocalConsolePassword API operation for AWS Storage Gateway. +// // Sets the password for your VM local console. When you log in to the local // console for the first time, you log in to the VM with the default credentials. // We recommend that you set a new password. You don't need to know the default // password to set a new password. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Storage Gateway's +// API operation, SetLocalConsolePassword for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidGatewayRequestException +// InternalServerError func (c *StorageGateway) SetLocalConsolePassword(input *SetLocalConsolePasswordInput) (*SetLocalConsolePasswordOutput, error) { req, out := c.SetLocalConsolePasswordRequest(input) err := req.Send() @@ -2785,6 +3490,8 @@ func (c *StorageGateway) ShutdownGatewayRequest(input *ShutdownGatewayInput) (re return } +// ShutdownGateway API operation for AWS Storage Gateway. +// // Shuts down a gateway. To specify which gateway to shut down, use the Amazon // Resource Name (ARN) of the gateway in the body of your request. // @@ -2807,6 +3514,19 @@ func (c *StorageGateway) ShutdownGatewayRequest(input *ShutdownGatewayInput) (re // If do not intend to use the gateway again, you must delete the gateway // (using DeleteGateway) to no longer pay software charges associated with the // gateway. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Storage Gateway's +// API operation, ShutdownGateway for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidGatewayRequestException +// InternalServerError func (c *StorageGateway) ShutdownGateway(input *ShutdownGatewayInput) (*ShutdownGatewayOutput, error) { req, out := c.ShutdownGatewayRequest(input) err := req.Send() @@ -2854,6 +3574,8 @@ func (c *StorageGateway) StartGatewayRequest(input *StartGatewayInput) (req *req return } +// StartGateway API operation for AWS Storage Gateway. +// // Starts a gateway that you previously shut down (see ShutdownGateway). After // the gateway starts, you can then make other API calls, your applications // can read from or write to the gateway's storage volumes and you will be able @@ -2866,6 +3588,19 @@ func (c *StorageGateway) StartGatewayRequest(input *StartGatewayInput) (req *req // // To specify which gateway to start, use the Amazon Resource Name (ARN) of // the gateway in your request. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Storage Gateway's +// API operation, StartGateway for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidGatewayRequestException +// InternalServerError func (c *StorageGateway) StartGateway(input *StartGatewayInput) (*StartGatewayOutput, error) { req, out := c.StartGatewayRequest(input) err := req.Send() @@ -2913,6 +3648,8 @@ func (c *StorageGateway) UpdateBandwidthRateLimitRequest(input *UpdateBandwidthR return } +// UpdateBandwidthRateLimit API operation for AWS Storage Gateway. +// // Updates the bandwidth rate limits of a gateway. You can update both the upload // and download bandwidth rate limit or specify only one of the two. If you // don't set a bandwidth rate limit, the existing rate limit remains. @@ -2923,6 +3660,19 @@ func (c *StorageGateway) UpdateBandwidthRateLimitRequest(input *UpdateBandwidthR // // To specify which gateway to update, use the Amazon Resource Name (ARN) of // the gateway in your request. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Storage Gateway's +// API operation, UpdateBandwidthRateLimit for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidGatewayRequestException +// InternalServerError func (c *StorageGateway) UpdateBandwidthRateLimit(input *UpdateBandwidthRateLimitInput) (*UpdateBandwidthRateLimitOutput, error) { req, out := c.UpdateBandwidthRateLimitRequest(input) err := req.Send() @@ -2970,12 +3720,27 @@ func (c *StorageGateway) UpdateChapCredentialsRequest(input *UpdateChapCredentia return } +// UpdateChapCredentials API operation for AWS Storage Gateway. +// // Updates the Challenge-Handshake Authentication Protocol (CHAP) credentials // for a specified iSCSI target. By default, a gateway does not have CHAP enabled; // however, for added security, you might use it. // // When you update CHAP credentials, all existing connections on the target // are closed and initiators must reconnect with the new credentials. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Storage Gateway's +// API operation, UpdateChapCredentials for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidGatewayRequestException +// InternalServerError func (c *StorageGateway) UpdateChapCredentials(input *UpdateChapCredentialsInput) (*UpdateChapCredentialsOutput, error) { req, out := c.UpdateChapCredentialsRequest(input) err := req.Send() @@ -3023,6 +3788,8 @@ func (c *StorageGateway) UpdateGatewayInformationRequest(input *UpdateGatewayInf return } +// UpdateGatewayInformation API operation for AWS Storage Gateway. +// // Updates a gateway's metadata, which includes the gateway's name and time // zone. To specify which gateway to update, use the Amazon Resource Name (ARN) // of the gateway in your request. @@ -3030,6 +3797,19 @@ func (c *StorageGateway) UpdateGatewayInformationRequest(input *UpdateGatewayInf // For Gateways activated after September 2, 2015, the gateway's ARN contains // the gateway ID rather than the gateway name. However, changing the name of // the gateway has no effect on the gateway's ARN. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Storage Gateway's +// API operation, UpdateGatewayInformation for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidGatewayRequestException +// InternalServerError func (c *StorageGateway) UpdateGatewayInformation(input *UpdateGatewayInformationInput) (*UpdateGatewayInformationOutput, error) { req, out := c.UpdateGatewayInformationRequest(input) err := req.Send() @@ -3077,6 +3857,8 @@ func (c *StorageGateway) UpdateGatewaySoftwareNowRequest(input *UpdateGatewaySof return } +// UpdateGatewaySoftwareNow API operation for AWS Storage Gateway. +// // Updates the gateway virtual machine (VM) software. The request immediately // triggers the software update. // @@ -3092,6 +3874,19 @@ func (c *StorageGateway) UpdateGatewaySoftwareNowRequest(input *UpdateGatewaySof // (http://docs.aws.amazon.com/storagegateway/latest/userguide/ConfiguringiSCSIClientInitiatorWindowsClient.html#CustomizeWindowsiSCSISettings) // and Customizing Your Linux iSCSI Settings (http://docs.aws.amazon.com/storagegateway/latest/userguide/ConfiguringiSCSIClientInitiatorRedHatClient.html#CustomizeLinuxiSCSISettings), // respectively. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Storage Gateway's +// API operation, UpdateGatewaySoftwareNow for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidGatewayRequestException +// InternalServerError func (c *StorageGateway) UpdateGatewaySoftwareNow(input *UpdateGatewaySoftwareNowInput) (*UpdateGatewaySoftwareNowOutput, error) { req, out := c.UpdateGatewaySoftwareNowRequest(input) err := req.Send() @@ -3139,9 +3934,24 @@ func (c *StorageGateway) UpdateMaintenanceStartTimeRequest(input *UpdateMaintena return } +// UpdateMaintenanceStartTime API operation for AWS Storage Gateway. +// // Updates a gateway's weekly maintenance start time information, including // day and time of the week. The maintenance time is the time in your gateway's // time zone. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Storage Gateway's +// API operation, UpdateMaintenanceStartTime for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidGatewayRequestException +// InternalServerError func (c *StorageGateway) UpdateMaintenanceStartTime(input *UpdateMaintenanceStartTimeInput) (*UpdateMaintenanceStartTimeOutput, error) { req, out := c.UpdateMaintenanceStartTimeRequest(input) err := req.Send() @@ -3189,6 +3999,8 @@ func (c *StorageGateway) UpdateSnapshotScheduleRequest(input *UpdateSnapshotSche return } +// UpdateSnapshotSchedule API operation for AWS Storage Gateway. +// // Updates a snapshot schedule configured for a gateway volume. // // The default snapshot schedule for volume is once every 24 hours, starting @@ -3198,6 +4010,19 @@ func (c *StorageGateway) UpdateSnapshotScheduleRequest(input *UpdateSnapshotSche // In the request you must identify the gateway volume whose snapshot schedule // you want to update, and the schedule information, including when you want // the snapshot to begin on a day and the frequency (in hours) of snapshots. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Storage Gateway's +// API operation, UpdateSnapshotSchedule for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidGatewayRequestException +// InternalServerError func (c *StorageGateway) UpdateSnapshotSchedule(input *UpdateSnapshotScheduleInput) (*UpdateSnapshotScheduleOutput, error) { req, out := c.UpdateSnapshotScheduleRequest(input) err := req.Send() @@ -3245,10 +4070,25 @@ func (c *StorageGateway) UpdateVTLDeviceTypeRequest(input *UpdateVTLDeviceTypeIn return } +// UpdateVTLDeviceType API operation for AWS Storage Gateway. +// // Updates the type of medium changer in a gateway-VTL. When you activate a // gateway-VTL, you select a medium changer type for the gateway-VTL. This operation // enables you to select a different type of medium changer after a gateway-VTL // is activated. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Storage Gateway's +// API operation, UpdateVTLDeviceType for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidGatewayRequestException +// InternalServerError func (c *StorageGateway) UpdateVTLDeviceType(input *UpdateVTLDeviceTypeInput) (*UpdateVTLDeviceTypeOutput, error) { req, out := c.UpdateVTLDeviceTypeRequest(input) err := req.Send() diff --git a/service/sts/api.go b/service/sts/api.go index d183fab8771..76ee7356ed6 100644 --- a/service/sts/api.go +++ b/service/sts/api.go @@ -51,6 +51,8 @@ func (c *STS) AssumeRoleRequest(input *AssumeRoleInput) (req *request.Request, o return } +// AssumeRole API operation for AWS Security Token Service. +// // Returns a set of temporary security credentials (consisting of an access // key ID, a secret access key, and a security token) that you can use to access // AWS resources that you might not normally have access to. Typically, you @@ -140,6 +142,20 @@ func (c *STS) AssumeRoleRequest(input *AssumeRoleInput) (req *request.Request, o // parameters. The SerialNumber value identifies the user's hardware or virtual // MFA device. The TokenCode is the time-based one-time password (TOTP) that // the MFA devices produces. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Security Token Service's +// API operation, AssumeRole for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// MalformedPolicyDocumentException +// PackedPolicyTooLargeException +// RegionDisabledException func (c *STS) AssumeRole(input *AssumeRoleInput) (*AssumeRoleOutput, error) { req, out := c.AssumeRoleRequest(input) err := req.Send() @@ -187,6 +203,8 @@ func (c *STS) AssumeRoleWithSAMLRequest(input *AssumeRoleWithSAMLInput) (req *re return } +// AssumeRoleWithSAML API operation for AWS Security Token Service. +// // Returns a set of temporary security credentials for users who have been authenticated // via a SAML authentication response. This operation provides a mechanism for // tying an enterprise identity store or directory to role-based AWS access @@ -254,6 +272,23 @@ func (c *STS) AssumeRoleWithSAMLRequest(input *AssumeRoleWithSAMLInput) (req *re // // Creating a Role for SAML 2.0 Federation (http://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_create_for-idp_saml.html) // in the IAM User Guide. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Security Token Service's +// API operation, AssumeRoleWithSAML for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// MalformedPolicyDocumentException +// PackedPolicyTooLargeException +// IDPRejectedClaimException +// InvalidIdentityTokenException +// ExpiredTokenException +// RegionDisabledException func (c *STS) AssumeRoleWithSAML(input *AssumeRoleWithSAMLInput) (*AssumeRoleWithSAMLOutput, error) { req, out := c.AssumeRoleWithSAMLRequest(input) err := req.Send() @@ -301,6 +336,8 @@ func (c *STS) AssumeRoleWithWebIdentityRequest(input *AssumeRoleWithWebIdentityI return } +// AssumeRoleWithWebIdentity API operation for AWS Security Token Service. +// // Returns a set of temporary security credentials for users who have been authenticated // in a mobile or web application with a web identity provider, such as Amazon // Cognito, Login with Amazon, Facebook, Google, or any OpenID Connect-compatible @@ -386,6 +423,24 @@ func (c *STS) AssumeRoleWithWebIdentityRequest(input *AssumeRoleWithWebIdentityI // Web Identity Federation with Mobile Applications (http://aws.amazon.com/articles/4617974389850313). // This article discusses web identity federation and shows an example of how // to use web identity federation to get access to content in Amazon S3. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Security Token Service's +// API operation, AssumeRoleWithWebIdentity for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// MalformedPolicyDocumentException +// PackedPolicyTooLargeException +// IDPRejectedClaimException +// IDPCommunicationErrorException +// InvalidIdentityTokenException +// ExpiredTokenException +// RegionDisabledException func (c *STS) AssumeRoleWithWebIdentity(input *AssumeRoleWithWebIdentityInput) (*AssumeRoleWithWebIdentityOutput, error) { req, out := c.AssumeRoleWithWebIdentityRequest(input) err := req.Send() @@ -433,6 +488,8 @@ func (c *STS) DecodeAuthorizationMessageRequest(input *DecodeAuthorizationMessag return } +// DecodeAuthorizationMessage API operation for AWS Security Token Service. +// // Decodes additional information about the authorization status of a request // from an encoded message returned in response to an AWS request. // @@ -465,6 +522,18 @@ func (c *STS) DecodeAuthorizationMessageRequest(input *DecodeAuthorizationMessag // The requested resource. // // The values of condition keys in the context of the user's request. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Security Token Service's +// API operation, DecodeAuthorizationMessage for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidAuthorizationMessageException func (c *STS) DecodeAuthorizationMessage(input *DecodeAuthorizationMessageInput) (*DecodeAuthorizationMessageOutput, error) { req, out := c.DecodeAuthorizationMessageRequest(input) err := req.Send() @@ -512,8 +581,18 @@ func (c *STS) GetCallerIdentityRequest(input *GetCallerIdentityInput) (req *requ return } +// GetCallerIdentity API operation for AWS Security Token Service. +// // Returns details about the IAM identity whose credentials are used to call // the API. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Security Token Service's +// API operation, GetCallerIdentity for more information, and other errors +// that the API operation could return. func (c *STS) GetCallerIdentity(input *GetCallerIdentityInput) (*GetCallerIdentityOutput, error) { req, out := c.GetCallerIdentityRequest(input) err := req.Send() @@ -561,6 +640,8 @@ func (c *STS) GetFederationTokenRequest(input *GetFederationTokenInput) (req *re return } +// GetFederationToken API operation for AWS Security Token Service. +// // Returns a set of temporary security credentials (consisting of an access // key ID, a secret access key, and a security token) for a federated user. // A typical use is in a proxy application that gets temporary security credentials @@ -639,6 +720,20 @@ func (c *STS) GetFederationTokenRequest(input *GetFederationTokenInput) (req *re // For information about using GetFederationToken to create temporary security // credentials, see GetFederationToken—Federation Through a Custom Identity // Broker (http://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_request.html#api_getfederationtoken). +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Security Token Service's +// API operation, GetFederationToken for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// MalformedPolicyDocumentException +// PackedPolicyTooLargeException +// RegionDisabledException func (c *STS) GetFederationToken(input *GetFederationTokenInput) (*GetFederationTokenOutput, error) { req, out := c.GetFederationTokenRequest(input) err := req.Send() @@ -686,6 +781,8 @@ func (c *STS) GetSessionTokenRequest(input *GetSessionTokenInput) (req *request. return } +// GetSessionToken API operation for AWS Security Token Service. +// // Returns a set of temporary credentials for an AWS account or IAM user. The // credentials consist of an access key ID, a secret access key, and a security // token. Typically, you use GetSessionToken if you want to use MFA to protect @@ -732,6 +829,18 @@ func (c *STS) GetSessionTokenRequest(input *GetSessionTokenInput) (req *request. // For more information about using GetSessionToken to create temporary credentials, // go to Temporary Credentials for Users in Untrusted Environments (http://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_request.html#api_getsessiontoken) // in the IAM User Guide. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Security Token Service's +// API operation, GetSessionToken for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// RegionDisabledException func (c *STS) GetSessionToken(input *GetSessionTokenInput) (*GetSessionTokenOutput, error) { req, out := c.GetSessionTokenRequest(input) err := req.Send() diff --git a/service/support/api.go b/service/support/api.go index ff5a2f8eab7..c55be864200 100644 --- a/service/support/api.go +++ b/service/support/api.go @@ -49,6 +49,8 @@ func (c *Support) AddAttachmentsToSetRequest(input *AddAttachmentsToSetInput) (r return } +// AddAttachmentsToSet API operation for AWS Support. +// // Adds one or more attachments to an attachment set. If an attachmentSetId // is not specified, a new attachment set is created, and the ID of the set // is returned in the response. If an attachmentSetId is specified, the attachments @@ -59,6 +61,22 @@ func (c *Support) AddAttachmentsToSetRequest(input *AddAttachmentsToSetInput) (r // after it is created; the expiryTime returned in the response indicates when // the set expires. The maximum number of attachments in a set is 3, and the // maximum size of any attachment in the set is 5 MB. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Support's +// API operation, AddAttachmentsToSet for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InternalServerError +// AttachmentSetIdNotFound +// AttachmentSetExpired +// AttachmentSetSizeLimitExceeded +// AttachmentLimitExceeded func (c *Support) AddAttachmentsToSet(input *AddAttachmentsToSetInput) (*AddAttachmentsToSetOutput, error) { req, out := c.AddAttachmentsToSetRequest(input) err := req.Send() @@ -106,6 +124,8 @@ func (c *Support) AddCommunicationToCaseRequest(input *AddCommunicationToCaseInp return } +// AddCommunicationToCase API operation for AWS Support. +// // Adds additional customer communication to an AWS Support case. You use the // caseId value to identify the case to add communication to. You can list a // set of email addresses to copy on the communication using the ccEmailAddresses @@ -114,6 +134,21 @@ func (c *Support) AddCommunicationToCaseRequest(input *AddCommunicationToCaseInp // The response indicates the success or failure of the request. // // This operation implements a subset of the features of the AWS Support Center. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Support's +// API operation, AddCommunicationToCase for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InternalServerError +// CaseIdNotFound +// AttachmentSetIdNotFound +// AttachmentSetExpired func (c *Support) AddCommunicationToCase(input *AddCommunicationToCaseInput) (*AddCommunicationToCaseOutput, error) { req, out := c.AddCommunicationToCaseRequest(input) err := req.Send() @@ -161,6 +196,8 @@ func (c *Support) CreateCaseRequest(input *CreateCaseInput) (req *request.Reques return } +// CreateCase API operation for AWS Support. +// // Creates a new case in the AWS Support Center. This operation is modeled on // the behavior of the AWS Support Center Create Case (https://console.aws.amazon.com/support/home#/case/create) // page. Its parameters require you to specify the following information: @@ -204,6 +241,21 @@ func (c *Support) CreateCaseRequest(input *CreateCaseInput) (req *request.Reques // A successful CreateCase request returns an AWS Support case number. Case // numbers are used by the DescribeCases operation to retrieve existing AWS // Support cases. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Support's +// API operation, CreateCase for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InternalServerError +// CaseCreationLimitExceeded +// AttachmentSetIdNotFound +// AttachmentSetExpired func (c *Support) CreateCase(input *CreateCaseInput) (*CreateCaseOutput, error) { req, out := c.CreateCaseRequest(input) err := req.Send() @@ -251,10 +303,26 @@ func (c *Support) DescribeAttachmentRequest(input *DescribeAttachmentInput) (req return } +// DescribeAttachment API operation for AWS Support. +// // Returns the attachment that has the specified ID. Attachment IDs are generated // by the case management system when you add an attachment to a case or case // communication. Attachment IDs are returned in the AttachmentDetails objects // that are returned by the DescribeCommunications operation. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Support's +// API operation, DescribeAttachment for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InternalServerError +// DescribeAttachmentLimitExceeded +// AttachmentIdNotFound func (c *Support) DescribeAttachment(input *DescribeAttachmentInput) (*DescribeAttachmentOutput, error) { req, out := c.DescribeAttachmentRequest(input) err := req.Send() @@ -308,6 +376,8 @@ func (c *Support) DescribeCasesRequest(input *DescribeCasesInput) (req *request. return } +// DescribeCases API operation for AWS Support. +// // Returns a list of cases that you specify by passing one or more case IDs. // In addition, you can filter the cases by date by setting values for the afterTime // and beforeTime request parameters. You can set values for the includeResolvedCases @@ -323,6 +393,19 @@ func (c *Support) DescribeCasesRequest(input *DescribeCasesInput) (req *request. // // One or more nextToken values, which specify where to paginate the returned // records represented by the CaseDetails objects. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Support's +// API operation, DescribeCases for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InternalServerError +// CaseIdNotFound func (c *Support) DescribeCases(input *DescribeCasesInput) (*DescribeCasesOutput, error) { req, out := c.DescribeCasesRequest(input) err := req.Send() @@ -401,6 +484,8 @@ func (c *Support) DescribeCommunicationsRequest(input *DescribeCommunicationsInp return } +// DescribeCommunications API operation for AWS Support. +// // Returns communications (and attachments) for one or more support cases. You // can use the afterTime and beforeTime parameters to filter by date. You can // use the caseId parameter to restrict the results to a particular case. @@ -411,6 +496,19 @@ func (c *Support) DescribeCommunicationsRequest(input *DescribeCommunicationsInp // You can use the maxResults and nextToken parameters to control the pagination // of the result set. Set maxResults to the number of cases you want displayed // on each page, and use nextToken to specify the resumption of pagination. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Support's +// API operation, DescribeCommunications for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InternalServerError +// CaseIdNotFound func (c *Support) DescribeCommunications(input *DescribeCommunicationsInput) (*DescribeCommunicationsOutput, error) { req, out := c.DescribeCommunicationsRequest(input) err := req.Send() @@ -483,6 +581,8 @@ func (c *Support) DescribeServicesRequest(input *DescribeServicesInput) (req *re return } +// DescribeServices API operation for AWS Support. +// // Returns the current list of AWS services and a list of service categories // that applies to each one. You then use service names and categories in your // CreateCase requests. Each AWS service has its own set of categories. @@ -494,6 +594,18 @@ func (c *Support) DescribeServicesRequest(input *DescribeServicesInput) (req *re // and categories returned by the DescribeServices request. Always use the service // codes and categories obtained programmatically. This practice ensures that // you always have the most recent set of service and category codes. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Support's +// API operation, DescribeServices for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InternalServerError func (c *Support) DescribeServices(input *DescribeServicesInput) (*DescribeServicesOutput, error) { req, out := c.DescribeServicesRequest(input) err := req.Send() @@ -541,9 +653,23 @@ func (c *Support) DescribeSeverityLevelsRequest(input *DescribeSeverityLevelsInp return } +// DescribeSeverityLevels API operation for AWS Support. +// // Returns the list of severity levels that you can assign to an AWS Support // case. The severity level for a case is also a field in the CaseDetails data // type included in any CreateCase request. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Support's +// API operation, DescribeSeverityLevels for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InternalServerError func (c *Support) DescribeSeverityLevels(input *DescribeSeverityLevelsInput) (*DescribeSeverityLevelsOutput, error) { req, out := c.DescribeSeverityLevelsRequest(input) err := req.Send() @@ -591,12 +717,26 @@ func (c *Support) DescribeTrustedAdvisorCheckRefreshStatusesRequest(input *Descr return } +// DescribeTrustedAdvisorCheckRefreshStatuses API operation for AWS Support. +// // Returns the refresh status of the Trusted Advisor checks that have the specified // check IDs. Check IDs can be obtained by calling DescribeTrustedAdvisorChecks. // // Some checks are refreshed automatically, and their refresh statuses cannot // be retrieved by using this operation. Use of the DescribeTrustedAdvisorCheckRefreshStatuses // operation for these checks causes an InvalidParameterValue error. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Support's +// API operation, DescribeTrustedAdvisorCheckRefreshStatuses for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InternalServerError func (c *Support) DescribeTrustedAdvisorCheckRefreshStatuses(input *DescribeTrustedAdvisorCheckRefreshStatusesInput) (*DescribeTrustedAdvisorCheckRefreshStatusesOutput, error) { req, out := c.DescribeTrustedAdvisorCheckRefreshStatusesRequest(input) err := req.Send() @@ -644,6 +784,8 @@ func (c *Support) DescribeTrustedAdvisorCheckResultRequest(input *DescribeTruste return } +// DescribeTrustedAdvisorCheckResult API operation for AWS Support. +// // Returns the results of the Trusted Advisor check that has the specified check // ID. Check IDs can be obtained by calling DescribeTrustedAdvisorChecks. // @@ -664,6 +806,18 @@ func (c *Support) DescribeTrustedAdvisorCheckResultRequest(input *DescribeTruste // timestamp. The time of the last refresh of the check. // // checkId. The unique identifier for the check. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Support's +// API operation, DescribeTrustedAdvisorCheckResult for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InternalServerError func (c *Support) DescribeTrustedAdvisorCheckResult(input *DescribeTrustedAdvisorCheckResultInput) (*DescribeTrustedAdvisorCheckResultOutput, error) { req, out := c.DescribeTrustedAdvisorCheckResultRequest(input) err := req.Send() @@ -711,10 +865,24 @@ func (c *Support) DescribeTrustedAdvisorCheckSummariesRequest(input *DescribeTru return } +// DescribeTrustedAdvisorCheckSummaries API operation for AWS Support. +// // Returns the summaries of the results of the Trusted Advisor checks that have // the specified check IDs. Check IDs can be obtained by calling DescribeTrustedAdvisorChecks. // // The response contains an array of TrustedAdvisorCheckSummary objects. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Support's +// API operation, DescribeTrustedAdvisorCheckSummaries for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InternalServerError func (c *Support) DescribeTrustedAdvisorCheckSummaries(input *DescribeTrustedAdvisorCheckSummariesInput) (*DescribeTrustedAdvisorCheckSummariesOutput, error) { req, out := c.DescribeTrustedAdvisorCheckSummariesRequest(input) err := req.Send() @@ -762,10 +930,24 @@ func (c *Support) DescribeTrustedAdvisorChecksRequest(input *DescribeTrustedAdvi return } +// DescribeTrustedAdvisorChecks API operation for AWS Support. +// // Returns information about all available Trusted Advisor checks, including // name, ID, category, description, and metadata. You must specify a language // code; English ("en") and Japanese ("ja") are currently supported. The response // contains a TrustedAdvisorCheckDescription for each check. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Support's +// API operation, DescribeTrustedAdvisorChecks for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InternalServerError func (c *Support) DescribeTrustedAdvisorChecks(input *DescribeTrustedAdvisorChecksInput) (*DescribeTrustedAdvisorChecksOutput, error) { req, out := c.DescribeTrustedAdvisorChecksRequest(input) err := req.Send() @@ -813,6 +995,8 @@ func (c *Support) RefreshTrustedAdvisorCheckRequest(input *RefreshTrustedAdvisor return } +// RefreshTrustedAdvisorCheck API operation for AWS Support. +// // Requests a refresh of the Trusted Advisor check that has the specified check // ID. Check IDs can be obtained by calling DescribeTrustedAdvisorChecks. // @@ -830,6 +1014,18 @@ func (c *Support) RefreshTrustedAdvisorCheckRequest(input *RefreshTrustedAdvisor // the check is eligible for refresh. // // checkId. The unique identifier for the check. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Support's +// API operation, RefreshTrustedAdvisorCheck for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InternalServerError func (c *Support) RefreshTrustedAdvisorCheck(input *RefreshTrustedAdvisorCheckInput) (*RefreshTrustedAdvisorCheckOutput, error) { req, out := c.RefreshTrustedAdvisorCheckRequest(input) err := req.Send() @@ -877,8 +1073,23 @@ func (c *Support) ResolveCaseRequest(input *ResolveCaseInput) (req *request.Requ return } +// ResolveCase API operation for AWS Support. +// // Takes a caseId and returns the initial state of the case along with the state // of the case after the call to ResolveCase completed. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS Support's +// API operation, ResolveCase for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InternalServerError +// CaseIdNotFound func (c *Support) ResolveCase(input *ResolveCaseInput) (*ResolveCaseOutput, error) { req, out := c.ResolveCaseRequest(input) err := req.Send() diff --git a/service/swf/api.go b/service/swf/api.go index df28f0e375d..3dfd7a2b8b4 100644 --- a/service/swf/api.go +++ b/service/swf/api.go @@ -54,6 +54,8 @@ func (c *SWF) CountClosedWorkflowExecutionsRequest(input *CountClosedWorkflowExe return } +// CountClosedWorkflowExecutions API operation for Amazon Simple Workflow Service. +// // Returns the number of closed workflow executions within the given domain // that meet the specified filtering criteria. // @@ -74,6 +76,19 @@ func (c *SWF) CountClosedWorkflowExecutionsRequest(input *CountClosedWorkflowExe // fails. The associated event attribute's cause parameter will be set to OPERATION_NOT_PERMITTED. // For details and example IAM policies, see Using IAM to Manage Access to Amazon // SWF Workflows (http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html). +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Simple Workflow Service's +// API operation, CountClosedWorkflowExecutions for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// UnknownResourceFault +// OperationNotPermittedFault func (c *SWF) CountClosedWorkflowExecutions(input *CountClosedWorkflowExecutionsInput) (*WorkflowExecutionCount, error) { req, out := c.CountClosedWorkflowExecutionsRequest(input) err := req.Send() @@ -121,6 +136,8 @@ func (c *SWF) CountOpenWorkflowExecutionsRequest(input *CountOpenWorkflowExecuti return } +// CountOpenWorkflowExecutions API operation for Amazon Simple Workflow Service. +// // Returns the number of open workflow executions within the given domain that // meet the specified filtering criteria. // @@ -141,6 +158,19 @@ func (c *SWF) CountOpenWorkflowExecutionsRequest(input *CountOpenWorkflowExecuti // fails. The associated event attribute's cause parameter will be set to OPERATION_NOT_PERMITTED. // For details and example IAM policies, see Using IAM to Manage Access to Amazon // SWF Workflows (http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html). +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Simple Workflow Service's +// API operation, CountOpenWorkflowExecutions for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// UnknownResourceFault +// OperationNotPermittedFault func (c *SWF) CountOpenWorkflowExecutions(input *CountOpenWorkflowExecutionsInput) (*WorkflowExecutionCount, error) { req, out := c.CountOpenWorkflowExecutionsRequest(input) err := req.Send() @@ -188,6 +218,8 @@ func (c *SWF) CountPendingActivityTasksRequest(input *CountPendingActivityTasksI return } +// CountPendingActivityTasks API operation for Amazon Simple Workflow Service. +// // Returns the estimated number of activity tasks in the specified task list. // The count returned is an approximation and is not guaranteed to be exact. // If you specify a task list that no activity task was ever scheduled in then @@ -207,6 +239,19 @@ func (c *SWF) CountPendingActivityTasksRequest(input *CountPendingActivityTasksI // the action fails. The associated event attribute's cause parameter will be // set to OPERATION_NOT_PERMITTED. For details and example IAM policies, see // Using IAM to Manage Access to Amazon SWF Workflows (http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html). +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Simple Workflow Service's +// API operation, CountPendingActivityTasks for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// UnknownResourceFault +// OperationNotPermittedFault func (c *SWF) CountPendingActivityTasks(input *CountPendingActivityTasksInput) (*PendingTaskCount, error) { req, out := c.CountPendingActivityTasksRequest(input) err := req.Send() @@ -254,6 +299,8 @@ func (c *SWF) CountPendingDecisionTasksRequest(input *CountPendingDecisionTasksI return } +// CountPendingDecisionTasks API operation for Amazon Simple Workflow Service. +// // Returns the estimated number of decision tasks in the specified task list. // The count returned is an approximation and is not guaranteed to be exact. // If you specify a task list that no decision task was ever scheduled in then @@ -273,6 +320,19 @@ func (c *SWF) CountPendingDecisionTasksRequest(input *CountPendingDecisionTasksI // the action fails. The associated event attribute's cause parameter will be // set to OPERATION_NOT_PERMITTED. For details and example IAM policies, see // Using IAM to Manage Access to Amazon SWF Workflows (http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html). +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Simple Workflow Service's +// API operation, CountPendingDecisionTasks for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// UnknownResourceFault +// OperationNotPermittedFault func (c *SWF) CountPendingDecisionTasks(input *CountPendingDecisionTasksInput) (*PendingTaskCount, error) { req, out := c.CountPendingDecisionTasksRequest(input) err := req.Send() @@ -322,6 +382,8 @@ func (c *SWF) DeprecateActivityTypeRequest(input *DeprecateActivityTypeInput) (r return } +// DeprecateActivityType API operation for Amazon Simple Workflow Service. +// // Deprecates the specified activity type. After an activity type has been deprecated, // you cannot create new tasks of that activity type. Tasks of this type that // were scheduled before the type was deprecated will continue to run. @@ -342,6 +404,20 @@ func (c *SWF) DeprecateActivityTypeRequest(input *DeprecateActivityTypeInput) (r // constraints, the action fails. The associated event attribute's cause parameter // will be set to OPERATION_NOT_PERMITTED. For details and example IAM policies, // see Using IAM to Manage Access to Amazon SWF Workflows (http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html). +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Simple Workflow Service's +// API operation, DeprecateActivityType for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// UnknownResourceFault +// TypeDeprecatedFault +// OperationNotPermittedFault func (c *SWF) DeprecateActivityType(input *DeprecateActivityTypeInput) (*DeprecateActivityTypeOutput, error) { req, out := c.DeprecateActivityTypeRequest(input) err := req.Send() @@ -391,6 +467,8 @@ func (c *SWF) DeprecateDomainRequest(input *DeprecateDomainInput) (req *request. return } +// DeprecateDomain API operation for Amazon Simple Workflow Service. +// // Deprecates the specified domain. After a domain has been deprecated it cannot // be used to create new workflow executions or register new types. However, // you can still use visibility actions on this domain. Deprecating a domain @@ -412,6 +490,20 @@ func (c *SWF) DeprecateDomainRequest(input *DeprecateDomainInput) (req *request. // fails. The associated event attribute's cause parameter will be set to OPERATION_NOT_PERMITTED. // For details and example IAM policies, see Using IAM to Manage Access to Amazon // SWF Workflows (http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html). +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Simple Workflow Service's +// API operation, DeprecateDomain for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// UnknownResourceFault +// DomainDeprecatedFault +// OperationNotPermittedFault func (c *SWF) DeprecateDomain(input *DeprecateDomainInput) (*DeprecateDomainOutput, error) { req, out := c.DeprecateDomainRequest(input) err := req.Send() @@ -461,6 +553,8 @@ func (c *SWF) DeprecateWorkflowTypeRequest(input *DeprecateWorkflowTypeInput) (r return } +// DeprecateWorkflowType API operation for Amazon Simple Workflow Service. +// // Deprecates the specified workflow type. After a workflow type has been deprecated, // you cannot create new executions of that type. Executions that were started // before the type was deprecated will continue to run. A deprecated workflow @@ -482,6 +576,20 @@ func (c *SWF) DeprecateWorkflowTypeRequest(input *DeprecateWorkflowTypeInput) (r // constraints, the action fails. The associated event attribute's cause parameter // will be set to OPERATION_NOT_PERMITTED. For details and example IAM policies, // see Using IAM to Manage Access to Amazon SWF Workflows (http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html). +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Simple Workflow Service's +// API operation, DeprecateWorkflowType for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// UnknownResourceFault +// TypeDeprecatedFault +// OperationNotPermittedFault func (c *SWF) DeprecateWorkflowType(input *DeprecateWorkflowTypeInput) (*DeprecateWorkflowTypeOutput, error) { req, out := c.DeprecateWorkflowTypeRequest(input) err := req.Send() @@ -529,6 +637,8 @@ func (c *SWF) DescribeActivityTypeRequest(input *DescribeActivityTypeInput) (req return } +// DescribeActivityType API operation for Amazon Simple Workflow Service. +// // Returns information about the specified activity type. This includes configuration // settings provided when the type was registered and other general information // about the type. @@ -548,6 +658,19 @@ func (c *SWF) DescribeActivityTypeRequest(input *DescribeActivityTypeInput) (req // constraints, the action fails. The associated event attribute's cause parameter // will be set to OPERATION_NOT_PERMITTED. For details and example IAM policies, // see Using IAM to Manage Access to Amazon SWF Workflows (http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html). +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Simple Workflow Service's +// API operation, DescribeActivityType for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// UnknownResourceFault +// OperationNotPermittedFault func (c *SWF) DescribeActivityType(input *DescribeActivityTypeInput) (*DescribeActivityTypeOutput, error) { req, out := c.DescribeActivityTypeRequest(input) err := req.Send() @@ -595,6 +718,8 @@ func (c *SWF) DescribeDomainRequest(input *DescribeDomainInput) (req *request.Re return } +// DescribeDomain API operation for Amazon Simple Workflow Service. +// // Returns information about the specified domain, including description and // status. // @@ -611,6 +736,19 @@ func (c *SWF) DescribeDomainRequest(input *DescribeDomainInput) (req *request.Re // fails. The associated event attribute's cause parameter will be set to OPERATION_NOT_PERMITTED. // For details and example IAM policies, see Using IAM to Manage Access to Amazon // SWF Workflows (http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html). +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Simple Workflow Service's +// API operation, DescribeDomain for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// UnknownResourceFault +// OperationNotPermittedFault func (c *SWF) DescribeDomain(input *DescribeDomainInput) (*DescribeDomainOutput, error) { req, out := c.DescribeDomainRequest(input) err := req.Send() @@ -658,6 +796,8 @@ func (c *SWF) DescribeWorkflowExecutionRequest(input *DescribeWorkflowExecutionI return } +// DescribeWorkflowExecution API operation for Amazon Simple Workflow Service. +// // Returns information about the specified workflow execution including its // type and some statistics. // @@ -675,6 +815,19 @@ func (c *SWF) DescribeWorkflowExecutionRequest(input *DescribeWorkflowExecutionI // fails. The associated event attribute's cause parameter will be set to OPERATION_NOT_PERMITTED. // For details and example IAM policies, see Using IAM to Manage Access to Amazon // SWF Workflows (http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html). +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Simple Workflow Service's +// API operation, DescribeWorkflowExecution for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// UnknownResourceFault +// OperationNotPermittedFault func (c *SWF) DescribeWorkflowExecution(input *DescribeWorkflowExecutionInput) (*DescribeWorkflowExecutionOutput, error) { req, out := c.DescribeWorkflowExecutionRequest(input) err := req.Send() @@ -722,6 +875,8 @@ func (c *SWF) DescribeWorkflowTypeRequest(input *DescribeWorkflowTypeInput) (req return } +// DescribeWorkflowType API operation for Amazon Simple Workflow Service. +// // Returns information about the specified workflow type. This includes configuration // settings specified when the type was registered and other information such // as creation date, current status, and so on. @@ -741,6 +896,19 @@ func (c *SWF) DescribeWorkflowTypeRequest(input *DescribeWorkflowTypeInput) (req // constraints, the action fails. The associated event attribute's cause parameter // will be set to OPERATION_NOT_PERMITTED. For details and example IAM policies, // see Using IAM to Manage Access to Amazon SWF Workflows (http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html). +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Simple Workflow Service's +// API operation, DescribeWorkflowType for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// UnknownResourceFault +// OperationNotPermittedFault func (c *SWF) DescribeWorkflowType(input *DescribeWorkflowTypeInput) (*DescribeWorkflowTypeOutput, error) { req, out := c.DescribeWorkflowTypeRequest(input) err := req.Send() @@ -794,6 +962,8 @@ func (c *SWF) GetWorkflowExecutionHistoryRequest(input *GetWorkflowExecutionHist return } +// GetWorkflowExecutionHistory API operation for Amazon Simple Workflow Service. +// // Returns the history of the specified workflow execution. The results may // be split into multiple pages. To retrieve subsequent pages, make the call // again using the nextPageToken returned by the initial call. @@ -812,6 +982,19 @@ func (c *SWF) GetWorkflowExecutionHistoryRequest(input *GetWorkflowExecutionHist // fails. The associated event attribute's cause parameter will be set to OPERATION_NOT_PERMITTED. // For details and example IAM policies, see Using IAM to Manage Access to Amazon // SWF Workflows (http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html). +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Simple Workflow Service's +// API operation, GetWorkflowExecutionHistory for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// UnknownResourceFault +// OperationNotPermittedFault func (c *SWF) GetWorkflowExecutionHistory(input *GetWorkflowExecutionHistoryInput) (*GetWorkflowExecutionHistoryOutput, error) { req, out := c.GetWorkflowExecutionHistoryRequest(input) err := req.Send() @@ -890,6 +1073,8 @@ func (c *SWF) ListActivityTypesRequest(input *ListActivityTypesInput) (req *requ return } +// ListActivityTypes API operation for Amazon Simple Workflow Service. +// // Returns information about all activities registered in the specified domain // that match the specified name and registration status. The result includes // information like creation date, current status of the activity, etc. The @@ -909,6 +1094,19 @@ func (c *SWF) ListActivityTypesRequest(input *ListActivityTypesInput) (req *requ // fails. The associated event attribute's cause parameter will be set to OPERATION_NOT_PERMITTED. // For details and example IAM policies, see Using IAM to Manage Access to Amazon // SWF Workflows (http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html). +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Simple Workflow Service's +// API operation, ListActivityTypes for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// OperationNotPermittedFault +// UnknownResourceFault func (c *SWF) ListActivityTypes(input *ListActivityTypesInput) (*ListActivityTypesOutput, error) { req, out := c.ListActivityTypesRequest(input) err := req.Send() @@ -987,6 +1185,8 @@ func (c *SWF) ListClosedWorkflowExecutionsRequest(input *ListClosedWorkflowExecu return } +// ListClosedWorkflowExecutions API operation for Amazon Simple Workflow Service. +// // Returns a list of closed workflow executions in the specified domain that // meet the filtering criteria. The results may be split into multiple pages. // To retrieve subsequent pages, make the call again using the nextPageToken @@ -1009,6 +1209,19 @@ func (c *SWF) ListClosedWorkflowExecutionsRequest(input *ListClosedWorkflowExecu // fails. The associated event attribute's cause parameter will be set to OPERATION_NOT_PERMITTED. // For details and example IAM policies, see Using IAM to Manage Access to Amazon // SWF Workflows (http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html). +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Simple Workflow Service's +// API operation, ListClosedWorkflowExecutions for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// UnknownResourceFault +// OperationNotPermittedFault func (c *SWF) ListClosedWorkflowExecutions(input *ListClosedWorkflowExecutionsInput) (*WorkflowExecutionInfos, error) { req, out := c.ListClosedWorkflowExecutionsRequest(input) err := req.Send() @@ -1087,6 +1300,8 @@ func (c *SWF) ListDomainsRequest(input *ListDomainsInput) (req *request.Request, return } +// ListDomains API operation for Amazon Simple Workflow Service. +// // Returns the list of domains registered in the account. The results may be // split into multiple pages. To retrieve subsequent pages, make the call again // using the nextPageToken returned by the initial call. @@ -1106,6 +1321,18 @@ func (c *SWF) ListDomainsRequest(input *ListDomainsInput) (req *request.Request, // specified constraints, the action fails. The associated event attribute's // cause parameter will be set to OPERATION_NOT_PERMITTED. For details and example // IAM policies, see Using IAM to Manage Access to Amazon SWF Workflows (http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html). +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Simple Workflow Service's +// API operation, ListDomains for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// OperationNotPermittedFault func (c *SWF) ListDomains(input *ListDomainsInput) (*ListDomainsOutput, error) { req, out := c.ListDomainsRequest(input) err := req.Send() @@ -1184,6 +1411,8 @@ func (c *SWF) ListOpenWorkflowExecutionsRequest(input *ListOpenWorkflowExecution return } +// ListOpenWorkflowExecutions API operation for Amazon Simple Workflow Service. +// // Returns a list of open workflow executions in the specified domain that meet // the filtering criteria. The results may be split into multiple pages. To // retrieve subsequent pages, make the call again using the nextPageToken returned @@ -1206,6 +1435,19 @@ func (c *SWF) ListOpenWorkflowExecutionsRequest(input *ListOpenWorkflowExecution // fails. The associated event attribute's cause parameter will be set to OPERATION_NOT_PERMITTED. // For details and example IAM policies, see Using IAM to Manage Access to Amazon // SWF Workflows (http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html). +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Simple Workflow Service's +// API operation, ListOpenWorkflowExecutions for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// UnknownResourceFault +// OperationNotPermittedFault func (c *SWF) ListOpenWorkflowExecutions(input *ListOpenWorkflowExecutionsInput) (*WorkflowExecutionInfos, error) { req, out := c.ListOpenWorkflowExecutionsRequest(input) err := req.Send() @@ -1284,6 +1526,8 @@ func (c *SWF) ListWorkflowTypesRequest(input *ListWorkflowTypesInput) (req *requ return } +// ListWorkflowTypes API operation for Amazon Simple Workflow Service. +// // Returns information about workflow types in the specified domain. The results // may be split into multiple pages that can be retrieved by making the call // repeatedly. @@ -1301,6 +1545,19 @@ func (c *SWF) ListWorkflowTypesRequest(input *ListWorkflowTypesInput) (req *requ // fails. The associated event attribute's cause parameter will be set to OPERATION_NOT_PERMITTED. // For details and example IAM policies, see Using IAM to Manage Access to Amazon // SWF Workflows (http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html). +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Simple Workflow Service's +// API operation, ListWorkflowTypes for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// OperationNotPermittedFault +// UnknownResourceFault func (c *SWF) ListWorkflowTypes(input *ListWorkflowTypesInput) (*ListWorkflowTypesOutput, error) { req, out := c.ListWorkflowTypesRequest(input) err := req.Send() @@ -1373,6 +1630,8 @@ func (c *SWF) PollForActivityTaskRequest(input *PollForActivityTaskInput) (req * return } +// PollForActivityTask API operation for Amazon Simple Workflow Service. +// // Used by workers to get an ActivityTask from the specified activity taskList. // This initiates a long poll, where the service holds the HTTP connection open // and responds as soon as a task becomes available. The maximum time the service @@ -1398,6 +1657,20 @@ func (c *SWF) PollForActivityTaskRequest(input *PollForActivityTaskInput) (req * // the action fails. The associated event attribute's cause parameter will be // set to OPERATION_NOT_PERMITTED. For details and example IAM policies, see // Using IAM to Manage Access to Amazon SWF Workflows (http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html). +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Simple Workflow Service's +// API operation, PollForActivityTask for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// UnknownResourceFault +// OperationNotPermittedFault +// LimitExceededFault func (c *SWF) PollForActivityTask(input *PollForActivityTaskInput) (*PollForActivityTaskOutput, error) { req, out := c.PollForActivityTaskRequest(input) err := req.Send() @@ -1451,6 +1724,8 @@ func (c *SWF) PollForDecisionTaskRequest(input *PollForDecisionTaskInput) (req * return } +// PollForDecisionTask API operation for Amazon Simple Workflow Service. +// // Used by deciders to get a DecisionTask from the specified decision taskList. // A decision task may be returned for any open workflow execution that is using // the specified task list. The task includes a paginated view of the history @@ -1484,6 +1759,20 @@ func (c *SWF) PollForDecisionTaskRequest(input *PollForDecisionTaskInput) (req * // the action fails. The associated event attribute's cause parameter will be // set to OPERATION_NOT_PERMITTED. For details and example IAM policies, see // Using IAM to Manage Access to Amazon SWF Workflows (http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html). +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Simple Workflow Service's +// API operation, PollForDecisionTask for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// UnknownResourceFault +// OperationNotPermittedFault +// LimitExceededFault func (c *SWF) PollForDecisionTask(input *PollForDecisionTaskInput) (*PollForDecisionTaskOutput, error) { req, out := c.PollForDecisionTaskRequest(input) err := req.Send() @@ -1556,6 +1845,8 @@ func (c *SWF) RecordActivityTaskHeartbeatRequest(input *RecordActivityTaskHeartb return } +// RecordActivityTaskHeartbeat API operation for Amazon Simple Workflow Service. +// // Used by activity workers to report to the service that the ActivityTask represented // by the specified taskToken is still making progress. The worker can also // (optionally) specify details of the progress, for example percent complete, @@ -1592,6 +1883,19 @@ func (c *SWF) RecordActivityTaskHeartbeatRequest(input *RecordActivityTaskHeartb // fails. The associated event attribute's cause parameter will be set to OPERATION_NOT_PERMITTED. // For details and example IAM policies, see Using IAM to Manage Access to Amazon // SWF Workflows (http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html). +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Simple Workflow Service's +// API operation, RecordActivityTaskHeartbeat for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// UnknownResourceFault +// OperationNotPermittedFault func (c *SWF) RecordActivityTaskHeartbeat(input *RecordActivityTaskHeartbeatInput) (*RecordActivityTaskHeartbeatOutput, error) { req, out := c.RecordActivityTaskHeartbeatRequest(input) err := req.Send() @@ -1641,6 +1945,8 @@ func (c *SWF) RegisterActivityTypeRequest(input *RegisterActivityTypeInput) (req return } +// RegisterActivityType API operation for Amazon Simple Workflow Service. +// // Registers a new activity type along with its configuration settings in the // specified domain. // @@ -1662,6 +1968,21 @@ func (c *SWF) RegisterActivityTypeRequest(input *RegisterActivityTypeInput) (req // event attribute's cause parameter will be set to OPERATION_NOT_PERMITTED. // For details and example IAM policies, see Using IAM to Manage Access to Amazon // SWF Workflows (http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html). +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Simple Workflow Service's +// API operation, RegisterActivityType for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// TypeAlreadyExistsFault +// LimitExceededFault +// UnknownResourceFault +// OperationNotPermittedFault func (c *SWF) RegisterActivityType(input *RegisterActivityTypeInput) (*RegisterActivityTypeOutput, error) { req, out := c.RegisterActivityTypeRequest(input) err := req.Send() @@ -1711,6 +2032,8 @@ func (c *SWF) RegisterDomainRequest(input *RegisterDomainInput) (req *request.Re return } +// RegisterDomain API operation for Amazon Simple Workflow Service. +// // Registers a new domain. // // Access Control @@ -1727,6 +2050,20 @@ func (c *SWF) RegisterDomainRequest(input *RegisterDomainInput) (req *request.Re // The associated event attribute's cause parameter will be set to OPERATION_NOT_PERMITTED. // For details and example IAM policies, see Using IAM to Manage Access to Amazon // SWF Workflows (http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html). +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Simple Workflow Service's +// API operation, RegisterDomain for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// DomainAlreadyExistsFault +// LimitExceededFault +// OperationNotPermittedFault func (c *SWF) RegisterDomain(input *RegisterDomainInput) (*RegisterDomainOutput, error) { req, out := c.RegisterDomainRequest(input) err := req.Send() @@ -1776,6 +2113,8 @@ func (c *SWF) RegisterWorkflowTypeRequest(input *RegisterWorkflowTypeInput) (req return } +// RegisterWorkflowType API operation for Amazon Simple Workflow Service. +// // Registers a new workflow type and its configuration settings in the specified // domain. // @@ -1800,6 +2139,21 @@ func (c *SWF) RegisterWorkflowTypeRequest(input *RegisterWorkflowTypeInput) (req // event attribute's cause parameter will be set to OPERATION_NOT_PERMITTED. // For details and example IAM policies, see Using IAM to Manage Access to Amazon // SWF Workflows (http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html). +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Simple Workflow Service's +// API operation, RegisterWorkflowType for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// TypeAlreadyExistsFault +// LimitExceededFault +// UnknownResourceFault +// OperationNotPermittedFault func (c *SWF) RegisterWorkflowType(input *RegisterWorkflowTypeInput) (*RegisterWorkflowTypeOutput, error) { req, out := c.RegisterWorkflowTypeRequest(input) err := req.Send() @@ -1849,6 +2203,8 @@ func (c *SWF) RequestCancelWorkflowExecutionRequest(input *RequestCancelWorkflow return } +// RequestCancelWorkflowExecution API operation for Amazon Simple Workflow Service. +// // Records a WorkflowExecutionCancelRequested event in the currently running // workflow execution identified by the given domain, workflowId, and runId. // This logically requests the cancellation of the workflow execution as a whole. @@ -1872,6 +2228,19 @@ func (c *SWF) RequestCancelWorkflowExecutionRequest(input *RequestCancelWorkflow // fails. The associated event attribute's cause parameter will be set to OPERATION_NOT_PERMITTED. // For details and example IAM policies, see Using IAM to Manage Access to Amazon // SWF Workflows (http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html). +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Simple Workflow Service's +// API operation, RequestCancelWorkflowExecution for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// UnknownResourceFault +// OperationNotPermittedFault func (c *SWF) RequestCancelWorkflowExecution(input *RequestCancelWorkflowExecutionInput) (*RequestCancelWorkflowExecutionOutput, error) { req, out := c.RequestCancelWorkflowExecutionRequest(input) err := req.Send() @@ -1921,6 +2290,8 @@ func (c *SWF) RespondActivityTaskCanceledRequest(input *RespondActivityTaskCance return } +// RespondActivityTaskCanceled API operation for Amazon Simple Workflow Service. +// // Used by workers to tell the service that the ActivityTask identified by the // taskToken was successfully canceled. Additional details can be optionally // provided using the details argument. @@ -1949,6 +2320,19 @@ func (c *SWF) RespondActivityTaskCanceledRequest(input *RespondActivityTaskCance // fails. The associated event attribute's cause parameter will be set to OPERATION_NOT_PERMITTED. // For details and example IAM policies, see Using IAM to Manage Access to Amazon // SWF Workflows (http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html). +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Simple Workflow Service's +// API operation, RespondActivityTaskCanceled for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// UnknownResourceFault +// OperationNotPermittedFault func (c *SWF) RespondActivityTaskCanceled(input *RespondActivityTaskCanceledInput) (*RespondActivityTaskCanceledOutput, error) { req, out := c.RespondActivityTaskCanceledRequest(input) err := req.Send() @@ -1998,6 +2382,8 @@ func (c *SWF) RespondActivityTaskCompletedRequest(input *RespondActivityTaskComp return } +// RespondActivityTaskCompleted API operation for Amazon Simple Workflow Service. +// // Used by workers to tell the service that the ActivityTask identified by the // taskToken completed successfully with a result (if provided). The result // appears in the ActivityTaskCompleted event in the workflow history. @@ -2024,6 +2410,19 @@ func (c *SWF) RespondActivityTaskCompletedRequest(input *RespondActivityTaskComp // fails. The associated event attribute's cause parameter will be set to OPERATION_NOT_PERMITTED. // For details and example IAM policies, see Using IAM to Manage Access to Amazon // SWF Workflows (http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html). +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Simple Workflow Service's +// API operation, RespondActivityTaskCompleted for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// UnknownResourceFault +// OperationNotPermittedFault func (c *SWF) RespondActivityTaskCompleted(input *RespondActivityTaskCompletedInput) (*RespondActivityTaskCompletedOutput, error) { req, out := c.RespondActivityTaskCompletedRequest(input) err := req.Send() @@ -2073,6 +2472,8 @@ func (c *SWF) RespondActivityTaskFailedRequest(input *RespondActivityTaskFailedI return } +// RespondActivityTaskFailed API operation for Amazon Simple Workflow Service. +// // Used by workers to tell the service that the ActivityTask identified by the // taskToken has failed with reason (if specified). The reason and details appear // in the ActivityTaskFailed event added to the workflow history. @@ -2096,6 +2497,19 @@ func (c *SWF) RespondActivityTaskFailedRequest(input *RespondActivityTaskFailedI // fails. The associated event attribute's cause parameter will be set to OPERATION_NOT_PERMITTED. // For details and example IAM policies, see Using IAM to Manage Access to Amazon // SWF Workflows (http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html). +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Simple Workflow Service's +// API operation, RespondActivityTaskFailed for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// UnknownResourceFault +// OperationNotPermittedFault func (c *SWF) RespondActivityTaskFailed(input *RespondActivityTaskFailedInput) (*RespondActivityTaskFailedOutput, error) { req, out := c.RespondActivityTaskFailedRequest(input) err := req.Send() @@ -2145,6 +2559,8 @@ func (c *SWF) RespondDecisionTaskCompletedRequest(input *RespondDecisionTaskComp return } +// RespondDecisionTaskCompleted API operation for Amazon Simple Workflow Service. +// // Used by deciders to tell the service that the DecisionTask identified by // the taskToken has successfully completed. The decisions argument specifies // the list of decisions made while processing the task. @@ -2161,6 +2577,19 @@ func (c *SWF) RespondDecisionTaskCompletedRequest(input *RespondDecisionTaskComp // permissions on decisions as if they were actual API calls, including applying // conditions to some parameters. For more information, see Using IAM to Manage // Access to Amazon SWF Workflows (http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html). +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Simple Workflow Service's +// API operation, RespondDecisionTaskCompleted for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// UnknownResourceFault +// OperationNotPermittedFault func (c *SWF) RespondDecisionTaskCompleted(input *RespondDecisionTaskCompletedInput) (*RespondDecisionTaskCompletedOutput, error) { req, out := c.RespondDecisionTaskCompletedRequest(input) err := req.Send() @@ -2210,6 +2639,8 @@ func (c *SWF) SignalWorkflowExecutionRequest(input *SignalWorkflowExecutionInput return } +// SignalWorkflowExecution API operation for Amazon Simple Workflow Service. +// // Records a WorkflowExecutionSignaled event in the workflow execution history // and creates a decision task for the workflow execution identified by the // given domain, workflowId and runId. The event is recorded with the specified @@ -2231,6 +2662,19 @@ func (c *SWF) SignalWorkflowExecutionRequest(input *SignalWorkflowExecutionInput // fails. The associated event attribute's cause parameter will be set to OPERATION_NOT_PERMITTED. // For details and example IAM policies, see Using IAM to Manage Access to Amazon // SWF Workflows (http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html). +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Simple Workflow Service's +// API operation, SignalWorkflowExecution for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// UnknownResourceFault +// OperationNotPermittedFault func (c *SWF) SignalWorkflowExecution(input *SignalWorkflowExecutionInput) (*SignalWorkflowExecutionOutput, error) { req, out := c.SignalWorkflowExecutionRequest(input) err := req.Send() @@ -2278,6 +2722,8 @@ func (c *SWF) StartWorkflowExecutionRequest(input *StartWorkflowExecutionInput) return } +// StartWorkflowExecution API operation for Amazon Simple Workflow Service. +// // Starts an execution of the workflow type in the specified domain using the // provided workflowId and input data. // @@ -2302,6 +2748,23 @@ func (c *SWF) StartWorkflowExecutionRequest(input *StartWorkflowExecutionInput) // constraints, the action fails. The associated event attribute's cause parameter // will be set to OPERATION_NOT_PERMITTED. For details and example IAM policies, // see Using IAM to Manage Access to Amazon SWF Workflows (http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html). +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Simple Workflow Service's +// API operation, StartWorkflowExecution for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// UnknownResourceFault +// TypeDeprecatedFault +// WorkflowExecutionAlreadyStartedFault +// LimitExceededFault +// OperationNotPermittedFault +// DefaultUndefinedFault func (c *SWF) StartWorkflowExecution(input *StartWorkflowExecutionInput) (*StartWorkflowExecutionOutput, error) { req, out := c.StartWorkflowExecutionRequest(input) err := req.Send() @@ -2351,6 +2814,8 @@ func (c *SWF) TerminateWorkflowExecutionRequest(input *TerminateWorkflowExecutio return } +// TerminateWorkflowExecution API operation for Amazon Simple Workflow Service. +// // Records a WorkflowExecutionTerminated event and forces closure of the workflow // execution identified by the given domain, runId, and workflowId. The child // policy, registered with the workflow type or specified when starting this @@ -2375,6 +2840,19 @@ func (c *SWF) TerminateWorkflowExecutionRequest(input *TerminateWorkflowExecutio // fails. The associated event attribute's cause parameter will be set to OPERATION_NOT_PERMITTED. // For details and example IAM policies, see Using IAM to Manage Access to Amazon // SWF Workflows (http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html). +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon Simple Workflow Service's +// API operation, TerminateWorkflowExecution for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// UnknownResourceFault +// OperationNotPermittedFault func (c *SWF) TerminateWorkflowExecution(input *TerminateWorkflowExecutionInput) (*TerminateWorkflowExecutionOutput, error) { req, out := c.TerminateWorkflowExecutionRequest(input) err := req.Send() diff --git a/service/waf/api.go b/service/waf/api.go index 37536702286..6e2962a5244 100644 --- a/service/waf/api.go +++ b/service/waf/api.go @@ -52,6 +52,8 @@ func (c *WAF) CreateByteMatchSetRequest(input *CreateByteMatchSetInput) (req *re return } +// CreateByteMatchSet API operation for AWS WAF. +// // Creates a ByteMatchSet. You then use UpdateByteMatchSet to identify the part // of a web request that you want AWS WAF to inspect, such as the values of // the User-Agent header or the query string. For example, you can create a @@ -74,6 +76,23 @@ func (c *WAF) CreateByteMatchSetRequest(input *CreateByteMatchSetInput) (req *re // // For more information about how to use the AWS WAF API to allow or block // HTTP requests, see the AWS WAF Developer Guide (http://docs.aws.amazon.com/waf/latest/developerguide/). +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS WAF's +// API operation, CreateByteMatchSet for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// WAFDisallowedNameException +// WAFInternalErrorException +// WAFInvalidAccountException +// WAFInvalidParameterException +// WAFStaleDataException +// WAFLimitsExceededException func (c *WAF) CreateByteMatchSet(input *CreateByteMatchSetInput) (*CreateByteMatchSetOutput, error) { req, out := c.CreateByteMatchSetRequest(input) err := req.Send() @@ -121,6 +140,8 @@ func (c *WAF) CreateIPSetRequest(input *CreateIPSetInput) (req *request.Request, return } +// CreateIPSet API operation for AWS WAF. +// // Creates an IPSet, which you use to specify which web requests you want to // allow or block based on the IP addresses that the requests originate from. // For example, if you're receiving a lot of requests from one or more individual @@ -143,6 +164,23 @@ func (c *WAF) CreateIPSetRequest(input *CreateIPSetInput) (req *request.Request, // // For more information about how to use the AWS WAF API to allow or block // HTTP requests, see the AWS WAF Developer Guide (http://docs.aws.amazon.com/waf/latest/developerguide/). +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS WAF's +// API operation, CreateIPSet for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// WAFStaleDataException +// WAFInternalErrorException +// WAFInvalidAccountException +// WAFDisallowedNameException +// WAFInvalidParameterException +// WAFLimitsExceededException func (c *WAF) CreateIPSet(input *CreateIPSetInput) (*CreateIPSetOutput, error) { req, out := c.CreateIPSetRequest(input) err := req.Send() @@ -190,6 +228,8 @@ func (c *WAF) CreateRuleRequest(input *CreateRuleInput) (req *request.Request, o return } +// CreateRule API operation for AWS WAF. +// // Creates a Rule, which contains the IPSet objects, ByteMatchSet objects, and // other predicates that identify the requests that you want to block. If you // add more than one predicate to a Rule, a request must match all of the specifications @@ -226,6 +266,22 @@ func (c *WAF) CreateRuleRequest(input *CreateRuleInput) (req *request.Request, o // // For more information about how to use the AWS WAF API to allow or block // HTTP requests, see the AWS WAF Developer Guide (http://docs.aws.amazon.com/waf/latest/developerguide/). +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS WAF's +// API operation, CreateRule for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// WAFStaleDataException +// WAFInternalErrorException +// WAFDisallowedNameException +// WAFInvalidParameterException +// WAFLimitsExceededException func (c *WAF) CreateRule(input *CreateRuleInput) (*CreateRuleOutput, error) { req, out := c.CreateRuleRequest(input) err := req.Send() @@ -273,6 +329,8 @@ func (c *WAF) CreateSizeConstraintSetRequest(input *CreateSizeConstraintSetInput return } +// CreateSizeConstraintSet API operation for AWS WAF. +// // Creates a SizeConstraintSet. You then use UpdateSizeConstraintSet to identify // the part of a web request that you want AWS WAF to check for length, such // as the length of the User-Agent header or the length of the query string. @@ -296,6 +354,23 @@ func (c *WAF) CreateSizeConstraintSetRequest(input *CreateSizeConstraintSetInput // // For more information about how to use the AWS WAF API to allow or block // HTTP requests, see the AWS WAF Developer Guide (http://docs.aws.amazon.com/waf/latest/developerguide/). +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS WAF's +// API operation, CreateSizeConstraintSet for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// WAFStaleDataException +// WAFInternalErrorException +// WAFInvalidAccountException +// WAFDisallowedNameException +// WAFInvalidParameterException +// WAFLimitsExceededException func (c *WAF) CreateSizeConstraintSet(input *CreateSizeConstraintSetInput) (*CreateSizeConstraintSetOutput, error) { req, out := c.CreateSizeConstraintSetRequest(input) err := req.Send() @@ -343,6 +418,8 @@ func (c *WAF) CreateSqlInjectionMatchSetRequest(input *CreateSqlInjectionMatchSe return } +// CreateSqlInjectionMatchSet API operation for AWS WAF. +// // Creates a SqlInjectionMatchSet, which you use to allow, block, or count requests // that contain snippets of SQL code in a specified part of web requests. AWS // WAF searches for character sequences that are likely to be malicious strings. @@ -362,6 +439,23 @@ func (c *WAF) CreateSqlInjectionMatchSetRequest(input *CreateSqlInjectionMatchSe // // For more information about how to use the AWS WAF API to allow or block // HTTP requests, see the AWS WAF Developer Guide (http://docs.aws.amazon.com/waf/latest/developerguide/). +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS WAF's +// API operation, CreateSqlInjectionMatchSet for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// WAFDisallowedNameException +// WAFInternalErrorException +// WAFInvalidAccountException +// WAFInvalidParameterException +// WAFStaleDataException +// WAFLimitsExceededException func (c *WAF) CreateSqlInjectionMatchSet(input *CreateSqlInjectionMatchSetInput) (*CreateSqlInjectionMatchSetOutput, error) { req, out := c.CreateSqlInjectionMatchSetRequest(input) err := req.Send() @@ -409,6 +503,8 @@ func (c *WAF) CreateWebACLRequest(input *CreateWebACLInput) (req *request.Reques return } +// CreateWebACL API operation for AWS WAF. +// // Creates a WebACL, which contains the Rules that identify the CloudFront web // requests that you want to allow, block, or count. AWS WAF evaluates Rules // in order based on the value of Priority for each Rule. @@ -440,6 +536,23 @@ func (c *WAF) CreateWebACLRequest(input *CreateWebACLInput) (req *request.Reques // // For more information about how to use the AWS WAF API, see the AWS WAF // Developer Guide (http://docs.aws.amazon.com/waf/latest/developerguide/). +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS WAF's +// API operation, CreateWebACL for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// WAFStaleDataException +// WAFInternalErrorException +// WAFInvalidAccountException +// WAFDisallowedNameException +// WAFInvalidParameterException +// WAFLimitsExceededException func (c *WAF) CreateWebACL(input *CreateWebACLInput) (*CreateWebACLOutput, error) { req, out := c.CreateWebACLRequest(input) err := req.Send() @@ -487,6 +600,8 @@ func (c *WAF) CreateXssMatchSetRequest(input *CreateXssMatchSetInput) (req *requ return } +// CreateXssMatchSet API operation for AWS WAF. +// // Creates an XssMatchSet, which you use to allow, block, or count requests // that contain cross-site scripting attacks in the specified part of web requests. // AWS WAF searches for character sequences that are likely to be malicious @@ -507,6 +622,23 @@ func (c *WAF) CreateXssMatchSetRequest(input *CreateXssMatchSetInput) (req *requ // // For more information about how to use the AWS WAF API to allow or block // HTTP requests, see the AWS WAF Developer Guide (http://docs.aws.amazon.com/waf/latest/developerguide/). +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS WAF's +// API operation, CreateXssMatchSet for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// WAFDisallowedNameException +// WAFInternalErrorException +// WAFInvalidAccountException +// WAFInvalidParameterException +// WAFStaleDataException +// WAFLimitsExceededException func (c *WAF) CreateXssMatchSet(input *CreateXssMatchSetInput) (*CreateXssMatchSetOutput, error) { req, out := c.CreateXssMatchSetRequest(input) err := req.Send() @@ -554,6 +686,8 @@ func (c *WAF) DeleteByteMatchSetRequest(input *DeleteByteMatchSetInput) (req *re return } +// DeleteByteMatchSet API operation for AWS WAF. +// // Permanently deletes a ByteMatchSet. You can't delete a ByteMatchSet if it's // still used in any Rules or if it still includes any ByteMatchTuple objects // (any filters). @@ -569,6 +703,23 @@ func (c *WAF) DeleteByteMatchSetRequest(input *DeleteByteMatchSetInput) (req *re // parameter of a DeleteByteMatchSet request. // // Submit a DeleteByteMatchSet request. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS WAF's +// API operation, DeleteByteMatchSet for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// WAFInternalErrorException +// WAFInvalidAccountException +// WAFNonexistentItemException +// WAFReferencedItemException +// WAFStaleDataException +// WAFNonEmptyEntityException func (c *WAF) DeleteByteMatchSet(input *DeleteByteMatchSetInput) (*DeleteByteMatchSetOutput, error) { req, out := c.DeleteByteMatchSetRequest(input) err := req.Send() @@ -616,6 +767,8 @@ func (c *WAF) DeleteIPSetRequest(input *DeleteIPSetInput) (req *request.Request, return } +// DeleteIPSet API operation for AWS WAF. +// // Permanently deletes an IPSet. You can't delete an IPSet if it's still used // in any Rules or if it still includes any IP addresses. // @@ -630,6 +783,23 @@ func (c *WAF) DeleteIPSetRequest(input *DeleteIPSetInput) (req *request.Request, // parameter of a DeleteIPSet request. // // Submit a DeleteIPSet request. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS WAF's +// API operation, DeleteIPSet for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// WAFStaleDataException +// WAFInternalErrorException +// WAFInvalidAccountException +// WAFNonexistentItemException +// WAFReferencedItemException +// WAFNonEmptyEntityException func (c *WAF) DeleteIPSet(input *DeleteIPSetInput) (*DeleteIPSetOutput, error) { req, out := c.DeleteIPSetRequest(input) err := req.Send() @@ -677,6 +847,8 @@ func (c *WAF) DeleteRuleRequest(input *DeleteRuleInput) (req *request.Request, o return } +// DeleteRule API operation for AWS WAF. +// // Permanently deletes a Rule. You can't delete a Rule if it's still used in // any WebACL objects or if it still includes any predicates, such as ByteMatchSet // objects. @@ -692,6 +864,23 @@ func (c *WAF) DeleteRuleRequest(input *DeleteRuleInput) (req *request.Request, o // parameter of a DeleteRule request. // // Submit a DeleteRule request. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS WAF's +// API operation, DeleteRule for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// WAFStaleDataException +// WAFInternalErrorException +// WAFInvalidAccountException +// WAFNonexistentItemException +// WAFReferencedItemException +// WAFNonEmptyEntityException func (c *WAF) DeleteRule(input *DeleteRuleInput) (*DeleteRuleOutput, error) { req, out := c.DeleteRuleRequest(input) err := req.Send() @@ -739,6 +928,8 @@ func (c *WAF) DeleteSizeConstraintSetRequest(input *DeleteSizeConstraintSetInput return } +// DeleteSizeConstraintSet API operation for AWS WAF. +// // Permanently deletes a SizeConstraintSet. You can't delete a SizeConstraintSet // if it's still used in any Rules or if it still includes any SizeConstraint // objects (any filters). @@ -754,6 +945,23 @@ func (c *WAF) DeleteSizeConstraintSetRequest(input *DeleteSizeConstraintSetInput // parameter of a DeleteSizeConstraintSet request. // // Submit a DeleteSizeConstraintSet request. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS WAF's +// API operation, DeleteSizeConstraintSet for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// WAFStaleDataException +// WAFInternalErrorException +// WAFInvalidAccountException +// WAFNonexistentItemException +// WAFReferencedItemException +// WAFNonEmptyEntityException func (c *WAF) DeleteSizeConstraintSet(input *DeleteSizeConstraintSetInput) (*DeleteSizeConstraintSetOutput, error) { req, out := c.DeleteSizeConstraintSetRequest(input) err := req.Send() @@ -801,6 +1009,8 @@ func (c *WAF) DeleteSqlInjectionMatchSetRequest(input *DeleteSqlInjectionMatchSe return } +// DeleteSqlInjectionMatchSet API operation for AWS WAF. +// // Permanently deletes a SqlInjectionMatchSet. You can't delete a SqlInjectionMatchSet // if it's still used in any Rules or if it still contains any SqlInjectionMatchTuple // objects. @@ -817,6 +1027,23 @@ func (c *WAF) DeleteSqlInjectionMatchSetRequest(input *DeleteSqlInjectionMatchSe // parameter of a DeleteSqlInjectionMatchSet request. // // Submit a DeleteSqlInjectionMatchSet request. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS WAF's +// API operation, DeleteSqlInjectionMatchSet for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// WAFInternalErrorException +// WAFInvalidAccountException +// WAFNonexistentItemException +// WAFReferencedItemException +// WAFStaleDataException +// WAFNonEmptyEntityException func (c *WAF) DeleteSqlInjectionMatchSet(input *DeleteSqlInjectionMatchSetInput) (*DeleteSqlInjectionMatchSetOutput, error) { req, out := c.DeleteSqlInjectionMatchSetRequest(input) err := req.Send() @@ -864,6 +1091,8 @@ func (c *WAF) DeleteWebACLRequest(input *DeleteWebACLInput) (req *request.Reques return } +// DeleteWebACL API operation for AWS WAF. +// // Permanently deletes a WebACL. You can't delete a WebACL if it still contains // any Rules. // @@ -875,6 +1104,23 @@ func (c *WAF) DeleteWebACLRequest(input *DeleteWebACLInput) (req *request.Reques // parameter of a DeleteWebACL request. // // Submit a DeleteWebACL request. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS WAF's +// API operation, DeleteWebACL for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// WAFStaleDataException +// WAFInternalErrorException +// WAFInvalidAccountException +// WAFNonexistentItemException +// WAFReferencedItemException +// WAFNonEmptyEntityException func (c *WAF) DeleteWebACL(input *DeleteWebACLInput) (*DeleteWebACLOutput, error) { req, out := c.DeleteWebACLRequest(input) err := req.Send() @@ -922,6 +1168,8 @@ func (c *WAF) DeleteXssMatchSetRequest(input *DeleteXssMatchSetInput) (req *requ return } +// DeleteXssMatchSet API operation for AWS WAF. +// // Permanently deletes an XssMatchSet. You can't delete an XssMatchSet if it's // still used in any Rules or if it still contains any XssMatchTuple objects. // @@ -937,6 +1185,23 @@ func (c *WAF) DeleteXssMatchSetRequest(input *DeleteXssMatchSetInput) (req *requ // parameter of a DeleteXssMatchSet request. // // Submit a DeleteXssMatchSet request. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS WAF's +// API operation, DeleteXssMatchSet for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// WAFInternalErrorException +// WAFInvalidAccountException +// WAFNonexistentItemException +// WAFReferencedItemException +// WAFStaleDataException +// WAFNonEmptyEntityException func (c *WAF) DeleteXssMatchSet(input *DeleteXssMatchSetInput) (*DeleteXssMatchSetOutput, error) { req, out := c.DeleteXssMatchSetRequest(input) err := req.Send() @@ -984,7 +1249,23 @@ func (c *WAF) GetByteMatchSetRequest(input *GetByteMatchSetInput) (req *request. return } +// GetByteMatchSet API operation for AWS WAF. +// // Returns the ByteMatchSet specified by ByteMatchSetId. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS WAF's +// API operation, GetByteMatchSet for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// WAFInternalErrorException +// WAFInvalidAccountException +// WAFNonexistentItemException func (c *WAF) GetByteMatchSet(input *GetByteMatchSetInput) (*GetByteMatchSetOutput, error) { req, out := c.GetByteMatchSetRequest(input) err := req.Send() @@ -1032,6 +1313,8 @@ func (c *WAF) GetChangeTokenRequest(input *GetChangeTokenInput) (req *request.Re return } +// GetChangeToken API operation for AWS WAF. +// // When you want to create, update, or delete AWS WAF objects, get a change // token and include the change token in the create, update, or delete request. // Change tokens ensure that your application doesn't submit conflicting requests @@ -1047,6 +1330,18 @@ func (c *WAF) GetChangeTokenRequest(input *GetChangeTokenInput) (req *request.Re // status of the change token changes to PENDING, which indicates that AWS WAF // is propagating the change to all AWS WAF servers. Use GetChangeTokenStatus // to determine the status of your change token. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS WAF's +// API operation, GetChangeToken for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// WAFInternalErrorException func (c *WAF) GetChangeToken(input *GetChangeTokenInput) (*GetChangeTokenOutput, error) { req, out := c.GetChangeTokenRequest(input) err := req.Send() @@ -1094,6 +1389,8 @@ func (c *WAF) GetChangeTokenStatusRequest(input *GetChangeTokenStatusInput) (req return } +// GetChangeTokenStatus API operation for AWS WAF. +// // Returns the status of a ChangeToken that you got by calling GetChangeToken. // ChangeTokenStatus is one of the following values: // @@ -1105,6 +1402,19 @@ func (c *WAF) GetChangeTokenStatusRequest(input *GetChangeTokenStatusInput) (req // to all AWS WAF servers. // // IN_SYNC: Propagation is complete. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS WAF's +// API operation, GetChangeTokenStatus for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// WAFNonexistentItemException +// WAFInternalErrorException func (c *WAF) GetChangeTokenStatus(input *GetChangeTokenStatusInput) (*GetChangeTokenStatusOutput, error) { req, out := c.GetChangeTokenStatusRequest(input) err := req.Send() @@ -1152,7 +1462,23 @@ func (c *WAF) GetIPSetRequest(input *GetIPSetInput) (req *request.Request, outpu return } +// GetIPSet API operation for AWS WAF. +// // Returns the IPSet that is specified by IPSetId. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS WAF's +// API operation, GetIPSet for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// WAFInternalErrorException +// WAFInvalidAccountException +// WAFNonexistentItemException func (c *WAF) GetIPSet(input *GetIPSetInput) (*GetIPSetOutput, error) { req, out := c.GetIPSetRequest(input) err := req.Send() @@ -1200,8 +1526,24 @@ func (c *WAF) GetRuleRequest(input *GetRuleInput) (req *request.Request, output return } +// GetRule API operation for AWS WAF. +// // Returns the Rule that is specified by the RuleId that you included in the // GetRule request. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS WAF's +// API operation, GetRule for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// WAFInternalErrorException +// WAFInvalidAccountException +// WAFNonexistentItemException func (c *WAF) GetRule(input *GetRuleInput) (*GetRuleOutput, error) { req, out := c.GetRuleRequest(input) err := req.Send() @@ -1249,6 +1591,8 @@ func (c *WAF) GetSampledRequestsRequest(input *GetSampledRequestsInput) (req *re return } +// GetSampledRequests API operation for AWS WAF. +// // Gets detailed information about a specified number of requests--a sample--that // AWS WAF randomly selects from among the first 5,000 requests that your AWS // resource received during a time range that you choose. You can specify a @@ -1260,6 +1604,19 @@ func (c *WAF) GetSampledRequestsRequest(input *GetSampledRequestsInput) (req *re // received 5,000 requests before the specified time range elapsed, GetSampledRequests // returns an updated time range. This new time range indicates the actual period // during which AWS WAF selected the requests in the sample. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS WAF's +// API operation, GetSampledRequests for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// WAFNonexistentItemException +// WAFInternalErrorException func (c *WAF) GetSampledRequests(input *GetSampledRequestsInput) (*GetSampledRequestsOutput, error) { req, out := c.GetSampledRequestsRequest(input) err := req.Send() @@ -1307,7 +1664,23 @@ func (c *WAF) GetSizeConstraintSetRequest(input *GetSizeConstraintSetInput) (req return } +// GetSizeConstraintSet API operation for AWS WAF. +// // Returns the SizeConstraintSet specified by SizeConstraintSetId. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS WAF's +// API operation, GetSizeConstraintSet for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// WAFInternalErrorException +// WAFInvalidAccountException +// WAFNonexistentItemException func (c *WAF) GetSizeConstraintSet(input *GetSizeConstraintSetInput) (*GetSizeConstraintSetOutput, error) { req, out := c.GetSizeConstraintSetRequest(input) err := req.Send() @@ -1355,7 +1728,23 @@ func (c *WAF) GetSqlInjectionMatchSetRequest(input *GetSqlInjectionMatchSetInput return } +// GetSqlInjectionMatchSet API operation for AWS WAF. +// // Returns the SqlInjectionMatchSet that is specified by SqlInjectionMatchSetId. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS WAF's +// API operation, GetSqlInjectionMatchSet for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// WAFInternalErrorException +// WAFInvalidAccountException +// WAFNonexistentItemException func (c *WAF) GetSqlInjectionMatchSet(input *GetSqlInjectionMatchSetInput) (*GetSqlInjectionMatchSetOutput, error) { req, out := c.GetSqlInjectionMatchSetRequest(input) err := req.Send() @@ -1403,7 +1792,23 @@ func (c *WAF) GetWebACLRequest(input *GetWebACLInput) (req *request.Request, out return } +// GetWebACL API operation for AWS WAF. +// // Returns the WebACL that is specified by WebACLId. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS WAF's +// API operation, GetWebACL for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// WAFInternalErrorException +// WAFInvalidAccountException +// WAFNonexistentItemException func (c *WAF) GetWebACL(input *GetWebACLInput) (*GetWebACLOutput, error) { req, out := c.GetWebACLRequest(input) err := req.Send() @@ -1451,7 +1856,23 @@ func (c *WAF) GetXssMatchSetRequest(input *GetXssMatchSetInput) (req *request.Re return } +// GetXssMatchSet API operation for AWS WAF. +// // Returns the XssMatchSet that is specified by XssMatchSetId. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS WAF's +// API operation, GetXssMatchSet for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// WAFInternalErrorException +// WAFInvalidAccountException +// WAFNonexistentItemException func (c *WAF) GetXssMatchSet(input *GetXssMatchSetInput) (*GetXssMatchSetOutput, error) { req, out := c.GetXssMatchSetRequest(input) err := req.Send() @@ -1499,7 +1920,22 @@ func (c *WAF) ListByteMatchSetsRequest(input *ListByteMatchSetsInput) (req *requ return } +// ListByteMatchSets API operation for AWS WAF. +// // Returns an array of ByteMatchSetSummary objects. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS WAF's +// API operation, ListByteMatchSets for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// WAFInternalErrorException +// WAFInvalidAccountException func (c *WAF) ListByteMatchSets(input *ListByteMatchSetsInput) (*ListByteMatchSetsOutput, error) { req, out := c.ListByteMatchSetsRequest(input) err := req.Send() @@ -1547,7 +1983,22 @@ func (c *WAF) ListIPSetsRequest(input *ListIPSetsInput) (req *request.Request, o return } +// ListIPSets API operation for AWS WAF. +// // Returns an array of IPSetSummary objects in the response. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS WAF's +// API operation, ListIPSets for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// WAFInternalErrorException +// WAFInvalidAccountException func (c *WAF) ListIPSets(input *ListIPSetsInput) (*ListIPSetsOutput, error) { req, out := c.ListIPSetsRequest(input) err := req.Send() @@ -1595,7 +2046,22 @@ func (c *WAF) ListRulesRequest(input *ListRulesInput) (req *request.Request, out return } +// ListRules API operation for AWS WAF. +// // Returns an array of RuleSummary objects. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS WAF's +// API operation, ListRules for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// WAFInternalErrorException +// WAFInvalidAccountException func (c *WAF) ListRules(input *ListRulesInput) (*ListRulesOutput, error) { req, out := c.ListRulesRequest(input) err := req.Send() @@ -1643,7 +2109,22 @@ func (c *WAF) ListSizeConstraintSetsRequest(input *ListSizeConstraintSetsInput) return } +// ListSizeConstraintSets API operation for AWS WAF. +// // Returns an array of SizeConstraintSetSummary objects. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS WAF's +// API operation, ListSizeConstraintSets for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// WAFInternalErrorException +// WAFInvalidAccountException func (c *WAF) ListSizeConstraintSets(input *ListSizeConstraintSetsInput) (*ListSizeConstraintSetsOutput, error) { req, out := c.ListSizeConstraintSetsRequest(input) err := req.Send() @@ -1691,7 +2172,22 @@ func (c *WAF) ListSqlInjectionMatchSetsRequest(input *ListSqlInjectionMatchSetsI return } +// ListSqlInjectionMatchSets API operation for AWS WAF. +// // Returns an array of SqlInjectionMatchSet objects. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS WAF's +// API operation, ListSqlInjectionMatchSets for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// WAFInternalErrorException +// WAFInvalidAccountException func (c *WAF) ListSqlInjectionMatchSets(input *ListSqlInjectionMatchSetsInput) (*ListSqlInjectionMatchSetsOutput, error) { req, out := c.ListSqlInjectionMatchSetsRequest(input) err := req.Send() @@ -1739,7 +2235,22 @@ func (c *WAF) ListWebACLsRequest(input *ListWebACLsInput) (req *request.Request, return } +// ListWebACLs API operation for AWS WAF. +// // Returns an array of WebACLSummary objects in the response. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS WAF's +// API operation, ListWebACLs for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// WAFInternalErrorException +// WAFInvalidAccountException func (c *WAF) ListWebACLs(input *ListWebACLsInput) (*ListWebACLsOutput, error) { req, out := c.ListWebACLsRequest(input) err := req.Send() @@ -1787,7 +2298,22 @@ func (c *WAF) ListXssMatchSetsRequest(input *ListXssMatchSetsInput) (req *reques return } +// ListXssMatchSets API operation for AWS WAF. +// // Returns an array of XssMatchSet objects. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS WAF's +// API operation, ListXssMatchSets for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// WAFInternalErrorException +// WAFInvalidAccountException func (c *WAF) ListXssMatchSets(input *ListXssMatchSetsInput) (*ListXssMatchSetsOutput, error) { req, out := c.ListXssMatchSetsRequest(input) err := req.Send() @@ -1835,6 +2361,8 @@ func (c *WAF) UpdateByteMatchSetRequest(input *UpdateByteMatchSetInput) (req *re return } +// UpdateByteMatchSet API operation for AWS WAF. +// // Inserts or deletes ByteMatchTuple objects (filters) in a ByteMatchSet. For // each ByteMatchTuple object, you specify the following values: // @@ -1872,6 +2400,25 @@ func (c *WAF) UpdateByteMatchSetRequest(input *UpdateByteMatchSetInput) (req *re // // For more information about how to use the AWS WAF API to allow or block // HTTP requests, see the AWS WAF Developer Guide (http://docs.aws.amazon.com/waf/latest/developerguide/). +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS WAF's +// API operation, UpdateByteMatchSet for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// WAFInternalErrorException +// WAFInvalidAccountException +// WAFInvalidOperationException +// WAFInvalidParameterException +// WAFNonexistentContainerException +// WAFNonexistentItemException +// WAFStaleDataException +// WAFLimitsExceededException func (c *WAF) UpdateByteMatchSet(input *UpdateByteMatchSetInput) (*UpdateByteMatchSetOutput, error) { req, out := c.UpdateByteMatchSetRequest(input) err := req.Send() @@ -1919,6 +2466,8 @@ func (c *WAF) UpdateIPSetRequest(input *UpdateIPSetInput) (req *request.Request, return } +// UpdateIPSet API operation for AWS WAF. +// // Inserts or deletes IPSetDescriptor objects in an IPSet. For each IPSetDescriptor // object, you specify the following values: // @@ -1968,6 +2517,26 @@ func (c *WAF) UpdateIPSetRequest(input *UpdateIPSetInput) (req *request.Request, // // For more information about how to use the AWS WAF API to allow or block // HTTP requests, see the AWS WAF Developer Guide (http://docs.aws.amazon.com/waf/latest/developerguide/). +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS WAF's +// API operation, UpdateIPSet for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// WAFStaleDataException +// WAFInternalErrorException +// WAFInvalidAccountException +// WAFInvalidOperationException +// WAFInvalidParameterException +// WAFNonexistentContainerException +// WAFNonexistentItemException +// WAFReferencedItemException +// WAFLimitsExceededException func (c *WAF) UpdateIPSet(input *UpdateIPSetInput) (*UpdateIPSetOutput, error) { req, out := c.UpdateIPSetRequest(input) err := req.Send() @@ -2015,6 +2584,8 @@ func (c *WAF) UpdateRuleRequest(input *UpdateRuleInput) (req *request.Request, o return } +// UpdateRule API operation for AWS WAF. +// // Inserts or deletes Predicate objects in a Rule. Each Predicate object identifies // a predicate, such as a ByteMatchSet or an IPSet, that specifies the web requests // that you want to allow, block, or count. If you add more than one predicate @@ -2048,6 +2619,26 @@ func (c *WAF) UpdateRuleRequest(input *UpdateRuleInput) (req *request.Request, o // // For more information about how to use the AWS WAF API to allow or block // HTTP requests, see the AWS WAF Developer Guide (http://docs.aws.amazon.com/waf/latest/developerguide/). +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS WAF's +// API operation, UpdateRule for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// WAFStaleDataException +// WAFInternalErrorException +// WAFInvalidAccountException +// WAFInvalidOperationException +// WAFInvalidParameterException +// WAFNonexistentContainerException +// WAFNonexistentItemException +// WAFReferencedItemException +// WAFLimitsExceededException func (c *WAF) UpdateRule(input *UpdateRuleInput) (*UpdateRuleOutput, error) { req, out := c.UpdateRuleRequest(input) err := req.Send() @@ -2095,6 +2686,8 @@ func (c *WAF) UpdateSizeConstraintSetRequest(input *UpdateSizeConstraintSetInput return } +// UpdateSizeConstraintSet API operation for AWS WAF. +// // Inserts or deletes SizeConstraint objects (filters) in a SizeConstraintSet. // For each SizeConstraint object, you specify the following values: // @@ -2134,6 +2727,26 @@ func (c *WAF) UpdateSizeConstraintSetRequest(input *UpdateSizeConstraintSetInput // // For more information about how to use the AWS WAF API to allow or block // HTTP requests, see the AWS WAF Developer Guide (http://docs.aws.amazon.com/waf/latest/developerguide/). +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS WAF's +// API operation, UpdateSizeConstraintSet for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// WAFStaleDataException +// WAFInternalErrorException +// WAFInvalidAccountException +// WAFInvalidOperationException +// WAFInvalidParameterException +// WAFNonexistentContainerException +// WAFNonexistentItemException +// WAFReferencedItemException +// WAFLimitsExceededException func (c *WAF) UpdateSizeConstraintSet(input *UpdateSizeConstraintSetInput) (*UpdateSizeConstraintSetOutput, error) { req, out := c.UpdateSizeConstraintSetRequest(input) err := req.Send() @@ -2181,6 +2794,8 @@ func (c *WAF) UpdateSqlInjectionMatchSetRequest(input *UpdateSqlInjectionMatchSe return } +// UpdateSqlInjectionMatchSet API operation for AWS WAF. +// // Inserts or deletes SqlInjectionMatchTuple objects (filters) in a SqlInjectionMatchSet. // For each SqlInjectionMatchTuple object, you specify the following values: // @@ -2213,6 +2828,25 @@ func (c *WAF) UpdateSqlInjectionMatchSetRequest(input *UpdateSqlInjectionMatchSe // // For more information about how to use the AWS WAF API to allow or block // HTTP requests, see the AWS WAF Developer Guide (http://docs.aws.amazon.com/waf/latest/developerguide/). +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS WAF's +// API operation, UpdateSqlInjectionMatchSet for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// WAFInternalErrorException +// WAFInvalidAccountException +// WAFInvalidOperationException +// WAFInvalidParameterException +// WAFNonexistentContainerException +// WAFNonexistentItemException +// WAFStaleDataException +// WAFLimitsExceededException func (c *WAF) UpdateSqlInjectionMatchSet(input *UpdateSqlInjectionMatchSetInput) (*UpdateSqlInjectionMatchSetOutput, error) { req, out := c.UpdateSqlInjectionMatchSetRequest(input) err := req.Send() @@ -2260,6 +2894,8 @@ func (c *WAF) UpdateWebACLRequest(input *UpdateWebACLInput) (req *request.Reques return } +// UpdateWebACL API operation for AWS WAF. +// // Inserts or deletes ActivatedRule objects in a WebACL. Each Rule identifies // web requests that you want to allow, block, or count. When you update a WebACL, // you specify the following values: @@ -2304,6 +2940,26 @@ func (c *WAF) UpdateWebACLRequest(input *UpdateWebACLInput) (req *request.Reques // // For more information about how to use the AWS WAF API to allow or block // HTTP requests, see the AWS WAF Developer Guide (http://docs.aws.amazon.com/waf/latest/developerguide/). +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS WAF's +// API operation, UpdateWebACL for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// WAFStaleDataException +// WAFInternalErrorException +// WAFInvalidAccountException +// WAFInvalidOperationException +// WAFInvalidParameterException +// WAFNonexistentContainerException +// WAFNonexistentItemException +// WAFReferencedItemException +// WAFLimitsExceededException func (c *WAF) UpdateWebACL(input *UpdateWebACLInput) (*UpdateWebACLOutput, error) { req, out := c.UpdateWebACLRequest(input) err := req.Send() @@ -2351,6 +3007,8 @@ func (c *WAF) UpdateXssMatchSetRequest(input *UpdateXssMatchSetInput) (req *requ return } +// UpdateXssMatchSet API operation for AWS WAF. +// // Inserts or deletes XssMatchTuple objects (filters) in an XssMatchSet. For // each XssMatchTuple object, you specify the following values: // @@ -2382,6 +3040,25 @@ func (c *WAF) UpdateXssMatchSetRequest(input *UpdateXssMatchSetInput) (req *requ // // For more information about how to use the AWS WAF API to allow or block // HTTP requests, see the AWS WAF Developer Guide (http://docs.aws.amazon.com/waf/latest/developerguide/). +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for AWS WAF's +// API operation, UpdateXssMatchSet for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// WAFInternalErrorException +// WAFInvalidAccountException +// WAFInvalidOperationException +// WAFInvalidParameterException +// WAFNonexistentContainerException +// WAFNonexistentItemException +// WAFStaleDataException +// WAFLimitsExceededException func (c *WAF) UpdateXssMatchSet(input *UpdateXssMatchSetInput) (*UpdateXssMatchSetOutput, error) { req, out := c.UpdateXssMatchSetRequest(input) err := req.Send() diff --git a/service/workspaces/api.go b/service/workspaces/api.go index 33597cf23e0..79b5e7662f0 100644 --- a/service/workspaces/api.go +++ b/service/workspaces/api.go @@ -52,7 +52,23 @@ func (c *WorkSpaces) CreateTagsRequest(input *CreateTagsInput) (req *request.Req return } +// CreateTags API operation for Amazon WorkSpaces. +// // Creates tags for a WorkSpace. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon WorkSpaces's +// API operation, CreateTags for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ResourceNotFoundException +// InvalidParameterValuesException +// ResourceLimitExceededException func (c *WorkSpaces) CreateTags(input *CreateTagsInput) (*CreateTagsOutput, error) { req, out := c.CreateTagsRequest(input) err := req.Send() @@ -100,9 +116,24 @@ func (c *WorkSpaces) CreateWorkspacesRequest(input *CreateWorkspacesInput) (req return } +// CreateWorkspaces API operation for Amazon WorkSpaces. +// // Creates one or more WorkSpaces. // // This operation is asynchronous and returns before the WorkSpaces are created. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon WorkSpaces's +// API operation, CreateWorkspaces for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ResourceLimitExceededException +// InvalidParameterValuesException func (c *WorkSpaces) CreateWorkspaces(input *CreateWorkspacesInput) (*CreateWorkspacesOutput, error) { req, out := c.CreateWorkspacesRequest(input) err := req.Send() @@ -150,7 +181,22 @@ func (c *WorkSpaces) DeleteTagsRequest(input *DeleteTagsInput) (req *request.Req return } +// DeleteTags API operation for Amazon WorkSpaces. +// // Deletes tags from a WorkSpace. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon WorkSpaces's +// API operation, DeleteTags for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ResourceNotFoundException +// InvalidParameterValuesException func (c *WorkSpaces) DeleteTags(input *DeleteTagsInput) (*DeleteTagsOutput, error) { req, out := c.DeleteTagsRequest(input) err := req.Send() @@ -198,7 +244,21 @@ func (c *WorkSpaces) DescribeTagsRequest(input *DescribeTagsInput) (req *request return } +// DescribeTags API operation for Amazon WorkSpaces. +// // Describes tags for a WorkSpace. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon WorkSpaces's +// API operation, DescribeTags for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// ResourceNotFoundException func (c *WorkSpaces) DescribeTags(input *DescribeTagsInput) (*DescribeTagsOutput, error) { req, out := c.DescribeTagsRequest(input) err := req.Send() @@ -252,6 +312,8 @@ func (c *WorkSpaces) DescribeWorkspaceBundlesRequest(input *DescribeWorkspaceBun return } +// DescribeWorkspaceBundles API operation for Amazon WorkSpaces. +// // Obtains information about the WorkSpace bundles that are available to your // account in the specified region. // @@ -262,6 +324,18 @@ func (c *WorkSpaces) DescribeWorkspaceBundlesRequest(input *DescribeWorkspaceBun // and response parameters. If more results are available, the NextToken response // member contains a token that you pass in the next call to this operation // to retrieve the next set of items. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon WorkSpaces's +// API operation, DescribeWorkspaceBundles for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidParameterValuesException func (c *WorkSpaces) DescribeWorkspaceBundles(input *DescribeWorkspaceBundlesInput) (*DescribeWorkspaceBundlesOutput, error) { req, out := c.DescribeWorkspaceBundlesRequest(input) err := req.Send() @@ -340,6 +414,8 @@ func (c *WorkSpaces) DescribeWorkspaceDirectoriesRequest(input *DescribeWorkspac return } +// DescribeWorkspaceDirectories API operation for Amazon WorkSpaces. +// // Retrieves information about the AWS Directory Service directories in the // region that are registered with Amazon WorkSpaces and are available to your // account. @@ -348,6 +424,18 @@ func (c *WorkSpaces) DescribeWorkspaceDirectoriesRequest(input *DescribeWorkspac // and response parameters. If more results are available, the NextToken response // member contains a token that you pass in the next call to this operation // to retrieve the next set of items. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon WorkSpaces's +// API operation, DescribeWorkspaceDirectories for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidParameterValuesException func (c *WorkSpaces) DescribeWorkspaceDirectories(input *DescribeWorkspaceDirectoriesInput) (*DescribeWorkspaceDirectoriesOutput, error) { req, out := c.DescribeWorkspaceDirectoriesRequest(input) err := req.Send() @@ -426,6 +514,8 @@ func (c *WorkSpaces) DescribeWorkspacesRequest(input *DescribeWorkspacesInput) ( return } +// DescribeWorkspaces API operation for Amazon WorkSpaces. +// // Obtains information about the specified WorkSpaces. // // Only one of the filter parameters, such as BundleId, DirectoryId, or WorkspaceIds, @@ -435,6 +525,19 @@ func (c *WorkSpaces) DescribeWorkspacesRequest(input *DescribeWorkspacesInput) ( // and response parameters. If more results are available, the NextToken response // member contains a token that you pass in the next call to this operation // to retrieve the next set of items. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon WorkSpaces's +// API operation, DescribeWorkspaces for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidParameterValuesException +// ResourceUnavailableException func (c *WorkSpaces) DescribeWorkspaces(input *DescribeWorkspacesInput) (*DescribeWorkspacesOutput, error) { req, out := c.DescribeWorkspacesRequest(input) err := req.Send() @@ -507,7 +610,21 @@ func (c *WorkSpaces) DescribeWorkspacesConnectionStatusRequest(input *DescribeWo return } +// DescribeWorkspacesConnectionStatus API operation for Amazon WorkSpaces. +// // Describes the connection status of a specified WorkSpace. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon WorkSpaces's +// API operation, DescribeWorkspacesConnectionStatus for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidParameterValuesException func (c *WorkSpaces) DescribeWorkspacesConnectionStatus(input *DescribeWorkspacesConnectionStatusInput) (*DescribeWorkspacesConnectionStatusOutput, error) { req, out := c.DescribeWorkspacesConnectionStatusRequest(input) err := req.Send() @@ -555,8 +672,28 @@ func (c *WorkSpaces) ModifyWorkspacePropertiesRequest(input *ModifyWorkspaceProp return } +// ModifyWorkspaceProperties API operation for Amazon WorkSpaces. +// // Modifies the WorkSpace properties, including the RunningMode and AutoStop // time. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon WorkSpaces's +// API operation, ModifyWorkspaceProperties for more information, and other errors +// that the API operation could return. +// +// Some of the errors that can be returned by the service: +// +// InvalidParameterValuesException +// InvalidResourceStateException +// OperationInProgressException +// UnsupportedWorkspaceConfigurationException +// ResourceNotFoundException +// AccessDeniedException +// ResourceUnavailableException func (c *WorkSpaces) ModifyWorkspaceProperties(input *ModifyWorkspacePropertiesInput) (*ModifyWorkspacePropertiesOutput, error) { req, out := c.ModifyWorkspacePropertiesRequest(input) err := req.Send() @@ -604,12 +741,22 @@ func (c *WorkSpaces) RebootWorkspacesRequest(input *RebootWorkspacesInput) (req return } +// RebootWorkspaces API operation for Amazon WorkSpaces. +// // Reboots the specified WorkSpaces. // // To be able to reboot a WorkSpace, the WorkSpace must have a State of AVAILABLE, // IMPAIRED, or INOPERABLE. // // This operation is asynchronous and returns before the WorkSpaces have rebooted. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon WorkSpaces's +// API operation, RebootWorkspaces for more information, and other errors +// that the API operation could return. func (c *WorkSpaces) RebootWorkspaces(input *RebootWorkspacesInput) (*RebootWorkspacesOutput, error) { req, out := c.RebootWorkspacesRequest(input) err := req.Send() @@ -657,6 +804,8 @@ func (c *WorkSpaces) RebuildWorkspacesRequest(input *RebuildWorkspacesInput) (re return } +// RebuildWorkspaces API operation for Amazon WorkSpaces. +// // Rebuilds the specified WorkSpaces. // // Rebuilding a WorkSpace is a potentially destructive action that can result @@ -676,6 +825,14 @@ func (c *WorkSpaces) RebuildWorkspacesRequest(input *RebuildWorkspacesInput) (re // // This operation is asynchronous and returns before the WorkSpaces have been // completely rebuilt. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon WorkSpaces's +// API operation, RebuildWorkspaces for more information, and other errors +// that the API operation could return. func (c *WorkSpaces) RebuildWorkspaces(input *RebuildWorkspacesInput) (*RebuildWorkspacesOutput, error) { req, out := c.RebuildWorkspacesRequest(input) err := req.Send() @@ -723,8 +880,18 @@ func (c *WorkSpaces) StartWorkspacesRequest(input *StartWorkspacesInput) (req *r return } +// StartWorkspaces API operation for Amazon WorkSpaces. +// // Starts the specified WorkSpaces. The API only works with WorkSpaces that // have RunningMode configured as AutoStop and the State set to “STOPPED.” +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon WorkSpaces's +// API operation, StartWorkspaces for more information, and other errors +// that the API operation could return. func (c *WorkSpaces) StartWorkspaces(input *StartWorkspacesInput) (*StartWorkspacesOutput, error) { req, out := c.StartWorkspacesRequest(input) err := req.Send() @@ -772,9 +939,19 @@ func (c *WorkSpaces) StopWorkspacesRequest(input *StopWorkspacesInput) (req *req return } +// StopWorkspaces API operation for Amazon WorkSpaces. +// // Stops the specified WorkSpaces. The API only works with WorkSpaces that have // RunningMode configured as AutoStop and the State set to AVAILABLE, IMPAIRED, // UNHEALTHY, or ERROR. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon WorkSpaces's +// API operation, StopWorkspaces for more information, and other errors +// that the API operation could return. func (c *WorkSpaces) StopWorkspaces(input *StopWorkspacesInput) (*StopWorkspacesOutput, error) { req, out := c.StopWorkspacesRequest(input) err := req.Send() @@ -822,6 +999,8 @@ func (c *WorkSpaces) TerminateWorkspacesRequest(input *TerminateWorkspacesInput) return } +// TerminateWorkspaces API operation for Amazon WorkSpaces. +// // Terminates the specified WorkSpaces. // // Terminating a WorkSpace is a permanent action and cannot be undone. The @@ -832,6 +1011,14 @@ func (c *WorkSpaces) TerminateWorkspacesRequest(input *TerminateWorkspacesInput) // // This operation is asynchronous and returns before the WorkSpaces have been // completely terminated. +// +// Multiple errors could be returned by API operations. Use runtime assertions +// to the awserr.Error interface type to get more detailed information about +// the error. The awserr.Error.Code() method returns the specific error that occurred. +// +// See the AWS API reference guide for Amazon WorkSpaces's +// API operation, TerminateWorkspaces for more information, and other errors +// that the API operation could return. func (c *WorkSpaces) TerminateWorkspaces(input *TerminateWorkspacesInput) (*TerminateWorkspacesOutput, error) { req, out := c.TerminateWorkspacesRequest(input) err := req.Send()