diff --git a/private/model/api/api.go b/private/model/api/api.go index 485da052ac4..56992b687b0 100644 --- a/private/model/api/api.go +++ b/private/model/api/api.go @@ -161,10 +161,16 @@ func (a *API) ShapeNames() []string { } // ShapeList returns a slice of shape pointers used by the API. +// +// Will exclude error shapes from the list of shapes returned. func (a *API) ShapeList() []*Shape { - list := make([]*Shape, len(a.Shapes)) - for i, n := range a.ShapeNames() { - list[i] = a.Shapes[n] + list := make([]*Shape, 0, len(a.Shapes)) + for _, n := range a.ShapeNames() { + // Ignore error shapes in list + if a.Shapes[n].IsError { + continue + } + list = append(list, a.Shapes[n]) } return list } diff --git a/private/model/api/docstring.go b/private/model/api/docstring.go index 859aaa4f06d..d8f2f69c547 100644 --- a/private/model/api/docstring.go +++ b/private/model/api/docstring.go @@ -48,7 +48,7 @@ func (d *apiDocumentation) setup() { } for op, doc := range d.Operations { - d.API.Operations[op].Documentation = docstring(doc) + d.API.Operations[op].Documentation = strings.TrimSpace(docstring(doc)) } for shape, info := range d.Shapes { diff --git a/private/model/api/operation.go b/private/model/api/operation.go index 408f4334ae0..e82c3770e17 100644 --- a/private/model/api/operation.go +++ b/private/model/api/operation.go @@ -16,8 +16,9 @@ type Operation struct { Name string Documentation string HTTP HTTPInfo - InputRef ShapeRef `json:"input"` - OutputRef ShapeRef `json:"output"` + InputRef ShapeRef `json:"input"` + OutputRef ShapeRef `json:"output"` + ErrorRefs []ShapeRef `json:"errors"` Paginator *Paginator Deprecated bool `json:"deprecated"` AuthType string `json:"authtype"` @@ -49,6 +50,8 @@ const op{{ .ExportedName }} = "{{ .Name }}" // value can be used to capture response data after the request's "Send" method // is called. // +// See {{ .ExportedName }} for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -97,7 +100,30 @@ func (c *{{ .API.StructName }}) {{ .ExportedName }}Request(` + return } -{{ .Documentation }}func (c *{{ .API.StructName }}) {{ .ExportedName }}(` + +// {{ .ExportedName }} API operation for {{ .API.Metadata.ServiceFullName }}. +{{ if .Documentation -}} +// +{{ .Documentation }} +{{ end -}} +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for {{ .API.Metadata.ServiceFullName }}'s +// API operation {{ .ExportedName }} for usage and error information. +{{ if .ErrorRefs -}} +// +// Returned Error Codes: +{{ range $_, $err := .ErrorRefs -}} + {{ $errDoc := $err.IndentedDocstring -}} +// * {{ $err.Shape.ErrorName }} +{{ if $errDoc -}} +{{ $errDoc }}{{ end }} +// +{{ end -}} +{{ end -}} +func (c *{{ .API.StructName }}) {{ .ExportedName }}(` + `input {{ .InputRef.GoType }}) ({{ .OutputRef.GoType }}, error) { req, out := c.{{ .ExportedName }}Request(input) err := req.Send() diff --git a/private/model/api/passes.go b/private/model/api/passes.go index 3492d58d19d..4f4f99a8af3 100644 --- a/private/model/api/passes.go +++ b/private/model/api/passes.go @@ -52,6 +52,12 @@ func (a *API) resolveReferences() { resolver.resolveReference(&o.InputRef) resolver.resolveReference(&o.OutputRef) + + // Resolve references for errors also + for i := range o.ErrorRefs { + resolver.resolveReference(&o.ErrorRefs[i]) + o.ErrorRefs[i].Shape.IsError = true + } } } diff --git a/private/model/api/shape.go b/private/model/api/shape.go index e320840b3c1..2c8c5256779 100644 --- a/private/model/api/shape.go +++ b/private/model/api/shape.go @@ -28,6 +28,12 @@ type ShapeRef struct { Deprecated bool `json:"deprecated"` } +// ErrorInfo represents the error block of a shape's structure +type ErrorInfo struct { + Code string + HTTPStatusCode int +} + // A XMLInfo defines URL and prefix for Shapes when rendered as XML type XMLInfo struct { Prefix string @@ -67,6 +73,24 @@ type Shape struct { Deprecated bool `json:"deprecated"` Validations ShapeValidations + + // Error information that is set if the shape is an error shape. + IsError bool + ErrorInfo ErrorInfo `json:"error"` +} + +// ErrorName will return the shape's name or error code if available based +// on the API's protocol. +func (s *Shape) ErrorName() string { + name := s.ShapeName + switch s.API.Metadata.Protocol { + case "query", "ec2query", "rest-xml": + if len(s.ErrorInfo.Code) > 0 { + name = s.ErrorInfo.Code + } + } + + return name } // GoTags returns the struct tags for a shape. @@ -347,6 +371,12 @@ func (s *Shape) Docstring() string { return strings.Trim(s.Documentation, "\n ") } +// IndentedDocstring is the indented form of the doc string. +func (ref *ShapeRef) IndentedDocstring() string { + doc := ref.Docstring() + return strings.Replace(doc, "// ", "// ", -1) +} + var goCodeStringerTmpl = template.Must(template.New("goCodeStringerTmpl").Parse(` // String returns the string representation func (s {{ .ShapeName }}) String() string { diff --git a/private/protocol/ec2query/build_test.go b/private/protocol/ec2query/build_test.go index 7dd00a9307a..3ad2131b79a 100644 --- a/private/protocol/ec2query/build_test.go +++ b/private/protocol/ec2query/build_test.go @@ -104,6 +104,8 @@ const opInputService1TestCaseOperation1 = "OperationName" // value can be used to capture response data after the request's "Send" method // is called. // +// See InputService1TestCaseOperation1 for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -139,6 +141,14 @@ func (c *InputService1ProtocolTest) InputService1TestCaseOperation1Request(input return } +// InputService1TestCaseOperation1 API operation for . +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for 's +// API operation InputService1TestCaseOperation1 for usage and error information. func (c *InputService1ProtocolTest) InputService1TestCaseOperation1(input *InputService1TestShapeInputService1TestCaseOperation1Input) (*InputService1TestShapeInputService1TestCaseOperation1Output, error) { req, out := c.InputService1TestCaseOperation1Request(input) err := req.Send() @@ -218,6 +228,8 @@ const opInputService2TestCaseOperation1 = "OperationName" // value can be used to capture response data after the request's "Send" method // is called. // +// See InputService2TestCaseOperation1 for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -253,6 +265,14 @@ func (c *InputService2ProtocolTest) InputService2TestCaseOperation1Request(input return } +// InputService2TestCaseOperation1 API operation for . +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for 's +// API operation InputService2TestCaseOperation1 for usage and error information. func (c *InputService2ProtocolTest) InputService2TestCaseOperation1(input *InputService2TestShapeInputService2TestCaseOperation1Input) (*InputService2TestShapeInputService2TestCaseOperation1Output, error) { req, out := c.InputService2TestCaseOperation1Request(input) err := req.Send() @@ -334,6 +354,8 @@ const opInputService3TestCaseOperation1 = "OperationName" // value can be used to capture response data after the request's "Send" method // is called. // +// See InputService3TestCaseOperation1 for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -369,6 +391,14 @@ func (c *InputService3ProtocolTest) InputService3TestCaseOperation1Request(input return } +// InputService3TestCaseOperation1 API operation for . +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for 's +// API operation InputService3TestCaseOperation1 for usage and error information. func (c *InputService3ProtocolTest) InputService3TestCaseOperation1(input *InputService3TestShapeInputService3TestCaseOperation1Input) (*InputService3TestShapeInputService3TestCaseOperation1Output, error) { req, out := c.InputService3TestCaseOperation1Request(input) err := req.Send() @@ -452,6 +482,8 @@ const opInputService4TestCaseOperation1 = "OperationName" // value can be used to capture response data after the request's "Send" method // is called. // +// See InputService4TestCaseOperation1 for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -487,6 +519,14 @@ func (c *InputService4ProtocolTest) InputService4TestCaseOperation1Request(input return } +// InputService4TestCaseOperation1 API operation for . +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for 's +// API operation InputService4TestCaseOperation1 for usage and error information. func (c *InputService4ProtocolTest) InputService4TestCaseOperation1(input *InputService4TestShapeInputService4TestCaseOperation1Input) (*InputService4TestShapeInputService4TestCaseOperation1Output, error) { req, out := c.InputService4TestCaseOperation1Request(input) err := req.Send() @@ -564,6 +604,8 @@ const opInputService5TestCaseOperation1 = "OperationName" // value can be used to capture response data after the request's "Send" method // is called. // +// See InputService5TestCaseOperation1 for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -599,6 +641,14 @@ func (c *InputService5ProtocolTest) InputService5TestCaseOperation1Request(input return } +// InputService5TestCaseOperation1 API operation for . +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for 's +// API operation InputService5TestCaseOperation1 for usage and error information. func (c *InputService5ProtocolTest) InputService5TestCaseOperation1(input *InputService5TestShapeInputService5TestCaseOperation1Input) (*InputService5TestShapeInputService5TestCaseOperation1Output, error) { req, out := c.InputService5TestCaseOperation1Request(input) err := req.Send() @@ -676,6 +726,8 @@ const opInputService6TestCaseOperation1 = "OperationName" // value can be used to capture response data after the request's "Send" method // is called. // +// See InputService6TestCaseOperation1 for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -711,6 +763,14 @@ func (c *InputService6ProtocolTest) InputService6TestCaseOperation1Request(input return } +// InputService6TestCaseOperation1 API operation for . +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for 's +// API operation InputService6TestCaseOperation1 for usage and error information. func (c *InputService6ProtocolTest) InputService6TestCaseOperation1(input *InputService6TestShapeInputService6TestCaseOperation1Input) (*InputService6TestShapeInputService6TestCaseOperation1Output, error) { req, out := c.InputService6TestCaseOperation1Request(input) err := req.Send() @@ -788,6 +848,8 @@ const opInputService7TestCaseOperation1 = "OperationName" // value can be used to capture response data after the request's "Send" method // is called. // +// See InputService7TestCaseOperation1 for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -823,6 +885,14 @@ func (c *InputService7ProtocolTest) InputService7TestCaseOperation1Request(input return } +// InputService7TestCaseOperation1 API operation for . +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for 's +// API operation InputService7TestCaseOperation1 for usage and error information. func (c *InputService7ProtocolTest) InputService7TestCaseOperation1(input *InputService7TestShapeInputService7TestCaseOperation1Input) (*InputService7TestShapeInputService7TestCaseOperation1Output, error) { req, out := c.InputService7TestCaseOperation1Request(input) err := req.Send() @@ -901,6 +971,8 @@ const opInputService8TestCaseOperation1 = "OperationName" // value can be used to capture response data after the request's "Send" method // is called. // +// See InputService8TestCaseOperation1 for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -936,6 +1008,14 @@ func (c *InputService8ProtocolTest) InputService8TestCaseOperation1Request(input return } +// InputService8TestCaseOperation1 API operation for . +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for 's +// API operation InputService8TestCaseOperation1 for usage and error information. func (c *InputService8ProtocolTest) InputService8TestCaseOperation1(input *InputService8TestShapeInputService8TestCaseOperation1Input) (*InputService8TestShapeInputService8TestCaseOperation1Output, error) { req, out := c.InputService8TestCaseOperation1Request(input) err := req.Send() @@ -1013,6 +1093,8 @@ const opInputService9TestCaseOperation1 = "OperationName" // value can be used to capture response data after the request's "Send" method // is called. // +// See InputService9TestCaseOperation1 for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1049,6 +1131,14 @@ func (c *InputService9ProtocolTest) InputService9TestCaseOperation1Request(input return } +// InputService9TestCaseOperation1 API operation for . +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for 's +// API operation InputService9TestCaseOperation1 for usage and error information. func (c *InputService9ProtocolTest) InputService9TestCaseOperation1(input *InputService9TestShapeInputShape) (*InputService9TestShapeInputService9TestCaseOperation1Output, error) { req, out := c.InputService9TestCaseOperation1Request(input) err := req.Send() @@ -1062,6 +1152,8 @@ const opInputService9TestCaseOperation2 = "OperationName" // value can be used to capture response data after the request's "Send" method // is called. // +// See InputService9TestCaseOperation2 for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1098,6 +1190,14 @@ func (c *InputService9ProtocolTest) InputService9TestCaseOperation2Request(input return } +// InputService9TestCaseOperation2 API operation for . +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for 's +// API operation InputService9TestCaseOperation2 for usage and error information. 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..852ce1e188c 100644 --- a/private/protocol/ec2query/unmarshal_test.go +++ b/private/protocol/ec2query/unmarshal_test.go @@ -104,6 +104,8 @@ const opOutputService1TestCaseOperation1 = "OperationName" // value can be used to capture response data after the request's "Send" method // is called. // +// See OutputService1TestCaseOperation1 for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -137,6 +139,14 @@ func (c *OutputService1ProtocolTest) OutputService1TestCaseOperation1Request(inp return } +// OutputService1TestCaseOperation1 API operation for . +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for 's +// API operation OutputService1TestCaseOperation1 for usage and error information. func (c *OutputService1ProtocolTest) OutputService1TestCaseOperation1(input *OutputService1TestShapeOutputService1TestCaseOperation1Input) (*OutputService1TestShapeOutputService1TestCaseOperation1Output, error) { req, out := c.OutputService1TestCaseOperation1Request(input) err := req.Send() @@ -228,6 +238,8 @@ const opOutputService2TestCaseOperation1 = "OperationName" // value can be used to capture response data after the request's "Send" method // is called. // +// See OutputService2TestCaseOperation1 for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -261,6 +273,14 @@ func (c *OutputService2ProtocolTest) OutputService2TestCaseOperation1Request(inp return } +// OutputService2TestCaseOperation1 API operation for . +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for 's +// API operation OutputService2TestCaseOperation1 for usage and error information. func (c *OutputService2ProtocolTest) OutputService2TestCaseOperation1(input *OutputService2TestShapeOutputService2TestCaseOperation1Input) (*OutputService2TestShapeOutputService2TestCaseOperation1Output, error) { req, out := c.OutputService2TestCaseOperation1Request(input) err := req.Send() @@ -339,6 +359,8 @@ const opOutputService3TestCaseOperation1 = "OperationName" // value can be used to capture response data after the request's "Send" method // is called. // +// See OutputService3TestCaseOperation1 for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -372,6 +394,14 @@ func (c *OutputService3ProtocolTest) OutputService3TestCaseOperation1Request(inp return } +// OutputService3TestCaseOperation1 API operation for . +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for 's +// API operation OutputService3TestCaseOperation1 for usage and error information. func (c *OutputService3ProtocolTest) OutputService3TestCaseOperation1(input *OutputService3TestShapeOutputService3TestCaseOperation1Input) (*OutputService3TestShapeOutputService3TestCaseOperation1Output, error) { req, out := c.OutputService3TestCaseOperation1Request(input) err := req.Send() @@ -449,6 +479,8 @@ const opOutputService4TestCaseOperation1 = "OperationName" // value can be used to capture response data after the request's "Send" method // is called. // +// See OutputService4TestCaseOperation1 for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -482,6 +514,14 @@ func (c *OutputService4ProtocolTest) OutputService4TestCaseOperation1Request(inp return } +// OutputService4TestCaseOperation1 API operation for . +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for 's +// API operation OutputService4TestCaseOperation1 for usage and error information. func (c *OutputService4ProtocolTest) OutputService4TestCaseOperation1(input *OutputService4TestShapeOutputService4TestCaseOperation1Input) (*OutputService4TestShapeOutputService4TestCaseOperation1Output, error) { req, out := c.OutputService4TestCaseOperation1Request(input) err := req.Send() @@ -559,6 +599,8 @@ const opOutputService5TestCaseOperation1 = "OperationName" // value can be used to capture response data after the request's "Send" method // is called. // +// See OutputService5TestCaseOperation1 for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -592,6 +634,14 @@ func (c *OutputService5ProtocolTest) OutputService5TestCaseOperation1Request(inp return } +// OutputService5TestCaseOperation1 API operation for . +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for 's +// API operation OutputService5TestCaseOperation1 for usage and error information. func (c *OutputService5ProtocolTest) OutputService5TestCaseOperation1(input *OutputService5TestShapeOutputService5TestCaseOperation1Input) (*OutputService5TestShapeOutputService5TestCaseOperation1Output, error) { req, out := c.OutputService5TestCaseOperation1Request(input) err := req.Send() @@ -669,6 +719,8 @@ const opOutputService6TestCaseOperation1 = "OperationName" // value can be used to capture response data after the request's "Send" method // is called. // +// See OutputService6TestCaseOperation1 for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -702,6 +754,14 @@ func (c *OutputService6ProtocolTest) OutputService6TestCaseOperation1Request(inp return } +// OutputService6TestCaseOperation1 API operation for . +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for 's +// API operation OutputService6TestCaseOperation1 for usage and error information. func (c *OutputService6ProtocolTest) OutputService6TestCaseOperation1(input *OutputService6TestShapeOutputService6TestCaseOperation1Input) (*OutputService6TestShapeOutputService6TestCaseOperation1Output, error) { req, out := c.OutputService6TestCaseOperation1Request(input) err := req.Send() @@ -785,6 +845,8 @@ const opOutputService7TestCaseOperation1 = "OperationName" // value can be used to capture response data after the request's "Send" method // is called. // +// See OutputService7TestCaseOperation1 for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -818,6 +880,14 @@ func (c *OutputService7ProtocolTest) OutputService7TestCaseOperation1Request(inp return } +// OutputService7TestCaseOperation1 API operation for . +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for 's +// API operation OutputService7TestCaseOperation1 for usage and error information. func (c *OutputService7ProtocolTest) OutputService7TestCaseOperation1(input *OutputService7TestShapeOutputService7TestCaseOperation1Input) (*OutputService7TestShapeOutputService7TestCaseOperation1Output, error) { req, out := c.OutputService7TestCaseOperation1Request(input) err := req.Send() @@ -895,6 +965,8 @@ const opOutputService8TestCaseOperation1 = "OperationName" // value can be used to capture response data after the request's "Send" method // is called. // +// See OutputService8TestCaseOperation1 for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -928,6 +1000,14 @@ func (c *OutputService8ProtocolTest) OutputService8TestCaseOperation1Request(inp return } +// OutputService8TestCaseOperation1 API operation for . +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for 's +// API operation OutputService8TestCaseOperation1 for usage and error information. func (c *OutputService8ProtocolTest) OutputService8TestCaseOperation1(input *OutputService8TestShapeOutputService8TestCaseOperation1Input) (*OutputService8TestShapeOutputService8TestCaseOperation1Output, error) { req, out := c.OutputService8TestCaseOperation1Request(input) err := req.Send() @@ -1005,6 +1085,8 @@ const opOutputService9TestCaseOperation1 = "OperationName" // value can be used to capture response data after the request's "Send" method // is called. // +// See OutputService9TestCaseOperation1 for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1038,6 +1120,14 @@ func (c *OutputService9ProtocolTest) OutputService9TestCaseOperation1Request(inp return } +// OutputService9TestCaseOperation1 API operation for . +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for 's +// API operation OutputService9TestCaseOperation1 for usage and error information. 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..6faf05ea254 100644 --- a/private/protocol/jsonrpc/build_test.go +++ b/private/protocol/jsonrpc/build_test.go @@ -106,6 +106,8 @@ const opInputService1TestCaseOperation1 = "OperationName" // value can be used to capture response data after the request's "Send" method // is called. // +// See InputService1TestCaseOperation1 for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -142,6 +144,14 @@ func (c *InputService1ProtocolTest) InputService1TestCaseOperation1Request(input return } +// InputService1TestCaseOperation1 API operation for . +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for 's +// API operation InputService1TestCaseOperation1 for usage and error information. func (c *InputService1ProtocolTest) InputService1TestCaseOperation1(input *InputService1TestShapeInputService1TestCaseOperation1Input) (*InputService1TestShapeInputService1TestCaseOperation1Output, error) { req, out := c.InputService1TestCaseOperation1Request(input) err := req.Send() @@ -221,6 +231,8 @@ const opInputService2TestCaseOperation1 = "OperationName" // value can be used to capture response data after the request's "Send" method // is called. // +// See InputService2TestCaseOperation1 for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -256,6 +268,14 @@ func (c *InputService2ProtocolTest) InputService2TestCaseOperation1Request(input return } +// InputService2TestCaseOperation1 API operation for . +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for 's +// API operation InputService2TestCaseOperation1 for usage and error information. func (c *InputService2ProtocolTest) InputService2TestCaseOperation1(input *InputService2TestShapeInputService2TestCaseOperation1Input) (*InputService2TestShapeInputService2TestCaseOperation1Output, error) { req, out := c.InputService2TestCaseOperation1Request(input) err := req.Send() @@ -335,6 +355,8 @@ const opInputService3TestCaseOperation1 = "OperationName" // value can be used to capture response data after the request's "Send" method // is called. // +// See InputService3TestCaseOperation1 for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -370,6 +392,14 @@ func (c *InputService3ProtocolTest) InputService3TestCaseOperation1Request(input return } +// InputService3TestCaseOperation1 API operation for . +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for 's +// API operation InputService3TestCaseOperation1 for usage and error information. func (c *InputService3ProtocolTest) InputService3TestCaseOperation1(input *InputService3TestShapeInputShape) (*InputService3TestShapeInputService3TestCaseOperation1Output, error) { req, out := c.InputService3TestCaseOperation1Request(input) err := req.Send() @@ -383,6 +413,8 @@ const opInputService3TestCaseOperation2 = "OperationName" // value can be used to capture response data after the request's "Send" method // is called. // +// See InputService3TestCaseOperation2 for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -418,6 +450,14 @@ func (c *InputService3ProtocolTest) InputService3TestCaseOperation2Request(input return } +// InputService3TestCaseOperation2 API operation for . +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for 's +// API operation InputService3TestCaseOperation2 for usage and error information. func (c *InputService3ProtocolTest) InputService3TestCaseOperation2(input *InputService3TestShapeInputShape) (*InputService3TestShapeInputService3TestCaseOperation2Output, error) { req, out := c.InputService3TestCaseOperation2Request(input) err := req.Send() @@ -504,6 +544,8 @@ const opInputService4TestCaseOperation1 = "OperationName" // value can be used to capture response data after the request's "Send" method // is called. // +// See InputService4TestCaseOperation1 for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -540,6 +582,14 @@ func (c *InputService4ProtocolTest) InputService4TestCaseOperation1Request(input return } +// InputService4TestCaseOperation1 API operation for . +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for 's +// API operation InputService4TestCaseOperation1 for usage and error information. func (c *InputService4ProtocolTest) InputService4TestCaseOperation1(input *InputService4TestShapeInputService4TestCaseOperation1Input) (*InputService4TestShapeInputService4TestCaseOperation1Output, error) { req, out := c.InputService4TestCaseOperation1Request(input) err := req.Send() @@ -619,6 +669,8 @@ const opInputService5TestCaseOperation1 = "OperationName" // value can be used to capture response data after the request's "Send" method // is called. // +// See InputService5TestCaseOperation1 for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -654,6 +706,14 @@ func (c *InputService5ProtocolTest) InputService5TestCaseOperation1Request(input return } +// InputService5TestCaseOperation1 API operation for . +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for 's +// API operation InputService5TestCaseOperation1 for usage and error information. func (c *InputService5ProtocolTest) InputService5TestCaseOperation1(input *InputService5TestShapeInputShape) (*InputService5TestShapeInputService5TestCaseOperation1Output, error) { req, out := c.InputService5TestCaseOperation1Request(input) err := req.Send() @@ -667,6 +727,8 @@ const opInputService5TestCaseOperation2 = "OperationName" // value can be used to capture response data after the request's "Send" method // is called. // +// See InputService5TestCaseOperation2 for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -702,6 +764,14 @@ func (c *InputService5ProtocolTest) InputService5TestCaseOperation2Request(input return } +// InputService5TestCaseOperation2 API operation for . +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for 's +// API operation InputService5TestCaseOperation2 for usage and error information. func (c *InputService5ProtocolTest) InputService5TestCaseOperation2(input *InputService5TestShapeInputShape) (*InputService5TestShapeInputService5TestCaseOperation2Output, error) { req, out := c.InputService5TestCaseOperation2Request(input) err := req.Send() @@ -715,6 +785,8 @@ const opInputService5TestCaseOperation3 = "OperationName" // value can be used to capture response data after the request's "Send" method // is called. // +// See InputService5TestCaseOperation3 for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -750,6 +822,14 @@ func (c *InputService5ProtocolTest) InputService5TestCaseOperation3Request(input return } +// InputService5TestCaseOperation3 API operation for . +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for 's +// API operation InputService5TestCaseOperation3 for usage and error information. func (c *InputService5ProtocolTest) InputService5TestCaseOperation3(input *InputService5TestShapeInputShape) (*InputService5TestShapeInputService5TestCaseOperation3Output, error) { req, out := c.InputService5TestCaseOperation3Request(input) err := req.Send() @@ -763,6 +843,8 @@ const opInputService5TestCaseOperation4 = "OperationName" // value can be used to capture response data after the request's "Send" method // is called. // +// See InputService5TestCaseOperation4 for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -798,6 +880,14 @@ func (c *InputService5ProtocolTest) InputService5TestCaseOperation4Request(input return } +// InputService5TestCaseOperation4 API operation for . +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for 's +// API operation InputService5TestCaseOperation4 for usage and error information. func (c *InputService5ProtocolTest) InputService5TestCaseOperation4(input *InputService5TestShapeInputShape) (*InputService5TestShapeInputService5TestCaseOperation4Output, error) { req, out := c.InputService5TestCaseOperation4Request(input) err := req.Send() @@ -811,6 +901,8 @@ const opInputService5TestCaseOperation5 = "OperationName" // value can be used to capture response data after the request's "Send" method // is called. // +// See InputService5TestCaseOperation5 for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -846,6 +938,14 @@ func (c *InputService5ProtocolTest) InputService5TestCaseOperation5Request(input return } +// InputService5TestCaseOperation5 API operation for . +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for 's +// API operation InputService5TestCaseOperation5 for usage and error information. func (c *InputService5ProtocolTest) InputService5TestCaseOperation5(input *InputService5TestShapeInputShape) (*InputService5TestShapeInputService5TestCaseOperation5Output, error) { req, out := c.InputService5TestCaseOperation5Request(input) err := req.Send() @@ -859,6 +959,8 @@ const opInputService5TestCaseOperation6 = "OperationName" // value can be used to capture response data after the request's "Send" method // is called. // +// See InputService5TestCaseOperation6 for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -894,6 +996,14 @@ func (c *InputService5ProtocolTest) InputService5TestCaseOperation6Request(input return } +// InputService5TestCaseOperation6 API operation for . +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for 's +// API operation InputService5TestCaseOperation6 for usage and error information. func (c *InputService5ProtocolTest) InputService5TestCaseOperation6(input *InputService5TestShapeInputShape) (*InputService5TestShapeInputService5TestCaseOperation6Output, error) { req, out := c.InputService5TestCaseOperation6Request(input) err := req.Send() @@ -1005,6 +1115,8 @@ const opInputService6TestCaseOperation1 = "OperationName" // value can be used to capture response data after the request's "Send" method // is called. // +// See InputService6TestCaseOperation1 for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1041,6 +1153,14 @@ func (c *InputService6ProtocolTest) InputService6TestCaseOperation1Request(input return } +// InputService6TestCaseOperation1 API operation for . +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for 's +// API operation InputService6TestCaseOperation1 for usage and error information. func (c *InputService6ProtocolTest) InputService6TestCaseOperation1(input *InputService6TestShapeInputService6TestCaseOperation1Input) (*InputService6TestShapeInputService6TestCaseOperation1Output, error) { req, out := c.InputService6TestCaseOperation1Request(input) err := req.Send() @@ -1120,6 +1240,8 @@ const opInputService7TestCaseOperation1 = "OperationName" // value can be used to capture response data after the request's "Send" method // is called. // +// See InputService7TestCaseOperation1 for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1156,6 +1278,14 @@ func (c *InputService7ProtocolTest) InputService7TestCaseOperation1Request(input return } +// InputService7TestCaseOperation1 API operation for . +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for 's +// API operation InputService7TestCaseOperation1 for usage and error information. func (c *InputService7ProtocolTest) InputService7TestCaseOperation1(input *InputService7TestShapeInputShape) (*InputService7TestShapeInputService7TestCaseOperation1Output, error) { req, out := c.InputService7TestCaseOperation1Request(input) err := req.Send() @@ -1169,6 +1299,8 @@ const opInputService7TestCaseOperation2 = "OperationName" // value can be used to capture response data after the request's "Send" method // is called. // +// See InputService7TestCaseOperation2 for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1205,6 +1337,14 @@ func (c *InputService7ProtocolTest) InputService7TestCaseOperation2Request(input return } +// InputService7TestCaseOperation2 API operation for . +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for 's +// API operation InputService7TestCaseOperation2 for usage and error information. 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..972478dfdca 100644 --- a/private/protocol/jsonrpc/unmarshal_test.go +++ b/private/protocol/jsonrpc/unmarshal_test.go @@ -106,6 +106,8 @@ const opOutputService1TestCaseOperation1 = "OperationName" // value can be used to capture response data after the request's "Send" method // is called. // +// See OutputService1TestCaseOperation1 for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -139,6 +141,14 @@ func (c *OutputService1ProtocolTest) OutputService1TestCaseOperation1Request(inp return } +// OutputService1TestCaseOperation1 API operation for . +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for 's +// API operation OutputService1TestCaseOperation1 for usage and error information. func (c *OutputService1ProtocolTest) OutputService1TestCaseOperation1(input *OutputService1TestShapeOutputService1TestCaseOperation1Input) (*OutputService1TestShapeOutputService1TestCaseOperation1Output, error) { req, out := c.OutputService1TestCaseOperation1Request(input) err := req.Send() @@ -232,6 +242,8 @@ const opOutputService2TestCaseOperation1 = "OperationName" // value can be used to capture response data after the request's "Send" method // is called. // +// See OutputService2TestCaseOperation1 for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -265,6 +277,14 @@ func (c *OutputService2ProtocolTest) OutputService2TestCaseOperation1Request(inp return } +// OutputService2TestCaseOperation1 API operation for . +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for 's +// API operation OutputService2TestCaseOperation1 for usage and error information. func (c *OutputService2ProtocolTest) OutputService2TestCaseOperation1(input *OutputService2TestShapeOutputService2TestCaseOperation1Input) (*OutputService2TestShapeOutputService2TestCaseOperation1Output, error) { req, out := c.OutputService2TestCaseOperation1Request(input) err := req.Send() @@ -354,6 +374,8 @@ const opOutputService3TestCaseOperation1 = "OperationName" // value can be used to capture response data after the request's "Send" method // is called. // +// See OutputService3TestCaseOperation1 for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -387,6 +409,14 @@ func (c *OutputService3ProtocolTest) OutputService3TestCaseOperation1Request(inp return } +// OutputService3TestCaseOperation1 API operation for . +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for 's +// API operation OutputService3TestCaseOperation1 for usage and error information. func (c *OutputService3ProtocolTest) OutputService3TestCaseOperation1(input *OutputService3TestShapeOutputService3TestCaseOperation1Input) (*OutputService3TestShapeOutputService3TestCaseOperation1Output, error) { req, out := c.OutputService3TestCaseOperation1Request(input) err := req.Send() @@ -474,6 +504,8 @@ const opOutputService4TestCaseOperation1 = "OperationName" // value can be used to capture response data after the request's "Send" method // is called. // +// See OutputService4TestCaseOperation1 for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -507,6 +539,14 @@ func (c *OutputService4ProtocolTest) OutputService4TestCaseOperation1Request(inp return } +// OutputService4TestCaseOperation1 API operation for . +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for 's +// API operation OutputService4TestCaseOperation1 for usage and error information. func (c *OutputService4ProtocolTest) OutputService4TestCaseOperation1(input *OutputService4TestShapeOutputService4TestCaseOperation1Input) (*OutputService4TestShapeOutputShape, error) { req, out := c.OutputService4TestCaseOperation1Request(input) err := req.Send() @@ -520,6 +560,8 @@ const opOutputService4TestCaseOperation2 = "OperationName" // value can be used to capture response data after the request's "Send" method // is called. // +// See OutputService4TestCaseOperation2 for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -553,6 +595,14 @@ func (c *OutputService4ProtocolTest) OutputService4TestCaseOperation2Request(inp return } +// OutputService4TestCaseOperation2 API operation for . +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for 's +// API operation OutputService4TestCaseOperation2 for usage and error information. func (c *OutputService4ProtocolTest) OutputService4TestCaseOperation2(input *OutputService4TestShapeOutputService4TestCaseOperation2Input) (*OutputService4TestShapeOutputShape, error) { req, out := c.OutputService4TestCaseOperation2Request(input) err := req.Send() @@ -644,6 +694,8 @@ const opOutputService5TestCaseOperation1 = "OperationName" // value can be used to capture response data after the request's "Send" method // is called. // +// See OutputService5TestCaseOperation1 for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -677,6 +729,14 @@ func (c *OutputService5ProtocolTest) OutputService5TestCaseOperation1Request(inp return } +// OutputService5TestCaseOperation1 API operation for . +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for 's +// API operation OutputService5TestCaseOperation1 for usage and error information. func (c *OutputService5ProtocolTest) OutputService5TestCaseOperation1(input *OutputService5TestShapeOutputService5TestCaseOperation1Input) (*OutputService5TestShapeOutputService5TestCaseOperation1Output, error) { req, out := c.OutputService5TestCaseOperation1Request(input) err := req.Send() @@ -756,6 +816,8 @@ const opOutputService6TestCaseOperation1 = "OperationName" // value can be used to capture response data after the request's "Send" method // is called. // +// See OutputService6TestCaseOperation1 for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -789,6 +851,14 @@ func (c *OutputService6ProtocolTest) OutputService6TestCaseOperation1Request(inp return } +// OutputService6TestCaseOperation1 API operation for . +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for 's +// API operation OutputService6TestCaseOperation1 for usage and error information. 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..a6ab112f083 100644 --- a/private/protocol/query/build_test.go +++ b/private/protocol/query/build_test.go @@ -104,6 +104,8 @@ const opInputService1TestCaseOperation1 = "OperationName" // value can be used to capture response data after the request's "Send" method // is called. // +// See InputService1TestCaseOperation1 for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -139,6 +141,14 @@ func (c *InputService1ProtocolTest) InputService1TestCaseOperation1Request(input return } +// InputService1TestCaseOperation1 API operation for . +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for 's +// API operation InputService1TestCaseOperation1 for usage and error information. func (c *InputService1ProtocolTest) InputService1TestCaseOperation1(input *InputService1TestShapeInputShape) (*InputService1TestShapeInputService1TestCaseOperation1Output, error) { req, out := c.InputService1TestCaseOperation1Request(input) err := req.Send() @@ -152,6 +162,8 @@ const opInputService1TestCaseOperation2 = "OperationName" // value can be used to capture response data after the request's "Send" method // is called. // +// See InputService1TestCaseOperation2 for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -187,6 +199,14 @@ func (c *InputService1ProtocolTest) InputService1TestCaseOperation2Request(input return } +// InputService1TestCaseOperation2 API operation for . +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for 's +// API operation InputService1TestCaseOperation2 for usage and error information. func (c *InputService1ProtocolTest) InputService1TestCaseOperation2(input *InputService1TestShapeInputShape) (*InputService1TestShapeInputService1TestCaseOperation2Output, error) { req, out := c.InputService1TestCaseOperation2Request(input) err := req.Send() @@ -200,6 +220,8 @@ const opInputService1TestCaseOperation3 = "OperationName" // value can be used to capture response data after the request's "Send" method // is called. // +// See InputService1TestCaseOperation3 for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -235,6 +257,14 @@ func (c *InputService1ProtocolTest) InputService1TestCaseOperation3Request(input return } +// InputService1TestCaseOperation3 API operation for . +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for 's +// API operation InputService1TestCaseOperation3 for usage and error information. func (c *InputService1ProtocolTest) InputService1TestCaseOperation3(input *InputService1TestShapeInputShape) (*InputService1TestShapeInputService1TestCaseOperation3Output, error) { req, out := c.InputService1TestCaseOperation3Request(input) err := req.Send() @@ -324,6 +354,8 @@ const opInputService2TestCaseOperation1 = "OperationName" // value can be used to capture response data after the request's "Send" method // is called. // +// See InputService2TestCaseOperation1 for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -359,6 +391,14 @@ func (c *InputService2ProtocolTest) InputService2TestCaseOperation1Request(input return } +// InputService2TestCaseOperation1 API operation for . +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for 's +// API operation InputService2TestCaseOperation1 for usage and error information. func (c *InputService2ProtocolTest) InputService2TestCaseOperation1(input *InputService2TestShapeInputService2TestCaseOperation1Input) (*InputService2TestShapeInputService2TestCaseOperation1Output, error) { req, out := c.InputService2TestCaseOperation1Request(input) err := req.Send() @@ -442,6 +482,8 @@ const opInputService3TestCaseOperation1 = "OperationName" // value can be used to capture response data after the request's "Send" method // is called. // +// See InputService3TestCaseOperation1 for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -477,6 +519,14 @@ func (c *InputService3ProtocolTest) InputService3TestCaseOperation1Request(input return } +// InputService3TestCaseOperation1 API operation for . +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for 's +// API operation InputService3TestCaseOperation1 for usage and error information. func (c *InputService3ProtocolTest) InputService3TestCaseOperation1(input *InputService3TestShapeInputShape) (*InputService3TestShapeInputService3TestCaseOperation1Output, error) { req, out := c.InputService3TestCaseOperation1Request(input) err := req.Send() @@ -490,6 +540,8 @@ const opInputService3TestCaseOperation2 = "OperationName" // value can be used to capture response data after the request's "Send" method // is called. // +// See InputService3TestCaseOperation2 for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -525,6 +577,14 @@ func (c *InputService3ProtocolTest) InputService3TestCaseOperation2Request(input return } +// InputService3TestCaseOperation2 API operation for . +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for 's +// API operation InputService3TestCaseOperation2 for usage and error information. func (c *InputService3ProtocolTest) InputService3TestCaseOperation2(input *InputService3TestShapeInputShape) (*InputService3TestShapeInputService3TestCaseOperation2Output, error) { req, out := c.InputService3TestCaseOperation2Request(input) err := req.Send() @@ -606,6 +666,8 @@ const opInputService4TestCaseOperation1 = "OperationName" // value can be used to capture response data after the request's "Send" method // is called. // +// See InputService4TestCaseOperation1 for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -641,6 +703,14 @@ func (c *InputService4ProtocolTest) InputService4TestCaseOperation1Request(input return } +// InputService4TestCaseOperation1 API operation for . +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for 's +// API operation InputService4TestCaseOperation1 for usage and error information. func (c *InputService4ProtocolTest) InputService4TestCaseOperation1(input *InputService4TestShapeInputShape) (*InputService4TestShapeInputService4TestCaseOperation1Output, error) { req, out := c.InputService4TestCaseOperation1Request(input) err := req.Send() @@ -654,6 +724,8 @@ const opInputService4TestCaseOperation2 = "OperationName" // value can be used to capture response data after the request's "Send" method // is called. // +// See InputService4TestCaseOperation2 for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -689,6 +761,14 @@ func (c *InputService4ProtocolTest) InputService4TestCaseOperation2Request(input return } +// InputService4TestCaseOperation2 API operation for . +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for 's +// API operation InputService4TestCaseOperation2 for usage and error information. func (c *InputService4ProtocolTest) InputService4TestCaseOperation2(input *InputService4TestShapeInputShape) (*InputService4TestShapeInputService4TestCaseOperation2Output, error) { req, out := c.InputService4TestCaseOperation2Request(input) err := req.Send() @@ -774,6 +854,8 @@ const opInputService5TestCaseOperation1 = "OperationName" // value can be used to capture response data after the request's "Send" method // is called. // +// See InputService5TestCaseOperation1 for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -809,6 +891,14 @@ func (c *InputService5ProtocolTest) InputService5TestCaseOperation1Request(input return } +// InputService5TestCaseOperation1 API operation for . +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for 's +// API operation InputService5TestCaseOperation1 for usage and error information. func (c *InputService5ProtocolTest) InputService5TestCaseOperation1(input *InputService5TestShapeInputService5TestCaseOperation1Input) (*InputService5TestShapeInputService5TestCaseOperation1Output, error) { req, out := c.InputService5TestCaseOperation1Request(input) err := req.Send() @@ -886,6 +976,8 @@ const opInputService6TestCaseOperation1 = "OperationName" // value can be used to capture response data after the request's "Send" method // is called. // +// See InputService6TestCaseOperation1 for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -921,6 +1013,14 @@ func (c *InputService6ProtocolTest) InputService6TestCaseOperation1Request(input return } +// InputService6TestCaseOperation1 API operation for . +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for 's +// API operation InputService6TestCaseOperation1 for usage and error information. func (c *InputService6ProtocolTest) InputService6TestCaseOperation1(input *InputService6TestShapeInputService6TestCaseOperation1Input) (*InputService6TestShapeInputService6TestCaseOperation1Output, error) { req, out := c.InputService6TestCaseOperation1Request(input) err := req.Send() @@ -998,6 +1098,8 @@ const opInputService7TestCaseOperation1 = "OperationName" // value can be used to capture response data after the request's "Send" method // is called. // +// See InputService7TestCaseOperation1 for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1033,6 +1135,14 @@ func (c *InputService7ProtocolTest) InputService7TestCaseOperation1Request(input return } +// InputService7TestCaseOperation1 API operation for . +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for 's +// API operation InputService7TestCaseOperation1 for usage and error information. func (c *InputService7ProtocolTest) InputService7TestCaseOperation1(input *InputService7TestShapeInputService7TestCaseOperation1Input) (*InputService7TestShapeInputService7TestCaseOperation1Output, error) { req, out := c.InputService7TestCaseOperation1Request(input) err := req.Send() @@ -1112,6 +1222,8 @@ const opInputService8TestCaseOperation1 = "OperationName" // value can be used to capture response data after the request's "Send" method // is called. // +// See InputService8TestCaseOperation1 for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1147,6 +1259,14 @@ func (c *InputService8ProtocolTest) InputService8TestCaseOperation1Request(input return } +// InputService8TestCaseOperation1 API operation for . +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for 's +// API operation InputService8TestCaseOperation1 for usage and error information. func (c *InputService8ProtocolTest) InputService8TestCaseOperation1(input *InputService8TestShapeInputService8TestCaseOperation1Input) (*InputService8TestShapeInputService8TestCaseOperation1Output, error) { req, out := c.InputService8TestCaseOperation1Request(input) err := req.Send() @@ -1224,6 +1344,8 @@ const opInputService9TestCaseOperation1 = "OperationName" // value can be used to capture response data after the request's "Send" method // is called. // +// See InputService9TestCaseOperation1 for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1259,6 +1381,14 @@ func (c *InputService9ProtocolTest) InputService9TestCaseOperation1Request(input return } +// InputService9TestCaseOperation1 API operation for . +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for 's +// API operation InputService9TestCaseOperation1 for usage and error information. func (c *InputService9ProtocolTest) InputService9TestCaseOperation1(input *InputService9TestShapeInputService9TestCaseOperation1Input) (*InputService9TestShapeInputService9TestCaseOperation1Output, error) { req, out := c.InputService9TestCaseOperation1Request(input) err := req.Send() @@ -1336,6 +1466,8 @@ const opInputService10TestCaseOperation1 = "OperationName" // value can be used to capture response data after the request's "Send" method // is called. // +// See InputService10TestCaseOperation1 for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1371,6 +1503,14 @@ func (c *InputService10ProtocolTest) InputService10TestCaseOperation1Request(inp return } +// InputService10TestCaseOperation1 API operation for . +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for 's +// API operation InputService10TestCaseOperation1 for usage and error information. func (c *InputService10ProtocolTest) InputService10TestCaseOperation1(input *InputService10TestShapeInputService10TestCaseOperation1Input) (*InputService10TestShapeInputService10TestCaseOperation1Output, error) { req, out := c.InputService10TestCaseOperation1Request(input) err := req.Send() @@ -1449,6 +1589,8 @@ const opInputService11TestCaseOperation1 = "OperationName" // value can be used to capture response data after the request's "Send" method // is called. // +// See InputService11TestCaseOperation1 for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1484,6 +1626,14 @@ func (c *InputService11ProtocolTest) InputService11TestCaseOperation1Request(inp return } +// InputService11TestCaseOperation1 API operation for . +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for 's +// API operation InputService11TestCaseOperation1 for usage and error information. func (c *InputService11ProtocolTest) InputService11TestCaseOperation1(input *InputService11TestShapeInputService11TestCaseOperation1Input) (*InputService11TestShapeInputService11TestCaseOperation1Output, error) { req, out := c.InputService11TestCaseOperation1Request(input) err := req.Send() @@ -1561,6 +1711,8 @@ const opInputService12TestCaseOperation1 = "OperationName" // value can be used to capture response data after the request's "Send" method // is called. // +// See InputService12TestCaseOperation1 for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1596,6 +1748,14 @@ func (c *InputService12ProtocolTest) InputService12TestCaseOperation1Request(inp return } +// InputService12TestCaseOperation1 API operation for . +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for 's +// API operation InputService12TestCaseOperation1 for usage and error information. func (c *InputService12ProtocolTest) InputService12TestCaseOperation1(input *InputService12TestShapeInputShape) (*InputService12TestShapeInputService12TestCaseOperation1Output, error) { req, out := c.InputService12TestCaseOperation1Request(input) err := req.Send() @@ -1609,6 +1769,8 @@ const opInputService12TestCaseOperation2 = "OperationName" // value can be used to capture response data after the request's "Send" method // is called. // +// See InputService12TestCaseOperation2 for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1644,6 +1806,14 @@ func (c *InputService12ProtocolTest) InputService12TestCaseOperation2Request(inp return } +// InputService12TestCaseOperation2 API operation for . +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for 's +// API operation InputService12TestCaseOperation2 for usage and error information. func (c *InputService12ProtocolTest) InputService12TestCaseOperation2(input *InputService12TestShapeInputShape) (*InputService12TestShapeInputService12TestCaseOperation2Output, error) { req, out := c.InputService12TestCaseOperation2Request(input) err := req.Send() @@ -1657,6 +1827,8 @@ const opInputService12TestCaseOperation3 = "OperationName" // value can be used to capture response data after the request's "Send" method // is called. // +// See InputService12TestCaseOperation3 for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1692,6 +1864,14 @@ func (c *InputService12ProtocolTest) InputService12TestCaseOperation3Request(inp return } +// InputService12TestCaseOperation3 API operation for . +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for 's +// API operation InputService12TestCaseOperation3 for usage and error information. func (c *InputService12ProtocolTest) InputService12TestCaseOperation3(input *InputService12TestShapeInputShape) (*InputService12TestShapeInputService12TestCaseOperation3Output, error) { req, out := c.InputService12TestCaseOperation3Request(input) err := req.Send() @@ -1705,6 +1885,8 @@ const opInputService12TestCaseOperation4 = "OperationName" // value can be used to capture response data after the request's "Send" method // is called. // +// See InputService12TestCaseOperation4 for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1740,6 +1922,14 @@ func (c *InputService12ProtocolTest) InputService12TestCaseOperation4Request(inp return } +// InputService12TestCaseOperation4 API operation for . +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for 's +// API operation InputService12TestCaseOperation4 for usage and error information. func (c *InputService12ProtocolTest) InputService12TestCaseOperation4(input *InputService12TestShapeInputShape) (*InputService12TestShapeInputService12TestCaseOperation4Output, error) { req, out := c.InputService12TestCaseOperation4Request(input) err := req.Send() @@ -1753,6 +1943,8 @@ const opInputService12TestCaseOperation5 = "OperationName" // value can be used to capture response data after the request's "Send" method // is called. // +// See InputService12TestCaseOperation5 for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1788,6 +1980,14 @@ func (c *InputService12ProtocolTest) InputService12TestCaseOperation5Request(inp return } +// InputService12TestCaseOperation5 API operation for . +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for 's +// API operation InputService12TestCaseOperation5 for usage and error information. func (c *InputService12ProtocolTest) InputService12TestCaseOperation5(input *InputService12TestShapeInputShape) (*InputService12TestShapeInputService12TestCaseOperation5Output, error) { req, out := c.InputService12TestCaseOperation5Request(input) err := req.Send() @@ -1801,6 +2001,8 @@ const opInputService12TestCaseOperation6 = "OperationName" // value can be used to capture response data after the request's "Send" method // is called. // +// See InputService12TestCaseOperation6 for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1836,6 +2038,14 @@ func (c *InputService12ProtocolTest) InputService12TestCaseOperation6Request(inp return } +// InputService12TestCaseOperation6 API operation for . +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for 's +// API operation InputService12TestCaseOperation6 for usage and error information. func (c *InputService12ProtocolTest) InputService12TestCaseOperation6(input *InputService12TestShapeInputShape) (*InputService12TestShapeInputService12TestCaseOperation6Output, error) { req, out := c.InputService12TestCaseOperation6Request(input) err := req.Send() @@ -1945,6 +2155,8 @@ const opInputService13TestCaseOperation1 = "OperationName" // value can be used to capture response data after the request's "Send" method // is called. // +// See InputService13TestCaseOperation1 for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1981,6 +2193,14 @@ func (c *InputService13ProtocolTest) InputService13TestCaseOperation1Request(inp return } +// InputService13TestCaseOperation1 API operation for . +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for 's +// API operation InputService13TestCaseOperation1 for usage and error information. func (c *InputService13ProtocolTest) InputService13TestCaseOperation1(input *InputService13TestShapeInputShape) (*InputService13TestShapeInputService13TestCaseOperation1Output, error) { req, out := c.InputService13TestCaseOperation1Request(input) err := req.Send() @@ -1994,6 +2214,8 @@ const opInputService13TestCaseOperation2 = "OperationName" // value can be used to capture response data after the request's "Send" method // is called. // +// See InputService13TestCaseOperation2 for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -2030,6 +2252,14 @@ func (c *InputService13ProtocolTest) InputService13TestCaseOperation2Request(inp return } +// InputService13TestCaseOperation2 API operation for . +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for 's +// API operation InputService13TestCaseOperation2 for usage and error information. 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..266a3637534 100644 --- a/private/protocol/query/unmarshal_test.go +++ b/private/protocol/query/unmarshal_test.go @@ -104,6 +104,8 @@ const opOutputService1TestCaseOperation1 = "OperationName" // value can be used to capture response data after the request's "Send" method // is called. // +// See OutputService1TestCaseOperation1 for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -137,6 +139,14 @@ func (c *OutputService1ProtocolTest) OutputService1TestCaseOperation1Request(inp return } +// OutputService1TestCaseOperation1 API operation for . +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for 's +// API operation OutputService1TestCaseOperation1 for usage and error information. func (c *OutputService1ProtocolTest) OutputService1TestCaseOperation1(input *OutputService1TestShapeOutputService1TestCaseOperation1Input) (*OutputService1TestShapeOutputService1TestCaseOperation1Output, error) { req, out := c.OutputService1TestCaseOperation1Request(input) err := req.Send() @@ -230,6 +240,8 @@ const opOutputService2TestCaseOperation1 = "OperationName" // value can be used to capture response data after the request's "Send" method // is called. // +// See OutputService2TestCaseOperation1 for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -263,6 +275,14 @@ func (c *OutputService2ProtocolTest) OutputService2TestCaseOperation1Request(inp return } +// OutputService2TestCaseOperation1 API operation for . +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for 's +// API operation OutputService2TestCaseOperation1 for usage and error information. func (c *OutputService2ProtocolTest) OutputService2TestCaseOperation1(input *OutputService2TestShapeOutputService2TestCaseOperation1Input) (*OutputService2TestShapeOutputService2TestCaseOperation1Output, error) { req, out := c.OutputService2TestCaseOperation1Request(input) err := req.Send() @@ -342,6 +362,8 @@ const opOutputService3TestCaseOperation1 = "OperationName" // value can be used to capture response data after the request's "Send" method // is called. // +// See OutputService3TestCaseOperation1 for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -375,6 +397,14 @@ func (c *OutputService3ProtocolTest) OutputService3TestCaseOperation1Request(inp return } +// OutputService3TestCaseOperation1 API operation for . +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for 's +// API operation OutputService3TestCaseOperation1 for usage and error information. func (c *OutputService3ProtocolTest) OutputService3TestCaseOperation1(input *OutputService3TestShapeOutputService3TestCaseOperation1Input) (*OutputService3TestShapeOutputService3TestCaseOperation1Output, error) { req, out := c.OutputService3TestCaseOperation1Request(input) err := req.Send() @@ -453,6 +483,8 @@ const opOutputService4TestCaseOperation1 = "OperationName" // value can be used to capture response data after the request's "Send" method // is called. // +// See OutputService4TestCaseOperation1 for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -486,6 +518,14 @@ func (c *OutputService4ProtocolTest) OutputService4TestCaseOperation1Request(inp return } +// OutputService4TestCaseOperation1 API operation for . +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for 's +// API operation OutputService4TestCaseOperation1 for usage and error information. func (c *OutputService4ProtocolTest) OutputService4TestCaseOperation1(input *OutputService4TestShapeOutputService4TestCaseOperation1Input) (*OutputService4TestShapeOutputService4TestCaseOperation1Output, error) { req, out := c.OutputService4TestCaseOperation1Request(input) err := req.Send() @@ -563,6 +603,8 @@ const opOutputService5TestCaseOperation1 = "OperationName" // value can be used to capture response data after the request's "Send" method // is called. // +// See OutputService5TestCaseOperation1 for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -596,6 +638,14 @@ func (c *OutputService5ProtocolTest) OutputService5TestCaseOperation1Request(inp return } +// OutputService5TestCaseOperation1 API operation for . +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for 's +// API operation OutputService5TestCaseOperation1 for usage and error information. func (c *OutputService5ProtocolTest) OutputService5TestCaseOperation1(input *OutputService5TestShapeOutputService5TestCaseOperation1Input) (*OutputService5TestShapeOutputService5TestCaseOperation1Output, error) { req, out := c.OutputService5TestCaseOperation1Request(input) err := req.Send() @@ -673,6 +723,8 @@ const opOutputService6TestCaseOperation1 = "OperationName" // value can be used to capture response data after the request's "Send" method // is called. // +// See OutputService6TestCaseOperation1 for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -706,6 +758,14 @@ func (c *OutputService6ProtocolTest) OutputService6TestCaseOperation1Request(inp return } +// OutputService6TestCaseOperation1 API operation for . +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for 's +// API operation OutputService6TestCaseOperation1 for usage and error information. func (c *OutputService6ProtocolTest) OutputService6TestCaseOperation1(input *OutputService6TestShapeOutputService6TestCaseOperation1Input) (*OutputService6TestShapeOutputService6TestCaseOperation1Output, error) { req, out := c.OutputService6TestCaseOperation1Request(input) err := req.Send() @@ -783,6 +843,8 @@ const opOutputService7TestCaseOperation1 = "OperationName" // value can be used to capture response data after the request's "Send" method // is called. // +// See OutputService7TestCaseOperation1 for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -816,6 +878,14 @@ func (c *OutputService7ProtocolTest) OutputService7TestCaseOperation1Request(inp return } +// OutputService7TestCaseOperation1 API operation for . +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for 's +// API operation OutputService7TestCaseOperation1 for usage and error information. func (c *OutputService7ProtocolTest) OutputService7TestCaseOperation1(input *OutputService7TestShapeOutputService7TestCaseOperation1Input) (*OutputService7TestShapeOutputService7TestCaseOperation1Output, error) { req, out := c.OutputService7TestCaseOperation1Request(input) err := req.Send() @@ -893,6 +963,8 @@ const opOutputService8TestCaseOperation1 = "OperationName" // value can be used to capture response data after the request's "Send" method // is called. // +// See OutputService8TestCaseOperation1 for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -926,6 +998,14 @@ func (c *OutputService8ProtocolTest) OutputService8TestCaseOperation1Request(inp return } +// OutputService8TestCaseOperation1 API operation for . +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for 's +// API operation OutputService8TestCaseOperation1 for usage and error information. func (c *OutputService8ProtocolTest) OutputService8TestCaseOperation1(input *OutputService8TestShapeOutputService8TestCaseOperation1Input) (*OutputService8TestShapeOutputService8TestCaseOperation1Output, error) { req, out := c.OutputService8TestCaseOperation1Request(input) err := req.Send() @@ -1013,6 +1093,8 @@ const opOutputService9TestCaseOperation1 = "OperationName" // value can be used to capture response data after the request's "Send" method // is called. // +// See OutputService9TestCaseOperation1 for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1046,6 +1128,14 @@ func (c *OutputService9ProtocolTest) OutputService9TestCaseOperation1Request(inp return } +// OutputService9TestCaseOperation1 API operation for . +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for 's +// API operation OutputService9TestCaseOperation1 for usage and error information. func (c *OutputService9ProtocolTest) OutputService9TestCaseOperation1(input *OutputService9TestShapeOutputService9TestCaseOperation1Input) (*OutputService9TestShapeOutputService9TestCaseOperation1Output, error) { req, out := c.OutputService9TestCaseOperation1Request(input) err := req.Send() @@ -1133,6 +1223,8 @@ const opOutputService10TestCaseOperation1 = "OperationName" // value can be used to capture response data after the request's "Send" method // is called. // +// See OutputService10TestCaseOperation1 for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1166,6 +1258,14 @@ func (c *OutputService10ProtocolTest) OutputService10TestCaseOperation1Request(i return } +// OutputService10TestCaseOperation1 API operation for . +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for 's +// API operation OutputService10TestCaseOperation1 for usage and error information. func (c *OutputService10ProtocolTest) OutputService10TestCaseOperation1(input *OutputService10TestShapeOutputService10TestCaseOperation1Input) (*OutputService10TestShapeOutputService10TestCaseOperation1Output, error) { req, out := c.OutputService10TestCaseOperation1Request(input) err := req.Send() @@ -1243,6 +1343,8 @@ const opOutputService11TestCaseOperation1 = "OperationName" // value can be used to capture response data after the request's "Send" method // is called. // +// See OutputService11TestCaseOperation1 for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1276,6 +1378,14 @@ func (c *OutputService11ProtocolTest) OutputService11TestCaseOperation1Request(i return } +// OutputService11TestCaseOperation1 API operation for . +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for 's +// API operation OutputService11TestCaseOperation1 for usage and error information. func (c *OutputService11ProtocolTest) OutputService11TestCaseOperation1(input *OutputService11TestShapeOutputService11TestCaseOperation1Input) (*OutputService11TestShapeOutputService11TestCaseOperation1Output, error) { req, out := c.OutputService11TestCaseOperation1Request(input) err := req.Send() @@ -1359,6 +1469,8 @@ const opOutputService12TestCaseOperation1 = "OperationName" // value can be used to capture response data after the request's "Send" method // is called. // +// See OutputService12TestCaseOperation1 for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1392,6 +1504,14 @@ func (c *OutputService12ProtocolTest) OutputService12TestCaseOperation1Request(i return } +// OutputService12TestCaseOperation1 API operation for . +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for 's +// API operation OutputService12TestCaseOperation1 for usage and error information. func (c *OutputService12ProtocolTest) OutputService12TestCaseOperation1(input *OutputService12TestShapeOutputService12TestCaseOperation1Input) (*OutputService12TestShapeOutputService12TestCaseOperation1Output, error) { req, out := c.OutputService12TestCaseOperation1Request(input) err := req.Send() @@ -1469,6 +1589,8 @@ const opOutputService13TestCaseOperation1 = "OperationName" // value can be used to capture response data after the request's "Send" method // is called. // +// See OutputService13TestCaseOperation1 for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1502,6 +1624,14 @@ func (c *OutputService13ProtocolTest) OutputService13TestCaseOperation1Request(i return } +// OutputService13TestCaseOperation1 API operation for . +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for 's +// API operation OutputService13TestCaseOperation1 for usage and error information. func (c *OutputService13ProtocolTest) OutputService13TestCaseOperation1(input *OutputService13TestShapeOutputService13TestCaseOperation1Input) (*OutputService13TestShapeOutputService13TestCaseOperation1Output, error) { req, out := c.OutputService13TestCaseOperation1Request(input) err := req.Send() @@ -1579,6 +1709,8 @@ const opOutputService14TestCaseOperation1 = "OperationName" // value can be used to capture response data after the request's "Send" method // is called. // +// See OutputService14TestCaseOperation1 for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1612,6 +1744,14 @@ func (c *OutputService14ProtocolTest) OutputService14TestCaseOperation1Request(i return } +// OutputService14TestCaseOperation1 API operation for . +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for 's +// API operation OutputService14TestCaseOperation1 for usage and error information. func (c *OutputService14ProtocolTest) OutputService14TestCaseOperation1(input *OutputService14TestShapeOutputService14TestCaseOperation1Input) (*OutputService14TestShapeOutputService14TestCaseOperation1Output, error) { req, out := c.OutputService14TestCaseOperation1Request(input) err := req.Send() @@ -1689,6 +1829,8 @@ const opOutputService15TestCaseOperation1 = "OperationName" // value can be used to capture response data after the request's "Send" method // is called. // +// See OutputService15TestCaseOperation1 for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1722,6 +1864,14 @@ func (c *OutputService15ProtocolTest) OutputService15TestCaseOperation1Request(i return } +// OutputService15TestCaseOperation1 API operation for . +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for 's +// API operation OutputService15TestCaseOperation1 for usage and error information. 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..f6ed92ae27d 100644 --- a/private/protocol/restjson/build_test.go +++ b/private/protocol/restjson/build_test.go @@ -104,6 +104,8 @@ const opInputService1TestCaseOperation1 = "OperationName" // value can be used to capture response data after the request's "Send" method // is called. // +// See InputService1TestCaseOperation1 for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -140,6 +142,14 @@ func (c *InputService1ProtocolTest) InputService1TestCaseOperation1Request(input return } +// InputService1TestCaseOperation1 API operation for . +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for 's +// API operation InputService1TestCaseOperation1 for usage and error information. func (c *InputService1ProtocolTest) InputService1TestCaseOperation1(input *InputService1TestShapeInputService1TestCaseOperation1Input) (*InputService1TestShapeInputService1TestCaseOperation1Output, error) { req, out := c.InputService1TestCaseOperation1Request(input) err := req.Send() @@ -215,6 +225,8 @@ const opInputService2TestCaseOperation1 = "OperationName" // value can be used to capture response data after the request's "Send" method // is called. // +// See InputService2TestCaseOperation1 for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -251,6 +263,14 @@ func (c *InputService2ProtocolTest) InputService2TestCaseOperation1Request(input return } +// InputService2TestCaseOperation1 API operation for . +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for 's +// API operation InputService2TestCaseOperation1 for usage and error information. func (c *InputService2ProtocolTest) InputService2TestCaseOperation1(input *InputService2TestShapeInputService2TestCaseOperation1Input) (*InputService2TestShapeInputService2TestCaseOperation1Output, error) { req, out := c.InputService2TestCaseOperation1Request(input) err := req.Send() @@ -328,6 +348,8 @@ const opInputService3TestCaseOperation1 = "OperationName" // value can be used to capture response data after the request's "Send" method // is called. // +// See InputService3TestCaseOperation1 for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -364,6 +386,14 @@ func (c *InputService3ProtocolTest) InputService3TestCaseOperation1Request(input return } +// InputService3TestCaseOperation1 API operation for . +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for 's +// API operation InputService3TestCaseOperation1 for usage and error information. func (c *InputService3ProtocolTest) InputService3TestCaseOperation1(input *InputService3TestShapeInputService3TestCaseOperation1Input) (*InputService3TestShapeInputService3TestCaseOperation1Output, error) { req, out := c.InputService3TestCaseOperation1Request(input) err := req.Send() @@ -441,6 +471,8 @@ const opInputService4TestCaseOperation1 = "OperationName" // value can be used to capture response data after the request's "Send" method // is called. // +// See InputService4TestCaseOperation1 for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -477,6 +509,14 @@ func (c *InputService4ProtocolTest) InputService4TestCaseOperation1Request(input return } +// InputService4TestCaseOperation1 API operation for . +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for 's +// API operation InputService4TestCaseOperation1 for usage and error information. func (c *InputService4ProtocolTest) InputService4TestCaseOperation1(input *InputService4TestShapeInputService4TestCaseOperation1Input) (*InputService4TestShapeInputService4TestCaseOperation1Output, error) { req, out := c.InputService4TestCaseOperation1Request(input) err := req.Send() @@ -554,6 +594,8 @@ const opInputService5TestCaseOperation1 = "OperationName" // value can be used to capture response data after the request's "Send" method // is called. // +// See InputService5TestCaseOperation1 for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -590,6 +632,14 @@ func (c *InputService5ProtocolTest) InputService5TestCaseOperation1Request(input return } +// InputService5TestCaseOperation1 API operation for . +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for 's +// API operation InputService5TestCaseOperation1 for usage and error information. func (c *InputService5ProtocolTest) InputService5TestCaseOperation1(input *InputService5TestShapeInputService5TestCaseOperation1Input) (*InputService5TestShapeInputService5TestCaseOperation1Output, error) { req, out := c.InputService5TestCaseOperation1Request(input) err := req.Send() @@ -669,6 +719,8 @@ const opInputService6TestCaseOperation1 = "OperationName" // value can be used to capture response data after the request's "Send" method // is called. // +// See InputService6TestCaseOperation1 for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -705,6 +757,14 @@ func (c *InputService6ProtocolTest) InputService6TestCaseOperation1Request(input return } +// InputService6TestCaseOperation1 API operation for . +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for 's +// API operation InputService6TestCaseOperation1 for usage and error information. func (c *InputService6ProtocolTest) InputService6TestCaseOperation1(input *InputService6TestShapeInputService6TestCaseOperation1Input) (*InputService6TestShapeInputService6TestCaseOperation1Output, error) { req, out := c.InputService6TestCaseOperation1Request(input) err := req.Send() @@ -784,6 +844,8 @@ const opInputService7TestCaseOperation1 = "OperationName" // value can be used to capture response data after the request's "Send" method // is called. // +// See InputService7TestCaseOperation1 for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -820,6 +882,14 @@ func (c *InputService7ProtocolTest) InputService7TestCaseOperation1Request(input return } +// InputService7TestCaseOperation1 API operation for . +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for 's +// API operation InputService7TestCaseOperation1 for usage and error information. func (c *InputService7ProtocolTest) InputService7TestCaseOperation1(input *InputService7TestShapeInputService7TestCaseOperation1Input) (*InputService7TestShapeInputService7TestCaseOperation1Output, error) { req, out := c.InputService7TestCaseOperation1Request(input) err := req.Send() @@ -901,6 +971,8 @@ const opInputService8TestCaseOperation1 = "OperationName" // value can be used to capture response data after the request's "Send" method // is called. // +// See InputService8TestCaseOperation1 for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -937,6 +1009,14 @@ func (c *InputService8ProtocolTest) InputService8TestCaseOperation1Request(input return } +// InputService8TestCaseOperation1 API operation for . +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for 's +// API operation InputService8TestCaseOperation1 for usage and error information. func (c *InputService8ProtocolTest) InputService8TestCaseOperation1(input *InputService8TestShapeInputService8TestCaseOperation1Input) (*InputService8TestShapeInputService8TestCaseOperation1Output, error) { req, out := c.InputService8TestCaseOperation1Request(input) err := req.Send() @@ -1028,6 +1108,8 @@ const opInputService9TestCaseOperation1 = "OperationName" // value can be used to capture response data after the request's "Send" method // is called. // +// See InputService9TestCaseOperation1 for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1064,6 +1146,14 @@ func (c *InputService9ProtocolTest) InputService9TestCaseOperation1Request(input return } +// InputService9TestCaseOperation1 API operation for . +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for 's +// API operation InputService9TestCaseOperation1 for usage and error information. func (c *InputService9ProtocolTest) InputService9TestCaseOperation1(input *InputService9TestShapeInputService9TestCaseOperation1Input) (*InputService9TestShapeInputService9TestCaseOperation1Output, error) { req, out := c.InputService9TestCaseOperation1Request(input) err := req.Send() @@ -1157,6 +1247,8 @@ const opInputService10TestCaseOperation1 = "OperationName" // value can be used to capture response data after the request's "Send" method // is called. // +// See InputService10TestCaseOperation1 for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1193,6 +1285,14 @@ func (c *InputService10ProtocolTest) InputService10TestCaseOperation1Request(inp return } +// InputService10TestCaseOperation1 API operation for . +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for 's +// API operation InputService10TestCaseOperation1 for usage and error information. func (c *InputService10ProtocolTest) InputService10TestCaseOperation1(input *InputService10TestShapeInputService10TestCaseOperation1Input) (*InputService10TestShapeInputService10TestCaseOperation1Output, error) { req, out := c.InputService10TestCaseOperation1Request(input) err := req.Send() @@ -1288,6 +1388,8 @@ const opInputService11TestCaseOperation1 = "OperationName" // value can be used to capture response data after the request's "Send" method // is called. // +// See InputService11TestCaseOperation1 for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1324,6 +1426,14 @@ func (c *InputService11ProtocolTest) InputService11TestCaseOperation1Request(inp return } +// InputService11TestCaseOperation1 API operation for . +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for 's +// API operation InputService11TestCaseOperation1 for usage and error information. func (c *InputService11ProtocolTest) InputService11TestCaseOperation1(input *InputService11TestShapeInputService11TestCaseOperation1Input) (*InputService11TestShapeInputService11TestCaseOperation1Output, error) { req, out := c.InputService11TestCaseOperation1Request(input) err := req.Send() @@ -1418,6 +1528,8 @@ const opInputService12TestCaseOperation1 = "OperationName" // value can be used to capture response data after the request's "Send" method // is called. // +// See InputService12TestCaseOperation1 for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1454,6 +1566,14 @@ func (c *InputService12ProtocolTest) InputService12TestCaseOperation1Request(inp return } +// InputService12TestCaseOperation1 API operation for . +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for 's +// API operation InputService12TestCaseOperation1 for usage and error information. func (c *InputService12ProtocolTest) InputService12TestCaseOperation1(input *InputService12TestShapeInputShape) (*InputService12TestShapeInputService12TestCaseOperation1Output, error) { req, out := c.InputService12TestCaseOperation1Request(input) err := req.Send() @@ -1467,6 +1587,8 @@ const opInputService12TestCaseOperation2 = "OperationName" // value can be used to capture response data after the request's "Send" method // is called. // +// See InputService12TestCaseOperation2 for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1503,6 +1625,14 @@ func (c *InputService12ProtocolTest) InputService12TestCaseOperation2Request(inp return } +// InputService12TestCaseOperation2 API operation for . +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for 's +// API operation InputService12TestCaseOperation2 for usage and error information. func (c *InputService12ProtocolTest) InputService12TestCaseOperation2(input *InputService12TestShapeInputShape) (*InputService12TestShapeInputService12TestCaseOperation2Output, error) { req, out := c.InputService12TestCaseOperation2Request(input) err := req.Send() @@ -1584,6 +1714,8 @@ const opInputService13TestCaseOperation1 = "OperationName" // value can be used to capture response data after the request's "Send" method // is called. // +// See InputService13TestCaseOperation1 for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1620,6 +1752,14 @@ func (c *InputService13ProtocolTest) InputService13TestCaseOperation1Request(inp return } +// InputService13TestCaseOperation1 API operation for . +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for 's +// API operation InputService13TestCaseOperation1 for usage and error information. func (c *InputService13ProtocolTest) InputService13TestCaseOperation1(input *InputService13TestShapeInputShape) (*InputService13TestShapeInputService13TestCaseOperation1Output, error) { req, out := c.InputService13TestCaseOperation1Request(input) err := req.Send() @@ -1633,6 +1773,8 @@ const opInputService13TestCaseOperation2 = "OperationName" // value can be used to capture response data after the request's "Send" method // is called. // +// See InputService13TestCaseOperation2 for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1669,6 +1811,14 @@ func (c *InputService13ProtocolTest) InputService13TestCaseOperation2Request(inp return } +// InputService13TestCaseOperation2 API operation for . +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for 's +// API operation InputService13TestCaseOperation2 for usage and error information. func (c *InputService13ProtocolTest) InputService13TestCaseOperation2(input *InputService13TestShapeInputShape) (*InputService13TestShapeInputService13TestCaseOperation2Output, error) { req, out := c.InputService13TestCaseOperation2Request(input) err := req.Send() @@ -1756,6 +1906,8 @@ const opInputService14TestCaseOperation1 = "OperationName" // value can be used to capture response data after the request's "Send" method // is called. // +// See InputService14TestCaseOperation1 for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1792,6 +1944,14 @@ func (c *InputService14ProtocolTest) InputService14TestCaseOperation1Request(inp return } +// InputService14TestCaseOperation1 API operation for . +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for 's +// API operation InputService14TestCaseOperation1 for usage and error information. func (c *InputService14ProtocolTest) InputService14TestCaseOperation1(input *InputService14TestShapeInputShape) (*InputService14TestShapeInputService14TestCaseOperation1Output, error) { req, out := c.InputService14TestCaseOperation1Request(input) err := req.Send() @@ -1805,6 +1965,8 @@ const opInputService14TestCaseOperation2 = "OperationName" // value can be used to capture response data after the request's "Send" method // is called. // +// See InputService14TestCaseOperation2 for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1841,6 +2003,14 @@ func (c *InputService14ProtocolTest) InputService14TestCaseOperation2Request(inp return } +// InputService14TestCaseOperation2 API operation for . +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for 's +// API operation InputService14TestCaseOperation2 for usage and error information. func (c *InputService14ProtocolTest) InputService14TestCaseOperation2(input *InputService14TestShapeInputShape) (*InputService14TestShapeInputService14TestCaseOperation2Output, error) { req, out := c.InputService14TestCaseOperation2Request(input) err := req.Send() @@ -1922,6 +2092,8 @@ const opInputService15TestCaseOperation1 = "OperationName" // value can be used to capture response data after the request's "Send" method // is called. // +// See InputService15TestCaseOperation1 for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1958,6 +2130,14 @@ func (c *InputService15ProtocolTest) InputService15TestCaseOperation1Request(inp return } +// InputService15TestCaseOperation1 API operation for . +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for 's +// API operation InputService15TestCaseOperation1 for usage and error information. func (c *InputService15ProtocolTest) InputService15TestCaseOperation1(input *InputService15TestShapeInputShape) (*InputService15TestShapeInputService15TestCaseOperation1Output, error) { req, out := c.InputService15TestCaseOperation1Request(input) err := req.Send() @@ -1971,6 +2151,8 @@ const opInputService15TestCaseOperation2 = "OperationName" // value can be used to capture response data after the request's "Send" method // is called. // +// See InputService15TestCaseOperation2 for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -2007,6 +2189,14 @@ func (c *InputService15ProtocolTest) InputService15TestCaseOperation2Request(inp return } +// InputService15TestCaseOperation2 API operation for . +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for 's +// API operation InputService15TestCaseOperation2 for usage and error information. func (c *InputService15ProtocolTest) InputService15TestCaseOperation2(input *InputService15TestShapeInputShape) (*InputService15TestShapeInputService15TestCaseOperation2Output, error) { req, out := c.InputService15TestCaseOperation2Request(input) err := req.Send() @@ -2020,6 +2210,8 @@ const opInputService15TestCaseOperation3 = "OperationName" // value can be used to capture response data after the request's "Send" method // is called. // +// See InputService15TestCaseOperation3 for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -2056,6 +2248,14 @@ func (c *InputService15ProtocolTest) InputService15TestCaseOperation3Request(inp return } +// InputService15TestCaseOperation3 API operation for . +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for 's +// API operation InputService15TestCaseOperation3 for usage and error information. func (c *InputService15ProtocolTest) InputService15TestCaseOperation3(input *InputService15TestShapeInputShape) (*InputService15TestShapeInputService15TestCaseOperation3Output, error) { req, out := c.InputService15TestCaseOperation3Request(input) err := req.Send() @@ -2069,6 +2269,8 @@ const opInputService15TestCaseOperation4 = "OperationName" // value can be used to capture response data after the request's "Send" method // is called. // +// See InputService15TestCaseOperation4 for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -2105,6 +2307,14 @@ func (c *InputService15ProtocolTest) InputService15TestCaseOperation4Request(inp return } +// InputService15TestCaseOperation4 API operation for . +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for 's +// API operation InputService15TestCaseOperation4 for usage and error information. func (c *InputService15ProtocolTest) InputService15TestCaseOperation4(input *InputService15TestShapeInputShape) (*InputService15TestShapeInputService15TestCaseOperation4Output, error) { req, out := c.InputService15TestCaseOperation4Request(input) err := req.Send() @@ -2118,6 +2328,8 @@ const opInputService15TestCaseOperation5 = "OperationName" // value can be used to capture response data after the request's "Send" method // is called. // +// See InputService15TestCaseOperation5 for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -2154,6 +2366,14 @@ func (c *InputService15ProtocolTest) InputService15TestCaseOperation5Request(inp return } +// InputService15TestCaseOperation5 API operation for . +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for 's +// API operation InputService15TestCaseOperation5 for usage and error information. func (c *InputService15ProtocolTest) InputService15TestCaseOperation5(input *InputService15TestShapeInputShape) (*InputService15TestShapeInputService15TestCaseOperation5Output, error) { req, out := c.InputService15TestCaseOperation5Request(input) err := req.Send() @@ -2167,6 +2387,8 @@ const opInputService15TestCaseOperation6 = "OperationName" // value can be used to capture response data after the request's "Send" method // is called. // +// See InputService15TestCaseOperation6 for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -2203,6 +2425,14 @@ func (c *InputService15ProtocolTest) InputService15TestCaseOperation6Request(inp return } +// InputService15TestCaseOperation6 API operation for . +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for 's +// API operation InputService15TestCaseOperation6 for usage and error information. func (c *InputService15ProtocolTest) InputService15TestCaseOperation6(input *InputService15TestShapeInputShape) (*InputService15TestShapeInputService15TestCaseOperation6Output, error) { req, out := c.InputService15TestCaseOperation6Request(input) err := req.Send() @@ -2312,6 +2542,8 @@ const opInputService16TestCaseOperation1 = "OperationName" // value can be used to capture response data after the request's "Send" method // is called. // +// See InputService16TestCaseOperation1 for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -2348,6 +2580,14 @@ func (c *InputService16ProtocolTest) InputService16TestCaseOperation1Request(inp return } +// InputService16TestCaseOperation1 API operation for . +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for 's +// API operation InputService16TestCaseOperation1 for usage and error information. func (c *InputService16ProtocolTest) InputService16TestCaseOperation1(input *InputService16TestShapeInputShape) (*InputService16TestShapeInputService16TestCaseOperation1Output, error) { req, out := c.InputService16TestCaseOperation1Request(input) err := req.Send() @@ -2361,6 +2601,8 @@ const opInputService16TestCaseOperation2 = "OperationName" // value can be used to capture response data after the request's "Send" method // is called. // +// See InputService16TestCaseOperation2 for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -2397,6 +2639,14 @@ func (c *InputService16ProtocolTest) InputService16TestCaseOperation2Request(inp return } +// InputService16TestCaseOperation2 API operation for . +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for 's +// API operation InputService16TestCaseOperation2 for usage and error information. func (c *InputService16ProtocolTest) InputService16TestCaseOperation2(input *InputService16TestShapeInputShape) (*InputService16TestShapeInputService16TestCaseOperation2Output, error) { req, out := c.InputService16TestCaseOperation2Request(input) err := req.Send() @@ -2480,6 +2730,8 @@ const opInputService17TestCaseOperation1 = "OperationName" // value can be used to capture response data after the request's "Send" method // is called. // +// See InputService17TestCaseOperation1 for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -2516,6 +2768,14 @@ func (c *InputService17ProtocolTest) InputService17TestCaseOperation1Request(inp return } +// InputService17TestCaseOperation1 API operation for . +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for 's +// API operation InputService17TestCaseOperation1 for usage and error information. func (c *InputService17ProtocolTest) InputService17TestCaseOperation1(input *InputService17TestShapeInputService17TestCaseOperation1Input) (*InputService17TestShapeInputService17TestCaseOperation1Output, error) { req, out := c.InputService17TestCaseOperation1Request(input) err := req.Send() @@ -2593,6 +2853,8 @@ const opInputService18TestCaseOperation1 = "OperationName" // value can be used to capture response data after the request's "Send" method // is called. // +// See InputService18TestCaseOperation1 for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -2629,6 +2891,14 @@ func (c *InputService18ProtocolTest) InputService18TestCaseOperation1Request(inp return } +// InputService18TestCaseOperation1 API operation for . +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for 's +// API operation InputService18TestCaseOperation1 for usage and error information. func (c *InputService18ProtocolTest) InputService18TestCaseOperation1(input *InputService18TestShapeInputService18TestCaseOperation1Input) (*InputService18TestShapeInputService18TestCaseOperation1Output, error) { req, out := c.InputService18TestCaseOperation1Request(input) err := req.Send() @@ -2706,6 +2976,8 @@ const opInputService19TestCaseOperation1 = "OperationName" // value can be used to capture response data after the request's "Send" method // is called. // +// See InputService19TestCaseOperation1 for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -2742,6 +3014,14 @@ func (c *InputService19ProtocolTest) InputService19TestCaseOperation1Request(inp return } +// InputService19TestCaseOperation1 API operation for . +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for 's +// API operation InputService19TestCaseOperation1 for usage and error information. func (c *InputService19ProtocolTest) InputService19TestCaseOperation1(input *InputService19TestShapeInputShape) (*InputService19TestShapeInputService19TestCaseOperation1Output, error) { req, out := c.InputService19TestCaseOperation1Request(input) err := req.Send() @@ -2755,6 +3035,8 @@ const opInputService19TestCaseOperation2 = "OperationName" // value can be used to capture response data after the request's "Send" method // is called. // +// See InputService19TestCaseOperation2 for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -2791,6 +3073,14 @@ func (c *InputService19ProtocolTest) InputService19TestCaseOperation2Request(inp return } +// InputService19TestCaseOperation2 API operation for . +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for 's +// API operation InputService19TestCaseOperation2 for usage and error information. 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..0775ce672c0 100644 --- a/private/protocol/restjson/unmarshal_test.go +++ b/private/protocol/restjson/unmarshal_test.go @@ -104,6 +104,8 @@ const opOutputService1TestCaseOperation1 = "OperationName" // value can be used to capture response data after the request's "Send" method // is called. // +// See OutputService1TestCaseOperation1 for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -137,6 +139,14 @@ func (c *OutputService1ProtocolTest) OutputService1TestCaseOperation1Request(inp return } +// OutputService1TestCaseOperation1 API operation for . +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for 's +// API operation OutputService1TestCaseOperation1 for usage and error information. func (c *OutputService1ProtocolTest) OutputService1TestCaseOperation1(input *OutputService1TestShapeOutputService1TestCaseOperation1Input) (*OutputService1TestShapeOutputService1TestCaseOperation1Output, error) { req, out := c.OutputService1TestCaseOperation1Request(input) err := req.Send() @@ -234,6 +244,8 @@ const opOutputService2TestCaseOperation1 = "OperationName" // value can be used to capture response data after the request's "Send" method // is called. // +// See OutputService2TestCaseOperation1 for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -267,6 +279,14 @@ func (c *OutputService2ProtocolTest) OutputService2TestCaseOperation1Request(inp return } +// OutputService2TestCaseOperation1 API operation for . +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for 's +// API operation OutputService2TestCaseOperation1 for usage and error information. func (c *OutputService2ProtocolTest) OutputService2TestCaseOperation1(input *OutputService2TestShapeOutputService2TestCaseOperation1Input) (*OutputService2TestShapeOutputService2TestCaseOperation1Output, error) { req, out := c.OutputService2TestCaseOperation1Request(input) err := req.Send() @@ -354,6 +374,8 @@ const opOutputService3TestCaseOperation1 = "OperationName" // value can be used to capture response data after the request's "Send" method // is called. // +// See OutputService3TestCaseOperation1 for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -387,6 +409,14 @@ func (c *OutputService3ProtocolTest) OutputService3TestCaseOperation1Request(inp return } +// OutputService3TestCaseOperation1 API operation for . +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for 's +// API operation OutputService3TestCaseOperation1 for usage and error information. func (c *OutputService3ProtocolTest) OutputService3TestCaseOperation1(input *OutputService3TestShapeOutputService3TestCaseOperation1Input) (*OutputService3TestShapeOutputService3TestCaseOperation1Output, error) { req, out := c.OutputService3TestCaseOperation1Request(input) err := req.Send() @@ -472,6 +502,8 @@ const opOutputService4TestCaseOperation1 = "OperationName" // value can be used to capture response data after the request's "Send" method // is called. // +// See OutputService4TestCaseOperation1 for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -505,6 +537,14 @@ func (c *OutputService4ProtocolTest) OutputService4TestCaseOperation1Request(inp return } +// OutputService4TestCaseOperation1 API operation for . +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for 's +// API operation OutputService4TestCaseOperation1 for usage and error information. func (c *OutputService4ProtocolTest) OutputService4TestCaseOperation1(input *OutputService4TestShapeOutputService4TestCaseOperation1Input) (*OutputService4TestShapeOutputService4TestCaseOperation1Output, error) { req, out := c.OutputService4TestCaseOperation1Request(input) err := req.Send() @@ -582,6 +622,8 @@ const opOutputService5TestCaseOperation1 = "OperationName" // value can be used to capture response data after the request's "Send" method // is called. // +// See OutputService5TestCaseOperation1 for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -615,6 +657,14 @@ func (c *OutputService5ProtocolTest) OutputService5TestCaseOperation1Request(inp return } +// OutputService5TestCaseOperation1 API operation for . +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for 's +// API operation OutputService5TestCaseOperation1 for usage and error information. func (c *OutputService5ProtocolTest) OutputService5TestCaseOperation1(input *OutputService5TestShapeOutputService5TestCaseOperation1Input) (*OutputService5TestShapeOutputService5TestCaseOperation1Output, error) { req, out := c.OutputService5TestCaseOperation1Request(input) err := req.Send() @@ -698,6 +748,8 @@ const opOutputService6TestCaseOperation1 = "OperationName" // value can be used to capture response data after the request's "Send" method // is called. // +// See OutputService6TestCaseOperation1 for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -731,6 +783,14 @@ func (c *OutputService6ProtocolTest) OutputService6TestCaseOperation1Request(inp return } +// OutputService6TestCaseOperation1 API operation for . +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for 's +// API operation OutputService6TestCaseOperation1 for usage and error information. func (c *OutputService6ProtocolTest) OutputService6TestCaseOperation1(input *OutputService6TestShapeOutputService6TestCaseOperation1Input) (*OutputService6TestShapeOutputService6TestCaseOperation1Output, error) { req, out := c.OutputService6TestCaseOperation1Request(input) err := req.Send() @@ -808,6 +868,8 @@ const opOutputService7TestCaseOperation1 = "OperationName" // value can be used to capture response data after the request's "Send" method // is called. // +// See OutputService7TestCaseOperation1 for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -841,6 +903,14 @@ func (c *OutputService7ProtocolTest) OutputService7TestCaseOperation1Request(inp return } +// OutputService7TestCaseOperation1 API operation for . +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for 's +// API operation OutputService7TestCaseOperation1 for usage and error information. func (c *OutputService7ProtocolTest) OutputService7TestCaseOperation1(input *OutputService7TestShapeOutputService7TestCaseOperation1Input) (*OutputService7TestShapeOutputService7TestCaseOperation1Output, error) { req, out := c.OutputService7TestCaseOperation1Request(input) err := req.Send() @@ -918,6 +988,8 @@ const opOutputService8TestCaseOperation1 = "OperationName" // value can be used to capture response data after the request's "Send" method // is called. // +// See OutputService8TestCaseOperation1 for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -951,6 +1023,14 @@ func (c *OutputService8ProtocolTest) OutputService8TestCaseOperation1Request(inp return } +// OutputService8TestCaseOperation1 API operation for . +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for 's +// API operation OutputService8TestCaseOperation1 for usage and error information. func (c *OutputService8ProtocolTest) OutputService8TestCaseOperation1(input *OutputService8TestShapeOutputService8TestCaseOperation1Input) (*OutputService8TestShapeOutputService8TestCaseOperation1Output, error) { req, out := c.OutputService8TestCaseOperation1Request(input) err := req.Send() @@ -1028,6 +1108,8 @@ const opOutputService9TestCaseOperation1 = "OperationName" // value can be used to capture response data after the request's "Send" method // is called. // +// See OutputService9TestCaseOperation1 for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1061,6 +1143,14 @@ func (c *OutputService9ProtocolTest) OutputService9TestCaseOperation1Request(inp return } +// OutputService9TestCaseOperation1 API operation for . +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for 's +// API operation OutputService9TestCaseOperation1 for usage and error information. func (c *OutputService9ProtocolTest) OutputService9TestCaseOperation1(input *OutputService9TestShapeOutputService9TestCaseOperation1Input) (*OutputService9TestShapeOutputService9TestCaseOperation1Output, error) { req, out := c.OutputService9TestCaseOperation1Request(input) err := req.Send() @@ -1140,6 +1230,8 @@ const opOutputService10TestCaseOperation1 = "OperationName" // value can be used to capture response data after the request's "Send" method // is called. // +// See OutputService10TestCaseOperation1 for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1173,6 +1265,14 @@ func (c *OutputService10ProtocolTest) OutputService10TestCaseOperation1Request(i return } +// OutputService10TestCaseOperation1 API operation for . +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for 's +// API operation OutputService10TestCaseOperation1 for usage and error information. func (c *OutputService10ProtocolTest) OutputService10TestCaseOperation1(input *OutputService10TestShapeOutputService10TestCaseOperation1Input) (*OutputService10TestShapeOutputService10TestCaseOperation1Output, error) { req, out := c.OutputService10TestCaseOperation1Request(input) err := req.Send() @@ -1258,6 +1358,8 @@ const opOutputService11TestCaseOperation1 = "OperationName" // value can be used to capture response data after the request's "Send" method // is called. // +// See OutputService11TestCaseOperation1 for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1291,6 +1393,14 @@ func (c *OutputService11ProtocolTest) OutputService11TestCaseOperation1Request(i return } +// OutputService11TestCaseOperation1 API operation for . +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for 's +// API operation OutputService11TestCaseOperation1 for usage and error information. 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..7ff9c66a7fa 100644 --- a/private/protocol/restxml/build_test.go +++ b/private/protocol/restxml/build_test.go @@ -104,6 +104,8 @@ const opInputService1TestCaseOperation1 = "OperationName" // value can be used to capture response data after the request's "Send" method // is called. // +// See InputService1TestCaseOperation1 for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -140,6 +142,14 @@ func (c *InputService1ProtocolTest) InputService1TestCaseOperation1Request(input return } +// InputService1TestCaseOperation1 API operation for . +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for 's +// API operation InputService1TestCaseOperation1 for usage and error information. func (c *InputService1ProtocolTest) InputService1TestCaseOperation1(input *InputService1TestShapeInputShape) (*InputService1TestShapeInputService1TestCaseOperation1Output, error) { req, out := c.InputService1TestCaseOperation1Request(input) err := req.Send() @@ -153,6 +163,8 @@ const opInputService1TestCaseOperation2 = "OperationName" // value can be used to capture response data after the request's "Send" method // is called. // +// See InputService1TestCaseOperation2 for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -189,6 +201,14 @@ func (c *InputService1ProtocolTest) InputService1TestCaseOperation2Request(input return } +// InputService1TestCaseOperation2 API operation for . +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for 's +// API operation InputService1TestCaseOperation2 for usage and error information. func (c *InputService1ProtocolTest) InputService1TestCaseOperation2(input *InputService1TestShapeInputShape) (*InputService1TestShapeInputService1TestCaseOperation2Output, error) { req, out := c.InputService1TestCaseOperation2Request(input) err := req.Send() @@ -202,6 +222,8 @@ const opInputService1TestCaseOperation3 = "OperationName" // value can be used to capture response data after the request's "Send" method // is called. // +// See InputService1TestCaseOperation3 for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -238,6 +260,14 @@ func (c *InputService1ProtocolTest) InputService1TestCaseOperation3Request(input return } +// InputService1TestCaseOperation3 API operation for . +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for 's +// API operation InputService1TestCaseOperation3 for usage and error information. func (c *InputService1ProtocolTest) InputService1TestCaseOperation3(input *InputService1TestShapeInputService1TestCaseOperation3Input) (*InputService1TestShapeInputService1TestCaseOperation3Output, error) { req, out := c.InputService1TestCaseOperation3Request(input) err := req.Send() @@ -329,6 +359,8 @@ const opInputService2TestCaseOperation1 = "OperationName" // value can be used to capture response data after the request's "Send" method // is called. // +// See InputService2TestCaseOperation1 for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -365,6 +397,14 @@ func (c *InputService2ProtocolTest) InputService2TestCaseOperation1Request(input return } +// InputService2TestCaseOperation1 API operation for . +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for 's +// API operation InputService2TestCaseOperation1 for usage and error information. func (c *InputService2ProtocolTest) InputService2TestCaseOperation1(input *InputService2TestShapeInputService2TestCaseOperation1Input) (*InputService2TestShapeInputService2TestCaseOperation1Output, error) { req, out := c.InputService2TestCaseOperation1Request(input) err := req.Send() @@ -448,6 +488,8 @@ const opInputService3TestCaseOperation1 = "OperationName" // value can be used to capture response data after the request's "Send" method // is called. // +// See InputService3TestCaseOperation1 for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -484,6 +526,14 @@ func (c *InputService3ProtocolTest) InputService3TestCaseOperation1Request(input return } +// InputService3TestCaseOperation1 API operation for . +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for 's +// API operation InputService3TestCaseOperation1 for usage and error information. func (c *InputService3ProtocolTest) InputService3TestCaseOperation1(input *InputService3TestShapeInputShape) (*InputService3TestShapeInputService3TestCaseOperation1Output, error) { req, out := c.InputService3TestCaseOperation1Request(input) err := req.Send() @@ -497,6 +547,8 @@ const opInputService3TestCaseOperation2 = "OperationName" // value can be used to capture response data after the request's "Send" method // is called. // +// See InputService3TestCaseOperation2 for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -533,6 +585,14 @@ func (c *InputService3ProtocolTest) InputService3TestCaseOperation2Request(input return } +// InputService3TestCaseOperation2 API operation for . +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for 's +// API operation InputService3TestCaseOperation2 for usage and error information. func (c *InputService3ProtocolTest) InputService3TestCaseOperation2(input *InputService3TestShapeInputShape) (*InputService3TestShapeInputService3TestCaseOperation2Output, error) { req, out := c.InputService3TestCaseOperation2Request(input) err := req.Send() @@ -624,6 +684,8 @@ const opInputService4TestCaseOperation1 = "OperationName" // value can be used to capture response data after the request's "Send" method // is called. // +// See InputService4TestCaseOperation1 for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -660,6 +722,14 @@ func (c *InputService4ProtocolTest) InputService4TestCaseOperation1Request(input return } +// InputService4TestCaseOperation1 API operation for . +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for 's +// API operation InputService4TestCaseOperation1 for usage and error information. func (c *InputService4ProtocolTest) InputService4TestCaseOperation1(input *InputService4TestShapeInputService4TestCaseOperation1Input) (*InputService4TestShapeInputService4TestCaseOperation1Output, error) { req, out := c.InputService4TestCaseOperation1Request(input) err := req.Send() @@ -747,6 +817,8 @@ const opInputService5TestCaseOperation1 = "OperationName" // value can be used to capture response data after the request's "Send" method // is called. // +// See InputService5TestCaseOperation1 for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -783,6 +855,14 @@ func (c *InputService5ProtocolTest) InputService5TestCaseOperation1Request(input return } +// InputService5TestCaseOperation1 API operation for . +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for 's +// API operation InputService5TestCaseOperation1 for usage and error information. func (c *InputService5ProtocolTest) InputService5TestCaseOperation1(input *InputService5TestShapeInputService5TestCaseOperation1Input) (*InputService5TestShapeInputService5TestCaseOperation1Output, error) { req, out := c.InputService5TestCaseOperation1Request(input) err := req.Send() @@ -860,6 +940,8 @@ const opInputService6TestCaseOperation1 = "OperationName" // value can be used to capture response data after the request's "Send" method // is called. // +// See InputService6TestCaseOperation1 for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -896,6 +978,14 @@ func (c *InputService6ProtocolTest) InputService6TestCaseOperation1Request(input return } +// InputService6TestCaseOperation1 API operation for . +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for 's +// API operation InputService6TestCaseOperation1 for usage and error information. func (c *InputService6ProtocolTest) InputService6TestCaseOperation1(input *InputService6TestShapeInputService6TestCaseOperation1Input) (*InputService6TestShapeInputService6TestCaseOperation1Output, error) { req, out := c.InputService6TestCaseOperation1Request(input) err := req.Send() @@ -973,6 +1063,8 @@ const opInputService7TestCaseOperation1 = "OperationName" // value can be used to capture response data after the request's "Send" method // is called. // +// See InputService7TestCaseOperation1 for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1009,6 +1101,14 @@ func (c *InputService7ProtocolTest) InputService7TestCaseOperation1Request(input return } +// InputService7TestCaseOperation1 API operation for . +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for 's +// API operation InputService7TestCaseOperation1 for usage and error information. func (c *InputService7ProtocolTest) InputService7TestCaseOperation1(input *InputService7TestShapeInputService7TestCaseOperation1Input) (*InputService7TestShapeInputService7TestCaseOperation1Output, error) { req, out := c.InputService7TestCaseOperation1Request(input) err := req.Send() @@ -1086,6 +1186,8 @@ const opInputService8TestCaseOperation1 = "OperationName" // value can be used to capture response data after the request's "Send" method // is called. // +// See InputService8TestCaseOperation1 for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1122,6 +1224,14 @@ func (c *InputService8ProtocolTest) InputService8TestCaseOperation1Request(input return } +// InputService8TestCaseOperation1 API operation for . +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for 's +// API operation InputService8TestCaseOperation1 for usage and error information. func (c *InputService8ProtocolTest) InputService8TestCaseOperation1(input *InputService8TestShapeInputService8TestCaseOperation1Input) (*InputService8TestShapeInputService8TestCaseOperation1Output, error) { req, out := c.InputService8TestCaseOperation1Request(input) err := req.Send() @@ -1199,6 +1309,8 @@ const opInputService9TestCaseOperation1 = "OperationName" // value can be used to capture response data after the request's "Send" method // is called. // +// See InputService9TestCaseOperation1 for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1235,6 +1347,14 @@ func (c *InputService9ProtocolTest) InputService9TestCaseOperation1Request(input return } +// InputService9TestCaseOperation1 API operation for . +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for 's +// API operation InputService9TestCaseOperation1 for usage and error information. func (c *InputService9ProtocolTest) InputService9TestCaseOperation1(input *InputService9TestShapeInputService9TestCaseOperation1Input) (*InputService9TestShapeInputService9TestCaseOperation1Output, error) { req, out := c.InputService9TestCaseOperation1Request(input) err := req.Send() @@ -1318,6 +1438,8 @@ const opInputService10TestCaseOperation1 = "OperationName" // value can be used to capture response data after the request's "Send" method // is called. // +// See InputService10TestCaseOperation1 for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1354,6 +1476,14 @@ func (c *InputService10ProtocolTest) InputService10TestCaseOperation1Request(inp return } +// InputService10TestCaseOperation1 API operation for . +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for 's +// API operation InputService10TestCaseOperation1 for usage and error information. func (c *InputService10ProtocolTest) InputService10TestCaseOperation1(input *InputService10TestShapeInputService10TestCaseOperation1Input) (*InputService10TestShapeInputService10TestCaseOperation1Output, error) { req, out := c.InputService10TestCaseOperation1Request(input) err := req.Send() @@ -1440,6 +1570,8 @@ const opInputService11TestCaseOperation1 = "OperationName" // value can be used to capture response data after the request's "Send" method // is called. // +// See InputService11TestCaseOperation1 for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1476,6 +1608,14 @@ func (c *InputService11ProtocolTest) InputService11TestCaseOperation1Request(inp return } +// InputService11TestCaseOperation1 API operation for . +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for 's +// API operation InputService11TestCaseOperation1 for usage and error information. func (c *InputService11ProtocolTest) InputService11TestCaseOperation1(input *InputService11TestShapeInputService11TestCaseOperation1Input) (*InputService11TestShapeInputService11TestCaseOperation1Output, error) { req, out := c.InputService11TestCaseOperation1Request(input) err := req.Send() @@ -1553,6 +1693,8 @@ const opInputService12TestCaseOperation1 = "OperationName" // value can be used to capture response data after the request's "Send" method // is called. // +// See InputService12TestCaseOperation1 for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1589,6 +1731,14 @@ func (c *InputService12ProtocolTest) InputService12TestCaseOperation1Request(inp return } +// InputService12TestCaseOperation1 API operation for . +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for 's +// API operation InputService12TestCaseOperation1 for usage and error information. func (c *InputService12ProtocolTest) InputService12TestCaseOperation1(input *InputService12TestShapeInputService12TestCaseOperation1Input) (*InputService12TestShapeInputService12TestCaseOperation1Output, error) { req, out := c.InputService12TestCaseOperation1Request(input) err := req.Send() @@ -1666,6 +1816,8 @@ const opInputService13TestCaseOperation1 = "OperationName" // value can be used to capture response data after the request's "Send" method // is called. // +// See InputService13TestCaseOperation1 for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1702,6 +1854,14 @@ func (c *InputService13ProtocolTest) InputService13TestCaseOperation1Request(inp return } +// InputService13TestCaseOperation1 API operation for . +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for 's +// API operation InputService13TestCaseOperation1 for usage and error information. func (c *InputService13ProtocolTest) InputService13TestCaseOperation1(input *InputService13TestShapeInputService13TestCaseOperation1Input) (*InputService13TestShapeInputService13TestCaseOperation1Output, error) { req, out := c.InputService13TestCaseOperation1Request(input) err := req.Send() @@ -1781,6 +1941,8 @@ const opInputService14TestCaseOperation1 = "OperationName" // value can be used to capture response data after the request's "Send" method // is called. // +// See InputService14TestCaseOperation1 for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1817,6 +1979,14 @@ func (c *InputService14ProtocolTest) InputService14TestCaseOperation1Request(inp return } +// InputService14TestCaseOperation1 API operation for . +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for 's +// API operation InputService14TestCaseOperation1 for usage and error information. func (c *InputService14ProtocolTest) InputService14TestCaseOperation1(input *InputService14TestShapeInputService14TestCaseOperation1Input) (*InputService14TestShapeInputService14TestCaseOperation1Output, error) { req, out := c.InputService14TestCaseOperation1Request(input) err := req.Send() @@ -1896,6 +2066,8 @@ const opInputService15TestCaseOperation1 = "OperationName" // value can be used to capture response data after the request's "Send" method // is called. // +// See InputService15TestCaseOperation1 for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1932,6 +2104,14 @@ func (c *InputService15ProtocolTest) InputService15TestCaseOperation1Request(inp return } +// InputService15TestCaseOperation1 API operation for . +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for 's +// API operation InputService15TestCaseOperation1 for usage and error information. func (c *InputService15ProtocolTest) InputService15TestCaseOperation1(input *InputService15TestShapeInputService15TestCaseOperation1Input) (*InputService15TestShapeInputService15TestCaseOperation1Output, error) { req, out := c.InputService15TestCaseOperation1Request(input) err := req.Send() @@ -2009,6 +2189,8 @@ const opInputService16TestCaseOperation1 = "OperationName" // value can be used to capture response data after the request's "Send" method // is called. // +// See InputService16TestCaseOperation1 for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -2045,6 +2227,14 @@ func (c *InputService16ProtocolTest) InputService16TestCaseOperation1Request(inp return } +// InputService16TestCaseOperation1 API operation for . +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for 's +// API operation InputService16TestCaseOperation1 for usage and error information. func (c *InputService16ProtocolTest) InputService16TestCaseOperation1(input *InputService16TestShapeInputShape) (*InputService16TestShapeInputService16TestCaseOperation1Output, error) { req, out := c.InputService16TestCaseOperation1Request(input) err := req.Send() @@ -2058,6 +2248,8 @@ const opInputService16TestCaseOperation2 = "OperationName" // value can be used to capture response data after the request's "Send" method // is called. // +// See InputService16TestCaseOperation2 for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -2094,6 +2286,14 @@ func (c *InputService16ProtocolTest) InputService16TestCaseOperation2Request(inp return } +// InputService16TestCaseOperation2 API operation for . +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for 's +// API operation InputService16TestCaseOperation2 for usage and error information. func (c *InputService16ProtocolTest) InputService16TestCaseOperation2(input *InputService16TestShapeInputShape) (*InputService16TestShapeInputService16TestCaseOperation2Output, error) { req, out := c.InputService16TestCaseOperation2Request(input) err := req.Send() @@ -2175,6 +2375,8 @@ const opInputService17TestCaseOperation1 = "OperationName" // value can be used to capture response data after the request's "Send" method // is called. // +// See InputService17TestCaseOperation1 for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -2211,6 +2413,14 @@ func (c *InputService17ProtocolTest) InputService17TestCaseOperation1Request(inp return } +// InputService17TestCaseOperation1 API operation for . +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for 's +// API operation InputService17TestCaseOperation1 for usage and error information. func (c *InputService17ProtocolTest) InputService17TestCaseOperation1(input *InputService17TestShapeInputShape) (*InputService17TestShapeInputService17TestCaseOperation1Output, error) { req, out := c.InputService17TestCaseOperation1Request(input) err := req.Send() @@ -2224,6 +2434,8 @@ const opInputService17TestCaseOperation2 = "OperationName" // value can be used to capture response data after the request's "Send" method // is called. // +// See InputService17TestCaseOperation2 for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -2260,6 +2472,14 @@ func (c *InputService17ProtocolTest) InputService17TestCaseOperation2Request(inp return } +// InputService17TestCaseOperation2 API operation for . +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for 's +// API operation InputService17TestCaseOperation2 for usage and error information. func (c *InputService17ProtocolTest) InputService17TestCaseOperation2(input *InputService17TestShapeInputShape) (*InputService17TestShapeInputService17TestCaseOperation2Output, error) { req, out := c.InputService17TestCaseOperation2Request(input) err := req.Send() @@ -2273,6 +2493,8 @@ const opInputService17TestCaseOperation3 = "OperationName" // value can be used to capture response data after the request's "Send" method // is called. // +// See InputService17TestCaseOperation3 for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -2309,6 +2531,14 @@ func (c *InputService17ProtocolTest) InputService17TestCaseOperation3Request(inp return } +// InputService17TestCaseOperation3 API operation for . +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for 's +// API operation InputService17TestCaseOperation3 for usage and error information. func (c *InputService17ProtocolTest) InputService17TestCaseOperation3(input *InputService17TestShapeInputShape) (*InputService17TestShapeInputService17TestCaseOperation3Output, error) { req, out := c.InputService17TestCaseOperation3Request(input) err := req.Send() @@ -2322,6 +2552,8 @@ const opInputService17TestCaseOperation4 = "OperationName" // value can be used to capture response data after the request's "Send" method // is called. // +// See InputService17TestCaseOperation4 for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -2358,6 +2590,14 @@ func (c *InputService17ProtocolTest) InputService17TestCaseOperation4Request(inp return } +// InputService17TestCaseOperation4 API operation for . +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for 's +// API operation InputService17TestCaseOperation4 for usage and error information. func (c *InputService17ProtocolTest) InputService17TestCaseOperation4(input *InputService17TestShapeInputShape) (*InputService17TestShapeInputService17TestCaseOperation4Output, error) { req, out := c.InputService17TestCaseOperation4Request(input) err := req.Send() @@ -2453,6 +2693,8 @@ const opInputService18TestCaseOperation1 = "OperationName" // value can be used to capture response data after the request's "Send" method // is called. // +// See InputService18TestCaseOperation1 for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -2489,6 +2731,14 @@ func (c *InputService18ProtocolTest) InputService18TestCaseOperation1Request(inp return } +// InputService18TestCaseOperation1 API operation for . +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for 's +// API operation InputService18TestCaseOperation1 for usage and error information. func (c *InputService18ProtocolTest) InputService18TestCaseOperation1(input *InputService18TestShapeInputService18TestCaseOperation1Input) (*InputService18TestShapeInputService18TestCaseOperation1Output, error) { req, out := c.InputService18TestCaseOperation1Request(input) err := req.Send() @@ -2580,6 +2830,8 @@ const opInputService19TestCaseOperation1 = "OperationName" // value can be used to capture response data after the request's "Send" method // is called. // +// See InputService19TestCaseOperation1 for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -2616,6 +2868,14 @@ func (c *InputService19ProtocolTest) InputService19TestCaseOperation1Request(inp return } +// InputService19TestCaseOperation1 API operation for . +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for 's +// API operation InputService19TestCaseOperation1 for usage and error information. func (c *InputService19ProtocolTest) InputService19TestCaseOperation1(input *InputService19TestShapeInputService19TestCaseOperation1Input) (*InputService19TestShapeInputService19TestCaseOperation1Output, error) { req, out := c.InputService19TestCaseOperation1Request(input) err := req.Send() @@ -2695,6 +2955,8 @@ const opInputService20TestCaseOperation1 = "OperationName" // value can be used to capture response data after the request's "Send" method // is called. // +// See InputService20TestCaseOperation1 for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -2731,6 +2993,14 @@ func (c *InputService20ProtocolTest) InputService20TestCaseOperation1Request(inp return } +// InputService20TestCaseOperation1 API operation for . +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for 's +// API operation InputService20TestCaseOperation1 for usage and error information. func (c *InputService20ProtocolTest) InputService20TestCaseOperation1(input *InputService20TestShapeInputShape) (*InputService20TestShapeInputService20TestCaseOperation1Output, error) { req, out := c.InputService20TestCaseOperation1Request(input) err := req.Send() @@ -2744,6 +3014,8 @@ const opInputService20TestCaseOperation2 = "OperationName" // value can be used to capture response data after the request's "Send" method // is called. // +// See InputService20TestCaseOperation2 for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -2780,6 +3052,14 @@ func (c *InputService20ProtocolTest) InputService20TestCaseOperation2Request(inp return } +// InputService20TestCaseOperation2 API operation for . +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for 's +// API operation InputService20TestCaseOperation2 for usage and error information. func (c *InputService20ProtocolTest) InputService20TestCaseOperation2(input *InputService20TestShapeInputShape) (*InputService20TestShapeInputService20TestCaseOperation2Output, error) { req, out := c.InputService20TestCaseOperation2Request(input) err := req.Send() @@ -2861,6 +3141,8 @@ const opInputService21TestCaseOperation1 = "OperationName" // value can be used to capture response data after the request's "Send" method // is called. // +// See InputService21TestCaseOperation1 for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -2897,6 +3179,14 @@ func (c *InputService21ProtocolTest) InputService21TestCaseOperation1Request(inp return } +// InputService21TestCaseOperation1 API operation for . +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for 's +// API operation InputService21TestCaseOperation1 for usage and error information. func (c *InputService21ProtocolTest) InputService21TestCaseOperation1(input *InputService21TestShapeInputShape) (*InputService21TestShapeInputService21TestCaseOperation1Output, error) { req, out := c.InputService21TestCaseOperation1Request(input) err := req.Send() @@ -2910,6 +3200,8 @@ const opInputService21TestCaseOperation2 = "OperationName" // value can be used to capture response data after the request's "Send" method // is called. // +// See InputService21TestCaseOperation2 for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -2946,6 +3238,14 @@ func (c *InputService21ProtocolTest) InputService21TestCaseOperation2Request(inp return } +// InputService21TestCaseOperation2 API operation for . +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for 's +// API operation InputService21TestCaseOperation2 for usage and error information. func (c *InputService21ProtocolTest) InputService21TestCaseOperation2(input *InputService21TestShapeInputShape) (*InputService21TestShapeInputService21TestCaseOperation2Output, error) { req, out := c.InputService21TestCaseOperation2Request(input) err := req.Send() @@ -2959,6 +3259,8 @@ const opInputService21TestCaseOperation3 = "OperationName" // value can be used to capture response data after the request's "Send" method // is called. // +// See InputService21TestCaseOperation3 for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -2995,6 +3297,14 @@ func (c *InputService21ProtocolTest) InputService21TestCaseOperation3Request(inp return } +// InputService21TestCaseOperation3 API operation for . +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for 's +// API operation InputService21TestCaseOperation3 for usage and error information. func (c *InputService21ProtocolTest) InputService21TestCaseOperation3(input *InputService21TestShapeInputShape) (*InputService21TestShapeInputService21TestCaseOperation3Output, error) { req, out := c.InputService21TestCaseOperation3Request(input) err := req.Send() @@ -3008,6 +3318,8 @@ const opInputService21TestCaseOperation4 = "OperationName" // value can be used to capture response data after the request's "Send" method // is called. // +// See InputService21TestCaseOperation4 for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -3044,6 +3356,14 @@ func (c *InputService21ProtocolTest) InputService21TestCaseOperation4Request(inp return } +// InputService21TestCaseOperation4 API operation for . +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for 's +// API operation InputService21TestCaseOperation4 for usage and error information. func (c *InputService21ProtocolTest) InputService21TestCaseOperation4(input *InputService21TestShapeInputShape) (*InputService21TestShapeInputService21TestCaseOperation4Output, error) { req, out := c.InputService21TestCaseOperation4Request(input) err := req.Send() @@ -3057,6 +3377,8 @@ const opInputService21TestCaseOperation5 = "OperationName" // value can be used to capture response data after the request's "Send" method // is called. // +// See InputService21TestCaseOperation5 for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -3093,6 +3415,14 @@ func (c *InputService21ProtocolTest) InputService21TestCaseOperation5Request(inp return } +// InputService21TestCaseOperation5 API operation for . +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for 's +// API operation InputService21TestCaseOperation5 for usage and error information. func (c *InputService21ProtocolTest) InputService21TestCaseOperation5(input *InputService21TestShapeInputShape) (*InputService21TestShapeInputService21TestCaseOperation5Output, error) { req, out := c.InputService21TestCaseOperation5Request(input) err := req.Send() @@ -3106,6 +3436,8 @@ const opInputService21TestCaseOperation6 = "OperationName" // value can be used to capture response data after the request's "Send" method // is called. // +// See InputService21TestCaseOperation6 for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -3142,6 +3474,14 @@ func (c *InputService21ProtocolTest) InputService21TestCaseOperation6Request(inp return } +// InputService21TestCaseOperation6 API operation for . +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for 's +// API operation InputService21TestCaseOperation6 for usage and error information. func (c *InputService21ProtocolTest) InputService21TestCaseOperation6(input *InputService21TestShapeInputShape) (*InputService21TestShapeInputService21TestCaseOperation6Output, error) { req, out := c.InputService21TestCaseOperation6Request(input) err := req.Send() @@ -3251,6 +3591,8 @@ const opInputService22TestCaseOperation1 = "OperationName" // value can be used to capture response data after the request's "Send" method // is called. // +// See InputService22TestCaseOperation1 for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -3287,6 +3629,14 @@ func (c *InputService22ProtocolTest) InputService22TestCaseOperation1Request(inp return } +// InputService22TestCaseOperation1 API operation for . +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for 's +// API operation InputService22TestCaseOperation1 for usage and error information. func (c *InputService22ProtocolTest) InputService22TestCaseOperation1(input *InputService22TestShapeInputService22TestCaseOperation1Input) (*InputService22TestShapeInputService22TestCaseOperation1Output, error) { req, out := c.InputService22TestCaseOperation1Request(input) err := req.Send() @@ -3364,6 +3714,8 @@ const opInputService23TestCaseOperation1 = "OperationName" // value can be used to capture response data after the request's "Send" method // is called. // +// See InputService23TestCaseOperation1 for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -3400,6 +3752,14 @@ func (c *InputService23ProtocolTest) InputService23TestCaseOperation1Request(inp return } +// InputService23TestCaseOperation1 API operation for . +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for 's +// API operation InputService23TestCaseOperation1 for usage and error information. func (c *InputService23ProtocolTest) InputService23TestCaseOperation1(input *InputService23TestShapeInputShape) (*InputService23TestShapeInputService23TestCaseOperation1Output, error) { req, out := c.InputService23TestCaseOperation1Request(input) err := req.Send() @@ -3413,6 +3773,8 @@ const opInputService23TestCaseOperation2 = "OperationName" // value can be used to capture response data after the request's "Send" method // is called. // +// See InputService23TestCaseOperation2 for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -3449,6 +3811,14 @@ func (c *InputService23ProtocolTest) InputService23TestCaseOperation2Request(inp return } +// InputService23TestCaseOperation2 API operation for . +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for 's +// API operation InputService23TestCaseOperation2 for usage and error information. 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..bebf5b2c4e5 100644 --- a/private/protocol/restxml/unmarshal_test.go +++ b/private/protocol/restxml/unmarshal_test.go @@ -104,6 +104,8 @@ const opOutputService1TestCaseOperation1 = "OperationName" // value can be used to capture response data after the request's "Send" method // is called. // +// See OutputService1TestCaseOperation1 for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -137,6 +139,14 @@ func (c *OutputService1ProtocolTest) OutputService1TestCaseOperation1Request(inp return } +// OutputService1TestCaseOperation1 API operation for . +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for 's +// API operation OutputService1TestCaseOperation1 for usage and error information. func (c *OutputService1ProtocolTest) OutputService1TestCaseOperation1(input *OutputService1TestShapeOutputService1TestCaseOperation1Input) (*OutputService1TestShapeOutputShape, error) { req, out := c.OutputService1TestCaseOperation1Request(input) err := req.Send() @@ -150,6 +160,8 @@ const opOutputService1TestCaseOperation2 = "OperationName" // value can be used to capture response data after the request's "Send" method // is called. // +// See OutputService1TestCaseOperation2 for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -183,6 +195,14 @@ func (c *OutputService1ProtocolTest) OutputService1TestCaseOperation2Request(inp return } +// OutputService1TestCaseOperation2 API operation for . +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for 's +// API operation OutputService1TestCaseOperation2 for usage and error information. func (c *OutputService1ProtocolTest) OutputService1TestCaseOperation2(input *OutputService1TestShapeOutputService1TestCaseOperation2Input) (*OutputService1TestShapeOutputShape, error) { req, out := c.OutputService1TestCaseOperation2Request(input) err := req.Send() @@ -284,6 +304,8 @@ const opOutputService2TestCaseOperation1 = "OperationName" // value can be used to capture response data after the request's "Send" method // is called. // +// See OutputService2TestCaseOperation1 for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -317,6 +339,14 @@ func (c *OutputService2ProtocolTest) OutputService2TestCaseOperation1Request(inp return } +// OutputService2TestCaseOperation1 API operation for . +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for 's +// API operation OutputService2TestCaseOperation1 for usage and error information. func (c *OutputService2ProtocolTest) OutputService2TestCaseOperation1(input *OutputService2TestShapeOutputService2TestCaseOperation1Input) (*OutputService2TestShapeOutputService2TestCaseOperation1Output, error) { req, out := c.OutputService2TestCaseOperation1Request(input) err := req.Send() @@ -395,6 +425,8 @@ const opOutputService3TestCaseOperation1 = "OperationName" // value can be used to capture response data after the request's "Send" method // is called. // +// See OutputService3TestCaseOperation1 for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -428,6 +460,14 @@ func (c *OutputService3ProtocolTest) OutputService3TestCaseOperation1Request(inp return } +// OutputService3TestCaseOperation1 API operation for . +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for 's +// API operation OutputService3TestCaseOperation1 for usage and error information. func (c *OutputService3ProtocolTest) OutputService3TestCaseOperation1(input *OutputService3TestShapeOutputService3TestCaseOperation1Input) (*OutputService3TestShapeOutputService3TestCaseOperation1Output, error) { req, out := c.OutputService3TestCaseOperation1Request(input) err := req.Send() @@ -505,6 +545,8 @@ const opOutputService4TestCaseOperation1 = "OperationName" // value can be used to capture response data after the request's "Send" method // is called. // +// See OutputService4TestCaseOperation1 for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -538,6 +580,14 @@ func (c *OutputService4ProtocolTest) OutputService4TestCaseOperation1Request(inp return } +// OutputService4TestCaseOperation1 API operation for . +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for 's +// API operation OutputService4TestCaseOperation1 for usage and error information. func (c *OutputService4ProtocolTest) OutputService4TestCaseOperation1(input *OutputService4TestShapeOutputService4TestCaseOperation1Input) (*OutputService4TestShapeOutputService4TestCaseOperation1Output, error) { req, out := c.OutputService4TestCaseOperation1Request(input) err := req.Send() @@ -615,6 +665,8 @@ const opOutputService5TestCaseOperation1 = "OperationName" // value can be used to capture response data after the request's "Send" method // is called. // +// See OutputService5TestCaseOperation1 for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -648,6 +700,14 @@ func (c *OutputService5ProtocolTest) OutputService5TestCaseOperation1Request(inp return } +// OutputService5TestCaseOperation1 API operation for . +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for 's +// API operation OutputService5TestCaseOperation1 for usage and error information. func (c *OutputService5ProtocolTest) OutputService5TestCaseOperation1(input *OutputService5TestShapeOutputService5TestCaseOperation1Input) (*OutputService5TestShapeOutputService5TestCaseOperation1Output, error) { req, out := c.OutputService5TestCaseOperation1Request(input) err := req.Send() @@ -725,6 +785,8 @@ const opOutputService6TestCaseOperation1 = "OperationName" // value can be used to capture response data after the request's "Send" method // is called. // +// See OutputService6TestCaseOperation1 for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -758,6 +820,14 @@ func (c *OutputService6ProtocolTest) OutputService6TestCaseOperation1Request(inp return } +// OutputService6TestCaseOperation1 API operation for . +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for 's +// API operation OutputService6TestCaseOperation1 for usage and error information. func (c *OutputService6ProtocolTest) OutputService6TestCaseOperation1(input *OutputService6TestShapeOutputService6TestCaseOperation1Input) (*OutputService6TestShapeOutputService6TestCaseOperation1Output, error) { req, out := c.OutputService6TestCaseOperation1Request(input) err := req.Send() @@ -841,6 +911,8 @@ const opOutputService7TestCaseOperation1 = "OperationName" // value can be used to capture response data after the request's "Send" method // is called. // +// See OutputService7TestCaseOperation1 for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -874,6 +946,14 @@ func (c *OutputService7ProtocolTest) OutputService7TestCaseOperation1Request(inp return } +// OutputService7TestCaseOperation1 API operation for . +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for 's +// API operation OutputService7TestCaseOperation1 for usage and error information. func (c *OutputService7ProtocolTest) OutputService7TestCaseOperation1(input *OutputService7TestShapeOutputService7TestCaseOperation1Input) (*OutputService7TestShapeOutputService7TestCaseOperation1Output, error) { req, out := c.OutputService7TestCaseOperation1Request(input) err := req.Send() @@ -951,6 +1031,8 @@ const opOutputService8TestCaseOperation1 = "OperationName" // value can be used to capture response data after the request's "Send" method // is called. // +// See OutputService8TestCaseOperation1 for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -984,6 +1066,14 @@ func (c *OutputService8ProtocolTest) OutputService8TestCaseOperation1Request(inp return } +// OutputService8TestCaseOperation1 API operation for . +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for 's +// API operation OutputService8TestCaseOperation1 for usage and error information. func (c *OutputService8ProtocolTest) OutputService8TestCaseOperation1(input *OutputService8TestShapeOutputService8TestCaseOperation1Input) (*OutputService8TestShapeOutputService8TestCaseOperation1Output, error) { req, out := c.OutputService8TestCaseOperation1Request(input) err := req.Send() @@ -1061,6 +1151,8 @@ const opOutputService9TestCaseOperation1 = "OperationName" // value can be used to capture response data after the request's "Send" method // is called. // +// See OutputService9TestCaseOperation1 for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1094,6 +1186,14 @@ func (c *OutputService9ProtocolTest) OutputService9TestCaseOperation1Request(inp return } +// OutputService9TestCaseOperation1 API operation for . +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for 's +// API operation OutputService9TestCaseOperation1 for usage and error information. func (c *OutputService9ProtocolTest) OutputService9TestCaseOperation1(input *OutputService9TestShapeOutputService9TestCaseOperation1Input) (*OutputService9TestShapeOutputService9TestCaseOperation1Output, error) { req, out := c.OutputService9TestCaseOperation1Request(input) err := req.Send() @@ -1179,6 +1279,8 @@ const opOutputService10TestCaseOperation1 = "OperationName" // value can be used to capture response data after the request's "Send" method // is called. // +// See OutputService10TestCaseOperation1 for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1212,6 +1314,14 @@ func (c *OutputService10ProtocolTest) OutputService10TestCaseOperation1Request(i return } +// OutputService10TestCaseOperation1 API operation for . +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for 's +// API operation OutputService10TestCaseOperation1 for usage and error information. func (c *OutputService10ProtocolTest) OutputService10TestCaseOperation1(input *OutputService10TestShapeOutputService10TestCaseOperation1Input) (*OutputService10TestShapeOutputService10TestCaseOperation1Output, error) { req, out := c.OutputService10TestCaseOperation1Request(input) err := req.Send() @@ -1289,6 +1399,8 @@ const opOutputService11TestCaseOperation1 = "OperationName" // value can be used to capture response data after the request's "Send" method // is called. // +// See OutputService11TestCaseOperation1 for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1322,6 +1434,14 @@ func (c *OutputService11ProtocolTest) OutputService11TestCaseOperation1Request(i return } +// OutputService11TestCaseOperation1 API operation for . +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for 's +// API operation OutputService11TestCaseOperation1 for usage and error information. func (c *OutputService11ProtocolTest) OutputService11TestCaseOperation1(input *OutputService11TestShapeOutputService11TestCaseOperation1Input) (*OutputService11TestShapeOutputService11TestCaseOperation1Output, error) { req, out := c.OutputService11TestCaseOperation1Request(input) err := req.Send() @@ -1415,6 +1535,8 @@ const opOutputService12TestCaseOperation1 = "OperationName" // value can be used to capture response data after the request's "Send" method // is called. // +// See OutputService12TestCaseOperation1 for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1448,6 +1570,14 @@ func (c *OutputService12ProtocolTest) OutputService12TestCaseOperation1Request(i return } +// OutputService12TestCaseOperation1 API operation for . +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for 's +// API operation OutputService12TestCaseOperation1 for usage and error information. 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..10109b0a67e 100644 --- a/service/acm/api.go +++ b/service/acm/api.go @@ -20,6 +20,8 @@ const opAddTagsToCertificate = "AddTagsToCertificate" // value can be used to capture response data after the request's "Send" method // is called. // +// See AddTagsToCertificate for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -56,6 +58,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 +77,29 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Certificate Manager's +// API operation AddTagsToCertificate for usage and error information. +// +// Returned Error Codes: +// * ResourceNotFoundException +// The specified certificate cannot be found in the caller's account, or the +// caller's account cannot be found. +// +// * InvalidArnException +// The requested Amazon Resource Name (ARN) does not refer to an existing resource. +// +// * InvalidTagException +// One or both of the values that make up the key-value pair is not valid. For +// example, you cannot specify a tag value that begins with aws:. +// +// * TooManyTagsException +// The request contains too many tags. Try the request again with fewer tags. +// func (c *ACM) AddTagsToCertificate(input *AddTagsToCertificateInput) (*AddTagsToCertificateOutput, error) { req, out := c.AddTagsToCertificateRequest(input) err := req.Send() @@ -86,6 +113,8 @@ const opDeleteCertificate = "DeleteCertificate" // value can be used to capture response data after the request's "Send" method // is called. // +// See DeleteCertificate for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -122,6 +151,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 +162,26 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Certificate Manager's +// API operation DeleteCertificate for usage and error information. +// +// Returned Error Codes: +// * ResourceNotFoundException +// The specified certificate cannot be found in the caller's account, or the +// caller's account cannot be found. +// +// * ResourceInUseException +// The certificate is in use by another AWS service in the caller's account. +// Remove the association and try again. +// +// * InvalidArnException +// The requested Amazon Resource Name (ARN) does not refer to an existing resource. +// func (c *ACM) DeleteCertificate(input *DeleteCertificateInput) (*DeleteCertificateOutput, error) { req, out := c.DeleteCertificateRequest(input) err := req.Send() @@ -144,6 +195,8 @@ const opDescribeCertificate = "DescribeCertificate" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeCertificate for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -178,11 +231,29 @@ 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). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Certificate Manager's +// API operation DescribeCertificate for usage and error information. +// +// Returned Error Codes: +// * ResourceNotFoundException +// The specified certificate cannot be found in the caller's account, or the +// caller's account cannot be found. +// +// * InvalidArnException +// The requested Amazon Resource Name (ARN) does not refer to an existing resource. +// func (c *ACM) DescribeCertificate(input *DescribeCertificateInput) (*DescribeCertificateOutput, error) { req, out := c.DescribeCertificateRequest(input) err := req.Send() @@ -196,6 +267,8 @@ const opGetCertificate = "GetCertificate" // value can be used to capture response data after the request's "Send" method // is called. // +// See GetCertificate for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -230,6 +303,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 +314,26 @@ func (c *ACM) GetCertificateRequest(input *GetCertificateInput) (req *request.Re // // Currently, ACM Certificates can be used only with Elastic Load Balancing // and Amazon CloudFront. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Certificate Manager's +// API operation GetCertificate for usage and error information. +// +// Returned Error Codes: +// * ResourceNotFoundException +// The specified certificate cannot be found in the caller's account, or the +// caller's account cannot be found. +// +// * RequestInProgressException +// The certificate request is in process and the certificate in your account +// has not yet been issued. +// +// * InvalidArnException +// The requested Amazon Resource Name (ARN) does not refer to an existing resource. +// func (c *ACM) GetCertificate(input *GetCertificateInput) (*GetCertificateOutput, error) { req, out := c.GetCertificateRequest(input) err := req.Send() @@ -252,6 +347,8 @@ const opListCertificates = "ListCertificates" // value can be used to capture response data after the request's "Send" method // is called. // +// See ListCertificates for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -292,9 +389,18 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Certificate Manager's +// API operation ListCertificates for usage and error information. func (c *ACM) ListCertificates(input *ListCertificatesInput) (*ListCertificatesOutput, error) { req, out := c.ListCertificatesRequest(input) err := req.Send() @@ -333,6 +439,8 @@ const opListTagsForCertificate = "ListTagsForCertificate" // value can be used to capture response data after the request's "Send" method // is called. // +// See ListTagsForCertificate for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -367,10 +475,28 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Certificate Manager's +// API operation ListTagsForCertificate for usage and error information. +// +// Returned Error Codes: +// * ResourceNotFoundException +// The specified certificate cannot be found in the caller's account, or the +// caller's account cannot be found. +// +// * InvalidArnException +// The requested Amazon Resource Name (ARN) does not refer to an existing resource. +// func (c *ACM) ListTagsForCertificate(input *ListTagsForCertificateInput) (*ListTagsForCertificateOutput, error) { req, out := c.ListTagsForCertificateRequest(input) err := req.Send() @@ -384,6 +510,8 @@ const opRemoveTagsFromCertificate = "RemoveTagsFromCertificate" // value can be used to capture response data after the request's "Send" method // is called. // +// See RemoveTagsFromCertificate for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -420,6 +548,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 +558,26 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Certificate Manager's +// API operation RemoveTagsFromCertificate for usage and error information. +// +// Returned Error Codes: +// * ResourceNotFoundException +// The specified certificate cannot be found in the caller's account, or the +// caller's account cannot be found. +// +// * InvalidArnException +// The requested Amazon Resource Name (ARN) does not refer to an existing resource. +// +// * InvalidTagException +// One or both of the values that make up the key-value pair is not valid. For +// example, you cannot specify a tag value that begins with aws:. +// func (c *ACM) RemoveTagsFromCertificate(input *RemoveTagsFromCertificateInput) (*RemoveTagsFromCertificateOutput, error) { req, out := c.RemoveTagsFromCertificateRequest(input) err := req.Send() @@ -441,6 +591,8 @@ const opRequestCertificate = "RequestCertificate" // value can be used to capture response data after the request's "Send" method // is called. // +// See RequestCertificate for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -475,6 +627,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 +636,25 @@ 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). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Certificate Manager's +// API operation RequestCertificate for usage and error information. +// +// Returned Error Codes: +// * LimitExceededException +// An ACM limit has been exceeded. For example, you may have input more domains +// than are allowed or you've requested too many certificates for your account. +// See the exception message returned by ACM to determine which limit you have +// violated. For more information about ACM limits, see the Limits (http://docs.aws.amazon.com/acm/latest/userguide/acm-limits.html) +// topic. +// +// * InvalidDomainValidationOptionsException +// One or more values in the DomainValidationOption structure is incorrect. +// func (c *ACM) RequestCertificate(input *RequestCertificateInput) (*RequestCertificateOutput, error) { req, out := c.RequestCertificateRequest(input) err := req.Send() @@ -495,6 +668,8 @@ const opResendValidationEmail = "ResendValidationEmail" // value can be used to capture response data after the request's "Send" method // is called. // +// See ResendValidationEmail for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -531,6 +706,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 +717,31 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Certificate Manager's +// API operation ResendValidationEmail for usage and error information. +// +// Returned Error Codes: +// * ResourceNotFoundException +// The specified certificate cannot be found in the caller's account, or the +// caller's account cannot be found. +// +// * InvalidStateException +// Processing has reached an invalid state. For example, this exception can +// occur if the specified domain is not using email validation, or the current +// certificate status does not permit the requested operation. See the exception +// message returned by ACM to determine which state is not valid. +// +// * InvalidArnException +// The requested Amazon Resource Name (ARN) does not refer to an existing resource. +// +// * InvalidDomainValidationOptionsException +// One or more values in the DomainValidationOption structure is incorrect. +// 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..8b485819178 100644 --- a/service/apigateway/api.go +++ b/service/apigateway/api.go @@ -19,6 +19,8 @@ const opCreateApiKey = "CreateApiKey" // value can be used to capture response data after the request's "Send" method // is called. // +// See CreateApiKey for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -53,9 +55,38 @@ 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) +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon API Gateway's +// API operation CreateApiKey for usage and error information. +// +// Returned Error Codes: +// * UnauthorizedException + +// +// * NotFoundException + +// +// * TooManyRequestsException + +// +// * LimitExceededException + +// +// * BadRequestException + +// +// * ConflictException + +// func (c *APIGateway) CreateApiKey(input *CreateApiKeyInput) (*ApiKey, error) { req, out := c.CreateApiKeyRequest(input) err := req.Send() @@ -69,6 +100,8 @@ const opCreateAuthorizer = "CreateAuthorizer" // value can be used to capture response data after the request's "Send" method // is called. // +// See CreateAuthorizer for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -103,9 +136,35 @@ 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) +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon API Gateway's +// API operation CreateAuthorizer for usage and error information. +// +// Returned Error Codes: +// * BadRequestException + +// +// * UnauthorizedException + +// +// * NotFoundException + +// +// * LimitExceededException + +// +// * TooManyRequestsException + +// func (c *APIGateway) CreateAuthorizer(input *CreateAuthorizerInput) (*Authorizer, error) { req, out := c.CreateAuthorizerRequest(input) err := req.Send() @@ -119,6 +178,8 @@ const opCreateBasePathMapping = "CreateBasePathMapping" // value can be used to capture response data after the request's "Send" method // is called. // +// See CreateBasePathMapping for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -153,7 +214,33 @@ func (c *APIGateway) CreateBasePathMappingRequest(input *CreateBasePathMappingIn return } +// CreateBasePathMapping API operation for Amazon API Gateway. +// // Creates a new BasePathMapping resource. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon API Gateway's +// API operation CreateBasePathMapping for usage and error information. +// +// Returned Error Codes: +// * UnauthorizedException + +// +// * ConflictException + +// +// * BadRequestException + +// +// * NotFoundException + +// +// * TooManyRequestsException + +// func (c *APIGateway) CreateBasePathMapping(input *CreateBasePathMappingInput) (*BasePathMapping, error) { req, out := c.CreateBasePathMappingRequest(input) err := req.Send() @@ -167,6 +254,8 @@ const opCreateDeployment = "CreateDeployment" // value can be used to capture response data after the request's "Send" method // is called. // +// See CreateDeployment for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -201,8 +290,40 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon API Gateway's +// API operation CreateDeployment for usage and error information. +// +// Returned Error Codes: +// * UnauthorizedException + +// +// * BadRequestException + +// +// * NotFoundException + +// +// * ConflictException + +// +// * LimitExceededException + +// +// * TooManyRequestsException + +// +// * ServiceUnavailableException + +// func (c *APIGateway) CreateDeployment(input *CreateDeploymentInput) (*Deployment, error) { req, out := c.CreateDeploymentRequest(input) err := req.Send() @@ -216,6 +337,8 @@ const opCreateDomainName = "CreateDomainName" // value can be used to capture response data after the request's "Send" method // is called. // +// See CreateDomainName for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -250,7 +373,30 @@ func (c *APIGateway) CreateDomainNameRequest(input *CreateDomainNameInput) (req return } +// CreateDomainName API operation for Amazon API Gateway. +// // Creates a new domain name. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon API Gateway's +// API operation CreateDomainName for usage and error information. +// +// Returned Error Codes: +// * UnauthorizedException + +// +// * BadRequestException + +// +// * ConflictException + +// +// * TooManyRequestsException + +// func (c *APIGateway) CreateDomainName(input *CreateDomainNameInput) (*DomainName, error) { req, out := c.CreateDomainNameRequest(input) err := req.Send() @@ -264,6 +410,8 @@ const opCreateModel = "CreateModel" // value can be used to capture response data after the request's "Send" method // is called. // +// See CreateModel for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -298,7 +446,36 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon API Gateway's +// API operation CreateModel for usage and error information. +// +// Returned Error Codes: +// * BadRequestException + +// +// * UnauthorizedException + +// +// * NotFoundException + +// +// * ConflictException + +// +// * LimitExceededException + +// +// * TooManyRequestsException + +// func (c *APIGateway) CreateModel(input *CreateModelInput) (*Model, error) { req, out := c.CreateModelRequest(input) err := req.Send() @@ -312,6 +489,8 @@ const opCreateResource = "CreateResource" // value can be used to capture response data after the request's "Send" method // is called. // +// See CreateResource for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -346,7 +525,36 @@ func (c *APIGateway) CreateResourceRequest(input *CreateResourceInput) (req *req return } +// CreateResource API operation for Amazon API Gateway. +// // Creates a Resource resource. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon API Gateway's +// API operation CreateResource for usage and error information. +// +// Returned Error Codes: +// * UnauthorizedException + +// +// * NotFoundException + +// +// * ConflictException + +// +// * LimitExceededException + +// +// * BadRequestException + +// +// * TooManyRequestsException + +// func (c *APIGateway) CreateResource(input *CreateResourceInput) (*Resource, error) { req, out := c.CreateResourceRequest(input) err := req.Send() @@ -360,6 +568,8 @@ const opCreateRestApi = "CreateRestApi" // value can be used to capture response data after the request's "Send" method // is called. // +// See CreateRestApi for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -394,7 +604,30 @@ func (c *APIGateway) CreateRestApiRequest(input *CreateRestApiInput) (req *reque return } +// CreateRestApi API operation for Amazon API Gateway. +// // Creates a new RestApi resource. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon API Gateway's +// API operation CreateRestApi for usage and error information. +// +// Returned Error Codes: +// * UnauthorizedException + +// +// * LimitExceededException + +// +// * BadRequestException + +// +// * TooManyRequestsException + +// func (c *APIGateway) CreateRestApi(input *CreateRestApiInput) (*RestApi, error) { req, out := c.CreateRestApiRequest(input) err := req.Send() @@ -408,6 +641,8 @@ const opCreateStage = "CreateStage" // value can be used to capture response data after the request's "Send" method // is called. // +// See CreateStage for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -442,8 +677,37 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon API Gateway's +// API operation CreateStage for usage and error information. +// +// Returned Error Codes: +// * UnauthorizedException + +// +// * BadRequestException + +// +// * NotFoundException + +// +// * ConflictException + +// +// * LimitExceededException + +// +// * TooManyRequestsException + +// func (c *APIGateway) CreateStage(input *CreateStageInput) (*Stage, error) { req, out := c.CreateStageRequest(input) err := req.Send() @@ -457,6 +721,8 @@ const opCreateUsagePlan = "CreateUsagePlan" // value can be used to capture response data after the request's "Send" method // is called. // +// See CreateUsagePlan for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -491,8 +757,34 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon API Gateway's +// API operation CreateUsagePlan for usage and error information. +// +// Returned Error Codes: +// * BadRequestException + +// +// * UnauthorizedException + +// +// * TooManyRequestsException + +// +// * LimitExceededException + +// +// * ConflictException + +// func (c *APIGateway) CreateUsagePlan(input *CreateUsagePlanInput) (*UsagePlan, error) { req, out := c.CreateUsagePlanRequest(input) err := req.Send() @@ -506,6 +798,8 @@ const opCreateUsagePlanKey = "CreateUsagePlanKey" // value can be used to capture response data after the request's "Send" method // is called. // +// See CreateUsagePlanKey for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -540,7 +834,33 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon API Gateway's +// API operation CreateUsagePlanKey for usage and error information. +// +// Returned Error Codes: +// * BadRequestException + +// +// * ConflictException + +// +// * UnauthorizedException + +// +// * NotFoundException + +// +// * TooManyRequestsException + +// func (c *APIGateway) CreateUsagePlanKey(input *CreateUsagePlanKeyInput) (*UsagePlanKey, error) { req, out := c.CreateUsagePlanKeyRequest(input) err := req.Send() @@ -554,6 +874,8 @@ const opDeleteApiKey = "DeleteApiKey" // value can be used to capture response data after the request's "Send" method // is called. // +// See DeleteApiKey for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -590,7 +912,27 @@ func (c *APIGateway) DeleteApiKeyRequest(input *DeleteApiKeyInput) (req *request return } +// DeleteApiKey API operation for Amazon API Gateway. +// // Deletes the ApiKey resource. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon API Gateway's +// API operation DeleteApiKey for usage and error information. +// +// Returned Error Codes: +// * UnauthorizedException + +// +// * NotFoundException + +// +// * TooManyRequestsException + +// func (c *APIGateway) DeleteApiKey(input *DeleteApiKeyInput) (*DeleteApiKeyOutput, error) { req, out := c.DeleteApiKeyRequest(input) err := req.Send() @@ -604,6 +946,8 @@ const opDeleteAuthorizer = "DeleteAuthorizer" // value can be used to capture response data after the request's "Send" method // is called. // +// See DeleteAuthorizer for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -640,9 +984,35 @@ 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) +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon API Gateway's +// API operation DeleteAuthorizer for usage and error information. +// +// Returned Error Codes: +// * UnauthorizedException + +// +// * NotFoundException + +// +// * TooManyRequestsException + +// +// * BadRequestException + +// +// * ConflictException + +// func (c *APIGateway) DeleteAuthorizer(input *DeleteAuthorizerInput) (*DeleteAuthorizerOutput, error) { req, out := c.DeleteAuthorizerRequest(input) err := req.Send() @@ -656,6 +1026,8 @@ const opDeleteBasePathMapping = "DeleteBasePathMapping" // value can be used to capture response data after the request's "Send" method // is called. // +// See DeleteBasePathMapping for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -692,7 +1064,27 @@ func (c *APIGateway) DeleteBasePathMappingRequest(input *DeleteBasePathMappingIn return } +// DeleteBasePathMapping API operation for Amazon API Gateway. +// // Deletes the BasePathMapping resource. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon API Gateway's +// API operation DeleteBasePathMapping for usage and error information. +// +// Returned Error Codes: +// * UnauthorizedException + +// +// * NotFoundException + +// +// * TooManyRequestsException + +// func (c *APIGateway) DeleteBasePathMapping(input *DeleteBasePathMappingInput) (*DeleteBasePathMappingOutput, error) { req, out := c.DeleteBasePathMappingRequest(input) err := req.Send() @@ -706,6 +1098,8 @@ const opDeleteClientCertificate = "DeleteClientCertificate" // value can be used to capture response data after the request's "Send" method // is called. // +// See DeleteClientCertificate for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -742,7 +1136,30 @@ func (c *APIGateway) DeleteClientCertificateRequest(input *DeleteClientCertifica return } +// DeleteClientCertificate API operation for Amazon API Gateway. +// // Deletes the ClientCertificate resource. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon API Gateway's +// API operation DeleteClientCertificate for usage and error information. +// +// Returned Error Codes: +// * UnauthorizedException + +// +// * TooManyRequestsException + +// +// * BadRequestException + +// +// * NotFoundException + +// func (c *APIGateway) DeleteClientCertificate(input *DeleteClientCertificateInput) (*DeleteClientCertificateOutput, error) { req, out := c.DeleteClientCertificateRequest(input) err := req.Send() @@ -756,6 +1173,8 @@ const opDeleteDeployment = "DeleteDeployment" // value can be used to capture response data after the request's "Send" method // is called. // +// See DeleteDeployment for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -792,8 +1211,31 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon API Gateway's +// API operation DeleteDeployment for usage and error information. +// +// Returned Error Codes: +// * UnauthorizedException + +// +// * NotFoundException + +// +// * BadRequestException + +// +// * TooManyRequestsException + +// func (c *APIGateway) DeleteDeployment(input *DeleteDeploymentInput) (*DeleteDeploymentOutput, error) { req, out := c.DeleteDeploymentRequest(input) err := req.Send() @@ -807,6 +1249,8 @@ const opDeleteDomainName = "DeleteDomainName" // value can be used to capture response data after the request's "Send" method // is called. // +// See DeleteDomainName for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -843,7 +1287,27 @@ func (c *APIGateway) DeleteDomainNameRequest(input *DeleteDomainNameInput) (req return } +// DeleteDomainName API operation for Amazon API Gateway. +// // Deletes the DomainName resource. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon API Gateway's +// API operation DeleteDomainName for usage and error information. +// +// Returned Error Codes: +// * UnauthorizedException + +// +// * NotFoundException + +// +// * TooManyRequestsException + +// func (c *APIGateway) DeleteDomainName(input *DeleteDomainNameInput) (*DeleteDomainNameOutput, error) { req, out := c.DeleteDomainNameRequest(input) err := req.Send() @@ -857,6 +1321,8 @@ const opDeleteIntegration = "DeleteIntegration" // value can be used to capture response data after the request's "Send" method // is called. // +// See DeleteIntegration for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -893,20 +1359,45 @@ func (c *APIGateway) DeleteIntegrationRequest(input *DeleteIntegrationInput) (re return } +// DeleteIntegration API operation for Amazon API Gateway. +// // Represents a delete integration. -func (c *APIGateway) DeleteIntegration(input *DeleteIntegrationInput) (*DeleteIntegrationOutput, error) { - req, out := c.DeleteIntegrationRequest(input) - err := req.Send() - return out, err -} - -const opDeleteIntegrationResponse = "DeleteIntegrationResponse" +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon API Gateway's +// API operation DeleteIntegration for usage and error information. +// +// Returned Error Codes: +// * UnauthorizedException + +// +// * NotFoundException + +// +// * TooManyRequestsException + +// +// * ConflictException + +// +func (c *APIGateway) DeleteIntegration(input *DeleteIntegrationInput) (*DeleteIntegrationOutput, error) { + req, out := c.DeleteIntegrationRequest(input) + err := req.Send() + return out, err +} + +const opDeleteIntegrationResponse = "DeleteIntegrationResponse" // DeleteIntegrationResponseRequest generates a "aws/request.Request" representing the // client's request for the DeleteIntegrationResponse operation. The "output" return // value can be used to capture response data after the request's "Send" method // is called. // +// See DeleteIntegrationResponse for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -943,7 +1434,33 @@ func (c *APIGateway) DeleteIntegrationResponseRequest(input *DeleteIntegrationRe return } +// DeleteIntegrationResponse API operation for Amazon API Gateway. +// // Represents a delete integration response. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon API Gateway's +// API operation DeleteIntegrationResponse for usage and error information. +// +// Returned Error Codes: +// * UnauthorizedException + +// +// * NotFoundException + +// +// * TooManyRequestsException + +// +// * BadRequestException + +// +// * ConflictException + +// func (c *APIGateway) DeleteIntegrationResponse(input *DeleteIntegrationResponseInput) (*DeleteIntegrationResponseOutput, error) { req, out := c.DeleteIntegrationResponseRequest(input) err := req.Send() @@ -957,6 +1474,8 @@ const opDeleteMethod = "DeleteMethod" // value can be used to capture response data after the request's "Send" method // is called. // +// See DeleteMethod for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -993,7 +1512,30 @@ func (c *APIGateway) DeleteMethodRequest(input *DeleteMethodInput) (req *request return } +// DeleteMethod API operation for Amazon API Gateway. +// // Deletes an existing Method resource. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon API Gateway's +// API operation DeleteMethod for usage and error information. +// +// Returned Error Codes: +// * UnauthorizedException + +// +// * NotFoundException + +// +// * TooManyRequestsException + +// +// * ConflictException + +// func (c *APIGateway) DeleteMethod(input *DeleteMethodInput) (*DeleteMethodOutput, error) { req, out := c.DeleteMethodRequest(input) err := req.Send() @@ -1007,6 +1549,8 @@ const opDeleteMethodResponse = "DeleteMethodResponse" // value can be used to capture response data after the request's "Send" method // is called. // +// See DeleteMethodResponse for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1043,7 +1587,33 @@ func (c *APIGateway) DeleteMethodResponseRequest(input *DeleteMethodResponseInpu return } +// DeleteMethodResponse API operation for Amazon API Gateway. +// // Deletes an existing MethodResponse resource. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon API Gateway's +// API operation DeleteMethodResponse for usage and error information. +// +// Returned Error Codes: +// * UnauthorizedException + +// +// * NotFoundException + +// +// * TooManyRequestsException + +// +// * BadRequestException + +// +// * ConflictException + +// func (c *APIGateway) DeleteMethodResponse(input *DeleteMethodResponseInput) (*DeleteMethodResponseOutput, error) { req, out := c.DeleteMethodResponseRequest(input) err := req.Send() @@ -1057,6 +1627,8 @@ const opDeleteModel = "DeleteModel" // value can be used to capture response data after the request's "Send" method // is called. // +// See DeleteModel for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1093,7 +1665,33 @@ func (c *APIGateway) DeleteModelRequest(input *DeleteModelInput) (req *request.R return } +// DeleteModel API operation for Amazon API Gateway. +// // Deletes a model. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon API Gateway's +// API operation DeleteModel for usage and error information. +// +// Returned Error Codes: +// * UnauthorizedException + +// +// * NotFoundException + +// +// * TooManyRequestsException + +// +// * BadRequestException + +// +// * ConflictException + +// func (c *APIGateway) DeleteModel(input *DeleteModelInput) (*DeleteModelOutput, error) { req, out := c.DeleteModelRequest(input) err := req.Send() @@ -1107,6 +1705,8 @@ const opDeleteResource = "DeleteResource" // value can be used to capture response data after the request's "Send" method // is called. // +// See DeleteResource for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1143,7 +1743,33 @@ func (c *APIGateway) DeleteResourceRequest(input *DeleteResourceInput) (req *req return } +// DeleteResource API operation for Amazon API Gateway. +// // Deletes a Resource resource. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon API Gateway's +// API operation DeleteResource for usage and error information. +// +// Returned Error Codes: +// * UnauthorizedException + +// +// * NotFoundException + +// +// * BadRequestException + +// +// * ConflictException + +// +// * TooManyRequestsException + +// func (c *APIGateway) DeleteResource(input *DeleteResourceInput) (*DeleteResourceOutput, error) { req, out := c.DeleteResourceRequest(input) err := req.Send() @@ -1157,6 +1783,8 @@ const opDeleteRestApi = "DeleteRestApi" // value can be used to capture response data after the request's "Send" method // is called. // +// See DeleteRestApi for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1193,7 +1821,30 @@ func (c *APIGateway) DeleteRestApiRequest(input *DeleteRestApiInput) (req *reque return } +// DeleteRestApi API operation for Amazon API Gateway. +// // Deletes the specified API. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon API Gateway's +// API operation DeleteRestApi for usage and error information. +// +// Returned Error Codes: +// * UnauthorizedException + +// +// * NotFoundException + +// +// * TooManyRequestsException + +// +// * BadRequestException + +// func (c *APIGateway) DeleteRestApi(input *DeleteRestApiInput) (*DeleteRestApiOutput, error) { req, out := c.DeleteRestApiRequest(input) err := req.Send() @@ -1207,6 +1858,8 @@ const opDeleteStage = "DeleteStage" // value can be used to capture response data after the request's "Send" method // is called. // +// See DeleteStage for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1243,7 +1896,30 @@ func (c *APIGateway) DeleteStageRequest(input *DeleteStageInput) (req *request.R return } +// DeleteStage API operation for Amazon API Gateway. +// // Deletes a Stage resource. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon API Gateway's +// API operation DeleteStage for usage and error information. +// +// Returned Error Codes: +// * UnauthorizedException + +// +// * NotFoundException + +// +// * TooManyRequestsException + +// +// * BadRequestException + +// func (c *APIGateway) DeleteStage(input *DeleteStageInput) (*DeleteStageOutput, error) { req, out := c.DeleteStageRequest(input) err := req.Send() @@ -1257,6 +1933,8 @@ const opDeleteUsagePlan = "DeleteUsagePlan" // value can be used to capture response data after the request's "Send" method // is called. // +// See DeleteUsagePlan for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1293,7 +1971,30 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon API Gateway's +// API operation DeleteUsagePlan for usage and error information. +// +// Returned Error Codes: +// * UnauthorizedException + +// +// * TooManyRequestsException + +// +// * BadRequestException + +// +// * NotFoundException + +// func (c *APIGateway) DeleteUsagePlan(input *DeleteUsagePlanInput) (*DeleteUsagePlanOutput, error) { req, out := c.DeleteUsagePlanRequest(input) err := req.Send() @@ -1307,6 +2008,8 @@ const opDeleteUsagePlanKey = "DeleteUsagePlanKey" // value can be used to capture response data after the request's "Send" method // is called. // +// See DeleteUsagePlanKey for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1343,8 +2046,34 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon API Gateway's +// API operation DeleteUsagePlanKey for usage and error information. +// +// Returned Error Codes: +// * BadRequestException + +// +// * ConflictException + +// +// * UnauthorizedException + +// +// * NotFoundException + +// +// * TooManyRequestsException + +// func (c *APIGateway) DeleteUsagePlanKey(input *DeleteUsagePlanKeyInput) (*DeleteUsagePlanKeyOutput, error) { req, out := c.DeleteUsagePlanKeyRequest(input) err := req.Send() @@ -1358,6 +2087,8 @@ const opFlushStageAuthorizersCache = "FlushStageAuthorizersCache" // value can be used to capture response data after the request's "Send" method // is called. // +// See FlushStageAuthorizersCache for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1394,7 +2125,30 @@ func (c *APIGateway) FlushStageAuthorizersCacheRequest(input *FlushStageAuthoriz return } +// FlushStageAuthorizersCache API operation for Amazon API Gateway. +// // Flushes all authorizer cache entries on a stage. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon API Gateway's +// API operation FlushStageAuthorizersCache for usage and error information. +// +// Returned Error Codes: +// * UnauthorizedException + +// +// * NotFoundException + +// +// * BadRequestException + +// +// * TooManyRequestsException + +// func (c *APIGateway) FlushStageAuthorizersCache(input *FlushStageAuthorizersCacheInput) (*FlushStageAuthorizersCacheOutput, error) { req, out := c.FlushStageAuthorizersCacheRequest(input) err := req.Send() @@ -1408,6 +2162,8 @@ const opFlushStageCache = "FlushStageCache" // value can be used to capture response data after the request's "Send" method // is called. // +// See FlushStageCache for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1444,7 +2200,30 @@ func (c *APIGateway) FlushStageCacheRequest(input *FlushStageCacheInput) (req *r return } +// FlushStageCache API operation for Amazon API Gateway. +// // Flushes a stage's cache. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon API Gateway's +// API operation FlushStageCache for usage and error information. +// +// Returned Error Codes: +// * UnauthorizedException + +// +// * NotFoundException + +// +// * BadRequestException + +// +// * TooManyRequestsException + +// func (c *APIGateway) FlushStageCache(input *FlushStageCacheInput) (*FlushStageCacheOutput, error) { req, out := c.FlushStageCacheRequest(input) err := req.Send() @@ -1458,6 +2237,8 @@ const opGenerateClientCertificate = "GenerateClientCertificate" // value can be used to capture response data after the request's "Send" method // is called. // +// See GenerateClientCertificate for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1492,7 +2273,27 @@ func (c *APIGateway) GenerateClientCertificateRequest(input *GenerateClientCerti return } +// GenerateClientCertificate API operation for Amazon API Gateway. +// // Generates a ClientCertificate resource. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon API Gateway's +// API operation GenerateClientCertificate for usage and error information. +// +// Returned Error Codes: +// * UnauthorizedException + +// +// * TooManyRequestsException + +// +// * LimitExceededException + +// func (c *APIGateway) GenerateClientCertificate(input *GenerateClientCertificateInput) (*ClientCertificate, error) { req, out := c.GenerateClientCertificateRequest(input) err := req.Send() @@ -1506,6 +2307,8 @@ const opGetAccount = "GetAccount" // value can be used to capture response data after the request's "Send" method // is called. // +// See GetAccount for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1540,7 +2343,27 @@ func (c *APIGateway) GetAccountRequest(input *GetAccountInput) (req *request.Req return } +// GetAccount API operation for Amazon API Gateway. +// // Gets information about the current Account resource. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon API Gateway's +// API operation GetAccount for usage and error information. +// +// Returned Error Codes: +// * UnauthorizedException + +// +// * NotFoundException + +// +// * TooManyRequestsException + +// func (c *APIGateway) GetAccount(input *GetAccountInput) (*Account, error) { req, out := c.GetAccountRequest(input) err := req.Send() @@ -1554,6 +2377,8 @@ const opGetApiKey = "GetApiKey" // value can be used to capture response data after the request's "Send" method // is called. // +// See GetApiKey for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1588,7 +2413,27 @@ func (c *APIGateway) GetApiKeyRequest(input *GetApiKeyInput) (req *request.Reque return } +// GetApiKey API operation for Amazon API Gateway. +// // Gets information about the current ApiKey resource. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon API Gateway's +// API operation GetApiKey for usage and error information. +// +// Returned Error Codes: +// * UnauthorizedException + +// +// * NotFoundException + +// +// * TooManyRequestsException + +// func (c *APIGateway) GetApiKey(input *GetApiKeyInput) (*ApiKey, error) { req, out := c.GetApiKeyRequest(input) err := req.Send() @@ -1602,6 +2447,8 @@ const opGetApiKeys = "GetApiKeys" // value can be used to capture response data after the request's "Send" method // is called. // +// See GetApiKeys for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1642,7 +2489,27 @@ func (c *APIGateway) GetApiKeysRequest(input *GetApiKeysInput) (req *request.Req return } +// GetApiKeys API operation for Amazon API Gateway. +// // Gets information about the current ApiKeys resource. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon API Gateway's +// API operation GetApiKeys for usage and error information. +// +// Returned Error Codes: +// * BadRequestException + +// +// * UnauthorizedException + +// +// * TooManyRequestsException + +// func (c *APIGateway) GetApiKeys(input *GetApiKeysInput) (*GetApiKeysOutput, error) { req, out := c.GetApiKeysRequest(input) err := req.Send() @@ -1681,6 +2548,8 @@ const opGetAuthorizer = "GetAuthorizer" // value can be used to capture response data after the request's "Send" method // is called. // +// See GetAuthorizer for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1715,9 +2584,29 @@ 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) +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon API Gateway's +// API operation GetAuthorizer for usage and error information. +// +// Returned Error Codes: +// * UnauthorizedException + +// +// * NotFoundException + +// +// * TooManyRequestsException + +// func (c *APIGateway) GetAuthorizer(input *GetAuthorizerInput) (*Authorizer, error) { req, out := c.GetAuthorizerRequest(input) err := req.Send() @@ -1731,6 +2620,8 @@ const opGetAuthorizers = "GetAuthorizers" // value can be used to capture response data after the request's "Send" method // is called. // +// See GetAuthorizers for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1765,9 +2656,32 @@ 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) +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon API Gateway's +// API operation GetAuthorizers for usage and error information. +// +// Returned Error Codes: +// * BadRequestException + +// +// * UnauthorizedException + +// +// * NotFoundException + +// +// * TooManyRequestsException + +// func (c *APIGateway) GetAuthorizers(input *GetAuthorizersInput) (*GetAuthorizersOutput, error) { req, out := c.GetAuthorizersRequest(input) err := req.Send() @@ -1781,6 +2695,8 @@ const opGetBasePathMapping = "GetBasePathMapping" // value can be used to capture response data after the request's "Send" method // is called. // +// See GetBasePathMapping for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1815,7 +2731,27 @@ func (c *APIGateway) GetBasePathMappingRequest(input *GetBasePathMappingInput) ( return } +// GetBasePathMapping API operation for Amazon API Gateway. +// // Describe a BasePathMapping resource. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon API Gateway's +// API operation GetBasePathMapping for usage and error information. +// +// Returned Error Codes: +// * UnauthorizedException + +// +// * NotFoundException + +// +// * TooManyRequestsException + +// func (c *APIGateway) GetBasePathMapping(input *GetBasePathMappingInput) (*BasePathMapping, error) { req, out := c.GetBasePathMappingRequest(input) err := req.Send() @@ -1829,6 +2765,8 @@ const opGetBasePathMappings = "GetBasePathMappings" // value can be used to capture response data after the request's "Send" method // is called. // +// See GetBasePathMappings for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1869,11 +2807,31 @@ func (c *APIGateway) GetBasePathMappingsRequest(input *GetBasePathMappingsInput) return } +// GetBasePathMappings API operation for Amazon API Gateway. +// // Represents a collection of BasePathMapping resources. -func (c *APIGateway) GetBasePathMappings(input *GetBasePathMappingsInput) (*GetBasePathMappingsOutput, error) { - req, out := c.GetBasePathMappingsRequest(input) - err := req.Send() - return out, err +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon API Gateway's +// API operation GetBasePathMappings for usage and error information. +// +// Returned Error Codes: +// * UnauthorizedException + +// +// * NotFoundException + +// +// * TooManyRequestsException + +// +func (c *APIGateway) GetBasePathMappings(input *GetBasePathMappingsInput) (*GetBasePathMappingsOutput, error) { + req, out := c.GetBasePathMappingsRequest(input) + err := req.Send() + return out, err } // GetBasePathMappingsPages iterates over the pages of a GetBasePathMappings operation, @@ -1908,6 +2866,8 @@ const opGetClientCertificate = "GetClientCertificate" // value can be used to capture response data after the request's "Send" method // is called. // +// See GetClientCertificate for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1942,7 +2902,27 @@ func (c *APIGateway) GetClientCertificateRequest(input *GetClientCertificateInpu return } +// GetClientCertificate API operation for Amazon API Gateway. +// // Gets information about the current ClientCertificate resource. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon API Gateway's +// API operation GetClientCertificate for usage and error information. +// +// Returned Error Codes: +// * UnauthorizedException + +// +// * NotFoundException + +// +// * TooManyRequestsException + +// func (c *APIGateway) GetClientCertificate(input *GetClientCertificateInput) (*ClientCertificate, error) { req, out := c.GetClientCertificateRequest(input) err := req.Send() @@ -1956,6 +2936,8 @@ const opGetClientCertificates = "GetClientCertificates" // value can be used to capture response data after the request's "Send" method // is called. // +// See GetClientCertificates for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1996,7 +2978,27 @@ func (c *APIGateway) GetClientCertificatesRequest(input *GetClientCertificatesIn return } +// GetClientCertificates API operation for Amazon API Gateway. +// // Gets a collection of ClientCertificate resources. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon API Gateway's +// API operation GetClientCertificates for usage and error information. +// +// Returned Error Codes: +// * BadRequestException + +// +// * UnauthorizedException + +// +// * TooManyRequestsException + +// func (c *APIGateway) GetClientCertificates(input *GetClientCertificatesInput) (*GetClientCertificatesOutput, error) { req, out := c.GetClientCertificatesRequest(input) err := req.Send() @@ -2035,6 +3037,8 @@ const opGetDeployment = "GetDeployment" // value can be used to capture response data after the request's "Send" method // is called. // +// See GetDeployment for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -2069,7 +3073,30 @@ func (c *APIGateway) GetDeploymentRequest(input *GetDeploymentInput) (req *reque return } +// GetDeployment API operation for Amazon API Gateway. +// // Gets information about a Deployment resource. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon API Gateway's +// API operation GetDeployment for usage and error information. +// +// Returned Error Codes: +// * UnauthorizedException + +// +// * NotFoundException + +// +// * TooManyRequestsException + +// +// * ServiceUnavailableException + +// func (c *APIGateway) GetDeployment(input *GetDeploymentInput) (*Deployment, error) { req, out := c.GetDeploymentRequest(input) err := req.Send() @@ -2083,6 +3110,8 @@ const opGetDeployments = "GetDeployments" // value can be used to capture response data after the request's "Send" method // is called. // +// See GetDeployments for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -2123,7 +3152,30 @@ func (c *APIGateway) GetDeploymentsRequest(input *GetDeploymentsInput) (req *req return } +// GetDeployments API operation for Amazon API Gateway. +// // Gets information about a Deployments collection. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon API Gateway's +// API operation GetDeployments for usage and error information. +// +// Returned Error Codes: +// * BadRequestException + +// +// * UnauthorizedException + +// +// * TooManyRequestsException + +// +// * ServiceUnavailableException + +// func (c *APIGateway) GetDeployments(input *GetDeploymentsInput) (*GetDeploymentsOutput, error) { req, out := c.GetDeploymentsRequest(input) err := req.Send() @@ -2162,6 +3214,8 @@ const opGetDomainName = "GetDomainName" // value can be used to capture response data after the request's "Send" method // is called. // +// See GetDomainName for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -2196,8 +3250,31 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon API Gateway's +// API operation GetDomainName for usage and error information. +// +// Returned Error Codes: +// * UnauthorizedException + +// +// * NotFoundException + +// +// * ServiceUnavailableException + +// +// * TooManyRequestsException + +// func (c *APIGateway) GetDomainName(input *GetDomainNameInput) (*DomainName, error) { req, out := c.GetDomainNameRequest(input) err := req.Send() @@ -2211,6 +3288,8 @@ const opGetDomainNames = "GetDomainNames" // value can be used to capture response data after the request's "Send" method // is called. // +// See GetDomainNames for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -2251,7 +3330,27 @@ func (c *APIGateway) GetDomainNamesRequest(input *GetDomainNamesInput) (req *req return } +// GetDomainNames API operation for Amazon API Gateway. +// // Represents a collection of DomainName resources. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon API Gateway's +// API operation GetDomainNames for usage and error information. +// +// Returned Error Codes: +// * BadRequestException + +// +// * UnauthorizedException + +// +// * TooManyRequestsException + +// func (c *APIGateway) GetDomainNames(input *GetDomainNamesInput) (*GetDomainNamesOutput, error) { req, out := c.GetDomainNamesRequest(input) err := req.Send() @@ -2290,6 +3389,8 @@ const opGetExport = "GetExport" // value can be used to capture response data after the request's "Send" method // is called. // +// See GetExport for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -2324,7 +3425,30 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon API Gateway's +// API operation GetExport for usage and error information. +// +// Returned Error Codes: +// * UnauthorizedException + +// +// * NotFoundException + +// +// * BadRequestException + +// +// * TooManyRequestsException + +// func (c *APIGateway) GetExport(input *GetExportInput) (*GetExportOutput, error) { req, out := c.GetExportRequest(input) err := req.Send() @@ -2338,6 +3462,8 @@ const opGetIntegration = "GetIntegration" // value can be used to capture response data after the request's "Send" method // is called. // +// See GetIntegration for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -2372,7 +3498,27 @@ func (c *APIGateway) GetIntegrationRequest(input *GetIntegrationInput) (req *req return } +// GetIntegration API operation for Amazon API Gateway. +// // Represents a get integration. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon API Gateway's +// API operation GetIntegration for usage and error information. +// +// Returned Error Codes: +// * UnauthorizedException + +// +// * NotFoundException + +// +// * TooManyRequestsException + +// func (c *APIGateway) GetIntegration(input *GetIntegrationInput) (*Integration, error) { req, out := c.GetIntegrationRequest(input) err := req.Send() @@ -2386,6 +3532,8 @@ const opGetIntegrationResponse = "GetIntegrationResponse" // value can be used to capture response data after the request's "Send" method // is called. // +// See GetIntegrationResponse for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -2420,7 +3568,27 @@ func (c *APIGateway) GetIntegrationResponseRequest(input *GetIntegrationResponse return } +// GetIntegrationResponse API operation for Amazon API Gateway. +// // Represents a get integration response. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon API Gateway's +// API operation GetIntegrationResponse for usage and error information. +// +// Returned Error Codes: +// * UnauthorizedException + +// +// * NotFoundException + +// +// * TooManyRequestsException + +// func (c *APIGateway) GetIntegrationResponse(input *GetIntegrationResponseInput) (*IntegrationResponse, error) { req, out := c.GetIntegrationResponseRequest(input) err := req.Send() @@ -2434,6 +3602,8 @@ const opGetMethod = "GetMethod" // value can be used to capture response data after the request's "Send" method // is called. // +// See GetMethod for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -2468,7 +3638,27 @@ func (c *APIGateway) GetMethodRequest(input *GetMethodInput) (req *request.Reque return } +// GetMethod API operation for Amazon API Gateway. +// // Describe an existing Method resource. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon API Gateway's +// API operation GetMethod for usage and error information. +// +// Returned Error Codes: +// * UnauthorizedException + +// +// * NotFoundException + +// +// * TooManyRequestsException + +// func (c *APIGateway) GetMethod(input *GetMethodInput) (*Method, error) { req, out := c.GetMethodRequest(input) err := req.Send() @@ -2482,6 +3672,8 @@ const opGetMethodResponse = "GetMethodResponse" // value can be used to capture response data after the request's "Send" method // is called. // +// See GetMethodResponse for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -2516,7 +3708,27 @@ func (c *APIGateway) GetMethodResponseRequest(input *GetMethodResponseInput) (re return } +// GetMethodResponse API operation for Amazon API Gateway. +// // Describes a MethodResponse resource. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon API Gateway's +// API operation GetMethodResponse for usage and error information. +// +// Returned Error Codes: +// * UnauthorizedException + +// +// * NotFoundException + +// +// * TooManyRequestsException + +// func (c *APIGateway) GetMethodResponse(input *GetMethodResponseInput) (*MethodResponse, error) { req, out := c.GetMethodResponseRequest(input) err := req.Send() @@ -2530,6 +3742,8 @@ const opGetModel = "GetModel" // value can be used to capture response data after the request's "Send" method // is called. // +// See GetModel for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -2564,7 +3778,27 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon API Gateway's +// API operation GetModel for usage and error information. +// +// Returned Error Codes: +// * UnauthorizedException + +// +// * NotFoundException + +// +// * TooManyRequestsException + +// func (c *APIGateway) GetModel(input *GetModelInput) (*Model, error) { req, out := c.GetModelRequest(input) err := req.Send() @@ -2578,6 +3812,8 @@ const opGetModelTemplate = "GetModelTemplate" // value can be used to capture response data after the request's "Send" method // is called. // +// See GetModelTemplate for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -2612,8 +3848,31 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon API Gateway's +// API operation GetModelTemplate for usage and error information. +// +// Returned Error Codes: +// * UnauthorizedException + +// +// * NotFoundException + +// +// * BadRequestException + +// +// * TooManyRequestsException + +// func (c *APIGateway) GetModelTemplate(input *GetModelTemplateInput) (*GetModelTemplateOutput, error) { req, out := c.GetModelTemplateRequest(input) err := req.Send() @@ -2627,6 +3886,8 @@ const opGetModels = "GetModels" // value can be used to capture response data after the request's "Send" method // is called. // +// See GetModels for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -2667,7 +3928,30 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon API Gateway's +// API operation GetModels for usage and error information. +// +// Returned Error Codes: +// * BadRequestException + +// +// * UnauthorizedException + +// +// * NotFoundException + +// +// * TooManyRequestsException + +// func (c *APIGateway) GetModels(input *GetModelsInput) (*GetModelsOutput, error) { req, out := c.GetModelsRequest(input) err := req.Send() @@ -2706,6 +3990,8 @@ const opGetResource = "GetResource" // value can be used to capture response data after the request's "Send" method // is called. // +// See GetResource for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -2740,7 +4026,27 @@ func (c *APIGateway) GetResourceRequest(input *GetResourceInput) (req *request.R return } +// GetResource API operation for Amazon API Gateway. +// // Lists information about a resource. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon API Gateway's +// API operation GetResource for usage and error information. +// +// Returned Error Codes: +// * UnauthorizedException + +// +// * NotFoundException + +// +// * TooManyRequestsException + +// func (c *APIGateway) GetResource(input *GetResourceInput) (*Resource, error) { req, out := c.GetResourceRequest(input) err := req.Send() @@ -2754,6 +4060,8 @@ const opGetResources = "GetResources" // value can be used to capture response data after the request's "Send" method // is called. // +// See GetResources for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -2794,7 +4102,30 @@ func (c *APIGateway) GetResourcesRequest(input *GetResourcesInput) (req *request return } +// GetResources API operation for Amazon API Gateway. +// // Lists information about a collection of Resource resources. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon API Gateway's +// API operation GetResources for usage and error information. +// +// Returned Error Codes: +// * BadRequestException + +// +// * UnauthorizedException + +// +// * NotFoundException + +// +// * TooManyRequestsException + +// func (c *APIGateway) GetResources(input *GetResourcesInput) (*GetResourcesOutput, error) { req, out := c.GetResourcesRequest(input) err := req.Send() @@ -2833,6 +4164,8 @@ const opGetRestApi = "GetRestApi" // value can be used to capture response data after the request's "Send" method // is called. // +// See GetRestApi for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -2867,7 +4200,27 @@ func (c *APIGateway) GetRestApiRequest(input *GetRestApiInput) (req *request.Req return } +// GetRestApi API operation for Amazon API Gateway. +// // Lists the RestApi resource in the collection. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon API Gateway's +// API operation GetRestApi for usage and error information. +// +// Returned Error Codes: +// * UnauthorizedException + +// +// * NotFoundException + +// +// * TooManyRequestsException + +// func (c *APIGateway) GetRestApi(input *GetRestApiInput) (*RestApi, error) { req, out := c.GetRestApiRequest(input) err := req.Send() @@ -2881,6 +4234,8 @@ const opGetRestApis = "GetRestApis" // value can be used to capture response data after the request's "Send" method // is called. // +// See GetRestApis for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -2921,7 +4276,27 @@ func (c *APIGateway) GetRestApisRequest(input *GetRestApisInput) (req *request.R return } +// GetRestApis API operation for Amazon API Gateway. +// // Lists the RestApis resources for your collection. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon API Gateway's +// API operation GetRestApis for usage and error information. +// +// Returned Error Codes: +// * BadRequestException + +// +// * UnauthorizedException + +// +// * TooManyRequestsException + +// func (c *APIGateway) GetRestApis(input *GetRestApisInput) (*GetRestApisOutput, error) { req, out := c.GetRestApisRequest(input) err := req.Send() @@ -2960,6 +4335,8 @@ const opGetSdk = "GetSdk" // value can be used to capture response data after the request's "Send" method // is called. // +// See GetSdk for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -2994,7 +4371,30 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon API Gateway's +// API operation GetSdk for usage and error information. +// +// Returned Error Codes: +// * UnauthorizedException + +// +// * NotFoundException + +// +// * BadRequestException + +// +// * TooManyRequestsException + +// func (c *APIGateway) GetSdk(input *GetSdkInput) (*GetSdkOutput, error) { req, out := c.GetSdkRequest(input) err := req.Send() @@ -3008,6 +4408,8 @@ const opGetStage = "GetStage" // value can be used to capture response data after the request's "Send" method // is called. // +// See GetStage for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -3042,7 +4444,27 @@ func (c *APIGateway) GetStageRequest(input *GetStageInput) (req *request.Request return } +// GetStage API operation for Amazon API Gateway. +// // Gets information about a Stage resource. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon API Gateway's +// API operation GetStage for usage and error information. +// +// Returned Error Codes: +// * UnauthorizedException + +// +// * NotFoundException + +// +// * TooManyRequestsException + +// func (c *APIGateway) GetStage(input *GetStageInput) (*Stage, error) { req, out := c.GetStageRequest(input) err := req.Send() @@ -3056,6 +4478,8 @@ const opGetStages = "GetStages" // value can be used to capture response data after the request's "Send" method // is called. // +// See GetStages for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -3090,12 +4514,32 @@ 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. -func (c *APIGateway) GetStages(input *GetStagesInput) (*GetStagesOutput, error) { - req, out := c.GetStagesRequest(input) - err := req.Send() - return out, err -} +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon API Gateway's +// API operation GetStages for usage and error information. +// +// Returned Error Codes: +// * UnauthorizedException + +// +// * NotFoundException + +// +// * TooManyRequestsException + +// +func (c *APIGateway) GetStages(input *GetStagesInput) (*GetStagesOutput, error) { + req, out := c.GetStagesRequest(input) + err := req.Send() + return out, err +} const opGetUsage = "GetUsage" @@ -3104,6 +4548,8 @@ const opGetUsage = "GetUsage" // value can be used to capture response data after the request's "Send" method // is called. // +// See GetUsage for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -3144,7 +4590,30 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon API Gateway's +// API operation GetUsage for usage and error information. +// +// Returned Error Codes: +// * BadRequestException + +// +// * UnauthorizedException + +// +// * NotFoundException + +// +// * TooManyRequestsException + +// func (c *APIGateway) GetUsage(input *GetUsageInput) (*Usage, error) { req, out := c.GetUsageRequest(input) err := req.Send() @@ -3183,6 +4652,8 @@ const opGetUsagePlan = "GetUsagePlan" // value can be used to capture response data after the request's "Send" method // is called. // +// See GetUsagePlan for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -3217,7 +4688,30 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon API Gateway's +// API operation GetUsagePlan for usage and error information. +// +// Returned Error Codes: +// * BadRequestException + +// +// * UnauthorizedException + +// +// * NotFoundException + +// +// * TooManyRequestsException + +// func (c *APIGateway) GetUsagePlan(input *GetUsagePlanInput) (*UsagePlan, error) { req, out := c.GetUsagePlanRequest(input) err := req.Send() @@ -3231,6 +4725,8 @@ const opGetUsagePlanKey = "GetUsagePlanKey" // value can be used to capture response data after the request's "Send" method // is called. // +// See GetUsagePlanKey for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -3265,7 +4761,30 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon API Gateway's +// API operation GetUsagePlanKey for usage and error information. +// +// Returned Error Codes: +// * BadRequestException + +// +// * UnauthorizedException + +// +// * NotFoundException + +// +// * TooManyRequestsException + +// func (c *APIGateway) GetUsagePlanKey(input *GetUsagePlanKeyInput) (*UsagePlanKey, error) { req, out := c.GetUsagePlanKeyRequest(input) err := req.Send() @@ -3279,6 +4798,8 @@ const opGetUsagePlanKeys = "GetUsagePlanKeys" // value can be used to capture response data after the request's "Send" method // is called. // +// See GetUsagePlanKeys for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -3319,8 +4840,31 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon API Gateway's +// API operation GetUsagePlanKeys for usage and error information. +// +// Returned Error Codes: +// * BadRequestException + +// +// * UnauthorizedException + +// +// * NotFoundException + +// +// * TooManyRequestsException + +// func (c *APIGateway) GetUsagePlanKeys(input *GetUsagePlanKeysInput) (*GetUsagePlanKeysOutput, error) { req, out := c.GetUsagePlanKeysRequest(input) err := req.Send() @@ -3359,6 +4903,8 @@ const opGetUsagePlans = "GetUsagePlans" // value can be used to capture response data after the request's "Send" method // is called. // +// See GetUsagePlans for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -3399,7 +4945,30 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon API Gateway's +// API operation GetUsagePlans for usage and error information. +// +// Returned Error Codes: +// * BadRequestException + +// +// * UnauthorizedException + +// +// * TooManyRequestsException + +// +// * ConflictException + +// func (c *APIGateway) GetUsagePlans(input *GetUsagePlansInput) (*GetUsagePlansOutput, error) { req, out := c.GetUsagePlansRequest(input) err := req.Send() @@ -3438,6 +5007,8 @@ const opImportApiKeys = "ImportApiKeys" // value can be used to capture response data after the request's "Send" method // is called. // +// See ImportApiKeys for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -3472,7 +5043,36 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon API Gateway's +// API operation ImportApiKeys for usage and error information. +// +// Returned Error Codes: +// * UnauthorizedException + +// +// * NotFoundException + +// +// * TooManyRequestsException + +// +// * LimitExceededException + +// +// * BadRequestException + +// +// * ConflictException + +// func (c *APIGateway) ImportApiKeys(input *ImportApiKeysInput) (*ImportApiKeysOutput, error) { req, out := c.ImportApiKeysRequest(input) err := req.Send() @@ -3486,6 +5086,8 @@ const opImportRestApi = "ImportRestApi" // value can be used to capture response data after the request's "Send" method // is called. // +// See ImportRestApi for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -3520,8 +5122,34 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon API Gateway's +// API operation ImportRestApi for usage and error information. +// +// Returned Error Codes: +// * UnauthorizedException + +// +// * LimitExceededException + +// +// * BadRequestException + +// +// * TooManyRequestsException + +// +// * ConflictException + +// func (c *APIGateway) ImportRestApi(input *ImportRestApiInput) (*RestApi, error) { req, out := c.ImportRestApiRequest(input) err := req.Send() @@ -3535,6 +5163,8 @@ const opPutIntegration = "PutIntegration" // value can be used to capture response data after the request's "Send" method // is called. // +// See PutIntegration for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -3569,7 +5199,33 @@ func (c *APIGateway) PutIntegrationRequest(input *PutIntegrationInput) (req *req return } +// PutIntegration API operation for Amazon API Gateway. +// // Represents a put integration. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon API Gateway's +// API operation PutIntegration for usage and error information. +// +// Returned Error Codes: +// * UnauthorizedException + +// +// * BadRequestException + +// +// * ConflictException + +// +// * NotFoundException + +// +// * TooManyRequestsException + +// func (c *APIGateway) PutIntegration(input *PutIntegrationInput) (*Integration, error) { req, out := c.PutIntegrationRequest(input) err := req.Send() @@ -3583,6 +5239,8 @@ const opPutIntegrationResponse = "PutIntegrationResponse" // value can be used to capture response data after the request's "Send" method // is called. // +// See PutIntegrationResponse for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -3617,7 +5275,36 @@ func (c *APIGateway) PutIntegrationResponseRequest(input *PutIntegrationResponse return } +// PutIntegrationResponse API operation for Amazon API Gateway. +// // Represents a put integration. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon API Gateway's +// API operation PutIntegrationResponse for usage and error information. +// +// Returned Error Codes: +// * UnauthorizedException + +// +// * NotFoundException + +// +// * LimitExceededException + +// +// * BadRequestException + +// +// * TooManyRequestsException + +// +// * ConflictException + +// func (c *APIGateway) PutIntegrationResponse(input *PutIntegrationResponseInput) (*IntegrationResponse, error) { req, out := c.PutIntegrationResponseRequest(input) err := req.Send() @@ -3631,6 +5318,8 @@ const opPutMethod = "PutMethod" // value can be used to capture response data after the request's "Send" method // is called. // +// See PutMethod for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -3665,7 +5354,36 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon API Gateway's +// API operation PutMethod for usage and error information. +// +// Returned Error Codes: +// * BadRequestException + +// +// * UnauthorizedException + +// +// * NotFoundException + +// +// * ConflictException + +// +// * LimitExceededException + +// +// * TooManyRequestsException + +// func (c *APIGateway) PutMethod(input *PutMethodInput) (*Method, error) { req, out := c.PutMethodRequest(input) err := req.Send() @@ -3679,6 +5397,8 @@ const opPutMethodResponse = "PutMethodResponse" // value can be used to capture response data after the request's "Send" method // is called. // +// See PutMethodResponse for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -3713,7 +5433,36 @@ func (c *APIGateway) PutMethodResponseRequest(input *PutMethodResponseInput) (re return } +// PutMethodResponse API operation for Amazon API Gateway. +// // Adds a MethodResponse to an existing Method resource. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon API Gateway's +// API operation PutMethodResponse for usage and error information. +// +// Returned Error Codes: +// * UnauthorizedException + +// +// * NotFoundException + +// +// * ConflictException + +// +// * LimitExceededException + +// +// * BadRequestException + +// +// * TooManyRequestsException + +// func (c *APIGateway) PutMethodResponse(input *PutMethodResponseInput) (*MethodResponse, error) { req, out := c.PutMethodResponseRequest(input) err := req.Send() @@ -3727,6 +5476,8 @@ const opPutRestApi = "PutRestApi" // value can be used to capture response data after the request's "Send" method // is called. // +// See PutRestApi for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -3761,10 +5512,39 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon API Gateway's +// API operation PutRestApi for usage and error information. +// +// Returned Error Codes: +// * UnauthorizedException + +// +// * LimitExceededException + +// +// * NotFoundException + +// +// * BadRequestException + +// +// * TooManyRequestsException + +// +// * ConflictException + +// func (c *APIGateway) PutRestApi(input *PutRestApiInput) (*RestApi, error) { req, out := c.PutRestApiRequest(input) err := req.Send() @@ -3778,6 +5558,8 @@ const opTestInvokeAuthorizer = "TestInvokeAuthorizer" // value can be used to capture response data after the request's "Send" method // is called. // +// See TestInvokeAuthorizer for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -3812,10 +5594,33 @@ 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) +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon API Gateway's +// API operation TestInvokeAuthorizer for usage and error information. +// +// Returned Error Codes: +// * BadRequestException + +// +// * UnauthorizedException + +// +// * NotFoundException + +// +// * TooManyRequestsException + +// func (c *APIGateway) TestInvokeAuthorizer(input *TestInvokeAuthorizerInput) (*TestInvokeAuthorizerOutput, error) { req, out := c.TestInvokeAuthorizerRequest(input) err := req.Send() @@ -3829,6 +5634,8 @@ const opTestInvokeMethod = "TestInvokeMethod" // value can be used to capture response data after the request's "Send" method // is called. // +// See TestInvokeMethod for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -3863,8 +5670,31 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon API Gateway's +// API operation TestInvokeMethod for usage and error information. +// +// Returned Error Codes: +// * BadRequestException + +// +// * UnauthorizedException + +// +// * NotFoundException + +// +// * TooManyRequestsException + +// func (c *APIGateway) TestInvokeMethod(input *TestInvokeMethodInput) (*TestInvokeMethodOutput, error) { req, out := c.TestInvokeMethodRequest(input) err := req.Send() @@ -3878,6 +5708,8 @@ const opUpdateAccount = "UpdateAccount" // value can be used to capture response data after the request's "Send" method // is called. // +// See UpdateAccount for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -3912,7 +5744,30 @@ func (c *APIGateway) UpdateAccountRequest(input *UpdateAccountInput) (req *reque return } +// UpdateAccount API operation for Amazon API Gateway. +// // Changes information about the current Account resource. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon API Gateway's +// API operation UpdateAccount for usage and error information. +// +// Returned Error Codes: +// * UnauthorizedException + +// +// * BadRequestException + +// +// * NotFoundException + +// +// * TooManyRequestsException + +// func (c *APIGateway) UpdateAccount(input *UpdateAccountInput) (*Account, error) { req, out := c.UpdateAccountRequest(input) err := req.Send() @@ -3926,6 +5781,8 @@ const opUpdateApiKey = "UpdateApiKey" // value can be used to capture response data after the request's "Send" method // is called. // +// See UpdateApiKey for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -3960,7 +5817,33 @@ func (c *APIGateway) UpdateApiKeyRequest(input *UpdateApiKeyInput) (req *request return } +// UpdateApiKey API operation for Amazon API Gateway. +// // Changes information about an ApiKey resource. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon API Gateway's +// API operation UpdateApiKey for usage and error information. +// +// Returned Error Codes: +// * UnauthorizedException + +// +// * NotFoundException + +// +// * BadRequestException + +// +// * TooManyRequestsException + +// +// * ConflictException + +// func (c *APIGateway) UpdateApiKey(input *UpdateApiKeyInput) (*ApiKey, error) { req, out := c.UpdateApiKeyRequest(input) err := req.Send() @@ -3974,6 +5857,8 @@ const opUpdateAuthorizer = "UpdateAuthorizer" // value can be used to capture response data after the request's "Send" method // is called. // +// See UpdateAuthorizer for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -4008,9 +5893,32 @@ 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) +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon API Gateway's +// API operation UpdateAuthorizer for usage and error information. +// +// Returned Error Codes: +// * UnauthorizedException + +// +// * NotFoundException + +// +// * BadRequestException + +// +// * TooManyRequestsException + +// func (c *APIGateway) UpdateAuthorizer(input *UpdateAuthorizerInput) (*Authorizer, error) { req, out := c.UpdateAuthorizerRequest(input) err := req.Send() @@ -4024,6 +5932,8 @@ const opUpdateBasePathMapping = "UpdateBasePathMapping" // value can be used to capture response data after the request's "Send" method // is called. // +// See UpdateBasePathMapping for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -4058,7 +5968,33 @@ func (c *APIGateway) UpdateBasePathMappingRequest(input *UpdateBasePathMappingIn return } +// UpdateBasePathMapping API operation for Amazon API Gateway. +// // Changes information about the BasePathMapping resource. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon API Gateway's +// API operation UpdateBasePathMapping for usage and error information. +// +// Returned Error Codes: +// * UnauthorizedException + +// +// * NotFoundException + +// +// * ConflictException + +// +// * BadRequestException + +// +// * TooManyRequestsException + +// func (c *APIGateway) UpdateBasePathMapping(input *UpdateBasePathMappingInput) (*BasePathMapping, error) { req, out := c.UpdateBasePathMappingRequest(input) err := req.Send() @@ -4072,6 +6008,8 @@ const opUpdateClientCertificate = "UpdateClientCertificate" // value can be used to capture response data after the request's "Send" method // is called. // +// See UpdateClientCertificate for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -4106,7 +6044,30 @@ func (c *APIGateway) UpdateClientCertificateRequest(input *UpdateClientCertifica return } +// UpdateClientCertificate API operation for Amazon API Gateway. +// // Changes information about an ClientCertificate resource. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon API Gateway's +// API operation UpdateClientCertificate for usage and error information. +// +// Returned Error Codes: +// * UnauthorizedException + +// +// * TooManyRequestsException + +// +// * BadRequestException + +// +// * NotFoundException + +// func (c *APIGateway) UpdateClientCertificate(input *UpdateClientCertificateInput) (*ClientCertificate, error) { req, out := c.UpdateClientCertificateRequest(input) err := req.Send() @@ -4120,6 +6081,8 @@ const opUpdateDeployment = "UpdateDeployment" // value can be used to capture response data after the request's "Send" method // is called. // +// See UpdateDeployment for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -4154,7 +6117,33 @@ func (c *APIGateway) UpdateDeploymentRequest(input *UpdateDeploymentInput) (req return } +// UpdateDeployment API operation for Amazon API Gateway. +// // Changes information about a Deployment resource. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon API Gateway's +// API operation UpdateDeployment for usage and error information. +// +// Returned Error Codes: +// * UnauthorizedException + +// +// * NotFoundException + +// +// * BadRequestException + +// +// * TooManyRequestsException + +// +// * ServiceUnavailableException + +// func (c *APIGateway) UpdateDeployment(input *UpdateDeploymentInput) (*Deployment, error) { req, out := c.UpdateDeploymentRequest(input) err := req.Send() @@ -4168,6 +6157,8 @@ const opUpdateDomainName = "UpdateDomainName" // value can be used to capture response data after the request's "Send" method // is called. // +// See UpdateDomainName for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -4202,7 +6193,33 @@ func (c *APIGateway) UpdateDomainNameRequest(input *UpdateDomainNameInput) (req return } +// UpdateDomainName API operation for Amazon API Gateway. +// // Changes information about the DomainName resource. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon API Gateway's +// API operation UpdateDomainName for usage and error information. +// +// Returned Error Codes: +// * UnauthorizedException + +// +// * NotFoundException + +// +// * BadRequestException + +// +// * ConflictException + +// +// * TooManyRequestsException + +// func (c *APIGateway) UpdateDomainName(input *UpdateDomainNameInput) (*DomainName, error) { req, out := c.UpdateDomainNameRequest(input) err := req.Send() @@ -4216,6 +6233,8 @@ const opUpdateIntegration = "UpdateIntegration" // value can be used to capture response data after the request's "Send" method // is called. // +// See UpdateIntegration for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -4250,7 +6269,33 @@ func (c *APIGateway) UpdateIntegrationRequest(input *UpdateIntegrationInput) (re return } +// UpdateIntegration API operation for Amazon API Gateway. +// // Represents an update integration. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon API Gateway's +// API operation UpdateIntegration for usage and error information. +// +// Returned Error Codes: +// * UnauthorizedException + +// +// * NotFoundException + +// +// * BadRequestException + +// +// * TooManyRequestsException + +// +// * ConflictException + +// func (c *APIGateway) UpdateIntegration(input *UpdateIntegrationInput) (*Integration, error) { req, out := c.UpdateIntegrationRequest(input) err := req.Send() @@ -4264,6 +6309,8 @@ const opUpdateIntegrationResponse = "UpdateIntegrationResponse" // value can be used to capture response data after the request's "Send" method // is called. // +// See UpdateIntegrationResponse for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -4298,7 +6345,33 @@ func (c *APIGateway) UpdateIntegrationResponseRequest(input *UpdateIntegrationRe return } +// UpdateIntegrationResponse API operation for Amazon API Gateway. +// // Represents an update integration response. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon API Gateway's +// API operation UpdateIntegrationResponse for usage and error information. +// +// Returned Error Codes: +// * UnauthorizedException + +// +// * NotFoundException + +// +// * ConflictException + +// +// * BadRequestException + +// +// * TooManyRequestsException + +// func (c *APIGateway) UpdateIntegrationResponse(input *UpdateIntegrationResponseInput) (*IntegrationResponse, error) { req, out := c.UpdateIntegrationResponseRequest(input) err := req.Send() @@ -4312,6 +6385,8 @@ const opUpdateMethod = "UpdateMethod" // value can be used to capture response data after the request's "Send" method // is called. // +// See UpdateMethod for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -4346,7 +6421,33 @@ func (c *APIGateway) UpdateMethodRequest(input *UpdateMethodInput) (req *request return } +// UpdateMethod API operation for Amazon API Gateway. +// // Updates an existing Method resource. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon API Gateway's +// API operation UpdateMethod for usage and error information. +// +// Returned Error Codes: +// * UnauthorizedException + +// +// * NotFoundException + +// +// * BadRequestException + +// +// * ConflictException + +// +// * TooManyRequestsException + +// func (c *APIGateway) UpdateMethod(input *UpdateMethodInput) (*Method, error) { req, out := c.UpdateMethodRequest(input) err := req.Send() @@ -4360,6 +6461,8 @@ const opUpdateMethodResponse = "UpdateMethodResponse" // value can be used to capture response data after the request's "Send" method // is called. // +// See UpdateMethodResponse for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -4394,7 +6497,36 @@ func (c *APIGateway) UpdateMethodResponseRequest(input *UpdateMethodResponseInpu return } +// UpdateMethodResponse API operation for Amazon API Gateway. +// // Updates an existing MethodResponse resource. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon API Gateway's +// API operation UpdateMethodResponse for usage and error information. +// +// Returned Error Codes: +// * UnauthorizedException + +// +// * NotFoundException + +// +// * ConflictException + +// +// * LimitExceededException + +// +// * BadRequestException + +// +// * TooManyRequestsException + +// func (c *APIGateway) UpdateMethodResponse(input *UpdateMethodResponseInput) (*MethodResponse, error) { req, out := c.UpdateMethodResponseRequest(input) err := req.Send() @@ -4408,6 +6540,8 @@ const opUpdateModel = "UpdateModel" // value can be used to capture response data after the request's "Send" method // is called. // +// See UpdateModel for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -4442,7 +6576,33 @@ func (c *APIGateway) UpdateModelRequest(input *UpdateModelInput) (req *request.R return } +// UpdateModel API operation for Amazon API Gateway. +// // Changes information about a model. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon API Gateway's +// API operation UpdateModel for usage and error information. +// +// Returned Error Codes: +// * UnauthorizedException + +// +// * NotFoundException + +// +// * BadRequestException + +// +// * ConflictException + +// +// * TooManyRequestsException + +// func (c *APIGateway) UpdateModel(input *UpdateModelInput) (*Model, error) { req, out := c.UpdateModelRequest(input) err := req.Send() @@ -4456,6 +6616,8 @@ const opUpdateResource = "UpdateResource" // value can be used to capture response data after the request's "Send" method // is called. // +// See UpdateResource for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -4490,7 +6652,33 @@ func (c *APIGateway) UpdateResourceRequest(input *UpdateResourceInput) (req *req return } +// UpdateResource API operation for Amazon API Gateway. +// // Changes information about a Resource resource. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon API Gateway's +// API operation UpdateResource for usage and error information. +// +// Returned Error Codes: +// * UnauthorizedException + +// +// * NotFoundException + +// +// * ConflictException + +// +// * BadRequestException + +// +// * TooManyRequestsException + +// func (c *APIGateway) UpdateResource(input *UpdateResourceInput) (*Resource, error) { req, out := c.UpdateResourceRequest(input) err := req.Send() @@ -4504,6 +6692,8 @@ const opUpdateRestApi = "UpdateRestApi" // value can be used to capture response data after the request's "Send" method // is called. // +// See UpdateRestApi for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -4538,7 +6728,33 @@ func (c *APIGateway) UpdateRestApiRequest(input *UpdateRestApiInput) (req *reque return } +// UpdateRestApi API operation for Amazon API Gateway. +// // Changes information about the specified API. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon API Gateway's +// API operation UpdateRestApi for usage and error information. +// +// Returned Error Codes: +// * UnauthorizedException + +// +// * NotFoundException + +// +// * ConflictException + +// +// * BadRequestException + +// +// * TooManyRequestsException + +// func (c *APIGateway) UpdateRestApi(input *UpdateRestApiInput) (*RestApi, error) { req, out := c.UpdateRestApiRequest(input) err := req.Send() @@ -4552,6 +6768,8 @@ const opUpdateStage = "UpdateStage" // value can be used to capture response data after the request's "Send" method // is called. // +// See UpdateStage for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -4586,7 +6804,33 @@ func (c *APIGateway) UpdateStageRequest(input *UpdateStageInput) (req *request.R return } +// UpdateStage API operation for Amazon API Gateway. +// // Changes information about a Stage resource. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon API Gateway's +// API operation UpdateStage for usage and error information. +// +// Returned Error Codes: +// * UnauthorizedException + +// +// * NotFoundException + +// +// * ConflictException + +// +// * BadRequestException + +// +// * TooManyRequestsException + +// func (c *APIGateway) UpdateStage(input *UpdateStageInput) (*Stage, error) { req, out := c.UpdateStageRequest(input) err := req.Send() @@ -4600,6 +6844,8 @@ const opUpdateUsage = "UpdateUsage" // value can be used to capture response data after the request's "Send" method // is called. // +// See UpdateUsage for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -4634,8 +6880,31 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon API Gateway's +// API operation UpdateUsage for usage and error information. +// +// Returned Error Codes: +// * UnauthorizedException + +// +// * TooManyRequestsException + +// +// * BadRequestException + +// +// * NotFoundException + +// func (c *APIGateway) UpdateUsage(input *UpdateUsageInput) (*Usage, error) { req, out := c.UpdateUsageRequest(input) err := req.Send() @@ -4649,6 +6918,8 @@ const opUpdateUsagePlan = "UpdateUsagePlan" // value can be used to capture response data after the request's "Send" method // is called. // +// See UpdateUsagePlan for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -4683,7 +6954,33 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon API Gateway's +// API operation UpdateUsagePlan for usage and error information. +// +// Returned Error Codes: +// * 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..0bcf442a9c1 100644 --- a/service/applicationautoscaling/api.go +++ b/service/applicationautoscaling/api.go @@ -18,6 +18,8 @@ const opDeleteScalingPolicy = "DeleteScalingPolicy" // value can be used to capture response data after the request's "Send" method // is called. // +// See DeleteScalingPolicy for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -52,6 +54,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 +65,34 @@ func (c *ApplicationAutoScaling) DeleteScalingPolicyRequest(input *DeleteScaling // has an associated action. // // To create a new scaling policy or update an existing one, see PutScalingPolicy. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Application Auto Scaling's +// API operation DeleteScalingPolicy for usage and error information. +// +// Returned Error Codes: +// * ValidationException +// An exception was thrown for a validation issue. Review the available parameters +// for the API request. +// +// * ObjectNotFoundException +// The specified object could not be found. For any Put or Register API operation, +// which depends on the existence of a scalable target, this exception is thrown +// if the scalable target with the specified service namespace, resource ID, +// and scalable dimension does not exist. For any Delete or Deregister API operation, +// this exception is thrown if the resource that is to be deleted or deregistered +// cannot be found. +// +// * ConcurrentUpdateException +// Concurrent updates caused an exception, for example, if you request an update +// to an Application Auto Scaling resource that already has a pending update. +// +// * InternalServiceException +// The service encountered an internal error. +// func (c *ApplicationAutoScaling) DeleteScalingPolicy(input *DeleteScalingPolicyInput) (*DeleteScalingPolicyOutput, error) { req, out := c.DeleteScalingPolicyRequest(input) err := req.Send() @@ -74,6 +106,8 @@ const opDeregisterScalableTarget = "DeregisterScalableTarget" // value can be used to capture response data after the request's "Send" method // is called. // +// See DeregisterScalableTarget for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -108,12 +142,42 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Application Auto Scaling's +// API operation DeregisterScalableTarget for usage and error information. +// +// Returned Error Codes: +// * ValidationException +// An exception was thrown for a validation issue. Review the available parameters +// for the API request. +// +// * ObjectNotFoundException +// The specified object could not be found. For any Put or Register API operation, +// which depends on the existence of a scalable target, this exception is thrown +// if the scalable target with the specified service namespace, resource ID, +// and scalable dimension does not exist. For any Delete or Deregister API operation, +// this exception is thrown if the resource that is to be deleted or deregistered +// cannot be found. +// +// * ConcurrentUpdateException +// Concurrent updates caused an exception, for example, if you request an update +// to an Application Auto Scaling resource that already has a pending update. +// +// * InternalServiceException +// The service encountered an internal error. +// func (c *ApplicationAutoScaling) DeregisterScalableTarget(input *DeregisterScalableTargetInput) (*DeregisterScalableTargetOutput, error) { req, out := c.DeregisterScalableTargetRequest(input) err := req.Send() @@ -127,6 +191,8 @@ const opDescribeScalableTargets = "DescribeScalableTargets" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeScalableTargets for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -167,6 +233,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 +244,29 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Application Auto Scaling's +// API operation DescribeScalableTargets for usage and error information. +// +// Returned Error Codes: +// * ValidationException +// An exception was thrown for a validation issue. Review the available parameters +// for the API request. +// +// * InvalidNextTokenException +// The next token supplied was invalid. +// +// * ConcurrentUpdateException +// Concurrent updates caused an exception, for example, if you request an update +// to an Application Auto Scaling resource that already has a pending update. +// +// * InternalServiceException +// The service encountered an internal error. +// func (c *ApplicationAutoScaling) DescribeScalableTargets(input *DescribeScalableTargetsInput) (*DescribeScalableTargetsOutput, error) { req, out := c.DescribeScalableTargetsRequest(input) err := req.Send() @@ -214,6 +305,8 @@ const opDescribeScalingActivities = "DescribeScalingActivities" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeScalingActivities for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -254,6 +347,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 +359,29 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Application Auto Scaling's +// API operation DescribeScalingActivities for usage and error information. +// +// Returned Error Codes: +// * ValidationException +// An exception was thrown for a validation issue. Review the available parameters +// for the API request. +// +// * InvalidNextTokenException +// The next token supplied was invalid. +// +// * ConcurrentUpdateException +// Concurrent updates caused an exception, for example, if you request an update +// to an Application Auto Scaling resource that already has a pending update. +// +// * InternalServiceException +// The service encountered an internal error. +// func (c *ApplicationAutoScaling) DescribeScalingActivities(input *DescribeScalingActivitiesInput) (*DescribeScalingActivitiesOutput, error) { req, out := c.DescribeScalingActivitiesRequest(input) err := req.Send() @@ -302,6 +420,8 @@ const opDescribeScalingPolicies = "DescribeScalingPolicies" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeScalingPolicies for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -342,6 +462,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 +472,38 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Application Auto Scaling's +// API operation DescribeScalingPolicies for usage and error information. +// +// Returned Error Codes: +// * ValidationException +// An exception was thrown for a validation issue. Review the available parameters +// for the API request. +// +// * FailedResourceAccessException +// Failed access to resources caused an exception. This exception currently +// only applies to DescribeScalingPolicies. It is thrown when Application Auto +// Scaling is unable to retrieve the alarms associated with a scaling policy +// due to a client error, for example, if the role ARN specified for a scalable +// target does not have the proper permissions to call the CloudWatch DescribeAlarms +// (http://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_DescribeAlarms.html) +// API operation on behalf of your account. +// +// * InvalidNextTokenException +// The next token supplied was invalid. +// +// * ConcurrentUpdateException +// Concurrent updates caused an exception, for example, if you request an update +// to an Application Auto Scaling resource that already has a pending update. +// +// * InternalServiceException +// The service encountered an internal error. +// func (c *ApplicationAutoScaling) DescribeScalingPolicies(input *DescribeScalingPoliciesInput) (*DescribeScalingPoliciesOutput, error) { req, out := c.DescribeScalingPoliciesRequest(input) err := req.Send() @@ -388,6 +542,8 @@ const opPutScalingPolicy = "PutScalingPolicy" // value can be used to capture response data after the request's "Send" method // is called. // +// See PutScalingPolicy for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -422,6 +578,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 +593,39 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Application Auto Scaling's +// API operation PutScalingPolicy for usage and error information. +// +// Returned Error Codes: +// * ValidationException +// An exception was thrown for a validation issue. Review the available parameters +// for the API request. +// +// * LimitExceededException +// Your account exceeded a limit. This exception is thrown when a per-account +// resource limit is exceeded. For more information, see Application Auto Scaling +// Limits (http://docs.aws.amazon.com/general/latest/gr/aws_service_limits.html#limits_as-app). +// +// * ObjectNotFoundException +// The specified object could not be found. For any Put or Register API operation, +// which depends on the existence of a scalable target, this exception is thrown +// if the scalable target with the specified service namespace, resource ID, +// and scalable dimension does not exist. For any Delete or Deregister API operation, +// this exception is thrown if the resource that is to be deleted or deregistered +// cannot be found. +// +// * ConcurrentUpdateException +// Concurrent updates caused an exception, for example, if you request an update +// to an Application Auto Scaling resource that already has a pending update. +// +// * InternalServiceException +// The service encountered an internal error. +// func (c *ApplicationAutoScaling) PutScalingPolicy(input *PutScalingPolicyInput) (*PutScalingPolicyOutput, error) { req, out := c.PutScalingPolicyRequest(input) err := req.Send() @@ -448,6 +639,8 @@ const opRegisterScalableTarget = "RegisterScalableTarget" // value can be used to capture response data after the request's "Send" method // is called. // +// See RegisterScalableTarget for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -482,6 +675,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 +687,31 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Application Auto Scaling's +// API operation RegisterScalableTarget for usage and error information. +// +// Returned Error Codes: +// * ValidationException +// An exception was thrown for a validation issue. Review the available parameters +// for the API request. +// +// * LimitExceededException +// Your account exceeded a limit. This exception is thrown when a per-account +// resource limit is exceeded. For more information, see Application Auto Scaling +// Limits (http://docs.aws.amazon.com/general/latest/gr/aws_service_limits.html#limits_as-app). +// +// * ConcurrentUpdateException +// Concurrent updates caused an exception, for example, if you request an update +// to an Application Auto Scaling resource that already has a pending update. +// +// * InternalServiceException +// The service encountered an internal error. +// 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..3913375aca9 100644 --- a/service/applicationdiscoveryservice/api.go +++ b/service/applicationdiscoveryservice/api.go @@ -18,6 +18,8 @@ const opCreateTags = "CreateTags" // value can be used to capture response data after the request's "Send" method // is called. // +// See CreateTags for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -52,9 +54,38 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Application Discovery Service's +// API operation CreateTags for usage and error information. +// +// Returned Error Codes: +// * AuthorizationErrorException +// The AWS user account does not have permission to perform the action. Check +// the IAM policy associated with this account. +// +// * ResourceNotFoundException +// The specified configuration ID was not located. Verify the configuration +// ID and try again. +// +// * InvalidParameterException +// One or more parameters are not valid. Verify the parameters and try again. +// +// * InvalidParameterValueException +// The value of one or more parameters are either invalid or out of range. Verify +// the parameter values and try again. +// +// * ServerInternalErrorException +// The server experienced an internal error. Try again. +// func (c *ApplicationDiscoveryService) CreateTags(input *CreateTagsInput) (*CreateTagsOutput, error) { req, out := c.CreateTagsRequest(input) err := req.Send() @@ -68,6 +99,8 @@ const opDeleteTags = "DeleteTags" // value can be used to capture response data after the request's "Send" method // is called. // +// See DeleteTags for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -102,8 +135,37 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Application Discovery Service's +// API operation DeleteTags for usage and error information. +// +// Returned Error Codes: +// * AuthorizationErrorException +// The AWS user account does not have permission to perform the action. Check +// the IAM policy associated with this account. +// +// * ResourceNotFoundException +// The specified configuration ID was not located. Verify the configuration +// ID and try again. +// +// * InvalidParameterException +// One or more parameters are not valid. Verify the parameters and try again. +// +// * InvalidParameterValueException +// The value of one or more parameters are either invalid or out of range. Verify +// the parameter values and try again. +// +// * ServerInternalErrorException +// The server experienced an internal error. Try again. +// func (c *ApplicationDiscoveryService) DeleteTags(input *DeleteTagsInput) (*DeleteTagsOutput, error) { req, out := c.DeleteTagsRequest(input) err := req.Send() @@ -117,6 +179,8 @@ const opDescribeAgents = "DescribeAgents" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeAgents for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -151,8 +215,33 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Application Discovery Service's +// API operation DescribeAgents for usage and error information. +// +// Returned Error Codes: +// * AuthorizationErrorException +// The AWS user account does not have permission to perform the action. Check +// the IAM policy associated with this account. +// +// * InvalidParameterException +// One or more parameters are not valid. Verify the parameters and try again. +// +// * InvalidParameterValueException +// The value of one or more parameters are either invalid or out of range. Verify +// the parameter values and try again. +// +// * ServerInternalErrorException +// The server experienced an internal error. Try again. +// func (c *ApplicationDiscoveryService) DescribeAgents(input *DescribeAgentsInput) (*DescribeAgentsOutput, error) { req, out := c.DescribeAgentsRequest(input) err := req.Send() @@ -166,6 +255,8 @@ const opDescribeConfigurations = "DescribeConfigurations" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeConfigurations for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -200,10 +291,35 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Application Discovery Service's +// API operation DescribeConfigurations for usage and error information. +// +// Returned Error Codes: +// * AuthorizationErrorException +// The AWS user account does not have permission to perform the action. Check +// the IAM policy associated with this account. +// +// * InvalidParameterException +// One or more parameters are not valid. Verify the parameters and try again. +// +// * InvalidParameterValueException +// The value of one or more parameters are either invalid or out of range. Verify +// the parameter values and try again. +// +// * ServerInternalErrorException +// The server experienced an internal error. Try again. +// func (c *ApplicationDiscoveryService) DescribeConfigurations(input *DescribeConfigurationsInput) (*DescribeConfigurationsOutput, error) { req, out := c.DescribeConfigurationsRequest(input) err := req.Send() @@ -217,6 +333,8 @@ const opDescribeExportConfigurations = "DescribeExportConfigurations" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeExportConfigurations for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -251,8 +369,37 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Application Discovery Service's +// API operation DescribeExportConfigurations for usage and error information. +// +// Returned Error Codes: +// * AuthorizationErrorException +// The AWS user account does not have permission to perform the action. Check +// the IAM policy associated with this account. +// +// * ResourceNotFoundException +// The specified configuration ID was not located. Verify the configuration +// ID and try again. +// +// * InvalidParameterException +// One or more parameters are not valid. Verify the parameters and try again. +// +// * InvalidParameterValueException +// The value of one or more parameters are either invalid or out of range. Verify +// the parameter values and try again. +// +// * ServerInternalErrorException +// The server experienced an internal error. Try again. +// func (c *ApplicationDiscoveryService) DescribeExportConfigurations(input *DescribeExportConfigurationsInput) (*DescribeExportConfigurationsOutput, error) { req, out := c.DescribeExportConfigurationsRequest(input) err := req.Send() @@ -266,6 +413,8 @@ const opDescribeTags = "DescribeTags" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeTags for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -300,8 +449,37 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Application Discovery Service's +// API operation DescribeTags for usage and error information. +// +// Returned Error Codes: +// * AuthorizationErrorException +// The AWS user account does not have permission to perform the action. Check +// the IAM policy associated with this account. +// +// * ResourceNotFoundException +// The specified configuration ID was not located. Verify the configuration +// ID and try again. +// +// * InvalidParameterException +// One or more parameters are not valid. Verify the parameters and try again. +// +// * InvalidParameterValueException +// The value of one or more parameters are either invalid or out of range. Verify +// the parameter values and try again. +// +// * ServerInternalErrorException +// The server experienced an internal error. Try again. +// func (c *ApplicationDiscoveryService) DescribeTags(input *DescribeTagsInput) (*DescribeTagsOutput, error) { req, out := c.DescribeTagsRequest(input) err := req.Send() @@ -315,6 +493,8 @@ const opExportConfigurations = "ExportConfigurations" // value can be used to capture response data after the request's "Send" method // is called. // +// See ExportConfigurations for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -349,11 +529,39 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Application Discovery Service's +// API operation ExportConfigurations for usage and error information. +// +// Returned Error Codes: +// * AuthorizationErrorException +// The AWS user account does not have permission to perform the action. Check +// the IAM policy associated with this account. +// +// * InvalidParameterException +// One or more parameters are not valid. Verify the parameters and try again. +// +// * InvalidParameterValueException +// The value of one or more parameters are either invalid or out of range. Verify +// the parameter values and try again. +// +// * ServerInternalErrorException +// The server experienced an internal error. Try again. +// +// * OperationNotPermittedException +// This operation is not permitted. +// func (c *ApplicationDiscoveryService) ExportConfigurations(input *ExportConfigurationsInput) (*ExportConfigurationsOutput, error) { req, out := c.ExportConfigurationsRequest(input) err := req.Send() @@ -367,6 +575,8 @@ const opListConfigurations = "ListConfigurations" // value can be used to capture response data after the request's "Send" method // is called. // +// See ListConfigurations for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -401,8 +611,37 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Application Discovery Service's +// API operation ListConfigurations for usage and error information. +// +// Returned Error Codes: +// * AuthorizationErrorException +// The AWS user account does not have permission to perform the action. Check +// the IAM policy associated with this account. +// +// * ResourceNotFoundException +// The specified configuration ID was not located. Verify the configuration +// ID and try again. +// +// * InvalidParameterException +// One or more parameters are not valid. Verify the parameters and try again. +// +// * InvalidParameterValueException +// The value of one or more parameters are either invalid or out of range. Verify +// the parameter values and try again. +// +// * ServerInternalErrorException +// The server experienced an internal error. Try again. +// func (c *ApplicationDiscoveryService) ListConfigurations(input *ListConfigurationsInput) (*ListConfigurationsOutput, error) { req, out := c.ListConfigurationsRequest(input) err := req.Send() @@ -416,6 +655,8 @@ const opStartDataCollectionByAgentIds = "StartDataCollectionByAgentIds" // value can be used to capture response data after the request's "Send" method // is called. // +// See StartDataCollectionByAgentIds for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -450,8 +691,33 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Application Discovery Service's +// API operation StartDataCollectionByAgentIds for usage and error information. +// +// Returned Error Codes: +// * AuthorizationErrorException +// The AWS user account does not have permission to perform the action. Check +// the IAM policy associated with this account. +// +// * InvalidParameterException +// One or more parameters are not valid. Verify the parameters and try again. +// +// * InvalidParameterValueException +// The value of one or more parameters are either invalid or out of range. Verify +// the parameter values and try again. +// +// * ServerInternalErrorException +// The server experienced an internal error. Try again. +// func (c *ApplicationDiscoveryService) StartDataCollectionByAgentIds(input *StartDataCollectionByAgentIdsInput) (*StartDataCollectionByAgentIdsOutput, error) { req, out := c.StartDataCollectionByAgentIdsRequest(input) err := req.Send() @@ -465,6 +731,8 @@ const opStopDataCollectionByAgentIds = "StopDataCollectionByAgentIds" // value can be used to capture response data after the request's "Send" method // is called. // +// See StopDataCollectionByAgentIds for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -499,7 +767,32 @@ func (c *ApplicationDiscoveryService) StopDataCollectionByAgentIdsRequest(input return } +// StopDataCollectionByAgentIds API operation for AWS Application Discovery Service. +// // Instructs the specified agents to stop collecting data. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Application Discovery Service's +// API operation StopDataCollectionByAgentIds for usage and error information. +// +// Returned Error Codes: +// * AuthorizationErrorException +// The AWS user account does not have permission to perform the action. Check +// the IAM policy associated with this account. +// +// * InvalidParameterException +// One or more parameters are not valid. Verify the parameters and try again. +// +// * InvalidParameterValueException +// The value of one or more parameters are either invalid or out of range. Verify +// the parameter values and try again. +// +// * ServerInternalErrorException +// The server experienced an internal error. Try again. +// 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..2f40e850648 100644 --- a/service/autoscaling/api.go +++ b/service/autoscaling/api.go @@ -20,6 +20,8 @@ const opAttachInstances = "AttachInstances" // value can be used to capture response data after the request's "Send" method // is called. // +// See AttachInstances for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -56,6 +58,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 +75,19 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Auto Scaling's +// API operation AttachInstances for usage and error information. +// +// Returned Error Codes: +// * ResourceContention +// You already have a pending update to an Auto Scaling resource (for example, +// a group, instance, or load balancer). +// func (c *AutoScaling) AttachInstances(input *AttachInstancesInput) (*AttachInstancesOutput, error) { req, out := c.AttachInstancesRequest(input) err := req.Send() @@ -84,6 +101,8 @@ const opAttachLoadBalancerTargetGroups = "AttachLoadBalancerTargetGroups" // value can be used to capture response data after the request's "Send" method // is called. // +// See AttachLoadBalancerTargetGroups for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -118,6 +137,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 +147,19 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Auto Scaling's +// API operation AttachLoadBalancerTargetGroups for usage and error information. +// +// Returned Error Codes: +// * ResourceContention +// You already have a pending update to an Auto Scaling resource (for example, +// a group, instance, or load balancer). +// func (c *AutoScaling) AttachLoadBalancerTargetGroups(input *AttachLoadBalancerTargetGroupsInput) (*AttachLoadBalancerTargetGroupsOutput, error) { req, out := c.AttachLoadBalancerTargetGroupsRequest(input) err := req.Send() @@ -139,6 +173,8 @@ const opAttachLoadBalancers = "AttachLoadBalancers" // value can be used to capture response data after the request's "Send" method // is called. // +// See AttachLoadBalancers for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -173,6 +209,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 +222,19 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Auto Scaling's +// API operation AttachLoadBalancers for usage and error information. +// +// Returned Error Codes: +// * ResourceContention +// You already have a pending update to an Auto Scaling resource (for example, +// a group, instance, or load balancer). +// func (c *AutoScaling) AttachLoadBalancers(input *AttachLoadBalancersInput) (*AttachLoadBalancersOutput, error) { req, out := c.AttachLoadBalancersRequest(input) err := req.Send() @@ -197,6 +248,8 @@ const opCompleteLifecycleAction = "CompleteLifecycleAction" // value can be used to capture response data after the request's "Send" method // is called. // +// See CompleteLifecycleAction for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -231,6 +284,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 +311,19 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Auto Scaling's +// API operation CompleteLifecycleAction for usage and error information. +// +// Returned Error Codes: +// * ResourceContention +// You already have a pending update to an Auto Scaling resource (for example, +// a group, instance, or load balancer). +// func (c *AutoScaling) CompleteLifecycleAction(input *CompleteLifecycleActionInput) (*CompleteLifecycleActionOutput, error) { req, out := c.CompleteLifecycleActionRequest(input) err := req.Send() @@ -269,6 +337,8 @@ const opCreateAutoScalingGroup = "CreateAutoScalingGroup" // value can be used to capture response data after the request's "Send" method // is called. // +// See CreateAutoScalingGroup for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -305,6 +375,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 +385,28 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Auto Scaling's +// API operation CreateAutoScalingGroup for usage and error information. +// +// Returned Error Codes: +// * AlreadyExists +// You already have an Auto Scaling group or launch configuration with this +// name. +// +// * LimitExceeded +// You have already reached a limit for your Auto Scaling resources (for example, +// groups, launch configurations, or lifecycle hooks). For more information, +// see DescribeAccountLimits. +// +// * ResourceContention +// You already have a pending update to an Auto Scaling resource (for example, +// a group, instance, or load balancer). +// func (c *AutoScaling) CreateAutoScalingGroup(input *CreateAutoScalingGroupInput) (*CreateAutoScalingGroupOutput, error) { req, out := c.CreateAutoScalingGroupRequest(input) err := req.Send() @@ -326,6 +420,8 @@ const opCreateLaunchConfiguration = "CreateLaunchConfiguration" // value can be used to capture response data after the request's "Send" method // is called. // +// See CreateLaunchConfiguration for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -362,6 +458,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 +468,28 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Auto Scaling's +// API operation CreateLaunchConfiguration for usage and error information. +// +// Returned Error Codes: +// * AlreadyExists +// You already have an Auto Scaling group or launch configuration with this +// name. +// +// * LimitExceeded +// You have already reached a limit for your Auto Scaling resources (for example, +// groups, launch configurations, or lifecycle hooks). For more information, +// see DescribeAccountLimits. +// +// * ResourceContention +// You already have a pending update to an Auto Scaling resource (for example, +// a group, instance, or load balancer). +// func (c *AutoScaling) CreateLaunchConfiguration(input *CreateLaunchConfigurationInput) (*CreateLaunchConfigurationOutput, error) { req, out := c.CreateLaunchConfigurationRequest(input) err := req.Send() @@ -383,6 +503,8 @@ const opCreateOrUpdateTags = "CreateOrUpdateTags" // value can be used to capture response data after the request's "Send" method // is called. // +// See CreateOrUpdateTags for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -419,6 +541,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 +550,28 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Auto Scaling's +// API operation CreateOrUpdateTags for usage and error information. +// +// Returned Error Codes: +// * LimitExceeded +// You have already reached a limit for your Auto Scaling resources (for example, +// groups, launch configurations, or lifecycle hooks). For more information, +// see DescribeAccountLimits. +// +// * AlreadyExists +// You already have an Auto Scaling group or launch configuration with this +// name. +// +// * ResourceContention +// You already have a pending update to an Auto Scaling resource (for example, +// a group, instance, or load balancer). +// func (c *AutoScaling) CreateOrUpdateTags(input *CreateOrUpdateTagsInput) (*CreateOrUpdateTagsOutput, error) { req, out := c.CreateOrUpdateTagsRequest(input) err := req.Send() @@ -439,6 +585,8 @@ const opDeleteAutoScalingGroup = "DeleteAutoScalingGroup" // value can be used to capture response data after the request's "Send" method // is called. // +// See DeleteAutoScalingGroup for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -475,6 +623,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 +641,26 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Auto Scaling's +// API operation DeleteAutoScalingGroup for usage and error information. +// +// Returned Error Codes: +// * ScalingActivityInProgress +// The operation can't be performed because there are scaling activities in +// progress. +// +// * ResourceInUse +// The operation can't be performed because the resource is in use. +// +// * ResourceContention +// You already have a pending update to an Auto Scaling resource (for example, +// a group, instance, or load balancer). +// func (c *AutoScaling) DeleteAutoScalingGroup(input *DeleteAutoScalingGroupInput) (*DeleteAutoScalingGroupOutput, error) { req, out := c.DeleteAutoScalingGroupRequest(input) err := req.Send() @@ -504,6 +674,8 @@ const opDeleteLaunchConfiguration = "DeleteLaunchConfiguration" // value can be used to capture response data after the request's "Send" method // is called. // +// See DeleteLaunchConfiguration for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -540,11 +712,29 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Auto Scaling's +// API operation DeleteLaunchConfiguration for usage and error information. +// +// Returned Error Codes: +// * ResourceInUse +// The operation can't be performed because the resource is in use. +// +// * ResourceContention +// You already have a pending update to an Auto Scaling resource (for example, +// a group, instance, or load balancer). +// func (c *AutoScaling) DeleteLaunchConfiguration(input *DeleteLaunchConfigurationInput) (*DeleteLaunchConfigurationOutput, error) { req, out := c.DeleteLaunchConfigurationRequest(input) err := req.Send() @@ -558,6 +748,8 @@ const opDeleteLifecycleHook = "DeleteLifecycleHook" // value can be used to capture response data after the request's "Send" method // is called. // +// See DeleteLifecycleHook for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -592,10 +784,25 @@ 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). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Auto Scaling's +// API operation DeleteLifecycleHook for usage and error information. +// +// Returned Error Codes: +// * ResourceContention +// You already have a pending update to an Auto Scaling resource (for example, +// a group, instance, or load balancer). +// func (c *AutoScaling) DeleteLifecycleHook(input *DeleteLifecycleHookInput) (*DeleteLifecycleHookOutput, error) { req, out := c.DeleteLifecycleHookRequest(input) err := req.Send() @@ -609,6 +816,8 @@ const opDeleteNotificationConfiguration = "DeleteNotificationConfiguration" // value can be used to capture response data after the request's "Send" method // is called. // +// See DeleteNotificationConfiguration for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -645,7 +854,22 @@ func (c *AutoScaling) DeleteNotificationConfigurationRequest(input *DeleteNotifi return } +// DeleteNotificationConfiguration API operation for Auto Scaling. +// // Deletes the specified notification. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Auto Scaling's +// API operation DeleteNotificationConfiguration for usage and error information. +// +// Returned Error Codes: +// * ResourceContention +// You already have a pending update to an Auto Scaling resource (for example, +// a group, instance, or load balancer). +// func (c *AutoScaling) DeleteNotificationConfiguration(input *DeleteNotificationConfigurationInput) (*DeleteNotificationConfigurationOutput, error) { req, out := c.DeleteNotificationConfigurationRequest(input) err := req.Send() @@ -659,6 +883,8 @@ const opDeletePolicy = "DeletePolicy" // value can be used to capture response data after the request's "Send" method // is called. // +// See DeletePolicy for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -695,10 +921,25 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Auto Scaling's +// API operation DeletePolicy for usage and error information. +// +// Returned Error Codes: +// * ResourceContention +// You already have a pending update to an Auto Scaling resource (for example, +// a group, instance, or load balancer). +// func (c *AutoScaling) DeletePolicy(input *DeletePolicyInput) (*DeletePolicyOutput, error) { req, out := c.DeletePolicyRequest(input) err := req.Send() @@ -712,6 +953,8 @@ const opDeleteScheduledAction = "DeleteScheduledAction" // value can be used to capture response data after the request's "Send" method // is called. // +// See DeleteScheduledAction for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -748,7 +991,22 @@ func (c *AutoScaling) DeleteScheduledActionRequest(input *DeleteScheduledActionI return } +// DeleteScheduledAction API operation for Auto Scaling. +// // Deletes the specified scheduled action. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Auto Scaling's +// API operation DeleteScheduledAction for usage and error information. +// +// Returned Error Codes: +// * ResourceContention +// You already have a pending update to an Auto Scaling resource (for example, +// a group, instance, or load balancer). +// func (c *AutoScaling) DeleteScheduledAction(input *DeleteScheduledActionInput) (*DeleteScheduledActionOutput, error) { req, out := c.DeleteScheduledActionRequest(input) err := req.Send() @@ -762,6 +1020,8 @@ const opDeleteTags = "DeleteTags" // value can be used to capture response data after the request's "Send" method // is called. // +// See DeleteTags for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -798,7 +1058,22 @@ func (c *AutoScaling) DeleteTagsRequest(input *DeleteTagsInput) (req *request.Re return } +// DeleteTags API operation for Auto Scaling. +// // Deletes the specified tags. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Auto Scaling's +// API operation DeleteTags for usage and error information. +// +// Returned Error Codes: +// * ResourceContention +// You already have a pending update to an Auto Scaling resource (for example, +// a group, instance, or load balancer). +// func (c *AutoScaling) DeleteTags(input *DeleteTagsInput) (*DeleteTagsOutput, error) { req, out := c.DeleteTagsRequest(input) err := req.Send() @@ -812,6 +1087,8 @@ const opDescribeAccountLimits = "DescribeAccountLimits" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeAccountLimits for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -846,11 +1123,26 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Auto Scaling's +// API operation DescribeAccountLimits for usage and error information. +// +// Returned Error Codes: +// * ResourceContention +// You already have a pending update to an Auto Scaling resource (for example, +// a group, instance, or load balancer). +// func (c *AutoScaling) DescribeAccountLimits(input *DescribeAccountLimitsInput) (*DescribeAccountLimitsOutput, error) { req, out := c.DescribeAccountLimitsRequest(input) err := req.Send() @@ -864,6 +1156,8 @@ const opDescribeAdjustmentTypes = "DescribeAdjustmentTypes" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeAdjustmentTypes for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -898,7 +1192,22 @@ func (c *AutoScaling) DescribeAdjustmentTypesRequest(input *DescribeAdjustmentTy return } +// DescribeAdjustmentTypes API operation for Auto Scaling. +// // Describes the policy adjustment types for use with PutScalingPolicy. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Auto Scaling's +// API operation DescribeAdjustmentTypes for usage and error information. +// +// Returned Error Codes: +// * ResourceContention +// You already have a pending update to an Auto Scaling resource (for example, +// a group, instance, or load balancer). +// func (c *AutoScaling) DescribeAdjustmentTypes(input *DescribeAdjustmentTypesInput) (*DescribeAdjustmentTypesOutput, error) { req, out := c.DescribeAdjustmentTypesRequest(input) err := req.Send() @@ -912,6 +1221,8 @@ const opDescribeAutoScalingGroups = "DescribeAutoScalingGroups" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeAutoScalingGroups for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -952,7 +1263,25 @@ func (c *AutoScaling) DescribeAutoScalingGroupsRequest(input *DescribeAutoScalin return } +// DescribeAutoScalingGroups API operation for Auto Scaling. +// // Describes one or more Auto Scaling groups. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Auto Scaling's +// API operation DescribeAutoScalingGroups for usage and error information. +// +// Returned Error Codes: +// * InvalidNextToken +// The NextToken value is not valid. +// +// * ResourceContention +// You already have a pending update to an Auto Scaling resource (for example, +// a group, instance, or load balancer). +// func (c *AutoScaling) DescribeAutoScalingGroups(input *DescribeAutoScalingGroupsInput) (*DescribeAutoScalingGroupsOutput, error) { req, out := c.DescribeAutoScalingGroupsRequest(input) err := req.Send() @@ -991,6 +1320,8 @@ const opDescribeAutoScalingInstances = "DescribeAutoScalingInstances" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeAutoScalingInstances for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1031,7 +1362,25 @@ func (c *AutoScaling) DescribeAutoScalingInstancesRequest(input *DescribeAutoSca return } +// DescribeAutoScalingInstances API operation for Auto Scaling. +// // Describes one or more Auto Scaling instances. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Auto Scaling's +// API operation DescribeAutoScalingInstances for usage and error information. +// +// Returned Error Codes: +// * InvalidNextToken +// The NextToken value is not valid. +// +// * ResourceContention +// You already have a pending update to an Auto Scaling resource (for example, +// a group, instance, or load balancer). +// func (c *AutoScaling) DescribeAutoScalingInstances(input *DescribeAutoScalingInstancesInput) (*DescribeAutoScalingInstancesOutput, error) { req, out := c.DescribeAutoScalingInstancesRequest(input) err := req.Send() @@ -1070,6 +1419,8 @@ const opDescribeAutoScalingNotificationTypes = "DescribeAutoScalingNotificationT // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeAutoScalingNotificationTypes for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1104,7 +1455,22 @@ func (c *AutoScaling) DescribeAutoScalingNotificationTypesRequest(input *Describ return } +// DescribeAutoScalingNotificationTypes API operation for Auto Scaling. +// // Describes the notification types that are supported by Auto Scaling. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Auto Scaling's +// API operation DescribeAutoScalingNotificationTypes for usage and error information. +// +// Returned Error Codes: +// * ResourceContention +// You already have a pending update to an Auto Scaling resource (for example, +// a group, instance, or load balancer). +// func (c *AutoScaling) DescribeAutoScalingNotificationTypes(input *DescribeAutoScalingNotificationTypesInput) (*DescribeAutoScalingNotificationTypesOutput, error) { req, out := c.DescribeAutoScalingNotificationTypesRequest(input) err := req.Send() @@ -1118,6 +1484,8 @@ const opDescribeLaunchConfigurations = "DescribeLaunchConfigurations" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeLaunchConfigurations for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1158,7 +1526,25 @@ func (c *AutoScaling) DescribeLaunchConfigurationsRequest(input *DescribeLaunchC return } +// DescribeLaunchConfigurations API operation for Auto Scaling. +// // Describes one or more launch configurations. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Auto Scaling's +// API operation DescribeLaunchConfigurations for usage and error information. +// +// Returned Error Codes: +// * InvalidNextToken +// The NextToken value is not valid. +// +// * ResourceContention +// You already have a pending update to an Auto Scaling resource (for example, +// a group, instance, or load balancer). +// func (c *AutoScaling) DescribeLaunchConfigurations(input *DescribeLaunchConfigurationsInput) (*DescribeLaunchConfigurationsOutput, error) { req, out := c.DescribeLaunchConfigurationsRequest(input) err := req.Send() @@ -1197,6 +1583,8 @@ const opDescribeLifecycleHookTypes = "DescribeLifecycleHookTypes" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeLifecycleHookTypes for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1231,7 +1619,22 @@ func (c *AutoScaling) DescribeLifecycleHookTypesRequest(input *DescribeLifecycle return } +// DescribeLifecycleHookTypes API operation for Auto Scaling. +// // Describes the available types of lifecycle hooks. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Auto Scaling's +// API operation DescribeLifecycleHookTypes for usage and error information. +// +// Returned Error Codes: +// * ResourceContention +// You already have a pending update to an Auto Scaling resource (for example, +// a group, instance, or load balancer). +// func (c *AutoScaling) DescribeLifecycleHookTypes(input *DescribeLifecycleHookTypesInput) (*DescribeLifecycleHookTypesOutput, error) { req, out := c.DescribeLifecycleHookTypesRequest(input) err := req.Send() @@ -1245,6 +1648,8 @@ const opDescribeLifecycleHooks = "DescribeLifecycleHooks" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeLifecycleHooks for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1279,7 +1684,22 @@ func (c *AutoScaling) DescribeLifecycleHooksRequest(input *DescribeLifecycleHook return } +// DescribeLifecycleHooks API operation for Auto Scaling. +// // Describes the lifecycle hooks for the specified Auto Scaling group. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Auto Scaling's +// API operation DescribeLifecycleHooks for usage and error information. +// +// Returned Error Codes: +// * ResourceContention +// You already have a pending update to an Auto Scaling resource (for example, +// a group, instance, or load balancer). +// func (c *AutoScaling) DescribeLifecycleHooks(input *DescribeLifecycleHooksInput) (*DescribeLifecycleHooksOutput, error) { req, out := c.DescribeLifecycleHooksRequest(input) err := req.Send() @@ -1293,6 +1713,8 @@ const opDescribeLoadBalancerTargetGroups = "DescribeLoadBalancerTargetGroups" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeLoadBalancerTargetGroups for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1327,7 +1749,22 @@ func (c *AutoScaling) DescribeLoadBalancerTargetGroupsRequest(input *DescribeLoa return } +// DescribeLoadBalancerTargetGroups API operation for Auto Scaling. +// // Describes the target groups for the specified Auto Scaling group. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Auto Scaling's +// API operation DescribeLoadBalancerTargetGroups for usage and error information. +// +// Returned Error Codes: +// * ResourceContention +// You already have a pending update to an Auto Scaling resource (for example, +// a group, instance, or load balancer). +// func (c *AutoScaling) DescribeLoadBalancerTargetGroups(input *DescribeLoadBalancerTargetGroupsInput) (*DescribeLoadBalancerTargetGroupsOutput, error) { req, out := c.DescribeLoadBalancerTargetGroupsRequest(input) err := req.Send() @@ -1341,6 +1778,8 @@ const opDescribeLoadBalancers = "DescribeLoadBalancers" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeLoadBalancers for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1375,10 +1814,25 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Auto Scaling's +// API operation DescribeLoadBalancers for usage and error information. +// +// Returned Error Codes: +// * ResourceContention +// You already have a pending update to an Auto Scaling resource (for example, +// a group, instance, or load balancer). +// func (c *AutoScaling) DescribeLoadBalancers(input *DescribeLoadBalancersInput) (*DescribeLoadBalancersOutput, error) { req, out := c.DescribeLoadBalancersRequest(input) err := req.Send() @@ -1392,6 +1846,8 @@ const opDescribeMetricCollectionTypes = "DescribeMetricCollectionTypes" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeMetricCollectionTypes for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1426,10 +1882,25 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Auto Scaling's +// API operation DescribeMetricCollectionTypes for usage and error information. +// +// Returned Error Codes: +// * ResourceContention +// You already have a pending update to an Auto Scaling resource (for example, +// a group, instance, or load balancer). +// func (c *AutoScaling) DescribeMetricCollectionTypes(input *DescribeMetricCollectionTypesInput) (*DescribeMetricCollectionTypesOutput, error) { req, out := c.DescribeMetricCollectionTypesRequest(input) err := req.Send() @@ -1443,6 +1914,8 @@ const opDescribeNotificationConfigurations = "DescribeNotificationConfigurations // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeNotificationConfigurations for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1483,8 +1956,26 @@ func (c *AutoScaling) DescribeNotificationConfigurationsRequest(input *DescribeN return } +// DescribeNotificationConfigurations API operation for Auto Scaling. +// // Describes the notification actions associated with the specified Auto Scaling // group. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Auto Scaling's +// API operation DescribeNotificationConfigurations for usage and error information. +// +// Returned Error Codes: +// * InvalidNextToken +// The NextToken value is not valid. +// +// * ResourceContention +// You already have a pending update to an Auto Scaling resource (for example, +// a group, instance, or load balancer). +// func (c *AutoScaling) DescribeNotificationConfigurations(input *DescribeNotificationConfigurationsInput) (*DescribeNotificationConfigurationsOutput, error) { req, out := c.DescribeNotificationConfigurationsRequest(input) err := req.Send() @@ -1523,6 +2014,8 @@ const opDescribePolicies = "DescribePolicies" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribePolicies for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1563,7 +2056,25 @@ func (c *AutoScaling) DescribePoliciesRequest(input *DescribePoliciesInput) (req return } +// DescribePolicies API operation for Auto Scaling. +// // Describes the policies for the specified Auto Scaling group. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Auto Scaling's +// API operation DescribePolicies for usage and error information. +// +// Returned Error Codes: +// * InvalidNextToken +// The NextToken value is not valid. +// +// * ResourceContention +// You already have a pending update to an Auto Scaling resource (for example, +// a group, instance, or load balancer). +// func (c *AutoScaling) DescribePolicies(input *DescribePoliciesInput) (*DescribePoliciesOutput, error) { req, out := c.DescribePoliciesRequest(input) err := req.Send() @@ -1602,6 +2113,8 @@ const opDescribeScalingActivities = "DescribeScalingActivities" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeScalingActivities for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1642,7 +2155,25 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Auto Scaling's +// API operation DescribeScalingActivities for usage and error information. +// +// Returned Error Codes: +// * InvalidNextToken +// The NextToken value is not valid. +// +// * ResourceContention +// You already have a pending update to an Auto Scaling resource (for example, +// a group, instance, or load balancer). +// func (c *AutoScaling) DescribeScalingActivities(input *DescribeScalingActivitiesInput) (*DescribeScalingActivitiesOutput, error) { req, out := c.DescribeScalingActivitiesRequest(input) err := req.Send() @@ -1681,6 +2212,8 @@ const opDescribeScalingProcessTypes = "DescribeScalingProcessTypes" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeScalingProcessTypes for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1715,7 +2248,22 @@ func (c *AutoScaling) DescribeScalingProcessTypesRequest(input *DescribeScalingP return } +// DescribeScalingProcessTypes API operation for Auto Scaling. +// // Describes the scaling process types for use with ResumeProcesses and SuspendProcesses. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Auto Scaling's +// API operation DescribeScalingProcessTypes for usage and error information. +// +// Returned Error Codes: +// * ResourceContention +// You already have a pending update to an Auto Scaling resource (for example, +// a group, instance, or load balancer). +// func (c *AutoScaling) DescribeScalingProcessTypes(input *DescribeScalingProcessTypesInput) (*DescribeScalingProcessTypesOutput, error) { req, out := c.DescribeScalingProcessTypesRequest(input) err := req.Send() @@ -1729,6 +2277,8 @@ const opDescribeScheduledActions = "DescribeScheduledActions" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeScheduledActions for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1769,8 +2319,26 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Auto Scaling's +// API operation DescribeScheduledActions for usage and error information. +// +// Returned Error Codes: +// * InvalidNextToken +// The NextToken value is not valid. +// +// * ResourceContention +// You already have a pending update to an Auto Scaling resource (for example, +// a group, instance, or load balancer). +// func (c *AutoScaling) DescribeScheduledActions(input *DescribeScheduledActionsInput) (*DescribeScheduledActionsOutput, error) { req, out := c.DescribeScheduledActionsRequest(input) err := req.Send() @@ -1809,6 +2377,8 @@ const opDescribeTags = "DescribeTags" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeTags for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1849,6 +2419,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 +2431,22 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Auto Scaling's +// API operation DescribeTags for usage and error information. +// +// Returned Error Codes: +// * InvalidNextToken +// The NextToken value is not valid. +// +// * ResourceContention +// You already have a pending update to an Auto Scaling resource (for example, +// a group, instance, or load balancer). +// func (c *AutoScaling) DescribeTags(input *DescribeTagsInput) (*DescribeTagsOutput, error) { req, out := c.DescribeTagsRequest(input) err := req.Send() @@ -1897,6 +2485,8 @@ const opDescribeTerminationPolicyTypes = "DescribeTerminationPolicyTypes" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeTerminationPolicyTypes for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1931,7 +2521,22 @@ func (c *AutoScaling) DescribeTerminationPolicyTypesRequest(input *DescribeTermi return } +// DescribeTerminationPolicyTypes API operation for Auto Scaling. +// // Describes the termination policies supported by Auto Scaling. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Auto Scaling's +// API operation DescribeTerminationPolicyTypes for usage and error information. +// +// Returned Error Codes: +// * ResourceContention +// You already have a pending update to an Auto Scaling resource (for example, +// a group, instance, or load balancer). +// func (c *AutoScaling) DescribeTerminationPolicyTypes(input *DescribeTerminationPolicyTypesInput) (*DescribeTerminationPolicyTypesOutput, error) { req, out := c.DescribeTerminationPolicyTypesRequest(input) err := req.Send() @@ -1945,6 +2550,8 @@ const opDetachInstances = "DetachInstances" // value can be used to capture response data after the request's "Send" method // is called. // +// See DetachInstances for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1979,6 +2586,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 +2604,19 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Auto Scaling's +// API operation DetachInstances for usage and error information. +// +// Returned Error Codes: +// * ResourceContention +// You already have a pending update to an Auto Scaling resource (for example, +// a group, instance, or load balancer). +// func (c *AutoScaling) DetachInstances(input *DetachInstancesInput) (*DetachInstancesOutput, error) { req, out := c.DetachInstancesRequest(input) err := req.Send() @@ -2008,6 +2630,8 @@ const opDetachLoadBalancerTargetGroups = "DetachLoadBalancerTargetGroups" // value can be used to capture response data after the request's "Send" method // is called. // +// See DetachLoadBalancerTargetGroups for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -2042,7 +2666,22 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Auto Scaling's +// API operation DetachLoadBalancerTargetGroups for usage and error information. +// +// Returned Error Codes: +// * ResourceContention +// You already have a pending update to an Auto Scaling resource (for example, +// a group, instance, or load balancer). +// func (c *AutoScaling) DetachLoadBalancerTargetGroups(input *DetachLoadBalancerTargetGroupsInput) (*DetachLoadBalancerTargetGroupsOutput, error) { req, out := c.DetachLoadBalancerTargetGroupsRequest(input) err := req.Send() @@ -2056,6 +2695,8 @@ const opDetachLoadBalancers = "DetachLoadBalancers" // value can be used to capture response data after the request's "Send" method // is called. // +// See DetachLoadBalancers for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -2090,6 +2731,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 +2743,19 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Auto Scaling's +// API operation DetachLoadBalancers for usage and error information. +// +// Returned Error Codes: +// * ResourceContention +// You already have a pending update to an Auto Scaling resource (for example, +// a group, instance, or load balancer). +// func (c *AutoScaling) DetachLoadBalancers(input *DetachLoadBalancersInput) (*DetachLoadBalancersOutput, error) { req, out := c.DetachLoadBalancersRequest(input) err := req.Send() @@ -2113,6 +2769,8 @@ const opDisableMetricsCollection = "DisableMetricsCollection" // value can be used to capture response data after the request's "Send" method // is called. // +// See DisableMetricsCollection for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -2149,7 +2807,22 @@ func (c *AutoScaling) DisableMetricsCollectionRequest(input *DisableMetricsColle return } +// DisableMetricsCollection API operation for Auto Scaling. +// // Disables group metrics for the specified Auto Scaling group. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Auto Scaling's +// API operation DisableMetricsCollection for usage and error information. +// +// Returned Error Codes: +// * ResourceContention +// You already have a pending update to an Auto Scaling resource (for example, +// a group, instance, or load balancer). +// func (c *AutoScaling) DisableMetricsCollection(input *DisableMetricsCollectionInput) (*DisableMetricsCollectionOutput, error) { req, out := c.DisableMetricsCollectionRequest(input) err := req.Send() @@ -2163,6 +2836,8 @@ const opEnableMetricsCollection = "EnableMetricsCollection" // value can be used to capture response data after the request's "Send" method // is called. // +// See EnableMetricsCollection for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -2199,9 +2874,24 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Auto Scaling's +// API operation EnableMetricsCollection for usage and error information. +// +// Returned Error Codes: +// * ResourceContention +// You already have a pending update to an Auto Scaling resource (for example, +// a group, instance, or load balancer). +// func (c *AutoScaling) EnableMetricsCollection(input *EnableMetricsCollectionInput) (*EnableMetricsCollectionOutput, error) { req, out := c.EnableMetricsCollectionRequest(input) err := req.Send() @@ -2215,6 +2905,8 @@ const opEnterStandby = "EnterStandby" // value can be used to capture response data after the request's "Send" method // is called. // +// See EnterStandby for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -2249,10 +2941,25 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Auto Scaling's +// API operation EnterStandby for usage and error information. +// +// Returned Error Codes: +// * ResourceContention +// You already have a pending update to an Auto Scaling resource (for example, +// a group, instance, or load balancer). +// func (c *AutoScaling) EnterStandby(input *EnterStandbyInput) (*EnterStandbyOutput, error) { req, out := c.EnterStandbyRequest(input) err := req.Send() @@ -2266,6 +2973,8 @@ const opExecutePolicy = "ExecutePolicy" // value can be used to capture response data after the request's "Send" method // is called. // +// See ExecutePolicy for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -2302,7 +3011,26 @@ func (c *AutoScaling) ExecutePolicyRequest(input *ExecutePolicyInput) (req *requ return } +// ExecutePolicy API operation for Auto Scaling. +// // Executes the specified policy. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Auto Scaling's +// API operation ExecutePolicy for usage and error information. +// +// Returned Error Codes: +// * ScalingActivityInProgress +// The operation can't be performed because there are scaling activities in +// progress. +// +// * ResourceContention +// You already have a pending update to an Auto Scaling resource (for example, +// a group, instance, or load balancer). +// func (c *AutoScaling) ExecutePolicy(input *ExecutePolicyInput) (*ExecutePolicyOutput, error) { req, out := c.ExecutePolicyRequest(input) err := req.Send() @@ -2316,6 +3044,8 @@ const opExitStandby = "ExitStandby" // value can be used to capture response data after the request's "Send" method // is called. // +// See ExitStandby for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -2350,10 +3080,25 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Auto Scaling's +// API operation ExitStandby for usage and error information. +// +// Returned Error Codes: +// * ResourceContention +// You already have a pending update to an Auto Scaling resource (for example, +// a group, instance, or load balancer). +// func (c *AutoScaling) ExitStandby(input *ExitStandbyInput) (*ExitStandbyOutput, error) { req, out := c.ExitStandbyRequest(input) err := req.Send() @@ -2367,6 +3112,8 @@ const opPutLifecycleHook = "PutLifecycleHook" // value can be used to capture response data after the request's "Send" method // is called. // +// See PutLifecycleHook for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -2401,6 +3148,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 +3182,24 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Auto Scaling's +// API operation PutLifecycleHook for usage and error information. +// +// Returned Error Codes: +// * LimitExceeded +// You have already reached a limit for your Auto Scaling resources (for example, +// groups, launch configurations, or lifecycle hooks). For more information, +// see DescribeAccountLimits. +// +// * ResourceContention +// You already have a pending update to an Auto Scaling resource (for example, +// a group, instance, or load balancer). +// func (c *AutoScaling) PutLifecycleHook(input *PutLifecycleHookInput) (*PutLifecycleHookOutput, error) { req, out := c.PutLifecycleHookRequest(input) err := req.Send() @@ -2446,6 +3213,8 @@ const opPutNotificationConfiguration = "PutNotificationConfiguration" // value can be used to capture response data after the request's "Send" method // is called. // +// See PutNotificationConfiguration for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -2482,6 +3251,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 +3262,24 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Auto Scaling's +// API operation PutNotificationConfiguration for usage and error information. +// +// Returned Error Codes: +// * LimitExceeded +// You have already reached a limit for your Auto Scaling resources (for example, +// groups, launch configurations, or lifecycle hooks). For more information, +// see DescribeAccountLimits. +// +// * ResourceContention +// You already have a pending update to an Auto Scaling resource (for example, +// a group, instance, or load balancer). +// func (c *AutoScaling) PutNotificationConfiguration(input *PutNotificationConfigurationInput) (*PutNotificationConfigurationOutput, error) { req, out := c.PutNotificationConfigurationRequest(input) err := req.Send() @@ -2504,6 +3293,8 @@ const opPutScalingPolicy = "PutScalingPolicy" // value can be used to capture response data after the request's "Send" method // is called. // +// See PutScalingPolicy for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -2538,6 +3329,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 +3340,24 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Auto Scaling's +// API operation PutScalingPolicy for usage and error information. +// +// Returned Error Codes: +// * LimitExceeded +// You have already reached a limit for your Auto Scaling resources (for example, +// groups, launch configurations, or lifecycle hooks). For more information, +// see DescribeAccountLimits. +// +// * ResourceContention +// You already have a pending update to an Auto Scaling resource (for example, +// a group, instance, or load balancer). +// func (c *AutoScaling) PutScalingPolicy(input *PutScalingPolicyInput) (*PutScalingPolicyOutput, error) { req, out := c.PutScalingPolicyRequest(input) err := req.Send() @@ -2560,6 +3371,8 @@ const opPutScheduledUpdateGroupAction = "PutScheduledUpdateGroupAction" // value can be used to capture response data after the request's "Send" method // is called. // +// See PutScheduledUpdateGroupAction for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -2596,12 +3409,36 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Auto Scaling's +// API operation PutScheduledUpdateGroupAction for usage and error information. +// +// Returned Error Codes: +// * AlreadyExists +// You already have an Auto Scaling group or launch configuration with this +// name. +// +// * LimitExceeded +// You have already reached a limit for your Auto Scaling resources (for example, +// groups, launch configurations, or lifecycle hooks). For more information, +// see DescribeAccountLimits. +// +// * ResourceContention +// You already have a pending update to an Auto Scaling resource (for example, +// a group, instance, or load balancer). +// func (c *AutoScaling) PutScheduledUpdateGroupAction(input *PutScheduledUpdateGroupActionInput) (*PutScheduledUpdateGroupActionOutput, error) { req, out := c.PutScheduledUpdateGroupActionRequest(input) err := req.Send() @@ -2615,6 +3452,8 @@ const opRecordLifecycleActionHeartbeat = "RecordLifecycleActionHeartbeat" // value can be used to capture response data after the request's "Send" method // is called. // +// See RecordLifecycleActionHeartbeat for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -2649,6 +3488,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 +3515,19 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Auto Scaling's +// API operation RecordLifecycleActionHeartbeat for usage and error information. +// +// Returned Error Codes: +// * ResourceContention +// You already have a pending update to an Auto Scaling resource (for example, +// a group, instance, or load balancer). +// func (c *AutoScaling) RecordLifecycleActionHeartbeat(input *RecordLifecycleActionHeartbeatInput) (*RecordLifecycleActionHeartbeatOutput, error) { req, out := c.RecordLifecycleActionHeartbeatRequest(input) err := req.Send() @@ -2687,6 +3541,8 @@ const opResumeProcesses = "ResumeProcesses" // value can be used to capture response data after the request's "Send" method // is called. // +// See ResumeProcesses for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -2723,12 +3579,30 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Auto Scaling's +// API operation ResumeProcesses for usage and error information. +// +// Returned Error Codes: +// * ResourceInUse +// The operation can't be performed because the resource is in use. +// +// * ResourceContention +// You already have a pending update to an Auto Scaling resource (for example, +// a group, instance, or load balancer). +// func (c *AutoScaling) ResumeProcesses(input *ScalingProcessQuery) (*ResumeProcessesOutput, error) { req, out := c.ResumeProcessesRequest(input) err := req.Send() @@ -2742,6 +3616,8 @@ const opSetDesiredCapacity = "SetDesiredCapacity" // value can be used to capture response data after the request's "Send" method // is called. // +// See SetDesiredCapacity for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -2778,10 +3654,29 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Auto Scaling's +// API operation SetDesiredCapacity for usage and error information. +// +// Returned Error Codes: +// * ScalingActivityInProgress +// The operation can't be performed because there are scaling activities in +// progress. +// +// * ResourceContention +// You already have a pending update to an Auto Scaling resource (for example, +// a group, instance, or load balancer). +// func (c *AutoScaling) SetDesiredCapacity(input *SetDesiredCapacityInput) (*SetDesiredCapacityOutput, error) { req, out := c.SetDesiredCapacityRequest(input) err := req.Send() @@ -2795,6 +3690,8 @@ const opSetInstanceHealth = "SetInstanceHealth" // value can be used to capture response data after the request's "Send" method // is called. // +// See SetInstanceHealth for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -2831,10 +3728,25 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Auto Scaling's +// API operation SetInstanceHealth for usage and error information. +// +// Returned Error Codes: +// * ResourceContention +// You already have a pending update to an Auto Scaling resource (for example, +// a group, instance, or load balancer). +// func (c *AutoScaling) SetInstanceHealth(input *SetInstanceHealthInput) (*SetInstanceHealthOutput, error) { req, out := c.SetInstanceHealthRequest(input) err := req.Send() @@ -2848,6 +3760,8 @@ const opSetInstanceProtection = "SetInstanceProtection" // value can be used to capture response data after the request's "Send" method // is called. // +// See SetInstanceProtection for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -2882,10 +3796,30 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Auto Scaling's +// API operation SetInstanceProtection for usage and error information. +// +// Returned Error Codes: +// * LimitExceeded +// You have already reached a limit for your Auto Scaling resources (for example, +// groups, launch configurations, or lifecycle hooks). For more information, +// see DescribeAccountLimits. +// +// * ResourceContention +// You already have a pending update to an Auto Scaling resource (for example, +// a group, instance, or load balancer). +// func (c *AutoScaling) SetInstanceProtection(input *SetInstanceProtectionInput) (*SetInstanceProtectionOutput, error) { req, out := c.SetInstanceProtectionRequest(input) err := req.Send() @@ -2899,6 +3833,8 @@ const opSuspendProcesses = "SuspendProcesses" // value can be used to capture response data after the request's "Send" method // is called. // +// See SuspendProcesses for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -2935,6 +3871,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 +3884,22 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Auto Scaling's +// API operation SuspendProcesses for usage and error information. +// +// Returned Error Codes: +// * ResourceInUse +// The operation can't be performed because the resource is in use. +// +// * ResourceContention +// You already have a pending update to an Auto Scaling resource (for example, +// a group, instance, or load balancer). +// func (c *AutoScaling) SuspendProcesses(input *ScalingProcessQuery) (*SuspendProcessesOutput, error) { req, out := c.SuspendProcessesRequest(input) err := req.Send() @@ -2959,6 +3913,8 @@ const opTerminateInstanceInAutoScalingGroup = "TerminateInstanceInAutoScalingGro // value can be used to capture response data after the request's "Send" method // is called. // +// See TerminateInstanceInAutoScalingGroup for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -2993,11 +3949,30 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Auto Scaling's +// API operation TerminateInstanceInAutoScalingGroup for usage and error information. +// +// Returned Error Codes: +// * ScalingActivityInProgress +// The operation can't be performed because there are scaling activities in +// progress. +// +// * ResourceContention +// You already have a pending update to an Auto Scaling resource (for example, +// a group, instance, or load balancer). +// func (c *AutoScaling) TerminateInstanceInAutoScalingGroup(input *TerminateInstanceInAutoScalingGroupInput) (*TerminateInstanceInAutoScalingGroupOutput, error) { req, out := c.TerminateInstanceInAutoScalingGroupRequest(input) err := req.Send() @@ -3011,6 +3986,8 @@ const opUpdateAutoScalingGroup = "UpdateAutoScalingGroup" // value can be used to capture response data after the request's "Send" method // is called. // +// See UpdateAutoScalingGroup for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -3047,6 +4024,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 +4050,23 @@ func (c *AutoScaling) UpdateAutoScalingGroupRequest(input *UpdateAutoScalingGrou // to the new value of MaxSize. // // All other optional parameters are left unchanged if not specified. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Auto Scaling's +// API operation UpdateAutoScalingGroup for usage and error information. +// +// Returned Error Codes: +// * ScalingActivityInProgress +// The operation can't be performed because there are scaling activities in +// progress. +// +// * ResourceContention +// You already have a pending update to an Auto Scaling resource (for example, +// a group, instance, or load balancer). +// 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..711d6d62f15 100644 --- a/service/cloudformation/api.go +++ b/service/cloudformation/api.go @@ -19,6 +19,8 @@ const opCancelUpdateStack = "CancelUpdateStack" // value can be used to capture response data after the request's "Send" method // is called. // +// See CancelUpdateStack for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -55,10 +57,19 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS CloudFormation's +// API operation CancelUpdateStack for usage and error information. func (c *CloudFormation) CancelUpdateStack(input *CancelUpdateStackInput) (*CancelUpdateStackOutput, error) { req, out := c.CancelUpdateStackRequest(input) err := req.Send() @@ -72,6 +83,8 @@ const opContinueUpdateRollback = "ContinueUpdateRollback" // value can be used to capture response data after the request's "Send" method // is called. // +// See ContinueUpdateRollback for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -106,6 +119,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 +134,13 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS CloudFormation's +// API operation ContinueUpdateRollback for usage and error information. func (c *CloudFormation) ContinueUpdateRollback(input *ContinueUpdateRollbackInput) (*ContinueUpdateRollbackOutput, error) { req, out := c.ContinueUpdateRollbackRequest(input) err := req.Send() @@ -132,6 +154,8 @@ const opCreateChangeSet = "CreateChangeSet" // value can be used to capture response data after the request's "Send" method // is called. // +// See CreateChangeSet for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -166,6 +190,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 +206,25 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS CloudFormation's +// API operation CreateChangeSet for usage and error information. +// +// Returned Error Codes: +// * AlreadyExistsException +// Resource with the name requested already exists. +// +// * InsufficientCapabilitiesException +// The template contains resources with capabilities that were not specified +// in the Capabilities parameter. +// +// * LimitExceededException +// Quota for the resource has already been reached. +// func (c *CloudFormation) CreateChangeSet(input *CreateChangeSetInput) (*CreateChangeSetOutput, error) { req, out := c.CreateChangeSetRequest(input) err := req.Send() @@ -193,6 +238,8 @@ const opCreateStack = "CreateStack" // value can be used to capture response data after the request's "Send" method // is called. // +// See CreateStack for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -227,9 +274,30 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS CloudFormation's +// API operation CreateStack for usage and error information. +// +// Returned Error Codes: +// * LimitExceededException +// Quota for the resource has already been reached. +// +// * AlreadyExistsException +// Resource with the name requested already exists. +// +// * InsufficientCapabilitiesException +// The template contains resources with capabilities that were not specified +// in the Capabilities parameter. +// func (c *CloudFormation) CreateStack(input *CreateStackInput) (*CreateStackOutput, error) { req, out := c.CreateStackRequest(input) err := req.Send() @@ -243,6 +311,8 @@ const opDeleteChangeSet = "DeleteChangeSet" // value can be used to capture response data after the request's "Send" method // is called. // +// See DeleteChangeSet for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -277,11 +347,27 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS CloudFormation's +// API operation DeleteChangeSet for usage and error information. +// +// Returned Error Codes: +// * InvalidChangeSetStatus +// The specified change set cannot be used to update the stack. For example, +// the change set status might be CREATE_IN_PROGRESS or the stack status might +// be UPDATE_IN_PROGRESS. +// func (c *CloudFormation) DeleteChangeSet(input *DeleteChangeSetInput) (*DeleteChangeSetOutput, error) { req, out := c.DeleteChangeSetRequest(input) err := req.Send() @@ -295,6 +381,8 @@ const opDeleteStack = "DeleteStack" // value can be used to capture response data after the request's "Send" method // is called. // +// See DeleteStack for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -331,9 +419,18 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS CloudFormation's +// API operation DeleteStack for usage and error information. func (c *CloudFormation) DeleteStack(input *DeleteStackInput) (*DeleteStackOutput, error) { req, out := c.DeleteStackRequest(input) err := req.Send() @@ -347,6 +444,8 @@ const opDescribeAccountLimits = "DescribeAccountLimits" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeAccountLimits for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -381,8 +480,17 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS CloudFormation's +// API operation DescribeAccountLimits for usage and error information. func (c *CloudFormation) DescribeAccountLimits(input *DescribeAccountLimitsInput) (*DescribeAccountLimitsOutput, error) { req, out := c.DescribeAccountLimitsRequest(input) err := req.Send() @@ -396,6 +504,8 @@ const opDescribeChangeSet = "DescribeChangeSet" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeChangeSet for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -430,10 +540,25 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS CloudFormation's +// API operation DescribeChangeSet for usage and error information. +// +// Returned Error Codes: +// * ChangeSetNotFound +// The specified change set name or ID doesn't exit. To view valid change sets +// for a stack, use the ListChangeSets action. +// func (c *CloudFormation) DescribeChangeSet(input *DescribeChangeSetInput) (*DescribeChangeSetOutput, error) { req, out := c.DescribeChangeSetRequest(input) err := req.Send() @@ -447,6 +572,8 @@ const opDescribeStackEvents = "DescribeStackEvents" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeStackEvents for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -487,12 +614,21 @@ 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). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS CloudFormation's +// API operation DescribeStackEvents for usage and error information. func (c *CloudFormation) DescribeStackEvents(input *DescribeStackEventsInput) (*DescribeStackEventsOutput, error) { req, out := c.DescribeStackEventsRequest(input) err := req.Send() @@ -531,6 +667,8 @@ const opDescribeStackResource = "DescribeStackResource" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeStackResource for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -565,10 +703,19 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS CloudFormation's +// API operation DescribeStackResource for usage and error information. func (c *CloudFormation) DescribeStackResource(input *DescribeStackResourceInput) (*DescribeStackResourceOutput, error) { req, out := c.DescribeStackResourceRequest(input) err := req.Send() @@ -582,6 +729,8 @@ const opDescribeStackResources = "DescribeStackResources" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeStackResources for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -616,6 +765,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 +785,13 @@ func (c *CloudFormation) DescribeStackResourcesRequest(input *DescribeStackResou // // A ValidationError is returned if you specify both StackName and PhysicalResourceId // in the same request. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS CloudFormation's +// API operation DescribeStackResources for usage and error information. func (c *CloudFormation) DescribeStackResources(input *DescribeStackResourcesInput) (*DescribeStackResourcesOutput, error) { req, out := c.DescribeStackResourcesRequest(input) err := req.Send() @@ -647,6 +805,8 @@ const opDescribeStacks = "DescribeStacks" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeStacks for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -687,10 +847,19 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS CloudFormation's +// API operation DescribeStacks for usage and error information. func (c *CloudFormation) DescribeStacks(input *DescribeStacksInput) (*DescribeStacksOutput, error) { req, out := c.DescribeStacksRequest(input) err := req.Send() @@ -729,6 +898,8 @@ const opEstimateTemplateCost = "EstimateTemplateCost" // value can be used to capture response data after the request's "Send" method // is called. // +// See EstimateTemplateCost for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -763,9 +934,18 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS CloudFormation's +// API operation EstimateTemplateCost for usage and error information. func (c *CloudFormation) EstimateTemplateCost(input *EstimateTemplateCostInput) (*EstimateTemplateCostOutput, error) { req, out := c.EstimateTemplateCostRequest(input) err := req.Send() @@ -779,6 +959,8 @@ const opExecuteChangeSet = "ExecuteChangeSet" // value can be used to capture response data after the request's "Send" method // is called. // +// See ExecuteChangeSet for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -813,6 +995,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 +1009,24 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS CloudFormation's +// API operation ExecuteChangeSet for usage and error information. +// +// Returned Error Codes: +// * InvalidChangeSetStatus +// The specified change set cannot be used to update the stack. For example, +// the change set status might be CREATE_IN_PROGRESS or the stack status might +// be UPDATE_IN_PROGRESS. +// +// * ChangeSetNotFound +// The specified change set name or ID doesn't exit. To view valid change sets +// for a stack, use the ListChangeSets action. +// func (c *CloudFormation) ExecuteChangeSet(input *ExecuteChangeSetInput) (*ExecuteChangeSetOutput, error) { req, out := c.ExecuteChangeSetRequest(input) err := req.Send() @@ -838,6 +1040,8 @@ const opGetStackPolicy = "GetStackPolicy" // value can be used to capture response data after the request's "Send" method // is called. // +// See GetStackPolicy for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -872,8 +1076,17 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS CloudFormation's +// API operation GetStackPolicy for usage and error information. func (c *CloudFormation) GetStackPolicy(input *GetStackPolicyInput) (*GetStackPolicyOutput, error) { req, out := c.GetStackPolicyRequest(input) err := req.Send() @@ -887,6 +1100,8 @@ const opGetTemplate = "GetTemplate" // value can be used to capture response data after the request's "Send" method // is called. // +// See GetTemplate for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -921,6 +1136,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 +1145,13 @@ func (c *CloudFormation) GetTemplateRequest(input *GetTemplateInput) (req *reque // the stack has been deleted. // // If the template does not exist, a ValidationError is returned. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS CloudFormation's +// API operation GetTemplate for usage and error information. func (c *CloudFormation) GetTemplate(input *GetTemplateInput) (*GetTemplateOutput, error) { req, out := c.GetTemplateRequest(input) err := req.Send() @@ -941,6 +1165,8 @@ const opGetTemplateSummary = "GetTemplateSummary" // value can be used to capture response data after the request's "Send" method // is called. // +// See GetTemplateSummary for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -975,6 +1201,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 +1213,13 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS CloudFormation's +// API operation GetTemplateSummary for usage and error information. func (c *CloudFormation) GetTemplateSummary(input *GetTemplateSummaryInput) (*GetTemplateSummaryOutput, error) { req, out := c.GetTemplateSummaryRequest(input) err := req.Send() @@ -998,6 +1233,8 @@ const opListChangeSets = "ListChangeSets" // value can be used to capture response data after the request's "Send" method // is called. // +// See ListChangeSets for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1032,9 +1269,18 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS CloudFormation's +// API operation ListChangeSets for usage and error information. func (c *CloudFormation) ListChangeSets(input *ListChangeSetsInput) (*ListChangeSetsOutput, error) { req, out := c.ListChangeSetsRequest(input) err := req.Send() @@ -1048,6 +1294,8 @@ const opListStackResources = "ListStackResources" // value can be used to capture response data after the request's "Send" method // is called. // +// See ListStackResources for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1088,10 +1336,19 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS CloudFormation's +// API operation ListStackResources for usage and error information. func (c *CloudFormation) ListStackResources(input *ListStackResourcesInput) (*ListStackResourcesOutput, error) { req, out := c.ListStackResourcesRequest(input) err := req.Send() @@ -1130,6 +1387,8 @@ const opListStacks = "ListStacks" // value can be used to capture response data after the request's "Send" method // is called. // +// See ListStacks for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1170,11 +1429,20 @@ 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). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS CloudFormation's +// API operation ListStacks for usage and error information. func (c *CloudFormation) ListStacks(input *ListStacksInput) (*ListStacksOutput, error) { req, out := c.ListStacksRequest(input) err := req.Send() @@ -1213,6 +1481,8 @@ const opSetStackPolicy = "SetStackPolicy" // value can be used to capture response data after the request's "Send" method // is called. // +// See SetStackPolicy for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1249,7 +1519,16 @@ func (c *CloudFormation) SetStackPolicyRequest(input *SetStackPolicyInput) (req return } +// SetStackPolicy API operation for AWS CloudFormation. +// // Sets a stack policy for a specified stack. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS CloudFormation's +// API operation SetStackPolicy for usage and error information. func (c *CloudFormation) SetStackPolicy(input *SetStackPolicyInput) (*SetStackPolicyOutput, error) { req, out := c.SetStackPolicyRequest(input) err := req.Send() @@ -1263,6 +1542,8 @@ const opSignalResource = "SignalResource" // value can be used to capture response data after the request's "Send" method // is called. // +// See SignalResource for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1299,12 +1580,21 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS CloudFormation's +// API operation SignalResource for usage and error information. func (c *CloudFormation) SignalResource(input *SignalResourceInput) (*SignalResourceOutput, error) { req, out := c.SignalResourceRequest(input) err := req.Send() @@ -1318,6 +1608,8 @@ const opUpdateStack = "UpdateStack" // value can be used to capture response data after the request's "Send" method // is called. // +// See UpdateStack for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1352,6 +1644,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 +1655,19 @@ 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). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS CloudFormation's +// API operation UpdateStack for usage and error information. +// +// Returned Error Codes: +// * InsufficientCapabilitiesException +// The template contains resources with capabilities that were not specified +// in the Capabilities parameter. +// func (c *CloudFormation) UpdateStack(input *UpdateStackInput) (*UpdateStackOutput, error) { req, out := c.UpdateStackRequest(input) err := req.Send() @@ -1374,6 +1681,8 @@ const opValidateTemplate = "ValidateTemplate" // value can be used to capture response data after the request's "Send" method // is called. // +// See ValidateTemplate for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1408,10 +1717,19 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS CloudFormation's +// API operation ValidateTemplate for usage and error information. 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..9554127d1ab 100644 --- a/service/cloudfront/api.go +++ b/service/cloudfront/api.go @@ -20,6 +20,8 @@ const opCreateCloudFrontOriginAccessIdentity = "CreateCloudFrontOriginAccessIden // value can be used to capture response data after the request's "Send" method // is called. // +// See CreateCloudFrontOriginAccessIdentity for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -54,7 +56,38 @@ func (c *CloudFront) CreateCloudFrontOriginAccessIdentityRequest(input *CreateCl return } +// CreateCloudFrontOriginAccessIdentity API operation for Amazon CloudFront. +// // Create a new origin access identity. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon CloudFront's +// API operation CreateCloudFrontOriginAccessIdentity for usage and error information. +// +// Returned Error Codes: +// * OriginAccessIdentityAlreadyExists +// If the CallerReference is a value you already sent in a previous request +// to create an identity but the content of the CloudFrontOriginAccessIdentityConfig +// is different from the original request, CloudFront returns a CloudFrontOriginAccessIdentityAlreadyExists +// error. +// +// * MissingBody +// This operation requires a body. Ensure that the body is present and the Content-Type +// header is set. +// +// * TooManyCloudFrontOriginAccessIdentities +// Processing your request would cause you to exceed the maximum number of origin +// access identities allowed. +// +// * InvalidArgument +// The argument is invalid. +// +// * InconsistentQuantities +// The value of Quantity and the size of Items do not match. +// func (c *CloudFront) CreateCloudFrontOriginAccessIdentity(input *CreateCloudFrontOriginAccessIdentityInput) (*CreateCloudFrontOriginAccessIdentityOutput, error) { req, out := c.CreateCloudFrontOriginAccessIdentityRequest(input) err := req.Send() @@ -68,6 +101,8 @@ const opCreateDistribution = "CreateDistribution2016_09_07" // value can be used to capture response data after the request's "Send" method // is called. // +// See CreateDistribution for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -102,7 +137,135 @@ func (c *CloudFront) CreateDistributionRequest(input *CreateDistributionInput) ( return } +// CreateDistribution API operation for Amazon CloudFront. +// // Create a new distribution. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon CloudFront's +// API operation CreateDistribution for usage and error information. +// +// Returned Error Codes: +// * CNAMEAlreadyExists + +// +// * DistributionAlreadyExists +// The caller reference you attempted to create the distribution with is associated +// with another distribution. +// +// * InvalidOrigin +// The Amazon S3 origin server specified does not refer to a valid Amazon S3 +// bucket. +// +// * InvalidOriginAccessIdentity +// The origin access identity is not valid or doesn't exist. +// +// * AccessDenied +// Access denied. +// +// * TooManyTrustedSigners +// Your request contains more trusted signers than are allowed per distribution. +// +// * TrustedSignerDoesNotExist +// One or more of your trusted signers do not exist. +// +// * InvalidViewerCertificate + +// +// * InvalidMinimumProtocolVersion + +// +// * MissingBody +// This operation requires a body. Ensure that the body is present and the Content-Type +// header is set. +// +// * TooManyDistributionCNAMEs +// Your request contains more CNAMEs than are allowed per distribution. +// +// * TooManyDistributions +// Processing your request would cause you to exceed the maximum number of distributions +// allowed. +// +// * InvalidDefaultRootObject +// The default root object file name is too big or contains an invalid character. +// +// * InvalidRelativePath +// The relative path is too big, is not URL-encoded, or does not begin with +// a slash (/). +// +// * InvalidErrorCode + +// +// * InvalidResponseCode + +// +// * InvalidArgument +// The argument is invalid. +// +// * InvalidRequiredProtocol +// This operation requires the HTTPS protocol. Ensure that you specify the HTTPS +// protocol in your request, or omit the RequiredProtocols element from your +// distribution configuration. +// +// * NoSuchOrigin +// No origin exists with the specified Origin Id. +// +// * TooManyOrigins +// You cannot create anymore origins for the distribution. +// +// * TooManyCacheBehaviors +// You cannot create anymore cache behaviors for the distribution. +// +// * TooManyCookieNamesInWhiteList +// Your request contains more cookie names in the whitelist than are allowed +// per cache behavior. +// +// * InvalidForwardCookies +// Your request contains forward cookies option which doesn't match with the +// expectation for the whitelisted list of cookie names. Either list of cookie +// names has been specified when not allowed or list of cookie names is missing +// when expected. +// +// * TooManyHeadersInForwardedValues + +// +// * InvalidHeadersForS3Origin + +// +// * InconsistentQuantities +// The value of Quantity and the size of Items do not match. +// +// * TooManyCertificates +// You cannot create anymore custom ssl certificates. +// +// * InvalidLocationCode + +// +// * InvalidGeoRestrictionParameter + +// +// * InvalidProtocolSettings +// You cannot specify SSLv3 as the minimum protocol version if you only want +// to support only clients that Support Server Name Indication (SNI). +// +// * InvalidTTLOrder + +// +// * InvalidWebACLId + +// +// * TooManyOriginCustomHeaders + +// +// * TooManyQueryStringParameters + +// +// * InvalidQueryStringParameters + +// func (c *CloudFront) CreateDistribution(input *CreateDistributionInput) (*CreateDistributionOutput, error) { req, out := c.CreateDistributionRequest(input) err := req.Send() @@ -116,6 +279,8 @@ const opCreateDistributionWithTags = "CreateDistributionWithTags2016_09_07" // value can be used to capture response data after the request's "Send" method // is called. // +// See CreateDistributionWithTags for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -150,7 +315,139 @@ func (c *CloudFront) CreateDistributionWithTagsRequest(input *CreateDistribution return } +// CreateDistributionWithTags API operation for Amazon CloudFront. +// // Create a new distribution with tags. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon CloudFront's +// API operation CreateDistributionWithTags for usage and error information. +// +// Returned Error Codes: +// * CNAMEAlreadyExists + +// +// * DistributionAlreadyExists +// The caller reference you attempted to create the distribution with is associated +// with another distribution. +// +// * InvalidOrigin +// The Amazon S3 origin server specified does not refer to a valid Amazon S3 +// bucket. +// +// * InvalidOriginAccessIdentity +// The origin access identity is not valid or doesn't exist. +// +// * AccessDenied +// Access denied. +// +// * TooManyTrustedSigners +// Your request contains more trusted signers than are allowed per distribution. +// +// * TrustedSignerDoesNotExist +// One or more of your trusted signers do not exist. +// +// * InvalidViewerCertificate + +// +// * InvalidMinimumProtocolVersion + +// +// * MissingBody +// This operation requires a body. Ensure that the body is present and the Content-Type +// header is set. +// +// * TooManyDistributionCNAMEs +// Your request contains more CNAMEs than are allowed per distribution. +// +// * TooManyDistributions +// Processing your request would cause you to exceed the maximum number of distributions +// allowed. +// +// * InvalidDefaultRootObject +// The default root object file name is too big or contains an invalid character. +// +// * InvalidRelativePath +// The relative path is too big, is not URL-encoded, or does not begin with +// a slash (/). +// +// * InvalidErrorCode + +// +// * InvalidResponseCode + +// +// * InvalidArgument +// The argument is invalid. +// +// * InvalidRequiredProtocol +// This operation requires the HTTPS protocol. Ensure that you specify the HTTPS +// protocol in your request, or omit the RequiredProtocols element from your +// distribution configuration. +// +// * NoSuchOrigin +// No origin exists with the specified Origin Id. +// +// * TooManyOrigins +// You cannot create anymore origins for the distribution. +// +// * TooManyCacheBehaviors +// You cannot create anymore cache behaviors for the distribution. +// +// * TooManyCookieNamesInWhiteList +// Your request contains more cookie names in the whitelist than are allowed +// per cache behavior. +// +// * InvalidForwardCookies +// Your request contains forward cookies option which doesn't match with the +// expectation for the whitelisted list of cookie names. Either list of cookie +// names has been specified when not allowed or list of cookie names is missing +// when expected. +// +// * TooManyHeadersInForwardedValues + +// +// * InvalidHeadersForS3Origin + +// +// * InconsistentQuantities +// The value of Quantity and the size of Items do not match. +// +// * TooManyCertificates +// You cannot create anymore custom ssl certificates. +// +// * InvalidLocationCode + +// +// * InvalidGeoRestrictionParameter + +// +// * InvalidProtocolSettings +// You cannot specify SSLv3 as the minimum protocol version if you only want +// to support only clients that Support Server Name Indication (SNI). +// +// * InvalidTTLOrder + +// +// * InvalidWebACLId + +// +// * TooManyOriginCustomHeaders + +// +// * InvalidTagging +// The specified tagging for a CloudFront resource is invalid. For more information, +// see the error text. +// +// * TooManyQueryStringParameters + +// +// * InvalidQueryStringParameters + +// func (c *CloudFront) CreateDistributionWithTags(input *CreateDistributionWithTagsInput) (*CreateDistributionWithTagsOutput, error) { req, out := c.CreateDistributionWithTagsRequest(input) err := req.Send() @@ -164,6 +461,8 @@ const opCreateInvalidation = "CreateInvalidation2016_09_07" // value can be used to capture response data after the request's "Send" method // is called. // +// See CreateInvalidation for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -198,7 +497,41 @@ func (c *CloudFront) CreateInvalidationRequest(input *CreateInvalidationInput) ( return } +// CreateInvalidation API operation for Amazon CloudFront. +// // Create a new invalidation. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon CloudFront's +// API operation CreateInvalidation for usage and error information. +// +// Returned Error Codes: +// * AccessDenied +// Access denied. +// +// * MissingBody +// This operation requires a body. Ensure that the body is present and the Content-Type +// header is set. +// +// * InvalidArgument +// The argument is invalid. +// +// * NoSuchDistribution +// The specified distribution does not exist. +// +// * BatchTooLarge + +// +// * TooManyInvalidationsInProgress +// You have exceeded the maximum number of allowable InProgress invalidation +// batch requests, or invalidation objects. +// +// * InconsistentQuantities +// The value of Quantity and the size of Items do not match. +// func (c *CloudFront) CreateInvalidation(input *CreateInvalidationInput) (*CreateInvalidationOutput, error) { req, out := c.CreateInvalidationRequest(input) err := req.Send() @@ -212,6 +545,8 @@ const opCreateStreamingDistribution = "CreateStreamingDistribution2016_09_07" // value can be used to capture response data after the request's "Send" method // is called. // +// See CreateStreamingDistribution for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -246,7 +581,57 @@ func (c *CloudFront) CreateStreamingDistributionRequest(input *CreateStreamingDi return } +// CreateStreamingDistribution API operation for Amazon CloudFront. +// // Create a new streaming distribution. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon CloudFront's +// API operation CreateStreamingDistribution for usage and error information. +// +// Returned Error Codes: +// * CNAMEAlreadyExists + +// +// * StreamingDistributionAlreadyExists + +// +// * InvalidOrigin +// The Amazon S3 origin server specified does not refer to a valid Amazon S3 +// bucket. +// +// * InvalidOriginAccessIdentity +// The origin access identity is not valid or doesn't exist. +// +// * AccessDenied +// Access denied. +// +// * TooManyTrustedSigners +// Your request contains more trusted signers than are allowed per distribution. +// +// * TrustedSignerDoesNotExist +// One or more of your trusted signers do not exist. +// +// * MissingBody +// This operation requires a body. Ensure that the body is present and the Content-Type +// header is set. +// +// * TooManyStreamingDistributionCNAMEs + +// +// * TooManyStreamingDistributions +// Processing your request would cause you to exceed the maximum number of streaming +// distributions allowed. +// +// * InvalidArgument +// The argument is invalid. +// +// * InconsistentQuantities +// The value of Quantity and the size of Items do not match. +// func (c *CloudFront) CreateStreamingDistribution(input *CreateStreamingDistributionInput) (*CreateStreamingDistributionOutput, error) { req, out := c.CreateStreamingDistributionRequest(input) err := req.Send() @@ -260,6 +645,8 @@ const opCreateStreamingDistributionWithTags = "CreateStreamingDistributionWithTa // value can be used to capture response data after the request's "Send" method // is called. // +// See CreateStreamingDistributionWithTags for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -294,7 +681,61 @@ func (c *CloudFront) CreateStreamingDistributionWithTagsRequest(input *CreateStr return } +// CreateStreamingDistributionWithTags API operation for Amazon CloudFront. +// // Create a new streaming distribution with tags. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon CloudFront's +// API operation CreateStreamingDistributionWithTags for usage and error information. +// +// Returned Error Codes: +// * CNAMEAlreadyExists + +// +// * StreamingDistributionAlreadyExists + +// +// * InvalidOrigin +// The Amazon S3 origin server specified does not refer to a valid Amazon S3 +// bucket. +// +// * InvalidOriginAccessIdentity +// The origin access identity is not valid or doesn't exist. +// +// * AccessDenied +// Access denied. +// +// * TooManyTrustedSigners +// Your request contains more trusted signers than are allowed per distribution. +// +// * TrustedSignerDoesNotExist +// One or more of your trusted signers do not exist. +// +// * MissingBody +// This operation requires a body. Ensure that the body is present and the Content-Type +// header is set. +// +// * TooManyStreamingDistributionCNAMEs + +// +// * TooManyStreamingDistributions +// Processing your request would cause you to exceed the maximum number of streaming +// distributions allowed. +// +// * InvalidArgument +// The argument is invalid. +// +// * InconsistentQuantities +// The value of Quantity and the size of Items do not match. +// +// * InvalidTagging +// The specified tagging for a CloudFront resource is invalid. For more information, +// see the error text. +// func (c *CloudFront) CreateStreamingDistributionWithTags(input *CreateStreamingDistributionWithTagsInput) (*CreateStreamingDistributionWithTagsOutput, error) { req, out := c.CreateStreamingDistributionWithTagsRequest(input) err := req.Send() @@ -308,6 +749,8 @@ const opDeleteCloudFrontOriginAccessIdentity = "DeleteCloudFrontOriginAccessIden // value can be used to capture response data after the request's "Send" method // is called. // +// See DeleteCloudFrontOriginAccessIdentity for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -344,7 +787,34 @@ func (c *CloudFront) DeleteCloudFrontOriginAccessIdentityRequest(input *DeleteCl return } +// DeleteCloudFrontOriginAccessIdentity API operation for Amazon CloudFront. +// // Delete an origin access identity. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon CloudFront's +// API operation DeleteCloudFrontOriginAccessIdentity for usage and error information. +// +// Returned Error Codes: +// * AccessDenied +// Access denied. +// +// * InvalidIfMatchVersion +// The If-Match version is missing or not valid for the distribution. +// +// * NoSuchCloudFrontOriginAccessIdentity +// The specified origin access identity does not exist. +// +// * PreconditionFailed +// The precondition given in one or more of the request-header fields evaluated +// to false. +// +// * OriginAccessIdentityInUse + +// func (c *CloudFront) DeleteCloudFrontOriginAccessIdentity(input *DeleteCloudFrontOriginAccessIdentityInput) (*DeleteCloudFrontOriginAccessIdentityOutput, error) { req, out := c.DeleteCloudFrontOriginAccessIdentityRequest(input) err := req.Send() @@ -358,6 +828,8 @@ const opDeleteDistribution = "DeleteDistribution2016_09_07" // value can be used to capture response data after the request's "Send" method // is called. // +// See DeleteDistribution for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -394,7 +866,34 @@ func (c *CloudFront) DeleteDistributionRequest(input *DeleteDistributionInput) ( return } +// DeleteDistribution API operation for Amazon CloudFront. +// // Delete a distribution. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon CloudFront's +// API operation DeleteDistribution for usage and error information. +// +// Returned Error Codes: +// * AccessDenied +// Access denied. +// +// * DistributionNotDisabled + +// +// * InvalidIfMatchVersion +// The If-Match version is missing or not valid for the distribution. +// +// * NoSuchDistribution +// The specified distribution does not exist. +// +// * PreconditionFailed +// The precondition given in one or more of the request-header fields evaluated +// to false. +// func (c *CloudFront) DeleteDistribution(input *DeleteDistributionInput) (*DeleteDistributionOutput, error) { req, out := c.DeleteDistributionRequest(input) err := req.Send() @@ -408,6 +907,8 @@ const opDeleteStreamingDistribution = "DeleteStreamingDistribution2016_09_07" // value can be used to capture response data after the request's "Send" method // is called. // +// See DeleteStreamingDistribution for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -444,7 +945,34 @@ func (c *CloudFront) DeleteStreamingDistributionRequest(input *DeleteStreamingDi return } +// DeleteStreamingDistribution API operation for Amazon CloudFront. +// // Delete a streaming distribution. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon CloudFront's +// API operation DeleteStreamingDistribution for usage and error information. +// +// Returned Error Codes: +// * AccessDenied +// Access denied. +// +// * StreamingDistributionNotDisabled + +// +// * InvalidIfMatchVersion +// The If-Match version is missing or not valid for the distribution. +// +// * NoSuchStreamingDistribution +// The specified streaming distribution does not exist. +// +// * PreconditionFailed +// The precondition given in one or more of the request-header fields evaluated +// to false. +// func (c *CloudFront) DeleteStreamingDistribution(input *DeleteStreamingDistributionInput) (*DeleteStreamingDistributionOutput, error) { req, out := c.DeleteStreamingDistributionRequest(input) err := req.Send() @@ -458,6 +986,8 @@ const opGetCloudFrontOriginAccessIdentity = "GetCloudFrontOriginAccessIdentity20 // value can be used to capture response data after the request's "Send" method // is called. // +// See GetCloudFrontOriginAccessIdentity for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -492,7 +1022,24 @@ func (c *CloudFront) GetCloudFrontOriginAccessIdentityRequest(input *GetCloudFro return } +// GetCloudFrontOriginAccessIdentity API operation for Amazon CloudFront. +// // Get the information about an origin access identity. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon CloudFront's +// API operation GetCloudFrontOriginAccessIdentity for usage and error information. +// +// Returned Error Codes: +// * NoSuchCloudFrontOriginAccessIdentity +// The specified origin access identity does not exist. +// +// * AccessDenied +// Access denied. +// func (c *CloudFront) GetCloudFrontOriginAccessIdentity(input *GetCloudFrontOriginAccessIdentityInput) (*GetCloudFrontOriginAccessIdentityOutput, error) { req, out := c.GetCloudFrontOriginAccessIdentityRequest(input) err := req.Send() @@ -506,6 +1053,8 @@ const opGetCloudFrontOriginAccessIdentityConfig = "GetCloudFrontOriginAccessIden // value can be used to capture response data after the request's "Send" method // is called. // +// See GetCloudFrontOriginAccessIdentityConfig for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -540,7 +1089,24 @@ func (c *CloudFront) GetCloudFrontOriginAccessIdentityConfigRequest(input *GetCl return } +// GetCloudFrontOriginAccessIdentityConfig API operation for Amazon CloudFront. +// // Get the configuration information about an origin access identity. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon CloudFront's +// API operation GetCloudFrontOriginAccessIdentityConfig for usage and error information. +// +// Returned Error Codes: +// * NoSuchCloudFrontOriginAccessIdentity +// The specified origin access identity does not exist. +// +// * AccessDenied +// Access denied. +// func (c *CloudFront) GetCloudFrontOriginAccessIdentityConfig(input *GetCloudFrontOriginAccessIdentityConfigInput) (*GetCloudFrontOriginAccessIdentityConfigOutput, error) { req, out := c.GetCloudFrontOriginAccessIdentityConfigRequest(input) err := req.Send() @@ -554,6 +1120,8 @@ const opGetDistribution = "GetDistribution2016_09_07" // value can be used to capture response data after the request's "Send" method // is called. // +// See GetDistribution for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -588,7 +1156,24 @@ func (c *CloudFront) GetDistributionRequest(input *GetDistributionInput) (req *r return } +// GetDistribution API operation for Amazon CloudFront. +// // Get the information about a distribution. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon CloudFront's +// API operation GetDistribution for usage and error information. +// +// Returned Error Codes: +// * NoSuchDistribution +// The specified distribution does not exist. +// +// * AccessDenied +// Access denied. +// func (c *CloudFront) GetDistribution(input *GetDistributionInput) (*GetDistributionOutput, error) { req, out := c.GetDistributionRequest(input) err := req.Send() @@ -602,6 +1187,8 @@ const opGetDistributionConfig = "GetDistributionConfig2016_09_07" // value can be used to capture response data after the request's "Send" method // is called. // +// See GetDistributionConfig for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -636,7 +1223,24 @@ func (c *CloudFront) GetDistributionConfigRequest(input *GetDistributionConfigIn return } +// GetDistributionConfig API operation for Amazon CloudFront. +// // Get the configuration information about a distribution. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon CloudFront's +// API operation GetDistributionConfig for usage and error information. +// +// Returned Error Codes: +// * NoSuchDistribution +// The specified distribution does not exist. +// +// * AccessDenied +// Access denied. +// func (c *CloudFront) GetDistributionConfig(input *GetDistributionConfigInput) (*GetDistributionConfigOutput, error) { req, out := c.GetDistributionConfigRequest(input) err := req.Send() @@ -650,6 +1254,8 @@ const opGetInvalidation = "GetInvalidation2016_09_07" // value can be used to capture response data after the request's "Send" method // is called. // +// See GetInvalidation for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -684,7 +1290,27 @@ func (c *CloudFront) GetInvalidationRequest(input *GetInvalidationInput) (req *r return } +// GetInvalidation API operation for Amazon CloudFront. +// // Get the information about an invalidation. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon CloudFront's +// API operation GetInvalidation for usage and error information. +// +// Returned Error Codes: +// * NoSuchInvalidation +// The specified invalidation does not exist. +// +// * NoSuchDistribution +// The specified distribution does not exist. +// +// * AccessDenied +// Access denied. +// func (c *CloudFront) GetInvalidation(input *GetInvalidationInput) (*GetInvalidationOutput, error) { req, out := c.GetInvalidationRequest(input) err := req.Send() @@ -698,6 +1324,8 @@ const opGetStreamingDistribution = "GetStreamingDistribution2016_09_07" // value can be used to capture response data after the request's "Send" method // is called. // +// See GetStreamingDistribution for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -732,7 +1360,24 @@ func (c *CloudFront) GetStreamingDistributionRequest(input *GetStreamingDistribu return } +// GetStreamingDistribution API operation for Amazon CloudFront. +// // Get the information about a streaming distribution. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon CloudFront's +// API operation GetStreamingDistribution for usage and error information. +// +// Returned Error Codes: +// * NoSuchStreamingDistribution +// The specified streaming distribution does not exist. +// +// * AccessDenied +// Access denied. +// func (c *CloudFront) GetStreamingDistribution(input *GetStreamingDistributionInput) (*GetStreamingDistributionOutput, error) { req, out := c.GetStreamingDistributionRequest(input) err := req.Send() @@ -746,6 +1391,8 @@ const opGetStreamingDistributionConfig = "GetStreamingDistributionConfig2016_09_ // value can be used to capture response data after the request's "Send" method // is called. // +// See GetStreamingDistributionConfig for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -780,7 +1427,24 @@ func (c *CloudFront) GetStreamingDistributionConfigRequest(input *GetStreamingDi return } +// GetStreamingDistributionConfig API operation for Amazon CloudFront. +// // Get the configuration information about a streaming distribution. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon CloudFront's +// API operation GetStreamingDistributionConfig for usage and error information. +// +// Returned Error Codes: +// * NoSuchStreamingDistribution +// The specified streaming distribution does not exist. +// +// * AccessDenied +// Access denied. +// func (c *CloudFront) GetStreamingDistributionConfig(input *GetStreamingDistributionConfigInput) (*GetStreamingDistributionConfigOutput, error) { req, out := c.GetStreamingDistributionConfigRequest(input) err := req.Send() @@ -794,6 +1458,8 @@ const opListCloudFrontOriginAccessIdentities = "ListCloudFrontOriginAccessIdenti // value can be used to capture response data after the request's "Send" method // is called. // +// See ListCloudFrontOriginAccessIdentities for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -834,7 +1500,21 @@ func (c *CloudFront) ListCloudFrontOriginAccessIdentitiesRequest(input *ListClou return } +// ListCloudFrontOriginAccessIdentities API operation for Amazon CloudFront. +// // List origin access identities. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon CloudFront's +// API operation ListCloudFrontOriginAccessIdentities for usage and error information. +// +// Returned Error Codes: +// * InvalidArgument +// The argument is invalid. +// func (c *CloudFront) ListCloudFrontOriginAccessIdentities(input *ListCloudFrontOriginAccessIdentitiesInput) (*ListCloudFrontOriginAccessIdentitiesOutput, error) { req, out := c.ListCloudFrontOriginAccessIdentitiesRequest(input) err := req.Send() @@ -873,6 +1553,8 @@ const opListDistributions = "ListDistributions2016_09_07" // value can be used to capture response data after the request's "Send" method // is called. // +// See ListDistributions for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -913,7 +1595,21 @@ func (c *CloudFront) ListDistributionsRequest(input *ListDistributionsInput) (re return } +// ListDistributions API operation for Amazon CloudFront. +// // List distributions. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon CloudFront's +// API operation ListDistributions for usage and error information. +// +// Returned Error Codes: +// * InvalidArgument +// The argument is invalid. +// func (c *CloudFront) ListDistributions(input *ListDistributionsInput) (*ListDistributionsOutput, error) { req, out := c.ListDistributionsRequest(input) err := req.Send() @@ -952,6 +1648,8 @@ const opListDistributionsByWebACLId = "ListDistributionsByWebACLId2016_09_07" // value can be used to capture response data after the request's "Send" method // is called. // +// See ListDistributionsByWebACLId for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -986,7 +1684,24 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon CloudFront's +// API operation ListDistributionsByWebACLId for usage and error information. +// +// Returned Error Codes: +// * InvalidArgument +// The argument is invalid. +// +// * InvalidWebACLId + +// func (c *CloudFront) ListDistributionsByWebACLId(input *ListDistributionsByWebACLIdInput) (*ListDistributionsByWebACLIdOutput, error) { req, out := c.ListDistributionsByWebACLIdRequest(input) err := req.Send() @@ -1000,6 +1715,8 @@ const opListInvalidations = "ListInvalidations2016_09_07" // value can be used to capture response data after the request's "Send" method // is called. // +// See ListInvalidations for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1040,7 +1757,27 @@ func (c *CloudFront) ListInvalidationsRequest(input *ListInvalidationsInput) (re return } +// ListInvalidations API operation for Amazon CloudFront. +// // List invalidation batches. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon CloudFront's +// API operation ListInvalidations for usage and error information. +// +// Returned Error Codes: +// * InvalidArgument +// The argument is invalid. +// +// * NoSuchDistribution +// The specified distribution does not exist. +// +// * AccessDenied +// Access denied. +// func (c *CloudFront) ListInvalidations(input *ListInvalidationsInput) (*ListInvalidationsOutput, error) { req, out := c.ListInvalidationsRequest(input) err := req.Send() @@ -1079,6 +1816,8 @@ const opListStreamingDistributions = "ListStreamingDistributions2016_09_07" // value can be used to capture response data after the request's "Send" method // is called. // +// See ListStreamingDistributions for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1119,7 +1858,21 @@ func (c *CloudFront) ListStreamingDistributionsRequest(input *ListStreamingDistr return } +// ListStreamingDistributions API operation for Amazon CloudFront. +// // List streaming distributions. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon CloudFront's +// API operation ListStreamingDistributions for usage and error information. +// +// Returned Error Codes: +// * InvalidArgument +// The argument is invalid. +// func (c *CloudFront) ListStreamingDistributions(input *ListStreamingDistributionsInput) (*ListStreamingDistributionsOutput, error) { req, out := c.ListStreamingDistributionsRequest(input) err := req.Send() @@ -1158,6 +1911,8 @@ const opListTagsForResource = "ListTagsForResource2016_09_07" // value can be used to capture response data after the request's "Send" method // is called. // +// See ListTagsForResource for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1192,7 +1947,31 @@ func (c *CloudFront) ListTagsForResourceRequest(input *ListTagsForResourceInput) return } +// ListTagsForResource API operation for Amazon CloudFront. +// // List tags for a CloudFront resource. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon CloudFront's +// API operation ListTagsForResource for usage and error information. +// +// Returned Error Codes: +// * AccessDenied +// Access denied. +// +// * InvalidArgument +// The argument is invalid. +// +// * InvalidTagging +// The specified tagging for a CloudFront resource is invalid. For more information, +// see the error text. +// +// * NoSuchResource +// The specified CloudFront resource does not exist. +// func (c *CloudFront) ListTagsForResource(input *ListTagsForResourceInput) (*ListTagsForResourceOutput, error) { req, out := c.ListTagsForResourceRequest(input) err := req.Send() @@ -1206,6 +1985,8 @@ const opTagResource = "TagResource2016_09_07" // value can be used to capture response data after the request's "Send" method // is called. // +// See TagResource for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1242,7 +2023,31 @@ func (c *CloudFront) TagResourceRequest(input *TagResourceInput) (req *request.R return } +// TagResource API operation for Amazon CloudFront. +// // Add tags to a CloudFront resource. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon CloudFront's +// API operation TagResource for usage and error information. +// +// Returned Error Codes: +// * AccessDenied +// Access denied. +// +// * InvalidArgument +// The argument is invalid. +// +// * InvalidTagging +// The specified tagging for a CloudFront resource is invalid. For more information, +// see the error text. +// +// * NoSuchResource +// The specified CloudFront resource does not exist. +// func (c *CloudFront) TagResource(input *TagResourceInput) (*TagResourceOutput, error) { req, out := c.TagResourceRequest(input) err := req.Send() @@ -1256,6 +2061,8 @@ const opUntagResource = "UntagResource2016_09_07" // value can be used to capture response data after the request's "Send" method // is called. // +// See UntagResource for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1292,7 +2099,31 @@ func (c *CloudFront) UntagResourceRequest(input *UntagResourceInput) (req *reque return } +// UntagResource API operation for Amazon CloudFront. +// // Remove tags from a CloudFront resource. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon CloudFront's +// API operation UntagResource for usage and error information. +// +// Returned Error Codes: +// * AccessDenied +// Access denied. +// +// * InvalidArgument +// The argument is invalid. +// +// * InvalidTagging +// The specified tagging for a CloudFront resource is invalid. For more information, +// see the error text. +// +// * NoSuchResource +// The specified CloudFront resource does not exist. +// func (c *CloudFront) UntagResource(input *UntagResourceInput) (*UntagResourceOutput, error) { req, out := c.UntagResourceRequest(input) err := req.Send() @@ -1306,6 +2137,8 @@ const opUpdateCloudFrontOriginAccessIdentity = "UpdateCloudFrontOriginAccessIden // value can be used to capture response data after the request's "Send" method // is called. // +// See UpdateCloudFrontOriginAccessIdentity for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1340,7 +2173,44 @@ func (c *CloudFront) UpdateCloudFrontOriginAccessIdentityRequest(input *UpdateCl return } +// UpdateCloudFrontOriginAccessIdentity API operation for Amazon CloudFront. +// // Update an origin access identity. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon CloudFront's +// API operation UpdateCloudFrontOriginAccessIdentity for usage and error information. +// +// Returned Error Codes: +// * AccessDenied +// Access denied. +// +// * IllegalUpdate +// Origin and CallerReference cannot be updated. +// +// * InvalidIfMatchVersion +// The If-Match version is missing or not valid for the distribution. +// +// * MissingBody +// This operation requires a body. Ensure that the body is present and the Content-Type +// header is set. +// +// * NoSuchCloudFrontOriginAccessIdentity +// The specified origin access identity does not exist. +// +// * PreconditionFailed +// The precondition given in one or more of the request-header fields evaluated +// to false. +// +// * InvalidArgument +// The argument is invalid. +// +// * InconsistentQuantities +// The value of Quantity and the size of Items do not match. +// func (c *CloudFront) UpdateCloudFrontOriginAccessIdentity(input *UpdateCloudFrontOriginAccessIdentityInput) (*UpdateCloudFrontOriginAccessIdentityOutput, error) { req, out := c.UpdateCloudFrontOriginAccessIdentityRequest(input) err := req.Send() @@ -1354,6 +2224,8 @@ const opUpdateDistribution = "UpdateDistribution2016_09_07" // value can be used to capture response data after the request's "Send" method // is called. // +// See UpdateDistribution for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1388,7 +2260,132 @@ func (c *CloudFront) UpdateDistributionRequest(input *UpdateDistributionInput) ( return } +// UpdateDistribution API operation for Amazon CloudFront. +// // Update a distribution. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon CloudFront's +// API operation UpdateDistribution for usage and error information. +// +// Returned Error Codes: +// * AccessDenied +// Access denied. +// +// * CNAMEAlreadyExists + +// +// * IllegalUpdate +// Origin and CallerReference cannot be updated. +// +// * InvalidIfMatchVersion +// The If-Match version is missing or not valid for the distribution. +// +// * MissingBody +// This operation requires a body. Ensure that the body is present and the Content-Type +// header is set. +// +// * NoSuchDistribution +// The specified distribution does not exist. +// +// * PreconditionFailed +// The precondition given in one or more of the request-header fields evaluated +// to false. +// +// * TooManyDistributionCNAMEs +// Your request contains more CNAMEs than are allowed per distribution. +// +// * InvalidDefaultRootObject +// The default root object file name is too big or contains an invalid character. +// +// * InvalidRelativePath +// The relative path is too big, is not URL-encoded, or does not begin with +// a slash (/). +// +// * InvalidErrorCode + +// +// * InvalidResponseCode + +// +// * InvalidArgument +// The argument is invalid. +// +// * InvalidOriginAccessIdentity +// The origin access identity is not valid or doesn't exist. +// +// * TooManyTrustedSigners +// Your request contains more trusted signers than are allowed per distribution. +// +// * TrustedSignerDoesNotExist +// One or more of your trusted signers do not exist. +// +// * InvalidViewerCertificate + +// +// * InvalidMinimumProtocolVersion + +// +// * InvalidRequiredProtocol +// This operation requires the HTTPS protocol. Ensure that you specify the HTTPS +// protocol in your request, or omit the RequiredProtocols element from your +// distribution configuration. +// +// * NoSuchOrigin +// No origin exists with the specified Origin Id. +// +// * TooManyOrigins +// You cannot create anymore origins for the distribution. +// +// * TooManyCacheBehaviors +// You cannot create anymore cache behaviors for the distribution. +// +// * TooManyCookieNamesInWhiteList +// Your request contains more cookie names in the whitelist than are allowed +// per cache behavior. +// +// * InvalidForwardCookies +// Your request contains forward cookies option which doesn't match with the +// expectation for the whitelisted list of cookie names. Either list of cookie +// names has been specified when not allowed or list of cookie names is missing +// when expected. +// +// * TooManyHeadersInForwardedValues + +// +// * InvalidHeadersForS3Origin + +// +// * InconsistentQuantities +// The value of Quantity and the size of Items do not match. +// +// * TooManyCertificates +// You cannot create anymore custom ssl certificates. +// +// * InvalidLocationCode + +// +// * InvalidGeoRestrictionParameter + +// +// * InvalidTTLOrder + +// +// * InvalidWebACLId + +// +// * TooManyOriginCustomHeaders + +// +// * TooManyQueryStringParameters + +// +// * InvalidQueryStringParameters + +// func (c *CloudFront) UpdateDistribution(input *UpdateDistributionInput) (*UpdateDistributionOutput, error) { req, out := c.UpdateDistributionRequest(input) err := req.Send() @@ -1402,6 +2399,8 @@ const opUpdateStreamingDistribution = "UpdateStreamingDistribution2016_09_07" // value can be used to capture response data after the request's "Send" method // is called. // +// See UpdateStreamingDistribution for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1436,7 +2435,59 @@ func (c *CloudFront) UpdateStreamingDistributionRequest(input *UpdateStreamingDi return } +// UpdateStreamingDistribution API operation for Amazon CloudFront. +// // Update a streaming distribution. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon CloudFront's +// API operation UpdateStreamingDistribution for usage and error information. +// +// Returned Error Codes: +// * AccessDenied +// Access denied. +// +// * CNAMEAlreadyExists + +// +// * IllegalUpdate +// Origin and CallerReference cannot be updated. +// +// * InvalidIfMatchVersion +// The If-Match version is missing or not valid for the distribution. +// +// * MissingBody +// This operation requires a body. Ensure that the body is present and the Content-Type +// header is set. +// +// * NoSuchStreamingDistribution +// The specified streaming distribution does not exist. +// +// * PreconditionFailed +// The precondition given in one or more of the request-header fields evaluated +// to false. +// +// * TooManyStreamingDistributionCNAMEs + +// +// * InvalidArgument +// The argument is invalid. +// +// * InvalidOriginAccessIdentity +// The origin access identity is not valid or doesn't exist. +// +// * TooManyTrustedSigners +// Your request contains more trusted signers than are allowed per distribution. +// +// * TrustedSignerDoesNotExist +// One or more of your trusted signers do not exist. +// +// * InconsistentQuantities +// The value of Quantity and the size of Items do not match. +// 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..cebf54cff9c 100644 --- a/service/cloudhsm/api.go +++ b/service/cloudhsm/api.go @@ -17,6 +17,8 @@ const opAddTagsToResource = "AddTagsToResource" // value can be used to capture response data after the request's "Send" method // is called. // +// See AddTagsToResource for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -51,10 +53,30 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon CloudHSM's +// API operation AddTagsToResource for usage and error information. +// +// Returned Error Codes: +// * CloudHsmServiceException +// Indicates that an exception occurred in the AWS CloudHSM service. +// +// * CloudHsmInternalException +// Indicates that an internal error occurred. +// +// * InvalidRequestException +// Indicates that one or more of the request parameters are not valid. +// func (c *CloudHSM) AddTagsToResource(input *AddTagsToResourceInput) (*AddTagsToResourceOutput, error) { req, out := c.AddTagsToResourceRequest(input) err := req.Send() @@ -68,6 +90,8 @@ const opCreateHapg = "CreateHapg" // value can be used to capture response data after the request's "Send" method // is called. // +// See CreateHapg for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -102,8 +126,28 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon CloudHSM's +// API operation CreateHapg for usage and error information. +// +// Returned Error Codes: +// * CloudHsmServiceException +// Indicates that an exception occurred in the AWS CloudHSM service. +// +// * CloudHsmInternalException +// Indicates that an internal error occurred. +// +// * InvalidRequestException +// Indicates that one or more of the request parameters are not valid. +// func (c *CloudHSM) CreateHapg(input *CreateHapgInput) (*CreateHapgOutput, error) { req, out := c.CreateHapgRequest(input) err := req.Send() @@ -117,6 +161,8 @@ const opCreateHsm = "CreateHsm" // value can be used to capture response data after the request's "Send" method // is called. // +// See CreateHsm for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -151,6 +197,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 +210,24 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon CloudHSM's +// API operation CreateHsm for usage and error information. +// +// Returned Error Codes: +// * CloudHsmServiceException +// Indicates that an exception occurred in the AWS CloudHSM service. +// +// * CloudHsmInternalException +// Indicates that an internal error occurred. +// +// * InvalidRequestException +// Indicates that one or more of the request parameters are not valid. +// func (c *CloudHSM) CreateHsm(input *CreateHsmInput) (*CreateHsmOutput, error) { req, out := c.CreateHsmRequest(input) err := req.Send() @@ -175,6 +241,8 @@ const opCreateLunaClient = "CreateLunaClient" // value can be used to capture response data after the request's "Send" method // is called. // +// See CreateLunaClient for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -209,7 +277,27 @@ func (c *CloudHSM) CreateLunaClientRequest(input *CreateLunaClientInput) (req *r return } +// CreateLunaClient API operation for Amazon CloudHSM. +// // Creates an HSM client. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon CloudHSM's +// API operation CreateLunaClient for usage and error information. +// +// Returned Error Codes: +// * CloudHsmServiceException +// Indicates that an exception occurred in the AWS CloudHSM service. +// +// * CloudHsmInternalException +// Indicates that an internal error occurred. +// +// * InvalidRequestException +// Indicates that one or more of the request parameters are not valid. +// func (c *CloudHSM) CreateLunaClient(input *CreateLunaClientInput) (*CreateLunaClientOutput, error) { req, out := c.CreateLunaClientRequest(input) err := req.Send() @@ -223,6 +311,8 @@ const opDeleteHapg = "DeleteHapg" // value can be used to capture response data after the request's "Send" method // is called. // +// See DeleteHapg for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -257,7 +347,27 @@ func (c *CloudHSM) DeleteHapgRequest(input *DeleteHapgInput) (req *request.Reque return } +// DeleteHapg API operation for Amazon CloudHSM. +// // Deletes a high-availability partition group. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon CloudHSM's +// API operation DeleteHapg for usage and error information. +// +// Returned Error Codes: +// * CloudHsmServiceException +// Indicates that an exception occurred in the AWS CloudHSM service. +// +// * CloudHsmInternalException +// Indicates that an internal error occurred. +// +// * InvalidRequestException +// Indicates that one or more of the request parameters are not valid. +// func (c *CloudHSM) DeleteHapg(input *DeleteHapgInput) (*DeleteHapgOutput, error) { req, out := c.DeleteHapgRequest(input) err := req.Send() @@ -271,6 +381,8 @@ const opDeleteHsm = "DeleteHsm" // value can be used to capture response data after the request's "Send" method // is called. // +// See DeleteHsm for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -305,8 +417,28 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon CloudHSM's +// API operation DeleteHsm for usage and error information. +// +// Returned Error Codes: +// * CloudHsmServiceException +// Indicates that an exception occurred in the AWS CloudHSM service. +// +// * CloudHsmInternalException +// Indicates that an internal error occurred. +// +// * InvalidRequestException +// Indicates that one or more of the request parameters are not valid. +// func (c *CloudHSM) DeleteHsm(input *DeleteHsmInput) (*DeleteHsmOutput, error) { req, out := c.DeleteHsmRequest(input) err := req.Send() @@ -320,6 +452,8 @@ const opDeleteLunaClient = "DeleteLunaClient" // value can be used to capture response data after the request's "Send" method // is called. // +// See DeleteLunaClient for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -354,7 +488,27 @@ func (c *CloudHSM) DeleteLunaClientRequest(input *DeleteLunaClientInput) (req *r return } +// DeleteLunaClient API operation for Amazon CloudHSM. +// // Deletes a client. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon CloudHSM's +// API operation DeleteLunaClient for usage and error information. +// +// Returned Error Codes: +// * CloudHsmServiceException +// Indicates that an exception occurred in the AWS CloudHSM service. +// +// * CloudHsmInternalException +// Indicates that an internal error occurred. +// +// * InvalidRequestException +// Indicates that one or more of the request parameters are not valid. +// func (c *CloudHSM) DeleteLunaClient(input *DeleteLunaClientInput) (*DeleteLunaClientOutput, error) { req, out := c.DeleteLunaClientRequest(input) err := req.Send() @@ -368,6 +522,8 @@ const opDescribeHapg = "DescribeHapg" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeHapg for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -402,7 +558,27 @@ func (c *CloudHSM) DescribeHapgRequest(input *DescribeHapgInput) (req *request.R return } +// DescribeHapg API operation for Amazon CloudHSM. +// // Retrieves information about a high-availability partition group. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon CloudHSM's +// API operation DescribeHapg for usage and error information. +// +// Returned Error Codes: +// * CloudHsmServiceException +// Indicates that an exception occurred in the AWS CloudHSM service. +// +// * CloudHsmInternalException +// Indicates that an internal error occurred. +// +// * InvalidRequestException +// Indicates that one or more of the request parameters are not valid. +// func (c *CloudHSM) DescribeHapg(input *DescribeHapgInput) (*DescribeHapgOutput, error) { req, out := c.DescribeHapgRequest(input) err := req.Send() @@ -416,6 +592,8 @@ const opDescribeHsm = "DescribeHsm" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeHsm for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -450,8 +628,28 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon CloudHSM's +// API operation DescribeHsm for usage and error information. +// +// Returned Error Codes: +// * CloudHsmServiceException +// Indicates that an exception occurred in the AWS CloudHSM service. +// +// * CloudHsmInternalException +// Indicates that an internal error occurred. +// +// * InvalidRequestException +// Indicates that one or more of the request parameters are not valid. +// func (c *CloudHSM) DescribeHsm(input *DescribeHsmInput) (*DescribeHsmOutput, error) { req, out := c.DescribeHsmRequest(input) err := req.Send() @@ -465,6 +663,8 @@ const opDescribeLunaClient = "DescribeLunaClient" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeLunaClient for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -499,7 +699,27 @@ func (c *CloudHSM) DescribeLunaClientRequest(input *DescribeLunaClientInput) (re return } +// DescribeLunaClient API operation for Amazon CloudHSM. +// // Retrieves information about an HSM client. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon CloudHSM's +// API operation DescribeLunaClient for usage and error information. +// +// Returned Error Codes: +// * CloudHsmServiceException +// Indicates that an exception occurred in the AWS CloudHSM service. +// +// * CloudHsmInternalException +// Indicates that an internal error occurred. +// +// * InvalidRequestException +// Indicates that one or more of the request parameters are not valid. +// func (c *CloudHSM) DescribeLunaClient(input *DescribeLunaClientInput) (*DescribeLunaClientOutput, error) { req, out := c.DescribeLunaClientRequest(input) err := req.Send() @@ -513,6 +733,8 @@ const opGetConfig = "GetConfig" // value can be used to capture response data after the request's "Send" method // is called. // +// See GetConfig for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -547,8 +769,28 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon CloudHSM's +// API operation GetConfig for usage and error information. +// +// Returned Error Codes: +// * CloudHsmServiceException +// Indicates that an exception occurred in the AWS CloudHSM service. +// +// * CloudHsmInternalException +// Indicates that an internal error occurred. +// +// * InvalidRequestException +// Indicates that one or more of the request parameters are not valid. +// func (c *CloudHSM) GetConfig(input *GetConfigInput) (*GetConfigOutput, error) { req, out := c.GetConfigRequest(input) err := req.Send() @@ -562,6 +804,8 @@ const opListAvailableZones = "ListAvailableZones" // value can be used to capture response data after the request's "Send" method // is called. // +// See ListAvailableZones for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -596,7 +840,27 @@ func (c *CloudHSM) ListAvailableZonesRequest(input *ListAvailableZonesInput) (re return } +// ListAvailableZones API operation for Amazon CloudHSM. +// // Lists the Availability Zones that have available AWS CloudHSM capacity. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon CloudHSM's +// API operation ListAvailableZones for usage and error information. +// +// Returned Error Codes: +// * CloudHsmServiceException +// Indicates that an exception occurred in the AWS CloudHSM service. +// +// * CloudHsmInternalException +// Indicates that an internal error occurred. +// +// * InvalidRequestException +// Indicates that one or more of the request parameters are not valid. +// func (c *CloudHSM) ListAvailableZones(input *ListAvailableZonesInput) (*ListAvailableZonesOutput, error) { req, out := c.ListAvailableZonesRequest(input) err := req.Send() @@ -610,6 +874,8 @@ const opListHapgs = "ListHapgs" // value can be used to capture response data after the request's "Send" method // is called. // +// See ListHapgs for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -644,12 +910,32 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon CloudHSM's +// API operation ListHapgs for usage and error information. +// +// Returned Error Codes: +// * CloudHsmServiceException +// Indicates that an exception occurred in the AWS CloudHSM service. +// +// * CloudHsmInternalException +// Indicates that an internal error occurred. +// +// * InvalidRequestException +// Indicates that one or more of the request parameters are not valid. +// func (c *CloudHSM) ListHapgs(input *ListHapgsInput) (*ListHapgsOutput, error) { req, out := c.ListHapgsRequest(input) err := req.Send() @@ -663,6 +949,8 @@ const opListHsms = "ListHsms" // value can be used to capture response data after the request's "Send" method // is called. // +// See ListHsms for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -697,6 +985,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 +994,24 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon CloudHSM's +// API operation ListHsms for usage and error information. +// +// Returned Error Codes: +// * CloudHsmServiceException +// Indicates that an exception occurred in the AWS CloudHSM service. +// +// * CloudHsmInternalException +// Indicates that an internal error occurred. +// +// * InvalidRequestException +// Indicates that one or more of the request parameters are not valid. +// func (c *CloudHSM) ListHsms(input *ListHsmsInput) (*ListHsmsOutput, error) { req, out := c.ListHsmsRequest(input) err := req.Send() @@ -717,6 +1025,8 @@ const opListLunaClients = "ListLunaClients" // value can be used to capture response data after the request's "Send" method // is called. // +// See ListLunaClients for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -751,12 +1061,32 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon CloudHSM's +// API operation ListLunaClients for usage and error information. +// +// Returned Error Codes: +// * CloudHsmServiceException +// Indicates that an exception occurred in the AWS CloudHSM service. +// +// * CloudHsmInternalException +// Indicates that an internal error occurred. +// +// * InvalidRequestException +// Indicates that one or more of the request parameters are not valid. +// func (c *CloudHSM) ListLunaClients(input *ListLunaClientsInput) (*ListLunaClientsOutput, error) { req, out := c.ListLunaClientsRequest(input) err := req.Send() @@ -770,6 +1100,8 @@ const opListTagsForResource = "ListTagsForResource" // value can be used to capture response data after the request's "Send" method // is called. // +// See ListTagsForResource for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -804,7 +1136,27 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon CloudHSM's +// API operation ListTagsForResource for usage and error information. +// +// Returned Error Codes: +// * CloudHsmServiceException +// Indicates that an exception occurred in the AWS CloudHSM service. +// +// * CloudHsmInternalException +// Indicates that an internal error occurred. +// +// * InvalidRequestException +// Indicates that one or more of the request parameters are not valid. +// func (c *CloudHSM) ListTagsForResource(input *ListTagsForResourceInput) (*ListTagsForResourceOutput, error) { req, out := c.ListTagsForResourceRequest(input) err := req.Send() @@ -818,6 +1170,8 @@ const opModifyHapg = "ModifyHapg" // value can be used to capture response data after the request's "Send" method // is called. // +// See ModifyHapg for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -852,7 +1206,27 @@ func (c *CloudHSM) ModifyHapgRequest(input *ModifyHapgInput) (req *request.Reque return } +// ModifyHapg API operation for Amazon CloudHSM. +// // Modifies an existing high-availability partition group. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon CloudHSM's +// API operation ModifyHapg for usage and error information. +// +// Returned Error Codes: +// * CloudHsmServiceException +// Indicates that an exception occurred in the AWS CloudHSM service. +// +// * CloudHsmInternalException +// Indicates that an internal error occurred. +// +// * InvalidRequestException +// Indicates that one or more of the request parameters are not valid. +// func (c *CloudHSM) ModifyHapg(input *ModifyHapgInput) (*ModifyHapgOutput, error) { req, out := c.ModifyHapgRequest(input) err := req.Send() @@ -866,6 +1240,8 @@ const opModifyHsm = "ModifyHsm" // value can be used to capture response data after the request's "Send" method // is called. // +// See ModifyHsm for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -900,6 +1276,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 +1285,24 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon CloudHSM's +// API operation ModifyHsm for usage and error information. +// +// Returned Error Codes: +// * CloudHsmServiceException +// Indicates that an exception occurred in the AWS CloudHSM service. +// +// * CloudHsmInternalException +// Indicates that an internal error occurred. +// +// * InvalidRequestException +// Indicates that one or more of the request parameters are not valid. +// func (c *CloudHSM) ModifyHsm(input *ModifyHsmInput) (*ModifyHsmOutput, error) { req, out := c.ModifyHsmRequest(input) err := req.Send() @@ -920,6 +1316,8 @@ const opModifyLunaClient = "ModifyLunaClient" // value can be used to capture response data after the request's "Send" method // is called. // +// See ModifyLunaClient for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -954,10 +1352,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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon CloudHSM's +// API operation ModifyLunaClient for usage and error information. +// +// Returned Error Codes: +// * CloudHsmServiceException +// Indicates that an exception occurred in the AWS CloudHSM service. +// func (c *CloudHSM) ModifyLunaClient(input *ModifyLunaClientInput) (*ModifyLunaClientOutput, error) { req, out := c.ModifyLunaClientRequest(input) err := req.Send() @@ -971,6 +1383,8 @@ const opRemoveTagsFromResource = "RemoveTagsFromResource" // value can be used to capture response data after the request's "Send" method // is called. // +// See RemoveTagsFromResource for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1005,10 +1419,30 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon CloudHSM's +// API operation RemoveTagsFromResource for usage and error information. +// +// Returned Error Codes: +// * CloudHsmServiceException +// Indicates that an exception occurred in the AWS CloudHSM service. +// +// * CloudHsmInternalException +// Indicates that an internal error occurred. +// +// * InvalidRequestException +// Indicates that one or more of the request parameters are not valid. +// 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..1aadc6e058c 100644 --- a/service/cloudsearch/api.go +++ b/service/cloudsearch/api.go @@ -17,6 +17,8 @@ const opBuildSuggesters = "BuildSuggesters" // value can be used to capture response data after the request's "Send" method // is called. // +// See BuildSuggesters for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -51,9 +53,32 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon CloudSearch's +// API operation BuildSuggesters for usage and error information. +// +// Returned Error Codes: +// * BaseException +// An error occurred while processing the request. +// +// * InternalException +// An internal error occurred while processing the request. If this problem +// persists, report an issue from the Service Health Dashboard (http://status.aws.amazon.com/" +// target="_blank). +// +// * ResourceNotFound +// The request was rejected because it attempted to reference a resource that +// does not exist. +// func (c *CloudSearch) BuildSuggesters(input *BuildSuggestersInput) (*BuildSuggestersOutput, error) { req, out := c.BuildSuggestersRequest(input) err := req.Send() @@ -67,6 +92,8 @@ const opCreateDomain = "CreateDomain" // value can be used to capture response data after the request's "Send" method // is called. // +// See CreateDomain for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -101,9 +128,31 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon CloudSearch's +// API operation CreateDomain for usage and error information. +// +// Returned Error Codes: +// * BaseException +// An error occurred while processing the request. +// +// * InternalException +// An internal error occurred while processing the request. If this problem +// persists, report an issue from the Service Health Dashboard (http://status.aws.amazon.com/" +// target="_blank). +// +// * LimitExceeded +// The request was rejected because a resource limit has already been met. +// func (c *CloudSearch) CreateDomain(input *CreateDomainInput) (*CreateDomainOutput, error) { req, out := c.CreateDomainRequest(input) err := req.Send() @@ -117,6 +166,8 @@ const opDefineAnalysisScheme = "DefineAnalysisScheme" // value can be used to capture response data after the request's "Send" method // is called. // +// See DefineAnalysisScheme for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -151,10 +202,39 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon CloudSearch's +// API operation DefineAnalysisScheme for usage and error information. +// +// Returned Error Codes: +// * BaseException +// An error occurred while processing the request. +// +// * InternalException +// An internal error occurred while processing the request. If this problem +// persists, report an issue from the Service Health Dashboard (http://status.aws.amazon.com/" +// target="_blank). +// +// * LimitExceeded +// The request was rejected because a resource limit has already been met. +// +// * InvalidType +// The request was rejected because it specified an invalid type definition. +// +// * ResourceNotFound +// The request was rejected because it attempted to reference a resource that +// does not exist. +// func (c *CloudSearch) DefineAnalysisScheme(input *DefineAnalysisSchemeInput) (*DefineAnalysisSchemeOutput, error) { req, out := c.DefineAnalysisSchemeRequest(input) err := req.Send() @@ -168,6 +248,8 @@ const opDefineExpression = "DefineExpression" // value can be used to capture response data after the request's "Send" method // is called. // +// See DefineExpression for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -202,10 +284,39 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon CloudSearch's +// API operation DefineExpression for usage and error information. +// +// Returned Error Codes: +// * BaseException +// An error occurred while processing the request. +// +// * InternalException +// An internal error occurred while processing the request. If this problem +// persists, report an issue from the Service Health Dashboard (http://status.aws.amazon.com/" +// target="_blank). +// +// * LimitExceeded +// The request was rejected because a resource limit has already been met. +// +// * InvalidType +// The request was rejected because it specified an invalid type definition. +// +// * ResourceNotFound +// The request was rejected because it attempted to reference a resource that +// does not exist. +// func (c *CloudSearch) DefineExpression(input *DefineExpressionInput) (*DefineExpressionOutput, error) { req, out := c.DefineExpressionRequest(input) err := req.Send() @@ -219,6 +330,8 @@ const opDefineIndexField = "DefineIndexField" // value can be used to capture response data after the request's "Send" method // is called. // +// See DefineIndexField for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -253,6 +366,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 +376,33 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon CloudSearch's +// API operation DefineIndexField for usage and error information. +// +// Returned Error Codes: +// * BaseException +// An error occurred while processing the request. +// +// * InternalException +// An internal error occurred while processing the request. If this problem +// persists, report an issue from the Service Health Dashboard (http://status.aws.amazon.com/" +// target="_blank). +// +// * LimitExceeded +// The request was rejected because a resource limit has already been met. +// +// * InvalidType +// The request was rejected because it specified an invalid type definition. +// +// * ResourceNotFound +// The request was rejected because it attempted to reference a resource that +// does not exist. +// func (c *CloudSearch) DefineIndexField(input *DefineIndexFieldInput) (*DefineIndexFieldOutput, error) { req, out := c.DefineIndexFieldRequest(input) err := req.Send() @@ -274,6 +416,8 @@ const opDefineSuggester = "DefineSuggester" // value can be used to capture response data after the request's "Send" method // is called. // +// See DefineSuggester for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -308,12 +452,41 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon CloudSearch's +// API operation DefineSuggester for usage and error information. +// +// Returned Error Codes: +// * BaseException +// An error occurred while processing the request. +// +// * InternalException +// An internal error occurred while processing the request. If this problem +// persists, report an issue from the Service Health Dashboard (http://status.aws.amazon.com/" +// target="_blank). +// +// * LimitExceeded +// The request was rejected because a resource limit has already been met. +// +// * InvalidType +// The request was rejected because it specified an invalid type definition. +// +// * ResourceNotFound +// The request was rejected because it attempted to reference a resource that +// does not exist. +// func (c *CloudSearch) DefineSuggester(input *DefineSuggesterInput) (*DefineSuggesterOutput, error) { req, out := c.DefineSuggesterRequest(input) err := req.Send() @@ -327,6 +500,8 @@ const opDeleteAnalysisScheme = "DeleteAnalysisScheme" // value can be used to capture response data after the request's "Send" method // is called. // +// See DeleteAnalysisScheme for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -361,9 +536,35 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon CloudSearch's +// API operation DeleteAnalysisScheme for usage and error information. +// +// Returned Error Codes: +// * BaseException +// An error occurred while processing the request. +// +// * InternalException +// An internal error occurred while processing the request. If this problem +// persists, report an issue from the Service Health Dashboard (http://status.aws.amazon.com/" +// target="_blank). +// +// * InvalidType +// The request was rejected because it specified an invalid type definition. +// +// * ResourceNotFound +// The request was rejected because it attempted to reference a resource that +// does not exist. +// func (c *CloudSearch) DeleteAnalysisScheme(input *DeleteAnalysisSchemeInput) (*DeleteAnalysisSchemeOutput, error) { req, out := c.DeleteAnalysisSchemeRequest(input) err := req.Send() @@ -377,6 +578,8 @@ const opDeleteDomain = "DeleteDomain" // value can be used to capture response data after the request's "Send" method // is called. // +// See DeleteDomain for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -411,10 +614,29 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon CloudSearch's +// API operation DeleteDomain for usage and error information. +// +// Returned Error Codes: +// * BaseException +// An error occurred while processing the request. +// +// * InternalException +// An internal error occurred while processing the request. If this problem +// persists, report an issue from the Service Health Dashboard (http://status.aws.amazon.com/" +// target="_blank). +// func (c *CloudSearch) DeleteDomain(input *DeleteDomainInput) (*DeleteDomainOutput, error) { req, out := c.DeleteDomainRequest(input) err := req.Send() @@ -428,6 +650,8 @@ const opDeleteExpression = "DeleteExpression" // value can be used to capture response data after the request's "Send" method // is called. // +// See DeleteExpression for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -462,9 +686,35 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon CloudSearch's +// API operation DeleteExpression for usage and error information. +// +// Returned Error Codes: +// * BaseException +// An error occurred while processing the request. +// +// * InternalException +// An internal error occurred while processing the request. If this problem +// persists, report an issue from the Service Health Dashboard (http://status.aws.amazon.com/" +// target="_blank). +// +// * InvalidType +// The request was rejected because it specified an invalid type definition. +// +// * ResourceNotFound +// The request was rejected because it attempted to reference a resource that +// does not exist. +// func (c *CloudSearch) DeleteExpression(input *DeleteExpressionInput) (*DeleteExpressionOutput, error) { req, out := c.DeleteExpressionRequest(input) err := req.Send() @@ -478,6 +728,8 @@ const opDeleteIndexField = "DeleteIndexField" // value can be used to capture response data after the request's "Send" method // is called. // +// See DeleteIndexField for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -512,9 +764,35 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon CloudSearch's +// API operation DeleteIndexField for usage and error information. +// +// Returned Error Codes: +// * BaseException +// An error occurred while processing the request. +// +// * InternalException +// An internal error occurred while processing the request. If this problem +// persists, report an issue from the Service Health Dashboard (http://status.aws.amazon.com/" +// target="_blank). +// +// * InvalidType +// The request was rejected because it specified an invalid type definition. +// +// * ResourceNotFound +// The request was rejected because it attempted to reference a resource that +// does not exist. +// func (c *CloudSearch) DeleteIndexField(input *DeleteIndexFieldInput) (*DeleteIndexFieldOutput, error) { req, out := c.DeleteIndexFieldRequest(input) err := req.Send() @@ -528,6 +806,8 @@ const opDeleteSuggester = "DeleteSuggester" // value can be used to capture response data after the request's "Send" method // is called. // +// See DeleteSuggester for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -562,9 +842,35 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon CloudSearch's +// API operation DeleteSuggester for usage and error information. +// +// Returned Error Codes: +// * BaseException +// An error occurred while processing the request. +// +// * InternalException +// An internal error occurred while processing the request. If this problem +// persists, report an issue from the Service Health Dashboard (http://status.aws.amazon.com/" +// target="_blank). +// +// * InvalidType +// The request was rejected because it specified an invalid type definition. +// +// * ResourceNotFound +// The request was rejected because it attempted to reference a resource that +// does not exist. +// func (c *CloudSearch) DeleteSuggester(input *DeleteSuggesterInput) (*DeleteSuggesterOutput, error) { req, out := c.DeleteSuggesterRequest(input) err := req.Send() @@ -578,6 +884,8 @@ const opDescribeAnalysisSchemes = "DescribeAnalysisSchemes" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeAnalysisSchemes for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -612,6 +920,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 +929,27 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon CloudSearch's +// API operation DescribeAnalysisSchemes for usage and error information. +// +// Returned Error Codes: +// * BaseException +// An error occurred while processing the request. +// +// * InternalException +// An internal error occurred while processing the request. If this problem +// persists, report an issue from the Service Health Dashboard (http://status.aws.amazon.com/" +// target="_blank). +// +// * ResourceNotFound +// The request was rejected because it attempted to reference a resource that +// does not exist. +// func (c *CloudSearch) DescribeAnalysisSchemes(input *DescribeAnalysisSchemesInput) (*DescribeAnalysisSchemesOutput, error) { req, out := c.DescribeAnalysisSchemesRequest(input) err := req.Send() @@ -632,6 +963,8 @@ const opDescribeAvailabilityOptions = "DescribeAvailabilityOptions" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeAvailabilityOptions for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -666,11 +999,43 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon CloudSearch's +// API operation DescribeAvailabilityOptions for usage and error information. +// +// Returned Error Codes: +// * BaseException +// An error occurred while processing the request. +// +// * InternalException +// An internal error occurred while processing the request. If this problem +// persists, report an issue from the Service Health Dashboard (http://status.aws.amazon.com/" +// target="_blank). +// +// * InvalidType +// The request was rejected because it specified an invalid type definition. +// +// * LimitExceeded +// The request was rejected because a resource limit has already been met. +// +// * ResourceNotFound +// The request was rejected because it attempted to reference a resource that +// does not exist. +// +// * DisabledAction +// The request was rejected because it attempted an operation which is not enabled. +// func (c *CloudSearch) DescribeAvailabilityOptions(input *DescribeAvailabilityOptionsInput) (*DescribeAvailabilityOptionsOutput, error) { req, out := c.DescribeAvailabilityOptionsRequest(input) err := req.Send() @@ -684,6 +1049,8 @@ const opDescribeDomains = "DescribeDomains" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeDomains for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -718,12 +1085,31 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon CloudSearch's +// API operation DescribeDomains for usage and error information. +// +// Returned Error Codes: +// * BaseException +// An error occurred while processing the request. +// +// * InternalException +// An internal error occurred while processing the request. If this problem +// persists, report an issue from the Service Health Dashboard (http://status.aws.amazon.com/" +// target="_blank). +// func (c *CloudSearch) DescribeDomains(input *DescribeDomainsInput) (*DescribeDomainsOutput, error) { req, out := c.DescribeDomainsRequest(input) err := req.Send() @@ -737,6 +1123,8 @@ const opDescribeExpressions = "DescribeExpressions" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeExpressions for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -771,12 +1159,35 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon CloudSearch's +// API operation DescribeExpressions for usage and error information. +// +// Returned Error Codes: +// * BaseException +// An error occurred while processing the request. +// +// * InternalException +// An internal error occurred while processing the request. If this problem +// persists, report an issue from the Service Health Dashboard (http://status.aws.amazon.com/" +// target="_blank). +// +// * ResourceNotFound +// The request was rejected because it attempted to reference a resource that +// does not exist. +// func (c *CloudSearch) DescribeExpressions(input *DescribeExpressionsInput) (*DescribeExpressionsOutput, error) { req, out := c.DescribeExpressionsRequest(input) err := req.Send() @@ -790,6 +1201,8 @@ const opDescribeIndexFields = "DescribeIndexFields" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeIndexFields for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -824,12 +1237,35 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon CloudSearch's +// API operation DescribeIndexFields for usage and error information. +// +// Returned Error Codes: +// * BaseException +// An error occurred while processing the request. +// +// * InternalException +// An internal error occurred while processing the request. If this problem +// persists, report an issue from the Service Health Dashboard (http://status.aws.amazon.com/" +// target="_blank). +// +// * ResourceNotFound +// The request was rejected because it attempted to reference a resource that +// does not exist. +// func (c *CloudSearch) DescribeIndexFields(input *DescribeIndexFieldsInput) (*DescribeIndexFieldsOutput, error) { req, out := c.DescribeIndexFieldsRequest(input) err := req.Send() @@ -843,6 +1279,8 @@ const opDescribeScalingParameters = "DescribeScalingParameters" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeScalingParameters for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -877,10 +1315,33 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon CloudSearch's +// API operation DescribeScalingParameters for usage and error information. +// +// Returned Error Codes: +// * BaseException +// An error occurred while processing the request. +// +// * InternalException +// An internal error occurred while processing the request. If this problem +// persists, report an issue from the Service Health Dashboard (http://status.aws.amazon.com/" +// target="_blank). +// +// * ResourceNotFound +// The request was rejected because it attempted to reference a resource that +// does not exist. +// func (c *CloudSearch) DescribeScalingParameters(input *DescribeScalingParametersInput) (*DescribeScalingParametersOutput, error) { req, out := c.DescribeScalingParametersRequest(input) err := req.Send() @@ -894,6 +1355,8 @@ const opDescribeServiceAccessPolicies = "DescribeServiceAccessPolicies" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeServiceAccessPolicies for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -928,12 +1391,35 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon CloudSearch's +// API operation DescribeServiceAccessPolicies for usage and error information. +// +// Returned Error Codes: +// * BaseException +// An error occurred while processing the request. +// +// * InternalException +// An internal error occurred while processing the request. If this problem +// persists, report an issue from the Service Health Dashboard (http://status.aws.amazon.com/" +// target="_blank). +// +// * ResourceNotFound +// The request was rejected because it attempted to reference a resource that +// does not exist. +// func (c *CloudSearch) DescribeServiceAccessPolicies(input *DescribeServiceAccessPoliciesInput) (*DescribeServiceAccessPoliciesOutput, error) { req, out := c.DescribeServiceAccessPoliciesRequest(input) err := req.Send() @@ -947,6 +1433,8 @@ const opDescribeSuggesters = "DescribeSuggesters" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeSuggesters for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -981,6 +1469,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 +1478,27 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon CloudSearch's +// API operation DescribeSuggesters for usage and error information. +// +// Returned Error Codes: +// * BaseException +// An error occurred while processing the request. +// +// * InternalException +// An internal error occurred while processing the request. If this problem +// persists, report an issue from the Service Health Dashboard (http://status.aws.amazon.com/" +// target="_blank). +// +// * ResourceNotFound +// The request was rejected because it attempted to reference a resource that +// does not exist. +// func (c *CloudSearch) DescribeSuggesters(input *DescribeSuggestersInput) (*DescribeSuggestersOutput, error) { req, out := c.DescribeSuggestersRequest(input) err := req.Send() @@ -1001,6 +1512,8 @@ const opIndexDocuments = "IndexDocuments" // value can be used to capture response data after the request's "Send" method // is called. // +// See IndexDocuments for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1035,9 +1548,32 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon CloudSearch's +// API operation IndexDocuments for usage and error information. +// +// Returned Error Codes: +// * BaseException +// An error occurred while processing the request. +// +// * InternalException +// An internal error occurred while processing the request. If this problem +// persists, report an issue from the Service Health Dashboard (http://status.aws.amazon.com/" +// target="_blank). +// +// * ResourceNotFound +// The request was rejected because it attempted to reference a resource that +// does not exist. +// func (c *CloudSearch) IndexDocuments(input *IndexDocumentsInput) (*IndexDocumentsOutput, error) { req, out := c.IndexDocumentsRequest(input) err := req.Send() @@ -1051,6 +1587,8 @@ const opListDomainNames = "ListDomainNames" // value can be used to capture response data after the request's "Send" method // is called. // +// See ListDomainNames for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1085,7 +1623,21 @@ func (c *CloudSearch) ListDomainNamesRequest(input *ListDomainNamesInput) (req * return } +// ListDomainNames API operation for Amazon CloudSearch. +// // Lists all search domains owned by an account. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon CloudSearch's +// API operation ListDomainNames for usage and error information. +// +// Returned Error Codes: +// * BaseException +// An error occurred while processing the request. +// func (c *CloudSearch) ListDomainNames(input *ListDomainNamesInput) (*ListDomainNamesOutput, error) { req, out := c.ListDomainNamesRequest(input) err := req.Send() @@ -1099,6 +1651,8 @@ const opUpdateAvailabilityOptions = "UpdateAvailabilityOptions" // value can be used to capture response data after the request's "Send" method // is called. // +// See UpdateAvailabilityOptions for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1133,12 +1687,44 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon CloudSearch's +// API operation UpdateAvailabilityOptions for usage and error information. +// +// Returned Error Codes: +// * BaseException +// An error occurred while processing the request. +// +// * InternalException +// An internal error occurred while processing the request. If this problem +// persists, report an issue from the Service Health Dashboard (http://status.aws.amazon.com/" +// target="_blank). +// +// * InvalidType +// The request was rejected because it specified an invalid type definition. +// +// * LimitExceeded +// The request was rejected because a resource limit has already been met. +// +// * ResourceNotFound +// The request was rejected because it attempted to reference a resource that +// does not exist. +// +// * DisabledAction +// The request was rejected because it attempted an operation which is not enabled. +// func (c *CloudSearch) UpdateAvailabilityOptions(input *UpdateAvailabilityOptionsInput) (*UpdateAvailabilityOptionsOutput, error) { req, out := c.UpdateAvailabilityOptionsRequest(input) err := req.Send() @@ -1152,6 +1738,8 @@ const opUpdateScalingParameters = "UpdateScalingParameters" // value can be used to capture response data after the request's "Send" method // is called. // +// See UpdateScalingParameters for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1186,6 +1774,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 +1784,33 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon CloudSearch's +// API operation UpdateScalingParameters for usage and error information. +// +// Returned Error Codes: +// * BaseException +// An error occurred while processing the request. +// +// * InternalException +// An internal error occurred while processing the request. If this problem +// persists, report an issue from the Service Health Dashboard (http://status.aws.amazon.com/" +// target="_blank). +// +// * LimitExceeded +// The request was rejected because a resource limit has already been met. +// +// * ResourceNotFound +// The request was rejected because it attempted to reference a resource that +// does not exist. +// +// * InvalidType +// The request was rejected because it specified an invalid type definition. +// func (c *CloudSearch) UpdateScalingParameters(input *UpdateScalingParametersInput) (*UpdateScalingParametersOutput, error) { req, out := c.UpdateScalingParametersRequest(input) err := req.Send() @@ -1207,6 +1824,8 @@ const opUpdateServiceAccessPolicies = "UpdateServiceAccessPolicies" // value can be used to capture response data after the request's "Send" method // is called. // +// See UpdateServiceAccessPolicies for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1241,10 +1860,39 @@ 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). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon CloudSearch's +// API operation UpdateServiceAccessPolicies for usage and error information. +// +// Returned Error Codes: +// * BaseException +// An error occurred while processing the request. +// +// * InternalException +// An internal error occurred while processing the request. If this problem +// persists, report an issue from the Service Health Dashboard (http://status.aws.amazon.com/" +// target="_blank). +// +// * LimitExceeded +// The request was rejected because a resource limit has already been met. +// +// * ResourceNotFound +// The request was rejected because it attempted to reference a resource that +// does not exist. +// +// * InvalidType +// The request was rejected because it specified an invalid type definition. +// 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..71b4454ce45 100644 --- a/service/cloudsearchdomain/api.go +++ b/service/cloudsearchdomain/api.go @@ -17,6 +17,8 @@ const opSearch = "Search" // value can be used to capture response data after the request's "Send" method // is called. // +// See Search for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -51,6 +53,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 +74,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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon CloudSearch Domain's +// API operation Search for usage and error information. +// +// Returned Error Codes: +// * SearchException +// Information about any problems encountered while processing a search request. +// func (c *CloudSearchDomain) Search(input *SearchInput) (*SearchOutput, error) { req, out := c.SearchRequest(input) err := req.Send() @@ -83,6 +99,8 @@ const opSuggest = "Suggest" // value can be used to capture response data after the request's "Send" method // is called. // +// See Suggest for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -117,6 +135,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 +154,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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon CloudSearch Domain's +// API operation Suggest for usage and error information. +// +// Returned Error Codes: +// * SearchException +// Information about any problems encountered while processing a search request. +// func (c *CloudSearchDomain) Suggest(input *SuggestInput) (*SuggestOutput, error) { req, out := c.SuggestRequest(input) err := req.Send() @@ -147,6 +179,8 @@ const opUploadDocuments = "UploadDocuments" // value can be used to capture response data after the request's "Send" method // is called. // +// See UploadDocuments for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -181,6 +215,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 +239,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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon CloudSearch Domain's +// API operation UploadDocuments for usage and error information. +// +// Returned Error Codes: +// * DocumentServiceException +// Information about any problems encountered while processing an upload request. +// 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..ebccedbd6ee 100644 --- a/service/cloudtrail/api.go +++ b/service/cloudtrail/api.go @@ -18,6 +18,8 @@ const opAddTags = "AddTags" // value can be used to capture response data after the request's "Send" method // is called. // +// See AddTags for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -52,12 +54,66 @@ 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). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS CloudTrail's +// API operation AddTags for usage and error information. +// +// Returned Error Codes: +// * ResourceNotFoundException +// This exception is thrown when the specified resource is not found. +// +// * ARNInvalidException +// This exception is thrown when an operation is called with an invalid trail +// ARN. The format of a trail ARN is: +// +// arn:aws:cloudtrail:us-east-1:123456789012:trail/MyTrail +// +// * ResourceTypeNotSupportedException +// This exception is thrown when the specified resource type is not supported +// by CloudTrail. +// +// * TagsLimitExceededException +// The number of tags per trail has exceeded the permitted amount. Currently, +// the limit is 10. +// +// * InvalidTrailNameException +// This exception is thrown when the provided trail name is not valid. Trail +// names must meet the following requirements: +// +// Contain only ASCII letters (a-z, A-Z), numbers (0-9), periods (.), underscores +// (_), or dashes (-) +// +// Start with a letter or number, and end with a letter or number +// +// Be between 3 and 128 characters +// +// Have no adjacent periods, underscores or dashes. Names like my-_namespace +// and my--namespace are invalid. +// +// Not be in IP address format (for example, 192.168.5.4) +// +// * InvalidTagParameterException +// This exception is thrown when the key or value specified for the tag does +// not match the regular expression ^([\\p{L}\\p{Z}\\p{N}_.:/=+\\-@]*)$. +// +// * UnsupportedOperationException +// This exception is thrown when the requested operation is not supported. +// +// * OperationNotPermittedException +// This exception is thrown when the requested operation is not permitted. +// func (c *CloudTrail) AddTags(input *AddTagsInput) (*AddTagsOutput, error) { req, out := c.AddTagsRequest(input) err := req.Send() @@ -71,6 +127,8 @@ const opCreateTrail = "CreateTrail" // value can be used to capture response data after the request's "Send" method // is called. // +// See CreateTrail for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -105,9 +163,100 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS CloudTrail's +// API operation CreateTrail for usage and error information. +// +// Returned Error Codes: +// * MaximumNumberOfTrailsExceededException +// This exception is thrown when the maximum number of trails is reached. +// +// * TrailAlreadyExistsException +// This exception is thrown when the specified trail already exists. +// +// * S3BucketDoesNotExistException +// This exception is thrown when the specified S3 bucket does not exist. +// +// * InsufficientS3BucketPolicyException +// This exception is thrown when the policy on the S3 bucket is not sufficient. +// +// * InsufficientSnsTopicPolicyException +// This exception is thrown when the policy on the SNS topic is not sufficient. +// +// * InsufficientEncryptionPolicyException +// This exception is thrown when the policy on the S3 bucket or KMS key is not +// sufficient. +// +// * InvalidS3BucketNameException +// This exception is thrown when the provided S3 bucket name is not valid. +// +// * InvalidS3PrefixException +// This exception is thrown when the provided S3 prefix is not valid. +// +// * InvalidSnsTopicNameException +// This exception is thrown when the provided SNS topic name is not valid. +// +// * InvalidKmsKeyIdException +// This exception is thrown when the KMS key ARN is invalid. +// +// * InvalidTrailNameException +// This exception is thrown when the provided trail name is not valid. Trail +// names must meet the following requirements: +// +// Contain only ASCII letters (a-z, A-Z), numbers (0-9), periods (.), underscores +// (_), or dashes (-) +// +// Start with a letter or number, and end with a letter or number +// +// Be between 3 and 128 characters +// +// Have no adjacent periods, underscores or dashes. Names like my-_namespace +// and my--namespace are invalid. +// +// Not be in IP address format (for example, 192.168.5.4) +// +// * TrailNotProvidedException +// This exception is deprecated. +// +// * InvalidParameterCombinationException +// This exception is thrown when the combination of parameters provided is not +// valid. +// +// * KmsKeyNotFoundException +// This exception is thrown when the KMS key does not exist, or when the S3 +// bucket and the KMS key are not in the same region. +// +// * KmsKeyDisabledException +// This exception is deprecated. +// +// * KmsException +// This exception is thrown when there is an issue with the specified KMS key +// and the trail can’t be updated. +// +// * InvalidCloudWatchLogsLogGroupArnException +// This exception is thrown when the provided CloudWatch log group is not valid. +// +// * InvalidCloudWatchLogsRoleArnException +// This exception is thrown when the provided role is not valid. +// +// * CloudWatchLogsDeliveryUnavailableException +// Cannot set a CloudWatch Logs delivery for this region. +// +// * UnsupportedOperationException +// This exception is thrown when the requested operation is not supported. +// +// * OperationNotPermittedException +// This exception is thrown when the requested operation is not permitted. +// func (c *CloudTrail) CreateTrail(input *CreateTrailInput) (*CreateTrailOutput, error) { req, out := c.CreateTrailRequest(input) err := req.Send() @@ -121,6 +270,8 @@ const opDeleteTrail = "DeleteTrail" // value can be used to capture response data after the request's "Send" method // is called. // +// See DeleteTrail for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -155,9 +306,43 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS CloudTrail's +// API operation DeleteTrail for usage and error information. +// +// Returned Error Codes: +// * TrailNotFoundException +// This exception is thrown when the trail with the given name is not found. +// +// * InvalidTrailNameException +// This exception is thrown when the provided trail name is not valid. Trail +// names must meet the following requirements: +// +// Contain only ASCII letters (a-z, A-Z), numbers (0-9), periods (.), underscores +// (_), or dashes (-) +// +// Start with a letter or number, and end with a letter or number +// +// Be between 3 and 128 characters +// +// Have no adjacent periods, underscores or dashes. Names like my-_namespace +// and my--namespace are invalid. +// +// Not be in IP address format (for example, 192.168.5.4) +// +// * InvalidHomeRegionException +// This exception is thrown when an operation is called on a trail from a region +// other than the region in which the trail was created. +// func (c *CloudTrail) DeleteTrail(input *DeleteTrailInput) (*DeleteTrailOutput, error) { req, out := c.DeleteTrailRequest(input) err := req.Send() @@ -171,6 +356,8 @@ const opDescribeTrails = "DescribeTrails" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeTrails for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -205,8 +392,25 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS CloudTrail's +// API operation DescribeTrails for usage and error information. +// +// Returned Error Codes: +// * UnsupportedOperationException +// This exception is thrown when the requested operation is not supported. +// +// * OperationNotPermittedException +// This exception is thrown when the requested operation is not permitted. +// func (c *CloudTrail) DescribeTrails(input *DescribeTrailsInput) (*DescribeTrailsOutput, error) { req, out := c.DescribeTrailsRequest(input) err := req.Send() @@ -220,6 +424,8 @@ const opGetTrailStatus = "GetTrailStatus" // value can be used to capture response data after the request's "Send" method // is called. // +// See GetTrailStatus for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -254,11 +460,41 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS CloudTrail's +// API operation GetTrailStatus for usage and error information. +// +// Returned Error Codes: +// * TrailNotFoundException +// This exception is thrown when the trail with the given name is not found. +// +// * InvalidTrailNameException +// This exception is thrown when the provided trail name is not valid. Trail +// names must meet the following requirements: +// +// Contain only ASCII letters (a-z, A-Z), numbers (0-9), periods (.), underscores +// (_), or dashes (-) +// +// Start with a letter or number, and end with a letter or number +// +// Be between 3 and 128 characters +// +// Have no adjacent periods, underscores or dashes. Names like my-_namespace +// and my--namespace are invalid. +// +// Not be in IP address format (for example, 192.168.5.4) +// func (c *CloudTrail) GetTrailStatus(input *GetTrailStatusInput) (*GetTrailStatusOutput, error) { req, out := c.GetTrailStatusRequest(input) err := req.Send() @@ -272,6 +508,8 @@ const opListPublicKeys = "ListPublicKeys" // value can be used to capture response data after the request's "Send" method // is called. // +// See ListPublicKeys for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -306,6 +544,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 +554,28 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS CloudTrail's +// API operation ListPublicKeys for usage and error information. +// +// Returned Error Codes: +// * InvalidTimeRangeException +// Occurs if the timestamp values are invalid. Either the start time occurs +// after the end time or the time range is outside the range of possible values. +// +// * UnsupportedOperationException +// This exception is thrown when the requested operation is not supported. +// +// * OperationNotPermittedException +// This exception is thrown when the requested operation is not permitted. +// +// * InvalidTokenException +// Reserved for future use. +// func (c *CloudTrail) ListPublicKeys(input *ListPublicKeysInput) (*ListPublicKeysOutput, error) { req, out := c.ListPublicKeysRequest(input) err := req.Send() @@ -327,6 +589,8 @@ const opListTags = "ListTags" // value can be used to capture response data after the request's "Send" method // is called. // +// See ListTags for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -361,7 +625,56 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS CloudTrail's +// API operation ListTags for usage and error information. +// +// Returned Error Codes: +// * ResourceNotFoundException +// This exception is thrown when the specified resource is not found. +// +// * ARNInvalidException +// This exception is thrown when an operation is called with an invalid trail +// ARN. The format of a trail ARN is: +// +// arn:aws:cloudtrail:us-east-1:123456789012:trail/MyTrail +// +// * ResourceTypeNotSupportedException +// This exception is thrown when the specified resource type is not supported +// by CloudTrail. +// +// * InvalidTrailNameException +// This exception is thrown when the provided trail name is not valid. Trail +// names must meet the following requirements: +// +// Contain only ASCII letters (a-z, A-Z), numbers (0-9), periods (.), underscores +// (_), or dashes (-) +// +// Start with a letter or number, and end with a letter or number +// +// Be between 3 and 128 characters +// +// Have no adjacent periods, underscores or dashes. Names like my-_namespace +// and my--namespace are invalid. +// +// Not be in IP address format (for example, 192.168.5.4) +// +// * UnsupportedOperationException +// This exception is thrown when the requested operation is not supported. +// +// * OperationNotPermittedException +// This exception is thrown when the requested operation is not permitted. +// +// * InvalidTokenException +// Reserved for future use. +// func (c *CloudTrail) ListTags(input *ListTagsInput) (*ListTagsOutput, error) { req, out := c.ListTagsRequest(input) err := req.Send() @@ -375,6 +688,8 @@ const opLookupEvents = "LookupEvents" // value can be used to capture response data after the request's "Send" method // is called. // +// See LookupEvents for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -409,6 +724,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 +742,29 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS CloudTrail's +// API operation LookupEvents for usage and error information. +// +// Returned Error Codes: +// * InvalidLookupAttributesException +// Occurs when an invalid lookup attribute is specified. +// +// * InvalidTimeRangeException +// Occurs if the timestamp values are invalid. Either the start time occurs +// after the end time or the time range is outside the range of possible values. +// +// * InvalidMaxResultsException +// This exception is thrown if the limit specified is invalid. +// +// * InvalidNextTokenException +// Invalid token or token that was previously used in a request with different +// parameters. This exception is thrown if the token is invalid. +// func (c *CloudTrail) LookupEvents(input *LookupEventsInput) (*LookupEventsOutput, error) { req, out := c.LookupEventsRequest(input) err := req.Send() @@ -438,6 +778,8 @@ const opRemoveTags = "RemoveTags" // value can be used to capture response data after the request's "Send" method // is called. // +// See RemoveTags for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -472,7 +814,57 @@ func (c *CloudTrail) RemoveTagsRequest(input *RemoveTagsInput) (req *request.Req return } +// RemoveTags API operation for AWS CloudTrail. +// // Removes the specified tags from a trail. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS CloudTrail's +// API operation RemoveTags for usage and error information. +// +// Returned Error Codes: +// * ResourceNotFoundException +// This exception is thrown when the specified resource is not found. +// +// * ARNInvalidException +// This exception is thrown when an operation is called with an invalid trail +// ARN. The format of a trail ARN is: +// +// arn:aws:cloudtrail:us-east-1:123456789012:trail/MyTrail +// +// * ResourceTypeNotSupportedException +// This exception is thrown when the specified resource type is not supported +// by CloudTrail. +// +// * InvalidTrailNameException +// This exception is thrown when the provided trail name is not valid. Trail +// names must meet the following requirements: +// +// Contain only ASCII letters (a-z, A-Z), numbers (0-9), periods (.), underscores +// (_), or dashes (-) +// +// Start with a letter or number, and end with a letter or number +// +// Be between 3 and 128 characters +// +// Have no adjacent periods, underscores or dashes. Names like my-_namespace +// and my--namespace are invalid. +// +// Not be in IP address format (for example, 192.168.5.4) +// +// * InvalidTagParameterException +// This exception is thrown when the key or value specified for the tag does +// not match the regular expression ^([\\p{L}\\p{Z}\\p{N}_.:/=+\\-@]*)$. +// +// * UnsupportedOperationException +// This exception is thrown when the requested operation is not supported. +// +// * OperationNotPermittedException +// This exception is thrown when the requested operation is not permitted. +// func (c *CloudTrail) RemoveTags(input *RemoveTagsInput) (*RemoveTagsOutput, error) { req, out := c.RemoveTagsRequest(input) err := req.Send() @@ -486,6 +878,8 @@ const opStartLogging = "StartLogging" // value can be used to capture response data after the request's "Send" method // is called. // +// See StartLogging for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -520,11 +914,45 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS CloudTrail's +// API operation StartLogging for usage and error information. +// +// Returned Error Codes: +// * TrailNotFoundException +// This exception is thrown when the trail with the given name is not found. +// +// * InvalidTrailNameException +// This exception is thrown when the provided trail name is not valid. Trail +// names must meet the following requirements: +// +// Contain only ASCII letters (a-z, A-Z), numbers (0-9), periods (.), underscores +// (_), or dashes (-) +// +// Start with a letter or number, and end with a letter or number +// +// Be between 3 and 128 characters +// +// Have no adjacent periods, underscores or dashes. Names like my-_namespace +// and my--namespace are invalid. +// +// Not be in IP address format (for example, 192.168.5.4) +// +// * InvalidHomeRegionException +// This exception is thrown when an operation is called on a trail from a region +// other than the region in which the trail was created. +// func (c *CloudTrail) StartLogging(input *StartLoggingInput) (*StartLoggingOutput, error) { req, out := c.StartLoggingRequest(input) err := req.Send() @@ -538,6 +966,8 @@ const opStopLogging = "StopLogging" // value can be used to capture response data after the request's "Send" method // is called. // +// See StopLogging for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -572,6 +1002,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 +1011,38 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS CloudTrail's +// API operation StopLogging for usage and error information. +// +// Returned Error Codes: +// * TrailNotFoundException +// This exception is thrown when the trail with the given name is not found. +// +// * InvalidTrailNameException +// This exception is thrown when the provided trail name is not valid. Trail +// names must meet the following requirements: +// +// Contain only ASCII letters (a-z, A-Z), numbers (0-9), periods (.), underscores +// (_), or dashes (-) +// +// Start with a letter or number, and end with a letter or number +// +// Be between 3 and 128 characters +// +// Have no adjacent periods, underscores or dashes. Names like my-_namespace +// and my--namespace are invalid. +// +// Not be in IP address format (for example, 192.168.5.4) +// +// * InvalidHomeRegionException +// This exception is thrown when an operation is called on a trail from a region +// other than the region in which the trail was created. +// func (c *CloudTrail) StopLogging(input *StopLoggingInput) (*StopLoggingOutput, error) { req, out := c.StopLoggingRequest(input) err := req.Send() @@ -592,6 +1056,8 @@ const opUpdateTrail = "UpdateTrail" // value can be used to capture response data after the request's "Send" method // is called. // +// See UpdateTrail for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -626,12 +1092,104 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS CloudTrail's +// API operation UpdateTrail for usage and error information. +// +// Returned Error Codes: +// * S3BucketDoesNotExistException +// This exception is thrown when the specified S3 bucket does not exist. +// +// * InsufficientS3BucketPolicyException +// This exception is thrown when the policy on the S3 bucket is not sufficient. +// +// * InsufficientSnsTopicPolicyException +// This exception is thrown when the policy on the SNS topic is not sufficient. +// +// * InsufficientEncryptionPolicyException +// This exception is thrown when the policy on the S3 bucket or KMS key is not +// sufficient. +// +// * TrailNotFoundException +// This exception is thrown when the trail with the given name is not found. +// +// * InvalidS3BucketNameException +// This exception is thrown when the provided S3 bucket name is not valid. +// +// * InvalidS3PrefixException +// This exception is thrown when the provided S3 prefix is not valid. +// +// * InvalidSnsTopicNameException +// This exception is thrown when the provided SNS topic name is not valid. +// +// * InvalidKmsKeyIdException +// This exception is thrown when the KMS key ARN is invalid. +// +// * InvalidTrailNameException +// This exception is thrown when the provided trail name is not valid. Trail +// names must meet the following requirements: +// +// Contain only ASCII letters (a-z, A-Z), numbers (0-9), periods (.), underscores +// (_), or dashes (-) +// +// Start with a letter or number, and end with a letter or number +// +// Be between 3 and 128 characters +// +// Have no adjacent periods, underscores or dashes. Names like my-_namespace +// and my--namespace are invalid. +// +// Not be in IP address format (for example, 192.168.5.4) +// +// * TrailNotProvidedException +// This exception is deprecated. +// +// * InvalidParameterCombinationException +// This exception is thrown when the combination of parameters provided is not +// valid. +// +// * InvalidHomeRegionException +// This exception is thrown when an operation is called on a trail from a region +// other than the region in which the trail was created. +// +// * KmsKeyNotFoundException +// This exception is thrown when the KMS key does not exist, or when the S3 +// bucket and the KMS key are not in the same region. +// +// * KmsKeyDisabledException +// This exception is deprecated. +// +// * KmsException +// This exception is thrown when there is an issue with the specified KMS key +// and the trail can’t be updated. +// +// * InvalidCloudWatchLogsLogGroupArnException +// This exception is thrown when the provided CloudWatch log group is not valid. +// +// * InvalidCloudWatchLogsRoleArnException +// This exception is thrown when the provided role is not valid. +// +// * CloudWatchLogsDeliveryUnavailableException +// Cannot set a CloudWatch Logs delivery for this region. +// +// * UnsupportedOperationException +// This exception is thrown when the requested operation is not supported. +// +// * OperationNotPermittedException +// This exception is thrown when the requested operation is not permitted. +// 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..b198b4a842b 100644 --- a/service/cloudwatch/api.go +++ b/service/cloudwatch/api.go @@ -20,6 +20,8 @@ const opDeleteAlarms = "DeleteAlarms" // value can be used to capture response data after the request's "Send" method // is called. // +// See DeleteAlarms for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -56,7 +58,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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon CloudWatch's +// API operation DeleteAlarms for usage and error information. +// +// Returned Error Codes: +// * ResourceNotFound +// The named resource does not exist. +// func (c *CloudWatch) DeleteAlarms(input *DeleteAlarmsInput) (*DeleteAlarmsOutput, error) { req, out := c.DeleteAlarmsRequest(input) err := req.Send() @@ -70,6 +86,8 @@ const opDescribeAlarmHistory = "DescribeAlarmHistory" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeAlarmHistory for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -110,12 +128,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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon CloudWatch's +// API operation DescribeAlarmHistory for usage and error information. +// +// Returned Error Codes: +// * InvalidNextToken +// The next token specified is invalid. +// func (c *CloudWatch) DescribeAlarmHistory(input *DescribeAlarmHistoryInput) (*DescribeAlarmHistoryOutput, error) { req, out := c.DescribeAlarmHistoryRequest(input) err := req.Send() @@ -154,6 +186,8 @@ const opDescribeAlarms = "DescribeAlarms" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeAlarms for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -194,9 +228,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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon CloudWatch's +// API operation DescribeAlarms for usage and error information. +// +// Returned Error Codes: +// * InvalidNextToken +// The next token specified is invalid. +// func (c *CloudWatch) DescribeAlarms(input *DescribeAlarmsInput) (*DescribeAlarmsOutput, error) { req, out := c.DescribeAlarmsRequest(input) err := req.Send() @@ -235,6 +283,8 @@ const opDescribeAlarmsForMetric = "DescribeAlarmsForMetric" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeAlarmsForMetric for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -269,8 +319,17 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon CloudWatch's +// API operation DescribeAlarmsForMetric for usage and error information. func (c *CloudWatch) DescribeAlarmsForMetric(input *DescribeAlarmsForMetricInput) (*DescribeAlarmsForMetricOutput, error) { req, out := c.DescribeAlarmsForMetricRequest(input) err := req.Send() @@ -284,6 +343,8 @@ const opDisableAlarmActions = "DisableAlarmActions" // value can be used to capture response data after the request's "Send" method // is called. // +// See DisableAlarmActions for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -320,8 +381,17 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon CloudWatch's +// API operation DisableAlarmActions for usage and error information. func (c *CloudWatch) DisableAlarmActions(input *DisableAlarmActionsInput) (*DisableAlarmActionsOutput, error) { req, out := c.DisableAlarmActionsRequest(input) err := req.Send() @@ -335,6 +405,8 @@ const opEnableAlarmActions = "EnableAlarmActions" // value can be used to capture response data after the request's "Send" method // is called. // +// See EnableAlarmActions for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -371,7 +443,16 @@ func (c *CloudWatch) EnableAlarmActionsRequest(input *EnableAlarmActionsInput) ( return } +// EnableAlarmActions API operation for Amazon CloudWatch. +// // Enables actions for the specified alarms. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon CloudWatch's +// API operation EnableAlarmActions for usage and error information. func (c *CloudWatch) EnableAlarmActions(input *EnableAlarmActionsInput) (*EnableAlarmActionsOutput, error) { req, out := c.EnableAlarmActionsRequest(input) err := req.Send() @@ -385,6 +466,8 @@ const opGetMetricStatistics = "GetMetricStatistics" // value can be used to capture response data after the request's "Send" method // is called. // +// See GetMetricStatistics for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -419,6 +502,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 +536,28 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon CloudWatch's +// API operation GetMetricStatistics for usage and error information. +// +// Returned Error Codes: +// * InvalidParameterValue +// Bad or out-of-range value was supplied for the input parameter. +// +// * MissingParameter +// An input parameter that is mandatory for processing the request is not supplied. +// +// * InvalidParameterCombination +// Parameters that must not be used together were used together. +// +// * InternalServiceError +// Indicates that the request processing has failed due to some unknown error, +// exception, or failure. +// func (c *CloudWatch) GetMetricStatistics(input *GetMetricStatisticsInput) (*GetMetricStatisticsOutput, error) { req, out := c.GetMetricStatisticsRequest(input) err := req.Send() @@ -464,6 +571,8 @@ const opListMetrics = "ListMetrics" // value can be used to capture response data after the request's "Send" method // is called. // +// See ListMetrics for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -504,6 +613,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 +625,22 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon CloudWatch's +// API operation ListMetrics for usage and error information. +// +// Returned Error Codes: +// * InternalServiceError +// Indicates that the request processing has failed due to some unknown error, +// exception, or failure. +// +// * InvalidParameterValue +// Bad or out-of-range value was supplied for the input parameter. +// func (c *CloudWatch) ListMetrics(input *ListMetricsInput) (*ListMetricsOutput, error) { req, out := c.ListMetricsRequest(input) err := req.Send() @@ -552,6 +679,8 @@ const opPutMetricAlarm = "PutMetricAlarm" // value can be used to capture response data after the request's "Send" method // is called. // +// See PutMetricAlarm for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -588,6 +717,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 +759,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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon CloudWatch's +// API operation PutMetricAlarm for usage and error information. +// +// Returned Error Codes: +// * LimitExceeded +// The quota for alarms for this customer has already been reached. +// func (c *CloudWatch) PutMetricAlarm(input *PutMetricAlarmInput) (*PutMetricAlarmOutput, error) { req, out := c.PutMetricAlarmRequest(input) err := req.Send() @@ -641,6 +784,8 @@ const opPutMetricData = "PutMetricData" // value can be used to capture response data after the request's "Send" method // is called. // +// See PutMetricData for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -677,6 +822,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 +841,28 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon CloudWatch's +// API operation PutMetricData for usage and error information. +// +// Returned Error Codes: +// * InvalidParameterValue +// Bad or out-of-range value was supplied for the input parameter. +// +// * MissingParameter +// An input parameter that is mandatory for processing the request is not supplied. +// +// * InvalidParameterCombination +// Parameters that must not be used together were used together. +// +// * InternalServiceError +// Indicates that the request processing has failed due to some unknown error, +// exception, or failure. +// func (c *CloudWatch) PutMetricData(input *PutMetricDataInput) (*PutMetricDataOutput, error) { req, out := c.PutMetricDataRequest(input) err := req.Send() @@ -707,6 +876,8 @@ const opSetAlarmState = "SetAlarmState" // value can be used to capture response data after the request's "Send" method // is called. // +// See SetAlarmState for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -743,6 +914,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 +924,21 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon CloudWatch's +// API operation SetAlarmState for usage and error information. +// +// Returned Error Codes: +// * ResourceNotFound +// The named resource does not exist. +// +// * InvalidFormat +// Data was not syntactically valid JSON. +// 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..3ec1c868ae3 100644 --- a/service/cloudwatchevents/api.go +++ b/service/cloudwatchevents/api.go @@ -20,6 +20,8 @@ const opDeleteRule = "DeleteRule" // value can be used to capture response data after the request's "Send" method // is called. // +// See DeleteRule for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -56,12 +58,29 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon CloudWatch Events's +// API operation DeleteRule for usage and error information. +// +// Returned Error Codes: +// * ConcurrentModificationException +// This exception occurs if there is concurrent modification on rule or target. +// +// * InternalException +// This exception occurs due to unexpected causes. +// func (c *CloudWatchEvents) DeleteRule(input *DeleteRuleInput) (*DeleteRuleOutput, error) { req, out := c.DeleteRuleRequest(input) err := req.Send() @@ -75,6 +94,8 @@ const opDescribeRule = "DescribeRule" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeRule for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -109,7 +130,24 @@ func (c *CloudWatchEvents) DescribeRuleRequest(input *DescribeRuleInput) (req *r return } +// DescribeRule API operation for Amazon CloudWatch Events. +// // Describes the details of the specified rule. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon CloudWatch Events's +// API operation DescribeRule for usage and error information. +// +// Returned Error Codes: +// * ResourceNotFoundException +// The rule does not exist. +// +// * InternalException +// This exception occurs due to unexpected causes. +// func (c *CloudWatchEvents) DescribeRule(input *DescribeRuleInput) (*DescribeRuleOutput, error) { req, out := c.DescribeRuleRequest(input) err := req.Send() @@ -123,6 +161,8 @@ const opDisableRule = "DisableRule" // value can be used to capture response data after the request's "Send" method // is called. // +// See DisableRule for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -159,12 +199,32 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon CloudWatch Events's +// API operation DisableRule for usage and error information. +// +// Returned Error Codes: +// * ResourceNotFoundException +// The rule does not exist. +// +// * ConcurrentModificationException +// This exception occurs if there is concurrent modification on rule or target. +// +// * InternalException +// This exception occurs due to unexpected causes. +// func (c *CloudWatchEvents) DisableRule(input *DisableRuleInput) (*DisableRuleOutput, error) { req, out := c.DisableRuleRequest(input) err := req.Send() @@ -178,6 +238,8 @@ const opEnableRule = "EnableRule" // value can be used to capture response data after the request's "Send" method // is called. // +// See EnableRule for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -214,11 +276,31 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon CloudWatch Events's +// API operation EnableRule for usage and error information. +// +// Returned Error Codes: +// * ResourceNotFoundException +// The rule does not exist. +// +// * ConcurrentModificationException +// This exception occurs if there is concurrent modification on rule or target. +// +// * InternalException +// This exception occurs due to unexpected causes. +// func (c *CloudWatchEvents) EnableRule(input *EnableRuleInput) (*EnableRuleOutput, error) { req, out := c.EnableRuleRequest(input) err := req.Send() @@ -232,6 +314,8 @@ const opListRuleNamesByTarget = "ListRuleNamesByTarget" // value can be used to capture response data after the request's "Send" method // is called. // +// See ListRuleNamesByTarget for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -266,12 +350,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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon CloudWatch Events's +// API operation ListRuleNamesByTarget for usage and error information. +// +// Returned Error Codes: +// * InternalException +// This exception occurs due to unexpected causes. +// func (c *CloudWatchEvents) ListRuleNamesByTarget(input *ListRuleNamesByTargetInput) (*ListRuleNamesByTargetOutput, error) { req, out := c.ListRuleNamesByTargetRequest(input) err := req.Send() @@ -285,6 +383,8 @@ const opListRules = "ListRules" // value can be used to capture response data after the request's "Send" method // is called. // +// See ListRules for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -319,11 +419,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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon CloudWatch Events's +// API operation ListRules for usage and error information. +// +// Returned Error Codes: +// * InternalException +// This exception occurs due to unexpected causes. +// func (c *CloudWatchEvents) ListRules(input *ListRulesInput) (*ListRulesOutput, error) { req, out := c.ListRulesRequest(input) err := req.Send() @@ -337,6 +451,8 @@ const opListTargetsByRule = "ListTargetsByRule" // value can be used to capture response data after the request's "Send" method // is called. // +// See ListTargetsByRule for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -371,7 +487,24 @@ func (c *CloudWatchEvents) ListTargetsByRuleRequest(input *ListTargetsByRuleInpu return } +// ListTargetsByRule API operation for Amazon CloudWatch Events. +// // Lists of targets assigned to the rule. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon CloudWatch Events's +// API operation ListTargetsByRule for usage and error information. +// +// Returned Error Codes: +// * ResourceNotFoundException +// The rule does not exist. +// +// * InternalException +// This exception occurs due to unexpected causes. +// func (c *CloudWatchEvents) ListTargetsByRule(input *ListTargetsByRuleInput) (*ListTargetsByRuleOutput, error) { req, out := c.ListTargetsByRuleRequest(input) err := req.Send() @@ -385,6 +518,8 @@ const opPutEvents = "PutEvents" // value can be used to capture response data after the request's "Send" method // is called. // +// See PutEvents for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -419,8 +554,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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon CloudWatch Events's +// API operation PutEvents for usage and error information. +// +// Returned Error Codes: +// * InternalException +// This exception occurs due to unexpected causes. +// func (c *CloudWatchEvents) PutEvents(input *PutEventsInput) (*PutEventsOutput, error) { req, out := c.PutEventsRequest(input) err := req.Send() @@ -434,6 +583,8 @@ const opPutRule = "PutRule" // value can be used to capture response data after the request's "Send" method // is called. // +// See PutRule for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -468,6 +619,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 +639,28 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon CloudWatch Events's +// API operation PutRule for usage and error information. +// +// Returned Error Codes: +// * InvalidEventPatternException +// The event pattern is invalid. +// +// * LimitExceededException +// This exception occurs if you try to create more rules or add more targets +// to a rule than allowed by default. +// +// * ConcurrentModificationException +// This exception occurs if there is concurrent modification on rule or target. +// +// * InternalException +// This exception occurs due to unexpected causes. +// func (c *CloudWatchEvents) PutRule(input *PutRuleInput) (*PutRuleOutput, error) { req, out := c.PutRuleRequest(input) err := req.Send() @@ -499,6 +674,8 @@ const opPutTargets = "PutTargets" // value can be used to capture response data after the request's "Send" method // is called. // +// See PutTargets for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -533,6 +710,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 +736,28 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon CloudWatch Events's +// API operation PutTargets for usage and error information. +// +// Returned Error Codes: +// * ResourceNotFoundException +// The rule does not exist. +// +// * ConcurrentModificationException +// This exception occurs if there is concurrent modification on rule or target. +// +// * LimitExceededException +// This exception occurs if you try to create more rules or add more targets +// to a rule than allowed by default. +// +// * InternalException +// This exception occurs due to unexpected causes. +// func (c *CloudWatchEvents) PutTargets(input *PutTargetsInput) (*PutTargetsOutput, error) { req, out := c.PutTargetsRequest(input) err := req.Send() @@ -570,6 +771,8 @@ const opRemoveTargets = "RemoveTargets" // value can be used to capture response data after the request's "Send" method // is called. // +// See RemoveTargets for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -604,12 +807,32 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon CloudWatch Events's +// API operation RemoveTargets for usage and error information. +// +// Returned Error Codes: +// * ResourceNotFoundException +// The rule does not exist. +// +// * ConcurrentModificationException +// This exception occurs if there is concurrent modification on rule or target. +// +// * InternalException +// This exception occurs due to unexpected causes. +// func (c *CloudWatchEvents) RemoveTargets(input *RemoveTargetsInput) (*RemoveTargetsOutput, error) { req, out := c.RemoveTargetsRequest(input) err := req.Send() @@ -623,6 +846,8 @@ const opTestEventPattern = "TestEventPattern" // value can be used to capture response data after the request's "Send" method // is called. // +// See TestEventPattern for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -657,6 +882,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 +891,21 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon CloudWatch Events's +// API operation TestEventPattern for usage and error information. +// +// Returned Error Codes: +// * InvalidEventPatternException +// The event pattern is invalid. +// +// * InternalException +// This exception occurs due to unexpected causes. +// 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..c69ad6f0812 100644 --- a/service/cloudwatchlogs/api.go +++ b/service/cloudwatchlogs/api.go @@ -19,6 +19,8 @@ const opCancelExportTask = "CancelExportTask" // value can be used to capture response data after the request's "Send" method // is called. // +// See CancelExportTask for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -55,7 +57,30 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon CloudWatch Logs's +// API operation CancelExportTask for usage and error information. +// +// Returned Error Codes: +// * InvalidParameterException +// Returned if a parameter of the request is incorrectly specified. +// +// * ResourceNotFoundException +// Returned if the specified resource does not exist. +// +// * InvalidOperationException +// Returned if the operation is not valid on the specified resource +// +// * ServiceUnavailableException +// Returned if the service cannot complete the request. +// func (c *CloudWatchLogs) CancelExportTask(input *CancelExportTaskInput) (*CancelExportTaskOutput, error) { req, out := c.CancelExportTaskRequest(input) err := req.Send() @@ -69,6 +94,8 @@ const opCreateExportTask = "CreateExportTask" // value can be used to capture response data after the request's "Send" method // is called. // +// See CreateExportTask for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -103,6 +130,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 +145,34 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon CloudWatch Logs's +// API operation CreateExportTask for usage and error information. +// +// Returned Error Codes: +// * InvalidParameterException +// Returned if a parameter of the request is incorrectly specified. +// +// * LimitExceededException +// Returned if you have reached the maximum number of resources that can be +// created. +// +// * OperationAbortedException +// Returned if multiple requests to update the same resource were in conflict. +// +// * ServiceUnavailableException +// Returned if the service cannot complete the request. +// +// * ResourceNotFoundException +// Returned if the specified resource does not exist. +// +// * ResourceAlreadyExistsException +// Returned if the specified resource already exists. +// func (c *CloudWatchLogs) CreateExportTask(input *CreateExportTaskInput) (*CreateExportTaskOutput, error) { req, out := c.CreateExportTaskRequest(input) err := req.Send() @@ -129,6 +186,8 @@ const opCreateLogGroup = "CreateLogGroup" // value can be used to capture response data after the request's "Send" method // is called. // +// See CreateLogGroup for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -165,6 +224,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 +236,31 @@ func (c *CloudWatchLogs) CreateLogGroupRequest(input *CreateLogGroupInput) (req // // Allowed characters are a-z, A-Z, 0-9, '_' (underscore), '-' (hyphen), // '/' (forward slash), and '.' (period). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon CloudWatch Logs's +// API operation CreateLogGroup for usage and error information. +// +// Returned Error Codes: +// * InvalidParameterException +// Returned if a parameter of the request is incorrectly specified. +// +// * ResourceAlreadyExistsException +// Returned if the specified resource already exists. +// +// * LimitExceededException +// Returned if you have reached the maximum number of resources that can be +// created. +// +// * OperationAbortedException +// Returned if multiple requests to update the same resource were in conflict. +// +// * ServiceUnavailableException +// Returned if the service cannot complete the request. +// func (c *CloudWatchLogs) CreateLogGroup(input *CreateLogGroupInput) (*CreateLogGroupOutput, error) { req, out := c.CreateLogGroupRequest(input) err := req.Send() @@ -188,6 +274,8 @@ const opCreateLogStream = "CreateLogStream" // value can be used to capture response data after the request's "Send" method // is called. // +// See CreateLogStream for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -224,6 +312,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 +323,27 @@ func (c *CloudWatchLogs) CreateLogStreamRequest(input *CreateLogStreamInput) (re // Log stream names can be between 1 and 512 characters long. // // The ':' colon character is not allowed. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon CloudWatch Logs's +// API operation CreateLogStream for usage and error information. +// +// Returned Error Codes: +// * InvalidParameterException +// Returned if a parameter of the request is incorrectly specified. +// +// * ResourceAlreadyExistsException +// Returned if the specified resource already exists. +// +// * ResourceNotFoundException +// Returned if the specified resource does not exist. +// +// * ServiceUnavailableException +// Returned if the service cannot complete the request. +// func (c *CloudWatchLogs) CreateLogStream(input *CreateLogStreamInput) (*CreateLogStreamOutput, error) { req, out := c.CreateLogStreamRequest(input) err := req.Send() @@ -246,6 +357,8 @@ const opDeleteDestination = "DeleteDestination" // value can be used to capture response data after the request's "Send" method // is called. // +// See DeleteDestination for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -282,9 +395,32 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon CloudWatch Logs's +// API operation DeleteDestination for usage and error information. +// +// Returned Error Codes: +// * InvalidParameterException +// Returned if a parameter of the request is incorrectly specified. +// +// * ResourceNotFoundException +// Returned if the specified resource does not exist. +// +// * OperationAbortedException +// Returned if multiple requests to update the same resource were in conflict. +// +// * ServiceUnavailableException +// Returned if the service cannot complete the request. +// func (c *CloudWatchLogs) DeleteDestination(input *DeleteDestinationInput) (*DeleteDestinationOutput, error) { req, out := c.DeleteDestinationRequest(input) err := req.Send() @@ -298,6 +434,8 @@ const opDeleteLogGroup = "DeleteLogGroup" // value can be used to capture response data after the request's "Send" method // is called. // +// See DeleteLogGroup for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -334,8 +472,31 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon CloudWatch Logs's +// API operation DeleteLogGroup for usage and error information. +// +// Returned Error Codes: +// * InvalidParameterException +// Returned if a parameter of the request is incorrectly specified. +// +// * ResourceNotFoundException +// Returned if the specified resource does not exist. +// +// * OperationAbortedException +// Returned if multiple requests to update the same resource were in conflict. +// +// * ServiceUnavailableException +// Returned if the service cannot complete the request. +// func (c *CloudWatchLogs) DeleteLogGroup(input *DeleteLogGroupInput) (*DeleteLogGroupOutput, error) { req, out := c.DeleteLogGroupRequest(input) err := req.Send() @@ -349,6 +510,8 @@ const opDeleteLogStream = "DeleteLogStream" // value can be used to capture response data after the request's "Send" method // is called. // +// See DeleteLogStream for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -385,8 +548,31 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon CloudWatch Logs's +// API operation DeleteLogStream for usage and error information. +// +// Returned Error Codes: +// * InvalidParameterException +// Returned if a parameter of the request is incorrectly specified. +// +// * ResourceNotFoundException +// Returned if the specified resource does not exist. +// +// * OperationAbortedException +// Returned if multiple requests to update the same resource were in conflict. +// +// * ServiceUnavailableException +// Returned if the service cannot complete the request. +// func (c *CloudWatchLogs) DeleteLogStream(input *DeleteLogStreamInput) (*DeleteLogStreamOutput, error) { req, out := c.DeleteLogStreamRequest(input) err := req.Send() @@ -400,6 +586,8 @@ const opDeleteMetricFilter = "DeleteMetricFilter" // value can be used to capture response data after the request's "Send" method // is called. // +// See DeleteMetricFilter for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -436,7 +624,30 @@ func (c *CloudWatchLogs) DeleteMetricFilterRequest(input *DeleteMetricFilterInpu return } +// DeleteMetricFilter API operation for Amazon CloudWatch Logs. +// // Deletes a metric filter associated with the specified log group. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon CloudWatch Logs's +// API operation DeleteMetricFilter for usage and error information. +// +// Returned Error Codes: +// * InvalidParameterException +// Returned if a parameter of the request is incorrectly specified. +// +// * ResourceNotFoundException +// Returned if the specified resource does not exist. +// +// * OperationAbortedException +// Returned if multiple requests to update the same resource were in conflict. +// +// * ServiceUnavailableException +// Returned if the service cannot complete the request. +// func (c *CloudWatchLogs) DeleteMetricFilter(input *DeleteMetricFilterInput) (*DeleteMetricFilterOutput, error) { req, out := c.DeleteMetricFilterRequest(input) err := req.Send() @@ -450,6 +661,8 @@ const opDeleteRetentionPolicy = "DeleteRetentionPolicy" // value can be used to capture response data after the request's "Send" method // is called. // +// See DeleteRetentionPolicy for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -486,8 +699,31 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon CloudWatch Logs's +// API operation DeleteRetentionPolicy for usage and error information. +// +// Returned Error Codes: +// * InvalidParameterException +// Returned if a parameter of the request is incorrectly specified. +// +// * ResourceNotFoundException +// Returned if the specified resource does not exist. +// +// * OperationAbortedException +// Returned if multiple requests to update the same resource were in conflict. +// +// * ServiceUnavailableException +// Returned if the service cannot complete the request. +// func (c *CloudWatchLogs) DeleteRetentionPolicy(input *DeleteRetentionPolicyInput) (*DeleteRetentionPolicyOutput, error) { req, out := c.DeleteRetentionPolicyRequest(input) err := req.Send() @@ -501,6 +737,8 @@ const opDeleteSubscriptionFilter = "DeleteSubscriptionFilter" // value can be used to capture response data after the request's "Send" method // is called. // +// See DeleteSubscriptionFilter for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -537,7 +775,30 @@ func (c *CloudWatchLogs) DeleteSubscriptionFilterRequest(input *DeleteSubscripti return } +// DeleteSubscriptionFilter API operation for Amazon CloudWatch Logs. +// // Deletes a subscription filter associated with the specified log group. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon CloudWatch Logs's +// API operation DeleteSubscriptionFilter for usage and error information. +// +// Returned Error Codes: +// * InvalidParameterException +// Returned if a parameter of the request is incorrectly specified. +// +// * ResourceNotFoundException +// Returned if the specified resource does not exist. +// +// * OperationAbortedException +// Returned if multiple requests to update the same resource were in conflict. +// +// * ServiceUnavailableException +// Returned if the service cannot complete the request. +// func (c *CloudWatchLogs) DeleteSubscriptionFilter(input *DeleteSubscriptionFilterInput) (*DeleteSubscriptionFilterOutput, error) { req, out := c.DeleteSubscriptionFilterRequest(input) err := req.Send() @@ -551,6 +812,8 @@ const opDescribeDestinations = "DescribeDestinations" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeDestinations for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -591,6 +854,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 +864,21 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon CloudWatch Logs's +// API operation DescribeDestinations for usage and error information. +// +// Returned Error Codes: +// * InvalidParameterException +// Returned if a parameter of the request is incorrectly specified. +// +// * ServiceUnavailableException +// Returned if the service cannot complete the request. +// func (c *CloudWatchLogs) DescribeDestinations(input *DescribeDestinationsInput) (*DescribeDestinationsOutput, error) { req, out := c.DescribeDestinationsRequest(input) err := req.Send() @@ -637,6 +917,8 @@ const opDescribeExportTasks = "DescribeExportTasks" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeExportTasks for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -671,6 +953,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 +963,21 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon CloudWatch Logs's +// API operation DescribeExportTasks for usage and error information. +// +// Returned Error Codes: +// * InvalidParameterException +// Returned if a parameter of the request is incorrectly specified. +// +// * ServiceUnavailableException +// Returned if the service cannot complete the request. +// func (c *CloudWatchLogs) DescribeExportTasks(input *DescribeExportTasksInput) (*DescribeExportTasksOutput, error) { req, out := c.DescribeExportTasksRequest(input) err := req.Send() @@ -692,6 +991,8 @@ const opDescribeLogGroups = "DescribeLogGroups" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeLogGroups for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -732,6 +1033,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 +1043,21 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon CloudWatch Logs's +// API operation DescribeLogGroups for usage and error information. +// +// Returned Error Codes: +// * InvalidParameterException +// Returned if a parameter of the request is incorrectly specified. +// +// * ServiceUnavailableException +// Returned if the service cannot complete the request. +// func (c *CloudWatchLogs) DescribeLogGroups(input *DescribeLogGroupsInput) (*DescribeLogGroupsOutput, error) { req, out := c.DescribeLogGroupsRequest(input) err := req.Send() @@ -778,6 +1096,8 @@ const opDescribeLogStreams = "DescribeLogStreams" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeLogStreams for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -818,6 +1138,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 +1149,24 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon CloudWatch Logs's +// API operation DescribeLogStreams for usage and error information. +// +// Returned Error Codes: +// * InvalidParameterException +// Returned if a parameter of the request is incorrectly specified. +// +// * ResourceNotFoundException +// Returned if the specified resource does not exist. +// +// * ServiceUnavailableException +// Returned if the service cannot complete the request. +// func (c *CloudWatchLogs) DescribeLogStreams(input *DescribeLogStreamsInput) (*DescribeLogStreamsOutput, error) { req, out := c.DescribeLogStreamsRequest(input) err := req.Send() @@ -865,6 +1205,8 @@ const opDescribeMetricFilters = "DescribeMetricFilters" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeMetricFilters for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -905,6 +1247,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 +1256,24 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon CloudWatch Logs's +// API operation DescribeMetricFilters for usage and error information. +// +// Returned Error Codes: +// * InvalidParameterException +// Returned if a parameter of the request is incorrectly specified. +// +// * ResourceNotFoundException +// Returned if the specified resource does not exist. +// +// * ServiceUnavailableException +// Returned if the service cannot complete the request. +// func (c *CloudWatchLogs) DescribeMetricFilters(input *DescribeMetricFiltersInput) (*DescribeMetricFiltersOutput, error) { req, out := c.DescribeMetricFiltersRequest(input) err := req.Send() @@ -950,6 +1312,8 @@ const opDescribeSubscriptionFilters = "DescribeSubscriptionFilters" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeSubscriptionFilters for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -990,6 +1354,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 +1364,24 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon CloudWatch Logs's +// API operation DescribeSubscriptionFilters for usage and error information. +// +// Returned Error Codes: +// * InvalidParameterException +// Returned if a parameter of the request is incorrectly specified. +// +// * ResourceNotFoundException +// Returned if the specified resource does not exist. +// +// * ServiceUnavailableException +// Returned if the service cannot complete the request. +// func (c *CloudWatchLogs) DescribeSubscriptionFilters(input *DescribeSubscriptionFiltersInput) (*DescribeSubscriptionFiltersOutput, error) { req, out := c.DescribeSubscriptionFiltersRequest(input) err := req.Send() @@ -1036,6 +1420,8 @@ const opFilterLogEvents = "FilterLogEvents" // value can be used to capture response data after the request's "Send" method // is called. // +// See FilterLogEvents for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1076,6 +1462,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 +1478,24 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon CloudWatch Logs's +// API operation FilterLogEvents for usage and error information. +// +// Returned Error Codes: +// * InvalidParameterException +// Returned if a parameter of the request is incorrectly specified. +// +// * ResourceNotFoundException +// Returned if the specified resource does not exist. +// +// * ServiceUnavailableException +// Returned if the service cannot complete the request. +// func (c *CloudWatchLogs) FilterLogEvents(input *FilterLogEventsInput) (*FilterLogEventsOutput, error) { req, out := c.FilterLogEventsRequest(input) err := req.Send() @@ -1128,6 +1534,8 @@ const opGetLogEvents = "GetLogEvents" // value can be used to capture response data after the request's "Send" method // is called. // +// See GetLogEvents for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1168,6 +1576,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 +1588,24 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon CloudWatch Logs's +// API operation GetLogEvents for usage and error information. +// +// Returned Error Codes: +// * InvalidParameterException +// Returned if a parameter of the request is incorrectly specified. +// +// * ResourceNotFoundException +// Returned if the specified resource does not exist. +// +// * ServiceUnavailableException +// Returned if the service cannot complete the request. +// func (c *CloudWatchLogs) GetLogEvents(input *GetLogEventsInput) (*GetLogEventsOutput, error) { req, out := c.GetLogEventsRequest(input) err := req.Send() @@ -1216,6 +1644,8 @@ const opPutDestination = "PutDestination" // value can be used to capture response data after the request's "Send" method // is called. // +// See PutDestination for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1250,6 +1680,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 +1693,24 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon CloudWatch Logs's +// API operation PutDestination for usage and error information. +// +// Returned Error Codes: +// * InvalidParameterException +// Returned if a parameter of the request is incorrectly specified. +// +// * OperationAbortedException +// Returned if multiple requests to update the same resource were in conflict. +// +// * ServiceUnavailableException +// Returned if the service cannot complete the request. +// func (c *CloudWatchLogs) PutDestination(input *PutDestinationInput) (*PutDestinationOutput, error) { req, out := c.PutDestinationRequest(input) err := req.Send() @@ -1274,6 +1724,8 @@ const opPutDestinationPolicy = "PutDestinationPolicy" // value can be used to capture response data after the request's "Send" method // is called. // +// See PutDestinationPolicy for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1310,10 +1762,30 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon CloudWatch Logs's +// API operation PutDestinationPolicy for usage and error information. +// +// Returned Error Codes: +// * InvalidParameterException +// Returned if a parameter of the request is incorrectly specified. +// +// * OperationAbortedException +// Returned if multiple requests to update the same resource were in conflict. +// +// * ServiceUnavailableException +// Returned if the service cannot complete the request. +// func (c *CloudWatchLogs) PutDestinationPolicy(input *PutDestinationPolicyInput) (*PutDestinationPolicyOutput, error) { req, out := c.PutDestinationPolicyRequest(input) err := req.Send() @@ -1327,6 +1799,8 @@ const opPutLogEvents = "PutLogEvents" // value can be used to capture response data after the request's "Send" method // is called. // +// See PutLogEvents for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1361,6 +1835,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 +1861,30 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon CloudWatch Logs's +// API operation PutLogEvents for usage and error information. +// +// Returned Error Codes: +// * InvalidParameterException +// Returned if a parameter of the request is incorrectly specified. +// +// * InvalidSequenceTokenException + +// +// * DataAlreadyAcceptedException + +// +// * ResourceNotFoundException +// Returned if the specified resource does not exist. +// +// * ServiceUnavailableException +// Returned if the service cannot complete the request. +// func (c *CloudWatchLogs) PutLogEvents(input *PutLogEventsInput) (*PutLogEventsOutput, error) { req, out := c.PutLogEventsRequest(input) err := req.Send() @@ -1398,6 +1898,8 @@ const opPutMetricFilter = "PutMetricFilter" // value can be used to capture response data after the request's "Send" method // is called. // +// See PutMetricFilter for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1434,12 +1936,39 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon CloudWatch Logs's +// API operation PutMetricFilter for usage and error information. +// +// Returned Error Codes: +// * InvalidParameterException +// Returned if a parameter of the request is incorrectly specified. +// +// * ResourceNotFoundException +// Returned if the specified resource does not exist. +// +// * OperationAbortedException +// Returned if multiple requests to update the same resource were in conflict. +// +// * LimitExceededException +// Returned if you have reached the maximum number of resources that can be +// created. +// +// * ServiceUnavailableException +// Returned if the service cannot complete the request. +// func (c *CloudWatchLogs) PutMetricFilter(input *PutMetricFilterInput) (*PutMetricFilterOutput, error) { req, out := c.PutMetricFilterRequest(input) err := req.Send() @@ -1453,6 +1982,8 @@ const opPutRetentionPolicy = "PutRetentionPolicy" // value can be used to capture response data after the request's "Send" method // is called. // +// See PutRetentionPolicy for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1489,9 +2020,32 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon CloudWatch Logs's +// API operation PutRetentionPolicy for usage and error information. +// +// Returned Error Codes: +// * InvalidParameterException +// Returned if a parameter of the request is incorrectly specified. +// +// * ResourceNotFoundException +// Returned if the specified resource does not exist. +// +// * OperationAbortedException +// Returned if multiple requests to update the same resource were in conflict. +// +// * ServiceUnavailableException +// Returned if the service cannot complete the request. +// func (c *CloudWatchLogs) PutRetentionPolicy(input *PutRetentionPolicyInput) (*PutRetentionPolicyOutput, error) { req, out := c.PutRetentionPolicyRequest(input) err := req.Send() @@ -1505,6 +2059,8 @@ const opPutSubscriptionFilter = "PutSubscriptionFilter" // value can be used to capture response data after the request's "Send" method // is called. // +// See PutSubscriptionFilter for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1541,6 +2097,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 +2118,31 @@ func (c *CloudWatchLogs) PutSubscriptionFilterRequest(input *PutSubscriptionFilt // // Currently there can only be one subscription filter associated with a // log group. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon CloudWatch Logs's +// API operation PutSubscriptionFilter for usage and error information. +// +// Returned Error Codes: +// * InvalidParameterException +// Returned if a parameter of the request is incorrectly specified. +// +// * ResourceNotFoundException +// Returned if the specified resource does not exist. +// +// * OperationAbortedException +// Returned if multiple requests to update the same resource were in conflict. +// +// * LimitExceededException +// Returned if you have reached the maximum number of resources that can be +// created. +// +// * ServiceUnavailableException +// Returned if the service cannot complete the request. +// func (c *CloudWatchLogs) PutSubscriptionFilter(input *PutSubscriptionFilterInput) (*PutSubscriptionFilterOutput, error) { req, out := c.PutSubscriptionFilterRequest(input) err := req.Send() @@ -1573,6 +2156,8 @@ const opTestMetricFilter = "TestMetricFilter" // value can be used to capture response data after the request's "Send" method // is called. // +// See TestMetricFilter for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1607,9 +2192,26 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon CloudWatch Logs's +// API operation TestMetricFilter for usage and error information. +// +// Returned Error Codes: +// * InvalidParameterException +// Returned if a parameter of the request is incorrectly specified. +// +// * ServiceUnavailableException +// Returned if the service cannot complete the request. +// 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..504b5addbb8 100644 --- a/service/codecommit/api.go +++ b/service/codecommit/api.go @@ -19,6 +19,8 @@ const opBatchGetRepositories = "BatchGetRepositories" // value can be used to capture response data after the request's "Send" method // is called. // +// See BatchGetRepositories for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -53,6 +55,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 +64,44 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS CodeCommit's +// API operation BatchGetRepositories for usage and error information. +// +// Returned Error Codes: +// * RepositoryNamesRequiredException +// A repository names object is required but was not specified. +// +// * MaximumRepositoryNamesExceededException +// The maximum number of allowed repository names was exceeded. Currently, this +// number is 25. +// +// * InvalidRepositoryNameException +// At least one specified repository name is not valid. +// +// This exception only occurs when a specified repository name is not valid. +// Other exceptions occur when a required repository parameter is missing, or +// when a specified repository does not exist. +// +// * EncryptionIntegrityChecksFailedException +// An encryption integrity check failed. +// +// * EncryptionKeyAccessDeniedException +// An encryption key could not be accessed. +// +// * EncryptionKeyDisabledException +// The encryption key is disabled. +// +// * EncryptionKeyNotFoundException +// No encryption key was found. +// +// * EncryptionKeyUnavailableException +// The encryption key is not available. +// func (c *CodeCommit) BatchGetRepositories(input *BatchGetRepositoriesInput) (*BatchGetRepositoriesOutput, error) { req, out := c.BatchGetRepositoriesRequest(input) err := req.Send() @@ -73,6 +115,8 @@ const opCreateBranch = "CreateBranch" // value can be used to capture response data after the request's "Send" method // is called. // +// See CreateBranch for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -109,10 +153,68 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS CodeCommit's +// API operation CreateBranch for usage and error information. +// +// Returned Error Codes: +// * RepositoryNameRequiredException +// A repository name is required but was not specified. +// +// * InvalidRepositoryNameException +// At least one specified repository name is not valid. +// +// This exception only occurs when a specified repository name is not valid. +// Other exceptions occur when a required repository parameter is missing, or +// when a specified repository does not exist. +// +// * RepositoryDoesNotExistException +// The specified repository does not exist. +// +// * BranchNameRequiredException +// A branch name is required but was not specified. +// +// * BranchNameExistsException +// The specified branch name already exists. +// +// * InvalidBranchNameException +// The specified branch name is not valid. +// +// * CommitIdRequiredException +// A commit ID was not specified. +// +// * CommitDoesNotExistException +// The specified commit does not exist or no commit was specified, and the specified +// repository has no default branch. +// +// * InvalidCommitIdException +// The specified commit ID is not valid. +// +// * EncryptionIntegrityChecksFailedException +// An encryption integrity check failed. +// +// * EncryptionKeyAccessDeniedException +// An encryption key could not be accessed. +// +// * EncryptionKeyDisabledException +// The encryption key is disabled. +// +// * EncryptionKeyNotFoundException +// No encryption key was found. +// +// * EncryptionKeyUnavailableException +// The encryption key is not available. +// func (c *CodeCommit) CreateBranch(input *CreateBranchInput) (*CreateBranchOutput, error) { req, out := c.CreateBranchRequest(input) err := req.Send() @@ -126,6 +228,8 @@ const opCreateRepository = "CreateRepository" // value can be used to capture response data after the request's "Send" method // is called. // +// See CreateRepository for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -160,7 +264,52 @@ func (c *CodeCommit) CreateRepositoryRequest(input *CreateRepositoryInput) (req return } +// CreateRepository API operation for AWS CodeCommit. +// // Creates a new, empty repository. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS CodeCommit's +// API operation CreateRepository for usage and error information. +// +// Returned Error Codes: +// * RepositoryNameExistsException +// The specified repository name already exists. +// +// * RepositoryNameRequiredException +// A repository name is required but was not specified. +// +// * InvalidRepositoryNameException +// At least one specified repository name is not valid. +// +// This exception only occurs when a specified repository name is not valid. +// Other exceptions occur when a required repository parameter is missing, or +// when a specified repository does not exist. +// +// * InvalidRepositoryDescriptionException +// The specified repository description is not valid. +// +// * RepositoryLimitExceededException +// A repository resource limit was exceeded. +// +// * EncryptionIntegrityChecksFailedException +// An encryption integrity check failed. +// +// * EncryptionKeyAccessDeniedException +// An encryption key could not be accessed. +// +// * EncryptionKeyDisabledException +// The encryption key is disabled. +// +// * EncryptionKeyNotFoundException +// No encryption key was found. +// +// * EncryptionKeyUnavailableException +// The encryption key is not available. +// func (c *CodeCommit) CreateRepository(input *CreateRepositoryInput) (*CreateRepositoryOutput, error) { req, out := c.CreateRepositoryRequest(input) err := req.Send() @@ -174,6 +323,8 @@ const opDeleteRepository = "DeleteRepository" // value can be used to capture response data after the request's "Send" method // is called. // +// See DeleteRepository for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -208,12 +359,48 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS CodeCommit's +// API operation DeleteRepository for usage and error information. +// +// Returned Error Codes: +// * RepositoryNameRequiredException +// A repository name is required but was not specified. +// +// * InvalidRepositoryNameException +// At least one specified repository name is not valid. +// +// This exception only occurs when a specified repository name is not valid. +// Other exceptions occur when a required repository parameter is missing, or +// when a specified repository does not exist. +// +// * EncryptionIntegrityChecksFailedException +// An encryption integrity check failed. +// +// * EncryptionKeyAccessDeniedException +// An encryption key could not be accessed. +// +// * EncryptionKeyDisabledException +// The encryption key is disabled. +// +// * EncryptionKeyNotFoundException +// No encryption key was found. +// +// * EncryptionKeyUnavailableException +// The encryption key is not available. +// func (c *CodeCommit) DeleteRepository(input *DeleteRepositoryInput) (*DeleteRepositoryOutput, error) { req, out := c.DeleteRepositoryRequest(input) err := req.Send() @@ -227,6 +414,8 @@ const opGetBranch = "GetBranch" // value can be used to capture response data after the request's "Send" method // is called. // +// See GetBranch for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -261,8 +450,56 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS CodeCommit's +// API operation GetBranch for usage and error information. +// +// Returned Error Codes: +// * RepositoryNameRequiredException +// A repository name is required but was not specified. +// +// * RepositoryDoesNotExistException +// The specified repository does not exist. +// +// * InvalidRepositoryNameException +// At least one specified repository name is not valid. +// +// This exception only occurs when a specified repository name is not valid. +// Other exceptions occur when a required repository parameter is missing, or +// when a specified repository does not exist. +// +// * BranchNameRequiredException +// A branch name is required but was not specified. +// +// * InvalidBranchNameException +// The specified branch name is not valid. +// +// * BranchDoesNotExistException +// The specified branch does not exist. +// +// * EncryptionIntegrityChecksFailedException +// An encryption integrity check failed. +// +// * EncryptionKeyAccessDeniedException +// An encryption key could not be accessed. +// +// * EncryptionKeyDisabledException +// The encryption key is disabled. +// +// * EncryptionKeyNotFoundException +// No encryption key was found. +// +// * EncryptionKeyUnavailableException +// The encryption key is not available. +// func (c *CodeCommit) GetBranch(input *GetBranchInput) (*GetBranchOutput, error) { req, out := c.GetBranchRequest(input) err := req.Send() @@ -276,6 +513,8 @@ const opGetCommit = "GetCommit" // value can be used to capture response data after the request's "Send" method // is called. // +// See GetCommit for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -310,8 +549,56 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS CodeCommit's +// API operation GetCommit for usage and error information. +// +// Returned Error Codes: +// * RepositoryNameRequiredException +// A repository name is required but was not specified. +// +// * InvalidRepositoryNameException +// At least one specified repository name is not valid. +// +// This exception only occurs when a specified repository name is not valid. +// Other exceptions occur when a required repository parameter is missing, or +// when a specified repository does not exist. +// +// * RepositoryDoesNotExistException +// The specified repository does not exist. +// +// * CommitIdRequiredException +// A commit ID was not specified. +// +// * InvalidCommitIdException +// The specified commit ID is not valid. +// +// * CommitIdDoesNotExistException +// The specified commit ID does not exist. +// +// * EncryptionIntegrityChecksFailedException +// An encryption integrity check failed. +// +// * EncryptionKeyAccessDeniedException +// An encryption key could not be accessed. +// +// * EncryptionKeyDisabledException +// The encryption key is disabled. +// +// * EncryptionKeyNotFoundException +// No encryption key was found. +// +// * EncryptionKeyUnavailableException +// The encryption key is not available. +// func (c *CodeCommit) GetCommit(input *GetCommitInput) (*GetCommitOutput, error) { req, out := c.GetCommitRequest(input) err := req.Send() @@ -325,6 +612,8 @@ const opGetRepository = "GetRepository" // value can be used to capture response data after the request's "Send" method // is called. // +// See GetRepository for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -359,6 +648,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 +657,43 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS CodeCommit's +// API operation GetRepository for usage and error information. +// +// Returned Error Codes: +// * RepositoryNameRequiredException +// A repository name is required but was not specified. +// +// * RepositoryDoesNotExistException +// The specified repository does not exist. +// +// * InvalidRepositoryNameException +// At least one specified repository name is not valid. +// +// This exception only occurs when a specified repository name is not valid. +// Other exceptions occur when a required repository parameter is missing, or +// when a specified repository does not exist. +// +// * EncryptionIntegrityChecksFailedException +// An encryption integrity check failed. +// +// * EncryptionKeyAccessDeniedException +// An encryption key could not be accessed. +// +// * EncryptionKeyDisabledException +// The encryption key is disabled. +// +// * EncryptionKeyNotFoundException +// No encryption key was found. +// +// * EncryptionKeyUnavailableException +// The encryption key is not available. +// func (c *CodeCommit) GetRepository(input *GetRepositoryInput) (*GetRepositoryOutput, error) { req, out := c.GetRepositoryRequest(input) err := req.Send() @@ -379,6 +707,8 @@ const opGetRepositoryTriggers = "GetRepositoryTriggers" // value can be used to capture response data after the request's "Send" method // is called. // +// See GetRepositoryTriggers for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -413,7 +743,46 @@ func (c *CodeCommit) GetRepositoryTriggersRequest(input *GetRepositoryTriggersIn return } +// GetRepositoryTriggers API operation for AWS CodeCommit. +// // Gets information about triggers configured for a repository. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS CodeCommit's +// API operation GetRepositoryTriggers for usage and error information. +// +// Returned Error Codes: +// * RepositoryNameRequiredException +// A repository name is required but was not specified. +// +// * InvalidRepositoryNameException +// At least one specified repository name is not valid. +// +// This exception only occurs when a specified repository name is not valid. +// Other exceptions occur when a required repository parameter is missing, or +// when a specified repository does not exist. +// +// * RepositoryDoesNotExistException +// The specified repository does not exist. +// +// * EncryptionIntegrityChecksFailedException +// An encryption integrity check failed. +// +// * EncryptionKeyAccessDeniedException +// An encryption key could not be accessed. +// +// * EncryptionKeyDisabledException +// The encryption key is disabled. +// +// * EncryptionKeyNotFoundException +// No encryption key was found. +// +// * EncryptionKeyUnavailableException +// The encryption key is not available. +// func (c *CodeCommit) GetRepositoryTriggers(input *GetRepositoryTriggersInput) (*GetRepositoryTriggersOutput, error) { req, out := c.GetRepositoryTriggersRequest(input) err := req.Send() @@ -427,6 +796,8 @@ const opListBranches = "ListBranches" // value can be used to capture response data after the request's "Send" method // is called. // +// See ListBranches for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -467,7 +838,49 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS CodeCommit's +// API operation ListBranches for usage and error information. +// +// Returned Error Codes: +// * RepositoryNameRequiredException +// A repository name is required but was not specified. +// +// * RepositoryDoesNotExistException +// The specified repository does not exist. +// +// * InvalidRepositoryNameException +// At least one specified repository name is not valid. +// +// This exception only occurs when a specified repository name is not valid. +// Other exceptions occur when a required repository parameter is missing, or +// when a specified repository does not exist. +// +// * EncryptionIntegrityChecksFailedException +// An encryption integrity check failed. +// +// * EncryptionKeyAccessDeniedException +// An encryption key could not be accessed. +// +// * EncryptionKeyDisabledException +// The encryption key is disabled. +// +// * EncryptionKeyNotFoundException +// No encryption key was found. +// +// * EncryptionKeyUnavailableException +// The encryption key is not available. +// +// * InvalidContinuationTokenException +// The specified continuation token is not valid. +// func (c *CodeCommit) ListBranches(input *ListBranchesInput) (*ListBranchesOutput, error) { req, out := c.ListBranchesRequest(input) err := req.Send() @@ -506,6 +919,8 @@ const opListRepositories = "ListRepositories" // value can be used to capture response data after the request's "Send" method // is called. // +// See ListRepositories for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -546,7 +961,27 @@ func (c *CodeCommit) ListRepositoriesRequest(input *ListRepositoriesInput) (req return } +// ListRepositories API operation for AWS CodeCommit. +// // Gets information about one or more repositories. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS CodeCommit's +// API operation ListRepositories for usage and error information. +// +// Returned Error Codes: +// * InvalidSortByException +// The specified sort by value is not valid. +// +// * InvalidOrderException +// The specified sort order is not valid. +// +// * InvalidContinuationTokenException +// The specified continuation token is not valid. +// func (c *CodeCommit) ListRepositories(input *ListRepositoriesInput) (*ListRepositoriesOutput, error) { req, out := c.ListRepositoriesRequest(input) err := req.Send() @@ -585,6 +1020,8 @@ const opPutRepositoryTriggers = "PutRepositoryTriggers" // value can be used to capture response data after the request's "Send" method // is called. // +// See PutRepositoryTriggers for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -619,8 +1056,92 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS CodeCommit's +// API operation PutRepositoryTriggers for usage and error information. +// +// Returned Error Codes: +// * RepositoryDoesNotExistException +// The specified repository does not exist. +// +// * RepositoryNameRequiredException +// A repository name is required but was not specified. +// +// * InvalidRepositoryNameException +// At least one specified repository name is not valid. +// +// This exception only occurs when a specified repository name is not valid. +// Other exceptions occur when a required repository parameter is missing, or +// when a specified repository does not exist. +// +// * RepositoryTriggersListRequiredException +// The list of triggers for the repository is required but was not specified. +// +// * MaximumRepositoryTriggersExceededException +// The number of triggers allowed for the repository was exceeded. +// +// * InvalidRepositoryTriggerNameException +// The name of the trigger is not valid. +// +// * InvalidRepositoryTriggerDestinationArnException +// The Amazon Resource Name (ARN) for the trigger is not valid for the specified +// destination. The most common reason for this error is that the ARN does not +// meet the requirements for the service type. +// +// * InvalidRepositoryTriggerRegionException +// The region for the trigger target does not match the region for the repository. +// Triggers must be created in the same region as the target for the trigger. +// +// * InvalidRepositoryTriggerCustomDataException +// The custom data provided for the trigger is not valid. +// +// * MaximumBranchesExceededException +// The number of branches for the trigger was exceeded. +// +// * InvalidRepositoryTriggerBranchNameException +// One or more branch names specified for the trigger is not valid. +// +// * InvalidRepositoryTriggerEventsException +// One or more events specified for the trigger is not valid. Check to make +// sure that all events specified match the requirements for allowed events. +// +// * RepositoryTriggerNameRequiredException +// A name for the trigger is required but was not specified. +// +// * RepositoryTriggerDestinationArnRequiredException +// A destination ARN for the target service for the trigger is required but +// was not specified. +// +// * RepositoryTriggerBranchNameListRequiredException +// At least one branch name is required but was not specified in the trigger +// configuration. +// +// * RepositoryTriggerEventsListRequiredException +// At least one event for the trigger is required but was not specified. +// +// * EncryptionIntegrityChecksFailedException +// An encryption integrity check failed. +// +// * EncryptionKeyAccessDeniedException +// An encryption key could not be accessed. +// +// * EncryptionKeyDisabledException +// The encryption key is disabled. +// +// * EncryptionKeyNotFoundException +// No encryption key was found. +// +// * EncryptionKeyUnavailableException +// The encryption key is not available. +// func (c *CodeCommit) PutRepositoryTriggers(input *PutRepositoryTriggersInput) (*PutRepositoryTriggersOutput, error) { req, out := c.PutRepositoryTriggersRequest(input) err := req.Send() @@ -634,6 +1155,8 @@ const opTestRepositoryTriggers = "TestRepositoryTriggers" // value can be used to capture response data after the request's "Send" method // is called. // +// See TestRepositoryTriggers for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -668,10 +1191,94 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS CodeCommit's +// API operation TestRepositoryTriggers for usage and error information. +// +// Returned Error Codes: +// * RepositoryDoesNotExistException +// The specified repository does not exist. +// +// * RepositoryNameRequiredException +// A repository name is required but was not specified. +// +// * InvalidRepositoryNameException +// At least one specified repository name is not valid. +// +// This exception only occurs when a specified repository name is not valid. +// Other exceptions occur when a required repository parameter is missing, or +// when a specified repository does not exist. +// +// * RepositoryTriggersListRequiredException +// The list of triggers for the repository is required but was not specified. +// +// * MaximumRepositoryTriggersExceededException +// The number of triggers allowed for the repository was exceeded. +// +// * InvalidRepositoryTriggerNameException +// The name of the trigger is not valid. +// +// * InvalidRepositoryTriggerDestinationArnException +// The Amazon Resource Name (ARN) for the trigger is not valid for the specified +// destination. The most common reason for this error is that the ARN does not +// meet the requirements for the service type. +// +// * InvalidRepositoryTriggerRegionException +// The region for the trigger target does not match the region for the repository. +// Triggers must be created in the same region as the target for the trigger. +// +// * InvalidRepositoryTriggerCustomDataException +// The custom data provided for the trigger is not valid. +// +// * MaximumBranchesExceededException +// The number of branches for the trigger was exceeded. +// +// * InvalidRepositoryTriggerBranchNameException +// One or more branch names specified for the trigger is not valid. +// +// * InvalidRepositoryTriggerEventsException +// One or more events specified for the trigger is not valid. Check to make +// sure that all events specified match the requirements for allowed events. +// +// * RepositoryTriggerNameRequiredException +// A name for the trigger is required but was not specified. +// +// * RepositoryTriggerDestinationArnRequiredException +// A destination ARN for the target service for the trigger is required but +// was not specified. +// +// * RepositoryTriggerBranchNameListRequiredException +// At least one branch name is required but was not specified in the trigger +// configuration. +// +// * RepositoryTriggerEventsListRequiredException +// At least one event for the trigger is required but was not specified. +// +// * EncryptionIntegrityChecksFailedException +// An encryption integrity check failed. +// +// * EncryptionKeyAccessDeniedException +// An encryption key could not be accessed. +// +// * EncryptionKeyDisabledException +// The encryption key is disabled. +// +// * EncryptionKeyNotFoundException +// No encryption key was found. +// +// * EncryptionKeyUnavailableException +// The encryption key is not available. +// func (c *CodeCommit) TestRepositoryTriggers(input *TestRepositoryTriggersInput) (*TestRepositoryTriggersOutput, error) { req, out := c.TestRepositoryTriggersRequest(input) err := req.Send() @@ -685,6 +1292,8 @@ const opUpdateDefaultBranch = "UpdateDefaultBranch" // value can be used to capture response data after the request's "Send" method // is called. // +// See UpdateDefaultBranch for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -721,11 +1330,59 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS CodeCommit's +// API operation UpdateDefaultBranch for usage and error information. +// +// Returned Error Codes: +// * RepositoryNameRequiredException +// A repository name is required but was not specified. +// +// * RepositoryDoesNotExistException +// The specified repository does not exist. +// +// * InvalidRepositoryNameException +// At least one specified repository name is not valid. +// +// This exception only occurs when a specified repository name is not valid. +// Other exceptions occur when a required repository parameter is missing, or +// when a specified repository does not exist. +// +// * BranchNameRequiredException +// A branch name is required but was not specified. +// +// * InvalidBranchNameException +// The specified branch name is not valid. +// +// * BranchDoesNotExistException +// The specified branch does not exist. +// +// * EncryptionIntegrityChecksFailedException +// An encryption integrity check failed. +// +// * EncryptionKeyAccessDeniedException +// An encryption key could not be accessed. +// +// * EncryptionKeyDisabledException +// The encryption key is disabled. +// +// * EncryptionKeyNotFoundException +// No encryption key was found. +// +// * EncryptionKeyUnavailableException +// The encryption key is not available. +// func (c *CodeCommit) UpdateDefaultBranch(input *UpdateDefaultBranchInput) (*UpdateDefaultBranchOutput, error) { req, out := c.UpdateDefaultBranchRequest(input) err := req.Send() @@ -739,6 +1396,8 @@ const opUpdateRepositoryDescription = "UpdateRepositoryDescription" // value can be used to capture response data after the request's "Send" method // is called. // +// See UpdateRepositoryDescription for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -775,6 +1434,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 +1443,46 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS CodeCommit's +// API operation UpdateRepositoryDescription for usage and error information. +// +// Returned Error Codes: +// * RepositoryNameRequiredException +// A repository name is required but was not specified. +// +// * RepositoryDoesNotExistException +// The specified repository does not exist. +// +// * InvalidRepositoryNameException +// At least one specified repository name is not valid. +// +// This exception only occurs when a specified repository name is not valid. +// Other exceptions occur when a required repository parameter is missing, or +// when a specified repository does not exist. +// +// * InvalidRepositoryDescriptionException +// The specified repository description is not valid. +// +// * EncryptionIntegrityChecksFailedException +// An encryption integrity check failed. +// +// * EncryptionKeyAccessDeniedException +// An encryption key could not be accessed. +// +// * EncryptionKeyDisabledException +// The encryption key is disabled. +// +// * EncryptionKeyNotFoundException +// No encryption key was found. +// +// * EncryptionKeyUnavailableException +// The encryption key is not available. +// func (c *CodeCommit) UpdateRepositoryDescription(input *UpdateRepositoryDescriptionInput) (*UpdateRepositoryDescriptionOutput, error) { req, out := c.UpdateRepositoryDescriptionRequest(input) err := req.Send() @@ -795,6 +1496,8 @@ const opUpdateRepositoryName = "UpdateRepositoryName" // value can be used to capture response data after the request's "Send" method // is called. // +// See UpdateRepositoryName for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -831,12 +1534,39 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS CodeCommit's +// API operation UpdateRepositoryName for usage and error information. +// +// Returned Error Codes: +// * RepositoryDoesNotExistException +// The specified repository does not exist. +// +// * RepositoryNameExistsException +// The specified repository name already exists. +// +// * RepositoryNameRequiredException +// A repository name is required but was not specified. +// +// * InvalidRepositoryNameException +// At least one specified repository name is not valid. +// +// This exception only occurs when a specified repository name is not valid. +// Other exceptions occur when a required repository parameter is missing, or +// when a specified repository does not exist. +// 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..41136c87472 100644 --- a/service/codedeploy/api.go +++ b/service/codedeploy/api.go @@ -19,6 +19,8 @@ const opAddTagsToOnPremisesInstances = "AddTagsToOnPremisesInstances" // value can be used to capture response data after the request's "Send" method // is called. // +// See AddTagsToOnPremisesInstances for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -55,7 +57,37 @@ func (c *CodeDeploy) AddTagsToOnPremisesInstancesRequest(input *AddTagsToOnPremi return } +// AddTagsToOnPremisesInstances API operation for AWS CodeDeploy. +// // Adds tags to on-premises instances. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS CodeDeploy's +// API operation AddTagsToOnPremisesInstances for usage and error information. +// +// Returned Error Codes: +// * InstanceNameRequiredException +// An on-premises instance name was not specified. +// +// * TagRequiredException +// A tag was not specified. +// +// * InvalidTagException +// The specified tag was specified in an invalid format. +// +// * TagLimitExceededException +// The maximum allowed number of tags was exceeded. +// +// * InstanceLimitExceededException +// The maximum number of allowed on-premises instances in a single call was +// exceeded. +// +// * InstanceNotRegisteredException +// The specified on-premises instance is not registered. +// func (c *CodeDeploy) AddTagsToOnPremisesInstances(input *AddTagsToOnPremisesInstancesInput) (*AddTagsToOnPremisesInstancesOutput, error) { req, out := c.AddTagsToOnPremisesInstancesRequest(input) err := req.Send() @@ -69,6 +101,8 @@ const opBatchGetApplicationRevisions = "BatchGetApplicationRevisions" // value can be used to capture response data after the request's "Send" method // is called. // +// See BatchGetApplicationRevisions for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -103,7 +137,36 @@ func (c *CodeDeploy) BatchGetApplicationRevisionsRequest(input *BatchGetApplicat return } +// BatchGetApplicationRevisions API operation for AWS CodeDeploy. +// // Gets information about one or more application revisions. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS CodeDeploy's +// API operation BatchGetApplicationRevisions for usage and error information. +// +// Returned Error Codes: +// * ApplicationDoesNotExistException +// The application does not exist with the applicable IAM user or AWS account. +// +// * ApplicationNameRequiredException +// The minimum number of required application names was not specified. +// +// * InvalidApplicationNameException +// The application name was specified in an invalid format. +// +// * RevisionRequiredException +// The revision ID was not specified. +// +// * InvalidRevisionException +// The revision was specified in an invalid format. +// +// * BatchLimitExceededException +// The maximum number of names or IDs allowed for this request (100) was exceeded. +// func (c *CodeDeploy) BatchGetApplicationRevisions(input *BatchGetApplicationRevisionsInput) (*BatchGetApplicationRevisionsOutput, error) { req, out := c.BatchGetApplicationRevisionsRequest(input) err := req.Send() @@ -117,6 +180,8 @@ const opBatchGetApplications = "BatchGetApplications" // value can be used to capture response data after the request's "Send" method // is called. // +// See BatchGetApplications for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -151,7 +216,30 @@ func (c *CodeDeploy) BatchGetApplicationsRequest(input *BatchGetApplicationsInpu return } +// BatchGetApplications API operation for AWS CodeDeploy. +// // Gets information about one or more applications. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS CodeDeploy's +// API operation BatchGetApplications for usage and error information. +// +// Returned Error Codes: +// * ApplicationNameRequiredException +// The minimum number of required application names was not specified. +// +// * InvalidApplicationNameException +// The application name was specified in an invalid format. +// +// * ApplicationDoesNotExistException +// The application does not exist with the applicable IAM user or AWS account. +// +// * BatchLimitExceededException +// The maximum number of names or IDs allowed for this request (100) was exceeded. +// func (c *CodeDeploy) BatchGetApplications(input *BatchGetApplicationsInput) (*BatchGetApplicationsOutput, error) { req, out := c.BatchGetApplicationsRequest(input) err := req.Send() @@ -165,6 +253,8 @@ const opBatchGetDeploymentGroups = "BatchGetDeploymentGroups" // value can be used to capture response data after the request's "Send" method // is called. // +// See BatchGetDeploymentGroups for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -199,7 +289,36 @@ func (c *CodeDeploy) BatchGetDeploymentGroupsRequest(input *BatchGetDeploymentGr return } +// BatchGetDeploymentGroups API operation for AWS CodeDeploy. +// // Get information about one or more deployment groups. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS CodeDeploy's +// API operation BatchGetDeploymentGroups for usage and error information. +// +// Returned Error Codes: +// * ApplicationNameRequiredException +// The minimum number of required application names was not specified. +// +// * InvalidApplicationNameException +// The application name was specified in an invalid format. +// +// * ApplicationDoesNotExistException +// The application does not exist with the applicable IAM user or AWS account. +// +// * DeploymentGroupNameRequiredException +// The deployment group name was not specified. +// +// * InvalidDeploymentGroupNameException +// The deployment group name was specified in an invalid format. +// +// * BatchLimitExceededException +// The maximum number of names or IDs allowed for this request (100) was exceeded. +// func (c *CodeDeploy) BatchGetDeploymentGroups(input *BatchGetDeploymentGroupsInput) (*BatchGetDeploymentGroupsOutput, error) { req, out := c.BatchGetDeploymentGroupsRequest(input) err := req.Send() @@ -213,6 +332,8 @@ const opBatchGetDeploymentInstances = "BatchGetDeploymentInstances" // value can be used to capture response data after the request's "Send" method // is called. // +// See BatchGetDeploymentInstances for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -247,8 +368,37 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS CodeDeploy's +// API operation BatchGetDeploymentInstances for usage and error information. +// +// Returned Error Codes: +// * DeploymentIdRequiredException +// At least one deployment ID must be specified. +// +// * DeploymentDoesNotExistException +// The deployment does not exist with the applicable IAM user or AWS account. +// +// * InstanceIdRequiredException +// The instance ID was not specified. +// +// * InvalidDeploymentIdException +// At least one of the deployment IDs was specified in an invalid format. +// +// * InvalidInstanceNameException +// The specified on-premises instance name was specified in an invalid format. +// +// * BatchLimitExceededException +// The maximum number of names or IDs allowed for this request (100) was exceeded. +// func (c *CodeDeploy) BatchGetDeploymentInstances(input *BatchGetDeploymentInstancesInput) (*BatchGetDeploymentInstancesOutput, error) { req, out := c.BatchGetDeploymentInstancesRequest(input) err := req.Send() @@ -262,6 +412,8 @@ const opBatchGetDeployments = "BatchGetDeployments" // value can be used to capture response data after the request's "Send" method // is called. // +// See BatchGetDeployments for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -296,7 +448,27 @@ func (c *CodeDeploy) BatchGetDeploymentsRequest(input *BatchGetDeploymentsInput) return } +// BatchGetDeployments API operation for AWS CodeDeploy. +// // Gets information about one or more deployments. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS CodeDeploy's +// API operation BatchGetDeployments for usage and error information. +// +// Returned Error Codes: +// * DeploymentIdRequiredException +// At least one deployment ID must be specified. +// +// * InvalidDeploymentIdException +// At least one of the deployment IDs was specified in an invalid format. +// +// * BatchLimitExceededException +// The maximum number of names or IDs allowed for this request (100) was exceeded. +// func (c *CodeDeploy) BatchGetDeployments(input *BatchGetDeploymentsInput) (*BatchGetDeploymentsOutput, error) { req, out := c.BatchGetDeploymentsRequest(input) err := req.Send() @@ -310,6 +482,8 @@ const opBatchGetOnPremisesInstances = "BatchGetOnPremisesInstances" // value can be used to capture response data after the request's "Send" method // is called. // +// See BatchGetOnPremisesInstances for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -344,7 +518,27 @@ func (c *CodeDeploy) BatchGetOnPremisesInstancesRequest(input *BatchGetOnPremise return } +// BatchGetOnPremisesInstances API operation for AWS CodeDeploy. +// // Gets information about one or more on-premises instances. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS CodeDeploy's +// API operation BatchGetOnPremisesInstances for usage and error information. +// +// Returned Error Codes: +// * InstanceNameRequiredException +// An on-premises instance name was not specified. +// +// * InvalidInstanceNameException +// The specified on-premises instance name was specified in an invalid format. +// +// * BatchLimitExceededException +// The maximum number of names or IDs allowed for this request (100) was exceeded. +// func (c *CodeDeploy) BatchGetOnPremisesInstances(input *BatchGetOnPremisesInstancesInput) (*BatchGetOnPremisesInstancesOutput, error) { req, out := c.BatchGetOnPremisesInstancesRequest(input) err := req.Send() @@ -358,6 +552,8 @@ const opCreateApplication = "CreateApplication" // value can be used to capture response data after the request's "Send" method // is called. // +// See CreateApplication for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -392,7 +588,31 @@ func (c *CodeDeploy) CreateApplicationRequest(input *CreateApplicationInput) (re return } +// CreateApplication API operation for AWS CodeDeploy. +// // Creates an application. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS CodeDeploy's +// API operation CreateApplication for usage and error information. +// +// Returned Error Codes: +// * ApplicationNameRequiredException +// The minimum number of required application names was not specified. +// +// * InvalidApplicationNameException +// The application name was specified in an invalid format. +// +// * ApplicationAlreadyExistsException +// An application with the specified name already exists with the applicable +// IAM user or AWS account. +// +// * ApplicationLimitExceededException +// More applications were attempted to be created than are allowed. +// func (c *CodeDeploy) CreateApplication(input *CreateApplicationInput) (*CreateApplicationOutput, error) { req, out := c.CreateApplicationRequest(input) err := req.Send() @@ -406,6 +626,8 @@ const opCreateDeployment = "CreateDeployment" // value can be used to capture response data after the request's "Send" method // is called. // +// See CreateDeployment for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -440,7 +662,64 @@ func (c *CodeDeploy) CreateDeploymentRequest(input *CreateDeploymentInput) (req return } +// CreateDeployment API operation for AWS CodeDeploy. +// // Deploys an application revision through the specified deployment group. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS CodeDeploy's +// API operation CreateDeployment for usage and error information. +// +// Returned Error Codes: +// * ApplicationNameRequiredException +// The minimum number of required application names was not specified. +// +// * InvalidApplicationNameException +// The application name was specified in an invalid format. +// +// * ApplicationDoesNotExistException +// The application does not exist with the applicable IAM user or AWS account. +// +// * DeploymentGroupNameRequiredException +// The deployment group name was not specified. +// +// * InvalidDeploymentGroupNameException +// The deployment group name was specified in an invalid format. +// +// * DeploymentGroupDoesNotExistException +// The named deployment group does not exist with the applicable IAM user or +// AWS account. +// +// * RevisionRequiredException +// The revision ID was not specified. +// +// * RevisionDoesNotExistException +// The named revision does not exist with the applicable IAM user or AWS account. +// +// * InvalidRevisionException +// The revision was specified in an invalid format. +// +// * InvalidDeploymentConfigNameException +// The deployment configuration name was specified in an invalid format. +// +// * DeploymentConfigDoesNotExistException +// The deployment configuration does not exist with the applicable IAM user +// or AWS account. +// +// * DescriptionTooLongException +// The description is too long. +// +// * DeploymentLimitExceededException +// The number of allowed deployments was exceeded. +// +// * InvalidAutoRollbackConfigException +// The automatic rollback configuration was specified in an invalid format. +// For example, automatic rollback is enabled but an invalid triggering event +// type or no event types were listed. +// func (c *CodeDeploy) CreateDeployment(input *CreateDeploymentInput) (*CreateDeploymentOutput, error) { req, out := c.CreateDeploymentRequest(input) err := req.Send() @@ -454,6 +733,8 @@ const opCreateDeploymentConfig = "CreateDeploymentConfig" // value can be used to capture response data after the request's "Send" method // is called. // +// See CreateDeploymentConfig for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -488,7 +769,34 @@ func (c *CodeDeploy) CreateDeploymentConfigRequest(input *CreateDeploymentConfig return } +// CreateDeploymentConfig API operation for AWS CodeDeploy. +// // Creates a deployment configuration. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS CodeDeploy's +// API operation CreateDeploymentConfig for usage and error information. +// +// Returned Error Codes: +// * InvalidDeploymentConfigNameException +// The deployment configuration name was specified in an invalid format. +// +// * DeploymentConfigNameRequiredException +// The deployment configuration name was not specified. +// +// * DeploymentConfigAlreadyExistsException +// A deployment configuration with the specified name already exists with the +// applicable IAM user or AWS account. +// +// * InvalidMinimumHealthyHostValueException +// The minimum healthy instance value was specified in an invalid format. +// +// * DeploymentConfigLimitExceededException +// The deployment configurations limit was exceeded. +// func (c *CodeDeploy) CreateDeploymentConfig(input *CreateDeploymentConfigInput) (*CreateDeploymentConfigOutput, error) { req, out := c.CreateDeploymentConfigRequest(input) err := req.Send() @@ -502,6 +810,8 @@ const opCreateDeploymentGroup = "CreateDeploymentGroup" // value can be used to capture response data after the request's "Send" method // is called. // +// See CreateDeploymentGroup for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -536,7 +846,94 @@ func (c *CodeDeploy) CreateDeploymentGroupRequest(input *CreateDeploymentGroupIn return } +// CreateDeploymentGroup API operation for AWS CodeDeploy. +// // Creates a deployment group to which application revisions will be deployed. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS CodeDeploy's +// API operation CreateDeploymentGroup for usage and error information. +// +// Returned Error Codes: +// * ApplicationNameRequiredException +// The minimum number of required application names was not specified. +// +// * InvalidApplicationNameException +// The application name was specified in an invalid format. +// +// * ApplicationDoesNotExistException +// The application does not exist with the applicable IAM user or AWS account. +// +// * DeploymentGroupNameRequiredException +// The deployment group name was not specified. +// +// * InvalidDeploymentGroupNameException +// The deployment group name was specified in an invalid format. +// +// * DeploymentGroupAlreadyExistsException +// A deployment group with the specified name already exists with the applicable +// IAM user or AWS account. +// +// * InvalidEC2TagException +// The tag was specified in an invalid format. +// +// * InvalidTagException +// The specified tag was specified in an invalid format. +// +// * InvalidAutoScalingGroupException +// The Auto Scaling group was specified in an invalid format or does not exist. +// +// * InvalidDeploymentConfigNameException +// The deployment configuration name was specified in an invalid format. +// +// * DeploymentConfigDoesNotExistException +// The deployment configuration does not exist with the applicable IAM user +// or AWS account. +// +// * RoleRequiredException +// The role ID was not specified. +// +// * InvalidRoleException +// The service role ARN was specified in an invalid format. Or, if an Auto Scaling +// group was specified, the specified service role does not grant the appropriate +// permissions to Auto Scaling. +// +// * DeploymentGroupLimitExceededException +// The deployment groups limit was exceeded. +// +// * LifecycleHookLimitExceededException +// The limit for lifecycle hooks was exceeded. +// +// * InvalidTriggerConfigException +// The trigger was specified in an invalid format. +// +// * TriggerTargetsLimitExceededException +// The maximum allowed number of triggers was exceeded. +// +// * InvalidAlarmConfigException +// The format of the alarm configuration is invalid. Possible causes include: +// +// The alarm list is null. +// +// The alarm object is null. +// +// The alarm name is empty or null or exceeds the 255 character limit. +// +// Two alarms with the same name have been specified. +// +// The alarm configuration is enabled but the alarm list is empty. +// +// * AlarmsLimitExceededException +// The maximum number of alarms for a deployment group (10) was exceeded. +// +// * InvalidAutoRollbackConfigException +// The automatic rollback configuration was specified in an invalid format. +// For example, automatic rollback is enabled but an invalid triggering event +// type or no event types were listed. +// func (c *CodeDeploy) CreateDeploymentGroup(input *CreateDeploymentGroupInput) (*CreateDeploymentGroupOutput, error) { req, out := c.CreateDeploymentGroupRequest(input) err := req.Send() @@ -550,6 +947,8 @@ const opDeleteApplication = "DeleteApplication" // value can be used to capture response data after the request's "Send" method // is called. // +// See DeleteApplication for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -586,7 +985,24 @@ func (c *CodeDeploy) DeleteApplicationRequest(input *DeleteApplicationInput) (re return } +// DeleteApplication API operation for AWS CodeDeploy. +// // Deletes an application. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS CodeDeploy's +// API operation DeleteApplication for usage and error information. +// +// Returned Error Codes: +// * ApplicationNameRequiredException +// The minimum number of required application names was not specified. +// +// * InvalidApplicationNameException +// The application name was specified in an invalid format. +// func (c *CodeDeploy) DeleteApplication(input *DeleteApplicationInput) (*DeleteApplicationOutput, error) { req, out := c.DeleteApplicationRequest(input) err := req.Send() @@ -600,6 +1016,8 @@ const opDeleteDeploymentConfig = "DeleteDeploymentConfig" // value can be used to capture response data after the request's "Send" method // is called. // +// See DeleteDeploymentConfig for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -636,10 +1054,33 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS CodeDeploy's +// API operation DeleteDeploymentConfig for usage and error information. +// +// Returned Error Codes: +// * InvalidDeploymentConfigNameException +// The deployment configuration name was specified in an invalid format. +// +// * DeploymentConfigNameRequiredException +// The deployment configuration name was not specified. +// +// * DeploymentConfigInUseException +// The deployment configuration is still in use. +// +// * InvalidOperationException +// An invalid operation was detected. +// func (c *CodeDeploy) DeleteDeploymentConfig(input *DeleteDeploymentConfigInput) (*DeleteDeploymentConfigOutput, error) { req, out := c.DeleteDeploymentConfigRequest(input) err := req.Send() @@ -653,6 +1094,8 @@ const opDeleteDeploymentGroup = "DeleteDeploymentGroup" // value can be used to capture response data after the request's "Send" method // is called. // +// See DeleteDeploymentGroup for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -687,7 +1130,35 @@ func (c *CodeDeploy) DeleteDeploymentGroupRequest(input *DeleteDeploymentGroupIn return } +// DeleteDeploymentGroup API operation for AWS CodeDeploy. +// // Deletes a deployment group. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS CodeDeploy's +// API operation DeleteDeploymentGroup for usage and error information. +// +// Returned Error Codes: +// * ApplicationNameRequiredException +// The minimum number of required application names was not specified. +// +// * InvalidApplicationNameException +// The application name was specified in an invalid format. +// +// * DeploymentGroupNameRequiredException +// The deployment group name was not specified. +// +// * InvalidDeploymentGroupNameException +// The deployment group name was specified in an invalid format. +// +// * InvalidRoleException +// The service role ARN was specified in an invalid format. Or, if an Auto Scaling +// group was specified, the specified service role does not grant the appropriate +// permissions to Auto Scaling. +// func (c *CodeDeploy) DeleteDeploymentGroup(input *DeleteDeploymentGroupInput) (*DeleteDeploymentGroupOutput, error) { req, out := c.DeleteDeploymentGroupRequest(input) err := req.Send() @@ -701,6 +1172,8 @@ const opDeregisterOnPremisesInstance = "DeregisterOnPremisesInstance" // value can be used to capture response data after the request's "Send" method // is called. // +// See DeregisterOnPremisesInstance for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -737,7 +1210,24 @@ func (c *CodeDeploy) DeregisterOnPremisesInstanceRequest(input *DeregisterOnPrem return } +// DeregisterOnPremisesInstance API operation for AWS CodeDeploy. +// // Deregisters an on-premises instance. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS CodeDeploy's +// API operation DeregisterOnPremisesInstance for usage and error information. +// +// Returned Error Codes: +// * InstanceNameRequiredException +// An on-premises instance name was not specified. +// +// * InvalidInstanceNameException +// The specified on-premises instance name was specified in an invalid format. +// func (c *CodeDeploy) DeregisterOnPremisesInstance(input *DeregisterOnPremisesInstanceInput) (*DeregisterOnPremisesInstanceOutput, error) { req, out := c.DeregisterOnPremisesInstanceRequest(input) err := req.Send() @@ -751,6 +1241,8 @@ const opGetApplication = "GetApplication" // value can be used to capture response data after the request's "Send" method // is called. // +// See GetApplication for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -785,7 +1277,27 @@ func (c *CodeDeploy) GetApplicationRequest(input *GetApplicationInput) (req *req return } +// GetApplication API operation for AWS CodeDeploy. +// // Gets information about an application. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS CodeDeploy's +// API operation GetApplication for usage and error information. +// +// Returned Error Codes: +// * ApplicationNameRequiredException +// The minimum number of required application names was not specified. +// +// * InvalidApplicationNameException +// The application name was specified in an invalid format. +// +// * ApplicationDoesNotExistException +// The application does not exist with the applicable IAM user or AWS account. +// func (c *CodeDeploy) GetApplication(input *GetApplicationInput) (*GetApplicationOutput, error) { req, out := c.GetApplicationRequest(input) err := req.Send() @@ -799,6 +1311,8 @@ const opGetApplicationRevision = "GetApplicationRevision" // value can be used to capture response data after the request's "Send" method // is called. // +// See GetApplicationRevision for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -833,7 +1347,36 @@ func (c *CodeDeploy) GetApplicationRevisionRequest(input *GetApplicationRevision return } +// GetApplicationRevision API operation for AWS CodeDeploy. +// // Gets information about an application revision. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS CodeDeploy's +// API operation GetApplicationRevision for usage and error information. +// +// Returned Error Codes: +// * ApplicationDoesNotExistException +// The application does not exist with the applicable IAM user or AWS account. +// +// * ApplicationNameRequiredException +// The minimum number of required application names was not specified. +// +// * InvalidApplicationNameException +// The application name was specified in an invalid format. +// +// * RevisionDoesNotExistException +// The named revision does not exist with the applicable IAM user or AWS account. +// +// * RevisionRequiredException +// The revision ID was not specified. +// +// * InvalidRevisionException +// The revision was specified in an invalid format. +// func (c *CodeDeploy) GetApplicationRevision(input *GetApplicationRevisionInput) (*GetApplicationRevisionOutput, error) { req, out := c.GetApplicationRevisionRequest(input) err := req.Send() @@ -847,6 +1390,8 @@ const opGetDeployment = "GetDeployment" // value can be used to capture response data after the request's "Send" method // is called. // +// See GetDeployment for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -881,7 +1426,27 @@ func (c *CodeDeploy) GetDeploymentRequest(input *GetDeploymentInput) (req *reque return } +// GetDeployment API operation for AWS CodeDeploy. +// // Gets information about a deployment. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS CodeDeploy's +// API operation GetDeployment for usage and error information. +// +// Returned Error Codes: +// * DeploymentIdRequiredException +// At least one deployment ID must be specified. +// +// * InvalidDeploymentIdException +// At least one of the deployment IDs was specified in an invalid format. +// +// * DeploymentDoesNotExistException +// The deployment does not exist with the applicable IAM user or AWS account. +// func (c *CodeDeploy) GetDeployment(input *GetDeploymentInput) (*GetDeploymentOutput, error) { req, out := c.GetDeploymentRequest(input) err := req.Send() @@ -895,6 +1460,8 @@ const opGetDeploymentConfig = "GetDeploymentConfig" // value can be used to capture response data after the request's "Send" method // is called. // +// See GetDeploymentConfig for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -929,7 +1496,28 @@ func (c *CodeDeploy) GetDeploymentConfigRequest(input *GetDeploymentConfigInput) return } +// GetDeploymentConfig API operation for AWS CodeDeploy. +// // Gets information about a deployment configuration. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS CodeDeploy's +// API operation GetDeploymentConfig for usage and error information. +// +// Returned Error Codes: +// * InvalidDeploymentConfigNameException +// The deployment configuration name was specified in an invalid format. +// +// * DeploymentConfigNameRequiredException +// The deployment configuration name was not specified. +// +// * DeploymentConfigDoesNotExistException +// The deployment configuration does not exist with the applicable IAM user +// or AWS account. +// func (c *CodeDeploy) GetDeploymentConfig(input *GetDeploymentConfigInput) (*GetDeploymentConfigOutput, error) { req, out := c.GetDeploymentConfigRequest(input) err := req.Send() @@ -943,6 +1531,8 @@ const opGetDeploymentGroup = "GetDeploymentGroup" // value can be used to capture response data after the request's "Send" method // is called. // +// See GetDeploymentGroup for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -977,7 +1567,37 @@ func (c *CodeDeploy) GetDeploymentGroupRequest(input *GetDeploymentGroupInput) ( return } +// GetDeploymentGroup API operation for AWS CodeDeploy. +// // Gets information about a deployment group. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS CodeDeploy's +// API operation GetDeploymentGroup for usage and error information. +// +// Returned Error Codes: +// * ApplicationNameRequiredException +// The minimum number of required application names was not specified. +// +// * InvalidApplicationNameException +// The application name was specified in an invalid format. +// +// * ApplicationDoesNotExistException +// The application does not exist with the applicable IAM user or AWS account. +// +// * DeploymentGroupNameRequiredException +// The deployment group name was not specified. +// +// * InvalidDeploymentGroupNameException +// The deployment group name was specified in an invalid format. +// +// * DeploymentGroupDoesNotExistException +// The named deployment group does not exist with the applicable IAM user or +// AWS account. +// func (c *CodeDeploy) GetDeploymentGroup(input *GetDeploymentGroupInput) (*GetDeploymentGroupOutput, error) { req, out := c.GetDeploymentGroupRequest(input) err := req.Send() @@ -991,6 +1611,8 @@ const opGetDeploymentInstance = "GetDeploymentInstance" // value can be used to capture response data after the request's "Send" method // is called. // +// See GetDeploymentInstance for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1025,7 +1647,36 @@ func (c *CodeDeploy) GetDeploymentInstanceRequest(input *GetDeploymentInstanceIn return } +// GetDeploymentInstance API operation for AWS CodeDeploy. +// // Gets information about an instance as part of a deployment. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS CodeDeploy's +// API operation GetDeploymentInstance for usage and error information. +// +// Returned Error Codes: +// * DeploymentIdRequiredException +// At least one deployment ID must be specified. +// +// * DeploymentDoesNotExistException +// The deployment does not exist with the applicable IAM user or AWS account. +// +// * InstanceIdRequiredException +// The instance ID was not specified. +// +// * InvalidDeploymentIdException +// At least one of the deployment IDs was specified in an invalid format. +// +// * InstanceDoesNotExistException +// The specified instance does not exist in the deployment group. +// +// * InvalidInstanceNameException +// The specified on-premises instance name was specified in an invalid format. +// func (c *CodeDeploy) GetDeploymentInstance(input *GetDeploymentInstanceInput) (*GetDeploymentInstanceOutput, error) { req, out := c.GetDeploymentInstanceRequest(input) err := req.Send() @@ -1039,6 +1690,8 @@ const opGetOnPremisesInstance = "GetOnPremisesInstance" // value can be used to capture response data after the request's "Send" method // is called. // +// See GetOnPremisesInstance for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1073,7 +1726,27 @@ func (c *CodeDeploy) GetOnPremisesInstanceRequest(input *GetOnPremisesInstanceIn return } +// GetOnPremisesInstance API operation for AWS CodeDeploy. +// // Gets information about an on-premises instance. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS CodeDeploy's +// API operation GetOnPremisesInstance for usage and error information. +// +// Returned Error Codes: +// * InstanceNameRequiredException +// An on-premises instance name was not specified. +// +// * InstanceNotRegisteredException +// The specified on-premises instance is not registered. +// +// * InvalidInstanceNameException +// The specified on-premises instance name was specified in an invalid format. +// func (c *CodeDeploy) GetOnPremisesInstance(input *GetOnPremisesInstanceInput) (*GetOnPremisesInstanceOutput, error) { req, out := c.GetOnPremisesInstanceRequest(input) err := req.Send() @@ -1087,6 +1760,8 @@ const opListApplicationRevisions = "ListApplicationRevisions" // value can be used to capture response data after the request's "Send" method // is called. // +// See ListApplicationRevisions for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1127,7 +1802,49 @@ func (c *CodeDeploy) ListApplicationRevisionsRequest(input *ListApplicationRevis return } +// ListApplicationRevisions API operation for AWS CodeDeploy. +// // Lists information about revisions for an application. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS CodeDeploy's +// API operation ListApplicationRevisions for usage and error information. +// +// Returned Error Codes: +// * ApplicationDoesNotExistException +// The application does not exist with the applicable IAM user or AWS account. +// +// * ApplicationNameRequiredException +// The minimum number of required application names was not specified. +// +// * InvalidApplicationNameException +// The application name was specified in an invalid format. +// +// * InvalidSortByException +// The column name to sort by is either not present or was specified in an invalid +// format. +// +// * InvalidSortOrderException +// The sort order was specified in an invalid format. +// +// * InvalidBucketNameFilterException +// The bucket name either doesn't exist or was specified in an invalid format. +// +// * InvalidKeyPrefixFilterException +// The specified key prefix filter was specified in an invalid format. +// +// * BucketNameFilterRequiredException +// A bucket name is required, but was not provided. +// +// * InvalidDeployedStateFilterException +// The deployed state filter was specified in an invalid format. +// +// * InvalidNextTokenException +// The next token was specified in an invalid format. +// func (c *CodeDeploy) ListApplicationRevisions(input *ListApplicationRevisionsInput) (*ListApplicationRevisionsOutput, error) { req, out := c.ListApplicationRevisionsRequest(input) err := req.Send() @@ -1166,6 +1883,8 @@ const opListApplications = "ListApplications" // value can be used to capture response data after the request's "Send" method // is called. // +// See ListApplications for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1206,7 +1925,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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS CodeDeploy's +// API operation ListApplications for usage and error information. +// +// Returned Error Codes: +// * InvalidNextTokenException +// The next token was specified in an invalid format. +// func (c *CodeDeploy) ListApplications(input *ListApplicationsInput) (*ListApplicationsOutput, error) { req, out := c.ListApplicationsRequest(input) err := req.Send() @@ -1245,6 +1978,8 @@ const opListDeploymentConfigs = "ListDeploymentConfigs" // value can be used to capture response data after the request's "Send" method // is called. // +// See ListDeploymentConfigs for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1285,7 +2020,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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS CodeDeploy's +// API operation ListDeploymentConfigs for usage and error information. +// +// Returned Error Codes: +// * InvalidNextTokenException +// The next token was specified in an invalid format. +// func (c *CodeDeploy) ListDeploymentConfigs(input *ListDeploymentConfigsInput) (*ListDeploymentConfigsOutput, error) { req, out := c.ListDeploymentConfigsRequest(input) err := req.Send() @@ -1324,6 +2073,8 @@ const opListDeploymentGroups = "ListDeploymentGroups" // value can be used to capture response data after the request's "Send" method // is called. // +// See ListDeploymentGroups for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1364,8 +2115,31 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS CodeDeploy's +// API operation ListDeploymentGroups for usage and error information. +// +// Returned Error Codes: +// * ApplicationNameRequiredException +// The minimum number of required application names was not specified. +// +// * InvalidApplicationNameException +// The application name was specified in an invalid format. +// +// * ApplicationDoesNotExistException +// The application does not exist with the applicable IAM user or AWS account. +// +// * InvalidNextTokenException +// The next token was specified in an invalid format. +// func (c *CodeDeploy) ListDeploymentGroups(input *ListDeploymentGroupsInput) (*ListDeploymentGroupsOutput, error) { req, out := c.ListDeploymentGroupsRequest(input) err := req.Send() @@ -1404,6 +2178,8 @@ const opListDeploymentInstances = "ListDeploymentInstances" // value can be used to capture response data after the request's "Send" method // is called. // +// See ListDeploymentInstances for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1444,8 +2220,37 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS CodeDeploy's +// API operation ListDeploymentInstances for usage and error information. +// +// Returned Error Codes: +// * DeploymentIdRequiredException +// At least one deployment ID must be specified. +// +// * DeploymentDoesNotExistException +// The deployment does not exist with the applicable IAM user or AWS account. +// +// * DeploymentNotStartedException +// The specified deployment has not started. +// +// * InvalidNextTokenException +// The next token was specified in an invalid format. +// +// * InvalidDeploymentIdException +// At least one of the deployment IDs was specified in an invalid format. +// +// * InvalidInstanceStatusException +// The specified instance status does not exist. +// func (c *CodeDeploy) ListDeploymentInstances(input *ListDeploymentInstancesInput) (*ListDeploymentInstancesOutput, error) { req, out := c.ListDeploymentInstancesRequest(input) err := req.Send() @@ -1484,6 +2289,8 @@ const opListDeployments = "ListDeployments" // value can be used to capture response data after the request's "Send" method // is called. // +// See ListDeployments for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1524,8 +2331,47 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS CodeDeploy's +// API operation ListDeployments for usage and error information. +// +// Returned Error Codes: +// * ApplicationNameRequiredException +// The minimum number of required application names was not specified. +// +// * InvalidApplicationNameException +// The application name was specified in an invalid format. +// +// * ApplicationDoesNotExistException +// The application does not exist with the applicable IAM user or AWS account. +// +// * InvalidDeploymentGroupNameException +// The deployment group name was specified in an invalid format. +// +// * DeploymentGroupDoesNotExistException +// The named deployment group does not exist with the applicable IAM user or +// AWS account. +// +// * DeploymentGroupNameRequiredException +// The deployment group name was not specified. +// +// * InvalidTimeRangeException +// The specified time range was specified in an invalid format. +// +// * InvalidDeploymentStatusException +// The specified deployment status doesn't exist or cannot be determined. +// +// * InvalidNextTokenException +// The next token was specified in an invalid format. +// func (c *CodeDeploy) ListDeployments(input *ListDeploymentsInput) (*ListDeploymentsOutput, error) { req, out := c.ListDeploymentsRequest(input) err := req.Send() @@ -1564,6 +2410,8 @@ const opListOnPremisesInstances = "ListOnPremisesInstances" // value can be used to capture response data after the request's "Send" method // is called. // +// See ListOnPremisesInstances for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1598,11 +2446,31 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS CodeDeploy's +// API operation ListOnPremisesInstances for usage and error information. +// +// Returned Error Codes: +// * InvalidRegistrationStatusException +// The registration status was specified in an invalid format. +// +// * InvalidTagFilterException +// The specified tag filter was specified in an invalid format. +// +// * InvalidNextTokenException +// The next token was specified in an invalid format. +// func (c *CodeDeploy) ListOnPremisesInstances(input *ListOnPremisesInstancesInput) (*ListOnPremisesInstancesOutput, error) { req, out := c.ListOnPremisesInstancesRequest(input) err := req.Send() @@ -1616,6 +2484,8 @@ const opRegisterApplicationRevision = "RegisterApplicationRevision" // value can be used to capture response data after the request's "Send" method // is called. // +// See RegisterApplicationRevision for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1652,7 +2522,36 @@ func (c *CodeDeploy) RegisterApplicationRevisionRequest(input *RegisterApplicati return } +// RegisterApplicationRevision API operation for AWS CodeDeploy. +// // Registers with AWS CodeDeploy a revision for the specified application. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS CodeDeploy's +// API operation RegisterApplicationRevision for usage and error information. +// +// Returned Error Codes: +// * ApplicationDoesNotExistException +// The application does not exist with the applicable IAM user or AWS account. +// +// * ApplicationNameRequiredException +// The minimum number of required application names was not specified. +// +// * InvalidApplicationNameException +// The application name was specified in an invalid format. +// +// * DescriptionTooLongException +// The description is too long. +// +// * RevisionRequiredException +// The revision ID was not specified. +// +// * InvalidRevisionException +// The revision was specified in an invalid format. +// func (c *CodeDeploy) RegisterApplicationRevision(input *RegisterApplicationRevisionInput) (*RegisterApplicationRevisionOutput, error) { req, out := c.RegisterApplicationRevisionRequest(input) err := req.Send() @@ -1666,6 +2565,8 @@ const opRegisterOnPremisesInstance = "RegisterOnPremisesInstance" // value can be used to capture response data after the request's "Send" method // is called. // +// See RegisterOnPremisesInstance for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1702,7 +2603,36 @@ func (c *CodeDeploy) RegisterOnPremisesInstanceRequest(input *RegisterOnPremises return } +// RegisterOnPremisesInstance API operation for AWS CodeDeploy. +// // Registers an on-premises instance. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS CodeDeploy's +// API operation RegisterOnPremisesInstance for usage and error information. +// +// Returned Error Codes: +// * InstanceNameAlreadyRegisteredException +// The specified on-premises instance name is already registered. +// +// * IamUserArnAlreadyRegisteredException +// The specified IAM user ARN is already registered with an on-premises instance. +// +// * InstanceNameRequiredException +// An on-premises instance name was not specified. +// +// * IamUserArnRequiredException +// An IAM user ARN was not specified. +// +// * InvalidInstanceNameException +// The specified on-premises instance name was specified in an invalid format. +// +// * InvalidIamUserArnException +// The IAM user ARN was specified in an invalid format. +// func (c *CodeDeploy) RegisterOnPremisesInstance(input *RegisterOnPremisesInstanceInput) (*RegisterOnPremisesInstanceOutput, error) { req, out := c.RegisterOnPremisesInstanceRequest(input) err := req.Send() @@ -1716,6 +2646,8 @@ const opRemoveTagsFromOnPremisesInstances = "RemoveTagsFromOnPremisesInstances" // value can be used to capture response data after the request's "Send" method // is called. // +// See RemoveTagsFromOnPremisesInstances for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1752,7 +2684,37 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS CodeDeploy's +// API operation RemoveTagsFromOnPremisesInstances for usage and error information. +// +// Returned Error Codes: +// * InstanceNameRequiredException +// An on-premises instance name was not specified. +// +// * TagRequiredException +// A tag was not specified. +// +// * InvalidTagException +// The specified tag was specified in an invalid format. +// +// * TagLimitExceededException +// The maximum allowed number of tags was exceeded. +// +// * InstanceLimitExceededException +// The maximum number of allowed on-premises instances in a single call was +// exceeded. +// +// * InstanceNotRegisteredException +// The specified on-premises instance is not registered. +// func (c *CodeDeploy) RemoveTagsFromOnPremisesInstances(input *RemoveTagsFromOnPremisesInstancesInput) (*RemoveTagsFromOnPremisesInstancesOutput, error) { req, out := c.RemoveTagsFromOnPremisesInstancesRequest(input) err := req.Send() @@ -1766,6 +2728,8 @@ const opStopDeployment = "StopDeployment" // value can be used to capture response data after the request's "Send" method // is called. // +// See StopDeployment for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1800,7 +2764,30 @@ func (c *CodeDeploy) StopDeploymentRequest(input *StopDeploymentInput) (req *req return } +// StopDeployment API operation for AWS CodeDeploy. +// // Attempts to stop an ongoing deployment. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS CodeDeploy's +// API operation StopDeployment for usage and error information. +// +// Returned Error Codes: +// * DeploymentIdRequiredException +// At least one deployment ID must be specified. +// +// * DeploymentDoesNotExistException +// The deployment does not exist with the applicable IAM user or AWS account. +// +// * DeploymentAlreadyCompletedException +// The deployment is already complete. +// +// * InvalidDeploymentIdException +// At least one of the deployment IDs was specified in an invalid format. +// func (c *CodeDeploy) StopDeployment(input *StopDeploymentInput) (*StopDeploymentOutput, error) { req, out := c.StopDeploymentRequest(input) err := req.Send() @@ -1814,6 +2801,8 @@ const opUpdateApplication = "UpdateApplication" // value can be used to capture response data after the request's "Send" method // is called. // +// See UpdateApplication for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1850,7 +2839,31 @@ func (c *CodeDeploy) UpdateApplicationRequest(input *UpdateApplicationInput) (re return } +// UpdateApplication API operation for AWS CodeDeploy. +// // Changes the name of an application. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS CodeDeploy's +// API operation UpdateApplication for usage and error information. +// +// Returned Error Codes: +// * ApplicationNameRequiredException +// The minimum number of required application names was not specified. +// +// * InvalidApplicationNameException +// The application name was specified in an invalid format. +// +// * ApplicationAlreadyExistsException +// An application with the specified name already exists with the applicable +// IAM user or AWS account. +// +// * ApplicationDoesNotExistException +// The application does not exist with the applicable IAM user or AWS account. +// func (c *CodeDeploy) UpdateApplication(input *UpdateApplicationInput) (*UpdateApplicationOutput, error) { req, out := c.UpdateApplicationRequest(input) err := req.Send() @@ -1864,6 +2877,8 @@ const opUpdateDeploymentGroup = "UpdateDeploymentGroup" // value can be used to capture response data after the request's "Send" method // is called. // +// See UpdateDeploymentGroup for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1898,7 +2913,92 @@ func (c *CodeDeploy) UpdateDeploymentGroupRequest(input *UpdateDeploymentGroupIn return } +// UpdateDeploymentGroup API operation for AWS CodeDeploy. +// // Changes information about a deployment group. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS CodeDeploy's +// API operation UpdateDeploymentGroup for usage and error information. +// +// Returned Error Codes: +// * ApplicationNameRequiredException +// The minimum number of required application names was not specified. +// +// * InvalidApplicationNameException +// The application name was specified in an invalid format. +// +// * ApplicationDoesNotExistException +// The application does not exist with the applicable IAM user or AWS account. +// +// * InvalidDeploymentGroupNameException +// The deployment group name was specified in an invalid format. +// +// * DeploymentGroupAlreadyExistsException +// A deployment group with the specified name already exists with the applicable +// IAM user or AWS account. +// +// * DeploymentGroupNameRequiredException +// The deployment group name was not specified. +// +// * DeploymentGroupDoesNotExistException +// The named deployment group does not exist with the applicable IAM user or +// AWS account. +// +// * InvalidEC2TagException +// The tag was specified in an invalid format. +// +// * InvalidTagException +// The specified tag was specified in an invalid format. +// +// * InvalidAutoScalingGroupException +// The Auto Scaling group was specified in an invalid format or does not exist. +// +// * InvalidDeploymentConfigNameException +// The deployment configuration name was specified in an invalid format. +// +// * DeploymentConfigDoesNotExistException +// The deployment configuration does not exist with the applicable IAM user +// or AWS account. +// +// * InvalidRoleException +// The service role ARN was specified in an invalid format. Or, if an Auto Scaling +// group was specified, the specified service role does not grant the appropriate +// permissions to Auto Scaling. +// +// * LifecycleHookLimitExceededException +// The limit for lifecycle hooks was exceeded. +// +// * InvalidTriggerConfigException +// The trigger was specified in an invalid format. +// +// * TriggerTargetsLimitExceededException +// The maximum allowed number of triggers was exceeded. +// +// * InvalidAlarmConfigException +// The format of the alarm configuration is invalid. Possible causes include: +// +// The alarm list is null. +// +// The alarm object is null. +// +// The alarm name is empty or null or exceeds the 255 character limit. +// +// Two alarms with the same name have been specified. +// +// The alarm configuration is enabled but the alarm list is empty. +// +// * AlarmsLimitExceededException +// The maximum number of alarms for a deployment group (10) was exceeded. +// +// * InvalidAutoRollbackConfigException +// The automatic rollback configuration was specified in an invalid format. +// For example, automatic rollback is enabled but an invalid triggering event +// type or no event types were listed. +// 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..68023f39fd1 100644 --- a/service/codepipeline/api.go +++ b/service/codepipeline/api.go @@ -20,6 +20,8 @@ const opAcknowledgeJob = "AcknowledgeJob" // value can be used to capture response data after the request's "Send" method // is called. // +// See AcknowledgeJob for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -54,8 +56,28 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS CodePipeline's +// API operation AcknowledgeJob for usage and error information. +// +// Returned Error Codes: +// * ValidationException +// The validation was specified in an invalid format. +// +// * InvalidNonceException +// The specified nonce was specified in an invalid format. +// +// * JobNotFoundException +// The specified job was specified in an invalid format or cannot be found. +// func (c *CodePipeline) AcknowledgeJob(input *AcknowledgeJobInput) (*AcknowledgeJobOutput, error) { req, out := c.AcknowledgeJobRequest(input) err := req.Send() @@ -69,6 +91,8 @@ const opAcknowledgeThirdPartyJob = "AcknowledgeThirdPartyJob" // value can be used to capture response data after the request's "Send" method // is called. // +// See AcknowledgeThirdPartyJob for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -103,8 +127,31 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS CodePipeline's +// API operation AcknowledgeThirdPartyJob for usage and error information. +// +// Returned Error Codes: +// * ValidationException +// The validation was specified in an invalid format. +// +// * InvalidNonceException +// The specified nonce was specified in an invalid format. +// +// * JobNotFoundException +// The specified job was specified in an invalid format or cannot be found. +// +// * InvalidClientTokenException +// The client token was specified in an invalid format +// func (c *CodePipeline) AcknowledgeThirdPartyJob(input *AcknowledgeThirdPartyJobInput) (*AcknowledgeThirdPartyJobOutput, error) { req, out := c.AcknowledgeThirdPartyJobRequest(input) err := req.Send() @@ -118,6 +165,8 @@ const opCreateCustomActionType = "CreateCustomActionType" // value can be used to capture response data after the request's "Send" method // is called. // +// See CreateCustomActionType for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -152,8 +201,26 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS CodePipeline's +// API operation CreateCustomActionType for usage and error information. +// +// Returned Error Codes: +// * ValidationException +// The validation was specified in an invalid format. +// +// * LimitExceededException +// The number of pipelines associated with the AWS account has exceeded the +// limit allowed for the account. +// func (c *CodePipeline) CreateCustomActionType(input *CreateCustomActionTypeInput) (*CreateCustomActionTypeOutput, error) { req, out := c.CreateCustomActionTypeRequest(input) err := req.Send() @@ -167,6 +234,8 @@ const opCreatePipeline = "CreatePipeline" // value can be used to capture response data after the request's "Send" method // is called. // +// See CreatePipeline for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -201,7 +270,40 @@ func (c *CodePipeline) CreatePipelineRequest(input *CreatePipelineInput) (req *r return } +// CreatePipeline API operation for AWS CodePipeline. +// // Creates a pipeline. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS CodePipeline's +// API operation CreatePipeline for usage and error information. +// +// Returned Error Codes: +// * ValidationException +// The validation was specified in an invalid format. +// +// * PipelineNameInUseException +// The specified pipeline name is already in use. +// +// * InvalidStageDeclarationException +// The specified stage declaration was specified in an invalid format. +// +// * InvalidActionDeclarationException +// The specified action declaration was specified in an invalid format. +// +// * InvalidBlockerDeclarationException +// Reserved for future use. +// +// * InvalidStructureException +// The specified structure was specified in an invalid format. +// +// * LimitExceededException +// The number of pipelines associated with the AWS account has exceeded the +// limit allowed for the account. +// func (c *CodePipeline) CreatePipeline(input *CreatePipelineInput) (*CreatePipelineOutput, error) { req, out := c.CreatePipelineRequest(input) err := req.Send() @@ -215,6 +317,8 @@ const opDeleteCustomActionType = "DeleteCustomActionType" // value can be used to capture response data after the request's "Send" method // is called. // +// See DeleteCustomActionType for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -251,11 +355,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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS CodePipeline's +// API operation DeleteCustomActionType for usage and error information. +// +// Returned Error Codes: +// * ValidationException +// The validation was specified in an invalid format. +// func (c *CodePipeline) DeleteCustomActionType(input *DeleteCustomActionTypeInput) (*DeleteCustomActionTypeOutput, error) { req, out := c.DeleteCustomActionTypeRequest(input) err := req.Send() @@ -269,6 +387,8 @@ const opDeletePipeline = "DeletePipeline" // value can be used to capture response data after the request's "Send" method // is called. // +// See DeletePipeline for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -305,7 +425,21 @@ func (c *CodePipeline) DeletePipelineRequest(input *DeletePipelineInput) (req *r return } +// DeletePipeline API operation for AWS CodePipeline. +// // Deletes the specified pipeline. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS CodePipeline's +// API operation DeletePipeline for usage and error information. +// +// Returned Error Codes: +// * ValidationException +// The validation was specified in an invalid format. +// func (c *CodePipeline) DeletePipeline(input *DeletePipelineInput) (*DeletePipelineOutput, error) { req, out := c.DeletePipelineRequest(input) err := req.Send() @@ -319,6 +453,8 @@ const opDisableStageTransition = "DisableStageTransition" // value can be used to capture response data after the request's "Send" method // is called. // +// See DisableStageTransition for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -355,8 +491,28 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS CodePipeline's +// API operation DisableStageTransition for usage and error information. +// +// Returned Error Codes: +// * ValidationException +// The validation was specified in an invalid format. +// +// * PipelineNotFoundException +// The specified pipeline was specified in an invalid format or cannot be found. +// +// * StageNotFoundException +// The specified stage was specified in an invalid format or cannot be found. +// func (c *CodePipeline) DisableStageTransition(input *DisableStageTransitionInput) (*DisableStageTransitionOutput, error) { req, out := c.DisableStageTransitionRequest(input) err := req.Send() @@ -370,6 +526,8 @@ const opEnableStageTransition = "EnableStageTransition" // value can be used to capture response data after the request's "Send" method // is called. // +// See EnableStageTransition for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -406,7 +564,27 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS CodePipeline's +// API operation EnableStageTransition for usage and error information. +// +// Returned Error Codes: +// * ValidationException +// The validation was specified in an invalid format. +// +// * PipelineNotFoundException +// The specified pipeline was specified in an invalid format or cannot be found. +// +// * StageNotFoundException +// The specified stage was specified in an invalid format or cannot be found. +// func (c *CodePipeline) EnableStageTransition(input *EnableStageTransitionInput) (*EnableStageTransitionOutput, error) { req, out := c.EnableStageTransitionRequest(input) err := req.Send() @@ -420,6 +598,8 @@ const opGetJobDetails = "GetJobDetails" // value can be used to capture response data after the request's "Send" method // is called. // +// See GetJobDetails for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -454,12 +634,29 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS CodePipeline's +// API operation GetJobDetails for usage and error information. +// +// Returned Error Codes: +// * ValidationException +// The validation was specified in an invalid format. +// +// * JobNotFoundException +// The specified job was specified in an invalid format or cannot be found. +// func (c *CodePipeline) GetJobDetails(input *GetJobDetailsInput) (*GetJobDetailsOutput, error) { req, out := c.GetJobDetailsRequest(input) err := req.Send() @@ -473,6 +670,8 @@ const opGetPipeline = "GetPipeline" // value can be used to capture response data after the request's "Send" method // is called. // +// See GetPipeline for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -507,9 +706,30 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS CodePipeline's +// API operation GetPipeline for usage and error information. +// +// Returned Error Codes: +// * ValidationException +// The validation was specified in an invalid format. +// +// * PipelineNotFoundException +// The specified pipeline was specified in an invalid format or cannot be found. +// +// * PipelineVersionNotFoundException +// The specified pipeline version was specified in an invalid format or cannot +// be found. +// func (c *CodePipeline) GetPipeline(input *GetPipelineInput) (*GetPipelineOutput, error) { req, out := c.GetPipelineRequest(input) err := req.Send() @@ -523,6 +743,8 @@ const opGetPipelineExecution = "GetPipelineExecution" // value can be used to capture response data after the request's "Send" method // is called. // +// See GetPipelineExecution for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -557,9 +779,30 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS CodePipeline's +// API operation GetPipelineExecution for usage and error information. +// +// Returned Error Codes: +// * ValidationException +// The validation was specified in an invalid format. +// +// * PipelineNotFoundException +// The specified pipeline was specified in an invalid format or cannot be found. +// +// * PipelineExecutionNotFoundException +// The pipeline execution was specified in an invalid format or cannot be found, +// or an execution ID does not belong to the specified pipeline. +// func (c *CodePipeline) GetPipelineExecution(input *GetPipelineExecutionInput) (*GetPipelineExecutionOutput, error) { req, out := c.GetPipelineExecutionRequest(input) err := req.Send() @@ -573,6 +816,8 @@ const opGetPipelineState = "GetPipelineState" // value can be used to capture response data after the request's "Send" method // is called. // +// See GetPipelineState for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -607,8 +852,25 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS CodePipeline's +// API operation GetPipelineState for usage and error information. +// +// Returned Error Codes: +// * ValidationException +// The validation was specified in an invalid format. +// +// * PipelineNotFoundException +// The specified pipeline was specified in an invalid format or cannot be found. +// func (c *CodePipeline) GetPipelineState(input *GetPipelineStateInput) (*GetPipelineStateOutput, error) { req, out := c.GetPipelineStateRequest(input) err := req.Send() @@ -622,6 +884,8 @@ const opGetThirdPartyJobDetails = "GetThirdPartyJobDetails" // value can be used to capture response data after the request's "Send" method // is called. // +// See GetThirdPartyJobDetails for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -656,6 +920,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 +929,27 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS CodePipeline's +// API operation GetThirdPartyJobDetails for usage and error information. +// +// Returned Error Codes: +// * JobNotFoundException +// The specified job was specified in an invalid format or cannot be found. +// +// * ValidationException +// The validation was specified in an invalid format. +// +// * InvalidClientTokenException +// The client token was specified in an invalid format +// +// * InvalidJobException +// The specified job was specified in an invalid format or cannot be found. +// func (c *CodePipeline) GetThirdPartyJobDetails(input *GetThirdPartyJobDetailsInput) (*GetThirdPartyJobDetailsOutput, error) { req, out := c.GetThirdPartyJobDetailsRequest(input) err := req.Send() @@ -676,6 +963,8 @@ const opListActionTypes = "ListActionTypes" // value can be used to capture response data after the request's "Send" method // is called. // +// See ListActionTypes for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -710,8 +999,26 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS CodePipeline's +// API operation ListActionTypes for usage and error information. +// +// Returned Error Codes: +// * ValidationException +// The validation was specified in an invalid format. +// +// * InvalidNextTokenException +// The next token was specified in an invalid format. Make sure that the next +// token you provided is the token returned by a previous call. +// func (c *CodePipeline) ListActionTypes(input *ListActionTypesInput) (*ListActionTypesOutput, error) { req, out := c.ListActionTypesRequest(input) err := req.Send() @@ -725,6 +1032,8 @@ const opListPipelines = "ListPipelines" // value can be used to capture response data after the request's "Send" method // is called. // +// See ListPipelines for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -759,7 +1068,22 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS CodePipeline's +// API operation ListPipelines for usage and error information. +// +// Returned Error Codes: +// * InvalidNextTokenException +// The next token was specified in an invalid format. Make sure that the next +// token you provided is the token returned by a previous call. +// func (c *CodePipeline) ListPipelines(input *ListPipelinesInput) (*ListPipelinesOutput, error) { req, out := c.ListPipelinesRequest(input) err := req.Send() @@ -773,6 +1097,8 @@ const opPollForJobs = "PollForJobs" // value can be used to capture response data after the request's "Send" method // is called. // +// See PollForJobs for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -807,12 +1133,29 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS CodePipeline's +// API operation PollForJobs for usage and error information. +// +// Returned Error Codes: +// * ValidationException +// The validation was specified in an invalid format. +// +// * ActionTypeNotFoundException +// The specified action type cannot be found. +// func (c *CodePipeline) PollForJobs(input *PollForJobsInput) (*PollForJobsOutput, error) { req, out := c.PollForJobsRequest(input) err := req.Send() @@ -826,6 +1169,8 @@ const opPollForThirdPartyJobs = "PollForThirdPartyJobs" // value can be used to capture response data after the request's "Send" method // is called. // +// See PollForThirdPartyJobs for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -860,12 +1205,29 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS CodePipeline's +// API operation PollForThirdPartyJobs for usage and error information. +// +// Returned Error Codes: +// * ActionTypeNotFoundException +// The specified action type cannot be found. +// +// * ValidationException +// The validation was specified in an invalid format. +// func (c *CodePipeline) PollForThirdPartyJobs(input *PollForThirdPartyJobsInput) (*PollForThirdPartyJobsOutput, error) { req, out := c.PollForThirdPartyJobsRequest(input) err := req.Send() @@ -879,6 +1241,8 @@ const opPutActionRevision = "PutActionRevision" // value can be used to capture response data after the request's "Send" method // is called. // +// See PutActionRevision for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -913,7 +1277,30 @@ func (c *CodePipeline) PutActionRevisionRequest(input *PutActionRevisionInput) ( return } +// PutActionRevision API operation for AWS CodePipeline. +// // Provides information to AWS CodePipeline about new revisions to a source. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS CodePipeline's +// API operation PutActionRevision for usage and error information. +// +// Returned Error Codes: +// * PipelineNotFoundException +// The specified pipeline was specified in an invalid format or cannot be found. +// +// * StageNotFoundException +// The specified stage was specified in an invalid format or cannot be found. +// +// * ActionNotFoundException +// The specified action cannot be found. +// +// * ValidationException +// The validation was specified in an invalid format. +// func (c *CodePipeline) PutActionRevision(input *PutActionRevisionInput) (*PutActionRevisionOutput, error) { req, out := c.PutActionRevisionRequest(input) err := req.Send() @@ -927,6 +1314,8 @@ const opPutApprovalResult = "PutApprovalResult" // value can be used to capture response data after the request's "Send" method // is called. // +// See PutApprovalResult for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -961,8 +1350,37 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS CodePipeline's +// API operation PutApprovalResult for usage and error information. +// +// Returned Error Codes: +// * InvalidApprovalTokenException +// The approval request already received a response or has expired. +// +// * ApprovalAlreadyCompletedException +// The approval action has already been approved or rejected. +// +// * PipelineNotFoundException +// The specified pipeline was specified in an invalid format or cannot be found. +// +// * StageNotFoundException +// The specified stage was specified in an invalid format or cannot be found. +// +// * ActionNotFoundException +// The specified action cannot be found. +// +// * ValidationException +// The validation was specified in an invalid format. +// func (c *CodePipeline) PutApprovalResult(input *PutApprovalResultInput) (*PutApprovalResultOutput, error) { req, out := c.PutApprovalResultRequest(input) err := req.Send() @@ -976,6 +1394,8 @@ const opPutJobFailureResult = "PutJobFailureResult" // value can be used to capture response data after the request's "Send" method // is called. // +// See PutJobFailureResult for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1012,8 +1432,28 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS CodePipeline's +// API operation PutJobFailureResult for usage and error information. +// +// Returned Error Codes: +// * ValidationException +// The validation was specified in an invalid format. +// +// * JobNotFoundException +// The specified job was specified in an invalid format or cannot be found. +// +// * InvalidJobStateException +// The specified job state was specified in an invalid format. +// func (c *CodePipeline) PutJobFailureResult(input *PutJobFailureResultInput) (*PutJobFailureResultOutput, error) { req, out := c.PutJobFailureResultRequest(input) err := req.Send() @@ -1027,6 +1467,8 @@ const opPutJobSuccessResult = "PutJobSuccessResult" // value can be used to capture response data after the request's "Send" method // is called. // +// See PutJobSuccessResult for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1063,8 +1505,28 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS CodePipeline's +// API operation PutJobSuccessResult for usage and error information. +// +// Returned Error Codes: +// * ValidationException +// The validation was specified in an invalid format. +// +// * JobNotFoundException +// The specified job was specified in an invalid format or cannot be found. +// +// * InvalidJobStateException +// The specified job state was specified in an invalid format. +// func (c *CodePipeline) PutJobSuccessResult(input *PutJobSuccessResultInput) (*PutJobSuccessResultOutput, error) { req, out := c.PutJobSuccessResultRequest(input) err := req.Send() @@ -1078,6 +1540,8 @@ const opPutThirdPartyJobFailureResult = "PutThirdPartyJobFailureResult" // value can be used to capture response data after the request's "Send" method // is called. // +// See PutThirdPartyJobFailureResult for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1114,8 +1578,31 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS CodePipeline's +// API operation PutThirdPartyJobFailureResult for usage and error information. +// +// Returned Error Codes: +// * ValidationException +// The validation was specified in an invalid format. +// +// * JobNotFoundException +// The specified job was specified in an invalid format or cannot be found. +// +// * InvalidJobStateException +// The specified job state was specified in an invalid format. +// +// * InvalidClientTokenException +// The client token was specified in an invalid format +// func (c *CodePipeline) PutThirdPartyJobFailureResult(input *PutThirdPartyJobFailureResultInput) (*PutThirdPartyJobFailureResultOutput, error) { req, out := c.PutThirdPartyJobFailureResultRequest(input) err := req.Send() @@ -1129,6 +1616,8 @@ const opPutThirdPartyJobSuccessResult = "PutThirdPartyJobSuccessResult" // value can be used to capture response data after the request's "Send" method // is called. // +// See PutThirdPartyJobSuccessResult for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1165,8 +1654,31 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS CodePipeline's +// API operation PutThirdPartyJobSuccessResult for usage and error information. +// +// Returned Error Codes: +// * ValidationException +// The validation was specified in an invalid format. +// +// * JobNotFoundException +// The specified job was specified in an invalid format or cannot be found. +// +// * InvalidJobStateException +// The specified job state was specified in an invalid format. +// +// * InvalidClientTokenException +// The client token was specified in an invalid format +// func (c *CodePipeline) PutThirdPartyJobSuccessResult(input *PutThirdPartyJobSuccessResultInput) (*PutThirdPartyJobSuccessResultOutput, error) { req, out := c.PutThirdPartyJobSuccessResultRequest(input) err := req.Send() @@ -1180,6 +1692,8 @@ const opRetryStageExecution = "RetryStageExecution" // value can be used to capture response data after the request's "Send" method // is called. // +// See RetryStageExecution for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1214,7 +1728,37 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS CodePipeline's +// API operation RetryStageExecution for usage and error information. +// +// Returned Error Codes: +// * ValidationException +// The validation was specified in an invalid format. +// +// * PipelineNotFoundException +// The specified pipeline was specified in an invalid format or cannot be found. +// +// * StageNotFoundException +// The specified stage was specified in an invalid format or cannot be found. +// +// * StageNotRetryableException +// The specified stage can't be retried because the pipeline structure or stage +// state changed after the stage was not completed; the stage contains no failed +// actions; one or more actions are still in progress; or another retry attempt +// is already in progress. +// +// * NotLatestPipelineExecutionException +// The stage has failed in a later run of the pipeline and the pipelineExecutionId +// associated with the request is out of date. +// func (c *CodePipeline) RetryStageExecution(input *RetryStageExecutionInput) (*RetryStageExecutionOutput, error) { req, out := c.RetryStageExecutionRequest(input) err := req.Send() @@ -1228,6 +1772,8 @@ const opStartPipelineExecution = "StartPipelineExecution" // value can be used to capture response data after the request's "Send" method // is called. // +// See StartPipelineExecution for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1262,8 +1808,25 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS CodePipeline's +// API operation StartPipelineExecution for usage and error information. +// +// Returned Error Codes: +// * ValidationException +// The validation was specified in an invalid format. +// +// * PipelineNotFoundException +// The specified pipeline was specified in an invalid format or cannot be found. +// func (c *CodePipeline) StartPipelineExecution(input *StartPipelineExecutionInput) (*StartPipelineExecutionOutput, error) { req, out := c.StartPipelineExecutionRequest(input) err := req.Send() @@ -1277,6 +1840,8 @@ const opUpdatePipeline = "UpdatePipeline" // value can be used to capture response data after the request's "Send" method // is called. // +// See UpdatePipeline for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1311,10 +1876,36 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS CodePipeline's +// API operation UpdatePipeline for usage and error information. +// +// Returned Error Codes: +// * ValidationException +// The validation was specified in an invalid format. +// +// * InvalidStageDeclarationException +// The specified stage declaration was specified in an invalid format. +// +// * InvalidActionDeclarationException +// The specified action declaration was specified in an invalid format. +// +// * InvalidBlockerDeclarationException +// Reserved for future use. +// +// * InvalidStructureException +// The specified structure was specified in an invalid format. +// 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..7fad8bca707 100644 --- a/service/cognitoidentity/api.go +++ b/service/cognitoidentity/api.go @@ -20,6 +20,8 @@ const opCreateIdentityPool = "CreateIdentityPool" // value can be used to capture response data after the request's "Send" method // is called. // +// See CreateIdentityPool for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -54,12 +56,42 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Cognito Identity's +// API operation CreateIdentityPool for usage and error information. +// +// Returned Error Codes: +// * InvalidParameterException +// Thrown for missing or bad input parameter(s). +// +// * NotAuthorizedException +// Thrown when a user is not authorized to access the requested resource. +// +// * ResourceConflictException +// Thrown when a user tries to use a login which is already linked to another +// account. +// +// * TooManyRequestsException +// Thrown when a request is throttled. +// +// * InternalErrorException +// Thrown when the service encounters an error during processing the request. +// +// * LimitExceededException +// Thrown when the total number of user pools has exceeded a preset limit. +// func (c *CognitoIdentity) CreateIdentityPool(input *CreateIdentityPoolInput) (*IdentityPool, error) { req, out := c.CreateIdentityPoolRequest(input) err := req.Send() @@ -73,6 +105,8 @@ const opDeleteIdentities = "DeleteIdentities" // value can be used to capture response data after the request's "Send" method // is called. // +// See DeleteIdentities for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -107,10 +141,30 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Cognito Identity's +// API operation DeleteIdentities for usage and error information. +// +// Returned Error Codes: +// * InvalidParameterException +// Thrown for missing or bad input parameter(s). +// +// * TooManyRequestsException +// Thrown when a request is throttled. +// +// * InternalErrorException +// Thrown when the service encounters an error during processing the request. +// func (c *CognitoIdentity) DeleteIdentities(input *DeleteIdentitiesInput) (*DeleteIdentitiesOutput, error) { req, out := c.DeleteIdentitiesRequest(input) err := req.Send() @@ -124,6 +178,8 @@ const opDeleteIdentityPool = "DeleteIdentityPool" // value can be used to capture response data after the request's "Send" method // is called. // +// See DeleteIdentityPool for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -160,10 +216,37 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Cognito Identity's +// API operation DeleteIdentityPool for usage and error information. +// +// Returned Error Codes: +// * InvalidParameterException +// Thrown for missing or bad input parameter(s). +// +// * ResourceNotFoundException +// Thrown when the requested resource (for example, a dataset or record) does +// not exist. +// +// * NotAuthorizedException +// Thrown when a user is not authorized to access the requested resource. +// +// * TooManyRequestsException +// Thrown when a request is throttled. +// +// * InternalErrorException +// Thrown when the service encounters an error during processing the request. +// func (c *CognitoIdentity) DeleteIdentityPool(input *DeleteIdentityPoolInput) (*DeleteIdentityPoolOutput, error) { req, out := c.DeleteIdentityPoolRequest(input) err := req.Send() @@ -177,6 +260,8 @@ const opDescribeIdentity = "DescribeIdentity" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeIdentity for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -211,10 +296,37 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Cognito Identity's +// API operation DescribeIdentity for usage and error information. +// +// Returned Error Codes: +// * InvalidParameterException +// Thrown for missing or bad input parameter(s). +// +// * ResourceNotFoundException +// Thrown when the requested resource (for example, a dataset or record) does +// not exist. +// +// * NotAuthorizedException +// Thrown when a user is not authorized to access the requested resource. +// +// * TooManyRequestsException +// Thrown when a request is throttled. +// +// * InternalErrorException +// Thrown when the service encounters an error during processing the request. +// func (c *CognitoIdentity) DescribeIdentity(input *DescribeIdentityInput) (*IdentityDescription, error) { req, out := c.DescribeIdentityRequest(input) err := req.Send() @@ -228,6 +340,8 @@ const opDescribeIdentityPool = "DescribeIdentityPool" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeIdentityPool for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -262,10 +376,37 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Cognito Identity's +// API operation DescribeIdentityPool for usage and error information. +// +// Returned Error Codes: +// * InvalidParameterException +// Thrown for missing or bad input parameter(s). +// +// * ResourceNotFoundException +// Thrown when the requested resource (for example, a dataset or record) does +// not exist. +// +// * NotAuthorizedException +// Thrown when a user is not authorized to access the requested resource. +// +// * TooManyRequestsException +// Thrown when a request is throttled. +// +// * InternalErrorException +// Thrown when the service encounters an error during processing the request. +// func (c *CognitoIdentity) DescribeIdentityPool(input *DescribeIdentityPoolInput) (*IdentityPool, error) { req, out := c.DescribeIdentityPoolRequest(input) err := req.Send() @@ -279,6 +420,8 @@ const opGetCredentialsForIdentity = "GetCredentialsForIdentity" // value can be used to capture response data after the request's "Send" method // is called. // +// See GetCredentialsForIdentity for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -313,12 +456,51 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Cognito Identity's +// API operation GetCredentialsForIdentity for usage and error information. +// +// Returned Error Codes: +// * InvalidParameterException +// Thrown for missing or bad input parameter(s). +// +// * ResourceNotFoundException +// Thrown when the requested resource (for example, a dataset or record) does +// not exist. +// +// * NotAuthorizedException +// Thrown when a user is not authorized to access the requested resource. +// +// * ResourceConflictException +// Thrown when a user tries to use a login which is already linked to another +// account. +// +// * TooManyRequestsException +// Thrown when a request is throttled. +// +// * InvalidIdentityPoolConfigurationException +// Thrown if the identity pool has no role associated for the given auth type +// (auth/unauth) or if the AssumeRole fails. +// +// * InternalErrorException +// Thrown when the service encounters an error during processing the request. +// +// * ExternalServiceException +// An exception thrown when a dependent service such as Facebook or Twitter +// is not responding +// func (c *CognitoIdentity) GetCredentialsForIdentity(input *GetCredentialsForIdentityInput) (*GetCredentialsForIdentityOutput, error) { req, out := c.GetCredentialsForIdentityRequest(input) err := req.Send() @@ -332,6 +514,8 @@ const opGetId = "GetId" // value can be used to capture response data after the request's "Send" method // is called. // +// See GetId for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -366,10 +550,48 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Cognito Identity's +// API operation GetId for usage and error information. +// +// Returned Error Codes: +// * InvalidParameterException +// Thrown for missing or bad input parameter(s). +// +// * ResourceNotFoundException +// Thrown when the requested resource (for example, a dataset or record) does +// not exist. +// +// * NotAuthorizedException +// Thrown when a user is not authorized to access the requested resource. +// +// * ResourceConflictException +// Thrown when a user tries to use a login which is already linked to another +// account. +// +// * TooManyRequestsException +// Thrown when a request is throttled. +// +// * InternalErrorException +// Thrown when the service encounters an error during processing the request. +// +// * LimitExceededException +// Thrown when the total number of user pools has exceeded a preset limit. +// +// * ExternalServiceException +// An exception thrown when a dependent service such as Facebook or Twitter +// is not responding +// func (c *CognitoIdentity) GetId(input *GetIdInput) (*GetIdOutput, error) { req, out := c.GetIdRequest(input) err := req.Send() @@ -383,6 +605,8 @@ const opGetIdentityPoolRoles = "GetIdentityPoolRoles" // value can be used to capture response data after the request's "Send" method // is called. // +// See GetIdentityPoolRoles for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -417,9 +641,40 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Cognito Identity's +// API operation GetIdentityPoolRoles for usage and error information. +// +// Returned Error Codes: +// * InvalidParameterException +// Thrown for missing or bad input parameter(s). +// +// * ResourceNotFoundException +// Thrown when the requested resource (for example, a dataset or record) does +// not exist. +// +// * NotAuthorizedException +// Thrown when a user is not authorized to access the requested resource. +// +// * ResourceConflictException +// Thrown when a user tries to use a login which is already linked to another +// account. +// +// * TooManyRequestsException +// Thrown when a request is throttled. +// +// * InternalErrorException +// Thrown when the service encounters an error during processing the request. +// func (c *CognitoIdentity) GetIdentityPoolRoles(input *GetIdentityPoolRolesInput) (*GetIdentityPoolRolesOutput, error) { req, out := c.GetIdentityPoolRolesRequest(input) err := req.Send() @@ -433,6 +688,8 @@ const opGetOpenIdToken = "GetOpenIdToken" // value can be used to capture response data after the request's "Send" method // is called. // +// See GetOpenIdToken for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -467,6 +724,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 +733,39 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Cognito Identity's +// API operation GetOpenIdToken for usage and error information. +// +// Returned Error Codes: +// * InvalidParameterException +// Thrown for missing or bad input parameter(s). +// +// * ResourceNotFoundException +// Thrown when the requested resource (for example, a dataset or record) does +// not exist. +// +// * NotAuthorizedException +// Thrown when a user is not authorized to access the requested resource. +// +// * ResourceConflictException +// Thrown when a user tries to use a login which is already linked to another +// account. +// +// * TooManyRequestsException +// Thrown when a request is throttled. +// +// * InternalErrorException +// Thrown when the service encounters an error during processing the request. +// +// * ExternalServiceException +// An exception thrown when a dependent service such as Facebook or Twitter +// is not responding +// func (c *CognitoIdentity) GetOpenIdToken(input *GetOpenIdTokenInput) (*GetOpenIdTokenOutput, error) { req, out := c.GetOpenIdTokenRequest(input) err := req.Send() @@ -487,6 +779,8 @@ const opGetOpenIdTokenForDeveloperIdentity = "GetOpenIdTokenForDeveloperIdentity // value can be used to capture response data after the request's "Send" method // is called. // +// See GetOpenIdTokenForDeveloperIdentity for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -521,6 +815,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 +833,39 @@ func (c *CognitoIdentity) GetOpenIdTokenForDeveloperIdentityRequest(input *GetOp // in the specified IdentityPoolId. // // You must use AWS Developer credentials to call this API. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Cognito Identity's +// API operation GetOpenIdTokenForDeveloperIdentity for usage and error information. +// +// Returned Error Codes: +// * InvalidParameterException +// Thrown for missing or bad input parameter(s). +// +// * ResourceNotFoundException +// Thrown when the requested resource (for example, a dataset or record) does +// not exist. +// +// * NotAuthorizedException +// Thrown when a user is not authorized to access the requested resource. +// +// * ResourceConflictException +// Thrown when a user tries to use a login which is already linked to another +// account. +// +// * TooManyRequestsException +// Thrown when a request is throttled. +// +// * InternalErrorException +// Thrown when the service encounters an error during processing the request. +// +// * DeveloperUserAlreadyRegisteredException +// The provided developer user identifier is already registered with Cognito +// under a different identity ID. +// func (c *CognitoIdentity) GetOpenIdTokenForDeveloperIdentity(input *GetOpenIdTokenForDeveloperIdentityInput) (*GetOpenIdTokenForDeveloperIdentityOutput, error) { req, out := c.GetOpenIdTokenForDeveloperIdentityRequest(input) err := req.Send() @@ -550,6 +879,8 @@ const opListIdentities = "ListIdentities" // value can be used to capture response data after the request's "Send" method // is called. // +// See ListIdentities for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -584,9 +915,36 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Cognito Identity's +// API operation ListIdentities for usage and error information. +// +// Returned Error Codes: +// * InvalidParameterException +// Thrown for missing or bad input parameter(s). +// +// * ResourceNotFoundException +// Thrown when the requested resource (for example, a dataset or record) does +// not exist. +// +// * NotAuthorizedException +// Thrown when a user is not authorized to access the requested resource. +// +// * TooManyRequestsException +// Thrown when a request is throttled. +// +// * InternalErrorException +// Thrown when the service encounters an error during processing the request. +// func (c *CognitoIdentity) ListIdentities(input *ListIdentitiesInput) (*ListIdentitiesOutput, error) { req, out := c.ListIdentitiesRequest(input) err := req.Send() @@ -600,6 +958,8 @@ const opListIdentityPools = "ListIdentityPools" // value can be used to capture response data after the request's "Send" method // is called. // +// See ListIdentityPools for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -634,9 +994,32 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Cognito Identity's +// API operation ListIdentityPools for usage and error information. +// +// Returned Error Codes: +// * InvalidParameterException +// Thrown for missing or bad input parameter(s). +// +// * NotAuthorizedException +// Thrown when a user is not authorized to access the requested resource. +// +// * TooManyRequestsException +// Thrown when a request is throttled. +// +// * InternalErrorException +// Thrown when the service encounters an error during processing the request. +// func (c *CognitoIdentity) ListIdentityPools(input *ListIdentityPoolsInput) (*ListIdentityPoolsOutput, error) { req, out := c.ListIdentityPoolsRequest(input) err := req.Send() @@ -650,6 +1033,8 @@ const opLookupDeveloperIdentity = "LookupDeveloperIdentity" // value can be used to capture response data after the request's "Send" method // is called. // +// See LookupDeveloperIdentity for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -684,6 +1069,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 +1081,35 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Cognito Identity's +// API operation LookupDeveloperIdentity for usage and error information. +// +// Returned Error Codes: +// * InvalidParameterException +// Thrown for missing or bad input parameter(s). +// +// * ResourceNotFoundException +// Thrown when the requested resource (for example, a dataset or record) does +// not exist. +// +// * NotAuthorizedException +// Thrown when a user is not authorized to access the requested resource. +// +// * ResourceConflictException +// Thrown when a user tries to use a login which is already linked to another +// account. +// +// * TooManyRequestsException +// Thrown when a request is throttled. +// +// * InternalErrorException +// Thrown when the service encounters an error during processing the request. +// func (c *CognitoIdentity) LookupDeveloperIdentity(input *LookupDeveloperIdentityInput) (*LookupDeveloperIdentityOutput, error) { req, out := c.LookupDeveloperIdentityRequest(input) err := req.Send() @@ -707,6 +1123,8 @@ const opMergeDeveloperIdentities = "MergeDeveloperIdentities" // value can be used to capture response data after the request's "Send" method // is called. // +// See MergeDeveloperIdentities for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -741,6 +1159,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 +1170,35 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Cognito Identity's +// API operation MergeDeveloperIdentities for usage and error information. +// +// Returned Error Codes: +// * InvalidParameterException +// Thrown for missing or bad input parameter(s). +// +// * ResourceNotFoundException +// Thrown when the requested resource (for example, a dataset or record) does +// not exist. +// +// * NotAuthorizedException +// Thrown when a user is not authorized to access the requested resource. +// +// * ResourceConflictException +// Thrown when a user tries to use a login which is already linked to another +// account. +// +// * TooManyRequestsException +// Thrown when a request is throttled. +// +// * InternalErrorException +// Thrown when the service encounters an error during processing the request. +// func (c *CognitoIdentity) MergeDeveloperIdentities(input *MergeDeveloperIdentitiesInput) (*MergeDeveloperIdentitiesOutput, error) { req, out := c.MergeDeveloperIdentitiesRequest(input) err := req.Send() @@ -763,6 +1212,8 @@ const opSetIdentityPoolRoles = "SetIdentityPoolRoles" // value can be used to capture response data after the request's "Send" method // is called. // +// See SetIdentityPoolRoles for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -799,10 +1250,44 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Cognito Identity's +// API operation SetIdentityPoolRoles for usage and error information. +// +// Returned Error Codes: +// * InvalidParameterException +// Thrown for missing or bad input parameter(s). +// +// * ResourceNotFoundException +// Thrown when the requested resource (for example, a dataset or record) does +// not exist. +// +// * NotAuthorizedException +// Thrown when a user is not authorized to access the requested resource. +// +// * ResourceConflictException +// Thrown when a user tries to use a login which is already linked to another +// account. +// +// * TooManyRequestsException +// Thrown when a request is throttled. +// +// * InternalErrorException +// Thrown when the service encounters an error during processing the request. +// +// * ConcurrentModificationException +// Thrown if there are parallel requests to modify a resource. +// func (c *CognitoIdentity) SetIdentityPoolRoles(input *SetIdentityPoolRolesInput) (*SetIdentityPoolRolesOutput, error) { req, out := c.SetIdentityPoolRolesRequest(input) err := req.Send() @@ -816,6 +1301,8 @@ const opUnlinkDeveloperIdentity = "UnlinkDeveloperIdentity" // value can be used to capture response data after the request's "Send" method // is called. // +// See UnlinkDeveloperIdentity for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -852,12 +1339,43 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Cognito Identity's +// API operation UnlinkDeveloperIdentity for usage and error information. +// +// Returned Error Codes: +// * InvalidParameterException +// Thrown for missing or bad input parameter(s). +// +// * ResourceNotFoundException +// Thrown when the requested resource (for example, a dataset or record) does +// not exist. +// +// * NotAuthorizedException +// Thrown when a user is not authorized to access the requested resource. +// +// * ResourceConflictException +// Thrown when a user tries to use a login which is already linked to another +// account. +// +// * TooManyRequestsException +// Thrown when a request is throttled. +// +// * InternalErrorException +// Thrown when the service encounters an error during processing the request. +// func (c *CognitoIdentity) UnlinkDeveloperIdentity(input *UnlinkDeveloperIdentityInput) (*UnlinkDeveloperIdentityOutput, error) { req, out := c.UnlinkDeveloperIdentityRequest(input) err := req.Send() @@ -871,6 +1389,8 @@ const opUnlinkIdentity = "UnlinkIdentity" // value can be used to capture response data after the request's "Send" method // is called. // +// See UnlinkIdentity for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -907,11 +1427,46 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Cognito Identity's +// API operation UnlinkIdentity for usage and error information. +// +// Returned Error Codes: +// * InvalidParameterException +// Thrown for missing or bad input parameter(s). +// +// * ResourceNotFoundException +// Thrown when the requested resource (for example, a dataset or record) does +// not exist. +// +// * NotAuthorizedException +// Thrown when a user is not authorized to access the requested resource. +// +// * ResourceConflictException +// Thrown when a user tries to use a login which is already linked to another +// account. +// +// * TooManyRequestsException +// Thrown when a request is throttled. +// +// * InternalErrorException +// Thrown when the service encounters an error during processing the request. +// +// * ExternalServiceException +// An exception thrown when a dependent service such as Facebook or Twitter +// is not responding +// func (c *CognitoIdentity) UnlinkIdentity(input *UnlinkIdentityInput) (*UnlinkIdentityOutput, error) { req, out := c.UnlinkIdentityRequest(input) err := req.Send() @@ -925,6 +1480,8 @@ const opUpdateIdentityPool = "UpdateIdentityPool" // value can be used to capture response data after the request's "Send" method // is called. // +// See UpdateIdentityPool for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -959,9 +1516,46 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Cognito Identity's +// API operation UpdateIdentityPool for usage and error information. +// +// Returned Error Codes: +// * InvalidParameterException +// Thrown for missing or bad input parameter(s). +// +// * ResourceNotFoundException +// Thrown when the requested resource (for example, a dataset or record) does +// not exist. +// +// * NotAuthorizedException +// Thrown when a user is not authorized to access the requested resource. +// +// * ResourceConflictException +// Thrown when a user tries to use a login which is already linked to another +// account. +// +// * TooManyRequestsException +// Thrown when a request is throttled. +// +// * InternalErrorException +// Thrown when the service encounters an error during processing the request. +// +// * ConcurrentModificationException +// Thrown if there are parallel requests to modify a resource. +// +// * LimitExceededException +// Thrown when the total number of user pools has exceeded a preset limit. +// 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..df681d06e66 100644 --- a/service/cognitoidentityprovider/api.go +++ b/service/cognitoidentityprovider/api.go @@ -21,6 +21,8 @@ const opAddCustomAttributes = "AddCustomAttributes" // value can be used to capture response data after the request's "Send" method // is called. // +// See AddCustomAttributes for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -55,7 +57,40 @@ func (c *CognitoIdentityProvider) AddCustomAttributesRequest(input *AddCustomAtt return } +// AddCustomAttributes API operation for Amazon Cognito Identity Provider. +// // Adds additional user attributes to the user pool schema. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Cognito Identity Provider's +// API operation AddCustomAttributes for usage and error information. +// +// Returned Error Codes: +// * ResourceNotFoundException +// This exception is thrown when the Amazon Cognito service cannot find the +// requested resource. +// +// * InvalidParameterException +// This exception is thrown when the Amazon Cognito service encounters an invalid +// parameter. +// +// * TooManyRequestsException +// This exception gets thrown when the user has made too many requests for a +// given operation. +// +// * NotAuthorizedException +// This exception gets thrown when a user is not authorized. +// +// * UserImportInProgressException +// This exception is thrown when you are trying to modify a user pool while +// a user import job is in progress for that pool. +// +// * InternalErrorException +// This exception is thrown when Amazon Cognito encounters an internal error. +// func (c *CognitoIdentityProvider) AddCustomAttributes(input *AddCustomAttributesInput) (*AddCustomAttributesOutput, error) { req, out := c.AddCustomAttributesRequest(input) err := req.Send() @@ -69,6 +104,8 @@ const opAdminConfirmSignUp = "AdminConfirmSignUp" // value can be used to capture response data after the request's "Send" method // is called. // +// See AdminConfirmSignUp for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -103,8 +140,60 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Cognito Identity Provider's +// API operation AdminConfirmSignUp for usage and error information. +// +// Returned Error Codes: +// * ResourceNotFoundException +// This exception is thrown when the Amazon Cognito service cannot find the +// requested resource. +// +// * InvalidParameterException +// This exception is thrown when the Amazon Cognito service encounters an invalid +// parameter. +// +// * UnexpectedLambdaException +// This exception gets thrown when the Amazon Cognito service encounters an +// unexpected exception with the AWS Lambda service. +// +// * UserLambdaValidationException +// This exception gets thrown when the Amazon Cognito service encounters a user +// validation exception with the AWS Lambda service. +// +// * NotAuthorizedException +// This exception gets thrown when a user is not authorized. +// +// * TooManyFailedAttemptsException +// This exception gets thrown when the user has made too many failed attempts +// for a given action (e.g., sign in). +// +// * InvalidLambdaResponseException +// This exception is thrown when the Amazon Cognito service encounters an invalid +// AWS Lambda response. +// +// * TooManyRequestsException +// This exception gets thrown when the user has made too many requests for a +// given operation. +// +// * LimitExceededException +// This exception is thrown when a user exceeds the limit for a requested AWS +// resource. +// +// * UserNotFoundException +// This exception is thrown when a user is not found. +// +// * InternalErrorException +// This exception is thrown when Amazon Cognito encounters an internal error. +// func (c *CognitoIdentityProvider) AdminConfirmSignUp(input *AdminConfirmSignUpInput) (*AdminConfirmSignUpOutput, error) { req, out := c.AdminConfirmSignUpRequest(input) err := req.Send() @@ -118,6 +207,8 @@ const opAdminCreateUser = "AdminCreateUser" // value can be used to capture response data after the request's "Send" method // is called. // +// See AdminCreateUser for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -152,6 +243,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 +252,75 @@ func (c *CognitoIdentityProvider) AdminCreateUserRequest(input *AdminCreateUserI // password. // // Requires developer credentials. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Cognito Identity Provider's +// API operation AdminCreateUser for usage and error information. +// +// Returned Error Codes: +// * ResourceNotFoundException +// This exception is thrown when the Amazon Cognito service cannot find the +// requested resource. +// +// * InvalidParameterException +// This exception is thrown when the Amazon Cognito service encounters an invalid +// parameter. +// +// * UserNotFoundException +// This exception is thrown when a user is not found. +// +// * UsernameExistsException +// This exception is thrown when Amazon Cognito encounters a user name that +// already exists in the user pool. +// +// * InvalidPasswordException +// This exception is thrown when the Amazon Cognito service encounters an invalid +// password. +// +// * CodeDeliveryFailureException +// This exception is thrown when a verification code fails to deliver successfully. +// +// * UnexpectedLambdaException +// This exception gets thrown when the Amazon Cognito service encounters an +// unexpected exception with the AWS Lambda service. +// +// * UserLambdaValidationException +// This exception gets thrown when the Amazon Cognito service encounters a user +// validation exception with the AWS Lambda service. +// +// * InvalidLambdaResponseException +// This exception is thrown when the Amazon Cognito service encounters an invalid +// AWS Lambda response. +// +// * PreconditionNotMetException +// This exception is thrown when a precondition is not met. +// +// * InvalidSmsRoleAccessPolicyException +// This exception is returned when the role provided for SMS configuration does +// not have permission to publish using Amazon SNS. +// +// * InvalidSmsRoleTrustRelationshipException +// This exception is thrown when the trust relationship is invalid for the role +// provided for SMS configuration. This can happen if you do not trust cognito-idp.amazonaws.com +// or the external ID provided in the role does not match what is provided in +// the SMS configuration for the user pool. +// +// * TooManyRequestsException +// This exception gets thrown when the user has made too many requests for a +// given operation. +// +// * NotAuthorizedException +// This exception gets thrown when a user is not authorized. +// +// * UnsupportedUserStateException +// The request failed because the user is in an unsupported state. +// +// * InternalErrorException +// This exception is thrown when Amazon Cognito encounters an internal error. +// func (c *CognitoIdentityProvider) AdminCreateUser(input *AdminCreateUserInput) (*AdminCreateUserOutput, error) { req, out := c.AdminCreateUserRequest(input) err := req.Send() @@ -172,6 +334,8 @@ const opAdminDeleteUser = "AdminDeleteUser" // value can be used to capture response data after the request's "Send" method // is called. // +// See AdminDeleteUser for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -208,7 +372,39 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Cognito Identity Provider's +// API operation AdminDeleteUser for usage and error information. +// +// Returned Error Codes: +// * ResourceNotFoundException +// This exception is thrown when the Amazon Cognito service cannot find the +// requested resource. +// +// * InvalidParameterException +// This exception is thrown when the Amazon Cognito service encounters an invalid +// parameter. +// +// * TooManyRequestsException +// This exception gets thrown when the user has made too many requests for a +// given operation. +// +// * NotAuthorizedException +// This exception gets thrown when a user is not authorized. +// +// * UserNotFoundException +// This exception is thrown when a user is not found. +// +// * InternalErrorException +// This exception is thrown when Amazon Cognito encounters an internal error. +// func (c *CognitoIdentityProvider) AdminDeleteUser(input *AdminDeleteUserInput) (*AdminDeleteUserOutput, error) { req, out := c.AdminDeleteUserRequest(input) err := req.Send() @@ -222,6 +418,8 @@ const opAdminDeleteUserAttributes = "AdminDeleteUserAttributes" // value can be used to capture response data after the request's "Send" method // is called. // +// See AdminDeleteUserAttributes for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -256,8 +454,40 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Cognito Identity Provider's +// API operation AdminDeleteUserAttributes for usage and error information. +// +// Returned Error Codes: +// * ResourceNotFoundException +// This exception is thrown when the Amazon Cognito service cannot find the +// requested resource. +// +// * InvalidParameterException +// This exception is thrown when the Amazon Cognito service encounters an invalid +// parameter. +// +// * TooManyRequestsException +// This exception gets thrown when the user has made too many requests for a +// given operation. +// +// * NotAuthorizedException +// This exception gets thrown when a user is not authorized. +// +// * UserNotFoundException +// This exception is thrown when a user is not found. +// +// * InternalErrorException +// This exception is thrown when Amazon Cognito encounters an internal error. +// func (c *CognitoIdentityProvider) AdminDeleteUserAttributes(input *AdminDeleteUserAttributesInput) (*AdminDeleteUserAttributesOutput, error) { req, out := c.AdminDeleteUserAttributesRequest(input) err := req.Send() @@ -271,6 +501,8 @@ const opAdminDisableUser = "AdminDisableUser" // value can be used to capture response data after the request's "Send" method // is called. // +// See AdminDisableUser for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -305,7 +537,39 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Cognito Identity Provider's +// API operation AdminDisableUser for usage and error information. +// +// Returned Error Codes: +// * ResourceNotFoundException +// This exception is thrown when the Amazon Cognito service cannot find the +// requested resource. +// +// * InvalidParameterException +// This exception is thrown when the Amazon Cognito service encounters an invalid +// parameter. +// +// * TooManyRequestsException +// This exception gets thrown when the user has made too many requests for a +// given operation. +// +// * NotAuthorizedException +// This exception gets thrown when a user is not authorized. +// +// * UserNotFoundException +// This exception is thrown when a user is not found. +// +// * InternalErrorException +// This exception is thrown when Amazon Cognito encounters an internal error. +// func (c *CognitoIdentityProvider) AdminDisableUser(input *AdminDisableUserInput) (*AdminDisableUserOutput, error) { req, out := c.AdminDisableUserRequest(input) err := req.Send() @@ -319,6 +583,8 @@ const opAdminEnableUser = "AdminEnableUser" // value can be used to capture response data after the request's "Send" method // is called. // +// See AdminEnableUser for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -353,7 +619,39 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Cognito Identity Provider's +// API operation AdminEnableUser for usage and error information. +// +// Returned Error Codes: +// * ResourceNotFoundException +// This exception is thrown when the Amazon Cognito service cannot find the +// requested resource. +// +// * InvalidParameterException +// This exception is thrown when the Amazon Cognito service encounters an invalid +// parameter. +// +// * TooManyRequestsException +// This exception gets thrown when the user has made too many requests for a +// given operation. +// +// * NotAuthorizedException +// This exception gets thrown when a user is not authorized. +// +// * UserNotFoundException +// This exception is thrown when a user is not found. +// +// * InternalErrorException +// This exception is thrown when Amazon Cognito encounters an internal error. +// func (c *CognitoIdentityProvider) AdminEnableUser(input *AdminEnableUserInput) (*AdminEnableUserOutput, error) { req, out := c.AdminEnableUserRequest(input) err := req.Send() @@ -367,6 +665,8 @@ const opAdminForgetDevice = "AdminForgetDevice" // value can be used to capture response data after the request's "Send" method // is called. // +// See AdminForgetDevice for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -403,7 +703,42 @@ func (c *CognitoIdentityProvider) AdminForgetDeviceRequest(input *AdminForgetDev return } +// AdminForgetDevice API operation for Amazon Cognito Identity Provider. +// // Forgets the device, as an administrator. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Cognito Identity Provider's +// API operation AdminForgetDevice for usage and error information. +// +// Returned Error Codes: +// * ResourceNotFoundException +// This exception is thrown when the Amazon Cognito service cannot find the +// requested resource. +// +// * InvalidParameterException +// This exception is thrown when the Amazon Cognito service encounters an invalid +// parameter. +// +// * InvalidUserPoolConfigurationException +// This exception is thrown when the user pool configuration is invalid. +// +// * TooManyRequestsException +// This exception gets thrown when the user has made too many requests for a +// given operation. +// +// * NotAuthorizedException +// This exception gets thrown when a user is not authorized. +// +// * UserNotFoundException +// This exception is thrown when a user is not found. +// +// * InternalErrorException +// This exception is thrown when Amazon Cognito encounters an internal error. +// func (c *CognitoIdentityProvider) AdminForgetDevice(input *AdminForgetDeviceInput) (*AdminForgetDeviceOutput, error) { req, out := c.AdminForgetDeviceRequest(input) err := req.Send() @@ -417,6 +752,8 @@ const opAdminGetDevice = "AdminGetDevice" // value can be used to capture response data after the request's "Send" method // is called. // +// See AdminGetDevice for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -451,7 +788,39 @@ func (c *CognitoIdentityProvider) AdminGetDeviceRequest(input *AdminGetDeviceInp return } +// AdminGetDevice API operation for Amazon Cognito Identity Provider. +// // Gets the device, as an administrator. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Cognito Identity Provider's +// API operation AdminGetDevice for usage and error information. +// +// Returned Error Codes: +// * ResourceNotFoundException +// This exception is thrown when the Amazon Cognito service cannot find the +// requested resource. +// +// * InvalidParameterException +// This exception is thrown when the Amazon Cognito service encounters an invalid +// parameter. +// +// * InvalidUserPoolConfigurationException +// This exception is thrown when the user pool configuration is invalid. +// +// * TooManyRequestsException +// This exception gets thrown when the user has made too many requests for a +// given operation. +// +// * InternalErrorException +// This exception is thrown when Amazon Cognito encounters an internal error. +// +// * NotAuthorizedException +// This exception gets thrown when a user is not authorized. +// func (c *CognitoIdentityProvider) AdminGetDevice(input *AdminGetDeviceInput) (*AdminGetDeviceOutput, error) { req, out := c.AdminGetDeviceRequest(input) err := req.Send() @@ -465,6 +834,8 @@ const opAdminGetUser = "AdminGetUser" // value can be used to capture response data after the request's "Send" method // is called. // +// See AdminGetUser for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -499,8 +870,40 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Cognito Identity Provider's +// API operation AdminGetUser for usage and error information. +// +// Returned Error Codes: +// * ResourceNotFoundException +// This exception is thrown when the Amazon Cognito service cannot find the +// requested resource. +// +// * InvalidParameterException +// This exception is thrown when the Amazon Cognito service encounters an invalid +// parameter. +// +// * TooManyRequestsException +// This exception gets thrown when the user has made too many requests for a +// given operation. +// +// * NotAuthorizedException +// This exception gets thrown when a user is not authorized. +// +// * UserNotFoundException +// This exception is thrown when a user is not found. +// +// * InternalErrorException +// This exception is thrown when Amazon Cognito encounters an internal error. +// func (c *CognitoIdentityProvider) AdminGetUser(input *AdminGetUserInput) (*AdminGetUserOutput, error) { req, out := c.AdminGetUserRequest(input) err := req.Send() @@ -514,6 +917,8 @@ const opAdminInitiateAuth = "AdminInitiateAuth" // value can be used to capture response data after the request's "Send" method // is called. // +// See AdminInitiateAuth for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -548,7 +953,74 @@ func (c *CognitoIdentityProvider) AdminInitiateAuthRequest(input *AdminInitiateA return } +// AdminInitiateAuth API operation for Amazon Cognito Identity Provider. +// // Initiates the authentication flow, as an administrator. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Cognito Identity Provider's +// API operation AdminInitiateAuth for usage and error information. +// +// Returned Error Codes: +// * ResourceNotFoundException +// This exception is thrown when the Amazon Cognito service cannot find the +// requested resource. +// +// * InvalidParameterException +// This exception is thrown when the Amazon Cognito service encounters an invalid +// parameter. +// +// * NotAuthorizedException +// This exception gets thrown when a user is not authorized. +// +// * TooManyRequestsException +// This exception gets thrown when the user has made too many requests for a +// given operation. +// +// * InternalErrorException +// This exception is thrown when Amazon Cognito encounters an internal error. +// +// * UnexpectedLambdaException +// This exception gets thrown when the Amazon Cognito service encounters an +// unexpected exception with the AWS Lambda service. +// +// * InvalidUserPoolConfigurationException +// This exception is thrown when the user pool configuration is invalid. +// +// * UserLambdaValidationException +// This exception gets thrown when the Amazon Cognito service encounters a user +// validation exception with the AWS Lambda service. +// +// * InvalidLambdaResponseException +// This exception is thrown when the Amazon Cognito service encounters an invalid +// AWS Lambda response. +// +// * MFAMethodNotFoundException +// This exception is thrown when Amazon Cognito cannot find a multi-factor authentication +// (MFA) method. +// +// * InvalidSmsRoleAccessPolicyException +// This exception is returned when the role provided for SMS configuration does +// not have permission to publish using Amazon SNS. +// +// * InvalidSmsRoleTrustRelationshipException +// This exception is thrown when the trust relationship is invalid for the role +// provided for SMS configuration. This can happen if you do not trust cognito-idp.amazonaws.com +// or the external ID provided in the role does not match what is provided in +// the SMS configuration for the user pool. +// +// * PasswordResetRequiredException +// This exception is thrown when a password reset is required. +// +// * UserNotFoundException +// This exception is thrown when a user is not found. +// +// * UserNotConfirmedException +// This exception is thrown when a user is not confirmed successfully. +// func (c *CognitoIdentityProvider) AdminInitiateAuth(input *AdminInitiateAuthInput) (*AdminInitiateAuthOutput, error) { req, out := c.AdminInitiateAuthRequest(input) err := req.Send() @@ -562,6 +1034,8 @@ const opAdminListDevices = "AdminListDevices" // value can be used to capture response data after the request's "Send" method // is called. // +// See AdminListDevices for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -596,7 +1070,39 @@ func (c *CognitoIdentityProvider) AdminListDevicesRequest(input *AdminListDevice return } +// AdminListDevices API operation for Amazon Cognito Identity Provider. +// // Lists devices, as an administrator. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Cognito Identity Provider's +// API operation AdminListDevices for usage and error information. +// +// Returned Error Codes: +// * InvalidParameterException +// This exception is thrown when the Amazon Cognito service encounters an invalid +// parameter. +// +// * ResourceNotFoundException +// This exception is thrown when the Amazon Cognito service cannot find the +// requested resource. +// +// * InvalidUserPoolConfigurationException +// This exception is thrown when the user pool configuration is invalid. +// +// * TooManyRequestsException +// This exception gets thrown when the user has made too many requests for a +// given operation. +// +// * InternalErrorException +// This exception is thrown when Amazon Cognito encounters an internal error. +// +// * NotAuthorizedException +// This exception gets thrown when a user is not authorized. +// func (c *CognitoIdentityProvider) AdminListDevices(input *AdminListDevicesInput) (*AdminListDevicesOutput, error) { req, out := c.AdminListDevicesRequest(input) err := req.Send() @@ -610,6 +1116,8 @@ const opAdminResetUserPassword = "AdminResetUserPassword" // value can be used to capture response data after the request's "Send" method // is called. // +// See AdminResetUserPassword for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -644,6 +1152,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 +1166,52 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Cognito Identity Provider's +// API operation AdminResetUserPassword for usage and error information. +// +// Returned Error Codes: +// * ResourceNotFoundException +// This exception is thrown when the Amazon Cognito service cannot find the +// requested resource. +// +// * InvalidParameterException +// This exception is thrown when the Amazon Cognito service encounters an invalid +// parameter. +// +// * UnexpectedLambdaException +// This exception gets thrown when the Amazon Cognito service encounters an +// unexpected exception with the AWS Lambda service. +// +// * UserLambdaValidationException +// This exception gets thrown when the Amazon Cognito service encounters a user +// validation exception with the AWS Lambda service. +// +// * NotAuthorizedException +// This exception gets thrown when a user is not authorized. +// +// * InvalidLambdaResponseException +// This exception is thrown when the Amazon Cognito service encounters an invalid +// AWS Lambda response. +// +// * TooManyRequestsException +// This exception gets thrown when the user has made too many requests for a +// given operation. +// +// * LimitExceededException +// This exception is thrown when a user exceeds the limit for a requested AWS +// resource. +// +// * UserNotFoundException +// This exception is thrown when a user is not found. +// +// * InternalErrorException +// This exception is thrown when Amazon Cognito encounters an internal error. +// func (c *CognitoIdentityProvider) AdminResetUserPassword(input *AdminResetUserPasswordInput) (*AdminResetUserPasswordOutput, error) { req, out := c.AdminResetUserPasswordRequest(input) err := req.Send() @@ -669,6 +1225,8 @@ const opAdminRespondToAuthChallenge = "AdminRespondToAuthChallenge" // value can be used to capture response data after the request's "Send" method // is called. // +// See AdminRespondToAuthChallenge for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -703,7 +1261,91 @@ func (c *CognitoIdentityProvider) AdminRespondToAuthChallengeRequest(input *Admi return } +// AdminRespondToAuthChallenge API operation for Amazon Cognito Identity Provider. +// // Responds to an authentication challenge, as an administrator. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Cognito Identity Provider's +// API operation AdminRespondToAuthChallenge for usage and error information. +// +// Returned Error Codes: +// * ResourceNotFoundException +// This exception is thrown when the Amazon Cognito service cannot find the +// requested resource. +// +// * InvalidParameterException +// This exception is thrown when the Amazon Cognito service encounters an invalid +// parameter. +// +// * NotAuthorizedException +// This exception gets thrown when a user is not authorized. +// +// * CodeMismatchException +// This exception is thrown if the provided code does not match what the server +// was expecting. +// +// * ExpiredCodeException +// This exception is thrown if a code has expired. +// +// * UnexpectedLambdaException +// This exception gets thrown when the Amazon Cognito service encounters an +// unexpected exception with the AWS Lambda service. +// +// * InvalidPasswordException +// This exception is thrown when the Amazon Cognito service encounters an invalid +// password. +// +// * UserLambdaValidationException +// This exception gets thrown when the Amazon Cognito service encounters a user +// validation exception with the AWS Lambda service. +// +// * InvalidLambdaResponseException +// This exception is thrown when the Amazon Cognito service encounters an invalid +// AWS Lambda response. +// +// * TooManyRequestsException +// This exception gets thrown when the user has made too many requests for a +// given operation. +// +// * InvalidUserPoolConfigurationException +// This exception is thrown when the user pool configuration is invalid. +// +// * InternalErrorException +// This exception is thrown when Amazon Cognito encounters an internal error. +// +// * MFAMethodNotFoundException +// This exception is thrown when Amazon Cognito cannot find a multi-factor authentication +// (MFA) method. +// +// * InvalidSmsRoleAccessPolicyException +// This exception is returned when the role provided for SMS configuration does +// not have permission to publish using Amazon SNS. +// +// * InvalidSmsRoleTrustRelationshipException +// This exception is thrown when the trust relationship is invalid for the role +// provided for SMS configuration. This can happen if you do not trust cognito-idp.amazonaws.com +// or the external ID provided in the role does not match what is provided in +// the SMS configuration for the user pool. +// +// * AliasExistsException +// This exception is thrown when a user tries to confirm the account with an +// email or phone number that has already been supplied as an alias from a different +// account. This exception tells user that an account with this email or phone +// already exists. +// +// * PasswordResetRequiredException +// This exception is thrown when a password reset is required. +// +// * UserNotFoundException +// This exception is thrown when a user is not found. +// +// * UserNotConfirmedException +// This exception is thrown when a user is not confirmed successfully. +// func (c *CognitoIdentityProvider) AdminRespondToAuthChallenge(input *AdminRespondToAuthChallengeInput) (*AdminRespondToAuthChallengeOutput, error) { req, out := c.AdminRespondToAuthChallengeRequest(input) err := req.Send() @@ -717,6 +1359,8 @@ const opAdminSetUserSettings = "AdminSetUserSettings" // value can be used to capture response data after the request's "Send" method // is called. // +// See AdminSetUserSettings for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -751,7 +1395,35 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Cognito Identity Provider's +// API operation AdminSetUserSettings for usage and error information. +// +// Returned Error Codes: +// * ResourceNotFoundException +// This exception is thrown when the Amazon Cognito service cannot find the +// requested resource. +// +// * InvalidParameterException +// This exception is thrown when the Amazon Cognito service encounters an invalid +// parameter. +// +// * NotAuthorizedException +// This exception gets thrown when a user is not authorized. +// +// * UserNotFoundException +// This exception is thrown when a user is not found. +// +// * InternalErrorException +// This exception is thrown when Amazon Cognito encounters an internal error. +// func (c *CognitoIdentityProvider) AdminSetUserSettings(input *AdminSetUserSettingsInput) (*AdminSetUserSettingsOutput, error) { req, out := c.AdminSetUserSettingsRequest(input) err := req.Send() @@ -765,6 +1437,8 @@ const opAdminUpdateDeviceStatus = "AdminUpdateDeviceStatus" // value can be used to capture response data after the request's "Send" method // is called. // +// See AdminUpdateDeviceStatus for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -799,7 +1473,42 @@ func (c *CognitoIdentityProvider) AdminUpdateDeviceStatusRequest(input *AdminUpd return } +// AdminUpdateDeviceStatus API operation for Amazon Cognito Identity Provider. +// // Updates the device status as an administrator. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Cognito Identity Provider's +// API operation AdminUpdateDeviceStatus for usage and error information. +// +// Returned Error Codes: +// * InvalidParameterException +// This exception is thrown when the Amazon Cognito service encounters an invalid +// parameter. +// +// * ResourceNotFoundException +// This exception is thrown when the Amazon Cognito service cannot find the +// requested resource. +// +// * InvalidUserPoolConfigurationException +// This exception is thrown when the user pool configuration is invalid. +// +// * TooManyRequestsException +// This exception gets thrown when the user has made too many requests for a +// given operation. +// +// * NotAuthorizedException +// This exception gets thrown when a user is not authorized. +// +// * UserNotFoundException +// This exception is thrown when a user is not found. +// +// * InternalErrorException +// This exception is thrown when Amazon Cognito encounters an internal error. +// func (c *CognitoIdentityProvider) AdminUpdateDeviceStatus(input *AdminUpdateDeviceStatusInput) (*AdminUpdateDeviceStatusOutput, error) { req, out := c.AdminUpdateDeviceStatusRequest(input) err := req.Send() @@ -813,6 +1522,8 @@ const opAdminUpdateUserAttributes = "AdminUpdateUserAttributes" // value can be used to capture response data after the request's "Send" method // is called. // +// See AdminUpdateUserAttributes for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -847,8 +1558,58 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Cognito Identity Provider's +// API operation AdminUpdateUserAttributes for usage and error information. +// +// Returned Error Codes: +// * ResourceNotFoundException +// This exception is thrown when the Amazon Cognito service cannot find the +// requested resource. +// +// * InvalidParameterException +// This exception is thrown when the Amazon Cognito service encounters an invalid +// parameter. +// +// * UnexpectedLambdaException +// This exception gets thrown when the Amazon Cognito service encounters an +// unexpected exception with the AWS Lambda service. +// +// * UserLambdaValidationException +// This exception gets thrown when the Amazon Cognito service encounters a user +// validation exception with the AWS Lambda service. +// +// * InvalidLambdaResponseException +// This exception is thrown when the Amazon Cognito service encounters an invalid +// AWS Lambda response. +// +// * AliasExistsException +// This exception is thrown when a user tries to confirm the account with an +// email or phone number that has already been supplied as an alias from a different +// account. This exception tells user that an account with this email or phone +// already exists. +// +// * TooManyRequestsException +// This exception gets thrown when the user has made too many requests for a +// given operation. +// +// * NotAuthorizedException +// This exception gets thrown when a user is not authorized. +// +// * UserNotFoundException +// This exception is thrown when a user is not found. +// +// * InternalErrorException +// This exception is thrown when Amazon Cognito encounters an internal error. +// func (c *CognitoIdentityProvider) AdminUpdateUserAttributes(input *AdminUpdateUserAttributesInput) (*AdminUpdateUserAttributesOutput, error) { req, out := c.AdminUpdateUserAttributesRequest(input) err := req.Send() @@ -862,6 +1623,8 @@ const opAdminUserGlobalSignOut = "AdminUserGlobalSignOut" // value can be used to capture response data after the request's "Send" method // is called. // +// See AdminUserGlobalSignOut for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -896,7 +1659,39 @@ func (c *CognitoIdentityProvider) AdminUserGlobalSignOutRequest(input *AdminUser return } +// AdminUserGlobalSignOut API operation for Amazon Cognito Identity Provider. +// // Signs out users from all devices, as an administrator. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Cognito Identity Provider's +// API operation AdminUserGlobalSignOut for usage and error information. +// +// Returned Error Codes: +// * ResourceNotFoundException +// This exception is thrown when the Amazon Cognito service cannot find the +// requested resource. +// +// * InvalidParameterException +// This exception is thrown when the Amazon Cognito service encounters an invalid +// parameter. +// +// * TooManyRequestsException +// This exception gets thrown when the user has made too many requests for a +// given operation. +// +// * NotAuthorizedException +// This exception gets thrown when a user is not authorized. +// +// * UserNotFoundException +// This exception is thrown when a user is not found. +// +// * InternalErrorException +// This exception is thrown when Amazon Cognito encounters an internal error. +// func (c *CognitoIdentityProvider) AdminUserGlobalSignOut(input *AdminUserGlobalSignOutInput) (*AdminUserGlobalSignOutOutput, error) { req, out := c.AdminUserGlobalSignOutRequest(input) err := req.Send() @@ -910,6 +1705,8 @@ const opChangePassword = "ChangePassword" // value can be used to capture response data after the request's "Send" method // is called. // +// See ChangePassword for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -945,20 +1742,68 @@ 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. -func (c *CognitoIdentityProvider) ChangePassword(input *ChangePasswordInput) (*ChangePasswordOutput, error) { - req, out := c.ChangePasswordRequest(input) - err := req.Send() - return out, err -} - -const opConfirmDevice = "ConfirmDevice" - -// ConfirmDeviceRequest generates a "aws/request.Request" representing the -// client's request for the ConfirmDevice operation. The "output" return +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Cognito Identity Provider's +// API operation ChangePassword for usage and error information. +// +// Returned Error Codes: +// * ResourceNotFoundException +// This exception is thrown when the Amazon Cognito service cannot find the +// requested resource. +// +// * InvalidParameterException +// This exception is thrown when the Amazon Cognito service encounters an invalid +// parameter. +// +// * InvalidPasswordException +// This exception is thrown when the Amazon Cognito service encounters an invalid +// password. +// +// * NotAuthorizedException +// This exception gets thrown when a user is not authorized. +// +// * TooManyRequestsException +// This exception gets thrown when the user has made too many requests for a +// given operation. +// +// * LimitExceededException +// This exception is thrown when a user exceeds the limit for a requested AWS +// resource. +// +// * PasswordResetRequiredException +// This exception is thrown when a password reset is required. +// +// * UserNotFoundException +// This exception is thrown when a user is not found. +// +// * UserNotConfirmedException +// This exception is thrown when a user is not confirmed successfully. +// +// * InternalErrorException +// This exception is thrown when Amazon Cognito encounters an internal error. +// +func (c *CognitoIdentityProvider) ChangePassword(input *ChangePasswordInput) (*ChangePasswordOutput, error) { + req, out := c.ChangePasswordRequest(input) + err := req.Send() + return out, err +} + +const opConfirmDevice = "ConfirmDevice" + +// ConfirmDeviceRequest generates a "aws/request.Request" representing the +// client's request for the ConfirmDevice operation. The "output" return // value can be used to capture response data after the request's "Send" method // is called. // +// See ConfirmDevice for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -993,8 +1838,61 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Cognito Identity Provider's +// API operation ConfirmDevice for usage and error information. +// +// Returned Error Codes: +// * ResourceNotFoundException +// This exception is thrown when the Amazon Cognito service cannot find the +// requested resource. +// +// * InvalidParameterException +// This exception is thrown when the Amazon Cognito service encounters an invalid +// parameter. +// +// * NotAuthorizedException +// This exception gets thrown when a user is not authorized. +// +// * InvalidPasswordException +// This exception is thrown when the Amazon Cognito service encounters an invalid +// password. +// +// * InvalidLambdaResponseException +// This exception is thrown when the Amazon Cognito service encounters an invalid +// AWS Lambda response. +// +// * UsernameExistsException +// This exception is thrown when Amazon Cognito encounters a user name that +// already exists in the user pool. +// +// * InvalidUserPoolConfigurationException +// This exception is thrown when the user pool configuration is invalid. +// +// * TooManyRequestsException +// This exception gets thrown when the user has made too many requests for a +// given operation. +// +// * PasswordResetRequiredException +// This exception is thrown when a password reset is required. +// +// * UserNotFoundException +// This exception is thrown when a user is not found. +// +// * UserNotConfirmedException +// This exception is thrown when a user is not confirmed successfully. +// +// * InternalErrorException +// This exception is thrown when Amazon Cognito encounters an internal error. +// func (c *CognitoIdentityProvider) ConfirmDevice(input *ConfirmDeviceInput) (*ConfirmDeviceOutput, error) { req, out := c.ConfirmDeviceRequest(input) err := req.Send() @@ -1008,6 +1906,8 @@ const opConfirmForgotPassword = "ConfirmForgotPassword" // value can be used to capture response data after the request's "Send" method // is called. // +// See ConfirmForgotPassword for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1043,8 +1943,74 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Cognito Identity Provider's +// API operation ConfirmForgotPassword for usage and error information. +// +// Returned Error Codes: +// * ResourceNotFoundException +// This exception is thrown when the Amazon Cognito service cannot find the +// requested resource. +// +// * UnexpectedLambdaException +// This exception gets thrown when the Amazon Cognito service encounters an +// unexpected exception with the AWS Lambda service. +// +// * UserLambdaValidationException +// This exception gets thrown when the Amazon Cognito service encounters a user +// validation exception with the AWS Lambda service. +// +// * InvalidParameterException +// This exception is thrown when the Amazon Cognito service encounters an invalid +// parameter. +// +// * InvalidPasswordException +// This exception is thrown when the Amazon Cognito service encounters an invalid +// password. +// +// * NotAuthorizedException +// This exception gets thrown when a user is not authorized. +// +// * CodeMismatchException +// This exception is thrown if the provided code does not match what the server +// was expecting. +// +// * ExpiredCodeException +// This exception is thrown if a code has expired. +// +// * TooManyFailedAttemptsException +// This exception gets thrown when the user has made too many failed attempts +// for a given action (e.g., sign in). +// +// * InvalidLambdaResponseException +// This exception is thrown when the Amazon Cognito service encounters an invalid +// AWS Lambda response. +// +// * TooManyRequestsException +// This exception gets thrown when the user has made too many requests for a +// given operation. +// +// * LimitExceededException +// This exception is thrown when a user exceeds the limit for a requested AWS +// resource. +// +// * UserNotFoundException +// This exception is thrown when a user is not found. +// +// * UserNotConfirmedException +// This exception is thrown when a user is not confirmed successfully. +// +// * InternalErrorException +// This exception is thrown when Amazon Cognito encounters an internal error. +// func (c *CognitoIdentityProvider) ConfirmForgotPassword(input *ConfirmForgotPasswordInput) (*ConfirmForgotPasswordOutput, error) { req, out := c.ConfirmForgotPasswordRequest(input) err := req.Send() @@ -1058,6 +2024,8 @@ const opConfirmSignUp = "ConfirmSignUp" // value can be used to capture response data after the request's "Send" method // is called. // +// See ConfirmSignUp for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1093,8 +2061,73 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Cognito Identity Provider's +// API operation ConfirmSignUp for usage and error information. +// +// Returned Error Codes: +// * ResourceNotFoundException +// This exception is thrown when the Amazon Cognito service cannot find the +// requested resource. +// +// * InvalidParameterException +// This exception is thrown when the Amazon Cognito service encounters an invalid +// parameter. +// +// * UnexpectedLambdaException +// This exception gets thrown when the Amazon Cognito service encounters an +// unexpected exception with the AWS Lambda service. +// +// * UserLambdaValidationException +// This exception gets thrown when the Amazon Cognito service encounters a user +// validation exception with the AWS Lambda service. +// +// * NotAuthorizedException +// This exception gets thrown when a user is not authorized. +// +// * TooManyFailedAttemptsException +// This exception gets thrown when the user has made too many failed attempts +// for a given action (e.g., sign in). +// +// * CodeMismatchException +// This exception is thrown if the provided code does not match what the server +// was expecting. +// +// * ExpiredCodeException +// This exception is thrown if a code has expired. +// +// * InvalidLambdaResponseException +// This exception is thrown when the Amazon Cognito service encounters an invalid +// AWS Lambda response. +// +// * AliasExistsException +// This exception is thrown when a user tries to confirm the account with an +// email or phone number that has already been supplied as an alias from a different +// account. This exception tells user that an account with this email or phone +// already exists. +// +// * TooManyRequestsException +// This exception gets thrown when the user has made too many requests for a +// given operation. +// +// * LimitExceededException +// This exception is thrown when a user exceeds the limit for a requested AWS +// resource. +// +// * UserNotFoundException +// This exception is thrown when a user is not found. +// +// * InternalErrorException +// This exception is thrown when Amazon Cognito encounters an internal error. +// func (c *CognitoIdentityProvider) ConfirmSignUp(input *ConfirmSignUpInput) (*ConfirmSignUpOutput, error) { req, out := c.ConfirmSignUpRequest(input) err := req.Send() @@ -1108,6 +2141,8 @@ const opCreateUserImportJob = "CreateUserImportJob" // value can be used to capture response data after the request's "Send" method // is called. // +// See CreateUserImportJob for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1142,7 +2177,43 @@ func (c *CognitoIdentityProvider) CreateUserImportJobRequest(input *CreateUserIm return } +// CreateUserImportJob API operation for Amazon Cognito Identity Provider. +// // Creates the user import job. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Cognito Identity Provider's +// API operation CreateUserImportJob for usage and error information. +// +// Returned Error Codes: +// * ResourceNotFoundException +// This exception is thrown when the Amazon Cognito service cannot find the +// requested resource. +// +// * InvalidParameterException +// This exception is thrown when the Amazon Cognito service encounters an invalid +// parameter. +// +// * TooManyRequestsException +// This exception gets thrown when the user has made too many requests for a +// given operation. +// +// * PreconditionNotMetException +// This exception is thrown when a precondition is not met. +// +// * NotAuthorizedException +// This exception gets thrown when a user is not authorized. +// +// * LimitExceededException +// This exception is thrown when a user exceeds the limit for a requested AWS +// resource. +// +// * InternalErrorException +// This exception is thrown when Amazon Cognito encounters an internal error. +// func (c *CognitoIdentityProvider) CreateUserImportJob(input *CreateUserImportJobInput) (*CreateUserImportJobOutput, error) { req, out := c.CreateUserImportJobRequest(input) err := req.Send() @@ -1156,6 +2227,8 @@ const opCreateUserPool = "CreateUserPool" // value can be used to capture response data after the request's "Send" method // is called. // +// See CreateUserPool for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1190,8 +2263,51 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Cognito Identity Provider's +// API operation CreateUserPool for usage and error information. +// +// Returned Error Codes: +// * InvalidParameterException +// This exception is thrown when the Amazon Cognito service encounters an invalid +// parameter. +// +// * TooManyRequestsException +// This exception gets thrown when the user has made too many requests for a +// given operation. +// +// * LimitExceededException +// This exception is thrown when a user exceeds the limit for a requested AWS +// resource. +// +// * InvalidSmsRoleAccessPolicyException +// This exception is returned when the role provided for SMS configuration does +// not have permission to publish using Amazon SNS. +// +// * InvalidSmsRoleTrustRelationshipException +// This exception is thrown when the trust relationship is invalid for the role +// provided for SMS configuration. This can happen if you do not trust cognito-idp.amazonaws.com +// or the external ID provided in the role does not match what is provided in +// the SMS configuration for the user pool. +// +// * InvalidEmailRoleAccessPolicyException +// This exception is thrown when Amazon Cognito is not allowed to use your email +// identity. HTTP status code: 400. +// +// * NotAuthorizedException +// This exception gets thrown when a user is not authorized. +// +// * InternalErrorException +// This exception is thrown when Amazon Cognito encounters an internal error. +// func (c *CognitoIdentityProvider) CreateUserPool(input *CreateUserPoolInput) (*CreateUserPoolOutput, error) { req, out := c.CreateUserPoolRequest(input) err := req.Send() @@ -1205,6 +2321,8 @@ const opCreateUserPoolClient = "CreateUserPoolClient" // value can be used to capture response data after the request's "Send" method // is called. // +// See CreateUserPoolClient for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1239,7 +2357,40 @@ func (c *CognitoIdentityProvider) CreateUserPoolClientRequest(input *CreateUserP return } +// CreateUserPoolClient API operation for Amazon Cognito Identity Provider. +// // Creates the user pool client. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Cognito Identity Provider's +// API operation CreateUserPoolClient for usage and error information. +// +// Returned Error Codes: +// * InvalidParameterException +// This exception is thrown when the Amazon Cognito service encounters an invalid +// parameter. +// +// * ResourceNotFoundException +// This exception is thrown when the Amazon Cognito service cannot find the +// requested resource. +// +// * TooManyRequestsException +// This exception gets thrown when the user has made too many requests for a +// given operation. +// +// * LimitExceededException +// This exception is thrown when a user exceeds the limit for a requested AWS +// resource. +// +// * NotAuthorizedException +// This exception gets thrown when a user is not authorized. +// +// * InternalErrorException +// This exception is thrown when Amazon Cognito encounters an internal error. +// func (c *CognitoIdentityProvider) CreateUserPoolClient(input *CreateUserPoolClientInput) (*CreateUserPoolClientOutput, error) { req, out := c.CreateUserPoolClientRequest(input) err := req.Send() @@ -1253,6 +2404,8 @@ const opDeleteUser = "DeleteUser" // value can be used to capture response data after the request's "Send" method // is called. // +// See DeleteUser for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1290,7 +2443,45 @@ func (c *CognitoIdentityProvider) DeleteUserRequest(input *DeleteUserInput) (req return } +// DeleteUser API operation for Amazon Cognito Identity Provider. +// // Allows a user to delete one's self. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Cognito Identity Provider's +// API operation DeleteUser for usage and error information. +// +// Returned Error Codes: +// * ResourceNotFoundException +// This exception is thrown when the Amazon Cognito service cannot find the +// requested resource. +// +// * InvalidParameterException +// This exception is thrown when the Amazon Cognito service encounters an invalid +// parameter. +// +// * NotAuthorizedException +// This exception gets thrown when a user is not authorized. +// +// * TooManyRequestsException +// This exception gets thrown when the user has made too many requests for a +// given operation. +// +// * PasswordResetRequiredException +// This exception is thrown when a password reset is required. +// +// * UserNotFoundException +// This exception is thrown when a user is not found. +// +// * UserNotConfirmedException +// This exception is thrown when a user is not confirmed successfully. +// +// * InternalErrorException +// This exception is thrown when Amazon Cognito encounters an internal error. +// func (c *CognitoIdentityProvider) DeleteUser(input *DeleteUserInput) (*DeleteUserOutput, error) { req, out := c.DeleteUserRequest(input) err := req.Send() @@ -1304,6 +2495,8 @@ const opDeleteUserAttributes = "DeleteUserAttributes" // value can be used to capture response data after the request's "Send" method // is called. // +// See DeleteUserAttributes for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1339,7 +2532,45 @@ func (c *CognitoIdentityProvider) DeleteUserAttributesRequest(input *DeleteUserA return } +// DeleteUserAttributes API operation for Amazon Cognito Identity Provider. +// // Deletes the attributes for a user. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Cognito Identity Provider's +// API operation DeleteUserAttributes for usage and error information. +// +// Returned Error Codes: +// * ResourceNotFoundException +// This exception is thrown when the Amazon Cognito service cannot find the +// requested resource. +// +// * InvalidParameterException +// This exception is thrown when the Amazon Cognito service encounters an invalid +// parameter. +// +// * NotAuthorizedException +// This exception gets thrown when a user is not authorized. +// +// * TooManyRequestsException +// This exception gets thrown when the user has made too many requests for a +// given operation. +// +// * PasswordResetRequiredException +// This exception is thrown when a password reset is required. +// +// * UserNotFoundException +// This exception is thrown when a user is not found. +// +// * UserNotConfirmedException +// This exception is thrown when a user is not confirmed successfully. +// +// * InternalErrorException +// This exception is thrown when Amazon Cognito encounters an internal error. +// func (c *CognitoIdentityProvider) DeleteUserAttributes(input *DeleteUserAttributesInput) (*DeleteUserAttributesOutput, error) { req, out := c.DeleteUserAttributesRequest(input) err := req.Send() @@ -1353,6 +2584,8 @@ const opDeleteUserPool = "DeleteUserPool" // value can be used to capture response data after the request's "Send" method // is called. // +// See DeleteUserPool for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1389,7 +2622,40 @@ func (c *CognitoIdentityProvider) DeleteUserPoolRequest(input *DeleteUserPoolInp return } +// DeleteUserPool API operation for Amazon Cognito Identity Provider. +// // Deletes the specified Amazon Cognito user pool. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Cognito Identity Provider's +// API operation DeleteUserPool for usage and error information. +// +// Returned Error Codes: +// * ResourceNotFoundException +// This exception is thrown when the Amazon Cognito service cannot find the +// requested resource. +// +// * InvalidParameterException +// This exception is thrown when the Amazon Cognito service encounters an invalid +// parameter. +// +// * TooManyRequestsException +// This exception gets thrown when the user has made too many requests for a +// given operation. +// +// * NotAuthorizedException +// This exception gets thrown when a user is not authorized. +// +// * UserImportInProgressException +// This exception is thrown when you are trying to modify a user pool while +// a user import job is in progress for that pool. +// +// * InternalErrorException +// This exception is thrown when Amazon Cognito encounters an internal error. +// func (c *CognitoIdentityProvider) DeleteUserPool(input *DeleteUserPoolInput) (*DeleteUserPoolOutput, error) { req, out := c.DeleteUserPoolRequest(input) err := req.Send() @@ -1403,6 +2669,8 @@ const opDeleteUserPoolClient = "DeleteUserPoolClient" // value can be used to capture response data after the request's "Send" method // is called. // +// See DeleteUserPoolClient for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1439,7 +2707,36 @@ func (c *CognitoIdentityProvider) DeleteUserPoolClientRequest(input *DeleteUserP return } +// DeleteUserPoolClient API operation for Amazon Cognito Identity Provider. +// // Allows the developer to delete the user pool client. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Cognito Identity Provider's +// API operation DeleteUserPoolClient for usage and error information. +// +// Returned Error Codes: +// * ResourceNotFoundException +// This exception is thrown when the Amazon Cognito service cannot find the +// requested resource. +// +// * InvalidParameterException +// This exception is thrown when the Amazon Cognito service encounters an invalid +// parameter. +// +// * TooManyRequestsException +// This exception gets thrown when the user has made too many requests for a +// given operation. +// +// * NotAuthorizedException +// This exception gets thrown when a user is not authorized. +// +// * InternalErrorException +// This exception is thrown when Amazon Cognito encounters an internal error. +// func (c *CognitoIdentityProvider) DeleteUserPoolClient(input *DeleteUserPoolClientInput) (*DeleteUserPoolClientOutput, error) { req, out := c.DeleteUserPoolClientRequest(input) err := req.Send() @@ -1453,6 +2750,8 @@ const opDescribeUserImportJob = "DescribeUserImportJob" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeUserImportJob for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1487,7 +2786,36 @@ func (c *CognitoIdentityProvider) DescribeUserImportJobRequest(input *DescribeUs return } +// DescribeUserImportJob API operation for Amazon Cognito Identity Provider. +// // Describes the user import job. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Cognito Identity Provider's +// API operation DescribeUserImportJob for usage and error information. +// +// Returned Error Codes: +// * ResourceNotFoundException +// This exception is thrown when the Amazon Cognito service cannot find the +// requested resource. +// +// * InvalidParameterException +// This exception is thrown when the Amazon Cognito service encounters an invalid +// parameter. +// +// * TooManyRequestsException +// This exception gets thrown when the user has made too many requests for a +// given operation. +// +// * NotAuthorizedException +// This exception gets thrown when a user is not authorized. +// +// * InternalErrorException +// This exception is thrown when Amazon Cognito encounters an internal error. +// func (c *CognitoIdentityProvider) DescribeUserImportJob(input *DescribeUserImportJobInput) (*DescribeUserImportJobOutput, error) { req, out := c.DescribeUserImportJobRequest(input) err := req.Send() @@ -1501,6 +2829,8 @@ const opDescribeUserPool = "DescribeUserPool" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeUserPool for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1535,8 +2865,37 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Cognito Identity Provider's +// API operation DescribeUserPool for usage and error information. +// +// Returned Error Codes: +// * ResourceNotFoundException +// This exception is thrown when the Amazon Cognito service cannot find the +// requested resource. +// +// * InvalidParameterException +// This exception is thrown when the Amazon Cognito service encounters an invalid +// parameter. +// +// * TooManyRequestsException +// This exception gets thrown when the user has made too many requests for a +// given operation. +// +// * NotAuthorizedException +// This exception gets thrown when a user is not authorized. +// +// * InternalErrorException +// This exception is thrown when Amazon Cognito encounters an internal error. +// func (c *CognitoIdentityProvider) DescribeUserPool(input *DescribeUserPoolInput) (*DescribeUserPoolOutput, error) { req, out := c.DescribeUserPoolRequest(input) err := req.Send() @@ -1550,6 +2909,8 @@ const opDescribeUserPoolClient = "DescribeUserPoolClient" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeUserPoolClient for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1584,8 +2945,37 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Cognito Identity Provider's +// API operation DescribeUserPoolClient for usage and error information. +// +// Returned Error Codes: +// * ResourceNotFoundException +// This exception is thrown when the Amazon Cognito service cannot find the +// requested resource. +// +// * InvalidParameterException +// This exception is thrown when the Amazon Cognito service encounters an invalid +// parameter. +// +// * TooManyRequestsException +// This exception gets thrown when the user has made too many requests for a +// given operation. +// +// * NotAuthorizedException +// This exception gets thrown when a user is not authorized. +// +// * InternalErrorException +// This exception is thrown when Amazon Cognito encounters an internal error. +// func (c *CognitoIdentityProvider) DescribeUserPoolClient(input *DescribeUserPoolClientInput) (*DescribeUserPoolClientOutput, error) { req, out := c.DescribeUserPoolClientRequest(input) err := req.Send() @@ -1599,6 +2989,8 @@ const opForgetDevice = "ForgetDevice" // value can be used to capture response data after the request's "Send" method // is called. // +// See ForgetDevice for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1635,7 +3027,48 @@ func (c *CognitoIdentityProvider) ForgetDeviceRequest(input *ForgetDeviceInput) return } +// ForgetDevice API operation for Amazon Cognito Identity Provider. +// // Forgets the specified device. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Cognito Identity Provider's +// API operation ForgetDevice for usage and error information. +// +// Returned Error Codes: +// * ResourceNotFoundException +// This exception is thrown when the Amazon Cognito service cannot find the +// requested resource. +// +// * InvalidParameterException +// This exception is thrown when the Amazon Cognito service encounters an invalid +// parameter. +// +// * NotAuthorizedException +// This exception gets thrown when a user is not authorized. +// +// * TooManyRequestsException +// This exception gets thrown when the user has made too many requests for a +// given operation. +// +// * InvalidUserPoolConfigurationException +// This exception is thrown when the user pool configuration is invalid. +// +// * PasswordResetRequiredException +// This exception is thrown when a password reset is required. +// +// * UserNotFoundException +// This exception is thrown when a user is not found. +// +// * UserNotConfirmedException +// This exception is thrown when a user is not confirmed successfully. +// +// * InternalErrorException +// This exception is thrown when Amazon Cognito encounters an internal error. +// func (c *CognitoIdentityProvider) ForgetDevice(input *ForgetDeviceInput) (*ForgetDeviceOutput, error) { req, out := c.ForgetDeviceRequest(input) err := req.Send() @@ -1649,6 +3082,8 @@ const opForgotPassword = "ForgotPassword" // value can be used to capture response data after the request's "Send" method // is called. // +// See ForgotPassword for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1684,7 +3119,75 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Cognito Identity Provider's +// API operation ForgotPassword for usage and error information. +// +// Returned Error Codes: +// * ResourceNotFoundException +// This exception is thrown when the Amazon Cognito service cannot find the +// requested resource. +// +// * InvalidParameterException +// This exception is thrown when the Amazon Cognito service encounters an invalid +// parameter. +// +// * UnexpectedLambdaException +// This exception gets thrown when the Amazon Cognito service encounters an +// unexpected exception with the AWS Lambda service. +// +// * UserLambdaValidationException +// This exception gets thrown when the Amazon Cognito service encounters a user +// validation exception with the AWS Lambda service. +// +// * NotAuthorizedException +// This exception gets thrown when a user is not authorized. +// +// * InvalidLambdaResponseException +// This exception is thrown when the Amazon Cognito service encounters an invalid +// AWS Lambda response. +// +// * TooManyRequestsException +// This exception gets thrown when the user has made too many requests for a +// given operation. +// +// * LimitExceededException +// This exception is thrown when a user exceeds the limit for a requested AWS +// resource. +// +// * InvalidSmsRoleAccessPolicyException +// This exception is returned when the role provided for SMS configuration does +// not have permission to publish using Amazon SNS. +// +// * InvalidSmsRoleTrustRelationshipException +// This exception is thrown when the trust relationship is invalid for the role +// provided for SMS configuration. This can happen if you do not trust cognito-idp.amazonaws.com +// or the external ID provided in the role does not match what is provided in +// the SMS configuration for the user pool. +// +// * InvalidEmailRoleAccessPolicyException +// This exception is thrown when Amazon Cognito is not allowed to use your email +// identity. HTTP status code: 400. +// +// * CodeDeliveryFailureException +// This exception is thrown when a verification code fails to deliver successfully. +// +// * UserNotFoundException +// This exception is thrown when a user is not found. +// +// * UserNotConfirmedException +// This exception is thrown when a user is not confirmed successfully. +// +// * InternalErrorException +// This exception is thrown when Amazon Cognito encounters an internal error. +// func (c *CognitoIdentityProvider) ForgotPassword(input *ForgotPasswordInput) (*ForgotPasswordOutput, error) { req, out := c.ForgotPasswordRequest(input) err := req.Send() @@ -1698,6 +3201,8 @@ const opGetCSVHeader = "GetCSVHeader" // value can be used to capture response data after the request's "Send" method // is called. // +// See GetCSVHeader for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1732,8 +3237,37 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Cognito Identity Provider's +// API operation GetCSVHeader for usage and error information. +// +// Returned Error Codes: +// * ResourceNotFoundException +// This exception is thrown when the Amazon Cognito service cannot find the +// requested resource. +// +// * InvalidParameterException +// This exception is thrown when the Amazon Cognito service encounters an invalid +// parameter. +// +// * TooManyRequestsException +// This exception gets thrown when the user has made too many requests for a +// given operation. +// +// * NotAuthorizedException +// This exception gets thrown when a user is not authorized. +// +// * InternalErrorException +// This exception is thrown when Amazon Cognito encounters an internal error. +// func (c *CognitoIdentityProvider) GetCSVHeader(input *GetCSVHeaderInput) (*GetCSVHeaderOutput, error) { req, out := c.GetCSVHeaderRequest(input) err := req.Send() @@ -1747,6 +3281,8 @@ const opGetDevice = "GetDevice" // value can be used to capture response data after the request's "Send" method // is called. // +// See GetDevice for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1781,7 +3317,48 @@ func (c *CognitoIdentityProvider) GetDeviceRequest(input *GetDeviceInput) (req * return } +// GetDevice API operation for Amazon Cognito Identity Provider. +// // Gets the device. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Cognito Identity Provider's +// API operation GetDevice for usage and error information. +// +// Returned Error Codes: +// * ResourceNotFoundException +// This exception is thrown when the Amazon Cognito service cannot find the +// requested resource. +// +// * InvalidParameterException +// This exception is thrown when the Amazon Cognito service encounters an invalid +// parameter. +// +// * InvalidUserPoolConfigurationException +// This exception is thrown when the user pool configuration is invalid. +// +// * NotAuthorizedException +// This exception gets thrown when a user is not authorized. +// +// * TooManyRequestsException +// This exception gets thrown when the user has made too many requests for a +// given operation. +// +// * PasswordResetRequiredException +// This exception is thrown when a password reset is required. +// +// * UserNotFoundException +// This exception is thrown when a user is not found. +// +// * UserNotConfirmedException +// This exception is thrown when a user is not confirmed successfully. +// +// * InternalErrorException +// This exception is thrown when Amazon Cognito encounters an internal error. +// func (c *CognitoIdentityProvider) GetDevice(input *GetDeviceInput) (*GetDeviceOutput, error) { req, out := c.GetDeviceRequest(input) err := req.Send() @@ -1795,6 +3372,8 @@ const opGetUser = "GetUser" // value can be used to capture response data after the request's "Send" method // is called. // +// See GetUser for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1830,11 +3409,49 @@ 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. -func (c *CognitoIdentityProvider) GetUser(input *GetUserInput) (*GetUserOutput, error) { - req, out := c.GetUserRequest(input) - err := req.Send() - return out, err +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Cognito Identity Provider's +// API operation GetUser for usage and error information. +// +// Returned Error Codes: +// * ResourceNotFoundException +// This exception is thrown when the Amazon Cognito service cannot find the +// requested resource. +// +// * InvalidParameterException +// This exception is thrown when the Amazon Cognito service encounters an invalid +// parameter. +// +// * NotAuthorizedException +// This exception gets thrown when a user is not authorized. +// +// * TooManyRequestsException +// This exception gets thrown when the user has made too many requests for a +// given operation. +// +// * PasswordResetRequiredException +// This exception is thrown when a password reset is required. +// +// * UserNotFoundException +// This exception is thrown when a user is not found. +// +// * UserNotConfirmedException +// This exception is thrown when a user is not confirmed successfully. +// +// * InternalErrorException +// This exception is thrown when Amazon Cognito encounters an internal error. +// +func (c *CognitoIdentityProvider) GetUser(input *GetUserInput) (*GetUserOutput, error) { + req, out := c.GetUserRequest(input) + err := req.Send() + return out, err } const opGetUserAttributeVerificationCode = "GetUserAttributeVerificationCode" @@ -1844,6 +3461,8 @@ const opGetUserAttributeVerificationCode = "GetUserAttributeVerificationCode" // value can be used to capture response data after the request's "Send" method // is called. // +// See GetUserAttributeVerificationCode for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1879,7 +3498,78 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Cognito Identity Provider's +// API operation GetUserAttributeVerificationCode for usage and error information. +// +// Returned Error Codes: +// * ResourceNotFoundException +// This exception is thrown when the Amazon Cognito service cannot find the +// requested resource. +// +// * InvalidParameterException +// This exception is thrown when the Amazon Cognito service encounters an invalid +// parameter. +// +// * TooManyRequestsException +// This exception gets thrown when the user has made too many requests for a +// given operation. +// +// * NotAuthorizedException +// This exception gets thrown when a user is not authorized. +// +// * UnexpectedLambdaException +// This exception gets thrown when the Amazon Cognito service encounters an +// unexpected exception with the AWS Lambda service. +// +// * UserLambdaValidationException +// This exception gets thrown when the Amazon Cognito service encounters a user +// validation exception with the AWS Lambda service. +// +// * InvalidLambdaResponseException +// This exception is thrown when the Amazon Cognito service encounters an invalid +// AWS Lambda response. +// +// * InvalidSmsRoleAccessPolicyException +// This exception is returned when the role provided for SMS configuration does +// not have permission to publish using Amazon SNS. +// +// * InvalidSmsRoleTrustRelationshipException +// This exception is thrown when the trust relationship is invalid for the role +// provided for SMS configuration. This can happen if you do not trust cognito-idp.amazonaws.com +// or the external ID provided in the role does not match what is provided in +// the SMS configuration for the user pool. +// +// * InvalidEmailRoleAccessPolicyException +// This exception is thrown when Amazon Cognito is not allowed to use your email +// identity. HTTP status code: 400. +// +// * CodeDeliveryFailureException +// This exception is thrown when a verification code fails to deliver successfully. +// +// * LimitExceededException +// This exception is thrown when a user exceeds the limit for a requested AWS +// resource. +// +// * PasswordResetRequiredException +// This exception is thrown when a password reset is required. +// +// * UserNotFoundException +// This exception is thrown when a user is not found. +// +// * UserNotConfirmedException +// This exception is thrown when a user is not confirmed successfully. +// +// * InternalErrorException +// This exception is thrown when Amazon Cognito encounters an internal error. +// func (c *CognitoIdentityProvider) GetUserAttributeVerificationCode(input *GetUserAttributeVerificationCodeInput) (*GetUserAttributeVerificationCodeOutput, error) { req, out := c.GetUserAttributeVerificationCodeRequest(input) err := req.Send() @@ -1893,6 +3583,8 @@ const opGlobalSignOut = "GlobalSignOut" // value can be used to capture response data after the request's "Send" method // is called. // +// See GlobalSignOut for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1927,7 +3619,42 @@ func (c *CognitoIdentityProvider) GlobalSignOutRequest(input *GlobalSignOutInput return } +// GlobalSignOut API operation for Amazon Cognito Identity Provider. +// // Signs out users from all devices. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Cognito Identity Provider's +// API operation GlobalSignOut for usage and error information. +// +// Returned Error Codes: +// * ResourceNotFoundException +// This exception is thrown when the Amazon Cognito service cannot find the +// requested resource. +// +// * InvalidParameterException +// This exception is thrown when the Amazon Cognito service encounters an invalid +// parameter. +// +// * NotAuthorizedException +// This exception gets thrown when a user is not authorized. +// +// * TooManyRequestsException +// This exception gets thrown when the user has made too many requests for a +// given operation. +// +// * PasswordResetRequiredException +// This exception is thrown when a password reset is required. +// +// * UserNotConfirmedException +// This exception is thrown when a user is not confirmed successfully. +// +// * InternalErrorException +// This exception is thrown when Amazon Cognito encounters an internal error. +// func (c *CognitoIdentityProvider) GlobalSignOut(input *GlobalSignOutInput) (*GlobalSignOutOutput, error) { req, out := c.GlobalSignOutRequest(input) err := req.Send() @@ -1941,6 +3668,8 @@ const opInitiateAuth = "InitiateAuth" // value can be used to capture response data after the request's "Send" method // is called. // +// See InitiateAuth for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1975,7 +3704,60 @@ func (c *CognitoIdentityProvider) InitiateAuthRequest(input *InitiateAuthInput) return } +// InitiateAuth API operation for Amazon Cognito Identity Provider. +// // Initiates the authentication flow. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Cognito Identity Provider's +// API operation InitiateAuth for usage and error information. +// +// Returned Error Codes: +// * ResourceNotFoundException +// This exception is thrown when the Amazon Cognito service cannot find the +// requested resource. +// +// * InvalidParameterException +// This exception is thrown when the Amazon Cognito service encounters an invalid +// parameter. +// +// * NotAuthorizedException +// This exception gets thrown when a user is not authorized. +// +// * TooManyRequestsException +// This exception gets thrown when the user has made too many requests for a +// given operation. +// +// * UnexpectedLambdaException +// This exception gets thrown when the Amazon Cognito service encounters an +// unexpected exception with the AWS Lambda service. +// +// * InvalidUserPoolConfigurationException +// This exception is thrown when the user pool configuration is invalid. +// +// * UserLambdaValidationException +// This exception gets thrown when the Amazon Cognito service encounters a user +// validation exception with the AWS Lambda service. +// +// * InvalidLambdaResponseException +// This exception is thrown when the Amazon Cognito service encounters an invalid +// AWS Lambda response. +// +// * PasswordResetRequiredException +// This exception is thrown when a password reset is required. +// +// * UserNotFoundException +// This exception is thrown when a user is not found. +// +// * UserNotConfirmedException +// This exception is thrown when a user is not confirmed successfully. +// +// * InternalErrorException +// This exception is thrown when Amazon Cognito encounters an internal error. +// func (c *CognitoIdentityProvider) InitiateAuth(input *InitiateAuthInput) (*InitiateAuthOutput, error) { req, out := c.InitiateAuthRequest(input) err := req.Send() @@ -1989,6 +3771,8 @@ const opListDevices = "ListDevices" // value can be used to capture response data after the request's "Send" method // is called. // +// See ListDevices for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -2023,7 +3807,48 @@ func (c *CognitoIdentityProvider) ListDevicesRequest(input *ListDevicesInput) (r return } +// ListDevices API operation for Amazon Cognito Identity Provider. +// // Lists the devices. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Cognito Identity Provider's +// API operation ListDevices for usage and error information. +// +// Returned Error Codes: +// * InvalidParameterException +// This exception is thrown when the Amazon Cognito service encounters an invalid +// parameter. +// +// * ResourceNotFoundException +// This exception is thrown when the Amazon Cognito service cannot find the +// requested resource. +// +// * NotAuthorizedException +// This exception gets thrown when a user is not authorized. +// +// * InvalidUserPoolConfigurationException +// This exception is thrown when the user pool configuration is invalid. +// +// * TooManyRequestsException +// This exception gets thrown when the user has made too many requests for a +// given operation. +// +// * PasswordResetRequiredException +// This exception is thrown when a password reset is required. +// +// * UserNotFoundException +// This exception is thrown when a user is not found. +// +// * UserNotConfirmedException +// This exception is thrown when a user is not confirmed successfully. +// +// * InternalErrorException +// This exception is thrown when Amazon Cognito encounters an internal error. +// func (c *CognitoIdentityProvider) ListDevices(input *ListDevicesInput) (*ListDevicesOutput, error) { req, out := c.ListDevicesRequest(input) err := req.Send() @@ -2037,6 +3862,8 @@ const opListUserImportJobs = "ListUserImportJobs" // value can be used to capture response data after the request's "Send" method // is called. // +// See ListUserImportJobs for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -2071,7 +3898,36 @@ func (c *CognitoIdentityProvider) ListUserImportJobsRequest(input *ListUserImpor return } +// ListUserImportJobs API operation for Amazon Cognito Identity Provider. +// // Lists the user import jobs. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Cognito Identity Provider's +// API operation ListUserImportJobs for usage and error information. +// +// Returned Error Codes: +// * ResourceNotFoundException +// This exception is thrown when the Amazon Cognito service cannot find the +// requested resource. +// +// * InvalidParameterException +// This exception is thrown when the Amazon Cognito service encounters an invalid +// parameter. +// +// * TooManyRequestsException +// This exception gets thrown when the user has made too many requests for a +// given operation. +// +// * NotAuthorizedException +// This exception gets thrown when a user is not authorized. +// +// * InternalErrorException +// This exception is thrown when Amazon Cognito encounters an internal error. +// func (c *CognitoIdentityProvider) ListUserImportJobs(input *ListUserImportJobsInput) (*ListUserImportJobsOutput, error) { req, out := c.ListUserImportJobsRequest(input) err := req.Send() @@ -2085,6 +3941,8 @@ const opListUserPoolClients = "ListUserPoolClients" // value can be used to capture response data after the request's "Send" method // is called. // +// See ListUserPoolClients for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -2119,7 +3977,36 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Cognito Identity Provider's +// API operation ListUserPoolClients for usage and error information. +// +// Returned Error Codes: +// * InvalidParameterException +// This exception is thrown when the Amazon Cognito service encounters an invalid +// parameter. +// +// * ResourceNotFoundException +// This exception is thrown when the Amazon Cognito service cannot find the +// requested resource. +// +// * TooManyRequestsException +// This exception gets thrown when the user has made too many requests for a +// given operation. +// +// * NotAuthorizedException +// This exception gets thrown when a user is not authorized. +// +// * InternalErrorException +// This exception is thrown when Amazon Cognito encounters an internal error. +// func (c *CognitoIdentityProvider) ListUserPoolClients(input *ListUserPoolClientsInput) (*ListUserPoolClientsOutput, error) { req, out := c.ListUserPoolClientsRequest(input) err := req.Send() @@ -2133,6 +4020,8 @@ const opListUserPools = "ListUserPools" // value can be used to capture response data after the request's "Send" method // is called. // +// See ListUserPools for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -2167,7 +4056,32 @@ func (c *CognitoIdentityProvider) ListUserPoolsRequest(input *ListUserPoolsInput return } +// ListUserPools API operation for Amazon Cognito Identity Provider. +// // Lists the user pools associated with an AWS account. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Cognito Identity Provider's +// API operation ListUserPools for usage and error information. +// +// Returned Error Codes: +// * InvalidParameterException +// This exception is thrown when the Amazon Cognito service encounters an invalid +// parameter. +// +// * TooManyRequestsException +// This exception gets thrown when the user has made too many requests for a +// given operation. +// +// * NotAuthorizedException +// This exception gets thrown when a user is not authorized. +// +// * InternalErrorException +// This exception is thrown when Amazon Cognito encounters an internal error. +// func (c *CognitoIdentityProvider) ListUserPools(input *ListUserPoolsInput) (*ListUserPoolsOutput, error) { req, out := c.ListUserPoolsRequest(input) err := req.Send() @@ -2181,6 +4095,8 @@ const opListUsers = "ListUsers" // value can be used to capture response data after the request's "Send" method // is called. // +// See ListUsers for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -2215,7 +4131,36 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Cognito Identity Provider's +// API operation ListUsers for usage and error information. +// +// Returned Error Codes: +// * InvalidParameterException +// This exception is thrown when the Amazon Cognito service encounters an invalid +// parameter. +// +// * ResourceNotFoundException +// This exception is thrown when the Amazon Cognito service cannot find the +// requested resource. +// +// * TooManyRequestsException +// This exception gets thrown when the user has made too many requests for a +// given operation. +// +// * NotAuthorizedException +// This exception gets thrown when a user is not authorized. +// +// * InternalErrorException +// This exception is thrown when Amazon Cognito encounters an internal error. +// func (c *CognitoIdentityProvider) ListUsers(input *ListUsersInput) (*ListUsersOutput, error) { req, out := c.ListUsersRequest(input) err := req.Send() @@ -2229,6 +4174,8 @@ const opResendConfirmationCode = "ResendConfirmationCode" // value can be used to capture response data after the request's "Send" method // is called. // +// See ResendConfirmationCode for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -2264,8 +4211,73 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Cognito Identity Provider's +// API operation ResendConfirmationCode for usage and error information. +// +// Returned Error Codes: +// * ResourceNotFoundException +// This exception is thrown when the Amazon Cognito service cannot find the +// requested resource. +// +// * InvalidParameterException +// This exception is thrown when the Amazon Cognito service encounters an invalid +// parameter. +// +// * UnexpectedLambdaException +// This exception gets thrown when the Amazon Cognito service encounters an +// unexpected exception with the AWS Lambda service. +// +// * UserLambdaValidationException +// This exception gets thrown when the Amazon Cognito service encounters a user +// validation exception with the AWS Lambda service. +// +// * NotAuthorizedException +// This exception gets thrown when a user is not authorized. +// +// * InvalidLambdaResponseException +// This exception is thrown when the Amazon Cognito service encounters an invalid +// AWS Lambda response. +// +// * TooManyRequestsException +// This exception gets thrown when the user has made too many requests for a +// given operation. +// +// * LimitExceededException +// This exception is thrown when a user exceeds the limit for a requested AWS +// resource. +// +// * InvalidSmsRoleAccessPolicyException +// This exception is returned when the role provided for SMS configuration does +// not have permission to publish using Amazon SNS. +// +// * InvalidSmsRoleTrustRelationshipException +// This exception is thrown when the trust relationship is invalid for the role +// provided for SMS configuration. This can happen if you do not trust cognito-idp.amazonaws.com +// or the external ID provided in the role does not match what is provided in +// the SMS configuration for the user pool. +// +// * InvalidEmailRoleAccessPolicyException +// This exception is thrown when Amazon Cognito is not allowed to use your email +// identity. HTTP status code: 400. +// +// * CodeDeliveryFailureException +// This exception is thrown when a verification code fails to deliver successfully. +// +// * UserNotFoundException +// This exception is thrown when a user is not found. +// +// * InternalErrorException +// This exception is thrown when Amazon Cognito encounters an internal error. +// func (c *CognitoIdentityProvider) ResendConfirmationCode(input *ResendConfirmationCodeInput) (*ResendConfirmationCodeOutput, error) { req, out := c.ResendConfirmationCodeRequest(input) err := req.Send() @@ -2279,6 +4291,8 @@ const opRespondToAuthChallenge = "RespondToAuthChallenge" // value can be used to capture response data after the request's "Send" method // is called. // +// See RespondToAuthChallenge for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -2313,7 +4327,91 @@ func (c *CognitoIdentityProvider) RespondToAuthChallengeRequest(input *RespondTo return } +// RespondToAuthChallenge API operation for Amazon Cognito Identity Provider. +// // Responds to the authentication challenge. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Cognito Identity Provider's +// API operation RespondToAuthChallenge for usage and error information. +// +// Returned Error Codes: +// * ResourceNotFoundException +// This exception is thrown when the Amazon Cognito service cannot find the +// requested resource. +// +// * InvalidParameterException +// This exception is thrown when the Amazon Cognito service encounters an invalid +// parameter. +// +// * NotAuthorizedException +// This exception gets thrown when a user is not authorized. +// +// * CodeMismatchException +// This exception is thrown if the provided code does not match what the server +// was expecting. +// +// * ExpiredCodeException +// This exception is thrown if a code has expired. +// +// * UnexpectedLambdaException +// This exception gets thrown when the Amazon Cognito service encounters an +// unexpected exception with the AWS Lambda service. +// +// * UserLambdaValidationException +// This exception gets thrown when the Amazon Cognito service encounters a user +// validation exception with the AWS Lambda service. +// +// * InvalidPasswordException +// This exception is thrown when the Amazon Cognito service encounters an invalid +// password. +// +// * InvalidLambdaResponseException +// This exception is thrown when the Amazon Cognito service encounters an invalid +// AWS Lambda response. +// +// * TooManyRequestsException +// This exception gets thrown when the user has made too many requests for a +// given operation. +// +// * InvalidUserPoolConfigurationException +// This exception is thrown when the user pool configuration is invalid. +// +// * MFAMethodNotFoundException +// This exception is thrown when Amazon Cognito cannot find a multi-factor authentication +// (MFA) method. +// +// * PasswordResetRequiredException +// This exception is thrown when a password reset is required. +// +// * UserNotFoundException +// This exception is thrown when a user is not found. +// +// * UserNotConfirmedException +// This exception is thrown when a user is not confirmed successfully. +// +// * InvalidSmsRoleAccessPolicyException +// This exception is returned when the role provided for SMS configuration does +// not have permission to publish using Amazon SNS. +// +// * InvalidSmsRoleTrustRelationshipException +// This exception is thrown when the trust relationship is invalid for the role +// provided for SMS configuration. This can happen if you do not trust cognito-idp.amazonaws.com +// or the external ID provided in the role does not match what is provided in +// the SMS configuration for the user pool. +// +// * AliasExistsException +// This exception is thrown when a user tries to confirm the account with an +// email or phone number that has already been supplied as an alias from a different +// account. This exception tells user that an account with this email or phone +// already exists. +// +// * InternalErrorException +// This exception is thrown when Amazon Cognito encounters an internal error. +// func (c *CognitoIdentityProvider) RespondToAuthChallenge(input *RespondToAuthChallengeInput) (*RespondToAuthChallengeOutput, error) { req, out := c.RespondToAuthChallengeRequest(input) err := req.Send() @@ -2327,6 +4425,8 @@ const opSetUserSettings = "SetUserSettings" // value can be used to capture response data after the request's "Send" method // is called. // +// See SetUserSettings for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -2362,9 +4462,43 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Cognito Identity Provider's +// API operation SetUserSettings for usage and error information. +// +// Returned Error Codes: +// * ResourceNotFoundException +// This exception is thrown when the Amazon Cognito service cannot find the +// requested resource. +// +// * InvalidParameterException +// This exception is thrown when the Amazon Cognito service encounters an invalid +// parameter. +// +// * NotAuthorizedException +// This exception gets thrown when a user is not authorized. +// +// * PasswordResetRequiredException +// This exception is thrown when a password reset is required. +// +// * UserNotFoundException +// This exception is thrown when a user is not found. +// +// * UserNotConfirmedException +// This exception is thrown when a user is not confirmed successfully. +// +// * InternalErrorException +// This exception is thrown when Amazon Cognito encounters an internal error. +// func (c *CognitoIdentityProvider) SetUserSettings(input *SetUserSettingsInput) (*SetUserSettingsOutput, error) { req, out := c.SetUserSettingsRequest(input) err := req.Send() @@ -2378,6 +4512,8 @@ const opSignUp = "SignUp" // value can be used to capture response data after the request's "Send" method // is called. // +// See SignUp for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -2413,8 +4549,74 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Cognito Identity Provider's +// API operation SignUp for usage and error information. +// +// Returned Error Codes: +// * ResourceNotFoundException +// This exception is thrown when the Amazon Cognito service cannot find the +// requested resource. +// +// * InvalidParameterException +// This exception is thrown when the Amazon Cognito service encounters an invalid +// parameter. +// +// * UnexpectedLambdaException +// This exception gets thrown when the Amazon Cognito service encounters an +// unexpected exception with the AWS Lambda service. +// +// * UserLambdaValidationException +// This exception gets thrown when the Amazon Cognito service encounters a user +// validation exception with the AWS Lambda service. +// +// * NotAuthorizedException +// This exception gets thrown when a user is not authorized. +// +// * InvalidPasswordException +// This exception is thrown when the Amazon Cognito service encounters an invalid +// password. +// +// * InvalidLambdaResponseException +// This exception is thrown when the Amazon Cognito service encounters an invalid +// AWS Lambda response. +// +// * UsernameExistsException +// This exception is thrown when Amazon Cognito encounters a user name that +// already exists in the user pool. +// +// * TooManyRequestsException +// This exception gets thrown when the user has made too many requests for a +// given operation. +// +// * InternalErrorException +// This exception is thrown when Amazon Cognito encounters an internal error. +// +// * InvalidSmsRoleAccessPolicyException +// This exception is returned when the role provided for SMS configuration does +// not have permission to publish using Amazon SNS. +// +// * InvalidSmsRoleTrustRelationshipException +// This exception is thrown when the trust relationship is invalid for the role +// provided for SMS configuration. This can happen if you do not trust cognito-idp.amazonaws.com +// or the external ID provided in the role does not match what is provided in +// the SMS configuration for the user pool. +// +// * InvalidEmailRoleAccessPolicyException +// This exception is thrown when Amazon Cognito is not allowed to use your email +// identity. HTTP status code: 400. +// +// * CodeDeliveryFailureException +// This exception is thrown when a verification code fails to deliver successfully. +// func (c *CognitoIdentityProvider) SignUp(input *SignUpInput) (*SignUpOutput, error) { req, out := c.SignUpRequest(input) err := req.Send() @@ -2428,6 +4630,8 @@ const opStartUserImportJob = "StartUserImportJob" // value can be used to capture response data after the request's "Send" method // is called. // +// See StartUserImportJob for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -2462,7 +4666,39 @@ func (c *CognitoIdentityProvider) StartUserImportJobRequest(input *StartUserImpo return } +// StartUserImportJob API operation for Amazon Cognito Identity Provider. +// // Starts the user import. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Cognito Identity Provider's +// API operation StartUserImportJob for usage and error information. +// +// Returned Error Codes: +// * ResourceNotFoundException +// This exception is thrown when the Amazon Cognito service cannot find the +// requested resource. +// +// * InvalidParameterException +// This exception is thrown when the Amazon Cognito service encounters an invalid +// parameter. +// +// * TooManyRequestsException +// This exception gets thrown when the user has made too many requests for a +// given operation. +// +// * InternalErrorException +// This exception is thrown when Amazon Cognito encounters an internal error. +// +// * PreconditionNotMetException +// This exception is thrown when a precondition is not met. +// +// * NotAuthorizedException +// This exception gets thrown when a user is not authorized. +// func (c *CognitoIdentityProvider) StartUserImportJob(input *StartUserImportJobInput) (*StartUserImportJobOutput, error) { req, out := c.StartUserImportJobRequest(input) err := req.Send() @@ -2476,6 +4712,8 @@ const opStopUserImportJob = "StopUserImportJob" // value can be used to capture response data after the request's "Send" method // is called. // +// See StopUserImportJob for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -2510,7 +4748,39 @@ func (c *CognitoIdentityProvider) StopUserImportJobRequest(input *StopUserImport return } +// StopUserImportJob API operation for Amazon Cognito Identity Provider. +// // Stops the user import job. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Cognito Identity Provider's +// API operation StopUserImportJob for usage and error information. +// +// Returned Error Codes: +// * ResourceNotFoundException +// This exception is thrown when the Amazon Cognito service cannot find the +// requested resource. +// +// * InvalidParameterException +// This exception is thrown when the Amazon Cognito service encounters an invalid +// parameter. +// +// * TooManyRequestsException +// This exception gets thrown when the user has made too many requests for a +// given operation. +// +// * InternalErrorException +// This exception is thrown when Amazon Cognito encounters an internal error. +// +// * PreconditionNotMetException +// This exception is thrown when a precondition is not met. +// +// * NotAuthorizedException +// This exception gets thrown when a user is not authorized. +// func (c *CognitoIdentityProvider) StopUserImportJob(input *StopUserImportJobInput) (*StopUserImportJobOutput, error) { req, out := c.StopUserImportJobRequest(input) err := req.Send() @@ -2524,6 +4794,8 @@ const opUpdateDeviceStatus = "UpdateDeviceStatus" // value can be used to capture response data after the request's "Send" method // is called. // +// See UpdateDeviceStatus for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -2558,7 +4830,48 @@ func (c *CognitoIdentityProvider) UpdateDeviceStatusRequest(input *UpdateDeviceS return } +// UpdateDeviceStatus API operation for Amazon Cognito Identity Provider. +// // Updates the device status. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Cognito Identity Provider's +// API operation UpdateDeviceStatus for usage and error information. +// +// Returned Error Codes: +// * InvalidParameterException +// This exception is thrown when the Amazon Cognito service encounters an invalid +// parameter. +// +// * ResourceNotFoundException +// This exception is thrown when the Amazon Cognito service cannot find the +// requested resource. +// +// * NotAuthorizedException +// This exception gets thrown when a user is not authorized. +// +// * InvalidUserPoolConfigurationException +// This exception is thrown when the user pool configuration is invalid. +// +// * TooManyRequestsException +// This exception gets thrown when the user has made too many requests for a +// given operation. +// +// * PasswordResetRequiredException +// This exception is thrown when a password reset is required. +// +// * UserNotFoundException +// This exception is thrown when a user is not found. +// +// * UserNotConfirmedException +// This exception is thrown when a user is not confirmed successfully. +// +// * InternalErrorException +// This exception is thrown when Amazon Cognito encounters an internal error. +// func (c *CognitoIdentityProvider) UpdateDeviceStatus(input *UpdateDeviceStatusInput) (*UpdateDeviceStatusOutput, error) { req, out := c.UpdateDeviceStatusRequest(input) err := req.Send() @@ -2572,6 +4885,8 @@ const opUpdateUserAttributes = "UpdateUserAttributes" // value can be used to capture response data after the request's "Send" method // is called. // +// See UpdateUserAttributes for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -2607,7 +4922,87 @@ 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). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Cognito Identity Provider's +// API operation UpdateUserAttributes for usage and error information. +// +// Returned Error Codes: +// * ResourceNotFoundException +// This exception is thrown when the Amazon Cognito service cannot find the +// requested resource. +// +// * InvalidParameterException +// This exception is thrown when the Amazon Cognito service encounters an invalid +// parameter. +// +// * CodeMismatchException +// This exception is thrown if the provided code does not match what the server +// was expecting. +// +// * ExpiredCodeException +// This exception is thrown if a code has expired. +// +// * NotAuthorizedException +// This exception gets thrown when a user is not authorized. +// +// * UnexpectedLambdaException +// This exception gets thrown when the Amazon Cognito service encounters an +// unexpected exception with the AWS Lambda service. +// +// * UserLambdaValidationException +// This exception gets thrown when the Amazon Cognito service encounters a user +// validation exception with the AWS Lambda service. +// +// * InvalidLambdaResponseException +// This exception is thrown when the Amazon Cognito service encounters an invalid +// AWS Lambda response. +// +// * TooManyRequestsException +// This exception gets thrown when the user has made too many requests for a +// given operation. +// +// * AliasExistsException +// This exception is thrown when a user tries to confirm the account with an +// email or phone number that has already been supplied as an alias from a different +// account. This exception tells user that an account with this email or phone +// already exists. +// +// * InvalidSmsRoleAccessPolicyException +// This exception is returned when the role provided for SMS configuration does +// not have permission to publish using Amazon SNS. +// +// * InvalidSmsRoleTrustRelationshipException +// This exception is thrown when the trust relationship is invalid for the role +// provided for SMS configuration. This can happen if you do not trust cognito-idp.amazonaws.com +// or the external ID provided in the role does not match what is provided in +// the SMS configuration for the user pool. +// +// * InvalidEmailRoleAccessPolicyException +// This exception is thrown when Amazon Cognito is not allowed to use your email +// identity. HTTP status code: 400. +// +// * CodeDeliveryFailureException +// This exception is thrown when a verification code fails to deliver successfully. +// +// * PasswordResetRequiredException +// This exception is thrown when a password reset is required. +// +// * UserNotFoundException +// This exception is thrown when a user is not found. +// +// * UserNotConfirmedException +// This exception is thrown when a user is not confirmed successfully. +// +// * InternalErrorException +// This exception is thrown when Amazon Cognito encounters an internal error. +// func (c *CognitoIdentityProvider) UpdateUserAttributes(input *UpdateUserAttributesInput) (*UpdateUserAttributesOutput, error) { req, out := c.UpdateUserAttributesRequest(input) err := req.Send() @@ -2621,6 +5016,8 @@ const opUpdateUserPool = "UpdateUserPool" // value can be used to capture response data after the request's "Send" method // is called. // +// See UpdateUserPool for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -2655,7 +5052,57 @@ func (c *CognitoIdentityProvider) UpdateUserPoolRequest(input *UpdateUserPoolInp return } +// UpdateUserPool API operation for Amazon Cognito Identity Provider. +// // Updates the specified user pool with the specified attributes. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Cognito Identity Provider's +// API operation UpdateUserPool for usage and error information. +// +// Returned Error Codes: +// * ResourceNotFoundException +// This exception is thrown when the Amazon Cognito service cannot find the +// requested resource. +// +// * InvalidParameterException +// This exception is thrown when the Amazon Cognito service encounters an invalid +// parameter. +// +// * ConcurrentModificationException +// This exception is thrown if two or more modifications are happening concurrently. +// +// * TooManyRequestsException +// This exception gets thrown when the user has made too many requests for a +// given operation. +// +// * NotAuthorizedException +// This exception gets thrown when a user is not authorized. +// +// * UserImportInProgressException +// This exception is thrown when you are trying to modify a user pool while +// a user import job is in progress for that pool. +// +// * InternalErrorException +// This exception is thrown when Amazon Cognito encounters an internal error. +// +// * InvalidSmsRoleAccessPolicyException +// This exception is returned when the role provided for SMS configuration does +// not have permission to publish using Amazon SNS. +// +// * InvalidSmsRoleTrustRelationshipException +// This exception is thrown when the trust relationship is invalid for the role +// provided for SMS configuration. This can happen if you do not trust cognito-idp.amazonaws.com +// or the external ID provided in the role does not match what is provided in +// the SMS configuration for the user pool. +// +// * InvalidEmailRoleAccessPolicyException +// This exception is thrown when Amazon Cognito is not allowed to use your email +// identity. HTTP status code: 400. +// func (c *CognitoIdentityProvider) UpdateUserPool(input *UpdateUserPoolInput) (*UpdateUserPoolOutput, error) { req, out := c.UpdateUserPoolRequest(input) err := req.Send() @@ -2669,6 +5116,8 @@ const opUpdateUserPoolClient = "UpdateUserPoolClient" // value can be used to capture response data after the request's "Send" method // is called. // +// See UpdateUserPoolClient for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -2703,8 +5152,37 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Cognito Identity Provider's +// API operation UpdateUserPoolClient for usage and error information. +// +// Returned Error Codes: +// * ResourceNotFoundException +// This exception is thrown when the Amazon Cognito service cannot find the +// requested resource. +// +// * InvalidParameterException +// This exception is thrown when the Amazon Cognito service encounters an invalid +// parameter. +// +// * TooManyRequestsException +// This exception gets thrown when the user has made too many requests for a +// given operation. +// +// * NotAuthorizedException +// This exception gets thrown when a user is not authorized. +// +// * InternalErrorException +// This exception is thrown when Amazon Cognito encounters an internal error. +// func (c *CognitoIdentityProvider) UpdateUserPoolClient(input *UpdateUserPoolClientInput) (*UpdateUserPoolClientOutput, error) { req, out := c.UpdateUserPoolClientRequest(input) err := req.Send() @@ -2718,6 +5196,8 @@ const opVerifyUserAttribute = "VerifyUserAttribute" // value can be used to capture response data after the request's "Send" method // is called. // +// See VerifyUserAttribute for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -2753,7 +5233,56 @@ func (c *CognitoIdentityProvider) VerifyUserAttributeRequest(input *VerifyUserAt return } +// VerifyUserAttribute API operation for Amazon Cognito Identity Provider. +// // Verifies the specified user attributes in the user pool. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Cognito Identity Provider's +// API operation VerifyUserAttribute for usage and error information. +// +// Returned Error Codes: +// * ResourceNotFoundException +// This exception is thrown when the Amazon Cognito service cannot find the +// requested resource. +// +// * InvalidParameterException +// This exception is thrown when the Amazon Cognito service encounters an invalid +// parameter. +// +// * CodeMismatchException +// This exception is thrown if the provided code does not match what the server +// was expecting. +// +// * ExpiredCodeException +// This exception is thrown if a code has expired. +// +// * NotAuthorizedException +// This exception gets thrown when a user is not authorized. +// +// * TooManyRequestsException +// This exception gets thrown when the user has made too many requests for a +// given operation. +// +// * LimitExceededException +// This exception is thrown when a user exceeds the limit for a requested AWS +// resource. +// +// * PasswordResetRequiredException +// This exception is thrown when a password reset is required. +// +// * UserNotFoundException +// This exception is thrown when a user is not found. +// +// * UserNotConfirmedException +// This exception is thrown when a user is not confirmed successfully. +// +// * InternalErrorException +// This exception is thrown when Amazon Cognito encounters an internal error. +// 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..4c926b86cd7 100644 --- a/service/cognitosync/api.go +++ b/service/cognitosync/api.go @@ -20,6 +20,8 @@ const opBulkPublish = "BulkPublish" // value can be used to capture response data after the request's "Send" method // is called. // +// See BulkPublish for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -54,6 +56,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 +65,35 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Cognito Sync's +// API operation BulkPublish for usage and error information. +// +// Returned Error Codes: +// * NotAuthorizedException +// Thrown when a user is not authorized to access the requested resource. +// +// * InvalidParameterException +// Thrown when a request parameter does not comply with the associated constraints. +// +// * ResourceNotFoundException +// Thrown if the resource doesn't exist. +// +// * InternalErrorException +// Indicates an internal service error. +// +// * DuplicateRequestException +// An exception thrown when there is an IN_PROGRESS bulk publish operation for +// the given identity pool. +// +// * AlreadyStreamedException +// An exception thrown when a bulk publish operation is requested less than +// 24 hours after a previous bulk publish operation completed successfully. +// func (c *CognitoSync) BulkPublish(input *BulkPublishInput) (*BulkPublishOutput, error) { req, out := c.BulkPublishRequest(input) err := req.Send() @@ -74,6 +107,8 @@ const opDeleteDataset = "DeleteDataset" // value can be used to capture response data after the request's "Send" method // is called. // +// See DeleteDataset for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -108,6 +143,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 +152,34 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Cognito Sync's +// API operation DeleteDataset for usage and error information. +// +// Returned Error Codes: +// * NotAuthorizedException +// Thrown when a user is not authorized to access the requested resource. +// +// * InvalidParameterException +// Thrown when a request parameter does not comply with the associated constraints. +// +// * ResourceNotFoundException +// Thrown if the resource doesn't exist. +// +// * InternalErrorException +// Indicates an internal service error. +// +// * TooManyRequestsException +// Thrown if the request is throttled. +// +// * ResourceConflictException +// Thrown if an update can't be applied because the resource was changed by +// another call and this would result in a conflict. +// func (c *CognitoSync) DeleteDataset(input *DeleteDatasetInput) (*DeleteDatasetOutput, error) { req, out := c.DeleteDatasetRequest(input) err := req.Send() @@ -128,6 +193,8 @@ const opDescribeDataset = "DescribeDataset" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeDataset for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -162,6 +229,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 +238,30 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Cognito Sync's +// API operation DescribeDataset for usage and error information. +// +// Returned Error Codes: +// * NotAuthorizedException +// Thrown when a user is not authorized to access the requested resource. +// +// * InvalidParameterException +// Thrown when a request parameter does not comply with the associated constraints. +// +// * ResourceNotFoundException +// Thrown if the resource doesn't exist. +// +// * InternalErrorException +// Indicates an internal service error. +// +// * TooManyRequestsException +// Thrown if the request is throttled. +// func (c *CognitoSync) DescribeDataset(input *DescribeDatasetInput) (*DescribeDatasetOutput, error) { req, out := c.DescribeDatasetRequest(input) err := req.Send() @@ -182,6 +275,8 @@ const opDescribeIdentityPoolUsage = "DescribeIdentityPoolUsage" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeIdentityPoolUsage for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -216,11 +311,37 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Cognito Sync's +// API operation DescribeIdentityPoolUsage for usage and error information. +// +// Returned Error Codes: +// * NotAuthorizedException +// Thrown when a user is not authorized to access the requested resource. +// +// * InvalidParameterException +// Thrown when a request parameter does not comply with the associated constraints. +// +// * ResourceNotFoundException +// Thrown if the resource doesn't exist. +// +// * InternalErrorException +// Indicates an internal service error. +// +// * TooManyRequestsException +// Thrown if the request is throttled. +// func (c *CognitoSync) DescribeIdentityPoolUsage(input *DescribeIdentityPoolUsageInput) (*DescribeIdentityPoolUsageOutput, error) { req, out := c.DescribeIdentityPoolUsageRequest(input) err := req.Send() @@ -234,6 +355,8 @@ const opDescribeIdentityUsage = "DescribeIdentityUsage" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeIdentityUsage for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -268,11 +391,37 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Cognito Sync's +// API operation DescribeIdentityUsage for usage and error information. +// +// Returned Error Codes: +// * NotAuthorizedException +// Thrown when a user is not authorized to access the requested resource. +// +// * InvalidParameterException +// Thrown when a request parameter does not comply with the associated constraints. +// +// * ResourceNotFoundException +// Thrown if the resource doesn't exist. +// +// * InternalErrorException +// Indicates an internal service error. +// +// * TooManyRequestsException +// Thrown if the request is throttled. +// func (c *CognitoSync) DescribeIdentityUsage(input *DescribeIdentityUsageInput) (*DescribeIdentityUsageOutput, error) { req, out := c.DescribeIdentityUsageRequest(input) err := req.Send() @@ -286,6 +435,8 @@ const opGetBulkPublishDetails = "GetBulkPublishDetails" // value can be used to capture response data after the request's "Send" method // is called. // +// See GetBulkPublishDetails for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -320,10 +471,33 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Cognito Sync's +// API operation GetBulkPublishDetails for usage and error information. +// +// Returned Error Codes: +// * NotAuthorizedException +// Thrown when a user is not authorized to access the requested resource. +// +// * InvalidParameterException +// Thrown when a request parameter does not comply with the associated constraints. +// +// * ResourceNotFoundException +// Thrown if the resource doesn't exist. +// +// * InternalErrorException +// Indicates an internal service error. +// func (c *CognitoSync) GetBulkPublishDetails(input *GetBulkPublishDetailsInput) (*GetBulkPublishDetailsOutput, error) { req, out := c.GetBulkPublishDetailsRequest(input) err := req.Send() @@ -337,6 +511,8 @@ const opGetCognitoEvents = "GetCognitoEvents" // value can be used to capture response data after the request's "Send" method // is called. // +// See GetCognitoEvents for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -371,11 +547,37 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Cognito Sync's +// API operation GetCognitoEvents for usage and error information. +// +// Returned Error Codes: +// * InvalidParameterException +// Thrown when a request parameter does not comply with the associated constraints. +// +// * ResourceNotFoundException +// Thrown if the resource doesn't exist. +// +// * NotAuthorizedException +// Thrown when a user is not authorized to access the requested resource. +// +// * InternalErrorException +// Indicates an internal service error. +// +// * TooManyRequestsException +// Thrown if the request is throttled. +// func (c *CognitoSync) GetCognitoEvents(input *GetCognitoEventsInput) (*GetCognitoEventsOutput, error) { req, out := c.GetCognitoEventsRequest(input) err := req.Send() @@ -389,6 +591,8 @@ const opGetIdentityPoolConfiguration = "GetIdentityPoolConfiguration" // value can be used to capture response data after the request's "Send" method // is called. // +// See GetIdentityPoolConfiguration for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -423,10 +627,36 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Cognito Sync's +// API operation GetIdentityPoolConfiguration for usage and error information. +// +// Returned Error Codes: +// * NotAuthorizedException +// Thrown when a user is not authorized to access the requested resource. +// +// * InvalidParameterException +// Thrown when a request parameter does not comply with the associated constraints. +// +// * ResourceNotFoundException +// Thrown if the resource doesn't exist. +// +// * InternalErrorException +// Indicates an internal service error. +// +// * TooManyRequestsException +// Thrown if the request is throttled. +// func (c *CognitoSync) GetIdentityPoolConfiguration(input *GetIdentityPoolConfigurationInput) (*GetIdentityPoolConfigurationOutput, error) { req, out := c.GetIdentityPoolConfigurationRequest(input) err := req.Send() @@ -440,6 +670,8 @@ const opListDatasets = "ListDatasets" // value can be used to capture response data after the request's "Send" method // is called. // +// See ListDatasets for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -474,6 +706,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 +715,27 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Cognito Sync's +// API operation ListDatasets for usage and error information. +// +// Returned Error Codes: +// * NotAuthorizedException +// Thrown when a user is not authorized to access the requested resource. +// +// * InvalidParameterException +// Thrown when a request parameter does not comply with the associated constraints. +// +// * InternalErrorException +// Indicates an internal service error. +// +// * TooManyRequestsException +// Thrown if the request is throttled. +// func (c *CognitoSync) ListDatasets(input *ListDatasetsInput) (*ListDatasetsOutput, error) { req, out := c.ListDatasetsRequest(input) err := req.Send() @@ -494,6 +749,8 @@ const opListIdentityPoolUsage = "ListIdentityPoolUsage" // value can be used to capture response data after the request's "Send" method // is called. // +// See ListIdentityPoolUsage for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -528,11 +785,34 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Cognito Sync's +// API operation ListIdentityPoolUsage for usage and error information. +// +// Returned Error Codes: +// * NotAuthorizedException +// Thrown when a user is not authorized to access the requested resource. +// +// * InvalidParameterException +// Thrown when a request parameter does not comply with the associated constraints. +// +// * InternalErrorException +// Indicates an internal service error. +// +// * TooManyRequestsException +// Thrown if the request is throttled. +// func (c *CognitoSync) ListIdentityPoolUsage(input *ListIdentityPoolUsageInput) (*ListIdentityPoolUsageOutput, error) { req, out := c.ListIdentityPoolUsageRequest(input) err := req.Send() @@ -546,6 +826,8 @@ const opListRecords = "ListRecords" // value can be used to capture response data after the request's "Send" method // is called. // +// See ListRecords for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -580,6 +862,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 +872,27 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Cognito Sync's +// API operation ListRecords for usage and error information. +// +// Returned Error Codes: +// * InvalidParameterException +// Thrown when a request parameter does not comply with the associated constraints. +// +// * NotAuthorizedException +// Thrown when a user is not authorized to access the requested resource. +// +// * TooManyRequestsException +// Thrown if the request is throttled. +// +// * InternalErrorException +// Indicates an internal service error. +// func (c *CognitoSync) ListRecords(input *ListRecordsInput) (*ListRecordsOutput, error) { req, out := c.ListRecordsRequest(input) err := req.Send() @@ -601,6 +906,8 @@ const opRegisterDevice = "RegisterDevice" // value can be used to capture response data after the request's "Send" method // is called. // +// See RegisterDevice for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -635,10 +942,39 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Cognito Sync's +// API operation RegisterDevice for usage and error information. +// +// Returned Error Codes: +// * NotAuthorizedException +// Thrown when a user is not authorized to access the requested resource. +// +// * InvalidParameterException +// Thrown when a request parameter does not comply with the associated constraints. +// +// * ResourceNotFoundException +// Thrown if the resource doesn't exist. +// +// * InternalErrorException +// Indicates an internal service error. +// +// * InvalidConfigurationException + +// +// * TooManyRequestsException +// Thrown if the request is throttled. +// func (c *CognitoSync) RegisterDevice(input *RegisterDeviceInput) (*RegisterDeviceOutput, error) { req, out := c.RegisterDeviceRequest(input) err := req.Send() @@ -652,6 +988,8 @@ const opSetCognitoEvents = "SetCognitoEvents" // value can be used to capture response data after the request's "Send" method // is called. // +// See SetCognitoEvents for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -688,6 +1026,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 +1035,30 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Cognito Sync's +// API operation SetCognitoEvents for usage and error information. +// +// Returned Error Codes: +// * InvalidParameterException +// Thrown when a request parameter does not comply with the associated constraints. +// +// * ResourceNotFoundException +// Thrown if the resource doesn't exist. +// +// * NotAuthorizedException +// Thrown when a user is not authorized to access the requested resource. +// +// * InternalErrorException +// Indicates an internal service error. +// +// * TooManyRequestsException +// Thrown if the request is throttled. +// func (c *CognitoSync) SetCognitoEvents(input *SetCognitoEventsInput) (*SetCognitoEventsOutput, error) { req, out := c.SetCognitoEventsRequest(input) err := req.Send() @@ -708,6 +1072,8 @@ const opSetIdentityPoolConfiguration = "SetIdentityPoolConfiguration" // value can be used to capture response data after the request's "Send" method // is called. // +// See SetIdentityPoolConfiguration for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -742,10 +1108,39 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Cognito Sync's +// API operation SetIdentityPoolConfiguration for usage and error information. +// +// Returned Error Codes: +// * NotAuthorizedException +// Thrown when a user is not authorized to access the requested resource. +// +// * InvalidParameterException +// Thrown when a request parameter does not comply with the associated constraints. +// +// * ResourceNotFoundException +// Thrown if the resource doesn't exist. +// +// * InternalErrorException +// Indicates an internal service error. +// +// * TooManyRequestsException +// Thrown if the request is throttled. +// +// * ConcurrentModificationException +// Thrown if there are parallel requests to modify a resource. +// func (c *CognitoSync) SetIdentityPoolConfiguration(input *SetIdentityPoolConfigurationInput) (*SetIdentityPoolConfigurationOutput, error) { req, out := c.SetIdentityPoolConfigurationRequest(input) err := req.Send() @@ -759,6 +1154,8 @@ const opSubscribeToDataset = "SubscribeToDataset" // value can be used to capture response data after the request's "Send" method // is called. // +// See SubscribeToDataset for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -793,11 +1190,40 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Cognito Sync's +// API operation SubscribeToDataset for usage and error information. +// +// Returned Error Codes: +// * NotAuthorizedException +// Thrown when a user is not authorized to access the requested resource. +// +// * InvalidParameterException +// Thrown when a request parameter does not comply with the associated constraints. +// +// * ResourceNotFoundException +// Thrown if the resource doesn't exist. +// +// * InternalErrorException +// Indicates an internal service error. +// +// * InvalidConfigurationException + +// +// * TooManyRequestsException +// Thrown if the request is throttled. +// func (c *CognitoSync) SubscribeToDataset(input *SubscribeToDatasetInput) (*SubscribeToDatasetOutput, error) { req, out := c.SubscribeToDatasetRequest(input) err := req.Send() @@ -811,6 +1237,8 @@ const opUnsubscribeFromDataset = "UnsubscribeFromDataset" // value can be used to capture response data after the request's "Send" method // is called. // +// See UnsubscribeFromDataset for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -845,11 +1273,40 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Cognito Sync's +// API operation UnsubscribeFromDataset for usage and error information. +// +// Returned Error Codes: +// * NotAuthorizedException +// Thrown when a user is not authorized to access the requested resource. +// +// * InvalidParameterException +// Thrown when a request parameter does not comply with the associated constraints. +// +// * ResourceNotFoundException +// Thrown if the resource doesn't exist. +// +// * InternalErrorException +// Indicates an internal service error. +// +// * InvalidConfigurationException + +// +// * TooManyRequestsException +// Thrown if the request is throttled. +// func (c *CognitoSync) UnsubscribeFromDataset(input *UnsubscribeFromDatasetInput) (*UnsubscribeFromDatasetOutput, error) { req, out := c.UnsubscribeFromDatasetRequest(input) err := req.Send() @@ -863,6 +1320,8 @@ const opUpdateRecords = "UpdateRecords" // value can be used to capture response data after the request's "Send" method // is called. // +// See UpdateRecords for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -897,6 +1356,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 +1374,43 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Cognito Sync's +// API operation UpdateRecords for usage and error information. +// +// Returned Error Codes: +// * InvalidParameterException +// Thrown when a request parameter does not comply with the associated constraints. +// +// * LimitExceededException +// Thrown when the limit on the number of objects or operations has been exceeded. +// +// * NotAuthorizedException +// Thrown when a user is not authorized to access the requested resource. +// +// * ResourceNotFoundException +// Thrown if the resource doesn't exist. +// +// * ResourceConflictException +// Thrown if an update can't be applied because the resource was changed by +// another call and this would result in a conflict. +// +// * InvalidLambdaFunctionOutputException +// The AWS Lambda function returned invalid output or an exception. +// +// * LambdaThrottledException +// AWS Lambda throttled your account, please contact AWS Support +// +// * TooManyRequestsException +// Thrown if the request is throttled. +// +// * InternalErrorException +// Indicates an internal service error. +// 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..f81c9e44227 100644 --- a/service/configservice/api.go +++ b/service/configservice/api.go @@ -20,6 +20,8 @@ const opDeleteConfigRule = "DeleteConfigRule" // value can be used to capture response data after the request's "Send" method // is called. // +// See DeleteConfigRule for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -56,6 +58,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 +67,23 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Config's +// API operation DeleteConfigRule for usage and error information. +// +// Returned Error Codes: +// * NoSuchConfigRuleException +// One or more AWS Config rules in the request are invalid. Verify that the +// rule names are correct and try again. +// +// * ResourceInUseException +// The rule is currently being deleted or the rule is deleting your evaluation +// results. Try your request again later. +// func (c *ConfigService) DeleteConfigRule(input *DeleteConfigRuleInput) (*DeleteConfigRuleOutput, error) { req, out := c.DeleteConfigRuleRequest(input) err := req.Send() @@ -76,6 +97,8 @@ const opDeleteConfigurationRecorder = "DeleteConfigurationRecorder" // value can be used to capture response data after the request's "Send" method // is called. // +// See DeleteConfigurationRecorder for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -112,6 +135,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 +147,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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Config's +// API operation DeleteConfigurationRecorder for usage and error information. +// +// Returned Error Codes: +// * NoSuchConfigurationRecorderException +// You have specified a configuration recorder that does not exist. +// func (c *ConfigService) DeleteConfigurationRecorder(input *DeleteConfigurationRecorderInput) (*DeleteConfigurationRecorderOutput, error) { req, out := c.DeleteConfigurationRecorderRequest(input) err := req.Send() @@ -135,6 +172,8 @@ const opDeleteDeliveryChannel = "DeleteDeliveryChannel" // value can be used to capture response data after the request's "Send" method // is called. // +// See DeleteDeliveryChannel for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -171,10 +210,28 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Config's +// API operation DeleteDeliveryChannel for usage and error information. +// +// Returned Error Codes: +// * NoSuchDeliveryChannelException +// You have specified a delivery channel that does not exist. +// +// * LastDeliveryChannelDeleteFailedException +// You cannot delete the delivery channel you specified because the configuration +// recorder is running. +// func (c *ConfigService) DeleteDeliveryChannel(input *DeleteDeliveryChannelInput) (*DeleteDeliveryChannelOutput, error) { req, out := c.DeleteDeliveryChannelRequest(input) err := req.Send() @@ -188,6 +245,8 @@ const opDeleteEvaluationResults = "DeleteEvaluationResults" // value can be used to capture response data after the request's "Send" method // is called. // +// See DeleteEvaluationResults for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -222,10 +281,29 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Config's +// API operation DeleteEvaluationResults for usage and error information. +// +// Returned Error Codes: +// * NoSuchConfigRuleException +// One or more AWS Config rules in the request are invalid. Verify that the +// rule names are correct and try again. +// +// * ResourceInUseException +// The rule is currently being deleted or the rule is deleting your evaluation +// results. Try your request again later. +// func (c *ConfigService) DeleteEvaluationResults(input *DeleteEvaluationResultsInput) (*DeleteEvaluationResultsOutput, error) { req, out := c.DeleteEvaluationResultsRequest(input) err := req.Send() @@ -239,6 +317,8 @@ const opDeliverConfigSnapshot = "DeliverConfigSnapshot" // value can be used to capture response data after the request's "Send" method // is called. // +// See DeliverConfigSnapshot for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -273,6 +353,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 +362,25 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Config's +// API operation DeliverConfigSnapshot for usage and error information. +// +// Returned Error Codes: +// * NoSuchDeliveryChannelException +// You have specified a delivery channel that does not exist. +// +// * NoAvailableConfigurationRecorderException +// There are no configuration recorders available to provide the role needed +// to describe your resources. Create a configuration recorder. +// +// * NoRunningConfigurationRecorderException +// There is no configuration recorder running. +// func (c *ConfigService) DeliverConfigSnapshot(input *DeliverConfigSnapshotInput) (*DeliverConfigSnapshotOutput, error) { req, out := c.DeliverConfigSnapshotRequest(input) err := req.Send() @@ -293,6 +394,8 @@ const opDescribeComplianceByConfigRule = "DescribeComplianceByConfigRule" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeComplianceByConfigRule for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -327,6 +430,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 +451,23 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Config's +// API operation DescribeComplianceByConfigRule for usage and error information. +// +// Returned Error Codes: +// * InvalidParameterValueException +// One or more of the specified parameters are invalid. Verify that your parameters +// are valid and try again. +// +// * NoSuchConfigRuleException +// One or more AWS Config rules in the request are invalid. Verify that the +// rule names are correct and try again. +// func (c *ConfigService) DescribeComplianceByConfigRule(input *DescribeComplianceByConfigRuleInput) (*DescribeComplianceByConfigRuleOutput, error) { req, out := c.DescribeComplianceByConfigRuleRequest(input) err := req.Send() @@ -359,6 +481,8 @@ const opDescribeComplianceByResource = "DescribeComplianceByResource" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeComplianceByResource for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -393,6 +517,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 +540,23 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Config's +// API operation DescribeComplianceByResource for usage and error information. +// +// Returned Error Codes: +// * InvalidParameterValueException +// One or more of the specified parameters are invalid. Verify that your parameters +// are valid and try again. +// +// * InvalidNextTokenException +// The specified next token is invalid. Specify the nextToken string that was +// returned in the previous response to get the next page of results. +// func (c *ConfigService) DescribeComplianceByResource(input *DescribeComplianceByResourceInput) (*DescribeComplianceByResourceOutput, error) { req, out := c.DescribeComplianceByResourceRequest(input) err := req.Send() @@ -427,6 +570,8 @@ const opDescribeConfigRuleEvaluationStatus = "DescribeConfigRuleEvaluationStatus // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeConfigRuleEvaluationStatus for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -461,10 +606,25 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Config's +// API operation DescribeConfigRuleEvaluationStatus for usage and error information. +// +// Returned Error Codes: +// * NoSuchConfigRuleException +// One or more AWS Config rules in the request are invalid. Verify that the +// rule names are correct and try again. +// func (c *ConfigService) DescribeConfigRuleEvaluationStatus(input *DescribeConfigRuleEvaluationStatusInput) (*DescribeConfigRuleEvaluationStatusOutput, error) { req, out := c.DescribeConfigRuleEvaluationStatusRequest(input) err := req.Send() @@ -478,6 +638,8 @@ const opDescribeConfigRules = "DescribeConfigRules" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeConfigRules for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -512,7 +674,22 @@ func (c *ConfigService) DescribeConfigRulesRequest(input *DescribeConfigRulesInp return } +// DescribeConfigRules API operation for AWS Config. +// // Returns details about your AWS Config rules. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Config's +// API operation DescribeConfigRules for usage and error information. +// +// Returned Error Codes: +// * NoSuchConfigRuleException +// One or more AWS Config rules in the request are invalid. Verify that the +// rule names are correct and try again. +// func (c *ConfigService) DescribeConfigRules(input *DescribeConfigRulesInput) (*DescribeConfigRulesOutput, error) { req, out := c.DescribeConfigRulesRequest(input) err := req.Send() @@ -526,6 +703,8 @@ const opDescribeConfigurationRecorderStatus = "DescribeConfigurationRecorderStat // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeConfigurationRecorderStatus for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -560,11 +739,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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Config's +// API operation DescribeConfigurationRecorderStatus for usage and error information. +// +// Returned Error Codes: +// * NoSuchConfigurationRecorderException +// You have specified a configuration recorder that does not exist. +// func (c *ConfigService) DescribeConfigurationRecorderStatus(input *DescribeConfigurationRecorderStatusInput) (*DescribeConfigurationRecorderStatusOutput, error) { req, out := c.DescribeConfigurationRecorderStatusRequest(input) err := req.Send() @@ -578,6 +771,8 @@ const opDescribeConfigurationRecorders = "DescribeConfigurationRecorders" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeConfigurationRecorders for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -612,11 +807,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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Config's +// API operation DescribeConfigurationRecorders for usage and error information. +// +// Returned Error Codes: +// * NoSuchConfigurationRecorderException +// You have specified a configuration recorder that does not exist. +// func (c *ConfigService) DescribeConfigurationRecorders(input *DescribeConfigurationRecordersInput) (*DescribeConfigurationRecordersOutput, error) { req, out := c.DescribeConfigurationRecordersRequest(input) err := req.Send() @@ -630,6 +839,8 @@ const opDescribeDeliveryChannelStatus = "DescribeDeliveryChannelStatus" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeDeliveryChannelStatus for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -664,11 +875,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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Config's +// API operation DescribeDeliveryChannelStatus for usage and error information. +// +// Returned Error Codes: +// * NoSuchDeliveryChannelException +// You have specified a delivery channel that does not exist. +// func (c *ConfigService) DescribeDeliveryChannelStatus(input *DescribeDeliveryChannelStatusInput) (*DescribeDeliveryChannelStatusOutput, error) { req, out := c.DescribeDeliveryChannelStatusRequest(input) err := req.Send() @@ -682,6 +907,8 @@ const opDescribeDeliveryChannels = "DescribeDeliveryChannels" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeDeliveryChannels for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -716,11 +943,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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Config's +// API operation DescribeDeliveryChannels for usage and error information. +// +// Returned Error Codes: +// * NoSuchDeliveryChannelException +// You have specified a delivery channel that does not exist. +// func (c *ConfigService) DescribeDeliveryChannels(input *DescribeDeliveryChannelsInput) (*DescribeDeliveryChannelsOutput, error) { req, out := c.DescribeDeliveryChannelsRequest(input) err := req.Send() @@ -734,6 +975,8 @@ const opGetComplianceDetailsByConfigRule = "GetComplianceDetailsByConfigRule" // value can be used to capture response data after the request's "Send" method // is called. // +// See GetComplianceDetailsByConfigRule for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -768,9 +1011,32 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Config's +// API operation GetComplianceDetailsByConfigRule for usage and error information. +// +// Returned Error Codes: +// * InvalidParameterValueException +// One or more of the specified parameters are invalid. Verify that your parameters +// are valid and try again. +// +// * InvalidNextTokenException +// The specified next token is invalid. Specify the nextToken string that was +// returned in the previous response to get the next page of results. +// +// * NoSuchConfigRuleException +// One or more AWS Config rules in the request are invalid. Verify that the +// rule names are correct and try again. +// func (c *ConfigService) GetComplianceDetailsByConfigRule(input *GetComplianceDetailsByConfigRuleInput) (*GetComplianceDetailsByConfigRuleOutput, error) { req, out := c.GetComplianceDetailsByConfigRuleRequest(input) err := req.Send() @@ -784,6 +1050,8 @@ const opGetComplianceDetailsByResource = "GetComplianceDetailsByResource" // value can be used to capture response data after the request's "Send" method // is called. // +// See GetComplianceDetailsByResource for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -818,9 +1086,24 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Config's +// API operation GetComplianceDetailsByResource for usage and error information. +// +// Returned Error Codes: +// * InvalidParameterValueException +// One or more of the specified parameters are invalid. Verify that your parameters +// are valid and try again. +// func (c *ConfigService) GetComplianceDetailsByResource(input *GetComplianceDetailsByResourceInput) (*GetComplianceDetailsByResourceOutput, error) { req, out := c.GetComplianceDetailsByResourceRequest(input) err := req.Send() @@ -834,6 +1117,8 @@ const opGetComplianceSummaryByConfigRule = "GetComplianceSummaryByConfigRule" // value can be used to capture response data after the request's "Send" method // is called. // +// See GetComplianceSummaryByConfigRule for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -868,8 +1153,17 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Config's +// API operation GetComplianceSummaryByConfigRule for usage and error information. func (c *ConfigService) GetComplianceSummaryByConfigRule(input *GetComplianceSummaryByConfigRuleInput) (*GetComplianceSummaryByConfigRuleOutput, error) { req, out := c.GetComplianceSummaryByConfigRuleRequest(input) err := req.Send() @@ -883,6 +1177,8 @@ const opGetComplianceSummaryByResourceType = "GetComplianceSummaryByResourceType // value can be used to capture response data after the request's "Send" method // is called. // +// See GetComplianceSummaryByResourceType for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -917,9 +1213,24 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Config's +// API operation GetComplianceSummaryByResourceType for usage and error information. +// +// Returned Error Codes: +// * InvalidParameterValueException +// One or more of the specified parameters are invalid. Verify that your parameters +// are valid and try again. +// func (c *ConfigService) GetComplianceSummaryByResourceType(input *GetComplianceSummaryByResourceTypeInput) (*GetComplianceSummaryByResourceTypeOutput, error) { req, out := c.GetComplianceSummaryByResourceTypeRequest(input) err := req.Send() @@ -933,6 +1244,8 @@ const opGetResourceConfigHistory = "GetResourceConfigHistory" // value can be used to capture response data after the request's "Send" method // is called. // +// See GetResourceConfigHistory for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -973,6 +1286,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 +1301,36 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Config's +// API operation GetResourceConfigHistory for usage and error information. +// +// Returned Error Codes: +// * ValidationException +// The requested action is not valid. +// +// * InvalidTimeRangeException +// The specified time range is not valid. The earlier time is not chronologically +// before the later time. +// +// * InvalidLimitException +// The specified limit is outside the allowable range. +// +// * InvalidNextTokenException +// The specified next token is invalid. Specify the nextToken string that was +// returned in the previous response to get the next page of results. +// +// * NoAvailableConfigurationRecorderException +// There are no configuration recorders available to provide the role needed +// to describe your resources. Create a configuration recorder. +// +// * ResourceNotDiscoveredException +// You have specified a resource that is either unknown or has not been discovered. +// func (c *ConfigService) GetResourceConfigHistory(input *GetResourceConfigHistoryInput) (*GetResourceConfigHistoryOutput, error) { req, out := c.GetResourceConfigHistoryRequest(input) err := req.Send() @@ -1024,6 +1369,8 @@ const opListDiscoveredResources = "ListDiscoveredResources" // value can be used to capture response data after the request's "Send" method // is called. // +// See ListDiscoveredResources for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1058,6 +1405,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 +1421,29 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Config's +// API operation ListDiscoveredResources for usage and error information. +// +// Returned Error Codes: +// * ValidationException +// The requested action is not valid. +// +// * InvalidLimitException +// The specified limit is outside the allowable range. +// +// * InvalidNextTokenException +// The specified next token is invalid. Specify the nextToken string that was +// returned in the previous response to get the next page of results. +// +// * NoAvailableConfigurationRecorderException +// There are no configuration recorders available to provide the role needed +// to describe your resources. Create a configuration recorder. +// func (c *ConfigService) ListDiscoveredResources(input *ListDiscoveredResourcesInput) (*ListDiscoveredResourcesOutput, error) { req, out := c.ListDiscoveredResourcesRequest(input) err := req.Send() @@ -1085,6 +1457,8 @@ const opPutConfigRule = "PutConfigRule" // value can be used to capture response data after the request's "Send" method // is called. // +// See PutConfigRule for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1121,6 +1495,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 +1528,39 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Config's +// API operation PutConfigRule for usage and error information. +// +// Returned Error Codes: +// * InvalidParameterValueException +// One or more of the specified parameters are invalid. Verify that your parameters +// are valid and try again. +// +// * MaxNumberOfConfigRulesExceededException +// Failed to add the AWS Config rule because the account already contains the +// maximum number of 25 rules. Consider deleting any deactivated rules before +// adding new rules. +// +// * ResourceInUseException +// The rule is currently being deleted or the rule is deleting your evaluation +// results. Try your request again later. +// +// * InsufficientPermissionsException +// Indicates one of the following errors: +// +// The rule cannot be created because the IAM role assigned to AWS Config +// lacks permissions to perform the config:Put* action. The AWS Lambda function +// cannot be invoked. Check the function ARN, and check the function's permissions. +// +// * NoAvailableConfigurationRecorderException +// There are no configuration recorders available to provide the role needed +// to describe your resources. Create a configuration recorder. +// func (c *ConfigService) PutConfigRule(input *PutConfigRuleInput) (*PutConfigRuleOutput, error) { req, out := c.PutConfigRuleRequest(input) err := req.Send() @@ -1165,6 +1574,8 @@ const opPutConfigurationRecorder = "PutConfigurationRecorder" // value can be used to capture response data after the request's "Send" method // is called. // +// See PutConfigurationRecorder for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1201,6 +1612,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 +1624,28 @@ func (c *ConfigService) PutConfigurationRecorderRequest(input *PutConfigurationR // // If ConfigurationRecorder does not have the recordingGroup parameter specified, // the default is to record all supported resource types. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Config's +// API operation PutConfigurationRecorder for usage and error information. +// +// Returned Error Codes: +// * MaxNumberOfConfigurationRecordersExceededException +// You have reached the limit on the number of recorders you can create. +// +// * InvalidConfigurationRecorderNameException +// You have provided a configuration recorder name that is not valid. +// +// * InvalidRoleException +// You have provided a null or empty role ARN. +// +// * InvalidRecordingGroupException +// AWS Config throws an exception if the recording group does not contain a +// valid list of resource types. Invalid values could also be incorrectly formatted. +// func (c *ConfigService) PutConfigurationRecorder(input *PutConfigurationRecorderInput) (*PutConfigurationRecorderOutput, error) { req, out := c.PutConfigurationRecorderRequest(input) err := req.Send() @@ -1224,6 +1659,8 @@ const opPutDeliveryChannel = "PutDeliveryChannel" // value can be used to capture response data after the request's "Send" method // is called. // +// See PutDeliveryChannel for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1260,6 +1697,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 +1713,37 @@ func (c *ConfigService) PutDeliveryChannelRequest(input *PutDeliveryChannelInput // for the parameter that is not changed. // // You can have only one delivery channel per AWS account. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Config's +// API operation PutDeliveryChannel for usage and error information. +// +// Returned Error Codes: +// * MaxNumberOfDeliveryChannelsExceededException +// You have reached the limit on the number of delivery channels you can create. +// +// * NoAvailableConfigurationRecorderException +// There are no configuration recorders available to provide the role needed +// to describe your resources. Create a configuration recorder. +// +// * InvalidDeliveryChannelNameException +// The specified delivery channel name is not valid. +// +// * NoSuchBucketException +// The specified Amazon S3 bucket does not exist. +// +// * InvalidS3KeyPrefixException +// The specified Amazon S3 key prefix is not valid. +// +// * InvalidSNSTopicARNException +// The specified Amazon SNS topic does not exist. +// +// * InsufficientDeliveryPolicyException +// Your Amazon S3 bucket policy does not permit AWS Config to write to it. +// func (c *ConfigService) PutDeliveryChannel(input *PutDeliveryChannelInput) (*PutDeliveryChannelOutput, error) { req, out := c.PutDeliveryChannelRequest(input) err := req.Send() @@ -1287,6 +1757,8 @@ const opPutEvaluations = "PutEvaluations" // value can be used to capture response data after the request's "Send" method // is called. // +// See PutEvaluations for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1321,9 +1793,31 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Config's +// API operation PutEvaluations for usage and error information. +// +// Returned Error Codes: +// * InvalidParameterValueException +// One or more of the specified parameters are invalid. Verify that your parameters +// are valid and try again. +// +// * InvalidResultTokenException +// The result token is invalid. +// +// * NoSuchConfigRuleException +// One or more AWS Config rules in the request are invalid. Verify that the +// rule names are correct and try again. +// func (c *ConfigService) PutEvaluations(input *PutEvaluationsInput) (*PutEvaluationsOutput, error) { req, out := c.PutEvaluationsRequest(input) err := req.Send() @@ -1337,6 +1831,8 @@ const opStartConfigRulesEvaluation = "StartConfigRulesEvaluation" // value can be used to capture response data after the request's "Send" method // is called. // +// See StartConfigRulesEvaluation for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1371,6 +1867,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 +1894,31 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Config's +// API operation StartConfigRulesEvaluation for usage and error information. +// +// Returned Error Codes: +// * NoSuchConfigRuleException +// One or more AWS Config rules in the request are invalid. Verify that the +// rule names are correct and try again. +// +// * LimitExceededException +// This exception is thrown if an evaluation is in progress or if you call the +// StartConfigRulesEvaluation API more than once per minute. +// +// * ResourceInUseException +// The rule is currently being deleted or the rule is deleting your evaluation +// results. Try your request again later. +// +// * InvalidParameterValueException +// One or more of the specified parameters are invalid. Verify that your parameters +// are valid and try again. +// func (c *ConfigService) StartConfigRulesEvaluation(input *StartConfigRulesEvaluationInput) (*StartConfigRulesEvaluationOutput, error) { req, out := c.StartConfigRulesEvaluationRequest(input) err := req.Send() @@ -1409,6 +1932,8 @@ const opStartConfigurationRecorder = "StartConfigurationRecorder" // value can be used to capture response data after the request's "Send" method // is called. // +// See StartConfigurationRecorder for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1445,11 +1970,28 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Config's +// API operation StartConfigurationRecorder for usage and error information. +// +// Returned Error Codes: +// * NoSuchConfigurationRecorderException +// You have specified a configuration recorder that does not exist. +// +// * NoAvailableDeliveryChannelException +// There is no delivery channel available to record configurations. +// func (c *ConfigService) StartConfigurationRecorder(input *StartConfigurationRecorderInput) (*StartConfigurationRecorderOutput, error) { req, out := c.StartConfigurationRecorderRequest(input) err := req.Send() @@ -1463,6 +2005,8 @@ const opStopConfigurationRecorder = "StopConfigurationRecorder" // value can be used to capture response data after the request's "Send" method // is called. // +// See StopConfigurationRecorder for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1499,8 +2043,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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Config's +// API operation StopConfigurationRecorder for usage and error information. +// +// Returned Error Codes: +// * NoSuchConfigurationRecorderException +// You have specified a configuration recorder that does not exist. +// 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..54743395145 100644 --- a/service/databasemigrationservice/api.go +++ b/service/databasemigrationservice/api.go @@ -18,6 +18,8 @@ const opAddTagsToResource = "AddTagsToResource" // value can be used to capture response data after the request's "Send" method // is called. // +// See AddTagsToResource for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -52,10 +54,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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Database Migration Service's +// API operation AddTagsToResource for usage and error information. +// +// Returned Error Codes: +// * ResourceNotFoundFault +// The resource could not be found. +// func (c *DatabaseMigrationService) AddTagsToResource(input *AddTagsToResourceInput) (*AddTagsToResourceOutput, error) { req, out := c.AddTagsToResourceRequest(input) err := req.Send() @@ -69,6 +85,8 @@ const opCreateEndpoint = "CreateEndpoint" // value can be used to capture response data after the request's "Send" method // is called. // +// See CreateEndpoint for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -103,7 +121,34 @@ func (c *DatabaseMigrationService) CreateEndpointRequest(input *CreateEndpointIn return } +// CreateEndpoint API operation for AWS Database Migration Service. +// // Creates an endpoint using the provided settings. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Database Migration Service's +// API operation CreateEndpoint for usage and error information. +// +// Returned Error Codes: +// * KMSKeyNotAccessibleFault +// AWS DMS cannot access the KMS key. +// +// * ResourceAlreadyExistsFault +// The resource you are attempting to create already exists. +// +// * ResourceQuotaExceededFault +// The quota for this resource quota has been exceeded. +// +// * InvalidResourceStateFault +// The resource is in a state that prevents it from being used for database +// migration. +// +// * ResourceNotFoundFault +// The resource could not be found. +// func (c *DatabaseMigrationService) CreateEndpoint(input *CreateEndpointInput) (*CreateEndpointOutput, error) { req, out := c.CreateEndpointRequest(input) err := req.Send() @@ -117,6 +162,8 @@ const opCreateReplicationInstance = "CreateReplicationInstance" // value can be used to capture response data after the request's "Send" method // is called. // +// See CreateReplicationInstance for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -151,7 +198,50 @@ func (c *DatabaseMigrationService) CreateReplicationInstanceRequest(input *Creat return } +// CreateReplicationInstance API operation for AWS Database Migration Service. +// // Creates the replication instance using the specified parameters. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Database Migration Service's +// API operation CreateReplicationInstance for usage and error information. +// +// Returned Error Codes: +// * AccessDeniedFault +// AWS DMS was denied access to the endpoint. +// +// * ResourceAlreadyExistsFault +// The resource you are attempting to create already exists. +// +// * InsufficientResourceCapacityFault +// There are not enough resources allocated to the database migration. +// +// * ResourceQuotaExceededFault +// The quota for this resource quota has been exceeded. +// +// * StorageQuotaExceededFault +// The storage quota has been exceeded. +// +// * ResourceNotFoundFault +// The resource could not be found. +// +// * ReplicationSubnetGroupDoesNotCoverEnoughAZs +// The replication subnet group does not cover enough Availability Zones (AZs). +// Edit the replication subnet group and add more AZs. +// +// * InvalidResourceStateFault +// The resource is in a state that prevents it from being used for database +// migration. +// +// * InvalidSubnet +// The subnet provided is invalid. +// +// * KMSKeyNotAccessibleFault +// AWS DMS cannot access the KMS key. +// func (c *DatabaseMigrationService) CreateReplicationInstance(input *CreateReplicationInstanceInput) (*CreateReplicationInstanceOutput, error) { req, out := c.CreateReplicationInstanceRequest(input) err := req.Send() @@ -165,6 +255,8 @@ const opCreateReplicationSubnetGroup = "CreateReplicationSubnetGroup" // value can be used to capture response data after the request's "Send" method // is called. // +// See CreateReplicationSubnetGroup for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -199,7 +291,37 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Database Migration Service's +// API operation CreateReplicationSubnetGroup for usage and error information. +// +// Returned Error Codes: +// * AccessDeniedFault +// AWS DMS was denied access to the endpoint. +// +// * ResourceAlreadyExistsFault +// The resource you are attempting to create already exists. +// +// * ResourceNotFoundFault +// The resource could not be found. +// +// * ResourceQuotaExceededFault +// The quota for this resource quota has been exceeded. +// +// * ReplicationSubnetGroupDoesNotCoverEnoughAZs +// The replication subnet group does not cover enough Availability Zones (AZs). +// Edit the replication subnet group and add more AZs. +// +// * InvalidSubnet +// The subnet provided is invalid. +// func (c *DatabaseMigrationService) CreateReplicationSubnetGroup(input *CreateReplicationSubnetGroupInput) (*CreateReplicationSubnetGroupOutput, error) { req, out := c.CreateReplicationSubnetGroupRequest(input) err := req.Send() @@ -213,6 +335,8 @@ const opCreateReplicationTask = "CreateReplicationTask" // value can be used to capture response data after the request's "Send" method // is called. // +// See CreateReplicationTask for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -247,7 +371,34 @@ func (c *DatabaseMigrationService) CreateReplicationTaskRequest(input *CreateRep return } +// CreateReplicationTask API operation for AWS Database Migration Service. +// // Creates a replication task using the specified parameters. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Database Migration Service's +// API operation CreateReplicationTask for usage and error information. +// +// Returned Error Codes: +// * InvalidResourceStateFault +// The resource is in a state that prevents it from being used for database +// migration. +// +// * ResourceAlreadyExistsFault +// The resource you are attempting to create already exists. +// +// * ResourceNotFoundFault +// The resource could not be found. +// +// * KMSKeyNotAccessibleFault +// AWS DMS cannot access the KMS key. +// +// * ResourceQuotaExceededFault +// The quota for this resource quota has been exceeded. +// func (c *DatabaseMigrationService) CreateReplicationTask(input *CreateReplicationTaskInput) (*CreateReplicationTaskOutput, error) { req, out := c.CreateReplicationTaskRequest(input) err := req.Send() @@ -261,6 +412,8 @@ const opDeleteCertificate = "DeleteCertificate" // value can be used to capture response data after the request's "Send" method // is called. // +// See DeleteCertificate for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -295,7 +448,25 @@ func (c *DatabaseMigrationService) DeleteCertificateRequest(input *DeleteCertifi return } +// DeleteCertificate API operation for AWS Database Migration Service. +// // Deletes the specified certificate. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Database Migration Service's +// API operation DeleteCertificate for usage and error information. +// +// Returned Error Codes: +// * ResourceNotFoundFault +// The resource could not be found. +// +// * InvalidResourceStateFault +// The resource is in a state that prevents it from being used for database +// migration. +// func (c *DatabaseMigrationService) DeleteCertificate(input *DeleteCertificateInput) (*DeleteCertificateOutput, error) { req, out := c.DeleteCertificateRequest(input) err := req.Send() @@ -309,6 +480,8 @@ const opDeleteEndpoint = "DeleteEndpoint" // value can be used to capture response data after the request's "Send" method // is called. // +// See DeleteEndpoint for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -343,10 +516,28 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Database Migration Service's +// API operation DeleteEndpoint for usage and error information. +// +// Returned Error Codes: +// * ResourceNotFoundFault +// The resource could not be found. +// +// * InvalidResourceStateFault +// The resource is in a state that prevents it from being used for database +// migration. +// func (c *DatabaseMigrationService) DeleteEndpoint(input *DeleteEndpointInput) (*DeleteEndpointOutput, error) { req, out := c.DeleteEndpointRequest(input) err := req.Send() @@ -360,6 +551,8 @@ const opDeleteReplicationInstance = "DeleteReplicationInstance" // value can be used to capture response data after the request's "Send" method // is called. // +// See DeleteReplicationInstance for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -394,10 +587,28 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Database Migration Service's +// API operation DeleteReplicationInstance for usage and error information. +// +// Returned Error Codes: +// * InvalidResourceStateFault +// The resource is in a state that prevents it from being used for database +// migration. +// +// * ResourceNotFoundFault +// The resource could not be found. +// func (c *DatabaseMigrationService) DeleteReplicationInstance(input *DeleteReplicationInstanceInput) (*DeleteReplicationInstanceOutput, error) { req, out := c.DeleteReplicationInstanceRequest(input) err := req.Send() @@ -411,6 +622,8 @@ const opDeleteReplicationSubnetGroup = "DeleteReplicationSubnetGroup" // value can be used to capture response data after the request's "Send" method // is called. // +// See DeleteReplicationSubnetGroup for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -445,7 +658,25 @@ func (c *DatabaseMigrationService) DeleteReplicationSubnetGroupRequest(input *De return } +// DeleteReplicationSubnetGroup API operation for AWS Database Migration Service. +// // Deletes a subnet group. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Database Migration Service's +// API operation DeleteReplicationSubnetGroup for usage and error information. +// +// Returned Error Codes: +// * InvalidResourceStateFault +// The resource is in a state that prevents it from being used for database +// migration. +// +// * ResourceNotFoundFault +// The resource could not be found. +// func (c *DatabaseMigrationService) DeleteReplicationSubnetGroup(input *DeleteReplicationSubnetGroupInput) (*DeleteReplicationSubnetGroupOutput, error) { req, out := c.DeleteReplicationSubnetGroupRequest(input) err := req.Send() @@ -459,6 +690,8 @@ const opDeleteReplicationTask = "DeleteReplicationTask" // value can be used to capture response data after the request's "Send" method // is called. // +// See DeleteReplicationTask for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -493,7 +726,25 @@ func (c *DatabaseMigrationService) DeleteReplicationTaskRequest(input *DeleteRep return } +// DeleteReplicationTask API operation for AWS Database Migration Service. +// // Deletes the specified replication task. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Database Migration Service's +// API operation DeleteReplicationTask for usage and error information. +// +// Returned Error Codes: +// * ResourceNotFoundFault +// The resource could not be found. +// +// * InvalidResourceStateFault +// The resource is in a state that prevents it from being used for database +// migration. +// func (c *DatabaseMigrationService) DeleteReplicationTask(input *DeleteReplicationTaskInput) (*DeleteReplicationTaskOutput, error) { req, out := c.DeleteReplicationTaskRequest(input) err := req.Send() @@ -507,6 +758,8 @@ const opDescribeAccountAttributes = "DescribeAccountAttributes" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeAccountAttributes for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -541,12 +794,21 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Database Migration Service's +// API operation DescribeAccountAttributes for usage and error information. func (c *DatabaseMigrationService) DescribeAccountAttributes(input *DescribeAccountAttributesInput) (*DescribeAccountAttributesOutput, error) { req, out := c.DescribeAccountAttributesRequest(input) err := req.Send() @@ -560,6 +822,8 @@ const opDescribeCertificates = "DescribeCertificates" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeCertificates for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -594,7 +858,21 @@ func (c *DatabaseMigrationService) DescribeCertificatesRequest(input *DescribeCe return } +// DescribeCertificates API operation for AWS Database Migration Service. +// // Provides a description of the certificate. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Database Migration Service's +// API operation DescribeCertificates for usage and error information. +// +// Returned Error Codes: +// * ResourceNotFoundFault +// The resource could not be found. +// func (c *DatabaseMigrationService) DescribeCertificates(input *DescribeCertificatesInput) (*DescribeCertificatesOutput, error) { req, out := c.DescribeCertificatesRequest(input) err := req.Send() @@ -608,6 +886,8 @@ const opDescribeConnections = "DescribeConnections" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeConnections for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -642,8 +922,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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Database Migration Service's +// API operation DescribeConnections for usage and error information. +// +// Returned Error Codes: +// * ResourceNotFoundFault +// The resource could not be found. +// func (c *DatabaseMigrationService) DescribeConnections(input *DescribeConnectionsInput) (*DescribeConnectionsOutput, error) { req, out := c.DescribeConnectionsRequest(input) err := req.Send() @@ -657,6 +951,8 @@ const opDescribeEndpointTypes = "DescribeEndpointTypes" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeEndpointTypes for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -691,7 +987,16 @@ func (c *DatabaseMigrationService) DescribeEndpointTypesRequest(input *DescribeE return } +// DescribeEndpointTypes API operation for AWS Database Migration Service. +// // Returns information about the type of endpoints available. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Database Migration Service's +// API operation DescribeEndpointTypes for usage and error information. func (c *DatabaseMigrationService) DescribeEndpointTypes(input *DescribeEndpointTypesInput) (*DescribeEndpointTypesOutput, error) { req, out := c.DescribeEndpointTypesRequest(input) err := req.Send() @@ -705,6 +1010,8 @@ const opDescribeEndpoints = "DescribeEndpoints" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeEndpoints for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -739,7 +1046,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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Database Migration Service's +// API operation DescribeEndpoints for usage and error information. +// +// Returned Error Codes: +// * ResourceNotFoundFault +// The resource could not be found. +// func (c *DatabaseMigrationService) DescribeEndpoints(input *DescribeEndpointsInput) (*DescribeEndpointsOutput, error) { req, out := c.DescribeEndpointsRequest(input) err := req.Send() @@ -753,6 +1074,8 @@ const opDescribeOrderableReplicationInstances = "DescribeOrderableReplicationIns // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeOrderableReplicationInstances for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -787,8 +1110,17 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Database Migration Service's +// API operation DescribeOrderableReplicationInstances for usage and error information. func (c *DatabaseMigrationService) DescribeOrderableReplicationInstances(input *DescribeOrderableReplicationInstancesInput) (*DescribeOrderableReplicationInstancesOutput, error) { req, out := c.DescribeOrderableReplicationInstancesRequest(input) err := req.Send() @@ -802,6 +1134,8 @@ const opDescribeRefreshSchemasStatus = "DescribeRefreshSchemasStatus" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeRefreshSchemasStatus for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -836,7 +1170,25 @@ func (c *DatabaseMigrationService) DescribeRefreshSchemasStatusRequest(input *De return } +// DescribeRefreshSchemasStatus API operation for AWS Database Migration Service. +// // Returns the status of the RefreshSchemas operation. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Database Migration Service's +// API operation DescribeRefreshSchemasStatus for usage and error information. +// +// Returned Error Codes: +// * InvalidResourceStateFault +// The resource is in a state that prevents it from being used for database +// migration. +// +// * ResourceNotFoundFault +// The resource could not be found. +// func (c *DatabaseMigrationService) DescribeRefreshSchemasStatus(input *DescribeRefreshSchemasStatusInput) (*DescribeRefreshSchemasStatusOutput, error) { req, out := c.DescribeRefreshSchemasStatusRequest(input) err := req.Send() @@ -850,6 +1202,8 @@ const opDescribeReplicationInstances = "DescribeReplicationInstances" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeReplicationInstances for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -884,8 +1238,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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Database Migration Service's +// API operation DescribeReplicationInstances for usage and error information. +// +// Returned Error Codes: +// * ResourceNotFoundFault +// The resource could not be found. +// func (c *DatabaseMigrationService) DescribeReplicationInstances(input *DescribeReplicationInstancesInput) (*DescribeReplicationInstancesOutput, error) { req, out := c.DescribeReplicationInstancesRequest(input) err := req.Send() @@ -899,6 +1267,8 @@ const opDescribeReplicationSubnetGroups = "DescribeReplicationSubnetGroups" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeReplicationSubnetGroups for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -933,7 +1303,21 @@ func (c *DatabaseMigrationService) DescribeReplicationSubnetGroupsRequest(input return } +// DescribeReplicationSubnetGroups API operation for AWS Database Migration Service. +// // Returns information about the replication subnet groups. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Database Migration Service's +// API operation DescribeReplicationSubnetGroups for usage and error information. +// +// Returned Error Codes: +// * ResourceNotFoundFault +// The resource could not be found. +// func (c *DatabaseMigrationService) DescribeReplicationSubnetGroups(input *DescribeReplicationSubnetGroupsInput) (*DescribeReplicationSubnetGroupsOutput, error) { req, out := c.DescribeReplicationSubnetGroupsRequest(input) err := req.Send() @@ -947,6 +1331,8 @@ const opDescribeReplicationTasks = "DescribeReplicationTasks" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeReplicationTasks for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -981,8 +1367,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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Database Migration Service's +// API operation DescribeReplicationTasks for usage and error information. +// +// Returned Error Codes: +// * ResourceNotFoundFault +// The resource could not be found. +// func (c *DatabaseMigrationService) DescribeReplicationTasks(input *DescribeReplicationTasksInput) (*DescribeReplicationTasksOutput, error) { req, out := c.DescribeReplicationTasksRequest(input) err := req.Send() @@ -996,6 +1396,8 @@ const opDescribeSchemas = "DescribeSchemas" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeSchemas for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1030,7 +1432,25 @@ func (c *DatabaseMigrationService) DescribeSchemasRequest(input *DescribeSchemas return } +// DescribeSchemas API operation for AWS Database Migration Service. +// // Returns information about the schema for the specified endpoint. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Database Migration Service's +// API operation DescribeSchemas for usage and error information. +// +// Returned Error Codes: +// * InvalidResourceStateFault +// The resource is in a state that prevents it from being used for database +// migration. +// +// * ResourceNotFoundFault +// The resource could not be found. +// func (c *DatabaseMigrationService) DescribeSchemas(input *DescribeSchemasInput) (*DescribeSchemasOutput, error) { req, out := c.DescribeSchemasRequest(input) err := req.Send() @@ -1044,6 +1464,8 @@ const opDescribeTableStatistics = "DescribeTableStatistics" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeTableStatistics for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1078,8 +1500,26 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Database Migration Service's +// API operation DescribeTableStatistics for usage and error information. +// +// Returned Error Codes: +// * ResourceNotFoundFault +// The resource could not be found. +// +// * InvalidResourceStateFault +// The resource is in a state that prevents it from being used for database +// migration. +// func (c *DatabaseMigrationService) DescribeTableStatistics(input *DescribeTableStatisticsInput) (*DescribeTableStatisticsOutput, error) { req, out := c.DescribeTableStatisticsRequest(input) err := req.Send() @@ -1093,6 +1533,8 @@ const opImportCertificate = "ImportCertificate" // value can be used to capture response data after the request's "Send" method // is called. // +// See ImportCertificate for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1127,7 +1569,24 @@ func (c *DatabaseMigrationService) ImportCertificateRequest(input *ImportCertifi return } +// ImportCertificate API operation for AWS Database Migration Service. +// // Uploads the specified certificate. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Database Migration Service's +// API operation ImportCertificate for usage and error information. +// +// Returned Error Codes: +// * ResourceAlreadyExistsFault +// The resource you are attempting to create already exists. +// +// * InvalidCertificateFault +// The certificate was not valid. +// func (c *DatabaseMigrationService) ImportCertificate(input *ImportCertificateInput) (*ImportCertificateOutput, error) { req, out := c.ImportCertificateRequest(input) err := req.Send() @@ -1141,6 +1600,8 @@ const opListTagsForResource = "ListTagsForResource" // value can be used to capture response data after the request's "Send" method // is called. // +// See ListTagsForResource for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1175,7 +1636,21 @@ func (c *DatabaseMigrationService) ListTagsForResourceRequest(input *ListTagsFor return } +// ListTagsForResource API operation for AWS Database Migration Service. +// // Lists all tags for an AWS DMS resource. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Database Migration Service's +// API operation ListTagsForResource for usage and error information. +// +// Returned Error Codes: +// * ResourceNotFoundFault +// The resource could not be found. +// func (c *DatabaseMigrationService) ListTagsForResource(input *ListTagsForResourceInput) (*ListTagsForResourceOutput, error) { req, out := c.ListTagsForResourceRequest(input) err := req.Send() @@ -1189,6 +1664,8 @@ const opModifyEndpoint = "ModifyEndpoint" // value can be used to capture response data after the request's "Send" method // is called. // +// See ModifyEndpoint for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1223,7 +1700,31 @@ func (c *DatabaseMigrationService) ModifyEndpointRequest(input *ModifyEndpointIn return } +// ModifyEndpoint API operation for AWS Database Migration Service. +// // Modifies the specified endpoint. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Database Migration Service's +// API operation ModifyEndpoint for usage and error information. +// +// Returned Error Codes: +// * InvalidResourceStateFault +// The resource is in a state that prevents it from being used for database +// migration. +// +// * ResourceNotFoundFault +// The resource could not be found. +// +// * ResourceAlreadyExistsFault +// The resource you are attempting to create already exists. +// +// * KMSKeyNotAccessibleFault +// AWS DMS cannot access the KMS key. +// func (c *DatabaseMigrationService) ModifyEndpoint(input *ModifyEndpointInput) (*ModifyEndpointOutput, error) { req, out := c.ModifyEndpointRequest(input) err := req.Send() @@ -1237,6 +1738,8 @@ const opModifyReplicationInstance = "ModifyReplicationInstance" // value can be used to capture response data after the request's "Send" method // is called. // +// See ModifyReplicationInstance for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1271,11 +1774,41 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Database Migration Service's +// API operation ModifyReplicationInstance for usage and error information. +// +// Returned Error Codes: +// * InvalidResourceStateFault +// The resource is in a state that prevents it from being used for database +// migration. +// +// * ResourceAlreadyExistsFault +// The resource you are attempting to create already exists. +// +// * ResourceNotFoundFault +// The resource could not be found. +// +// * InsufficientResourceCapacityFault +// There are not enough resources allocated to the database migration. +// +// * StorageQuotaExceededFault +// The storage quota has been exceeded. +// +// * UpgradeDependencyFailureFault +// An upgrade dependency is preventing the database migration. +// func (c *DatabaseMigrationService) ModifyReplicationInstance(input *ModifyReplicationInstanceInput) (*ModifyReplicationInstanceOutput, error) { req, out := c.ModifyReplicationInstanceRequest(input) err := req.Send() @@ -1289,6 +1822,8 @@ const opModifyReplicationSubnetGroup = "ModifyReplicationSubnetGroup" // value can be used to capture response data after the request's "Send" method // is called. // +// See ModifyReplicationSubnetGroup for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1323,7 +1858,37 @@ func (c *DatabaseMigrationService) ModifyReplicationSubnetGroupRequest(input *Mo return } +// ModifyReplicationSubnetGroup API operation for AWS Database Migration Service. +// // Modifies the settings for the specified replication subnet group. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Database Migration Service's +// API operation ModifyReplicationSubnetGroup for usage and error information. +// +// Returned Error Codes: +// * AccessDeniedFault +// AWS DMS was denied access to the endpoint. +// +// * ResourceNotFoundFault +// The resource could not be found. +// +// * ResourceQuotaExceededFault +// The quota for this resource quota has been exceeded. +// +// * SubnetAlreadyInUse +// The specified subnet is already in use. +// +// * ReplicationSubnetGroupDoesNotCoverEnoughAZs +// The replication subnet group does not cover enough Availability Zones (AZs). +// Edit the replication subnet group and add more AZs. +// +// * InvalidSubnet +// The subnet provided is invalid. +// func (c *DatabaseMigrationService) ModifyReplicationSubnetGroup(input *ModifyReplicationSubnetGroupInput) (*ModifyReplicationSubnetGroupOutput, error) { req, out := c.ModifyReplicationSubnetGroupRequest(input) err := req.Send() @@ -1337,6 +1902,8 @@ const opRefreshSchemas = "RefreshSchemas" // value can be used to capture response data after the request's "Send" method // is called. // +// See RefreshSchemas for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1371,9 +1938,33 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Database Migration Service's +// API operation RefreshSchemas for usage and error information. +// +// Returned Error Codes: +// * InvalidResourceStateFault +// The resource is in a state that prevents it from being used for database +// migration. +// +// * ResourceNotFoundFault +// The resource could not be found. +// +// * KMSKeyNotAccessibleFault +// AWS DMS cannot access the KMS key. +// +// * ResourceQuotaExceededFault +// The quota for this resource quota has been exceeded. +// func (c *DatabaseMigrationService) RefreshSchemas(input *RefreshSchemasInput) (*RefreshSchemasOutput, error) { req, out := c.RefreshSchemasRequest(input) err := req.Send() @@ -1387,6 +1978,8 @@ const opRemoveTagsFromResource = "RemoveTagsFromResource" // value can be used to capture response data after the request's "Send" method // is called. // +// See RemoveTagsFromResource for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1421,7 +2014,21 @@ func (c *DatabaseMigrationService) RemoveTagsFromResourceRequest(input *RemoveTa return } +// RemoveTagsFromResource API operation for AWS Database Migration Service. +// // Removes metadata tags from a DMS resource. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Database Migration Service's +// API operation RemoveTagsFromResource for usage and error information. +// +// Returned Error Codes: +// * ResourceNotFoundFault +// The resource could not be found. +// func (c *DatabaseMigrationService) RemoveTagsFromResource(input *RemoveTagsFromResourceInput) (*RemoveTagsFromResourceOutput, error) { req, out := c.RemoveTagsFromResourceRequest(input) err := req.Send() @@ -1435,6 +2042,8 @@ const opStartReplicationTask = "StartReplicationTask" // value can be used to capture response data after the request's "Send" method // is called. // +// See StartReplicationTask for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1469,7 +2078,25 @@ func (c *DatabaseMigrationService) StartReplicationTaskRequest(input *StartRepli return } +// StartReplicationTask API operation for AWS Database Migration Service. +// // Starts the replication task. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Database Migration Service's +// API operation StartReplicationTask for usage and error information. +// +// Returned Error Codes: +// * ResourceNotFoundFault +// The resource could not be found. +// +// * InvalidResourceStateFault +// The resource is in a state that prevents it from being used for database +// migration. +// func (c *DatabaseMigrationService) StartReplicationTask(input *StartReplicationTaskInput) (*StartReplicationTaskOutput, error) { req, out := c.StartReplicationTaskRequest(input) err := req.Send() @@ -1483,6 +2110,8 @@ const opStopReplicationTask = "StopReplicationTask" // value can be used to capture response data after the request's "Send" method // is called. // +// See StopReplicationTask for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1517,7 +2146,25 @@ func (c *DatabaseMigrationService) StopReplicationTaskRequest(input *StopReplica return } +// StopReplicationTask API operation for AWS Database Migration Service. +// // Stops the replication task. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Database Migration Service's +// API operation StopReplicationTask for usage and error information. +// +// Returned Error Codes: +// * ResourceNotFoundFault +// The resource could not be found. +// +// * InvalidResourceStateFault +// The resource is in a state that prevents it from being used for database +// migration. +// func (c *DatabaseMigrationService) StopReplicationTask(input *StopReplicationTaskInput) (*StopReplicationTaskOutput, error) { req, out := c.StopReplicationTaskRequest(input) err := req.Send() @@ -1531,6 +2178,8 @@ const opTestConnection = "TestConnection" // value can be used to capture response data after the request's "Send" method // is called. // +// See TestConnection for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1565,7 +2214,31 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Database Migration Service's +// API operation TestConnection for usage and error information. +// +// Returned Error Codes: +// * ResourceNotFoundFault +// The resource could not be found. +// +// * InvalidResourceStateFault +// The resource is in a state that prevents it from being used for database +// migration. +// +// * KMSKeyNotAccessibleFault +// AWS DMS cannot access the KMS key. +// +// * ResourceQuotaExceededFault +// The quota for this resource quota has been exceeded. +// 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..20cd6b95dc7 100644 --- a/service/datapipeline/api.go +++ b/service/datapipeline/api.go @@ -20,6 +20,8 @@ const opActivatePipeline = "ActivatePipeline" // value can be used to capture response data after the request's "Send" method // is called. // +// See ActivatePipeline for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -54,6 +56,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 +66,30 @@ func (c *DataPipeline) ActivatePipelineRequest(input *ActivatePipelineInput) (re // // To activate a finished pipeline, modify the end date for the pipeline and // then activate it. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Data Pipeline's +// API operation ActivatePipeline for usage and error information. +// +// Returned Error Codes: +// * PipelineNotFoundException +// The specified pipeline was not found. Verify that you used the correct user +// and account identifiers. +// +// * PipelineDeletedException +// The specified pipeline has been deleted. +// +// * InternalServiceError +// An internal service error occurred. +// +// * InvalidRequestException +// The request was not valid. Verify that your request was properly formatted, +// that the signature was generated with the correct credentials, and that you +// haven't exceeded any of the service limits for your account. +// func (c *DataPipeline) ActivatePipeline(input *ActivatePipelineInput) (*ActivatePipelineOutput, error) { req, out := c.ActivatePipelineRequest(input) err := req.Send() @@ -75,6 +103,8 @@ const opAddTags = "AddTags" // value can be used to capture response data after the request's "Send" method // is called. // +// See AddTags for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -109,7 +139,33 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Data Pipeline's +// API operation AddTags for usage and error information. +// +// Returned Error Codes: +// * InternalServiceError +// An internal service error occurred. +// +// * InvalidRequestException +// The request was not valid. Verify that your request was properly formatted, +// that the signature was generated with the correct credentials, and that you +// haven't exceeded any of the service limits for your account. +// +// * PipelineNotFoundException +// The specified pipeline was not found. Verify that you used the correct user +// and account identifiers. +// +// * PipelineDeletedException +// The specified pipeline has been deleted. +// func (c *DataPipeline) AddTags(input *AddTagsInput) (*AddTagsOutput, error) { req, out := c.AddTagsRequest(input) err := req.Send() @@ -123,6 +179,8 @@ const opCreatePipeline = "CreatePipeline" // value can be used to capture response data after the request's "Send" method // is called. // +// See CreatePipeline for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -157,8 +215,27 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Data Pipeline's +// API operation CreatePipeline for usage and error information. +// +// Returned Error Codes: +// * InternalServiceError +// An internal service error occurred. +// +// * InvalidRequestException +// The request was not valid. Verify that your request was properly formatted, +// that the signature was generated with the correct credentials, and that you +// haven't exceeded any of the service limits for your account. +// func (c *DataPipeline) CreatePipeline(input *CreatePipelineInput) (*CreatePipelineOutput, error) { req, out := c.CreatePipelineRequest(input) err := req.Send() @@ -172,6 +249,8 @@ const opDeactivatePipeline = "DeactivatePipeline" // value can be used to capture response data after the request's "Send" method // is called. // +// See DeactivatePipeline for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -206,12 +285,38 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Data Pipeline's +// API operation DeactivatePipeline for usage and error information. +// +// Returned Error Codes: +// * PipelineNotFoundException +// The specified pipeline was not found. Verify that you used the correct user +// and account identifiers. +// +// * PipelineDeletedException +// The specified pipeline has been deleted. +// +// * InternalServiceError +// An internal service error occurred. +// +// * InvalidRequestException +// The request was not valid. Verify that your request was properly formatted, +// that the signature was generated with the correct credentials, and that you +// haven't exceeded any of the service limits for your account. +// func (c *DataPipeline) DeactivatePipeline(input *DeactivatePipelineInput) (*DeactivatePipelineOutput, error) { req, out := c.DeactivatePipelineRequest(input) err := req.Send() @@ -225,6 +330,8 @@ const opDeletePipeline = "DeletePipeline" // value can be used to capture response data after the request's "Send" method // is called. // +// See DeletePipeline for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -261,6 +368,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 +378,27 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Data Pipeline's +// API operation DeletePipeline for usage and error information. +// +// Returned Error Codes: +// * PipelineNotFoundException +// The specified pipeline was not found. Verify that you used the correct user +// and account identifiers. +// +// * InternalServiceError +// An internal service error occurred. +// +// * InvalidRequestException +// The request was not valid. Verify that your request was properly formatted, +// that the signature was generated with the correct credentials, and that you +// haven't exceeded any of the service limits for your account. +// func (c *DataPipeline) DeletePipeline(input *DeletePipelineInput) (*DeletePipelineOutput, error) { req, out := c.DeletePipelineRequest(input) err := req.Send() @@ -282,6 +412,8 @@ const opDescribeObjects = "DescribeObjects" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeObjects for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -322,9 +454,35 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Data Pipeline's +// API operation DescribeObjects for usage and error information. +// +// Returned Error Codes: +// * InternalServiceError +// An internal service error occurred. +// +// * InvalidRequestException +// The request was not valid. Verify that your request was properly formatted, +// that the signature was generated with the correct credentials, and that you +// haven't exceeded any of the service limits for your account. +// +// * PipelineNotFoundException +// The specified pipeline was not found. Verify that you used the correct user +// and account identifiers. +// +// * PipelineDeletedException +// The specified pipeline has been deleted. +// func (c *DataPipeline) DescribeObjects(input *DescribeObjectsInput) (*DescribeObjectsOutput, error) { req, out := c.DescribeObjectsRequest(input) err := req.Send() @@ -363,6 +521,8 @@ const opDescribePipelines = "DescribePipelines" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribePipelines for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -397,6 +557,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 +568,30 @@ func (c *DataPipeline) DescribePipelinesRequest(input *DescribePipelinesInput) ( // // To retrieve the full pipeline definition instead of metadata about the pipeline, // call GetPipelineDefinition. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Data Pipeline's +// API operation DescribePipelines for usage and error information. +// +// Returned Error Codes: +// * PipelineNotFoundException +// The specified pipeline was not found. Verify that you used the correct user +// and account identifiers. +// +// * PipelineDeletedException +// The specified pipeline has been deleted. +// +// * InternalServiceError +// An internal service error occurred. +// +// * InvalidRequestException +// The request was not valid. Verify that your request was properly formatted, +// that the signature was generated with the correct credentials, and that you +// haven't exceeded any of the service limits for your account. +// func (c *DataPipeline) DescribePipelines(input *DescribePipelinesInput) (*DescribePipelinesOutput, error) { req, out := c.DescribePipelinesRequest(input) err := req.Send() @@ -419,6 +605,8 @@ const opEvaluateExpression = "EvaluateExpression" // value can be used to capture response data after the request's "Send" method // is called. // +// See EvaluateExpression for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -453,9 +641,38 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Data Pipeline's +// API operation EvaluateExpression for usage and error information. +// +// Returned Error Codes: +// * InternalServiceError +// An internal service error occurred. +// +// * TaskNotFoundException +// The specified task was not found. +// +// * InvalidRequestException +// The request was not valid. Verify that your request was properly formatted, +// that the signature was generated with the correct credentials, and that you +// haven't exceeded any of the service limits for your account. +// +// * PipelineNotFoundException +// The specified pipeline was not found. Verify that you used the correct user +// and account identifiers. +// +// * PipelineDeletedException +// The specified pipeline has been deleted. +// func (c *DataPipeline) EvaluateExpression(input *EvaluateExpressionInput) (*EvaluateExpressionOutput, error) { req, out := c.EvaluateExpressionRequest(input) err := req.Send() @@ -469,6 +686,8 @@ const opGetPipelineDefinition = "GetPipelineDefinition" // value can be used to capture response data after the request's "Send" method // is called. // +// See GetPipelineDefinition for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -503,8 +722,34 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Data Pipeline's +// API operation GetPipelineDefinition for usage and error information. +// +// Returned Error Codes: +// * InternalServiceError +// An internal service error occurred. +// +// * InvalidRequestException +// The request was not valid. Verify that your request was properly formatted, +// that the signature was generated with the correct credentials, and that you +// haven't exceeded any of the service limits for your account. +// +// * PipelineNotFoundException +// The specified pipeline was not found. Verify that you used the correct user +// and account identifiers. +// +// * PipelineDeletedException +// The specified pipeline has been deleted. +// func (c *DataPipeline) GetPipelineDefinition(input *GetPipelineDefinitionInput) (*GetPipelineDefinitionOutput, error) { req, out := c.GetPipelineDefinitionRequest(input) err := req.Send() @@ -518,6 +763,8 @@ const opListPipelines = "ListPipelines" // value can be used to capture response data after the request's "Send" method // is called. // +// See ListPipelines for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -558,8 +805,27 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Data Pipeline's +// API operation ListPipelines for usage and error information. +// +// Returned Error Codes: +// * InternalServiceError +// An internal service error occurred. +// +// * InvalidRequestException +// The request was not valid. Verify that your request was properly formatted, +// that the signature was generated with the correct credentials, and that you +// haven't exceeded any of the service limits for your account. +// func (c *DataPipeline) ListPipelines(input *ListPipelinesInput) (*ListPipelinesOutput, error) { req, out := c.ListPipelinesRequest(input) err := req.Send() @@ -598,6 +864,8 @@ const opPollForTask = "PollForTask" // value can be used to capture response data after the request's "Send" method // is called. // +// See PollForTask for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -632,6 +900,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 +916,26 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Data Pipeline's +// API operation PollForTask for usage and error information. +// +// Returned Error Codes: +// * InternalServiceError +// An internal service error occurred. +// +// * InvalidRequestException +// The request was not valid. Verify that your request was properly formatted, +// that the signature was generated with the correct credentials, and that you +// haven't exceeded any of the service limits for your account. +// +// * TaskNotFoundException +// The specified task was not found. +// func (c *DataPipeline) PollForTask(input *PollForTaskInput) (*PollForTaskOutput, error) { req, out := c.PollForTaskRequest(input) err := req.Send() @@ -659,6 +949,8 @@ const opPutPipelineDefinition = "PutPipelineDefinition" // value can be used to capture response data after the request's "Send" method // is called. // +// See PutPipelineDefinition for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -693,6 +985,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 +999,30 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Data Pipeline's +// API operation PutPipelineDefinition for usage and error information. +// +// Returned Error Codes: +// * InternalServiceError +// An internal service error occurred. +// +// * InvalidRequestException +// The request was not valid. Verify that your request was properly formatted, +// that the signature was generated with the correct credentials, and that you +// haven't exceeded any of the service limits for your account. +// +// * PipelineNotFoundException +// The specified pipeline was not found. Verify that you used the correct user +// and account identifiers. +// +// * PipelineDeletedException +// The specified pipeline has been deleted. +// func (c *DataPipeline) PutPipelineDefinition(input *PutPipelineDefinitionInput) (*PutPipelineDefinitionOutput, error) { req, out := c.PutPipelineDefinitionRequest(input) err := req.Send() @@ -718,6 +1036,8 @@ const opQueryObjects = "QueryObjects" // value can be used to capture response data after the request's "Send" method // is called. // +// See QueryObjects for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -758,8 +1078,34 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Data Pipeline's +// API operation QueryObjects for usage and error information. +// +// Returned Error Codes: +// * PipelineNotFoundException +// The specified pipeline was not found. Verify that you used the correct user +// and account identifiers. +// +// * PipelineDeletedException +// The specified pipeline has been deleted. +// +// * InternalServiceError +// An internal service error occurred. +// +// * InvalidRequestException +// The request was not valid. Verify that your request was properly formatted, +// that the signature was generated with the correct credentials, and that you +// haven't exceeded any of the service limits for your account. +// func (c *DataPipeline) QueryObjects(input *QueryObjectsInput) (*QueryObjectsOutput, error) { req, out := c.QueryObjectsRequest(input) err := req.Send() @@ -798,6 +1144,8 @@ const opRemoveTags = "RemoveTags" // value can be used to capture response data after the request's "Send" method // is called. // +// See RemoveTags for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -832,7 +1180,33 @@ func (c *DataPipeline) RemoveTagsRequest(input *RemoveTagsInput) (req *request.R return } +// RemoveTags API operation for AWS Data Pipeline. +// // Removes existing tags from the specified pipeline. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Data Pipeline's +// API operation RemoveTags for usage and error information. +// +// Returned Error Codes: +// * InternalServiceError +// An internal service error occurred. +// +// * InvalidRequestException +// The request was not valid. Verify that your request was properly formatted, +// that the signature was generated with the correct credentials, and that you +// haven't exceeded any of the service limits for your account. +// +// * PipelineNotFoundException +// The specified pipeline was not found. Verify that you used the correct user +// and account identifiers. +// +// * PipelineDeletedException +// The specified pipeline has been deleted. +// func (c *DataPipeline) RemoveTags(input *RemoveTagsInput) (*RemoveTagsOutput, error) { req, out := c.RemoveTagsRequest(input) err := req.Send() @@ -846,6 +1220,8 @@ const opReportTaskProgress = "ReportTaskProgress" // value can be used to capture response data after the request's "Send" method // is called. // +// See ReportTaskProgress for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -880,6 +1256,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 +1270,33 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Data Pipeline's +// API operation ReportTaskProgress for usage and error information. +// +// Returned Error Codes: +// * InternalServiceError +// An internal service error occurred. +// +// * InvalidRequestException +// The request was not valid. Verify that your request was properly formatted, +// that the signature was generated with the correct credentials, and that you +// haven't exceeded any of the service limits for your account. +// +// * TaskNotFoundException +// The specified task was not found. +// +// * PipelineNotFoundException +// The specified pipeline was not found. Verify that you used the correct user +// and account identifiers. +// +// * PipelineDeletedException +// The specified pipeline has been deleted. +// func (c *DataPipeline) ReportTaskProgress(input *ReportTaskProgressInput) (*ReportTaskProgressOutput, error) { req, out := c.ReportTaskProgressRequest(input) err := req.Send() @@ -905,6 +1310,8 @@ const opReportTaskRunnerHeartbeat = "ReportTaskRunnerHeartbeat" // value can be used to capture response data after the request's "Send" method // is called. // +// See ReportTaskRunnerHeartbeat for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -939,11 +1346,30 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Data Pipeline's +// API operation ReportTaskRunnerHeartbeat for usage and error information. +// +// Returned Error Codes: +// * InternalServiceError +// An internal service error occurred. +// +// * InvalidRequestException +// The request was not valid. Verify that your request was properly formatted, +// that the signature was generated with the correct credentials, and that you +// haven't exceeded any of the service limits for your account. +// func (c *DataPipeline) ReportTaskRunnerHeartbeat(input *ReportTaskRunnerHeartbeatInput) (*ReportTaskRunnerHeartbeatOutput, error) { req, out := c.ReportTaskRunnerHeartbeatRequest(input) err := req.Send() @@ -957,6 +1383,8 @@ const opSetStatus = "SetStatus" // value can be used to capture response data after the request's "Send" method // is called. // +// See SetStatus for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -993,11 +1421,37 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Data Pipeline's +// API operation SetStatus for usage and error information. +// +// Returned Error Codes: +// * PipelineNotFoundException +// The specified pipeline was not found. Verify that you used the correct user +// and account identifiers. +// +// * PipelineDeletedException +// The specified pipeline has been deleted. +// +// * InternalServiceError +// An internal service error occurred. +// +// * InvalidRequestException +// The request was not valid. Verify that your request was properly formatted, +// that the signature was generated with the correct credentials, and that you +// haven't exceeded any of the service limits for your account. +// func (c *DataPipeline) SetStatus(input *SetStatusInput) (*SetStatusOutput, error) { req, out := c.SetStatusRequest(input) err := req.Send() @@ -1011,6 +1465,8 @@ const opSetTaskStatus = "SetTaskStatus" // value can be used to capture response data after the request's "Send" method // is called. // +// See SetTaskStatus for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1045,11 +1501,40 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Data Pipeline's +// API operation SetTaskStatus for usage and error information. +// +// Returned Error Codes: +// * InternalServiceError +// An internal service error occurred. +// +// * TaskNotFoundException +// The specified task was not found. +// +// * InvalidRequestException +// The request was not valid. Verify that your request was properly formatted, +// that the signature was generated with the correct credentials, and that you +// haven't exceeded any of the service limits for your account. +// +// * PipelineNotFoundException +// The specified pipeline was not found. Verify that you used the correct user +// and account identifiers. +// +// * PipelineDeletedException +// The specified pipeline has been deleted. +// func (c *DataPipeline) SetTaskStatus(input *SetTaskStatusInput) (*SetTaskStatusOutput, error) { req, out := c.SetTaskStatusRequest(input) err := req.Send() @@ -1063,6 +1548,8 @@ const opValidatePipelineDefinition = "ValidatePipelineDefinition" // value can be used to capture response data after the request's "Send" method // is called. // +// See ValidatePipelineDefinition for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1097,8 +1584,34 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Data Pipeline's +// API operation ValidatePipelineDefinition for usage and error information. +// +// Returned Error Codes: +// * InternalServiceError +// An internal service error occurred. +// +// * InvalidRequestException +// The request was not valid. Verify that your request was properly formatted, +// that the signature was generated with the correct credentials, and that you +// haven't exceeded any of the service limits for your account. +// +// * PipelineNotFoundException +// The specified pipeline was not found. Verify that you used the correct user +// and account identifiers. +// +// * PipelineDeletedException +// The specified pipeline has been deleted. +// 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..808b9ca3153 100644 --- a/service/devicefarm/api.go +++ b/service/devicefarm/api.go @@ -17,6 +17,8 @@ const opCreateDevicePool = "CreateDevicePool" // value can be used to capture response data after the request's "Send" method // is called. // +// See CreateDevicePool for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -51,7 +53,30 @@ func (c *DeviceFarm) CreateDevicePoolRequest(input *CreateDevicePoolInput) (req return } +// CreateDevicePool API operation for AWS Device Farm. +// // Creates a device pool. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Device Farm's +// API operation CreateDevicePool for usage and error information. +// +// Returned Error Codes: +// * ArgumentException +// An invalid argument was specified. +// +// * NotFoundException +// The specified entity was not found. +// +// * LimitExceededException +// A limit was exceeded. +// +// * ServiceAccountException +// There was a problem with the service account. +// func (c *DeviceFarm) CreateDevicePool(input *CreateDevicePoolInput) (*CreateDevicePoolOutput, error) { req, out := c.CreateDevicePoolRequest(input) err := req.Send() @@ -65,6 +90,8 @@ const opCreateProject = "CreateProject" // value can be used to capture response data after the request's "Send" method // is called. // +// See CreateProject for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -99,7 +126,30 @@ func (c *DeviceFarm) CreateProjectRequest(input *CreateProjectInput) (req *reque return } +// CreateProject API operation for AWS Device Farm. +// // Creates a new project. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Device Farm's +// API operation CreateProject for usage and error information. +// +// Returned Error Codes: +// * ArgumentException +// An invalid argument was specified. +// +// * NotFoundException +// The specified entity was not found. +// +// * LimitExceededException +// A limit was exceeded. +// +// * ServiceAccountException +// There was a problem with the service account. +// func (c *DeviceFarm) CreateProject(input *CreateProjectInput) (*CreateProjectOutput, error) { req, out := c.CreateProjectRequest(input) err := req.Send() @@ -113,6 +163,8 @@ const opCreateRemoteAccessSession = "CreateRemoteAccessSession" // value can be used to capture response data after the request's "Send" method // is called. // +// See CreateRemoteAccessSession for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -147,7 +199,30 @@ func (c *DeviceFarm) CreateRemoteAccessSessionRequest(input *CreateRemoteAccessS return } +// CreateRemoteAccessSession API operation for AWS Device Farm. +// // Specifies and starts a remote access session. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Device Farm's +// API operation CreateRemoteAccessSession for usage and error information. +// +// Returned Error Codes: +// * ArgumentException +// An invalid argument was specified. +// +// * NotFoundException +// The specified entity was not found. +// +// * LimitExceededException +// A limit was exceeded. +// +// * ServiceAccountException +// There was a problem with the service account. +// func (c *DeviceFarm) CreateRemoteAccessSession(input *CreateRemoteAccessSessionInput) (*CreateRemoteAccessSessionOutput, error) { req, out := c.CreateRemoteAccessSessionRequest(input) err := req.Send() @@ -161,6 +236,8 @@ const opCreateUpload = "CreateUpload" // value can be used to capture response data after the request's "Send" method // is called. // +// See CreateUpload for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -195,7 +272,30 @@ func (c *DeviceFarm) CreateUploadRequest(input *CreateUploadInput) (req *request return } +// CreateUpload API operation for AWS Device Farm. +// // Uploads an app or test scripts. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Device Farm's +// API operation CreateUpload for usage and error information. +// +// Returned Error Codes: +// * ArgumentException +// An invalid argument was specified. +// +// * NotFoundException +// The specified entity was not found. +// +// * LimitExceededException +// A limit was exceeded. +// +// * ServiceAccountException +// There was a problem with the service account. +// func (c *DeviceFarm) CreateUpload(input *CreateUploadInput) (*CreateUploadOutput, error) { req, out := c.CreateUploadRequest(input) err := req.Send() @@ -209,6 +309,8 @@ const opDeleteDevicePool = "DeleteDevicePool" // value can be used to capture response data after the request's "Send" method // is called. // +// See DeleteDevicePool for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -243,8 +345,31 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Device Farm's +// API operation DeleteDevicePool for usage and error information. +// +// Returned Error Codes: +// * ArgumentException +// An invalid argument was specified. +// +// * NotFoundException +// The specified entity was not found. +// +// * LimitExceededException +// A limit was exceeded. +// +// * ServiceAccountException +// There was a problem with the service account. +// func (c *DeviceFarm) DeleteDevicePool(input *DeleteDevicePoolInput) (*DeleteDevicePoolOutput, error) { req, out := c.DeleteDevicePoolRequest(input) err := req.Send() @@ -258,6 +383,8 @@ const opDeleteProject = "DeleteProject" // value can be used to capture response data after the request's "Send" method // is called. // +// See DeleteProject for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -292,9 +419,32 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Device Farm's +// API operation DeleteProject for usage and error information. +// +// Returned Error Codes: +// * ArgumentException +// An invalid argument was specified. +// +// * NotFoundException +// The specified entity was not found. +// +// * LimitExceededException +// A limit was exceeded. +// +// * ServiceAccountException +// There was a problem with the service account. +// func (c *DeviceFarm) DeleteProject(input *DeleteProjectInput) (*DeleteProjectOutput, error) { req, out := c.DeleteProjectRequest(input) err := req.Send() @@ -308,6 +458,8 @@ const opDeleteRemoteAccessSession = "DeleteRemoteAccessSession" // value can be used to capture response data after the request's "Send" method // is called. // +// See DeleteRemoteAccessSession for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -342,7 +494,30 @@ func (c *DeviceFarm) DeleteRemoteAccessSessionRequest(input *DeleteRemoteAccessS return } +// DeleteRemoteAccessSession API operation for AWS Device Farm. +// // Deletes a completed remote access session and its results. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Device Farm's +// API operation DeleteRemoteAccessSession for usage and error information. +// +// Returned Error Codes: +// * ArgumentException +// An invalid argument was specified. +// +// * NotFoundException +// The specified entity was not found. +// +// * LimitExceededException +// A limit was exceeded. +// +// * ServiceAccountException +// There was a problem with the service account. +// func (c *DeviceFarm) DeleteRemoteAccessSession(input *DeleteRemoteAccessSessionInput) (*DeleteRemoteAccessSessionOutput, error) { req, out := c.DeleteRemoteAccessSessionRequest(input) err := req.Send() @@ -356,6 +531,8 @@ const opDeleteRun = "DeleteRun" // value can be used to capture response data after the request's "Send" method // is called. // +// See DeleteRun for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -390,9 +567,32 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Device Farm's +// API operation DeleteRun for usage and error information. +// +// Returned Error Codes: +// * ArgumentException +// An invalid argument was specified. +// +// * NotFoundException +// The specified entity was not found. +// +// * LimitExceededException +// A limit was exceeded. +// +// * ServiceAccountException +// There was a problem with the service account. +// func (c *DeviceFarm) DeleteRun(input *DeleteRunInput) (*DeleteRunOutput, error) { req, out := c.DeleteRunRequest(input) err := req.Send() @@ -406,6 +606,8 @@ const opDeleteUpload = "DeleteUpload" // value can be used to capture response data after the request's "Send" method // is called. // +// See DeleteUpload for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -440,7 +642,30 @@ func (c *DeviceFarm) DeleteUploadRequest(input *DeleteUploadInput) (req *request return } +// DeleteUpload API operation for AWS Device Farm. +// // Deletes an upload given the upload ARN. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Device Farm's +// API operation DeleteUpload for usage and error information. +// +// Returned Error Codes: +// * ArgumentException +// An invalid argument was specified. +// +// * NotFoundException +// The specified entity was not found. +// +// * LimitExceededException +// A limit was exceeded. +// +// * ServiceAccountException +// There was a problem with the service account. +// func (c *DeviceFarm) DeleteUpload(input *DeleteUploadInput) (*DeleteUploadOutput, error) { req, out := c.DeleteUploadRequest(input) err := req.Send() @@ -454,6 +679,8 @@ const opGetAccountSettings = "GetAccountSettings" // value can be used to capture response data after the request's "Send" method // is called. // +// See GetAccountSettings for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -488,8 +715,31 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Device Farm's +// API operation GetAccountSettings for usage and error information. +// +// Returned Error Codes: +// * ArgumentException +// An invalid argument was specified. +// +// * NotFoundException +// The specified entity was not found. +// +// * LimitExceededException +// A limit was exceeded. +// +// * ServiceAccountException +// There was a problem with the service account. +// func (c *DeviceFarm) GetAccountSettings(input *GetAccountSettingsInput) (*GetAccountSettingsOutput, error) { req, out := c.GetAccountSettingsRequest(input) err := req.Send() @@ -503,6 +753,8 @@ const opGetDevice = "GetDevice" // value can be used to capture response data after the request's "Send" method // is called. // +// See GetDevice for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -537,7 +789,30 @@ func (c *DeviceFarm) GetDeviceRequest(input *GetDeviceInput) (req *request.Reque return } +// GetDevice API operation for AWS Device Farm. +// // Gets information about a unique device type. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Device Farm's +// API operation GetDevice for usage and error information. +// +// Returned Error Codes: +// * ArgumentException +// An invalid argument was specified. +// +// * NotFoundException +// The specified entity was not found. +// +// * LimitExceededException +// A limit was exceeded. +// +// * ServiceAccountException +// There was a problem with the service account. +// func (c *DeviceFarm) GetDevice(input *GetDeviceInput) (*GetDeviceOutput, error) { req, out := c.GetDeviceRequest(input) err := req.Send() @@ -551,6 +826,8 @@ const opGetDevicePool = "GetDevicePool" // value can be used to capture response data after the request's "Send" method // is called. // +// See GetDevicePool for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -585,7 +862,30 @@ func (c *DeviceFarm) GetDevicePoolRequest(input *GetDevicePoolInput) (req *reque return } +// GetDevicePool API operation for AWS Device Farm. +// // Gets information about a device pool. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Device Farm's +// API operation GetDevicePool for usage and error information. +// +// Returned Error Codes: +// * ArgumentException +// An invalid argument was specified. +// +// * NotFoundException +// The specified entity was not found. +// +// * LimitExceededException +// A limit was exceeded. +// +// * ServiceAccountException +// There was a problem with the service account. +// func (c *DeviceFarm) GetDevicePool(input *GetDevicePoolInput) (*GetDevicePoolOutput, error) { req, out := c.GetDevicePoolRequest(input) err := req.Send() @@ -599,6 +899,8 @@ const opGetDevicePoolCompatibility = "GetDevicePoolCompatibility" // value can be used to capture response data after the request's "Send" method // is called. // +// See GetDevicePoolCompatibility for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -633,7 +935,30 @@ func (c *DeviceFarm) GetDevicePoolCompatibilityRequest(input *GetDevicePoolCompa return } +// GetDevicePoolCompatibility API operation for AWS Device Farm. +// // Gets information about compatibility with a device pool. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Device Farm's +// API operation GetDevicePoolCompatibility for usage and error information. +// +// Returned Error Codes: +// * ArgumentException +// An invalid argument was specified. +// +// * NotFoundException +// The specified entity was not found. +// +// * LimitExceededException +// A limit was exceeded. +// +// * ServiceAccountException +// There was a problem with the service account. +// func (c *DeviceFarm) GetDevicePoolCompatibility(input *GetDevicePoolCompatibilityInput) (*GetDevicePoolCompatibilityOutput, error) { req, out := c.GetDevicePoolCompatibilityRequest(input) err := req.Send() @@ -647,6 +972,8 @@ const opGetJob = "GetJob" // value can be used to capture response data after the request's "Send" method // is called. // +// See GetJob for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -681,7 +1008,30 @@ func (c *DeviceFarm) GetJobRequest(input *GetJobInput) (req *request.Request, ou return } +// GetJob API operation for AWS Device Farm. +// // Gets information about a job. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Device Farm's +// API operation GetJob for usage and error information. +// +// Returned Error Codes: +// * ArgumentException +// An invalid argument was specified. +// +// * NotFoundException +// The specified entity was not found. +// +// * LimitExceededException +// A limit was exceeded. +// +// * ServiceAccountException +// There was a problem with the service account. +// func (c *DeviceFarm) GetJob(input *GetJobInput) (*GetJobOutput, error) { req, out := c.GetJobRequest(input) err := req.Send() @@ -695,6 +1045,8 @@ const opGetOfferingStatus = "GetOfferingStatus" // value can be used to capture response data after the request's "Send" method // is called. // +// See GetOfferingStatus for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -735,12 +1087,39 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Device Farm's +// API operation GetOfferingStatus for usage and error information. +// +// Returned Error Codes: +// * ArgumentException +// An invalid argument was specified. +// +// * NotFoundException +// The specified entity was not found. +// +// * NotEligibleException +// Exception gets thrown when a user is not eligible to perform the specified +// transaction. +// +// * LimitExceededException +// A limit was exceeded. +// +// * ServiceAccountException +// There was a problem with the service account. +// func (c *DeviceFarm) GetOfferingStatus(input *GetOfferingStatusInput) (*GetOfferingStatusOutput, error) { req, out := c.GetOfferingStatusRequest(input) err := req.Send() @@ -779,6 +1158,8 @@ const opGetProject = "GetProject" // value can be used to capture response data after the request's "Send" method // is called. // +// See GetProject for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -813,7 +1194,30 @@ func (c *DeviceFarm) GetProjectRequest(input *GetProjectInput) (req *request.Req return } +// GetProject API operation for AWS Device Farm. +// // Gets information about a project. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Device Farm's +// API operation GetProject for usage and error information. +// +// Returned Error Codes: +// * ArgumentException +// An invalid argument was specified. +// +// * NotFoundException +// The specified entity was not found. +// +// * LimitExceededException +// A limit was exceeded. +// +// * ServiceAccountException +// There was a problem with the service account. +// func (c *DeviceFarm) GetProject(input *GetProjectInput) (*GetProjectOutput, error) { req, out := c.GetProjectRequest(input) err := req.Send() @@ -827,6 +1231,8 @@ const opGetRemoteAccessSession = "GetRemoteAccessSession" // value can be used to capture response data after the request's "Send" method // is called. // +// See GetRemoteAccessSession for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -861,7 +1267,30 @@ func (c *DeviceFarm) GetRemoteAccessSessionRequest(input *GetRemoteAccessSession return } +// GetRemoteAccessSession API operation for AWS Device Farm. +// // Returns a link to a currently running remote access session. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Device Farm's +// API operation GetRemoteAccessSession for usage and error information. +// +// Returned Error Codes: +// * ArgumentException +// An invalid argument was specified. +// +// * NotFoundException +// The specified entity was not found. +// +// * LimitExceededException +// A limit was exceeded. +// +// * ServiceAccountException +// There was a problem with the service account. +// func (c *DeviceFarm) GetRemoteAccessSession(input *GetRemoteAccessSessionInput) (*GetRemoteAccessSessionOutput, error) { req, out := c.GetRemoteAccessSessionRequest(input) err := req.Send() @@ -875,6 +1304,8 @@ const opGetRun = "GetRun" // value can be used to capture response data after the request's "Send" method // is called. // +// See GetRun for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -909,7 +1340,30 @@ func (c *DeviceFarm) GetRunRequest(input *GetRunInput) (req *request.Request, ou return } +// GetRun API operation for AWS Device Farm. +// // Gets information about a run. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Device Farm's +// API operation GetRun for usage and error information. +// +// Returned Error Codes: +// * ArgumentException +// An invalid argument was specified. +// +// * NotFoundException +// The specified entity was not found. +// +// * LimitExceededException +// A limit was exceeded. +// +// * ServiceAccountException +// There was a problem with the service account. +// func (c *DeviceFarm) GetRun(input *GetRunInput) (*GetRunOutput, error) { req, out := c.GetRunRequest(input) err := req.Send() @@ -923,6 +1377,8 @@ const opGetSuite = "GetSuite" // value can be used to capture response data after the request's "Send" method // is called. // +// See GetSuite for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -957,7 +1413,30 @@ func (c *DeviceFarm) GetSuiteRequest(input *GetSuiteInput) (req *request.Request return } +// GetSuite API operation for AWS Device Farm. +// // Gets information about a suite. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Device Farm's +// API operation GetSuite for usage and error information. +// +// Returned Error Codes: +// * ArgumentException +// An invalid argument was specified. +// +// * NotFoundException +// The specified entity was not found. +// +// * LimitExceededException +// A limit was exceeded. +// +// * ServiceAccountException +// There was a problem with the service account. +// func (c *DeviceFarm) GetSuite(input *GetSuiteInput) (*GetSuiteOutput, error) { req, out := c.GetSuiteRequest(input) err := req.Send() @@ -971,6 +1450,8 @@ const opGetTest = "GetTest" // value can be used to capture response data after the request's "Send" method // is called. // +// See GetTest for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1005,7 +1486,30 @@ func (c *DeviceFarm) GetTestRequest(input *GetTestInput) (req *request.Request, return } +// GetTest API operation for AWS Device Farm. +// // Gets information about a test. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Device Farm's +// API operation GetTest for usage and error information. +// +// Returned Error Codes: +// * ArgumentException +// An invalid argument was specified. +// +// * NotFoundException +// The specified entity was not found. +// +// * LimitExceededException +// A limit was exceeded. +// +// * ServiceAccountException +// There was a problem with the service account. +// func (c *DeviceFarm) GetTest(input *GetTestInput) (*GetTestOutput, error) { req, out := c.GetTestRequest(input) err := req.Send() @@ -1019,6 +1523,8 @@ const opGetUpload = "GetUpload" // value can be used to capture response data after the request's "Send" method // is called. // +// See GetUpload for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1053,7 +1559,30 @@ func (c *DeviceFarm) GetUploadRequest(input *GetUploadInput) (req *request.Reque return } +// GetUpload API operation for AWS Device Farm. +// // Gets information about an upload. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Device Farm's +// API operation GetUpload for usage and error information. +// +// Returned Error Codes: +// * ArgumentException +// An invalid argument was specified. +// +// * NotFoundException +// The specified entity was not found. +// +// * LimitExceededException +// A limit was exceeded. +// +// * ServiceAccountException +// There was a problem with the service account. +// func (c *DeviceFarm) GetUpload(input *GetUploadInput) (*GetUploadOutput, error) { req, out := c.GetUploadRequest(input) err := req.Send() @@ -1067,6 +1596,8 @@ const opInstallToRemoteAccessSession = "InstallToRemoteAccessSession" // value can be used to capture response data after the request's "Send" method // is called. // +// See InstallToRemoteAccessSession for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1101,9 +1632,32 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Device Farm's +// API operation InstallToRemoteAccessSession for usage and error information. +// +// Returned Error Codes: +// * ArgumentException +// An invalid argument was specified. +// +// * NotFoundException +// The specified entity was not found. +// +// * LimitExceededException +// A limit was exceeded. +// +// * ServiceAccountException +// There was a problem with the service account. +// func (c *DeviceFarm) InstallToRemoteAccessSession(input *InstallToRemoteAccessSessionInput) (*InstallToRemoteAccessSessionOutput, error) { req, out := c.InstallToRemoteAccessSessionRequest(input) err := req.Send() @@ -1117,6 +1671,8 @@ const opListArtifacts = "ListArtifacts" // value can be used to capture response data after the request's "Send" method // is called. // +// See ListArtifacts for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1157,7 +1713,30 @@ func (c *DeviceFarm) ListArtifactsRequest(input *ListArtifactsInput) (req *reque return } +// ListArtifacts API operation for AWS Device Farm. +// // Gets information about artifacts. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Device Farm's +// API operation ListArtifacts for usage and error information. +// +// Returned Error Codes: +// * ArgumentException +// An invalid argument was specified. +// +// * NotFoundException +// The specified entity was not found. +// +// * LimitExceededException +// A limit was exceeded. +// +// * ServiceAccountException +// There was a problem with the service account. +// func (c *DeviceFarm) ListArtifacts(input *ListArtifactsInput) (*ListArtifactsOutput, error) { req, out := c.ListArtifactsRequest(input) err := req.Send() @@ -1196,6 +1775,8 @@ const opListDevicePools = "ListDevicePools" // value can be used to capture response data after the request's "Send" method // is called. // +// See ListDevicePools for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1236,7 +1817,30 @@ func (c *DeviceFarm) ListDevicePoolsRequest(input *ListDevicePoolsInput) (req *r return } +// ListDevicePools API operation for AWS Device Farm. +// // Gets information about device pools. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Device Farm's +// API operation ListDevicePools for usage and error information. +// +// Returned Error Codes: +// * ArgumentException +// An invalid argument was specified. +// +// * NotFoundException +// The specified entity was not found. +// +// * LimitExceededException +// A limit was exceeded. +// +// * ServiceAccountException +// There was a problem with the service account. +// func (c *DeviceFarm) ListDevicePools(input *ListDevicePoolsInput) (*ListDevicePoolsOutput, error) { req, out := c.ListDevicePoolsRequest(input) err := req.Send() @@ -1275,6 +1879,8 @@ const opListDevices = "ListDevices" // value can be used to capture response data after the request's "Send" method // is called. // +// See ListDevices for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1315,7 +1921,30 @@ func (c *DeviceFarm) ListDevicesRequest(input *ListDevicesInput) (req *request.R return } +// ListDevices API operation for AWS Device Farm. +// // Gets information about unique device types. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Device Farm's +// API operation ListDevices for usage and error information. +// +// Returned Error Codes: +// * ArgumentException +// An invalid argument was specified. +// +// * NotFoundException +// The specified entity was not found. +// +// * LimitExceededException +// A limit was exceeded. +// +// * ServiceAccountException +// There was a problem with the service account. +// func (c *DeviceFarm) ListDevices(input *ListDevicesInput) (*ListDevicesOutput, error) { req, out := c.ListDevicesRequest(input) err := req.Send() @@ -1354,6 +1983,8 @@ const opListJobs = "ListJobs" // value can be used to capture response data after the request's "Send" method // is called. // +// See ListJobs for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1394,7 +2025,30 @@ func (c *DeviceFarm) ListJobsRequest(input *ListJobsInput) (req *request.Request return } +// ListJobs API operation for AWS Device Farm. +// // Gets information about jobs. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Device Farm's +// API operation ListJobs for usage and error information. +// +// Returned Error Codes: +// * ArgumentException +// An invalid argument was specified. +// +// * NotFoundException +// The specified entity was not found. +// +// * LimitExceededException +// A limit was exceeded. +// +// * ServiceAccountException +// There was a problem with the service account. +// func (c *DeviceFarm) ListJobs(input *ListJobsInput) (*ListJobsOutput, error) { req, out := c.ListJobsRequest(input) err := req.Send() @@ -1433,6 +2087,8 @@ const opListOfferingTransactions = "ListOfferingTransactions" // value can be used to capture response data after the request's "Send" method // is called. // +// See ListOfferingTransactions for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1473,12 +2129,39 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Device Farm's +// API operation ListOfferingTransactions for usage and error information. +// +// Returned Error Codes: +// * ArgumentException +// An invalid argument was specified. +// +// * NotFoundException +// The specified entity was not found. +// +// * NotEligibleException +// Exception gets thrown when a user is not eligible to perform the specified +// transaction. +// +// * LimitExceededException +// A limit was exceeded. +// +// * ServiceAccountException +// There was a problem with the service account. +// func (c *DeviceFarm) ListOfferingTransactions(input *ListOfferingTransactionsInput) (*ListOfferingTransactionsOutput, error) { req, out := c.ListOfferingTransactionsRequest(input) err := req.Send() @@ -1517,6 +2200,8 @@ const opListOfferings = "ListOfferings" // value can be used to capture response data after the request's "Send" method // is called. // +// See ListOfferings for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1557,12 +2242,39 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Device Farm's +// API operation ListOfferings for usage and error information. +// +// Returned Error Codes: +// * ArgumentException +// An invalid argument was specified. +// +// * NotFoundException +// The specified entity was not found. +// +// * NotEligibleException +// Exception gets thrown when a user is not eligible to perform the specified +// transaction. +// +// * LimitExceededException +// A limit was exceeded. +// +// * ServiceAccountException +// There was a problem with the service account. +// func (c *DeviceFarm) ListOfferings(input *ListOfferingsInput) (*ListOfferingsOutput, error) { req, out := c.ListOfferingsRequest(input) err := req.Send() @@ -1601,6 +2313,8 @@ const opListProjects = "ListProjects" // value can be used to capture response data after the request's "Send" method // is called. // +// See ListProjects for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1641,7 +2355,30 @@ func (c *DeviceFarm) ListProjectsRequest(input *ListProjectsInput) (req *request return } +// ListProjects API operation for AWS Device Farm. +// // Gets information about projects. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Device Farm's +// API operation ListProjects for usage and error information. +// +// Returned Error Codes: +// * ArgumentException +// An invalid argument was specified. +// +// * NotFoundException +// The specified entity was not found. +// +// * LimitExceededException +// A limit was exceeded. +// +// * ServiceAccountException +// There was a problem with the service account. +// func (c *DeviceFarm) ListProjects(input *ListProjectsInput) (*ListProjectsOutput, error) { req, out := c.ListProjectsRequest(input) err := req.Send() @@ -1680,6 +2417,8 @@ const opListRemoteAccessSessions = "ListRemoteAccessSessions" // value can be used to capture response data after the request's "Send" method // is called. // +// See ListRemoteAccessSessions for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1714,7 +2453,30 @@ func (c *DeviceFarm) ListRemoteAccessSessionsRequest(input *ListRemoteAccessSess return } +// ListRemoteAccessSessions API operation for AWS Device Farm. +// // Returns a list of all currently running remote access sessions. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Device Farm's +// API operation ListRemoteAccessSessions for usage and error information. +// +// Returned Error Codes: +// * ArgumentException +// An invalid argument was specified. +// +// * NotFoundException +// The specified entity was not found. +// +// * LimitExceededException +// A limit was exceeded. +// +// * ServiceAccountException +// There was a problem with the service account. +// func (c *DeviceFarm) ListRemoteAccessSessions(input *ListRemoteAccessSessionsInput) (*ListRemoteAccessSessionsOutput, error) { req, out := c.ListRemoteAccessSessionsRequest(input) err := req.Send() @@ -1728,6 +2490,8 @@ const opListRuns = "ListRuns" // value can be used to capture response data after the request's "Send" method // is called. // +// See ListRuns for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1768,7 +2532,30 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Device Farm's +// API operation ListRuns for usage and error information. +// +// Returned Error Codes: +// * ArgumentException +// An invalid argument was specified. +// +// * NotFoundException +// The specified entity was not found. +// +// * LimitExceededException +// A limit was exceeded. +// +// * ServiceAccountException +// There was a problem with the service account. +// func (c *DeviceFarm) ListRuns(input *ListRunsInput) (*ListRunsOutput, error) { req, out := c.ListRunsRequest(input) err := req.Send() @@ -1807,6 +2594,8 @@ const opListSamples = "ListSamples" // value can be used to capture response data after the request's "Send" method // is called. // +// See ListSamples for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1847,7 +2636,30 @@ 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 +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Device Farm's +// API operation ListSamples for usage and error information. +// +// Returned Error Codes: +// * ArgumentException +// An invalid argument was specified. +// +// * NotFoundException +// The specified entity was not found. +// +// * LimitExceededException +// A limit was exceeded. +// +// * ServiceAccountException +// There was a problem with the service account. +// func (c *DeviceFarm) ListSamples(input *ListSamplesInput) (*ListSamplesOutput, error) { req, out := c.ListSamplesRequest(input) err := req.Send() @@ -1886,6 +2698,8 @@ const opListSuites = "ListSuites" // value can be used to capture response data after the request's "Send" method // is called. // +// See ListSuites for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1926,7 +2740,30 @@ func (c *DeviceFarm) ListSuitesRequest(input *ListSuitesInput) (req *request.Req return } +// ListSuites API operation for AWS Device Farm. +// // Gets information about suites. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Device Farm's +// API operation ListSuites for usage and error information. +// +// Returned Error Codes: +// * ArgumentException +// An invalid argument was specified. +// +// * NotFoundException +// The specified entity was not found. +// +// * LimitExceededException +// A limit was exceeded. +// +// * ServiceAccountException +// There was a problem with the service account. +// func (c *DeviceFarm) ListSuites(input *ListSuitesInput) (*ListSuitesOutput, error) { req, out := c.ListSuitesRequest(input) err := req.Send() @@ -1965,6 +2802,8 @@ const opListTests = "ListTests" // value can be used to capture response data after the request's "Send" method // is called. // +// See ListTests for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -2005,7 +2844,30 @@ func (c *DeviceFarm) ListTestsRequest(input *ListTestsInput) (req *request.Reque return } +// ListTests API operation for AWS Device Farm. +// // Gets information about tests. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Device Farm's +// API operation ListTests for usage and error information. +// +// Returned Error Codes: +// * ArgumentException +// An invalid argument was specified. +// +// * NotFoundException +// The specified entity was not found. +// +// * LimitExceededException +// A limit was exceeded. +// +// * ServiceAccountException +// There was a problem with the service account. +// func (c *DeviceFarm) ListTests(input *ListTestsInput) (*ListTestsOutput, error) { req, out := c.ListTestsRequest(input) err := req.Send() @@ -2044,6 +2906,8 @@ const opListUniqueProblems = "ListUniqueProblems" // value can be used to capture response data after the request's "Send" method // is called. // +// See ListUniqueProblems for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -2084,7 +2948,30 @@ func (c *DeviceFarm) ListUniqueProblemsRequest(input *ListUniqueProblemsInput) ( return } +// ListUniqueProblems API operation for AWS Device Farm. +// // Gets information about unique problems. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Device Farm's +// API operation ListUniqueProblems for usage and error information. +// +// Returned Error Codes: +// * ArgumentException +// An invalid argument was specified. +// +// * NotFoundException +// The specified entity was not found. +// +// * LimitExceededException +// A limit was exceeded. +// +// * ServiceAccountException +// There was a problem with the service account. +// func (c *DeviceFarm) ListUniqueProblems(input *ListUniqueProblemsInput) (*ListUniqueProblemsOutput, error) { req, out := c.ListUniqueProblemsRequest(input) err := req.Send() @@ -2123,6 +3010,8 @@ const opListUploads = "ListUploads" // value can be used to capture response data after the request's "Send" method // is called. // +// See ListUploads for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -2163,7 +3052,30 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Device Farm's +// API operation ListUploads for usage and error information. +// +// Returned Error Codes: +// * ArgumentException +// An invalid argument was specified. +// +// * NotFoundException +// The specified entity was not found. +// +// * LimitExceededException +// A limit was exceeded. +// +// * ServiceAccountException +// There was a problem with the service account. +// func (c *DeviceFarm) ListUploads(input *ListUploadsInput) (*ListUploadsOutput, error) { req, out := c.ListUploadsRequest(input) err := req.Send() @@ -2202,6 +3114,8 @@ const opPurchaseOffering = "PurchaseOffering" // value can be used to capture response data after the request's "Send" method // is called. // +// See PurchaseOffering for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -2236,12 +3150,39 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Device Farm's +// API operation PurchaseOffering for usage and error information. +// +// Returned Error Codes: +// * ArgumentException +// An invalid argument was specified. +// +// * NotFoundException +// The specified entity was not found. +// +// * NotEligibleException +// Exception gets thrown when a user is not eligible to perform the specified +// transaction. +// +// * LimitExceededException +// A limit was exceeded. +// +// * ServiceAccountException +// There was a problem with the service account. +// func (c *DeviceFarm) PurchaseOffering(input *PurchaseOfferingInput) (*PurchaseOfferingOutput, error) { req, out := c.PurchaseOfferingRequest(input) err := req.Send() @@ -2255,6 +3196,8 @@ const opRenewOffering = "RenewOffering" // value can be used to capture response data after the request's "Send" method // is called. // +// See RenewOffering for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -2289,11 +3232,38 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Device Farm's +// API operation RenewOffering for usage and error information. +// +// Returned Error Codes: +// * ArgumentException +// An invalid argument was specified. +// +// * NotFoundException +// The specified entity was not found. +// +// * NotEligibleException +// Exception gets thrown when a user is not eligible to perform the specified +// transaction. +// +// * LimitExceededException +// A limit was exceeded. +// +// * ServiceAccountException +// There was a problem with the service account. +// func (c *DeviceFarm) RenewOffering(input *RenewOfferingInput) (*RenewOfferingOutput, error) { req, out := c.RenewOfferingRequest(input) err := req.Send() @@ -2307,6 +3277,8 @@ const opScheduleRun = "ScheduleRun" // value can be used to capture response data after the request's "Send" method // is called. // +// See ScheduleRun for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -2341,7 +3313,33 @@ func (c *DeviceFarm) ScheduleRunRequest(input *ScheduleRunInput) (req *request.R return } +// ScheduleRun API operation for AWS Device Farm. +// // Schedules a run. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Device Farm's +// API operation ScheduleRun for usage and error information. +// +// Returned Error Codes: +// * ArgumentException +// An invalid argument was specified. +// +// * NotFoundException +// The specified entity was not found. +// +// * LimitExceededException +// A limit was exceeded. +// +// * IdempotencyException +// An entity with the same name already exists. +// +// * ServiceAccountException +// There was a problem with the service account. +// func (c *DeviceFarm) ScheduleRun(input *ScheduleRunInput) (*ScheduleRunOutput, error) { req, out := c.ScheduleRunRequest(input) err := req.Send() @@ -2355,6 +3353,8 @@ const opStopRemoteAccessSession = "StopRemoteAccessSession" // value can be used to capture response data after the request's "Send" method // is called. // +// See StopRemoteAccessSession for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -2389,7 +3389,30 @@ func (c *DeviceFarm) StopRemoteAccessSessionRequest(input *StopRemoteAccessSessi return } +// StopRemoteAccessSession API operation for AWS Device Farm. +// // Ends a specified remote access session. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Device Farm's +// API operation StopRemoteAccessSession for usage and error information. +// +// Returned Error Codes: +// * ArgumentException +// An invalid argument was specified. +// +// * NotFoundException +// The specified entity was not found. +// +// * LimitExceededException +// A limit was exceeded. +// +// * ServiceAccountException +// There was a problem with the service account. +// func (c *DeviceFarm) StopRemoteAccessSession(input *StopRemoteAccessSessionInput) (*StopRemoteAccessSessionOutput, error) { req, out := c.StopRemoteAccessSessionRequest(input) err := req.Send() @@ -2403,6 +3426,8 @@ const opStopRun = "StopRun" // value can be used to capture response data after the request's "Send" method // is called. // +// See StopRun for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -2437,12 +3462,35 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Device Farm's +// API operation StopRun for usage and error information. +// +// Returned Error Codes: +// * ArgumentException +// An invalid argument was specified. +// +// * NotFoundException +// The specified entity was not found. +// +// * LimitExceededException +// A limit was exceeded. +// +// * ServiceAccountException +// There was a problem with the service account. +// func (c *DeviceFarm) StopRun(input *StopRunInput) (*StopRunOutput, error) { req, out := c.StopRunRequest(input) err := req.Send() @@ -2456,6 +3504,8 @@ const opUpdateDevicePool = "UpdateDevicePool" // value can be used to capture response data after the request's "Send" method // is called. // +// See UpdateDevicePool for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -2490,9 +3540,32 @@ 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). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Device Farm's +// API operation UpdateDevicePool for usage and error information. +// +// Returned Error Codes: +// * ArgumentException +// An invalid argument was specified. +// +// * NotFoundException +// The specified entity was not found. +// +// * LimitExceededException +// A limit was exceeded. +// +// * ServiceAccountException +// There was a problem with the service account. +// func (c *DeviceFarm) UpdateDevicePool(input *UpdateDevicePoolInput) (*UpdateDevicePoolOutput, error) { req, out := c.UpdateDevicePoolRequest(input) err := req.Send() @@ -2506,6 +3579,8 @@ const opUpdateProject = "UpdateProject" // value can be used to capture response data after the request's "Send" method // is called. // +// See UpdateProject for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -2540,7 +3615,30 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Device Farm's +// API operation UpdateProject for usage and error information. +// +// Returned Error Codes: +// * ArgumentException +// An invalid argument was specified. +// +// * NotFoundException +// The specified entity was not found. +// +// * LimitExceededException +// A limit was exceeded. +// +// * ServiceAccountException +// There was a problem with the service account. +// 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..c898ffdd9e2 100644 --- a/service/directconnect/api.go +++ b/service/directconnect/api.go @@ -17,6 +17,8 @@ const opAllocateConnectionOnInterconnect = "AllocateConnectionOnInterconnect" // value can be used to capture response data after the request's "Send" method // is called. // +// See AllocateConnectionOnInterconnect for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -51,12 +53,31 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Direct Connect's +// API operation AllocateConnectionOnInterconnect for usage and error information. +// +// Returned Error Codes: +// * ServerException +// A server-side error occurred during the API call. The error message will +// contain additional details about the cause. +// +// * ClientException +// The API was called with invalid parameters. The error message will contain +// additional details about the cause. +// func (c *DirectConnect) AllocateConnectionOnInterconnect(input *AllocateConnectionOnInterconnectInput) (*Connection, error) { req, out := c.AllocateConnectionOnInterconnectRequest(input) err := req.Send() @@ -70,6 +91,8 @@ const opAllocatePrivateVirtualInterface = "AllocatePrivateVirtualInterface" // value can be used to capture response data after the request's "Send" method // is called. // +// See AllocatePrivateVirtualInterface for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -104,6 +127,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 +138,23 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Direct Connect's +// API operation AllocatePrivateVirtualInterface for usage and error information. +// +// Returned Error Codes: +// * ServerException +// A server-side error occurred during the API call. The error message will +// contain additional details about the cause. +// +// * ClientException +// The API was called with invalid parameters. The error message will contain +// additional details about the cause. +// func (c *DirectConnect) AllocatePrivateVirtualInterface(input *AllocatePrivateVirtualInterfaceInput) (*VirtualInterface, error) { req, out := c.AllocatePrivateVirtualInterfaceRequest(input) err := req.Send() @@ -126,6 +168,8 @@ const opAllocatePublicVirtualInterface = "AllocatePublicVirtualInterface" // value can be used to capture response data after the request's "Send" method // is called. // +// See AllocatePublicVirtualInterface for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -160,6 +204,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 +215,23 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Direct Connect's +// API operation AllocatePublicVirtualInterface for usage and error information. +// +// Returned Error Codes: +// * ServerException +// A server-side error occurred during the API call. The error message will +// contain additional details about the cause. +// +// * ClientException +// The API was called with invalid parameters. The error message will contain +// additional details about the cause. +// func (c *DirectConnect) AllocatePublicVirtualInterface(input *AllocatePublicVirtualInterfaceInput) (*VirtualInterface, error) { req, out := c.AllocatePublicVirtualInterfaceRequest(input) err := req.Send() @@ -182,6 +245,8 @@ const opConfirmConnection = "ConfirmConnection" // value can be used to capture response data after the request's "Send" method // is called. // +// See ConfirmConnection for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -216,11 +281,30 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Direct Connect's +// API operation ConfirmConnection for usage and error information. +// +// Returned Error Codes: +// * ServerException +// A server-side error occurred during the API call. The error message will +// contain additional details about the cause. +// +// * ClientException +// The API was called with invalid parameters. The error message will contain +// additional details about the cause. +// func (c *DirectConnect) ConfirmConnection(input *ConfirmConnectionInput) (*ConfirmConnectionOutput, error) { req, out := c.ConfirmConnectionRequest(input) err := req.Send() @@ -234,6 +318,8 @@ const opConfirmPrivateVirtualInterface = "ConfirmPrivateVirtualInterface" // value can be used to capture response data after the request's "Send" method // is called. // +// See ConfirmPrivateVirtualInterface for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -268,11 +354,30 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Direct Connect's +// API operation ConfirmPrivateVirtualInterface for usage and error information. +// +// Returned Error Codes: +// * ServerException +// A server-side error occurred during the API call. The error message will +// contain additional details about the cause. +// +// * ClientException +// The API was called with invalid parameters. The error message will contain +// additional details about the cause. +// func (c *DirectConnect) ConfirmPrivateVirtualInterface(input *ConfirmPrivateVirtualInterfaceInput) (*ConfirmPrivateVirtualInterfaceOutput, error) { req, out := c.ConfirmPrivateVirtualInterfaceRequest(input) err := req.Send() @@ -286,6 +391,8 @@ const opConfirmPublicVirtualInterface = "ConfirmPublicVirtualInterface" // value can be used to capture response data after the request's "Send" method // is called. // +// See ConfirmPublicVirtualInterface for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -320,10 +427,29 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Direct Connect's +// API operation ConfirmPublicVirtualInterface for usage and error information. +// +// Returned Error Codes: +// * ServerException +// A server-side error occurred during the API call. The error message will +// contain additional details about the cause. +// +// * ClientException +// The API was called with invalid parameters. The error message will contain +// additional details about the cause. +// func (c *DirectConnect) ConfirmPublicVirtualInterface(input *ConfirmPublicVirtualInterfaceInput) (*ConfirmPublicVirtualInterfaceOutput, error) { req, out := c.ConfirmPublicVirtualInterfaceRequest(input) err := req.Send() @@ -337,6 +463,8 @@ const opCreateConnection = "CreateConnection" // value can be used to capture response data after the request's "Send" method // is called. // +// See CreateConnection for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -371,6 +499,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 +511,23 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Direct Connect's +// API operation CreateConnection for usage and error information. +// +// Returned Error Codes: +// * ServerException +// A server-side error occurred during the API call. The error message will +// contain additional details about the cause. +// +// * ClientException +// The API was called with invalid parameters. The error message will contain +// additional details about the cause. +// func (c *DirectConnect) CreateConnection(input *CreateConnectionInput) (*Connection, error) { req, out := c.CreateConnectionRequest(input) err := req.Send() @@ -394,6 +541,8 @@ const opCreateInterconnect = "CreateInterconnect" // value can be used to capture response data after the request's "Send" method // is called. // +// See CreateInterconnect for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -428,6 +577,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 +597,23 @@ func (c *DirectConnect) CreateInterconnectRequest(input *CreateInterconnectInput // partner. // // This is intended for use by AWS Direct Connect partners only. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Direct Connect's +// API operation CreateInterconnect for usage and error information. +// +// Returned Error Codes: +// * ServerException +// A server-side error occurred during the API call. The error message will +// contain additional details about the cause. +// +// * ClientException +// The API was called with invalid parameters. The error message will contain +// additional details about the cause. +// func (c *DirectConnect) CreateInterconnect(input *CreateInterconnectInput) (*Interconnect, error) { req, out := c.CreateInterconnectRequest(input) err := req.Send() @@ -459,6 +627,8 @@ const opCreatePrivateVirtualInterface = "CreatePrivateVirtualInterface" // value can be used to capture response data after the request's "Send" method // is called. // +// See CreatePrivateVirtualInterface for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -493,9 +663,28 @@ 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). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Direct Connect's +// API operation CreatePrivateVirtualInterface for usage and error information. +// +// Returned Error Codes: +// * ServerException +// A server-side error occurred during the API call. The error message will +// contain additional details about the cause. +// +// * ClientException +// The API was called with invalid parameters. The error message will contain +// additional details about the cause. +// func (c *DirectConnect) CreatePrivateVirtualInterface(input *CreatePrivateVirtualInterfaceInput) (*VirtualInterface, error) { req, out := c.CreatePrivateVirtualInterfaceRequest(input) err := req.Send() @@ -509,6 +698,8 @@ const opCreatePublicVirtualInterface = "CreatePublicVirtualInterface" // value can be used to capture response data after the request's "Send" method // is called. // +// See CreatePublicVirtualInterface for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -543,10 +734,29 @@ 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). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Direct Connect's +// API operation CreatePublicVirtualInterface for usage and error information. +// +// Returned Error Codes: +// * ServerException +// A server-side error occurred during the API call. The error message will +// contain additional details about the cause. +// +// * ClientException +// The API was called with invalid parameters. The error message will contain +// additional details about the cause. +// func (c *DirectConnect) CreatePublicVirtualInterface(input *CreatePublicVirtualInterfaceInput) (*VirtualInterface, error) { req, out := c.CreatePublicVirtualInterfaceRequest(input) err := req.Send() @@ -560,6 +770,8 @@ const opDeleteConnection = "DeleteConnection" // value can be used to capture response data after the request's "Send" method // is called. // +// See DeleteConnection for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -594,12 +806,31 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Direct Connect's +// API operation DeleteConnection for usage and error information. +// +// Returned Error Codes: +// * ServerException +// A server-side error occurred during the API call. The error message will +// contain additional details about the cause. +// +// * ClientException +// The API was called with invalid parameters. The error message will contain +// additional details about the cause. +// func (c *DirectConnect) DeleteConnection(input *DeleteConnectionInput) (*Connection, error) { req, out := c.DeleteConnectionRequest(input) err := req.Send() @@ -613,6 +844,8 @@ const opDeleteInterconnect = "DeleteInterconnect" // value can be used to capture response data after the request's "Send" method // is called. // +// See DeleteInterconnect for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -647,9 +880,28 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Direct Connect's +// API operation DeleteInterconnect for usage and error information. +// +// Returned Error Codes: +// * ServerException +// A server-side error occurred during the API call. The error message will +// contain additional details about the cause. +// +// * ClientException +// The API was called with invalid parameters. The error message will contain +// additional details about the cause. +// func (c *DirectConnect) DeleteInterconnect(input *DeleteInterconnectInput) (*DeleteInterconnectOutput, error) { req, out := c.DeleteInterconnectRequest(input) err := req.Send() @@ -663,6 +915,8 @@ const opDeleteVirtualInterface = "DeleteVirtualInterface" // value can be used to capture response data after the request's "Send" method // is called. // +// See DeleteVirtualInterface for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -697,7 +951,26 @@ func (c *DirectConnect) DeleteVirtualInterfaceRequest(input *DeleteVirtualInterf return } +// DeleteVirtualInterface API operation for AWS Direct Connect. +// // Deletes a virtual interface. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Direct Connect's +// API operation DeleteVirtualInterface for usage and error information. +// +// Returned Error Codes: +// * ServerException +// A server-side error occurred during the API call. The error message will +// contain additional details about the cause. +// +// * ClientException +// The API was called with invalid parameters. The error message will contain +// additional details about the cause. +// func (c *DirectConnect) DeleteVirtualInterface(input *DeleteVirtualInterfaceInput) (*DeleteVirtualInterfaceOutput, error) { req, out := c.DeleteVirtualInterfaceRequest(input) err := req.Send() @@ -711,6 +984,8 @@ const opDescribeConnectionLoa = "DescribeConnectionLoa" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeConnectionLoa for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -745,6 +1020,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 +1029,23 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Direct Connect's +// API operation DescribeConnectionLoa for usage and error information. +// +// Returned Error Codes: +// * ServerException +// A server-side error occurred during the API call. The error message will +// contain additional details about the cause. +// +// * ClientException +// The API was called with invalid parameters. The error message will contain +// additional details about the cause. +// func (c *DirectConnect) DescribeConnectionLoa(input *DescribeConnectionLoaInput) (*DescribeConnectionLoaOutput, error) { req, out := c.DescribeConnectionLoaRequest(input) err := req.Send() @@ -765,6 +1059,8 @@ const opDescribeConnections = "DescribeConnections" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeConnections for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -799,9 +1095,28 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Direct Connect's +// API operation DescribeConnections for usage and error information. +// +// Returned Error Codes: +// * ServerException +// A server-side error occurred during the API call. The error message will +// contain additional details about the cause. +// +// * ClientException +// The API was called with invalid parameters. The error message will contain +// additional details about the cause. +// func (c *DirectConnect) DescribeConnections(input *DescribeConnectionsInput) (*Connections, error) { req, out := c.DescribeConnectionsRequest(input) err := req.Send() @@ -815,6 +1130,8 @@ const opDescribeConnectionsOnInterconnect = "DescribeConnectionsOnInterconnect" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeConnectionsOnInterconnect for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -849,9 +1166,28 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Direct Connect's +// API operation DescribeConnectionsOnInterconnect for usage and error information. +// +// Returned Error Codes: +// * ServerException +// A server-side error occurred during the API call. The error message will +// contain additional details about the cause. +// +// * ClientException +// The API was called with invalid parameters. The error message will contain +// additional details about the cause. +// func (c *DirectConnect) DescribeConnectionsOnInterconnect(input *DescribeConnectionsOnInterconnectInput) (*Connections, error) { req, out := c.DescribeConnectionsOnInterconnectRequest(input) err := req.Send() @@ -865,6 +1201,8 @@ const opDescribeInterconnectLoa = "DescribeInterconnectLoa" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeInterconnectLoa for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -899,6 +1237,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 +1246,23 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Direct Connect's +// API operation DescribeInterconnectLoa for usage and error information. +// +// Returned Error Codes: +// * ServerException +// A server-side error occurred during the API call. The error message will +// contain additional details about the cause. +// +// * ClientException +// The API was called with invalid parameters. The error message will contain +// additional details about the cause. +// func (c *DirectConnect) DescribeInterconnectLoa(input *DescribeInterconnectLoaInput) (*DescribeInterconnectLoaOutput, error) { req, out := c.DescribeInterconnectLoaRequest(input) err := req.Send() @@ -919,6 +1276,8 @@ const opDescribeInterconnects = "DescribeInterconnects" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeInterconnects for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -953,9 +1312,28 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Direct Connect's +// API operation DescribeInterconnects for usage and error information. +// +// Returned Error Codes: +// * ServerException +// A server-side error occurred during the API call. The error message will +// contain additional details about the cause. +// +// * ClientException +// The API was called with invalid parameters. The error message will contain +// additional details about the cause. +// func (c *DirectConnect) DescribeInterconnects(input *DescribeInterconnectsInput) (*DescribeInterconnectsOutput, error) { req, out := c.DescribeInterconnectsRequest(input) err := req.Send() @@ -969,6 +1347,8 @@ const opDescribeLocations = "DescribeLocations" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeLocations for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1003,9 +1383,28 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Direct Connect's +// API operation DescribeLocations for usage and error information. +// +// Returned Error Codes: +// * ServerException +// A server-side error occurred during the API call. The error message will +// contain additional details about the cause. +// +// * ClientException +// The API was called with invalid parameters. The error message will contain +// additional details about the cause. +// func (c *DirectConnect) DescribeLocations(input *DescribeLocationsInput) (*DescribeLocationsOutput, error) { req, out := c.DescribeLocationsRequest(input) err := req.Send() @@ -1019,6 +1418,8 @@ const opDescribeVirtualGateways = "DescribeVirtualGateways" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeVirtualGateways for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1053,6 +1454,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 +1463,23 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Direct Connect's +// API operation DescribeVirtualGateways for usage and error information. +// +// Returned Error Codes: +// * ServerException +// A server-side error occurred during the API call. The error message will +// contain additional details about the cause. +// +// * ClientException +// The API was called with invalid parameters. The error message will contain +// additional details about the cause. +// func (c *DirectConnect) DescribeVirtualGateways(input *DescribeVirtualGatewaysInput) (*DescribeVirtualGatewaysOutput, error) { req, out := c.DescribeVirtualGatewaysRequest(input) err := req.Send() @@ -1073,6 +1493,8 @@ const opDescribeVirtualInterfaces = "DescribeVirtualInterfaces" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeVirtualInterfaces for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1107,6 +1529,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 +1543,23 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Direct Connect's +// API operation DescribeVirtualInterfaces for usage and error information. +// +// Returned Error Codes: +// * ServerException +// A server-side error occurred during the API call. The error message will +// contain additional details about the cause. +// +// * ClientException +// The API was called with invalid parameters. The error message will contain +// additional details about the cause. +// 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..610dbff1187 100644 --- a/service/directoryservice/api.go +++ b/service/directoryservice/api.go @@ -18,6 +18,8 @@ const opAddIpRoutes = "AddIpRoutes" // value can be used to capture response data after the request's "Send" method // is called. // +// See AddIpRoutes for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -52,11 +54,44 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Directory Service's +// API operation AddIpRoutes for usage and error information. +// +// Returned Error Codes: +// * EntityDoesNotExistException +// The specified entity could not be found. +// +// * EntityAlreadyExistsException +// The specified entity already exists. +// +// * InvalidParameterException +// One or more parameters are not valid. +// +// * DirectoryUnavailableException +// The specified directory is unavailable or could not be found. +// +// * IpRouteLimitExceededException +// The maximum allowed number of IP addresses was exceeded. The default limit +// is 100 IP address blocks. +// +// * ClientException +// A client exception has occurred. +// +// * ServiceException +// An exception has occurred in AWS Directory Service. +// func (c *DirectoryService) AddIpRoutes(input *AddIpRoutesInput) (*AddIpRoutesOutput, error) { req, out := c.AddIpRoutesRequest(input) err := req.Send() @@ -70,6 +105,8 @@ const opAddTagsToResource = "AddTagsToResource" // value can be used to capture response data after the request's "Send" method // is called. // +// See AddTagsToResource for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -104,9 +141,35 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Directory Service's +// API operation AddTagsToResource for usage and error information. +// +// Returned Error Codes: +// * EntityDoesNotExistException +// The specified entity could not be found. +// +// * InvalidParameterException +// One or more parameters are not valid. +// +// * TagLimitExceededException +// The maximum allowed number of tags was exceeded. +// +// * ClientException +// A client exception has occurred. +// +// * ServiceException +// An exception has occurred in AWS Directory Service. +// func (c *DirectoryService) AddTagsToResource(input *AddTagsToResourceInput) (*AddTagsToResourceOutput, error) { req, out := c.AddTagsToResourceRequest(input) err := req.Send() @@ -120,6 +183,8 @@ const opConnectDirectory = "ConnectDirectory" // value can be used to capture response data after the request's "Send" method // is called. // +// See ConnectDirectory for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -154,7 +219,32 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Directory Service's +// API operation ConnectDirectory for usage and error information. +// +// Returned Error Codes: +// * DirectoryLimitExceededException +// The maximum number of directories in the region has been reached. You can +// use the GetDirectoryLimits operation to determine your directory limits in +// the region. +// +// * InvalidParameterException +// One or more parameters are not valid. +// +// * ClientException +// A client exception has occurred. +// +// * ServiceException +// An exception has occurred in AWS Directory Service. +// func (c *DirectoryService) ConnectDirectory(input *ConnectDirectoryInput) (*ConnectDirectoryOutput, error) { req, out := c.ConnectDirectoryRequest(input) err := req.Send() @@ -168,6 +258,8 @@ const opCreateAlias = "CreateAlias" // value can be used to capture response data after the request's "Send" method // is called. // +// See CreateAlias for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -202,12 +294,38 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Directory Service's +// API operation CreateAlias for usage and error information. +// +// Returned Error Codes: +// * EntityAlreadyExistsException +// The specified entity already exists. +// +// * EntityDoesNotExistException +// The specified entity could not be found. +// +// * InvalidParameterException +// One or more parameters are not valid. +// +// * ClientException +// A client exception has occurred. +// +// * ServiceException +// An exception has occurred in AWS Directory Service. +// func (c *DirectoryService) CreateAlias(input *CreateAliasInput) (*CreateAliasOutput, error) { req, out := c.CreateAliasRequest(input) err := req.Send() @@ -221,6 +339,8 @@ const opCreateComputer = "CreateComputer" // value can be used to capture response data after the request's "Send" method // is called. // +// See CreateComputer for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -255,8 +375,43 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Directory Service's +// API operation CreateComputer for usage and error information. +// +// Returned Error Codes: +// * AuthenticationFailedException +// An authentication error occurred. +// +// * DirectoryUnavailableException +// The specified directory is unavailable or could not be found. +// +// * EntityAlreadyExistsException +// The specified entity already exists. +// +// * EntityDoesNotExistException +// The specified entity could not be found. +// +// * InvalidParameterException +// One or more parameters are not valid. +// +// * UnsupportedOperationException +// The operation is not supported. +// +// * ClientException +// A client exception has occurred. +// +// * ServiceException +// An exception has occurred in AWS Directory Service. +// func (c *DirectoryService) CreateComputer(input *CreateComputerInput) (*CreateComputerOutput, error) { req, out := c.CreateComputerRequest(input) err := req.Send() @@ -270,6 +425,8 @@ const opCreateConditionalForwarder = "CreateConditionalForwarder" // value can be used to capture response data after the request's "Send" method // is called. // +// See CreateConditionalForwarder for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -304,9 +461,41 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Directory Service's +// API operation CreateConditionalForwarder for usage and error information. +// +// Returned Error Codes: +// * EntityAlreadyExistsException +// The specified entity already exists. +// +// * EntityDoesNotExistException +// The specified entity could not be found. +// +// * DirectoryUnavailableException +// The specified directory is unavailable or could not be found. +// +// * InvalidParameterException +// One or more parameters are not valid. +// +// * UnsupportedOperationException +// The operation is not supported. +// +// * ClientException +// A client exception has occurred. +// +// * ServiceException +// An exception has occurred in AWS Directory Service. +// func (c *DirectoryService) CreateConditionalForwarder(input *CreateConditionalForwarderInput) (*CreateConditionalForwarderOutput, error) { req, out := c.CreateConditionalForwarderRequest(input) err := req.Send() @@ -320,6 +509,8 @@ const opCreateDirectory = "CreateDirectory" // value can be used to capture response data after the request's "Send" method // is called. // +// See CreateDirectory for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -354,7 +545,32 @@ func (c *DirectoryService) CreateDirectoryRequest(input *CreateDirectoryInput) ( return } +// CreateDirectory API operation for AWS Directory Service. +// // Creates a Simple AD directory. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Directory Service's +// API operation CreateDirectory for usage and error information. +// +// Returned Error Codes: +// * DirectoryLimitExceededException +// The maximum number of directories in the region has been reached. You can +// use the GetDirectoryLimits operation to determine your directory limits in +// the region. +// +// * InvalidParameterException +// One or more parameters are not valid. +// +// * ClientException +// A client exception has occurred. +// +// * ServiceException +// An exception has occurred in AWS Directory Service. +// func (c *DirectoryService) CreateDirectory(input *CreateDirectoryInput) (*CreateDirectoryOutput, error) { req, out := c.CreateDirectoryRequest(input) err := req.Send() @@ -368,6 +584,8 @@ const opCreateMicrosoftAD = "CreateMicrosoftAD" // value can be used to capture response data after the request's "Send" method // is called. // +// See CreateMicrosoftAD for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -402,7 +620,35 @@ func (c *DirectoryService) CreateMicrosoftADRequest(input *CreateMicrosoftADInpu return } +// CreateMicrosoftAD API operation for AWS Directory Service. +// // Creates a Microsoft AD in the AWS cloud. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Directory Service's +// API operation CreateMicrosoftAD for usage and error information. +// +// Returned Error Codes: +// * DirectoryLimitExceededException +// The maximum number of directories in the region has been reached. You can +// use the GetDirectoryLimits operation to determine your directory limits in +// the region. +// +// * InvalidParameterException +// One or more parameters are not valid. +// +// * ClientException +// A client exception has occurred. +// +// * ServiceException +// An exception has occurred in AWS Directory Service. +// +// * UnsupportedOperationException +// The operation is not supported. +// func (c *DirectoryService) CreateMicrosoftAD(input *CreateMicrosoftADInput) (*CreateMicrosoftADOutput, error) { req, out := c.CreateMicrosoftADRequest(input) err := req.Send() @@ -416,6 +662,8 @@ const opCreateSnapshot = "CreateSnapshot" // value can be used to capture response data after the request's "Send" method // is called. // +// See CreateSnapshot for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -450,9 +698,37 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Directory Service's +// API operation CreateSnapshot for usage and error information. +// +// Returned Error Codes: +// * EntityDoesNotExistException +// The specified entity could not be found. +// +// * InvalidParameterException +// One or more parameters are not valid. +// +// * SnapshotLimitExceededException +// The maximum number of manual snapshots for the directory has been reached. +// You can use the GetSnapshotLimits operation to determine the snapshot limits +// for a directory. +// +// * ClientException +// A client exception has occurred. +// +// * ServiceException +// An exception has occurred in AWS Directory Service. +// func (c *DirectoryService) CreateSnapshot(input *CreateSnapshotInput) (*CreateSnapshotOutput, error) { req, out := c.CreateSnapshotRequest(input) err := req.Send() @@ -466,6 +742,8 @@ const opCreateTrust = "CreateTrust" // value can be used to capture response data after the request's "Send" method // is called. // +// See CreateTrust for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -500,6 +778,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 +788,33 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Directory Service's +// API operation CreateTrust for usage and error information. +// +// Returned Error Codes: +// * EntityAlreadyExistsException +// The specified entity already exists. +// +// * EntityDoesNotExistException +// The specified entity could not be found. +// +// * InvalidParameterException +// One or more parameters are not valid. +// +// * ClientException +// A client exception has occurred. +// +// * ServiceException +// An exception has occurred in AWS Directory Service. +// +// * UnsupportedOperationException +// The operation is not supported. +// func (c *DirectoryService) CreateTrust(input *CreateTrustInput) (*CreateTrustOutput, error) { req, out := c.CreateTrustRequest(input) err := req.Send() @@ -521,6 +828,8 @@ const opDeleteConditionalForwarder = "DeleteConditionalForwarder" // value can be used to capture response data after the request's "Send" method // is called. // +// See DeleteConditionalForwarder for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -555,7 +864,36 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Directory Service's +// API operation DeleteConditionalForwarder for usage and error information. +// +// Returned Error Codes: +// * EntityDoesNotExistException +// The specified entity could not be found. +// +// * DirectoryUnavailableException +// The specified directory is unavailable or could not be found. +// +// * InvalidParameterException +// One or more parameters are not valid. +// +// * UnsupportedOperationException +// The operation is not supported. +// +// * ClientException +// A client exception has occurred. +// +// * ServiceException +// An exception has occurred in AWS Directory Service. +// func (c *DirectoryService) DeleteConditionalForwarder(input *DeleteConditionalForwarderInput) (*DeleteConditionalForwarderOutput, error) { req, out := c.DeleteConditionalForwarderRequest(input) err := req.Send() @@ -569,6 +907,8 @@ const opDeleteDirectory = "DeleteDirectory" // value can be used to capture response data after the request's "Send" method // is called. // +// See DeleteDirectory for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -603,7 +943,27 @@ func (c *DirectoryService) DeleteDirectoryRequest(input *DeleteDirectoryInput) ( return } +// DeleteDirectory API operation for AWS Directory Service. +// // Deletes an AWS Directory Service directory. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Directory Service's +// API operation DeleteDirectory for usage and error information. +// +// Returned Error Codes: +// * EntityDoesNotExistException +// The specified entity could not be found. +// +// * ClientException +// A client exception has occurred. +// +// * ServiceException +// An exception has occurred in AWS Directory Service. +// func (c *DirectoryService) DeleteDirectory(input *DeleteDirectoryInput) (*DeleteDirectoryOutput, error) { req, out := c.DeleteDirectoryRequest(input) err := req.Send() @@ -617,6 +977,8 @@ const opDeleteSnapshot = "DeleteSnapshot" // value can be used to capture response data after the request's "Send" method // is called. // +// See DeleteSnapshot for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -651,7 +1013,30 @@ func (c *DirectoryService) DeleteSnapshotRequest(input *DeleteSnapshotInput) (re return } +// DeleteSnapshot API operation for AWS Directory Service. +// // Deletes a directory snapshot. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Directory Service's +// API operation DeleteSnapshot for usage and error information. +// +// Returned Error Codes: +// * EntityDoesNotExistException +// The specified entity could not be found. +// +// * InvalidParameterException +// One or more parameters are not valid. +// +// * ClientException +// A client exception has occurred. +// +// * ServiceException +// An exception has occurred in AWS Directory Service. +// func (c *DirectoryService) DeleteSnapshot(input *DeleteSnapshotInput) (*DeleteSnapshotOutput, error) { req, out := c.DeleteSnapshotRequest(input) err := req.Send() @@ -665,6 +1050,8 @@ const opDeleteTrust = "DeleteTrust" // value can be used to capture response data after the request's "Send" method // is called. // +// See DeleteTrust for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -699,8 +1086,34 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Directory Service's +// API operation DeleteTrust for usage and error information. +// +// Returned Error Codes: +// * EntityDoesNotExistException +// The specified entity could not be found. +// +// * InvalidParameterException +// One or more parameters are not valid. +// +// * ClientException +// A client exception has occurred. +// +// * ServiceException +// An exception has occurred in AWS Directory Service. +// +// * UnsupportedOperationException +// The operation is not supported. +// func (c *DirectoryService) DeleteTrust(input *DeleteTrustInput) (*DeleteTrustOutput, error) { req, out := c.DeleteTrustRequest(input) err := req.Send() @@ -714,6 +1127,8 @@ const opDeregisterEventTopic = "DeregisterEventTopic" // value can be used to capture response data after the request's "Send" method // is called. // +// See DeregisterEventTopic for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -748,7 +1163,30 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Directory Service's +// API operation DeregisterEventTopic for usage and error information. +// +// Returned Error Codes: +// * EntityDoesNotExistException +// The specified entity could not be found. +// +// * InvalidParameterException +// One or more parameters are not valid. +// +// * ClientException +// A client exception has occurred. +// +// * ServiceException +// An exception has occurred in AWS Directory Service. +// func (c *DirectoryService) DeregisterEventTopic(input *DeregisterEventTopicInput) (*DeregisterEventTopicOutput, error) { req, out := c.DeregisterEventTopicRequest(input) err := req.Send() @@ -762,6 +1200,8 @@ const opDescribeConditionalForwarders = "DescribeConditionalForwarders" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeConditionalForwarders for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -796,10 +1236,39 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Directory Service's +// API operation DescribeConditionalForwarders for usage and error information. +// +// Returned Error Codes: +// * EntityDoesNotExistException +// The specified entity could not be found. +// +// * DirectoryUnavailableException +// The specified directory is unavailable or could not be found. +// +// * InvalidParameterException +// One or more parameters are not valid. +// +// * UnsupportedOperationException +// The operation is not supported. +// +// * ClientException +// A client exception has occurred. +// +// * ServiceException +// An exception has occurred in AWS Directory Service. +// func (c *DirectoryService) DescribeConditionalForwarders(input *DescribeConditionalForwardersInput) (*DescribeConditionalForwardersOutput, error) { req, out := c.DescribeConditionalForwardersRequest(input) err := req.Send() @@ -813,6 +1282,8 @@ const opDescribeDirectories = "DescribeDirectories" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeDirectories for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -847,6 +1318,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 +1332,30 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Directory Service's +// API operation DescribeDirectories for usage and error information. +// +// Returned Error Codes: +// * EntityDoesNotExistException +// The specified entity could not be found. +// +// * InvalidParameterException +// One or more parameters are not valid. +// +// * InvalidNextTokenException +// The NextToken value is not valid. +// +// * ClientException +// A client exception has occurred. +// +// * ServiceException +// An exception has occurred in AWS Directory Service. +// func (c *DirectoryService) DescribeDirectories(input *DescribeDirectoriesInput) (*DescribeDirectoriesOutput, error) { req, out := c.DescribeDirectoriesRequest(input) err := req.Send() @@ -872,6 +1369,8 @@ const opDescribeEventTopics = "DescribeEventTopics" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeEventTopics for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -906,11 +1405,34 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Directory Service's +// API operation DescribeEventTopics for usage and error information. +// +// Returned Error Codes: +// * EntityDoesNotExistException +// The specified entity could not be found. +// +// * InvalidParameterException +// One or more parameters are not valid. +// +// * ClientException +// A client exception has occurred. +// +// * ServiceException +// An exception has occurred in AWS Directory Service. +// func (c *DirectoryService) DescribeEventTopics(input *DescribeEventTopicsInput) (*DescribeEventTopicsOutput, error) { req, out := c.DescribeEventTopicsRequest(input) err := req.Send() @@ -924,6 +1446,8 @@ const opDescribeSnapshots = "DescribeSnapshots" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeSnapshots for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -958,6 +1482,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 +1492,30 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Directory Service's +// API operation DescribeSnapshots for usage and error information. +// +// Returned Error Codes: +// * EntityDoesNotExistException +// The specified entity could not be found. +// +// * InvalidParameterException +// One or more parameters are not valid. +// +// * InvalidNextTokenException +// The NextToken value is not valid. +// +// * ClientException +// A client exception has occurred. +// +// * ServiceException +// An exception has occurred in AWS Directory Service. +// func (c *DirectoryService) DescribeSnapshots(input *DescribeSnapshotsInput) (*DescribeSnapshotsOutput, error) { req, out := c.DescribeSnapshotsRequest(input) err := req.Send() @@ -979,6 +1529,8 @@ const opDescribeTrusts = "DescribeTrusts" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeTrusts for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1013,10 +1565,39 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Directory Service's +// API operation DescribeTrusts for usage and error information. +// +// Returned Error Codes: +// * EntityDoesNotExistException +// The specified entity could not be found. +// +// * InvalidNextTokenException +// The NextToken value is not valid. +// +// * InvalidParameterException +// One or more parameters are not valid. +// +// * ClientException +// A client exception has occurred. +// +// * ServiceException +// An exception has occurred in AWS Directory Service. +// +// * UnsupportedOperationException +// The operation is not supported. +// func (c *DirectoryService) DescribeTrusts(input *DescribeTrustsInput) (*DescribeTrustsOutput, error) { req, out := c.DescribeTrustsRequest(input) err := req.Send() @@ -1030,6 +1611,8 @@ const opDisableRadius = "DisableRadius" // value can be used to capture response data after the request's "Send" method // is called. // +// See DisableRadius for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1064,8 +1647,28 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Directory Service's +// API operation DisableRadius for usage and error information. +// +// Returned Error Codes: +// * EntityDoesNotExistException +// The specified entity could not be found. +// +// * ClientException +// A client exception has occurred. +// +// * ServiceException +// An exception has occurred in AWS Directory Service. +// func (c *DirectoryService) DisableRadius(input *DisableRadiusInput) (*DisableRadiusOutput, error) { req, out := c.DisableRadiusRequest(input) err := req.Send() @@ -1079,6 +1682,8 @@ const opDisableSso = "DisableSso" // value can be used to capture response data after the request's "Send" method // is called. // +// See DisableSso for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1113,7 +1718,33 @@ func (c *DirectoryService) DisableSsoRequest(input *DisableSsoInput) (req *reque return } +// DisableSso API operation for AWS Directory Service. +// // Disables single-sign on for a directory. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Directory Service's +// API operation DisableSso for usage and error information. +// +// Returned Error Codes: +// * EntityDoesNotExistException +// The specified entity could not be found. +// +// * InsufficientPermissionsException +// The account does not have sufficient permission to perform the operation. +// +// * AuthenticationFailedException +// An authentication error occurred. +// +// * ClientException +// A client exception has occurred. +// +// * ServiceException +// An exception has occurred in AWS Directory Service. +// func (c *DirectoryService) DisableSso(input *DisableSsoInput) (*DisableSsoOutput, error) { req, out := c.DisableSsoRequest(input) err := req.Send() @@ -1127,6 +1758,8 @@ const opEnableRadius = "EnableRadius" // value can be used to capture response data after the request's "Send" method // is called. // +// See EnableRadius for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1161,8 +1794,34 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Directory Service's +// API operation EnableRadius for usage and error information. +// +// Returned Error Codes: +// * InvalidParameterException +// One or more parameters are not valid. +// +// * EntityAlreadyExistsException +// The specified entity already exists. +// +// * EntityDoesNotExistException +// The specified entity could not be found. +// +// * ClientException +// A client exception has occurred. +// +// * ServiceException +// An exception has occurred in AWS Directory Service. +// func (c *DirectoryService) EnableRadius(input *EnableRadiusInput) (*EnableRadiusOutput, error) { req, out := c.EnableRadiusRequest(input) err := req.Send() @@ -1176,6 +1835,8 @@ const opEnableSso = "EnableSso" // value can be used to capture response data after the request's "Send" method // is called. // +// See EnableSso for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1210,7 +1871,33 @@ func (c *DirectoryService) EnableSsoRequest(input *EnableSsoInput) (req *request return } +// EnableSso API operation for AWS Directory Service. +// // Enables single-sign on for a directory. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Directory Service's +// API operation EnableSso for usage and error information. +// +// Returned Error Codes: +// * EntityDoesNotExistException +// The specified entity could not be found. +// +// * InsufficientPermissionsException +// The account does not have sufficient permission to perform the operation. +// +// * AuthenticationFailedException +// An authentication error occurred. +// +// * ClientException +// A client exception has occurred. +// +// * ServiceException +// An exception has occurred in AWS Directory Service. +// func (c *DirectoryService) EnableSso(input *EnableSsoInput) (*EnableSsoOutput, error) { req, out := c.EnableSsoRequest(input) err := req.Send() @@ -1224,6 +1911,8 @@ const opGetDirectoryLimits = "GetDirectoryLimits" // value can be used to capture response data after the request's "Send" method // is called. // +// See GetDirectoryLimits for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1258,7 +1947,27 @@ func (c *DirectoryService) GetDirectoryLimitsRequest(input *GetDirectoryLimitsIn return } +// GetDirectoryLimits API operation for AWS Directory Service. +// // Obtains directory limit information for the current region. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Directory Service's +// API operation GetDirectoryLimits for usage and error information. +// +// Returned Error Codes: +// * EntityDoesNotExistException +// The specified entity could not be found. +// +// * ClientException +// A client exception has occurred. +// +// * ServiceException +// An exception has occurred in AWS Directory Service. +// func (c *DirectoryService) GetDirectoryLimits(input *GetDirectoryLimitsInput) (*GetDirectoryLimitsOutput, error) { req, out := c.GetDirectoryLimitsRequest(input) err := req.Send() @@ -1272,6 +1981,8 @@ const opGetSnapshotLimits = "GetSnapshotLimits" // value can be used to capture response data after the request's "Send" method // is called. // +// See GetSnapshotLimits for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1306,7 +2017,27 @@ func (c *DirectoryService) GetSnapshotLimitsRequest(input *GetSnapshotLimitsInpu return } +// GetSnapshotLimits API operation for AWS Directory Service. +// // Obtains the manual snapshot limits for a directory. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Directory Service's +// API operation GetSnapshotLimits for usage and error information. +// +// Returned Error Codes: +// * EntityDoesNotExistException +// The specified entity could not be found. +// +// * ClientException +// A client exception has occurred. +// +// * ServiceException +// An exception has occurred in AWS Directory Service. +// func (c *DirectoryService) GetSnapshotLimits(input *GetSnapshotLimitsInput) (*GetSnapshotLimitsOutput, error) { req, out := c.GetSnapshotLimitsRequest(input) err := req.Send() @@ -1320,6 +2051,8 @@ const opListIpRoutes = "ListIpRoutes" // value can be used to capture response data after the request's "Send" method // is called. // +// See ListIpRoutes for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1354,7 +2087,33 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Directory Service's +// API operation ListIpRoutes for usage and error information. +// +// Returned Error Codes: +// * EntityDoesNotExistException +// The specified entity could not be found. +// +// * InvalidNextTokenException +// The NextToken value is not valid. +// +// * InvalidParameterException +// One or more parameters are not valid. +// +// * ClientException +// A client exception has occurred. +// +// * ServiceException +// An exception has occurred in AWS Directory Service. +// func (c *DirectoryService) ListIpRoutes(input *ListIpRoutesInput) (*ListIpRoutesOutput, error) { req, out := c.ListIpRoutesRequest(input) err := req.Send() @@ -1368,6 +2127,8 @@ const opListTagsForResource = "ListTagsForResource" // value can be used to capture response data after the request's "Send" method // is called. // +// See ListTagsForResource for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1402,7 +2163,33 @@ func (c *DirectoryService) ListTagsForResourceRequest(input *ListTagsForResource return } +// ListTagsForResource API operation for AWS Directory Service. +// // Lists all tags on an Amazon Directory Services directory. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Directory Service's +// API operation ListTagsForResource for usage and error information. +// +// Returned Error Codes: +// * EntityDoesNotExistException +// The specified entity could not be found. +// +// * InvalidNextTokenException +// The NextToken value is not valid. +// +// * InvalidParameterException +// One or more parameters are not valid. +// +// * ClientException +// A client exception has occurred. +// +// * ServiceException +// An exception has occurred in AWS Directory Service. +// func (c *DirectoryService) ListTagsForResource(input *ListTagsForResourceInput) (*ListTagsForResourceOutput, error) { req, out := c.ListTagsForResourceRequest(input) err := req.Send() @@ -1416,6 +2203,8 @@ const opRegisterEventTopic = "RegisterEventTopic" // value can be used to capture response data after the request's "Send" method // is called. // +// See RegisterEventTopic for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1450,12 +2239,35 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Directory Service's +// API operation RegisterEventTopic for usage and error information. +// +// Returned Error Codes: +// * EntityDoesNotExistException +// The specified entity could not be found. +// +// * InvalidParameterException +// One or more parameters are not valid. +// +// * ClientException +// A client exception has occurred. +// +// * ServiceException +// An exception has occurred in AWS Directory Service. +// func (c *DirectoryService) RegisterEventTopic(input *RegisterEventTopicInput) (*RegisterEventTopicOutput, error) { req, out := c.RegisterEventTopicRequest(input) err := req.Send() @@ -1469,6 +2281,8 @@ const opRemoveIpRoutes = "RemoveIpRoutes" // value can be used to capture response data after the request's "Send" method // is called. // +// See RemoveIpRoutes for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1503,7 +2317,33 @@ func (c *DirectoryService) RemoveIpRoutesRequest(input *RemoveIpRoutesInput) (re return } +// RemoveIpRoutes API operation for AWS Directory Service. +// // Removes IP address blocks from a directory. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Directory Service's +// API operation RemoveIpRoutes for usage and error information. +// +// Returned Error Codes: +// * EntityDoesNotExistException +// The specified entity could not be found. +// +// * InvalidParameterException +// One or more parameters are not valid. +// +// * DirectoryUnavailableException +// The specified directory is unavailable or could not be found. +// +// * ClientException +// A client exception has occurred. +// +// * ServiceException +// An exception has occurred in AWS Directory Service. +// func (c *DirectoryService) RemoveIpRoutes(input *RemoveIpRoutesInput) (*RemoveIpRoutesOutput, error) { req, out := c.RemoveIpRoutesRequest(input) err := req.Send() @@ -1517,6 +2357,8 @@ const opRemoveTagsFromResource = "RemoveTagsFromResource" // value can be used to capture response data after the request's "Send" method // is called. // +// See RemoveTagsFromResource for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1551,7 +2393,30 @@ func (c *DirectoryService) RemoveTagsFromResourceRequest(input *RemoveTagsFromRe return } +// RemoveTagsFromResource API operation for AWS Directory Service. +// // Removes tags from an Amazon Directory Services directory. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Directory Service's +// API operation RemoveTagsFromResource for usage and error information. +// +// Returned Error Codes: +// * EntityDoesNotExistException +// The specified entity could not be found. +// +// * InvalidParameterException +// One or more parameters are not valid. +// +// * ClientException +// A client exception has occurred. +// +// * ServiceException +// An exception has occurred in AWS Directory Service. +// func (c *DirectoryService) RemoveTagsFromResource(input *RemoveTagsFromResourceInput) (*RemoveTagsFromResourceOutput, error) { req, out := c.RemoveTagsFromResourceRequest(input) err := req.Send() @@ -1565,6 +2430,8 @@ const opRestoreFromSnapshot = "RestoreFromSnapshot" // value can be used to capture response data after the request's "Send" method // is called. // +// See RestoreFromSnapshot for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1599,6 +2466,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 +2477,27 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Directory Service's +// API operation RestoreFromSnapshot for usage and error information. +// +// Returned Error Codes: +// * EntityDoesNotExistException +// The specified entity could not be found. +// +// * InvalidParameterException +// One or more parameters are not valid. +// +// * ClientException +// A client exception has occurred. +// +// * ServiceException +// An exception has occurred in AWS Directory Service. +// func (c *DirectoryService) RestoreFromSnapshot(input *RestoreFromSnapshotInput) (*RestoreFromSnapshotOutput, error) { req, out := c.RestoreFromSnapshotRequest(input) err := req.Send() @@ -1621,6 +2511,8 @@ const opUpdateConditionalForwarder = "UpdateConditionalForwarder" // value can be used to capture response data after the request's "Send" method // is called. // +// See UpdateConditionalForwarder for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1655,7 +2547,36 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Directory Service's +// API operation UpdateConditionalForwarder for usage and error information. +// +// Returned Error Codes: +// * EntityDoesNotExistException +// The specified entity could not be found. +// +// * DirectoryUnavailableException +// The specified directory is unavailable or could not be found. +// +// * InvalidParameterException +// One or more parameters are not valid. +// +// * UnsupportedOperationException +// The operation is not supported. +// +// * ClientException +// A client exception has occurred. +// +// * ServiceException +// An exception has occurred in AWS Directory Service. +// func (c *DirectoryService) UpdateConditionalForwarder(input *UpdateConditionalForwarderInput) (*UpdateConditionalForwarderOutput, error) { req, out := c.UpdateConditionalForwarderRequest(input) err := req.Send() @@ -1669,6 +2590,8 @@ const opUpdateRadius = "UpdateRadius" // value can be used to capture response data after the request's "Send" method // is called. // +// See UpdateRadius for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1703,8 +2626,31 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Directory Service's +// API operation UpdateRadius for usage and error information. +// +// Returned Error Codes: +// * InvalidParameterException +// One or more parameters are not valid. +// +// * EntityDoesNotExistException +// The specified entity could not be found. +// +// * ClientException +// A client exception has occurred. +// +// * ServiceException +// An exception has occurred in AWS Directory Service. +// func (c *DirectoryService) UpdateRadius(input *UpdateRadiusInput) (*UpdateRadiusOutput, error) { req, out := c.UpdateRadiusRequest(input) err := req.Send() @@ -1718,6 +2664,8 @@ const opVerifyTrust = "VerifyTrust" // value can be used to capture response data after the request's "Send" method // is called. // +// See VerifyTrust for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1752,11 +2700,37 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Directory Service's +// API operation VerifyTrust for usage and error information. +// +// Returned Error Codes: +// * EntityDoesNotExistException +// The specified entity could not be found. +// +// * InvalidParameterException +// One or more parameters are not valid. +// +// * ClientException +// A client exception has occurred. +// +// * ServiceException +// An exception has occurred in AWS Directory Service. +// +// * UnsupportedOperationException +// The operation is not supported. +// 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..1412fe3dbd9 100644 --- a/service/dynamodb/api.go +++ b/service/dynamodb/api.go @@ -18,6 +18,8 @@ const opBatchGetItem = "BatchGetItem" // value can be used to capture response data after the request's "Send" method // is called. // +// See BatchGetItem for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -58,6 +60,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 +111,30 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon DynamoDB's +// API operation BatchGetItem for usage and error information. +// +// Returned Error Codes: +// * ProvisionedThroughputExceededException +// Your request rate is too high. The AWS SDKs for DynamoDB automatically retry +// requests that receive this exception. Your request is eventually successful, +// unless your retry queue is too large to finish. Reduce the frequency of requests +// and use exponential backoff. For more information, go to Error Retries and +// Exponential Backoff (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/ErrorHandling.html#APIRetries) +// in the Amazon DynamoDB Developer Guide. +// +// * ResourceNotFoundException +// The operation tried to access a nonexistent table or index. The resource +// might not be specified correctly, or its status might not be ACTIVE. +// +// * InternalServerError +// An error occurred on the server side. +// func (c *DynamoDB) BatchGetItem(input *BatchGetItemInput) (*BatchGetItemOutput, error) { req, out := c.BatchGetItemRequest(input) err := req.Send() @@ -145,6 +173,8 @@ const opBatchWriteItem = "BatchWriteItem" // value can be used to capture response data after the request's "Send" method // is called. // +// See BatchWriteItem for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -179,6 +209,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 +280,34 @@ func (c *DynamoDB) BatchWriteItemRequest(input *BatchWriteItemInput) (req *reque // Any individual item in a batch exceeds 400 KB. // // The total request size exceeds 16 MB. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon DynamoDB's +// API operation BatchWriteItem for usage and error information. +// +// Returned Error Codes: +// * ProvisionedThroughputExceededException +// Your request rate is too high. The AWS SDKs for DynamoDB automatically retry +// requests that receive this exception. Your request is eventually successful, +// unless your retry queue is too large to finish. Reduce the frequency of requests +// and use exponential backoff. For more information, go to Error Retries and +// Exponential Backoff (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/ErrorHandling.html#APIRetries) +// in the Amazon DynamoDB Developer Guide. +// +// * ResourceNotFoundException +// The operation tried to access a nonexistent table or index. The resource +// might not be specified correctly, or its status might not be ACTIVE. +// +// * ItemCollectionSizeLimitExceededException +// An item collection is too large. This exception is only returned for tables +// that have one or more local secondary indexes. +// +// * InternalServerError +// An error occurred on the server side. +// func (c *DynamoDB) BatchWriteItem(input *BatchWriteItemInput) (*BatchWriteItemOutput, error) { req, out := c.BatchWriteItemRequest(input) err := req.Send() @@ -261,6 +321,8 @@ const opCreateTable = "CreateTable" // value can be used to capture response data after the request's "Send" method // is called. // +// See CreateTable for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -295,6 +357,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 +374,33 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon DynamoDB's +// API operation CreateTable for usage and error information. +// +// Returned Error Codes: +// * ResourceInUseException +// The operation conflicts with the resource's availability. For example, you +// attempted to recreate an existing table, or tried to delete a table currently +// in the CREATING state. +// +// * LimitExceededException +// The number of concurrent table requests (cumulative number of tables in the +// CREATING, DELETING or UPDATING state) exceeds the maximum allowed of 10. +// +// Also, for tables with secondary indexes, only one of those tables can be +// in the CREATING state at any point in time. Do not attempt to create more +// than one such table simultaneously. +// +// The total limit of tables in the ACTIVE state is 250. +// +// * InternalServerError +// An error occurred on the server side. +// func (c *DynamoDB) CreateTable(input *CreateTableInput) (*CreateTableOutput, error) { req, out := c.CreateTableRequest(input) err := req.Send() @@ -323,6 +414,8 @@ const opDeleteItem = "DeleteItem" // value can be used to capture response data after the request's "Send" method // is called. // +// See DeleteItem for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -357,6 +450,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 +466,37 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon DynamoDB's +// API operation DeleteItem for usage and error information. +// +// Returned Error Codes: +// * ConditionalCheckFailedException +// A condition specified in the operation could not be evaluated. +// +// * ProvisionedThroughputExceededException +// Your request rate is too high. The AWS SDKs for DynamoDB automatically retry +// requests that receive this exception. Your request is eventually successful, +// unless your retry queue is too large to finish. Reduce the frequency of requests +// and use exponential backoff. For more information, go to Error Retries and +// Exponential Backoff (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/ErrorHandling.html#APIRetries) +// in the Amazon DynamoDB Developer Guide. +// +// * ResourceNotFoundException +// The operation tried to access a nonexistent table or index. The resource +// might not be specified correctly, or its status might not be ACTIVE. +// +// * ItemCollectionSizeLimitExceededException +// An item collection is too large. This exception is only returned for tables +// that have one or more local secondary indexes. +// +// * InternalServerError +// An error occurred on the server side. +// func (c *DynamoDB) DeleteItem(input *DeleteItemInput) (*DeleteItemOutput, error) { req, out := c.DeleteItemRequest(input) err := req.Send() @@ -384,6 +510,8 @@ const opDeleteTable = "DeleteTable" // value can be used to capture response data after the request's "Send" method // is called. // +// See DeleteTable for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -418,6 +546,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 +566,37 @@ func (c *DynamoDB) DeleteTableRequest(input *DeleteTableInput) (req *request.Req // deleted after 24 hours. // // Use the DescribeTable API to check the status of the table. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon DynamoDB's +// API operation DeleteTable for usage and error information. +// +// Returned Error Codes: +// * ResourceInUseException +// The operation conflicts with the resource's availability. For example, you +// attempted to recreate an existing table, or tried to delete a table currently +// in the CREATING state. +// +// * ResourceNotFoundException +// The operation tried to access a nonexistent table or index. The resource +// might not be specified correctly, or its status might not be ACTIVE. +// +// * LimitExceededException +// The number of concurrent table requests (cumulative number of tables in the +// CREATING, DELETING or UPDATING state) exceeds the maximum allowed of 10. +// +// Also, for tables with secondary indexes, only one of those tables can be +// in the CREATING state at any point in time. Do not attempt to create more +// than one such table simultaneously. +// +// The total limit of tables in the ACTIVE state is 250. +// +// * InternalServerError +// An error occurred on the server side. +// func (c *DynamoDB) DeleteTable(input *DeleteTableInput) (*DeleteTableOutput, error) { req, out := c.DeleteTableRequest(input) err := req.Send() @@ -449,6 +610,8 @@ const opDescribeLimits = "DescribeLimits" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeLimits for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -483,6 +646,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 +706,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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon DynamoDB's +// API operation DescribeLimits for usage and error information. +// +// Returned Error Codes: +// * InternalServerError +// An error occurred on the server side. +// func (c *DynamoDB) DescribeLimits(input *DescribeLimitsInput) (*DescribeLimitsOutput, error) { req, out := c.DescribeLimitsRequest(input) err := req.Send() @@ -554,6 +731,8 @@ const opDescribeTable = "DescribeTable" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeTable for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -588,6 +767,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 +778,22 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon DynamoDB's +// API operation DescribeTable for usage and error information. +// +// Returned Error Codes: +// * ResourceNotFoundException +// The operation tried to access a nonexistent table or index. The resource +// might not be specified correctly, or its status might not be ACTIVE. +// +// * InternalServerError +// An error occurred on the server side. +// func (c *DynamoDB) DescribeTable(input *DescribeTableInput) (*DescribeTableOutput, error) { req, out := c.DescribeTableRequest(input) err := req.Send() @@ -610,6 +807,8 @@ const opGetItem = "GetItem" // value can be used to capture response data after the request's "Send" method // is called. // +// See GetItem for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -644,6 +843,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 +852,30 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon DynamoDB's +// API operation GetItem for usage and error information. +// +// Returned Error Codes: +// * ProvisionedThroughputExceededException +// Your request rate is too high. The AWS SDKs for DynamoDB automatically retry +// requests that receive this exception. Your request is eventually successful, +// unless your retry queue is too large to finish. Reduce the frequency of requests +// and use exponential backoff. For more information, go to Error Retries and +// Exponential Backoff (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/ErrorHandling.html#APIRetries) +// in the Amazon DynamoDB Developer Guide. +// +// * ResourceNotFoundException +// The operation tried to access a nonexistent table or index. The resource +// might not be specified correctly, or its status might not be ACTIVE. +// +// * InternalServerError +// An error occurred on the server side. +// func (c *DynamoDB) GetItem(input *GetItemInput) (*GetItemOutput, error) { req, out := c.GetItemRequest(input) err := req.Send() @@ -664,6 +889,8 @@ const opListTables = "ListTables" // value can be used to capture response data after the request's "Send" method // is called. // +// See ListTables for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -704,9 +931,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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon DynamoDB's +// API operation ListTables for usage and error information. +// +// Returned Error Codes: +// * InternalServerError +// An error occurred on the server side. +// func (c *DynamoDB) ListTables(input *ListTablesInput) (*ListTablesOutput, error) { req, out := c.ListTablesRequest(input) err := req.Send() @@ -745,6 +986,8 @@ const opPutItem = "PutItem" // value can be used to capture response data after the request's "Send" method // is called. // +// See PutItem for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -779,6 +1022,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 +1051,37 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon DynamoDB's +// API operation PutItem for usage and error information. +// +// Returned Error Codes: +// * ConditionalCheckFailedException +// A condition specified in the operation could not be evaluated. +// +// * ProvisionedThroughputExceededException +// Your request rate is too high. The AWS SDKs for DynamoDB automatically retry +// requests that receive this exception. Your request is eventually successful, +// unless your retry queue is too large to finish. Reduce the frequency of requests +// and use exponential backoff. For more information, go to Error Retries and +// Exponential Backoff (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/ErrorHandling.html#APIRetries) +// in the Amazon DynamoDB Developer Guide. +// +// * ResourceNotFoundException +// The operation tried to access a nonexistent table or index. The resource +// might not be specified correctly, or its status might not be ACTIVE. +// +// * ItemCollectionSizeLimitExceededException +// An item collection is too large. This exception is only returned for tables +// that have one or more local secondary indexes. +// +// * InternalServerError +// An error occurred on the server side. +// func (c *DynamoDB) PutItem(input *PutItemInput) (*PutItemOutput, error) { req, out := c.PutItemRequest(input) err := req.Send() @@ -819,6 +1095,8 @@ const opQuery = "Query" // value can be used to capture response data after the request's "Send" method // is called. // +// See Query for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -859,6 +1137,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 +1165,30 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon DynamoDB's +// API operation Query for usage and error information. +// +// Returned Error Codes: +// * ProvisionedThroughputExceededException +// Your request rate is too high. The AWS SDKs for DynamoDB automatically retry +// requests that receive this exception. Your request is eventually successful, +// unless your retry queue is too large to finish. Reduce the frequency of requests +// and use exponential backoff. For more information, go to Error Retries and +// Exponential Backoff (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/ErrorHandling.html#APIRetries) +// in the Amazon DynamoDB Developer Guide. +// +// * ResourceNotFoundException +// The operation tried to access a nonexistent table or index. The resource +// might not be specified correctly, or its status might not be ACTIVE. +// +// * InternalServerError +// An error occurred on the server side. +// func (c *DynamoDB) Query(input *QueryInput) (*QueryOutput, error) { req, out := c.QueryRequest(input) err := req.Send() @@ -923,6 +1227,8 @@ const opScan = "Scan" // value can be used to capture response data after the request's "Send" method // is called. // +// See Scan for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -963,6 +1269,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 +1292,30 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon DynamoDB's +// API operation Scan for usage and error information. +// +// Returned Error Codes: +// * ProvisionedThroughputExceededException +// Your request rate is too high. The AWS SDKs for DynamoDB automatically retry +// requests that receive this exception. Your request is eventually successful, +// unless your retry queue is too large to finish. Reduce the frequency of requests +// and use exponential backoff. For more information, go to Error Retries and +// Exponential Backoff (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/ErrorHandling.html#APIRetries) +// in the Amazon DynamoDB Developer Guide. +// +// * ResourceNotFoundException +// The operation tried to access a nonexistent table or index. The resource +// might not be specified correctly, or its status might not be ACTIVE. +// +// * InternalServerError +// An error occurred on the server side. +// func (c *DynamoDB) Scan(input *ScanInput) (*ScanOutput, error) { req, out := c.ScanRequest(input) err := req.Send() @@ -1022,6 +1354,8 @@ const opUpdateItem = "UpdateItem" // value can be used to capture response data after the request's "Send" method // is called. // +// See UpdateItem for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1056,6 +1390,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 +1400,37 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon DynamoDB's +// API operation UpdateItem for usage and error information. +// +// Returned Error Codes: +// * ConditionalCheckFailedException +// A condition specified in the operation could not be evaluated. +// +// * ProvisionedThroughputExceededException +// Your request rate is too high. The AWS SDKs for DynamoDB automatically retry +// requests that receive this exception. Your request is eventually successful, +// unless your retry queue is too large to finish. Reduce the frequency of requests +// and use exponential backoff. For more information, go to Error Retries and +// Exponential Backoff (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/ErrorHandling.html#APIRetries) +// in the Amazon DynamoDB Developer Guide. +// +// * ResourceNotFoundException +// The operation tried to access a nonexistent table or index. The resource +// might not be specified correctly, or its status might not be ACTIVE. +// +// * ItemCollectionSizeLimitExceededException +// An item collection is too large. This exception is only returned for tables +// that have one or more local secondary indexes. +// +// * InternalServerError +// An error occurred on the server side. +// func (c *DynamoDB) UpdateItem(input *UpdateItemInput) (*UpdateItemOutput, error) { req, out := c.UpdateItemRequest(input) err := req.Send() @@ -1077,6 +1444,8 @@ const opUpdateTable = "UpdateTable" // value can be used to capture response data after the request's "Send" method // is called. // +// See UpdateTable for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1111,6 +1480,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 +1500,37 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon DynamoDB's +// API operation UpdateTable for usage and error information. +// +// Returned Error Codes: +// * ResourceInUseException +// The operation conflicts with the resource's availability. For example, you +// attempted to recreate an existing table, or tried to delete a table currently +// in the CREATING state. +// +// * ResourceNotFoundException +// The operation tried to access a nonexistent table or index. The resource +// might not be specified correctly, or its status might not be ACTIVE. +// +// * LimitExceededException +// The number of concurrent table requests (cumulative number of tables in the +// CREATING, DELETING or UPDATING state) exceeds the maximum allowed of 10. +// +// Also, for tables with secondary indexes, only one of those tables can be +// in the CREATING state at any point in time. Do not attempt to create more +// than one such table simultaneously. +// +// The total limit of tables in the ACTIVE state is 250. +// +// * InternalServerError +// An error occurred on the server side. +// 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..33eab8bd76f 100644 --- a/service/dynamodbstreams/api.go +++ b/service/dynamodbstreams/api.go @@ -18,6 +18,8 @@ const opDescribeStream = "DescribeStream" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeStream for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -52,6 +54,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 +67,21 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon DynamoDB Streams's +// API operation DescribeStream for usage and error information. +// +// Returned Error Codes: +// * ResourceNotFoundException +// The operation tried to access a nonexistent stream. +// +// * InternalServerError +// An error occurred on the server side. +// func (c *DynamoDBStreams) DescribeStream(input *DescribeStreamInput) (*DescribeStreamOutput, error) { req, out := c.DescribeStreamRequest(input) err := req.Send() @@ -76,6 +95,8 @@ const opGetRecords = "GetRecords" // value can be used to capture response data after the request's "Send" method // is called. // +// See GetRecords for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -110,6 +131,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 +144,48 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon DynamoDB Streams's +// API operation GetRecords for usage and error information. +// +// Returned Error Codes: +// * ResourceNotFoundException +// The operation tried to access a nonexistent stream. +// +// * LimitExceededException +// Your request rate is too high. The AWS SDKs for DynamoDB automatically retry +// requests that receive this exception. Your request is eventually successful, +// unless your retry queue is too large to finish. Reduce the frequency of requests +// and use exponential backoff. For more information, go to Error Retries and +// Exponential Backoff (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/ErrorHandling.html#APIRetries) +// in the Amazon DynamoDB Developer Guide. +// +// * InternalServerError +// An error occurred on the server side. +// +// * ExpiredIteratorException +// The shard iterator has expired and can no longer be used to retrieve stream +// records. A shard iterator expires 15 minutes after it is retrieved using +// the GetShardIterator action. +// +// * TrimmedDataAccessException +// The operation attempted to read past the oldest stream record in a shard. +// +// In DynamoDB Streams, there is a 24 hour limit on data retention. Stream +// records whose age exceeds this limit are subject to removal (trimming) from +// the stream. You might receive a TrimmedDataAccessException if: +// +// You request a shard iterator with a sequence number older than the trim +// point (24 hours). +// +// You obtain a shard iterator, but before you use the iterator in a GetRecords +// request, a stream record in the shard exceeds the 24 hour period and is trimmed. +// This causes the iterator to access a record that no longer exists. +// func (c *DynamoDBStreams) GetRecords(input *GetRecordsInput) (*GetRecordsOutput, error) { req, out := c.GetRecordsRequest(input) err := req.Send() @@ -134,6 +199,8 @@ const opGetShardIterator = "GetShardIterator" // value can be used to capture response data after the request's "Send" method // is called. // +// See GetShardIterator for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -168,11 +235,42 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon DynamoDB Streams's +// API operation GetShardIterator for usage and error information. +// +// Returned Error Codes: +// * ResourceNotFoundException +// The operation tried to access a nonexistent stream. +// +// * InternalServerError +// An error occurred on the server side. +// +// * TrimmedDataAccessException +// The operation attempted to read past the oldest stream record in a shard. +// +// In DynamoDB Streams, there is a 24 hour limit on data retention. Stream +// records whose age exceeds this limit are subject to removal (trimming) from +// the stream. You might receive a TrimmedDataAccessException if: +// +// You request a shard iterator with a sequence number older than the trim +// point (24 hours). +// +// You obtain a shard iterator, but before you use the iterator in a GetRecords +// request, a stream record in the shard exceeds the 24 hour period and is trimmed. +// This causes the iterator to access a record that no longer exists. +// func (c *DynamoDBStreams) GetShardIterator(input *GetShardIteratorInput) (*GetShardIteratorOutput, error) { req, out := c.GetShardIteratorRequest(input) err := req.Send() @@ -186,6 +284,8 @@ const opListStreams = "ListStreams" // value can be used to capture response data after the request's "Send" method // is called. // +// See ListStreams for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -220,11 +320,28 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon DynamoDB Streams's +// API operation ListStreams for usage and error information. +// +// Returned Error Codes: +// * ResourceNotFoundException +// The operation tried to access a nonexistent stream. +// +// * InternalServerError +// An error occurred on the server side. +// 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..d9aa717bda7 100644 --- a/service/ec2/api.go +++ b/service/ec2/api.go @@ -20,6 +20,8 @@ const opAcceptReservedInstancesExchangeQuote = "AcceptReservedInstancesExchangeQ // value can be used to capture response data after the request's "Send" method // is called. // +// See AcceptReservedInstancesExchangeQuote for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -54,8 +56,17 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation AcceptReservedInstancesExchangeQuote for usage and error information. func (c *EC2) AcceptReservedInstancesExchangeQuote(input *AcceptReservedInstancesExchangeQuoteInput) (*AcceptReservedInstancesExchangeQuoteOutput, error) { req, out := c.AcceptReservedInstancesExchangeQuoteRequest(input) err := req.Send() @@ -69,6 +80,8 @@ const opAcceptVpcPeeringConnection = "AcceptVpcPeeringConnection" // value can be used to capture response data after the request's "Send" method // is called. // +// See AcceptVpcPeeringConnection for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -103,10 +116,19 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation AcceptVpcPeeringConnection for usage and error information. func (c *EC2) AcceptVpcPeeringConnection(input *AcceptVpcPeeringConnectionInput) (*AcceptVpcPeeringConnectionOutput, error) { req, out := c.AcceptVpcPeeringConnectionRequest(input) err := req.Send() @@ -120,6 +142,8 @@ const opAllocateAddress = "AllocateAddress" // value can be used to capture response data after the request's "Send" method // is called. // +// See AllocateAddress for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -154,11 +178,20 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation AllocateAddress for usage and error information. func (c *EC2) AllocateAddress(input *AllocateAddressInput) (*AllocateAddressOutput, error) { req, out := c.AllocateAddressRequest(input) err := req.Send() @@ -172,6 +205,8 @@ const opAllocateHosts = "AllocateHosts" // value can be used to capture response data after the request's "Send" method // is called. // +// See AllocateHosts for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -206,9 +241,18 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation AllocateHosts for usage and error information. func (c *EC2) AllocateHosts(input *AllocateHostsInput) (*AllocateHostsOutput, error) { req, out := c.AllocateHostsRequest(input) err := req.Send() @@ -222,6 +266,8 @@ const opAssignPrivateIpAddresses = "AssignPrivateIpAddresses" // value can be used to capture response data after the request's "Send" method // is called. // +// See AssignPrivateIpAddresses for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -258,6 +304,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 +317,13 @@ func (c *EC2) AssignPrivateIpAddressesRequest(input *AssignPrivateIpAddressesInp // in the Amazon Elastic Compute Cloud User Guide. // // AssignPrivateIpAddresses is available only in EC2-VPC. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation AssignPrivateIpAddresses for usage and error information. func (c *EC2) AssignPrivateIpAddresses(input *AssignPrivateIpAddressesInput) (*AssignPrivateIpAddressesOutput, error) { req, out := c.AssignPrivateIpAddressesRequest(input) err := req.Send() @@ -282,6 +337,8 @@ const opAssociateAddress = "AssociateAddress" // value can be used to capture response data after the request's "Send" method // is called. // +// See AssociateAddress for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -316,6 +373,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 +394,13 @@ 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/). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation AssociateAddress for usage and error information. func (c *EC2) AssociateAddress(input *AssociateAddressInput) (*AssociateAddressOutput, error) { req, out := c.AssociateAddressRequest(input) err := req.Send() @@ -348,6 +414,8 @@ const opAssociateDhcpOptions = "AssociateDhcpOptions" // value can be used to capture response data after the request's "Send" method // is called. // +// See AssociateDhcpOptions for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -384,6 +452,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 +466,13 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation AssociateDhcpOptions for usage and error information. func (c *EC2) AssociateDhcpOptions(input *AssociateDhcpOptionsInput) (*AssociateDhcpOptionsOutput, error) { req, out := c.AssociateDhcpOptionsRequest(input) err := req.Send() @@ -409,6 +486,8 @@ const opAssociateRouteTable = "AssociateRouteTable" // value can be used to capture response data after the request's "Send" method // is called. // +// See AssociateRouteTable for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -443,6 +522,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 +532,13 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation AssociateRouteTable for usage and error information. func (c *EC2) AssociateRouteTable(input *AssociateRouteTableInput) (*AssociateRouteTableOutput, error) { req, out := c.AssociateRouteTableRequest(input) err := req.Send() @@ -464,6 +552,8 @@ const opAttachClassicLinkVpc = "AttachClassicLinkVpc" // value can be used to capture response data after the request's "Send" method // is called. // +// See AttachClassicLinkVpc for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -498,6 +588,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 +602,13 @@ func (c *EC2) AttachClassicLinkVpcRequest(input *AttachClassicLinkVpcInput) (req // // Linking your instance to a VPC is sometimes referred to as attaching your // instance. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation AttachClassicLinkVpc for usage and error information. func (c *EC2) AttachClassicLinkVpc(input *AttachClassicLinkVpcInput) (*AttachClassicLinkVpcOutput, error) { req, out := c.AttachClassicLinkVpcRequest(input) err := req.Send() @@ -523,6 +622,8 @@ const opAttachInternetGateway = "AttachInternetGateway" // value can be used to capture response data after the request's "Send" method // is called. // +// See AttachInternetGateway for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -559,9 +660,18 @@ 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/). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation AttachInternetGateway for usage and error information. func (c *EC2) AttachInternetGateway(input *AttachInternetGatewayInput) (*AttachInternetGatewayOutput, error) { req, out := c.AttachInternetGatewayRequest(input) err := req.Send() @@ -575,6 +685,8 @@ const opAttachNetworkInterface = "AttachNetworkInterface" // value can be used to capture response data after the request's "Send" method // is called. // +// See AttachNetworkInterface for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -609,7 +721,16 @@ func (c *EC2) AttachNetworkInterfaceRequest(input *AttachNetworkInterfaceInput) return } +// AttachNetworkInterface API operation for Amazon Elastic Compute Cloud. +// // Attaches a network interface to an instance. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation AttachNetworkInterface for usage and error information. func (c *EC2) AttachNetworkInterface(input *AttachNetworkInterfaceInput) (*AttachNetworkInterfaceOutput, error) { req, out := c.AttachNetworkInterfaceRequest(input) err := req.Send() @@ -623,6 +744,8 @@ const opAttachVolume = "AttachVolume" // value can be used to capture response data after the request's "Send" method // is called. // +// See AttachVolume for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -657,6 +780,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 +813,13 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation AttachVolume for usage and error information. func (c *EC2) AttachVolume(input *AttachVolumeInput) (*VolumeAttachment, error) { req, out := c.AttachVolumeRequest(input) err := req.Send() @@ -701,6 +833,8 @@ const opAttachVpnGateway = "AttachVpnGateway" // value can be used to capture response data after the request's "Send" method // is called. // +// See AttachVpnGateway for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -735,9 +869,18 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation AttachVpnGateway for usage and error information. func (c *EC2) AttachVpnGateway(input *AttachVpnGatewayInput) (*AttachVpnGatewayOutput, error) { req, out := c.AttachVpnGatewayRequest(input) err := req.Send() @@ -751,6 +894,8 @@ const opAuthorizeSecurityGroupEgress = "AuthorizeSecurityGroupEgress" // value can be used to capture response data after the request's "Send" method // is called. // +// See AuthorizeSecurityGroupEgress for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -787,6 +932,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 +953,13 @@ func (c *EC2) AuthorizeSecurityGroupEgressRequest(input *AuthorizeSecurityGroupE // // Rule changes are propagated to affected instances as quickly as possible. // However, a small delay might occur. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation AuthorizeSecurityGroupEgress for usage and error information. func (c *EC2) AuthorizeSecurityGroupEgress(input *AuthorizeSecurityGroupEgressInput) (*AuthorizeSecurityGroupEgressOutput, error) { req, out := c.AuthorizeSecurityGroupEgressRequest(input) err := req.Send() @@ -819,6 +973,8 @@ const opAuthorizeSecurityGroupIngress = "AuthorizeSecurityGroupIngress" // value can be used to capture response data after the request's "Send" method // is called. // +// See AuthorizeSecurityGroupIngress for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -855,6 +1011,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 +1032,13 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation AuthorizeSecurityGroupIngress for usage and error information. func (c *EC2) AuthorizeSecurityGroupIngress(input *AuthorizeSecurityGroupIngressInput) (*AuthorizeSecurityGroupIngressOutput, error) { req, out := c.AuthorizeSecurityGroupIngressRequest(input) err := req.Send() @@ -887,6 +1052,8 @@ const opBundleInstance = "BundleInstance" // value can be used to capture response data after the request's "Send" method // is called. // +// See BundleInstance for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -921,6 +1088,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 +1100,13 @@ 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). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation BundleInstance for usage and error information. func (c *EC2) BundleInstance(input *BundleInstanceInput) (*BundleInstanceOutput, error) { req, out := c.BundleInstanceRequest(input) err := req.Send() @@ -944,6 +1120,8 @@ const opCancelBundleTask = "CancelBundleTask" // value can be used to capture response data after the request's "Send" method // is called. // +// See CancelBundleTask for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -978,7 +1156,16 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation CancelBundleTask for usage and error information. func (c *EC2) CancelBundleTask(input *CancelBundleTaskInput) (*CancelBundleTaskOutput, error) { req, out := c.CancelBundleTaskRequest(input) err := req.Send() @@ -992,6 +1179,8 @@ const opCancelConversionTask = "CancelConversionTask" // value can be used to capture response data after the request's "Send" method // is called. // +// See CancelConversionTask for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1028,6 +1217,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 +1227,13 @@ 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). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation CancelConversionTask for usage and error information. func (c *EC2) CancelConversionTask(input *CancelConversionTaskInput) (*CancelConversionTaskOutput, error) { req, out := c.CancelConversionTaskRequest(input) err := req.Send() @@ -1049,6 +1247,8 @@ const opCancelExportTask = "CancelExportTask" // value can be used to capture response data after the request's "Send" method // is called. // +// See CancelExportTask for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1085,10 +1285,19 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation CancelExportTask for usage and error information. func (c *EC2) CancelExportTask(input *CancelExportTaskInput) (*CancelExportTaskOutput, error) { req, out := c.CancelExportTaskRequest(input) err := req.Send() @@ -1102,6 +1311,8 @@ const opCancelImportTask = "CancelImportTask" // value can be used to capture response data after the request's "Send" method // is called. // +// See CancelImportTask for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1136,7 +1347,16 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation CancelImportTask for usage and error information. func (c *EC2) CancelImportTask(input *CancelImportTaskInput) (*CancelImportTaskOutput, error) { req, out := c.CancelImportTaskRequest(input) err := req.Send() @@ -1150,6 +1370,8 @@ const opCancelReservedInstancesListing = "CancelReservedInstancesListing" // value can be used to capture response data after the request's "Send" method // is called. // +// See CancelReservedInstancesListing for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1184,11 +1406,20 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation CancelReservedInstancesListing for usage and error information. func (c *EC2) CancelReservedInstancesListing(input *CancelReservedInstancesListingInput) (*CancelReservedInstancesListingOutput, error) { req, out := c.CancelReservedInstancesListingRequest(input) err := req.Send() @@ -1202,6 +1433,8 @@ const opCancelSpotFleetRequests = "CancelSpotFleetRequests" // value can be used to capture response data after the request's "Send" method // is called. // +// See CancelSpotFleetRequests for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1236,6 +1469,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 +1479,13 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation CancelSpotFleetRequests for usage and error information. func (c *EC2) CancelSpotFleetRequests(input *CancelSpotFleetRequestsInput) (*CancelSpotFleetRequestsOutput, error) { req, out := c.CancelSpotFleetRequestsRequest(input) err := req.Send() @@ -1257,6 +1499,8 @@ const opCancelSpotInstanceRequests = "CancelSpotInstanceRequests" // value can be used to capture response data after the request's "Send" method // is called. // +// See CancelSpotInstanceRequests for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1291,6 +1535,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 +1546,13 @@ func (c *EC2) CancelSpotInstanceRequestsRequest(input *CancelSpotInstanceRequest // // Canceling a Spot instance request does not terminate running Spot instances // associated with the request. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation CancelSpotInstanceRequests for usage and error information. func (c *EC2) CancelSpotInstanceRequests(input *CancelSpotInstanceRequestsInput) (*CancelSpotInstanceRequestsOutput, error) { req, out := c.CancelSpotInstanceRequestsRequest(input) err := req.Send() @@ -1313,6 +1566,8 @@ const opConfirmProductInstance = "ConfirmProductInstance" // value can be used to capture response data after the request's "Send" method // is called. // +// See ConfirmProductInstance for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1347,10 +1602,19 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation ConfirmProductInstance for usage and error information. func (c *EC2) ConfirmProductInstance(input *ConfirmProductInstanceInput) (*ConfirmProductInstanceOutput, error) { req, out := c.ConfirmProductInstanceRequest(input) err := req.Send() @@ -1364,6 +1628,8 @@ const opCopyImage = "CopyImage" // value can be used to capture response data after the request's "Send" method // is called. // +// See CopyImage for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1398,12 +1664,21 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation CopyImage for usage and error information. func (c *EC2) CopyImage(input *CopyImageInput) (*CopyImageOutput, error) { req, out := c.CopyImageRequest(input) err := req.Send() @@ -1417,6 +1692,8 @@ const opCopySnapshot = "CopySnapshot" // value can be used to capture response data after the request's "Send" method // is called. // +// See CopySnapshot for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1451,6 +1728,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 +1750,13 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation CopySnapshot for usage and error information. func (c *EC2) CopySnapshot(input *CopySnapshotInput) (*CopySnapshotOutput, error) { req, out := c.CopySnapshotRequest(input) err := req.Send() @@ -1484,6 +1770,8 @@ const opCreateCustomerGateway = "CreateCustomerGateway" // value can be used to capture response data after the request's "Send" method // is called. // +// See CreateCustomerGateway for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1518,6 +1806,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 +1833,13 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation CreateCustomerGateway for usage and error information. func (c *EC2) CreateCustomerGateway(input *CreateCustomerGatewayInput) (*CreateCustomerGatewayOutput, error) { req, out := c.CreateCustomerGatewayRequest(input) err := req.Send() @@ -1556,6 +1853,8 @@ const opCreateDhcpOptions = "CreateDhcpOptions" // value can be used to capture response data after the request's "Send" method // is called. // +// See CreateDhcpOptions for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1590,6 +1889,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 +1931,13 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation CreateDhcpOptions for usage and error information. func (c *EC2) CreateDhcpOptions(input *CreateDhcpOptionsInput) (*CreateDhcpOptionsOutput, error) { req, out := c.CreateDhcpOptionsRequest(input) err := req.Send() @@ -1643,6 +1951,8 @@ const opCreateFlowLogs = "CreateFlowLogs" // value can be used to capture response data after the request's "Send" method // is called. // +// See CreateFlowLogs for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1677,6 +1987,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 +1999,13 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation CreateFlowLogs for usage and error information. func (c *EC2) CreateFlowLogs(input *CreateFlowLogsInput) (*CreateFlowLogsOutput, error) { req, out := c.CreateFlowLogsRequest(input) err := req.Send() @@ -1700,6 +2019,8 @@ const opCreateImage = "CreateImage" // value can be used to capture response data after the request's "Send" method // is called. // +// See CreateImage for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1734,6 +2055,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 +2067,13 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation CreateImage for usage and error information. func (c *EC2) CreateImage(input *CreateImageInput) (*CreateImageOutput, error) { req, out := c.CreateImageRequest(input) err := req.Send() @@ -1757,6 +2087,8 @@ const opCreateInstanceExportTask = "CreateInstanceExportTask" // value can be used to capture response data after the request's "Send" method // is called. // +// See CreateInstanceExportTask for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1791,12 +2123,21 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation CreateInstanceExportTask for usage and error information. func (c *EC2) CreateInstanceExportTask(input *CreateInstanceExportTaskInput) (*CreateInstanceExportTaskOutput, error) { req, out := c.CreateInstanceExportTaskRequest(input) err := req.Send() @@ -1810,6 +2151,8 @@ const opCreateInternetGateway = "CreateInternetGateway" // value can be used to capture response data after the request's "Send" method // is called. // +// See CreateInternetGateway for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1844,11 +2187,20 @@ 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/). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation CreateInternetGateway for usage and error information. func (c *EC2) CreateInternetGateway(input *CreateInternetGatewayInput) (*CreateInternetGatewayOutput, error) { req, out := c.CreateInternetGatewayRequest(input) err := req.Send() @@ -1862,6 +2214,8 @@ const opCreateKeyPair = "CreateKeyPair" // value can be used to capture response data after the request's "Send" method // is called. // +// See CreateKeyPair for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1896,6 +2250,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 +2264,13 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation CreateKeyPair for usage and error information. func (c *EC2) CreateKeyPair(input *CreateKeyPairInput) (*CreateKeyPairOutput, error) { req, out := c.CreateKeyPairRequest(input) err := req.Send() @@ -1921,6 +2284,8 @@ const opCreateNatGateway = "CreateNatGateway" // value can be used to capture response data after the request's "Send" method // is called. // +// See CreateNatGateway for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1955,12 +2320,21 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation CreateNatGateway for usage and error information. func (c *EC2) CreateNatGateway(input *CreateNatGatewayInput) (*CreateNatGatewayOutput, error) { req, out := c.CreateNatGatewayRequest(input) err := req.Send() @@ -1974,6 +2348,8 @@ const opCreateNetworkAcl = "CreateNetworkAcl" // value can be used to capture response data after the request's "Send" method // is called. // +// See CreateNetworkAcl for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -2008,11 +2384,20 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation CreateNetworkAcl for usage and error information. func (c *EC2) CreateNetworkAcl(input *CreateNetworkAclInput) (*CreateNetworkAclOutput, error) { req, out := c.CreateNetworkAclRequest(input) err := req.Send() @@ -2026,6 +2411,8 @@ const opCreateNetworkAclEntry = "CreateNetworkAclEntry" // value can be used to capture response data after the request's "Send" method // is called. // +// See CreateNetworkAclEntry for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -2062,6 +2449,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 +2468,13 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation CreateNetworkAclEntry for usage and error information. func (c *EC2) CreateNetworkAclEntry(input *CreateNetworkAclEntryInput) (*CreateNetworkAclEntryOutput, error) { req, out := c.CreateNetworkAclEntryRequest(input) err := req.Send() @@ -2092,6 +2488,8 @@ const opCreateNetworkInterface = "CreateNetworkInterface" // value can be used to capture response data after the request's "Send" method // is called. // +// See CreateNetworkInterface for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -2126,11 +2524,20 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation CreateNetworkInterface for usage and error information. func (c *EC2) CreateNetworkInterface(input *CreateNetworkInterfaceInput) (*CreateNetworkInterfaceOutput, error) { req, out := c.CreateNetworkInterfaceRequest(input) err := req.Send() @@ -2144,6 +2551,8 @@ const opCreatePlacementGroup = "CreatePlacementGroup" // value can be used to capture response data after the request's "Send" method // is called. // +// See CreatePlacementGroup for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -2180,12 +2589,21 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation CreatePlacementGroup for usage and error information. func (c *EC2) CreatePlacementGroup(input *CreatePlacementGroupInput) (*CreatePlacementGroupOutput, error) { req, out := c.CreatePlacementGroupRequest(input) err := req.Send() @@ -2199,6 +2617,8 @@ const opCreateReservedInstancesListing = "CreateReservedInstancesListing" // value can be used to capture response data after the request's "Send" method // is called. // +// See CreateReservedInstancesListing for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -2233,6 +2653,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 +2675,13 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation CreateReservedInstancesListing for usage and error information. func (c *EC2) CreateReservedInstancesListing(input *CreateReservedInstancesListingInput) (*CreateReservedInstancesListingOutput, error) { req, out := c.CreateReservedInstancesListingRequest(input) err := req.Send() @@ -2266,6 +2695,8 @@ const opCreateRoute = "CreateRoute" // value can be used to capture response data after the request's "Send" method // is called. // +// See CreateRoute for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -2300,6 +2731,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 +2753,13 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation CreateRoute for usage and error information. func (c *EC2) CreateRoute(input *CreateRouteInput) (*CreateRouteOutput, error) { req, out := c.CreateRouteRequest(input) err := req.Send() @@ -2333,6 +2773,8 @@ const opCreateRouteTable = "CreateRouteTable" // value can be used to capture response data after the request's "Send" method // is called. // +// See CreateRouteTable for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -2367,11 +2809,20 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation CreateRouteTable for usage and error information. func (c *EC2) CreateRouteTable(input *CreateRouteTableInput) (*CreateRouteTableOutput, error) { req, out := c.CreateRouteTableRequest(input) err := req.Send() @@ -2385,6 +2836,8 @@ const opCreateSecurityGroup = "CreateSecurityGroup" // value can be used to capture response data after the request's "Send" method // is called. // +// See CreateSecurityGroup for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -2419,6 +2872,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 +2901,13 @@ func (c *EC2) CreateSecurityGroupRequest(input *CreateSecurityGroupInput) (req * // // You can add or remove rules from your security groups using AuthorizeSecurityGroupIngress, // AuthorizeSecurityGroupEgress, RevokeSecurityGroupIngress, and RevokeSecurityGroupEgress. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation CreateSecurityGroup for usage and error information. func (c *EC2) CreateSecurityGroup(input *CreateSecurityGroupInput) (*CreateSecurityGroupOutput, error) { req, out := c.CreateSecurityGroupRequest(input) err := req.Send() @@ -2459,6 +2921,8 @@ const opCreateSnapshot = "CreateSnapshot" // value can be used to capture response data after the request's "Send" method // is called. // +// See CreateSnapshot for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -2493,6 +2957,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 +2987,13 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation CreateSnapshot for usage and error information. func (c *EC2) CreateSnapshot(input *CreateSnapshotInput) (*Snapshot, error) { req, out := c.CreateSnapshotRequest(input) err := req.Send() @@ -2534,6 +3007,8 @@ const opCreateSpotDatafeedSubscription = "CreateSpotDatafeedSubscription" // value can be used to capture response data after the request's "Send" method // is called. // +// See CreateSpotDatafeedSubscription for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -2568,10 +3043,19 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation CreateSpotDatafeedSubscription for usage and error information. func (c *EC2) CreateSpotDatafeedSubscription(input *CreateSpotDatafeedSubscriptionInput) (*CreateSpotDatafeedSubscriptionOutput, error) { req, out := c.CreateSpotDatafeedSubscriptionRequest(input) err := req.Send() @@ -2585,6 +3069,8 @@ const opCreateSubnet = "CreateSubnet" // value can be used to capture response data after the request's "Send" method // is called. // +// See CreateSubnet for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -2619,6 +3105,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 +3132,13 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation CreateSubnet for usage and error information. func (c *EC2) CreateSubnet(input *CreateSubnetInput) (*CreateSubnetOutput, error) { req, out := c.CreateSubnetRequest(input) err := req.Send() @@ -2657,6 +3152,8 @@ const opCreateTags = "CreateTags" // value can be used to capture response data after the request's "Send" method // is called. // +// See CreateTags for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -2693,6 +3190,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 +3201,13 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation CreateTags for usage and error information. func (c *EC2) CreateTags(input *CreateTagsInput) (*CreateTagsOutput, error) { req, out := c.CreateTagsRequest(input) err := req.Send() @@ -2715,6 +3221,8 @@ const opCreateVolume = "CreateVolume" // value can be used to capture response data after the request's "Send" method // is called. // +// See CreateVolume for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -2749,6 +3257,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 +3275,13 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation CreateVolume for usage and error information. func (c *EC2) CreateVolume(input *CreateVolumeInput) (*Volume, error) { req, out := c.CreateVolumeRequest(input) err := req.Send() @@ -2778,6 +3295,8 @@ const opCreateVpc = "CreateVpc" // value can be used to capture response data after the request's "Send" method // is called. // +// See CreateVpc for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -2812,6 +3331,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 +3349,13 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation CreateVpc for usage and error information. func (c *EC2) CreateVpc(input *CreateVpcInput) (*CreateVpcOutput, error) { req, out := c.CreateVpcRequest(input) err := req.Send() @@ -2841,6 +3369,8 @@ const opCreateVpcEndpoint = "CreateVpcEndpoint" // value can be used to capture response data after the request's "Send" method // is called. // +// See CreateVpcEndpoint for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -2875,6 +3405,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 +3414,13 @@ func (c *EC2) CreateVpcEndpointRequest(input *CreateVpcEndpointInput) (req *requ // the VPC route tables that use the endpoint. // // Currently, only endpoints to Amazon S3 are supported. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation CreateVpcEndpoint for usage and error information. func (c *EC2) CreateVpcEndpoint(input *CreateVpcEndpointInput) (*CreateVpcEndpointOutput, error) { req, out := c.CreateVpcEndpointRequest(input) err := req.Send() @@ -2895,6 +3434,8 @@ const opCreateVpcPeeringConnection = "CreateVpcPeeringConnection" // value can be used to capture response data after the request's "Send" method // is called. // +// See CreateVpcPeeringConnection for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -2929,6 +3470,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 +3483,13 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation CreateVpcPeeringConnection for usage and error information. func (c *EC2) CreateVpcPeeringConnection(input *CreateVpcPeeringConnectionInput) (*CreateVpcPeeringConnectionOutput, error) { req, out := c.CreateVpcPeeringConnectionRequest(input) err := req.Send() @@ -2953,6 +3503,8 @@ const opCreateVpnConnection = "CreateVpnConnection" // value can be used to capture response data after the request's "Send" method // is called. // +// See CreateVpnConnection for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -2987,6 +3539,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 +3561,13 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation CreateVpnConnection for usage and error information. func (c *EC2) CreateVpnConnection(input *CreateVpnConnectionInput) (*CreateVpnConnectionOutput, error) { req, out := c.CreateVpnConnectionRequest(input) err := req.Send() @@ -3020,6 +3581,8 @@ const opCreateVpnConnectionRoute = "CreateVpnConnectionRoute" // value can be used to capture response data after the request's "Send" method // is called. // +// See CreateVpnConnectionRoute for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -3056,6 +3619,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 +3629,13 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation CreateVpnConnectionRoute for usage and error information. func (c *EC2) CreateVpnConnectionRoute(input *CreateVpnConnectionRouteInput) (*CreateVpnConnectionRouteOutput, error) { req, out := c.CreateVpnConnectionRouteRequest(input) err := req.Send() @@ -3077,6 +3649,8 @@ const opCreateVpnGateway = "CreateVpnGateway" // value can be used to capture response data after the request's "Send" method // is called. // +// See CreateVpnGateway for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -3111,6 +3685,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 +3694,13 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation CreateVpnGateway for usage and error information. func (c *EC2) CreateVpnGateway(input *CreateVpnGatewayInput) (*CreateVpnGatewayOutput, error) { req, out := c.CreateVpnGatewayRequest(input) err := req.Send() @@ -3131,6 +3714,8 @@ const opDeleteCustomerGateway = "DeleteCustomerGateway" // value can be used to capture response data after the request's "Send" method // is called. // +// See DeleteCustomerGateway for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -3167,8 +3752,17 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation DeleteCustomerGateway for usage and error information. func (c *EC2) DeleteCustomerGateway(input *DeleteCustomerGatewayInput) (*DeleteCustomerGatewayOutput, error) { req, out := c.DeleteCustomerGatewayRequest(input) err := req.Send() @@ -3182,6 +3776,8 @@ const opDeleteDhcpOptions = "DeleteDhcpOptions" // value can be used to capture response data after the request's "Send" method // is called. // +// See DeleteDhcpOptions for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -3218,10 +3814,19 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation DeleteDhcpOptions for usage and error information. func (c *EC2) DeleteDhcpOptions(input *DeleteDhcpOptionsInput) (*DeleteDhcpOptionsOutput, error) { req, out := c.DeleteDhcpOptionsRequest(input) err := req.Send() @@ -3235,6 +3840,8 @@ const opDeleteFlowLogs = "DeleteFlowLogs" // value can be used to capture response data after the request's "Send" method // is called. // +// See DeleteFlowLogs for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -3269,7 +3876,16 @@ func (c *EC2) DeleteFlowLogsRequest(input *DeleteFlowLogsInput) (req *request.Re return } +// DeleteFlowLogs API operation for Amazon Elastic Compute Cloud. +// // Deletes one or more flow logs. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation DeleteFlowLogs for usage and error information. func (c *EC2) DeleteFlowLogs(input *DeleteFlowLogsInput) (*DeleteFlowLogsOutput, error) { req, out := c.DeleteFlowLogsRequest(input) err := req.Send() @@ -3283,6 +3899,8 @@ const opDeleteInternetGateway = "DeleteInternetGateway" // value can be used to capture response data after the request's "Send" method // is called. // +// See DeleteInternetGateway for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -3319,8 +3937,17 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation DeleteInternetGateway for usage and error information. func (c *EC2) DeleteInternetGateway(input *DeleteInternetGatewayInput) (*DeleteInternetGatewayOutput, error) { req, out := c.DeleteInternetGatewayRequest(input) err := req.Send() @@ -3334,6 +3961,8 @@ const opDeleteKeyPair = "DeleteKeyPair" // value can be used to capture response data after the request's "Send" method // is called. // +// See DeleteKeyPair for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -3370,7 +3999,16 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation DeleteKeyPair for usage and error information. func (c *EC2) DeleteKeyPair(input *DeleteKeyPairInput) (*DeleteKeyPairOutput, error) { req, out := c.DeleteKeyPairRequest(input) err := req.Send() @@ -3384,6 +4022,8 @@ const opDeleteNatGateway = "DeleteNatGateway" // value can be used to capture response data after the request's "Send" method // is called. // +// See DeleteNatGateway for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -3418,9 +4058,18 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation DeleteNatGateway for usage and error information. func (c *EC2) DeleteNatGateway(input *DeleteNatGatewayInput) (*DeleteNatGatewayOutput, error) { req, out := c.DeleteNatGatewayRequest(input) err := req.Send() @@ -3434,6 +4083,8 @@ const opDeleteNetworkAcl = "DeleteNetworkAcl" // value can be used to capture response data after the request's "Send" method // is called. // +// See DeleteNetworkAcl for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -3470,8 +4121,17 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation DeleteNetworkAcl for usage and error information. func (c *EC2) DeleteNetworkAcl(input *DeleteNetworkAclInput) (*DeleteNetworkAclOutput, error) { req, out := c.DeleteNetworkAclRequest(input) err := req.Send() @@ -3485,6 +4145,8 @@ const opDeleteNetworkAclEntry = "DeleteNetworkAclEntry" // value can be used to capture response data after the request's "Send" method // is called. // +// See DeleteNetworkAclEntry for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -3521,8 +4183,17 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation DeleteNetworkAclEntry for usage and error information. func (c *EC2) DeleteNetworkAclEntry(input *DeleteNetworkAclEntryInput) (*DeleteNetworkAclEntryOutput, error) { req, out := c.DeleteNetworkAclEntryRequest(input) err := req.Send() @@ -3536,6 +4207,8 @@ const opDeleteNetworkInterface = "DeleteNetworkInterface" // value can be used to capture response data after the request's "Send" method // is called. // +// See DeleteNetworkInterface for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -3572,8 +4245,17 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation DeleteNetworkInterface for usage and error information. func (c *EC2) DeleteNetworkInterface(input *DeleteNetworkInterfaceInput) (*DeleteNetworkInterfaceOutput, error) { req, out := c.DeleteNetworkInterfaceRequest(input) err := req.Send() @@ -3587,6 +4269,8 @@ const opDeletePlacementGroup = "DeletePlacementGroup" // value can be used to capture response data after the request's "Send" method // is called. // +// See DeletePlacementGroup for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -3623,10 +4307,19 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation DeletePlacementGroup for usage and error information. func (c *EC2) DeletePlacementGroup(input *DeletePlacementGroupInput) (*DeletePlacementGroupOutput, error) { req, out := c.DeletePlacementGroupRequest(input) err := req.Send() @@ -3640,6 +4333,8 @@ const opDeleteRoute = "DeleteRoute" // value can be used to capture response data after the request's "Send" method // is called. // +// See DeleteRoute for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -3676,7 +4371,16 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation DeleteRoute for usage and error information. func (c *EC2) DeleteRoute(input *DeleteRouteInput) (*DeleteRouteOutput, error) { req, out := c.DeleteRouteRequest(input) err := req.Send() @@ -3690,6 +4394,8 @@ const opDeleteRouteTable = "DeleteRouteTable" // value can be used to capture response data after the request's "Send" method // is called. // +// See DeleteRouteTable for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -3726,9 +4432,18 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation DeleteRouteTable for usage and error information. func (c *EC2) DeleteRouteTable(input *DeleteRouteTableInput) (*DeleteRouteTableOutput, error) { req, out := c.DeleteRouteTableRequest(input) err := req.Send() @@ -3742,6 +4457,8 @@ const opDeleteSecurityGroup = "DeleteSecurityGroup" // value can be used to capture response data after the request's "Send" method // is called. // +// See DeleteSecurityGroup for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -3778,11 +4495,20 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation DeleteSecurityGroup for usage and error information. func (c *EC2) DeleteSecurityGroup(input *DeleteSecurityGroupInput) (*DeleteSecurityGroupOutput, error) { req, out := c.DeleteSecurityGroupRequest(input) err := req.Send() @@ -3796,6 +4522,8 @@ const opDeleteSnapshot = "DeleteSnapshot" // value can be used to capture response data after the request's "Send" method // is called. // +// See DeleteSnapshot for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -3832,6 +4560,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 +4577,13 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation DeleteSnapshot for usage and error information. func (c *EC2) DeleteSnapshot(input *DeleteSnapshotInput) (*DeleteSnapshotOutput, error) { req, out := c.DeleteSnapshotRequest(input) err := req.Send() @@ -3860,6 +4597,8 @@ const opDeleteSpotDatafeedSubscription = "DeleteSpotDatafeedSubscription" // value can be used to capture response data after the request's "Send" method // is called. // +// See DeleteSpotDatafeedSubscription for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -3896,7 +4635,16 @@ func (c *EC2) DeleteSpotDatafeedSubscriptionRequest(input *DeleteSpotDatafeedSub return } +// DeleteSpotDatafeedSubscription API operation for Amazon Elastic Compute Cloud. +// // Deletes the data feed for Spot instances. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation DeleteSpotDatafeedSubscription for usage and error information. func (c *EC2) DeleteSpotDatafeedSubscription(input *DeleteSpotDatafeedSubscriptionInput) (*DeleteSpotDatafeedSubscriptionOutput, error) { req, out := c.DeleteSpotDatafeedSubscriptionRequest(input) err := req.Send() @@ -3910,6 +4658,8 @@ const opDeleteSubnet = "DeleteSubnet" // value can be used to capture response data after the request's "Send" method // is called. // +// See DeleteSubnet for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -3946,8 +4696,17 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation DeleteSubnet for usage and error information. func (c *EC2) DeleteSubnet(input *DeleteSubnetInput) (*DeleteSubnetOutput, error) { req, out := c.DeleteSubnetRequest(input) err := req.Send() @@ -3961,6 +4720,8 @@ const opDeleteTags = "DeleteTags" // value can be used to capture response data after the request's "Send" method // is called. // +// See DeleteTags for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -3997,11 +4758,20 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation DeleteTags for usage and error information. func (c *EC2) DeleteTags(input *DeleteTagsInput) (*DeleteTagsOutput, error) { req, out := c.DeleteTagsRequest(input) err := req.Send() @@ -4015,6 +4785,8 @@ const opDeleteVolume = "DeleteVolume" // value can be used to capture response data after the request's "Send" method // is called. // +// See DeleteVolume for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -4051,6 +4823,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 +4832,13 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation DeleteVolume for usage and error information. func (c *EC2) DeleteVolume(input *DeleteVolumeInput) (*DeleteVolumeOutput, error) { req, out := c.DeleteVolumeRequest(input) err := req.Send() @@ -4071,6 +4852,8 @@ const opDeleteVpc = "DeleteVpc" // value can be used to capture response data after the request's "Send" method // is called. // +// See DeleteVpc for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -4107,11 +4890,20 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation DeleteVpc for usage and error information. func (c *EC2) DeleteVpc(input *DeleteVpcInput) (*DeleteVpcOutput, error) { req, out := c.DeleteVpcRequest(input) err := req.Send() @@ -4125,6 +4917,8 @@ const opDeleteVpcEndpoints = "DeleteVpcEndpoints" // value can be used to capture response data after the request's "Send" method // is called. // +// See DeleteVpcEndpoints for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -4159,8 +4953,17 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation DeleteVpcEndpoints for usage and error information. func (c *EC2) DeleteVpcEndpoints(input *DeleteVpcEndpointsInput) (*DeleteVpcEndpointsOutput, error) { req, out := c.DeleteVpcEndpointsRequest(input) err := req.Send() @@ -4174,6 +4977,8 @@ const opDeleteVpcPeeringConnection = "DeleteVpcPeeringConnection" // value can be used to capture response data after the request's "Send" method // is called. // +// See DeleteVpcPeeringConnection for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -4208,10 +5013,19 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation DeleteVpcPeeringConnection for usage and error information. func (c *EC2) DeleteVpcPeeringConnection(input *DeleteVpcPeeringConnectionInput) (*DeleteVpcPeeringConnectionOutput, error) { req, out := c.DeleteVpcPeeringConnectionRequest(input) err := req.Send() @@ -4225,6 +5039,8 @@ const opDeleteVpnConnection = "DeleteVpnConnection" // value can be used to capture response data after the request's "Send" method // is called. // +// See DeleteVpnConnection for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -4261,6 +5077,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 +5089,13 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation DeleteVpnConnection for usage and error information. func (c *EC2) DeleteVpnConnection(input *DeleteVpnConnectionInput) (*DeleteVpnConnectionOutput, error) { req, out := c.DeleteVpnConnectionRequest(input) err := req.Send() @@ -4284,6 +5109,8 @@ const opDeleteVpnConnectionRoute = "DeleteVpnConnectionRoute" // value can be used to capture response data after the request's "Send" method // is called. // +// See DeleteVpnConnectionRoute for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -4320,10 +5147,19 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation DeleteVpnConnectionRoute for usage and error information. func (c *EC2) DeleteVpnConnectionRoute(input *DeleteVpnConnectionRouteInput) (*DeleteVpnConnectionRouteOutput, error) { req, out := c.DeleteVpnConnectionRouteRequest(input) err := req.Send() @@ -4337,6 +5173,8 @@ const opDeleteVpnGateway = "DeleteVpnGateway" // value can be used to capture response data after the request's "Send" method // is called. // +// See DeleteVpnGateway for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -4373,11 +5211,20 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation DeleteVpnGateway for usage and error information. func (c *EC2) DeleteVpnGateway(input *DeleteVpnGatewayInput) (*DeleteVpnGatewayOutput, error) { req, out := c.DeleteVpnGatewayRequest(input) err := req.Send() @@ -4391,6 +5238,8 @@ const opDeregisterImage = "DeregisterImage" // value can be used to capture response data after the request's "Send" method // is called. // +// See DeregisterImage for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -4427,10 +5276,19 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation DeregisterImage for usage and error information. func (c *EC2) DeregisterImage(input *DeregisterImageInput) (*DeregisterImageOutput, error) { req, out := c.DeregisterImageRequest(input) err := req.Send() @@ -4444,6 +5302,8 @@ const opDescribeAccountAttributes = "DescribeAccountAttributes" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeAccountAttributes for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -4478,6 +5338,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 +5359,13 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation DescribeAccountAttributes for usage and error information. func (c *EC2) DescribeAccountAttributes(input *DescribeAccountAttributesInput) (*DescribeAccountAttributesOutput, error) { req, out := c.DescribeAccountAttributesRequest(input) err := req.Send() @@ -4510,6 +5379,8 @@ const opDescribeAddresses = "DescribeAddresses" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeAddresses for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -4544,11 +5415,20 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation DescribeAddresses for usage and error information. func (c *EC2) DescribeAddresses(input *DescribeAddressesInput) (*DescribeAddressesOutput, error) { req, out := c.DescribeAddressesRequest(input) err := req.Send() @@ -4562,6 +5442,8 @@ const opDescribeAvailabilityZones = "DescribeAvailabilityZones" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeAvailabilityZones for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -4596,6 +5478,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 +5487,13 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation DescribeAvailabilityZones for usage and error information. func (c *EC2) DescribeAvailabilityZones(input *DescribeAvailabilityZonesInput) (*DescribeAvailabilityZonesOutput, error) { req, out := c.DescribeAvailabilityZonesRequest(input) err := req.Send() @@ -4616,6 +5507,8 @@ const opDescribeBundleTasks = "DescribeBundleTasks" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeBundleTasks for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -4650,12 +5543,21 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation DescribeBundleTasks for usage and error information. func (c *EC2) DescribeBundleTasks(input *DescribeBundleTasksInput) (*DescribeBundleTasksOutput, error) { req, out := c.DescribeBundleTasksRequest(input) err := req.Send() @@ -4669,6 +5571,8 @@ const opDescribeClassicLinkInstances = "DescribeClassicLinkInstances" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeClassicLinkInstances for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -4703,10 +5607,19 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation DescribeClassicLinkInstances for usage and error information. func (c *EC2) DescribeClassicLinkInstances(input *DescribeClassicLinkInstancesInput) (*DescribeClassicLinkInstancesOutput, error) { req, out := c.DescribeClassicLinkInstancesRequest(input) err := req.Send() @@ -4720,6 +5633,8 @@ const opDescribeConversionTasks = "DescribeConversionTasks" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeConversionTasks for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -4754,11 +5669,20 @@ 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). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation DescribeConversionTasks for usage and error information. func (c *EC2) DescribeConversionTasks(input *DescribeConversionTasksInput) (*DescribeConversionTasksOutput, error) { req, out := c.DescribeConversionTasksRequest(input) err := req.Send() @@ -4772,6 +5696,8 @@ const opDescribeCustomerGateways = "DescribeCustomerGateways" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeCustomerGateways for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -4806,11 +5732,20 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation DescribeCustomerGateways for usage and error information. func (c *EC2) DescribeCustomerGateways(input *DescribeCustomerGatewaysInput) (*DescribeCustomerGatewaysOutput, error) { req, out := c.DescribeCustomerGatewaysRequest(input) err := req.Send() @@ -4824,6 +5759,8 @@ const opDescribeDhcpOptions = "DescribeDhcpOptions" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeDhcpOptions for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -4858,10 +5795,19 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation DescribeDhcpOptions for usage and error information. func (c *EC2) DescribeDhcpOptions(input *DescribeDhcpOptionsInput) (*DescribeDhcpOptionsOutput, error) { req, out := c.DescribeDhcpOptionsRequest(input) err := req.Send() @@ -4875,6 +5821,8 @@ const opDescribeExportTasks = "DescribeExportTasks" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeExportTasks for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -4909,7 +5857,16 @@ func (c *EC2) DescribeExportTasksRequest(input *DescribeExportTasksInput) (req * return } +// DescribeExportTasks API operation for Amazon Elastic Compute Cloud. +// // Describes one or more of your export tasks. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation DescribeExportTasks for usage and error information. func (c *EC2) DescribeExportTasks(input *DescribeExportTasksInput) (*DescribeExportTasksOutput, error) { req, out := c.DescribeExportTasksRequest(input) err := req.Send() @@ -4923,6 +5880,8 @@ const opDescribeFlowLogs = "DescribeFlowLogs" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeFlowLogs for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -4957,9 +5916,18 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation DescribeFlowLogs for usage and error information. func (c *EC2) DescribeFlowLogs(input *DescribeFlowLogsInput) (*DescribeFlowLogsOutput, error) { req, out := c.DescribeFlowLogsRequest(input) err := req.Send() @@ -4973,6 +5941,8 @@ const opDescribeHostReservationOfferings = "DescribeHostReservationOfferings" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeHostReservationOfferings for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -5007,6 +5977,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 +5988,13 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation DescribeHostReservationOfferings for usage and error information. func (c *EC2) DescribeHostReservationOfferings(input *DescribeHostReservationOfferingsInput) (*DescribeHostReservationOfferingsOutput, error) { req, out := c.DescribeHostReservationOfferingsRequest(input) err := req.Send() @@ -5029,6 +6008,8 @@ const opDescribeHostReservations = "DescribeHostReservations" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeHostReservations for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -5063,8 +6044,17 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation DescribeHostReservations for usage and error information. func (c *EC2) DescribeHostReservations(input *DescribeHostReservationsInput) (*DescribeHostReservationsOutput, error) { req, out := c.DescribeHostReservationsRequest(input) err := req.Send() @@ -5078,6 +6068,8 @@ const opDescribeHosts = "DescribeHosts" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeHosts for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -5112,11 +6104,20 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation DescribeHosts for usage and error information. func (c *EC2) DescribeHosts(input *DescribeHostsInput) (*DescribeHostsOutput, error) { req, out := c.DescribeHostsRequest(input) err := req.Send() @@ -5130,6 +6131,8 @@ const opDescribeIdFormat = "DescribeIdFormat" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeIdFormat for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -5164,6 +6167,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 +6184,13 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation DescribeIdFormat for usage and error information. func (c *EC2) DescribeIdFormat(input *DescribeIdFormatInput) (*DescribeIdFormatOutput, error) { req, out := c.DescribeIdFormatRequest(input) err := req.Send() @@ -5192,6 +6204,8 @@ const opDescribeIdentityIdFormat = "DescribeIdentityIdFormat" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeIdentityIdFormat for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -5226,6 +6240,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 +6254,13 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation DescribeIdentityIdFormat for usage and error information. func (c *EC2) DescribeIdentityIdFormat(input *DescribeIdentityIdFormatInput) (*DescribeIdentityIdFormatOutput, error) { req, out := c.DescribeIdentityIdFormatRequest(input) err := req.Send() @@ -5251,6 +6274,8 @@ const opDescribeImageAttribute = "DescribeImageAttribute" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeImageAttribute for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -5285,8 +6310,17 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation DescribeImageAttribute for usage and error information. func (c *EC2) DescribeImageAttribute(input *DescribeImageAttributeInput) (*DescribeImageAttributeOutput, error) { req, out := c.DescribeImageAttributeRequest(input) err := req.Send() @@ -5300,6 +6334,8 @@ const opDescribeImages = "DescribeImages" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeImages for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -5334,6 +6370,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 +6379,13 @@ func (c *EC2) DescribeImagesRequest(input *DescribeImagesInput) (req *request.Re // // Deregistered images are included in the returned results for an unspecified // interval after deregistration. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation DescribeImages for usage and error information. func (c *EC2) DescribeImages(input *DescribeImagesInput) (*DescribeImagesOutput, error) { req, out := c.DescribeImagesRequest(input) err := req.Send() @@ -5354,6 +6399,8 @@ const opDescribeImportImageTasks = "DescribeImportImageTasks" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeImportImageTasks for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -5388,8 +6435,17 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation DescribeImportImageTasks for usage and error information. func (c *EC2) DescribeImportImageTasks(input *DescribeImportImageTasksInput) (*DescribeImportImageTasksOutput, error) { req, out := c.DescribeImportImageTasksRequest(input) err := req.Send() @@ -5403,6 +6459,8 @@ const opDescribeImportSnapshotTasks = "DescribeImportSnapshotTasks" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeImportSnapshotTasks for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -5437,7 +6495,16 @@ func (c *EC2) DescribeImportSnapshotTasksRequest(input *DescribeImportSnapshotTa return } +// DescribeImportSnapshotTasks API operation for Amazon Elastic Compute Cloud. +// // Describes your import snapshot tasks. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation DescribeImportSnapshotTasks for usage and error information. func (c *EC2) DescribeImportSnapshotTasks(input *DescribeImportSnapshotTasksInput) (*DescribeImportSnapshotTasksOutput, error) { req, out := c.DescribeImportSnapshotTasksRequest(input) err := req.Send() @@ -5451,6 +6518,8 @@ const opDescribeInstanceAttribute = "DescribeInstanceAttribute" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeInstanceAttribute for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -5485,11 +6554,20 @@ 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 +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation DescribeInstanceAttribute for usage and error information. func (c *EC2) DescribeInstanceAttribute(input *DescribeInstanceAttributeInput) (*DescribeInstanceAttributeOutput, error) { req, out := c.DescribeInstanceAttributeRequest(input) err := req.Send() @@ -5503,6 +6581,8 @@ const opDescribeInstanceStatus = "DescribeInstanceStatus" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeInstanceStatus for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -5543,6 +6623,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 +6646,13 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation DescribeInstanceStatus for usage and error information. func (c *EC2) DescribeInstanceStatus(input *DescribeInstanceStatusInput) (*DescribeInstanceStatusOutput, error) { req, out := c.DescribeInstanceStatusRequest(input) err := req.Send() @@ -5602,6 +6691,8 @@ const opDescribeInstances = "DescribeInstances" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeInstances for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -5642,6 +6733,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 +6751,13 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation DescribeInstances for usage and error information. func (c *EC2) DescribeInstances(input *DescribeInstancesInput) (*DescribeInstancesOutput, error) { req, out := c.DescribeInstancesRequest(input) err := req.Send() @@ -5696,6 +6796,8 @@ const opDescribeInternetGateways = "DescribeInternetGateways" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeInternetGateways for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -5730,7 +6832,16 @@ func (c *EC2) DescribeInternetGatewaysRequest(input *DescribeInternetGatewaysInp return } +// DescribeInternetGateways API operation for Amazon Elastic Compute Cloud. +// // Describes one or more of your Internet gateways. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation DescribeInternetGateways for usage and error information. func (c *EC2) DescribeInternetGateways(input *DescribeInternetGatewaysInput) (*DescribeInternetGatewaysOutput, error) { req, out := c.DescribeInternetGatewaysRequest(input) err := req.Send() @@ -5744,6 +6855,8 @@ const opDescribeKeyPairs = "DescribeKeyPairs" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeKeyPairs for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -5778,10 +6891,19 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation DescribeKeyPairs for usage and error information. func (c *EC2) DescribeKeyPairs(input *DescribeKeyPairsInput) (*DescribeKeyPairsOutput, error) { req, out := c.DescribeKeyPairsRequest(input) err := req.Send() @@ -5795,6 +6917,8 @@ const opDescribeMovingAddresses = "DescribeMovingAddresses" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeMovingAddresses for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -5829,9 +6953,18 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation DescribeMovingAddresses for usage and error information. func (c *EC2) DescribeMovingAddresses(input *DescribeMovingAddressesInput) (*DescribeMovingAddressesOutput, error) { req, out := c.DescribeMovingAddressesRequest(input) err := req.Send() @@ -5845,6 +6978,8 @@ const opDescribeNatGateways = "DescribeNatGateways" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeNatGateways for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -5879,7 +7014,16 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation DescribeNatGateways for usage and error information. func (c *EC2) DescribeNatGateways(input *DescribeNatGatewaysInput) (*DescribeNatGatewaysOutput, error) { req, out := c.DescribeNatGatewaysRequest(input) err := req.Send() @@ -5893,6 +7037,8 @@ const opDescribeNetworkAcls = "DescribeNetworkAcls" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeNetworkAcls for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -5927,10 +7073,19 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation DescribeNetworkAcls for usage and error information. func (c *EC2) DescribeNetworkAcls(input *DescribeNetworkAclsInput) (*DescribeNetworkAclsOutput, error) { req, out := c.DescribeNetworkAclsRequest(input) err := req.Send() @@ -5944,6 +7099,8 @@ const opDescribeNetworkInterfaceAttribute = "DescribeNetworkInterfaceAttribute" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeNetworkInterfaceAttribute for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -5978,8 +7135,17 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation DescribeNetworkInterfaceAttribute for usage and error information. func (c *EC2) DescribeNetworkInterfaceAttribute(input *DescribeNetworkInterfaceAttributeInput) (*DescribeNetworkInterfaceAttributeOutput, error) { req, out := c.DescribeNetworkInterfaceAttributeRequest(input) err := req.Send() @@ -5993,6 +7159,8 @@ const opDescribeNetworkInterfaces = "DescribeNetworkInterfaces" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeNetworkInterfaces for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -6027,7 +7195,16 @@ func (c *EC2) DescribeNetworkInterfacesRequest(input *DescribeNetworkInterfacesI return } +// DescribeNetworkInterfaces API operation for Amazon Elastic Compute Cloud. +// // Describes one or more of your network interfaces. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation DescribeNetworkInterfaces for usage and error information. func (c *EC2) DescribeNetworkInterfaces(input *DescribeNetworkInterfacesInput) (*DescribeNetworkInterfacesOutput, error) { req, out := c.DescribeNetworkInterfacesRequest(input) err := req.Send() @@ -6041,6 +7218,8 @@ const opDescribePlacementGroups = "DescribePlacementGroups" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribePlacementGroups for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -6075,9 +7254,18 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation DescribePlacementGroups for usage and error information. func (c *EC2) DescribePlacementGroups(input *DescribePlacementGroupsInput) (*DescribePlacementGroupsOutput, error) { req, out := c.DescribePlacementGroupsRequest(input) err := req.Send() @@ -6091,6 +7279,8 @@ const opDescribePrefixLists = "DescribePrefixLists" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribePrefixLists for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -6125,11 +7315,20 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation DescribePrefixLists for usage and error information. func (c *EC2) DescribePrefixLists(input *DescribePrefixListsInput) (*DescribePrefixListsOutput, error) { req, out := c.DescribePrefixListsRequest(input) err := req.Send() @@ -6143,6 +7342,8 @@ const opDescribeRegions = "DescribeRegions" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeRegions for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -6177,10 +7378,19 @@ 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). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation DescribeRegions for usage and error information. func (c *EC2) DescribeRegions(input *DescribeRegionsInput) (*DescribeRegionsOutput, error) { req, out := c.DescribeRegionsRequest(input) err := req.Send() @@ -6194,6 +7404,8 @@ const opDescribeReservedInstances = "DescribeReservedInstances" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeReservedInstances for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -6228,10 +7440,19 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation DescribeReservedInstances for usage and error information. func (c *EC2) DescribeReservedInstances(input *DescribeReservedInstancesInput) (*DescribeReservedInstancesOutput, error) { req, out := c.DescribeReservedInstancesRequest(input) err := req.Send() @@ -6245,6 +7466,8 @@ const opDescribeReservedInstancesListings = "DescribeReservedInstancesListings" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeReservedInstancesListings for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -6279,6 +7502,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 +7526,13 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation DescribeReservedInstancesListings for usage and error information. func (c *EC2) DescribeReservedInstancesListings(input *DescribeReservedInstancesListingsInput) (*DescribeReservedInstancesListingsOutput, error) { req, out := c.DescribeReservedInstancesListingsRequest(input) err := req.Send() @@ -6314,6 +7546,8 @@ const opDescribeReservedInstancesModifications = "DescribeReservedInstancesModif // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeReservedInstancesModifications for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -6354,6 +7588,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 +7597,13 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation DescribeReservedInstancesModifications for usage and error information. func (c *EC2) DescribeReservedInstancesModifications(input *DescribeReservedInstancesModificationsInput) (*DescribeReservedInstancesModificationsOutput, error) { req, out := c.DescribeReservedInstancesModificationsRequest(input) err := req.Send() @@ -6399,6 +7642,8 @@ const opDescribeReservedInstancesOfferings = "DescribeReservedInstancesOfferings // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeReservedInstancesOfferings for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -6439,6 +7684,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 +7698,13 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation DescribeReservedInstancesOfferings for usage and error information. func (c *EC2) DescribeReservedInstancesOfferings(input *DescribeReservedInstancesOfferingsInput) (*DescribeReservedInstancesOfferingsOutput, error) { req, out := c.DescribeReservedInstancesOfferingsRequest(input) err := req.Send() @@ -6489,6 +7743,8 @@ const opDescribeRouteTables = "DescribeRouteTables" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeRouteTables for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -6523,6 +7779,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 +7790,13 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation DescribeRouteTables for usage and error information. func (c *EC2) DescribeRouteTables(input *DescribeRouteTablesInput) (*DescribeRouteTablesOutput, error) { req, out := c.DescribeRouteTablesRequest(input) err := req.Send() @@ -6545,6 +7810,8 @@ const opDescribeScheduledInstanceAvailability = "DescribeScheduledInstanceAvaila // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeScheduledInstanceAvailability for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -6579,6 +7846,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 +7857,13 @@ func (c *EC2) DescribeScheduledInstanceAvailabilityRequest(input *DescribeSchedu // // After you find a schedule that meets your needs, call PurchaseScheduledInstances // to purchase Scheduled Instances with that schedule. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation DescribeScheduledInstanceAvailability for usage and error information. func (c *EC2) DescribeScheduledInstanceAvailability(input *DescribeScheduledInstanceAvailabilityInput) (*DescribeScheduledInstanceAvailabilityOutput, error) { req, out := c.DescribeScheduledInstanceAvailabilityRequest(input) err := req.Send() @@ -6601,6 +7877,8 @@ const opDescribeScheduledInstances = "DescribeScheduledInstances" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeScheduledInstances for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -6635,7 +7913,16 @@ func (c *EC2) DescribeScheduledInstancesRequest(input *DescribeScheduledInstance return } +// DescribeScheduledInstances API operation for Amazon Elastic Compute Cloud. +// // Describes one or more of your Scheduled Instances. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation DescribeScheduledInstances for usage and error information. func (c *EC2) DescribeScheduledInstances(input *DescribeScheduledInstancesInput) (*DescribeScheduledInstancesOutput, error) { req, out := c.DescribeScheduledInstancesRequest(input) err := req.Send() @@ -6649,6 +7936,8 @@ const opDescribeSecurityGroupReferences = "DescribeSecurityGroupReferences" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeSecurityGroupReferences for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -6683,8 +7972,17 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation DescribeSecurityGroupReferences for usage and error information. func (c *EC2) DescribeSecurityGroupReferences(input *DescribeSecurityGroupReferencesInput) (*DescribeSecurityGroupReferencesOutput, error) { req, out := c.DescribeSecurityGroupReferencesRequest(input) err := req.Send() @@ -6698,6 +7996,8 @@ const opDescribeSecurityGroups = "DescribeSecurityGroups" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeSecurityGroups for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -6732,6 +8032,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 +8042,13 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation DescribeSecurityGroups for usage and error information. func (c *EC2) DescribeSecurityGroups(input *DescribeSecurityGroupsInput) (*DescribeSecurityGroupsOutput, error) { req, out := c.DescribeSecurityGroupsRequest(input) err := req.Send() @@ -6753,6 +8062,8 @@ const opDescribeSnapshotAttribute = "DescribeSnapshotAttribute" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeSnapshotAttribute for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -6787,11 +8098,20 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation DescribeSnapshotAttribute for usage and error information. func (c *EC2) DescribeSnapshotAttribute(input *DescribeSnapshotAttributeInput) (*DescribeSnapshotAttributeOutput, error) { req, out := c.DescribeSnapshotAttributeRequest(input) err := req.Send() @@ -6805,6 +8125,8 @@ const opDescribeSnapshots = "DescribeSnapshots" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeSnapshots for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -6845,6 +8167,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 +8215,13 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation DescribeSnapshots for usage and error information. func (c *EC2) DescribeSnapshots(input *DescribeSnapshotsInput) (*DescribeSnapshotsOutput, error) { req, out := c.DescribeSnapshotsRequest(input) err := req.Send() @@ -6929,6 +8260,8 @@ const opDescribeSpotDatafeedSubscription = "DescribeSpotDatafeedSubscription" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeSpotDatafeedSubscription for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -6963,9 +8296,18 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation DescribeSpotDatafeedSubscription for usage and error information. func (c *EC2) DescribeSpotDatafeedSubscription(input *DescribeSpotDatafeedSubscriptionInput) (*DescribeSpotDatafeedSubscriptionOutput, error) { req, out := c.DescribeSpotDatafeedSubscriptionRequest(input) err := req.Send() @@ -6979,6 +8321,8 @@ const opDescribeSpotFleetInstances = "DescribeSpotFleetInstances" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeSpotFleetInstances for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -7013,7 +8357,16 @@ func (c *EC2) DescribeSpotFleetInstancesRequest(input *DescribeSpotFleetInstance return } +// DescribeSpotFleetInstances API operation for Amazon Elastic Compute Cloud. +// // Describes the running instances for the specified Spot fleet. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation DescribeSpotFleetInstances for usage and error information. func (c *EC2) DescribeSpotFleetInstances(input *DescribeSpotFleetInstancesInput) (*DescribeSpotFleetInstancesOutput, error) { req, out := c.DescribeSpotFleetInstancesRequest(input) err := req.Send() @@ -7027,6 +8380,8 @@ const opDescribeSpotFleetRequestHistory = "DescribeSpotFleetRequestHistory" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeSpotFleetRequestHistory for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -7061,12 +8416,21 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation DescribeSpotFleetRequestHistory for usage and error information. func (c *EC2) DescribeSpotFleetRequestHistory(input *DescribeSpotFleetRequestHistoryInput) (*DescribeSpotFleetRequestHistoryOutput, error) { req, out := c.DescribeSpotFleetRequestHistoryRequest(input) err := req.Send() @@ -7080,6 +8444,8 @@ const opDescribeSpotFleetRequests = "DescribeSpotFleetRequests" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeSpotFleetRequests for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -7120,10 +8486,19 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation DescribeSpotFleetRequests for usage and error information. func (c *EC2) DescribeSpotFleetRequests(input *DescribeSpotFleetRequestsInput) (*DescribeSpotFleetRequestsOutput, error) { req, out := c.DescribeSpotFleetRequestsRequest(input) err := req.Send() @@ -7162,6 +8537,8 @@ const opDescribeSpotInstanceRequests = "DescribeSpotInstanceRequests" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeSpotInstanceRequests for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -7196,6 +8573,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 +8590,13 @@ func (c *EC2) DescribeSpotInstanceRequestsRequest(input *DescribeSpotInstanceReq // // Spot instance requests are deleted 4 hours after they are canceled and their // instances are terminated. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation DescribeSpotInstanceRequests for usage and error information. func (c *EC2) DescribeSpotInstanceRequests(input *DescribeSpotInstanceRequestsInput) (*DescribeSpotInstanceRequestsOutput, error) { req, out := c.DescribeSpotInstanceRequestsRequest(input) err := req.Send() @@ -7224,6 +8610,8 @@ const opDescribeSpotPriceHistory = "DescribeSpotPriceHistory" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeSpotPriceHistory for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -7264,6 +8652,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 +8663,13 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation DescribeSpotPriceHistory for usage and error information. func (c *EC2) DescribeSpotPriceHistory(input *DescribeSpotPriceHistoryInput) (*DescribeSpotPriceHistoryOutput, error) { req, out := c.DescribeSpotPriceHistoryRequest(input) err := req.Send() @@ -7311,6 +8708,8 @@ const opDescribeStaleSecurityGroups = "DescribeStaleSecurityGroups" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeStaleSecurityGroups for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -7345,10 +8744,19 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation DescribeStaleSecurityGroups for usage and error information. func (c *EC2) DescribeStaleSecurityGroups(input *DescribeStaleSecurityGroupsInput) (*DescribeStaleSecurityGroupsOutput, error) { req, out := c.DescribeStaleSecurityGroupsRequest(input) err := req.Send() @@ -7362,6 +8770,8 @@ const opDescribeSubnets = "DescribeSubnets" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeSubnets for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -7396,10 +8806,19 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation DescribeSubnets for usage and error information. func (c *EC2) DescribeSubnets(input *DescribeSubnetsInput) (*DescribeSubnetsOutput, error) { req, out := c.DescribeSubnetsRequest(input) err := req.Send() @@ -7413,6 +8832,8 @@ const opDescribeTags = "DescribeTags" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeTags for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -7453,10 +8874,19 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation DescribeTags for usage and error information. func (c *EC2) DescribeTags(input *DescribeTagsInput) (*DescribeTagsOutput, error) { req, out := c.DescribeTagsRequest(input) err := req.Send() @@ -7495,6 +8925,8 @@ const opDescribeVolumeAttribute = "DescribeVolumeAttribute" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeVolumeAttribute for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -7529,11 +8961,20 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation DescribeVolumeAttribute for usage and error information. func (c *EC2) DescribeVolumeAttribute(input *DescribeVolumeAttributeInput) (*DescribeVolumeAttributeOutput, error) { req, out := c.DescribeVolumeAttributeRequest(input) err := req.Send() @@ -7547,6 +8988,8 @@ const opDescribeVolumeStatus = "DescribeVolumeStatus" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeVolumeStatus for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -7587,6 +9030,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 +9067,13 @@ 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.) +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation DescribeVolumeStatus for usage and error information. func (c *EC2) DescribeVolumeStatus(input *DescribeVolumeStatusInput) (*DescribeVolumeStatusOutput, error) { req, out := c.DescribeVolumeStatusRequest(input) err := req.Send() @@ -7660,6 +9112,8 @@ const opDescribeVolumes = "DescribeVolumes" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeVolumes for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -7700,6 +9154,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 +9167,13 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation DescribeVolumes for usage and error information. func (c *EC2) DescribeVolumes(input *DescribeVolumesInput) (*DescribeVolumesOutput, error) { req, out := c.DescribeVolumesRequest(input) err := req.Send() @@ -7749,6 +9212,8 @@ const opDescribeVpcAttribute = "DescribeVpcAttribute" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeVpcAttribute for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -7783,8 +9248,17 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation DescribeVpcAttribute for usage and error information. func (c *EC2) DescribeVpcAttribute(input *DescribeVpcAttributeInput) (*DescribeVpcAttributeOutput, error) { req, out := c.DescribeVpcAttributeRequest(input) err := req.Send() @@ -7798,6 +9272,8 @@ const opDescribeVpcClassicLink = "DescribeVpcClassicLink" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeVpcClassicLink for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -7832,7 +9308,16 @@ func (c *EC2) DescribeVpcClassicLinkRequest(input *DescribeVpcClassicLinkInput) return } +// DescribeVpcClassicLink API operation for Amazon Elastic Compute Cloud. +// // Describes the ClassicLink status of one or more VPCs. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation DescribeVpcClassicLink for usage and error information. func (c *EC2) DescribeVpcClassicLink(input *DescribeVpcClassicLinkInput) (*DescribeVpcClassicLinkOutput, error) { req, out := c.DescribeVpcClassicLinkRequest(input) err := req.Send() @@ -7846,6 +9331,8 @@ const opDescribeVpcClassicLinkDnsSupport = "DescribeVpcClassicLinkDnsSupport" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeVpcClassicLinkDnsSupport for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -7880,6 +9367,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 +9376,13 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation DescribeVpcClassicLinkDnsSupport for usage and error information. func (c *EC2) DescribeVpcClassicLinkDnsSupport(input *DescribeVpcClassicLinkDnsSupportInput) (*DescribeVpcClassicLinkDnsSupportOutput, error) { req, out := c.DescribeVpcClassicLinkDnsSupportRequest(input) err := req.Send() @@ -7900,6 +9396,8 @@ const opDescribeVpcEndpointServices = "DescribeVpcEndpointServices" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeVpcEndpointServices for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -7934,8 +9432,17 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation DescribeVpcEndpointServices for usage and error information. func (c *EC2) DescribeVpcEndpointServices(input *DescribeVpcEndpointServicesInput) (*DescribeVpcEndpointServicesOutput, error) { req, out := c.DescribeVpcEndpointServicesRequest(input) err := req.Send() @@ -7949,6 +9456,8 @@ const opDescribeVpcEndpoints = "DescribeVpcEndpoints" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeVpcEndpoints for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -7983,7 +9492,16 @@ func (c *EC2) DescribeVpcEndpointsRequest(input *DescribeVpcEndpointsInput) (req return } +// DescribeVpcEndpoints API operation for Amazon Elastic Compute Cloud. +// // Describes one or more of your VPC endpoints. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation DescribeVpcEndpoints for usage and error information. func (c *EC2) DescribeVpcEndpoints(input *DescribeVpcEndpointsInput) (*DescribeVpcEndpointsOutput, error) { req, out := c.DescribeVpcEndpointsRequest(input) err := req.Send() @@ -7997,6 +9515,8 @@ const opDescribeVpcPeeringConnections = "DescribeVpcPeeringConnections" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeVpcPeeringConnections for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -8031,7 +9551,16 @@ func (c *EC2) DescribeVpcPeeringConnectionsRequest(input *DescribeVpcPeeringConn return } +// DescribeVpcPeeringConnections API operation for Amazon Elastic Compute Cloud. +// // Describes one or more of your VPC peering connections. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation DescribeVpcPeeringConnections for usage and error information. func (c *EC2) DescribeVpcPeeringConnections(input *DescribeVpcPeeringConnectionsInput) (*DescribeVpcPeeringConnectionsOutput, error) { req, out := c.DescribeVpcPeeringConnectionsRequest(input) err := req.Send() @@ -8045,6 +9574,8 @@ const opDescribeVpcs = "DescribeVpcs" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeVpcs for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -8079,7 +9610,16 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation DescribeVpcs for usage and error information. func (c *EC2) DescribeVpcs(input *DescribeVpcsInput) (*DescribeVpcsOutput, error) { req, out := c.DescribeVpcsRequest(input) err := req.Send() @@ -8093,6 +9633,8 @@ const opDescribeVpnConnections = "DescribeVpnConnections" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeVpnConnections for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -8127,11 +9669,20 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation DescribeVpnConnections for usage and error information. func (c *EC2) DescribeVpnConnections(input *DescribeVpnConnectionsInput) (*DescribeVpnConnectionsOutput, error) { req, out := c.DescribeVpnConnectionsRequest(input) err := req.Send() @@ -8145,6 +9696,8 @@ const opDescribeVpnGateways = "DescribeVpnGateways" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeVpnGateways for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -8179,11 +9732,20 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation DescribeVpnGateways for usage and error information. func (c *EC2) DescribeVpnGateways(input *DescribeVpnGatewaysInput) (*DescribeVpnGatewaysOutput, error) { req, out := c.DescribeVpnGatewaysRequest(input) err := req.Send() @@ -8197,6 +9759,8 @@ const opDetachClassicLinkVpc = "DetachClassicLinkVpc" // value can be used to capture response data after the request's "Send" method // is called. // +// See DetachClassicLinkVpc for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -8231,9 +9795,18 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation DetachClassicLinkVpc for usage and error information. func (c *EC2) DetachClassicLinkVpc(input *DetachClassicLinkVpcInput) (*DetachClassicLinkVpcOutput, error) { req, out := c.DetachClassicLinkVpcRequest(input) err := req.Send() @@ -8247,6 +9820,8 @@ const opDetachInternetGateway = "DetachInternetGateway" // value can be used to capture response data after the request's "Send" method // is called. // +// See DetachInternetGateway for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -8283,9 +9858,18 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation DetachInternetGateway for usage and error information. func (c *EC2) DetachInternetGateway(input *DetachInternetGatewayInput) (*DetachInternetGatewayOutput, error) { req, out := c.DetachInternetGatewayRequest(input) err := req.Send() @@ -8299,6 +9883,8 @@ const opDetachNetworkInterface = "DetachNetworkInterface" // value can be used to capture response data after the request's "Send" method // is called. // +// See DetachNetworkInterface for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -8335,7 +9921,16 @@ func (c *EC2) DetachNetworkInterfaceRequest(input *DetachNetworkInterfaceInput) return } +// DetachNetworkInterface API operation for Amazon Elastic Compute Cloud. +// // Detaches a network interface from an instance. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation DetachNetworkInterface for usage and error information. func (c *EC2) DetachNetworkInterface(input *DetachNetworkInterfaceInput) (*DetachNetworkInterfaceOutput, error) { req, out := c.DetachNetworkInterfaceRequest(input) err := req.Send() @@ -8349,6 +9944,8 @@ const opDetachVolume = "DetachVolume" // value can be used to capture response data after the request's "Send" method // is called. // +// See DetachVolume for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -8383,6 +9980,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 +9996,13 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation DetachVolume for usage and error information. func (c *EC2) DetachVolume(input *DetachVolumeInput) (*VolumeAttachment, error) { req, out := c.DetachVolumeRequest(input) err := req.Send() @@ -8410,6 +10016,8 @@ const opDetachVpnGateway = "DetachVpnGateway" // value can be used to capture response data after the request's "Send" method // is called. // +// See DetachVpnGateway for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -8446,6 +10054,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 +10064,13 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation DetachVpnGateway for usage and error information. func (c *EC2) DetachVpnGateway(input *DetachVpnGatewayInput) (*DetachVpnGatewayOutput, error) { req, out := c.DetachVpnGatewayRequest(input) err := req.Send() @@ -8467,6 +10084,8 @@ const opDisableVgwRoutePropagation = "DisableVgwRoutePropagation" // value can be used to capture response data after the request's "Send" method // is called. // +// See DisableVgwRoutePropagation for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -8503,8 +10122,17 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation DisableVgwRoutePropagation for usage and error information. func (c *EC2) DisableVgwRoutePropagation(input *DisableVgwRoutePropagationInput) (*DisableVgwRoutePropagationOutput, error) { req, out := c.DisableVgwRoutePropagationRequest(input) err := req.Send() @@ -8518,6 +10146,8 @@ const opDisableVpcClassicLink = "DisableVpcClassicLink" // value can be used to capture response data after the request's "Send" method // is called. // +// See DisableVpcClassicLink for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -8552,8 +10182,17 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation DisableVpcClassicLink for usage and error information. func (c *EC2) DisableVpcClassicLink(input *DisableVpcClassicLinkInput) (*DisableVpcClassicLinkOutput, error) { req, out := c.DisableVpcClassicLinkRequest(input) err := req.Send() @@ -8567,6 +10206,8 @@ const opDisableVpcClassicLinkDnsSupport = "DisableVpcClassicLinkDnsSupport" // value can be used to capture response data after the request's "Send" method // is called. // +// See DisableVpcClassicLinkDnsSupport for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -8601,11 +10242,20 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation DisableVpcClassicLinkDnsSupport for usage and error information. func (c *EC2) DisableVpcClassicLinkDnsSupport(input *DisableVpcClassicLinkDnsSupportInput) (*DisableVpcClassicLinkDnsSupportOutput, error) { req, out := c.DisableVpcClassicLinkDnsSupportRequest(input) err := req.Send() @@ -8619,6 +10269,8 @@ const opDisassociateAddress = "DisassociateAddress" // value can be used to capture response data after the request's "Send" method // is called. // +// See DisassociateAddress for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -8655,6 +10307,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 +10318,13 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation DisassociateAddress for usage and error information. func (c *EC2) DisassociateAddress(input *DisassociateAddressInput) (*DisassociateAddressOutput, error) { req, out := c.DisassociateAddressRequest(input) err := req.Send() @@ -8677,6 +10338,8 @@ const opDisassociateRouteTable = "DisassociateRouteTable" // value can be used to capture response data after the request's "Send" method // is called. // +// See DisassociateRouteTable for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -8713,12 +10376,21 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation DisassociateRouteTable for usage and error information. func (c *EC2) DisassociateRouteTable(input *DisassociateRouteTableInput) (*DisassociateRouteTableOutput, error) { req, out := c.DisassociateRouteTableRequest(input) err := req.Send() @@ -8732,6 +10404,8 @@ const opEnableVgwRoutePropagation = "EnableVgwRoutePropagation" // value can be used to capture response data after the request's "Send" method // is called. // +// See EnableVgwRoutePropagation for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -8768,8 +10442,17 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation EnableVgwRoutePropagation for usage and error information. func (c *EC2) EnableVgwRoutePropagation(input *EnableVgwRoutePropagationInput) (*EnableVgwRoutePropagationOutput, error) { req, out := c.EnableVgwRoutePropagationRequest(input) err := req.Send() @@ -8783,6 +10466,8 @@ const opEnableVolumeIO = "EnableVolumeIO" // value can be used to capture response data after the request's "Send" method // is called. // +// See EnableVolumeIO for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -8819,8 +10504,17 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation EnableVolumeIO for usage and error information. func (c *EC2) EnableVolumeIO(input *EnableVolumeIOInput) (*EnableVolumeIOOutput, error) { req, out := c.EnableVolumeIORequest(input) err := req.Send() @@ -8834,6 +10528,8 @@ const opEnableVpcClassicLink = "EnableVpcClassicLink" // value can be used to capture response data after the request's "Send" method // is called. // +// See EnableVpcClassicLink for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -8868,6 +10564,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 +10573,13 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation EnableVpcClassicLink for usage and error information. func (c *EC2) EnableVpcClassicLink(input *EnableVpcClassicLinkInput) (*EnableVpcClassicLinkOutput, error) { req, out := c.EnableVpcClassicLinkRequest(input) err := req.Send() @@ -8888,6 +10593,8 @@ const opEnableVpcClassicLinkDnsSupport = "EnableVpcClassicLinkDnsSupport" // value can be used to capture response data after the request's "Send" method // is called. // +// See EnableVpcClassicLinkDnsSupport for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -8922,6 +10629,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 +10638,13 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation EnableVpcClassicLinkDnsSupport for usage and error information. func (c *EC2) EnableVpcClassicLinkDnsSupport(input *EnableVpcClassicLinkDnsSupportInput) (*EnableVpcClassicLinkDnsSupportOutput, error) { req, out := c.EnableVpcClassicLinkDnsSupportRequest(input) err := req.Send() @@ -8942,6 +10658,8 @@ const opGetConsoleOutput = "GetConsoleOutput" // value can be used to capture response data after the request's "Send" method // is called. // +// See GetConsoleOutput for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -8976,6 +10694,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 +10714,13 @@ func (c *EC2) GetConsoleOutputRequest(input *GetConsoleOutputInput) (req *reques // // For Windows instances, the instance console output includes output from // the EC2Config service. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation GetConsoleOutput for usage and error information. func (c *EC2) GetConsoleOutput(input *GetConsoleOutputInput) (*GetConsoleOutputOutput, error) { req, out := c.GetConsoleOutputRequest(input) err := req.Send() @@ -9007,6 +10734,8 @@ const opGetConsoleScreenshot = "GetConsoleScreenshot" // value can be used to capture response data after the request's "Send" method // is called. // +// See GetConsoleScreenshot for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -9041,9 +10770,18 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation GetConsoleScreenshot for usage and error information. func (c *EC2) GetConsoleScreenshot(input *GetConsoleScreenshotInput) (*GetConsoleScreenshotOutput, error) { req, out := c.GetConsoleScreenshotRequest(input) err := req.Send() @@ -9057,6 +10795,8 @@ const opGetHostReservationPurchasePreview = "GetHostReservationPurchasePreview" // value can be used to capture response data after the request's "Send" method // is called. // +// See GetHostReservationPurchasePreview for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -9091,12 +10831,21 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation GetHostReservationPurchasePreview for usage and error information. func (c *EC2) GetHostReservationPurchasePreview(input *GetHostReservationPurchasePreviewInput) (*GetHostReservationPurchasePreviewOutput, error) { req, out := c.GetHostReservationPurchasePreviewRequest(input) err := req.Send() @@ -9110,6 +10859,8 @@ const opGetPasswordData = "GetPasswordData" // value can be used to capture response data after the request's "Send" method // is called. // +// See GetPasswordData for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -9144,6 +10895,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 +10911,13 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation GetPasswordData for usage and error information. func (c *EC2) GetPasswordData(input *GetPasswordDataInput) (*GetPasswordDataOutput, error) { req, out := c.GetPasswordDataRequest(input) err := req.Send() @@ -9171,6 +10931,8 @@ const opGetReservedInstancesExchangeQuote = "GetReservedInstancesExchangeQuote" // value can be used to capture response data after the request's "Send" method // is called. // +// See GetReservedInstancesExchangeQuote for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -9205,9 +10967,18 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation GetReservedInstancesExchangeQuote for usage and error information. func (c *EC2) GetReservedInstancesExchangeQuote(input *GetReservedInstancesExchangeQuoteInput) (*GetReservedInstancesExchangeQuoteOutput, error) { req, out := c.GetReservedInstancesExchangeQuoteRequest(input) err := req.Send() @@ -9221,6 +10992,8 @@ const opImportImage = "ImportImage" // value can be used to capture response data after the request's "Send" method // is called. // +// See ImportImage for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -9255,10 +11028,19 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation ImportImage for usage and error information. func (c *EC2) ImportImage(input *ImportImageInput) (*ImportImageOutput, error) { req, out := c.ImportImageRequest(input) err := req.Send() @@ -9272,6 +11054,8 @@ const opImportInstance = "ImportInstance" // value can be used to capture response data after the request's "Send" method // is called. // +// See ImportInstance for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -9306,6 +11090,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 +11099,13 @@ 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). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation ImportInstance for usage and error information. func (c *EC2) ImportInstance(input *ImportInstanceInput) (*ImportInstanceOutput, error) { req, out := c.ImportInstanceRequest(input) err := req.Send() @@ -9326,6 +11119,8 @@ const opImportKeyPair = "ImportKeyPair" // value can be used to capture response data after the request's "Send" method // is called. // +// See ImportKeyPair for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -9360,6 +11155,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 +11165,13 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation ImportKeyPair for usage and error information. func (c *EC2) ImportKeyPair(input *ImportKeyPairInput) (*ImportKeyPairOutput, error) { req, out := c.ImportKeyPairRequest(input) err := req.Send() @@ -9381,6 +11185,8 @@ const opImportSnapshot = "ImportSnapshot" // value can be used to capture response data after the request's "Send" method // is called. // +// See ImportSnapshot for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -9415,7 +11221,16 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation ImportSnapshot for usage and error information. func (c *EC2) ImportSnapshot(input *ImportSnapshotInput) (*ImportSnapshotOutput, error) { req, out := c.ImportSnapshotRequest(input) err := req.Send() @@ -9429,6 +11244,8 @@ const opImportVolume = "ImportVolume" // value can be used to capture response data after the request's "Send" method // is called. // +// See ImportVolume for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -9463,11 +11280,20 @@ 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). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation ImportVolume for usage and error information. func (c *EC2) ImportVolume(input *ImportVolumeInput) (*ImportVolumeOutput, error) { req, out := c.ImportVolumeRequest(input) err := req.Send() @@ -9481,6 +11307,8 @@ const opModifyHosts = "ModifyHosts" // value can be used to capture response data after the request's "Send" method // is called. // +// See ModifyHosts for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -9515,6 +11343,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 +11352,13 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation ModifyHosts for usage and error information. func (c *EC2) ModifyHosts(input *ModifyHostsInput) (*ModifyHostsOutput, error) { req, out := c.ModifyHostsRequest(input) err := req.Send() @@ -9535,6 +11372,8 @@ const opModifyIdFormat = "ModifyIdFormat" // value can be used to capture response data after the request's "Send" method // is called. // +// See ModifyIdFormat for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -9571,6 +11410,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 +11428,13 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation ModifyIdFormat for usage and error information. func (c *EC2) ModifyIdFormat(input *ModifyIdFormatInput) (*ModifyIdFormatOutput, error) { req, out := c.ModifyIdFormatRequest(input) err := req.Send() @@ -9600,6 +11448,8 @@ const opModifyIdentityIdFormat = "ModifyIdentityIdFormat" // value can be used to capture response data after the request's "Send" method // is called. // +// See ModifyIdentityIdFormat for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -9636,6 +11486,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 +11503,13 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation ModifyIdentityIdFormat for usage and error information. func (c *EC2) ModifyIdentityIdFormat(input *ModifyIdentityIdFormatInput) (*ModifyIdentityIdFormatOutput, error) { req, out := c.ModifyIdentityIdFormatRequest(input) err := req.Send() @@ -9664,6 +11523,8 @@ const opModifyImageAttribute = "ModifyImageAttribute" // value can be used to capture response data after the request's "Send" method // is called. // +// See ModifyImageAttribute for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -9700,6 +11561,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 +11573,13 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation ModifyImageAttribute for usage and error information. func (c *EC2) ModifyImageAttribute(input *ModifyImageAttributeInput) (*ModifyImageAttributeOutput, error) { req, out := c.ModifyImageAttributeRequest(input) err := req.Send() @@ -9723,6 +11593,8 @@ const opModifyInstanceAttribute = "ModifyInstanceAttribute" // value can be used to capture response data after the request's "Send" method // is called. // +// See ModifyInstanceAttribute for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -9759,12 +11631,21 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation ModifyInstanceAttribute for usage and error information. func (c *EC2) ModifyInstanceAttribute(input *ModifyInstanceAttributeInput) (*ModifyInstanceAttributeOutput, error) { req, out := c.ModifyInstanceAttributeRequest(input) err := req.Send() @@ -9778,6 +11659,8 @@ const opModifyInstancePlacement = "ModifyInstancePlacement" // value can be used to capture response data after the request's "Send" method // is called. // +// See ModifyInstancePlacement for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -9812,6 +11695,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 +11716,13 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation ModifyInstancePlacement for usage and error information. func (c *EC2) ModifyInstancePlacement(input *ModifyInstancePlacementInput) (*ModifyInstancePlacementOutput, error) { req, out := c.ModifyInstancePlacementRequest(input) err := req.Send() @@ -9844,6 +11736,8 @@ const opModifyNetworkInterfaceAttribute = "ModifyNetworkInterfaceAttribute" // value can be used to capture response data after the request's "Send" method // is called. // +// See ModifyNetworkInterfaceAttribute for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -9880,8 +11774,17 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation ModifyNetworkInterfaceAttribute for usage and error information. func (c *EC2) ModifyNetworkInterfaceAttribute(input *ModifyNetworkInterfaceAttributeInput) (*ModifyNetworkInterfaceAttributeOutput, error) { req, out := c.ModifyNetworkInterfaceAttributeRequest(input) err := req.Send() @@ -9895,6 +11798,8 @@ const opModifyReservedInstances = "ModifyReservedInstances" // value can be used to capture response data after the request's "Send" method // is called. // +// See ModifyReservedInstances for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -9929,6 +11834,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 +11843,13 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation ModifyReservedInstances for usage and error information. func (c *EC2) ModifyReservedInstances(input *ModifyReservedInstancesInput) (*ModifyReservedInstancesOutput, error) { req, out := c.ModifyReservedInstancesRequest(input) err := req.Send() @@ -9949,6 +11863,8 @@ const opModifySnapshotAttribute = "ModifySnapshotAttribute" // value can be used to capture response data after the request's "Send" method // is called. // +// See ModifySnapshotAttribute for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -9985,6 +11901,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 +11916,13 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation ModifySnapshotAttribute for usage and error information. func (c *EC2) ModifySnapshotAttribute(input *ModifySnapshotAttributeInput) (*ModifySnapshotAttributeOutput, error) { req, out := c.ModifySnapshotAttributeRequest(input) err := req.Send() @@ -10011,6 +11936,8 @@ const opModifySpotFleetRequest = "ModifySpotFleetRequest" // value can be used to capture response data after the request's "Send" method // is called. // +// See ModifySpotFleetRequest for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -10045,6 +11972,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 +11994,13 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation ModifySpotFleetRequest for usage and error information. func (c *EC2) ModifySpotFleetRequest(input *ModifySpotFleetRequestInput) (*ModifySpotFleetRequestOutput, error) { req, out := c.ModifySpotFleetRequestRequest(input) err := req.Send() @@ -10078,6 +12014,8 @@ const opModifySubnetAttribute = "ModifySubnetAttribute" // value can be used to capture response data after the request's "Send" method // is called. // +// See ModifySubnetAttribute for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -10114,7 +12052,16 @@ func (c *EC2) ModifySubnetAttributeRequest(input *ModifySubnetAttributeInput) (r return } +// ModifySubnetAttribute API operation for Amazon Elastic Compute Cloud. +// // Modifies a subnet attribute. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation ModifySubnetAttribute for usage and error information. func (c *EC2) ModifySubnetAttribute(input *ModifySubnetAttributeInput) (*ModifySubnetAttributeOutput, error) { req, out := c.ModifySubnetAttributeRequest(input) err := req.Send() @@ -10128,6 +12075,8 @@ const opModifyVolumeAttribute = "ModifyVolumeAttribute" // value can be used to capture response data after the request's "Send" method // is called. // +// See ModifyVolumeAttribute for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -10164,6 +12113,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 +12125,13 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation ModifyVolumeAttribute for usage and error information. func (c *EC2) ModifyVolumeAttribute(input *ModifyVolumeAttributeInput) (*ModifyVolumeAttributeOutput, error) { req, out := c.ModifyVolumeAttributeRequest(input) err := req.Send() @@ -10187,6 +12145,8 @@ const opModifyVpcAttribute = "ModifyVpcAttribute" // value can be used to capture response data after the request's "Send" method // is called. // +// See ModifyVpcAttribute for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -10223,7 +12183,16 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation ModifyVpcAttribute for usage and error information. func (c *EC2) ModifyVpcAttribute(input *ModifyVpcAttributeInput) (*ModifyVpcAttributeOutput, error) { req, out := c.ModifyVpcAttributeRequest(input) err := req.Send() @@ -10237,6 +12206,8 @@ const opModifyVpcEndpoint = "ModifyVpcEndpoint" // value can be used to capture response data after the request's "Send" method // is called. // +// See ModifyVpcEndpoint for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -10271,9 +12242,18 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation ModifyVpcEndpoint for usage and error information. func (c *EC2) ModifyVpcEndpoint(input *ModifyVpcEndpointInput) (*ModifyVpcEndpointOutput, error) { req, out := c.ModifyVpcEndpointRequest(input) err := req.Send() @@ -10287,6 +12267,8 @@ const opModifyVpcPeeringConnectionOptions = "ModifyVpcPeeringConnectionOptions" // value can be used to capture response data after the request's "Send" method // is called. // +// See ModifyVpcPeeringConnectionOptions for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -10321,6 +12303,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 +12325,13 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation ModifyVpcPeeringConnectionOptions for usage and error information. func (c *EC2) ModifyVpcPeeringConnectionOptions(input *ModifyVpcPeeringConnectionOptionsInput) (*ModifyVpcPeeringConnectionOptionsOutput, error) { req, out := c.ModifyVpcPeeringConnectionOptionsRequest(input) err := req.Send() @@ -10354,6 +12345,8 @@ const opMonitorInstances = "MonitorInstances" // value can be used to capture response data after the request's "Send" method // is called. // +// See MonitorInstances for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -10388,9 +12381,18 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation MonitorInstances for usage and error information. func (c *EC2) MonitorInstances(input *MonitorInstancesInput) (*MonitorInstancesOutput, error) { req, out := c.MonitorInstancesRequest(input) err := req.Send() @@ -10404,6 +12406,8 @@ const opMoveAddressToVpc = "MoveAddressToVpc" // value can be used to capture response data after the request's "Send" method // is called. // +// See MoveAddressToVpc for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -10438,6 +12442,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 +12451,13 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation MoveAddressToVpc for usage and error information. func (c *EC2) MoveAddressToVpc(input *MoveAddressToVpcInput) (*MoveAddressToVpcOutput, error) { req, out := c.MoveAddressToVpcRequest(input) err := req.Send() @@ -10458,6 +12471,8 @@ const opPurchaseHostReservation = "PurchaseHostReservation" // value can be used to capture response data after the request's "Send" method // is called. // +// See PurchaseHostReservation for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -10492,10 +12507,19 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation PurchaseHostReservation for usage and error information. func (c *EC2) PurchaseHostReservation(input *PurchaseHostReservationInput) (*PurchaseHostReservationOutput, error) { req, out := c.PurchaseHostReservationRequest(input) err := req.Send() @@ -10509,6 +12533,8 @@ const opPurchaseReservedInstancesOffering = "PurchaseReservedInstancesOffering" // value can be used to capture response data after the request's "Send" method // is called. // +// See PurchaseReservedInstancesOffering for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -10543,6 +12569,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 +12581,13 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation PurchaseReservedInstancesOffering for usage and error information. func (c *EC2) PurchaseReservedInstancesOffering(input *PurchaseReservedInstancesOfferingInput) (*PurchaseReservedInstancesOfferingOutput, error) { req, out := c.PurchaseReservedInstancesOfferingRequest(input) err := req.Send() @@ -10566,6 +12601,8 @@ const opPurchaseScheduledInstances = "PurchaseScheduledInstances" // value can be used to capture response data after the request's "Send" method // is called. // +// See PurchaseScheduledInstances for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -10600,6 +12637,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 +12649,13 @@ func (c *EC2) PurchaseScheduledInstancesRequest(input *PurchaseScheduledInstance // // After you purchase a Scheduled Instance, you can't cancel, modify, or resell // your purchase. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation PurchaseScheduledInstances for usage and error information. func (c *EC2) PurchaseScheduledInstances(input *PurchaseScheduledInstancesInput) (*PurchaseScheduledInstancesOutput, error) { req, out := c.PurchaseScheduledInstancesRequest(input) err := req.Send() @@ -10623,6 +12669,8 @@ const opRebootInstances = "RebootInstances" // value can be used to capture response data after the request's "Send" method // is called. // +// See RebootInstances for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -10659,6 +12707,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 +12720,13 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation RebootInstances for usage and error information. func (c *EC2) RebootInstances(input *RebootInstancesInput) (*RebootInstancesOutput, error) { req, out := c.RebootInstancesRequest(input) err := req.Send() @@ -10683,6 +12740,8 @@ const opRegisterImage = "RegisterImage" // value can be used to capture response data after the request's "Send" method // is called. // +// See RegisterImage for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -10717,6 +12776,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 +12811,13 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation RegisterImage for usage and error information. func (c *EC2) RegisterImage(input *RegisterImageInput) (*RegisterImageOutput, error) { req, out := c.RegisterImageRequest(input) err := req.Send() @@ -10763,6 +12831,8 @@ const opRejectVpcPeeringConnection = "RejectVpcPeeringConnection" // value can be used to capture response data after the request's "Send" method // is called. // +// See RejectVpcPeeringConnection for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -10797,11 +12867,20 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation RejectVpcPeeringConnection for usage and error information. func (c *EC2) RejectVpcPeeringConnection(input *RejectVpcPeeringConnectionInput) (*RejectVpcPeeringConnectionOutput, error) { req, out := c.RejectVpcPeeringConnectionRequest(input) err := req.Send() @@ -10815,6 +12894,8 @@ const opReleaseAddress = "ReleaseAddress" // value can be used to capture response data after the request's "Send" method // is called. // +// See ReleaseAddress for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -10851,6 +12932,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 +12949,13 @@ 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). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation ReleaseAddress for usage and error information. func (c *EC2) ReleaseAddress(input *ReleaseAddressInput) (*ReleaseAddressOutput, error) { req, out := c.ReleaseAddressRequest(input) err := req.Send() @@ -10879,6 +12969,8 @@ const opReleaseHosts = "ReleaseHosts" // value can be used to capture response data after the request's "Send" method // is called. // +// See ReleaseHosts for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -10913,6 +13005,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 +13019,13 @@ func (c *EC2) ReleaseHostsRequest(input *ReleaseHostsInput) (req *request.Reques // again. // // Released hosts will still appear in a DescribeHosts response. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation ReleaseHosts for usage and error information. func (c *EC2) ReleaseHosts(input *ReleaseHostsInput) (*ReleaseHostsOutput, error) { req, out := c.ReleaseHostsRequest(input) err := req.Send() @@ -10938,6 +13039,8 @@ const opReplaceNetworkAclAssociation = "ReplaceNetworkAclAssociation" // value can be used to capture response data after the request's "Send" method // is called. // +// See ReplaceNetworkAclAssociation for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -10972,10 +13075,19 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation ReplaceNetworkAclAssociation for usage and error information. func (c *EC2) ReplaceNetworkAclAssociation(input *ReplaceNetworkAclAssociationInput) (*ReplaceNetworkAclAssociationOutput, error) { req, out := c.ReplaceNetworkAclAssociationRequest(input) err := req.Send() @@ -10989,6 +13101,8 @@ const opReplaceNetworkAclEntry = "ReplaceNetworkAclEntry" // value can be used to capture response data after the request's "Send" method // is called. // +// See ReplaceNetworkAclEntry for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -11025,9 +13139,18 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation ReplaceNetworkAclEntry for usage and error information. func (c *EC2) ReplaceNetworkAclEntry(input *ReplaceNetworkAclEntryInput) (*ReplaceNetworkAclEntryOutput, error) { req, out := c.ReplaceNetworkAclEntryRequest(input) err := req.Send() @@ -11041,6 +13164,8 @@ const opReplaceRoute = "ReplaceRoute" // value can be used to capture response data after the request's "Send" method // is called. // +// See ReplaceRoute for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -11077,12 +13202,21 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation ReplaceRoute for usage and error information. func (c *EC2) ReplaceRoute(input *ReplaceRouteInput) (*ReplaceRouteOutput, error) { req, out := c.ReplaceRouteRequest(input) err := req.Send() @@ -11096,6 +13230,8 @@ const opReplaceRouteTableAssociation = "ReplaceRouteTableAssociation" // value can be used to capture response data after the request's "Send" method // is called. // +// See ReplaceRouteTableAssociation for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -11130,6 +13266,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 +13277,13 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation ReplaceRouteTableAssociation for usage and error information. func (c *EC2) ReplaceRouteTableAssociation(input *ReplaceRouteTableAssociationInput) (*ReplaceRouteTableAssociationOutput, error) { req, out := c.ReplaceRouteTableAssociationRequest(input) err := req.Send() @@ -11152,6 +13297,8 @@ const opReportInstanceStatus = "ReportInstanceStatus" // value can be used to capture response data after the request's "Send" method // is called. // +// See ReportInstanceStatus for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -11188,6 +13335,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 +13344,13 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation ReportInstanceStatus for usage and error information. func (c *EC2) ReportInstanceStatus(input *ReportInstanceStatusInput) (*ReportInstanceStatusOutput, error) { req, out := c.ReportInstanceStatusRequest(input) err := req.Send() @@ -11208,6 +13364,8 @@ const opRequestSpotFleet = "RequestSpotFleet" // value can be used to capture response data after the request's "Send" method // is called. // +// See RequestSpotFleet for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -11242,6 +13400,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 +13419,13 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation RequestSpotFleet for usage and error information. func (c *EC2) RequestSpotFleet(input *RequestSpotFleetInput) (*RequestSpotFleetOutput, error) { req, out := c.RequestSpotFleetRequest(input) err := req.Send() @@ -11272,6 +13439,8 @@ const opRequestSpotInstances = "RequestSpotInstances" // value can be used to capture response data after the request's "Send" method // is called. // +// See RequestSpotInstances for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -11306,12 +13475,21 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation RequestSpotInstances for usage and error information. func (c *EC2) RequestSpotInstances(input *RequestSpotInstancesInput) (*RequestSpotInstancesOutput, error) { req, out := c.RequestSpotInstancesRequest(input) err := req.Send() @@ -11325,6 +13503,8 @@ const opResetImageAttribute = "ResetImageAttribute" // value can be used to capture response data after the request's "Send" method // is called. // +// See ResetImageAttribute for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -11361,9 +13541,18 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation ResetImageAttribute for usage and error information. func (c *EC2) ResetImageAttribute(input *ResetImageAttributeInput) (*ResetImageAttributeOutput, error) { req, out := c.ResetImageAttributeRequest(input) err := req.Send() @@ -11377,6 +13566,8 @@ const opResetInstanceAttribute = "ResetInstanceAttribute" // value can be used to capture response data after the request's "Send" method // is called. // +// See ResetInstanceAttribute for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -11413,6 +13604,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 +13615,13 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation ResetInstanceAttribute for usage and error information. func (c *EC2) ResetInstanceAttribute(input *ResetInstanceAttributeInput) (*ResetInstanceAttributeOutput, error) { req, out := c.ResetInstanceAttributeRequest(input) err := req.Send() @@ -11435,6 +13635,8 @@ const opResetNetworkInterfaceAttribute = "ResetNetworkInterfaceAttribute" // value can be used to capture response data after the request's "Send" method // is called. // +// See ResetNetworkInterfaceAttribute for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -11471,8 +13673,17 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation ResetNetworkInterfaceAttribute for usage and error information. func (c *EC2) ResetNetworkInterfaceAttribute(input *ResetNetworkInterfaceAttributeInput) (*ResetNetworkInterfaceAttributeOutput, error) { req, out := c.ResetNetworkInterfaceAttributeRequest(input) err := req.Send() @@ -11486,6 +13697,8 @@ const opResetSnapshotAttribute = "ResetSnapshotAttribute" // value can be used to capture response data after the request's "Send" method // is called. // +// See ResetSnapshotAttribute for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -11522,11 +13735,20 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation ResetSnapshotAttribute for usage and error information. func (c *EC2) ResetSnapshotAttribute(input *ResetSnapshotAttributeInput) (*ResetSnapshotAttributeOutput, error) { req, out := c.ResetSnapshotAttributeRequest(input) err := req.Send() @@ -11540,6 +13762,8 @@ const opRestoreAddressToClassic = "RestoreAddressToClassic" // value can be used to capture response data after the request's "Send" method // is called. // +// See RestoreAddressToClassic for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -11574,10 +13798,19 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation RestoreAddressToClassic for usage and error information. func (c *EC2) RestoreAddressToClassic(input *RestoreAddressToClassicInput) (*RestoreAddressToClassicOutput, error) { req, out := c.RestoreAddressToClassicRequest(input) err := req.Send() @@ -11591,6 +13824,8 @@ const opRevokeSecurityGroupEgress = "RevokeSecurityGroupEgress" // value can be used to capture response data after the request's "Send" method // is called. // +// See RevokeSecurityGroupEgress for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -11627,6 +13862,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 +13876,13 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation RevokeSecurityGroupEgress for usage and error information. func (c *EC2) RevokeSecurityGroupEgress(input *RevokeSecurityGroupEgressInput) (*RevokeSecurityGroupEgressOutput, error) { req, out := c.RevokeSecurityGroupEgressRequest(input) err := req.Send() @@ -11652,6 +13896,8 @@ const opRevokeSecurityGroupIngress = "RevokeSecurityGroupIngress" // value can be used to capture response data after the request's "Send" method // is called. // +// See RevokeSecurityGroupIngress for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -11688,6 +13934,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 +13947,13 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation RevokeSecurityGroupIngress for usage and error information. func (c *EC2) RevokeSecurityGroupIngress(input *RevokeSecurityGroupIngressInput) (*RevokeSecurityGroupIngressOutput, error) { req, out := c.RevokeSecurityGroupIngressRequest(input) err := req.Send() @@ -11712,6 +13967,8 @@ const opRunInstances = "RunInstances" // value can be used to capture response data after the request's "Send" method // is called. // +// See RunInstances for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -11746,6 +14003,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 +14052,13 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation RunInstances for usage and error information. func (c *EC2) RunInstances(input *RunInstancesInput) (*Reservation, error) { req, out := c.RunInstancesRequest(input) err := req.Send() @@ -11806,6 +14072,8 @@ const opRunScheduledInstances = "RunScheduledInstances" // value can be used to capture response data after the request's "Send" method // is called. // +// See RunScheduledInstances for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -11840,6 +14108,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 +14121,13 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation RunScheduledInstances for usage and error information. func (c *EC2) RunScheduledInstances(input *RunScheduledInstancesInput) (*RunScheduledInstancesOutput, error) { req, out := c.RunScheduledInstancesRequest(input) err := req.Send() @@ -11864,6 +14141,8 @@ const opStartInstances = "StartInstances" // value can be used to capture response data after the request's "Send" method // is called. // +// See StartInstances for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -11898,6 +14177,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 +14198,13 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation StartInstances for usage and error information. func (c *EC2) StartInstances(input *StartInstancesInput) (*StartInstancesOutput, error) { req, out := c.StartInstancesRequest(input) err := req.Send() @@ -11930,6 +14218,8 @@ const opStopInstances = "StopInstances" // value can be used to capture response data after the request's "Send" method // is called. // +// See StopInstances for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -11964,6 +14254,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 +14286,13 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation StopInstances for usage and error information. func (c *EC2) StopInstances(input *StopInstancesInput) (*StopInstancesOutput, error) { req, out := c.StopInstancesRequest(input) err := req.Send() @@ -12007,6 +14306,8 @@ const opTerminateInstances = "TerminateInstances" // value can be used to capture response data after the request's "Send" method // is called. // +// See TerminateInstances for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -12041,6 +14342,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 +14369,13 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation TerminateInstances for usage and error information. func (c *EC2) TerminateInstances(input *TerminateInstancesInput) (*TerminateInstancesOutput, error) { req, out := c.TerminateInstancesRequest(input) err := req.Send() @@ -12079,6 +14389,8 @@ const opUnassignPrivateIpAddresses = "UnassignPrivateIpAddresses" // value can be used to capture response data after the request's "Send" method // is called. // +// See UnassignPrivateIpAddresses for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -12115,7 +14427,16 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation UnassignPrivateIpAddresses for usage and error information. func (c *EC2) UnassignPrivateIpAddresses(input *UnassignPrivateIpAddressesInput) (*UnassignPrivateIpAddressesOutput, error) { req, out := c.UnassignPrivateIpAddressesRequest(input) err := req.Send() @@ -12129,6 +14450,8 @@ const opUnmonitorInstances = "UnmonitorInstances" // value can be used to capture response data after the request's "Send" method // is called. // +// See UnmonitorInstances for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -12163,9 +14486,18 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation UnmonitorInstances for usage and error information. 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..ad93825970c 100644 --- a/service/ecr/api.go +++ b/service/ecr/api.go @@ -17,6 +17,8 @@ const opBatchCheckLayerAvailability = "BatchCheckLayerAvailability" // value can be used to capture response data after the request's "Send" method // is called. // +// See BatchCheckLayerAvailability for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -51,11 +53,33 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon EC2 Container Registry's +// API operation BatchCheckLayerAvailability for usage and error information. +// +// Returned Error Codes: +// * RepositoryNotFoundException +// The specified repository could not be found. Check the spelling of the specified +// repository and ensure that you are performing operations on the correct registry. +// +// * InvalidParameterException +// The specified parameter is invalid. Review the available parameters for the +// API request. +// +// * ServerException +// These errors are usually caused by a server-side issue. +// func (c *ECR) BatchCheckLayerAvailability(input *BatchCheckLayerAvailabilityInput) (*BatchCheckLayerAvailabilityOutput, error) { req, out := c.BatchCheckLayerAvailabilityRequest(input) err := req.Send() @@ -69,6 +93,8 @@ const opBatchDeleteImage = "BatchDeleteImage" // value can be used to capture response data after the request's "Send" method // is called. // +// See BatchDeleteImage for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -103,8 +129,30 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon EC2 Container Registry's +// API operation BatchDeleteImage for usage and error information. +// +// Returned Error Codes: +// * ServerException +// These errors are usually caused by a server-side issue. +// +// * InvalidParameterException +// The specified parameter is invalid. Review the available parameters for the +// API request. +// +// * RepositoryNotFoundException +// The specified repository could not be found. Check the spelling of the specified +// repository and ensure that you are performing operations on the correct registry. +// func (c *ECR) BatchDeleteImage(input *BatchDeleteImageInput) (*BatchDeleteImageOutput, error) { req, out := c.BatchDeleteImageRequest(input) err := req.Send() @@ -118,6 +166,8 @@ const opBatchGetImage = "BatchGetImage" // value can be used to capture response data after the request's "Send" method // is called. // +// See BatchGetImage for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -152,8 +202,30 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon EC2 Container Registry's +// API operation BatchGetImage for usage and error information. +// +// Returned Error Codes: +// * ServerException +// These errors are usually caused by a server-side issue. +// +// * InvalidParameterException +// The specified parameter is invalid. Review the available parameters for the +// API request. +// +// * RepositoryNotFoundException +// The specified repository could not be found. Check the spelling of the specified +// repository and ensure that you are performing operations on the correct registry. +// func (c *ECR) BatchGetImage(input *BatchGetImageInput) (*BatchGetImageOutput, error) { req, out := c.BatchGetImageRequest(input) err := req.Send() @@ -167,6 +239,8 @@ const opCompleteLayerUpload = "CompleteLayerUpload" // value can be used to capture response data after the request's "Send" method // is called. // +// See CompleteLayerUpload for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -201,12 +275,51 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon EC2 Container Registry's +// API operation CompleteLayerUpload for usage and error information. +// +// Returned Error Codes: +// * ServerException +// These errors are usually caused by a server-side issue. +// +// * InvalidParameterException +// The specified parameter is invalid. Review the available parameters for the +// API request. +// +// * RepositoryNotFoundException +// The specified repository could not be found. Check the spelling of the specified +// repository and ensure that you are performing operations on the correct registry. +// +// * UploadNotFoundException +// The upload could not be found, or the specified upload id is not valid for +// this repository. +// +// * InvalidLayerException +// The layer digest calculation performed by Amazon ECR upon receipt of the +// image layer does not match the digest specified. +// +// * LayerPartTooSmallException +// Layer parts must be at least 5 MiB in size. +// +// * LayerAlreadyExistsException +// The image layer already exists in the associated repository. +// +// * EmptyUploadException +// The specified layer upload does not contain any layer parts. +// func (c *ECR) CompleteLayerUpload(input *CompleteLayerUploadInput) (*CompleteLayerUploadOutput, error) { req, out := c.CompleteLayerUploadRequest(input) err := req.Send() @@ -220,6 +333,8 @@ const opCreateRepository = "CreateRepository" // value can be used to capture response data after the request's "Send" method // is called. // +// See CreateRepository for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -254,7 +369,34 @@ func (c *ECR) CreateRepositoryRequest(input *CreateRepositoryInput) (req *reques return } +// CreateRepository API operation for Amazon EC2 Container Registry. +// // Creates an image repository. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon EC2 Container Registry's +// API operation CreateRepository for usage and error information. +// +// Returned Error Codes: +// * ServerException +// These errors are usually caused by a server-side issue. +// +// * InvalidParameterException +// The specified parameter is invalid. Review the available parameters for the +// API request. +// +// * RepositoryAlreadyExistsException +// The specified repository already exists in the specified registry. +// +// * LimitExceededException +// The operation did not succeed because it would have exceeded a service limit +// for your account. For more information, see Amazon ECR Default Service Limits +// (http://docs.aws.amazon.com/AmazonECR/latest/userguide/service_limits.html) +// in the Amazon EC2 Container Registry User Guide. +// func (c *ECR) CreateRepository(input *CreateRepositoryInput) (*CreateRepositoryOutput, error) { req, out := c.CreateRepositoryRequest(input) err := req.Send() @@ -268,6 +410,8 @@ const opDeleteRepository = "DeleteRepository" // value can be used to capture response data after the request's "Send" method // is called. // +// See DeleteRepository for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -302,8 +446,34 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon EC2 Container Registry's +// API operation DeleteRepository for usage and error information. +// +// Returned Error Codes: +// * ServerException +// These errors are usually caused by a server-side issue. +// +// * InvalidParameterException +// The specified parameter is invalid. Review the available parameters for the +// API request. +// +// * RepositoryNotFoundException +// The specified repository could not be found. Check the spelling of the specified +// repository and ensure that you are performing operations on the correct registry. +// +// * RepositoryNotEmptyException +// The specified repository contains images. To delete a repository that contains +// images, you must force the deletion with the force parameter. +// func (c *ECR) DeleteRepository(input *DeleteRepositoryInput) (*DeleteRepositoryOutput, error) { req, out := c.DeleteRepositoryRequest(input) err := req.Send() @@ -317,6 +487,8 @@ const opDeleteRepositoryPolicy = "DeleteRepositoryPolicy" // value can be used to capture response data after the request's "Send" method // is called. // +// See DeleteRepositoryPolicy for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -351,7 +523,33 @@ func (c *ECR) DeleteRepositoryPolicyRequest(input *DeleteRepositoryPolicyInput) return } +// DeleteRepositoryPolicy API operation for Amazon EC2 Container Registry. +// // Deletes the repository policy from a specified repository. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon EC2 Container Registry's +// API operation DeleteRepositoryPolicy for usage and error information. +// +// Returned Error Codes: +// * ServerException +// These errors are usually caused by a server-side issue. +// +// * InvalidParameterException +// The specified parameter is invalid. Review the available parameters for the +// API request. +// +// * RepositoryNotFoundException +// The specified repository could not be found. Check the spelling of the specified +// repository and ensure that you are performing operations on the correct registry. +// +// * RepositoryPolicyNotFoundException +// The specified repository and registry combination does not have an associated +// repository policy. +// func (c *ECR) DeleteRepositoryPolicy(input *DeleteRepositoryPolicyInput) (*DeleteRepositoryPolicyOutput, error) { req, out := c.DeleteRepositoryPolicyRequest(input) err := req.Send() @@ -365,6 +563,8 @@ const opDescribeRepositories = "DescribeRepositories" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeRepositories for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -399,7 +599,29 @@ func (c *ECR) DescribeRepositoriesRequest(input *DescribeRepositoriesInput) (req return } +// DescribeRepositories API operation for Amazon EC2 Container Registry. +// // Describes image repositories in a registry. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon EC2 Container Registry's +// API operation DescribeRepositories for usage and error information. +// +// Returned Error Codes: +// * ServerException +// These errors are usually caused by a server-side issue. +// +// * InvalidParameterException +// The specified parameter is invalid. Review the available parameters for the +// API request. +// +// * RepositoryNotFoundException +// The specified repository could not be found. Check the spelling of the specified +// repository and ensure that you are performing operations on the correct registry. +// func (c *ECR) DescribeRepositories(input *DescribeRepositoriesInput) (*DescribeRepositoriesOutput, error) { req, out := c.DescribeRepositoriesRequest(input) err := req.Send() @@ -413,6 +635,8 @@ const opGetAuthorizationToken = "GetAuthorizationToken" // value can be used to capture response data after the request's "Send" method // is called. // +// See GetAuthorizationToken for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -447,6 +671,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 +681,22 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon EC2 Container Registry's +// API operation GetAuthorizationToken for usage and error information. +// +// Returned Error Codes: +// * ServerException +// These errors are usually caused by a server-side issue. +// +// * InvalidParameterException +// The specified parameter is invalid. Review the available parameters for the +// API request. +// func (c *ECR) GetAuthorizationToken(input *GetAuthorizationTokenInput) (*GetAuthorizationTokenOutput, error) { req, out := c.GetAuthorizationTokenRequest(input) err := req.Send() @@ -468,6 +710,8 @@ const opGetDownloadUrlForLayer = "GetDownloadUrlForLayer" // value can be used to capture response data after the request's "Send" method // is called. // +// See GetDownloadUrlForLayer for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -502,11 +746,41 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon EC2 Container Registry's +// API operation GetDownloadUrlForLayer for usage and error information. +// +// Returned Error Codes: +// * ServerException +// These errors are usually caused by a server-side issue. +// +// * InvalidParameterException +// The specified parameter is invalid. Review the available parameters for the +// API request. +// +// * LayersNotFoundException +// The specified layers could not be found, or the specified layer is not valid +// for this repository. +// +// * LayerInaccessibleException +// The specified layer is not available because it is not associated with an +// image. Unassociated image layers may be cleaned up at any time. +// +// * RepositoryNotFoundException +// The specified repository could not be found. Check the spelling of the specified +// repository and ensure that you are performing operations on the correct registry. +// func (c *ECR) GetDownloadUrlForLayer(input *GetDownloadUrlForLayerInput) (*GetDownloadUrlForLayerOutput, error) { req, out := c.GetDownloadUrlForLayerRequest(input) err := req.Send() @@ -520,6 +794,8 @@ const opGetRepositoryPolicy = "GetRepositoryPolicy" // value can be used to capture response data after the request's "Send" method // is called. // +// See GetRepositoryPolicy for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -554,7 +830,33 @@ func (c *ECR) GetRepositoryPolicyRequest(input *GetRepositoryPolicyInput) (req * return } +// GetRepositoryPolicy API operation for Amazon EC2 Container Registry. +// // Retrieves the repository policy for a specified repository. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon EC2 Container Registry's +// API operation GetRepositoryPolicy for usage and error information. +// +// Returned Error Codes: +// * ServerException +// These errors are usually caused by a server-side issue. +// +// * InvalidParameterException +// The specified parameter is invalid. Review the available parameters for the +// API request. +// +// * RepositoryNotFoundException +// The specified repository could not be found. Check the spelling of the specified +// repository and ensure that you are performing operations on the correct registry. +// +// * RepositoryPolicyNotFoundException +// The specified repository and registry combination does not have an associated +// repository policy. +// func (c *ECR) GetRepositoryPolicy(input *GetRepositoryPolicyInput) (*GetRepositoryPolicyOutput, error) { req, out := c.GetRepositoryPolicyRequest(input) err := req.Send() @@ -568,6 +870,8 @@ const opInitiateLayerUpload = "InitiateLayerUpload" // value can be used to capture response data after the request's "Send" method // is called. // +// See InitiateLayerUpload for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -602,10 +906,32 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon EC2 Container Registry's +// API operation InitiateLayerUpload for usage and error information. +// +// Returned Error Codes: +// * ServerException +// These errors are usually caused by a server-side issue. +// +// * InvalidParameterException +// The specified parameter is invalid. Review the available parameters for the +// API request. +// +// * RepositoryNotFoundException +// The specified repository could not be found. Check the spelling of the specified +// repository and ensure that you are performing operations on the correct registry. +// func (c *ECR) InitiateLayerUpload(input *InitiateLayerUploadInput) (*InitiateLayerUploadOutput, error) { req, out := c.InitiateLayerUploadRequest(input) err := req.Send() @@ -619,6 +945,8 @@ const opListImages = "ListImages" // value can be used to capture response data after the request's "Send" method // is called. // +// See ListImages for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -653,6 +981,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 +990,26 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon EC2 Container Registry's +// API operation ListImages for usage and error information. +// +// Returned Error Codes: +// * ServerException +// These errors are usually caused by a server-side issue. +// +// * InvalidParameterException +// The specified parameter is invalid. Review the available parameters for the +// API request. +// +// * RepositoryNotFoundException +// The specified repository could not be found. Check the spelling of the specified +// repository and ensure that you are performing operations on the correct registry. +// func (c *ECR) ListImages(input *ListImagesInput) (*ListImagesOutput, error) { req, out := c.ListImagesRequest(input) err := req.Send() @@ -673,6 +1023,8 @@ const opPutImage = "PutImage" // value can be used to capture response data after the request's "Send" method // is called. // +// See PutImage for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -707,10 +1059,46 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon EC2 Container Registry's +// API operation PutImage for usage and error information. +// +// Returned Error Codes: +// * ServerException +// These errors are usually caused by a server-side issue. +// +// * InvalidParameterException +// The specified parameter is invalid. Review the available parameters for the +// API request. +// +// * RepositoryNotFoundException +// The specified repository could not be found. Check the spelling of the specified +// repository and ensure that you are performing operations on the correct registry. +// +// * ImageAlreadyExistsException +// The specified image has already been pushed, and there are no changes to +// the manifest or image tag since the last push. +// +// * LayersNotFoundException +// The specified layers could not be found, or the specified layer is not valid +// for this repository. +// +// * LimitExceededException +// The operation did not succeed because it would have exceeded a service limit +// for your account. For more information, see Amazon ECR Default Service Limits +// (http://docs.aws.amazon.com/AmazonECR/latest/userguide/service_limits.html) +// in the Amazon EC2 Container Registry User Guide. +// func (c *ECR) PutImage(input *PutImageInput) (*PutImageOutput, error) { req, out := c.PutImageRequest(input) err := req.Send() @@ -724,6 +1112,8 @@ const opSetRepositoryPolicy = "SetRepositoryPolicy" // value can be used to capture response data after the request's "Send" method // is called. // +// See SetRepositoryPolicy for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -758,7 +1148,29 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon EC2 Container Registry's +// API operation SetRepositoryPolicy for usage and error information. +// +// Returned Error Codes: +// * ServerException +// These errors are usually caused by a server-side issue. +// +// * InvalidParameterException +// The specified parameter is invalid. Review the available parameters for the +// API request. +// +// * RepositoryNotFoundException +// The specified repository could not be found. Check the spelling of the specified +// repository and ensure that you are performing operations on the correct registry. +// func (c *ECR) SetRepositoryPolicy(input *SetRepositoryPolicyInput) (*SetRepositoryPolicyOutput, error) { req, out := c.SetRepositoryPolicyRequest(input) err := req.Send() @@ -772,6 +1184,8 @@ const opUploadLayerPart = "UploadLayerPart" // value can be used to capture response data after the request's "Send" method // is called. // +// See UploadLayerPart for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -806,10 +1220,46 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon EC2 Container Registry's +// API operation UploadLayerPart for usage and error information. +// +// Returned Error Codes: +// * ServerException +// These errors are usually caused by a server-side issue. +// +// * InvalidParameterException +// The specified parameter is invalid. Review the available parameters for the +// API request. +// +// * InvalidLayerPartException +// The layer part size is not valid, or the first byte specified is not consecutive +// to the last byte of a previous layer part upload. +// +// * RepositoryNotFoundException +// The specified repository could not be found. Check the spelling of the specified +// repository and ensure that you are performing operations on the correct registry. +// +// * UploadNotFoundException +// The upload could not be found, or the specified upload id is not valid for +// this repository. +// +// * LimitExceededException +// The operation did not succeed because it would have exceeded a service limit +// for your account. For more information, see Amazon ECR Default Service Limits +// (http://docs.aws.amazon.com/AmazonECR/latest/userguide/service_limits.html) +// in the Amazon EC2 Container Registry User Guide. +// 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..f05c92c728f 100644 --- a/service/ecs/api.go +++ b/service/ecs/api.go @@ -18,6 +18,8 @@ const opCreateCluster = "CreateCluster" // value can be used to capture response data after the request's "Send" method // is called. // +// See CreateCluster for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -52,9 +54,32 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon EC2 Container Service's +// API operation CreateCluster for usage and error information. +// +// Returned Error Codes: +// * ServerException +// These errors are usually caused by a server issue. +// +// * ClientException +// These errors are usually caused by a client action, such as using an action +// or resource on behalf of a user that doesn't have permission to use the action +// or resource, or specifying an identifier that is not valid. +// +// * InvalidParameterException +// The specified parameter is invalid. Review the available parameters for the +// API request. +// func (c *ECS) CreateCluster(input *CreateClusterInput) (*CreateClusterOutput, error) { req, out := c.CreateClusterRequest(input) err := req.Send() @@ -68,6 +93,8 @@ const opCreateService = "CreateService" // value can be used to capture response data after the request's "Send" method // is called. // +// See CreateService for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -102,6 +129,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 +182,31 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon EC2 Container Service's +// API operation CreateService for usage and error information. +// +// Returned Error Codes: +// * ServerException +// These errors are usually caused by a server issue. +// +// * ClientException +// These errors are usually caused by a client action, such as using an action +// or resource on behalf of a user that doesn't have permission to use the action +// or resource, or specifying an identifier that is not valid. +// +// * InvalidParameterException +// The specified parameter is invalid. Review the available parameters for the +// API request. +// +// * ClusterNotFoundException +// The specified cluster could not be found. You can view your available clusters +// with ListClusters. Amazon ECS clusters are region-specific. +// func (c *ECS) CreateService(input *CreateServiceInput) (*CreateServiceOutput, error) { req, out := c.CreateServiceRequest(input) err := req.Send() @@ -166,6 +220,8 @@ const opDeleteCluster = "DeleteCluster" // value can be used to capture response data after the request's "Send" method // is called. // +// See DeleteCluster for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -200,9 +256,46 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon EC2 Container Service's +// API operation DeleteCluster for usage and error information. +// +// Returned Error Codes: +// * ServerException +// These errors are usually caused by a server issue. +// +// * ClientException +// These errors are usually caused by a client action, such as using an action +// or resource on behalf of a user that doesn't have permission to use the action +// or resource, or specifying an identifier that is not valid. +// +// * InvalidParameterException +// The specified parameter is invalid. Review the available parameters for the +// API request. +// +// * ClusterNotFoundException +// The specified cluster could not be found. You can view your available clusters +// with ListClusters. Amazon ECS clusters are region-specific. +// +// * ClusterContainsContainerInstancesException +// You cannot delete a cluster that has registered container instances. You +// must first deregister the container instances before you can delete the cluster. +// For more information, see DeregisterContainerInstance. +// +// * ClusterContainsServicesException +// You cannot delete a cluster that contains services. You must first update +// the service to reduce its desired task count to 0 and then delete the service. +// For more information, see UpdateService and DeleteService. +// func (c *ECS) DeleteCluster(input *DeleteClusterInput) (*DeleteClusterOutput, error) { req, out := c.DeleteClusterRequest(input) err := req.Send() @@ -216,6 +309,8 @@ const opDeleteService = "DeleteService" // value can be used to capture response data after the request's "Send" method // is called. // +// See DeleteService for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -250,6 +345,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 +361,35 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon EC2 Container Service's +// API operation DeleteService for usage and error information. +// +// Returned Error Codes: +// * ServerException +// These errors are usually caused by a server issue. +// +// * ClientException +// These errors are usually caused by a client action, such as using an action +// or resource on behalf of a user that doesn't have permission to use the action +// or resource, or specifying an identifier that is not valid. +// +// * InvalidParameterException +// The specified parameter is invalid. Review the available parameters for the +// API request. +// +// * ClusterNotFoundException +// The specified cluster could not be found. You can view your available clusters +// with ListClusters. Amazon ECS clusters are region-specific. +// +// * ServiceNotFoundException +// The specified service could not be found. You can view your available services +// with ListServices. Amazon ECS services are cluster-specific and region-specific. +// func (c *ECS) DeleteService(input *DeleteServiceInput) (*DeleteServiceOutput, error) { req, out := c.DeleteServiceRequest(input) err := req.Send() @@ -277,6 +403,8 @@ const opDeregisterContainerInstance = "DeregisterContainerInstance" // value can be used to capture response data after the request's "Send" method // is called. // +// See DeregisterContainerInstance for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -311,6 +439,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 +457,31 @@ 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). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon EC2 Container Service's +// API operation DeregisterContainerInstance for usage and error information. +// +// Returned Error Codes: +// * ServerException +// These errors are usually caused by a server issue. +// +// * ClientException +// These errors are usually caused by a client action, such as using an action +// or resource on behalf of a user that doesn't have permission to use the action +// or resource, or specifying an identifier that is not valid. +// +// * InvalidParameterException +// The specified parameter is invalid. Review the available parameters for the +// API request. +// +// * ClusterNotFoundException +// The specified cluster could not be found. You can view your available clusters +// with ListClusters. Amazon ECS clusters are region-specific. +// func (c *ECS) DeregisterContainerInstance(input *DeregisterContainerInstanceInput) (*DeregisterContainerInstanceOutput, error) { req, out := c.DeregisterContainerInstanceRequest(input) err := req.Send() @@ -340,6 +495,8 @@ const opDeregisterTaskDefinition = "DeregisterTaskDefinition" // value can be used to capture response data after the request's "Send" method // is called. // +// See DeregisterTaskDefinition for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -374,6 +531,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 +543,27 @@ 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). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon EC2 Container Service's +// API operation DeregisterTaskDefinition for usage and error information. +// +// Returned Error Codes: +// * ServerException +// These errors are usually caused by a server issue. +// +// * ClientException +// These errors are usually caused by a client action, such as using an action +// or resource on behalf of a user that doesn't have permission to use the action +// or resource, or specifying an identifier that is not valid. +// +// * InvalidParameterException +// The specified parameter is invalid. Review the available parameters for the +// API request. +// func (c *ECS) DeregisterTaskDefinition(input *DeregisterTaskDefinitionInput) (*DeregisterTaskDefinitionOutput, error) { req, out := c.DeregisterTaskDefinitionRequest(input) err := req.Send() @@ -397,6 +577,8 @@ const opDescribeClusters = "DescribeClusters" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeClusters for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -431,7 +613,30 @@ func (c *ECS) DescribeClustersRequest(input *DescribeClustersInput) (req *reques return } +// DescribeClusters API operation for Amazon EC2 Container Service. +// // Describes one or more of your clusters. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon EC2 Container Service's +// API operation DescribeClusters for usage and error information. +// +// Returned Error Codes: +// * ServerException +// These errors are usually caused by a server issue. +// +// * ClientException +// These errors are usually caused by a client action, such as using an action +// or resource on behalf of a user that doesn't have permission to use the action +// or resource, or specifying an identifier that is not valid. +// +// * InvalidParameterException +// The specified parameter is invalid. Review the available parameters for the +// API request. +// func (c *ECS) DescribeClusters(input *DescribeClustersInput) (*DescribeClustersOutput, error) { req, out := c.DescribeClustersRequest(input) err := req.Send() @@ -445,6 +650,8 @@ const opDescribeContainerInstances = "DescribeContainerInstances" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeContainerInstances for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -479,8 +686,35 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon EC2 Container Service's +// API operation DescribeContainerInstances for usage and error information. +// +// Returned Error Codes: +// * ServerException +// These errors are usually caused by a server issue. +// +// * ClientException +// These errors are usually caused by a client action, such as using an action +// or resource on behalf of a user that doesn't have permission to use the action +// or resource, or specifying an identifier that is not valid. +// +// * InvalidParameterException +// The specified parameter is invalid. Review the available parameters for the +// API request. +// +// * ClusterNotFoundException +// The specified cluster could not be found. You can view your available clusters +// with ListClusters. Amazon ECS clusters are region-specific. +// func (c *ECS) DescribeContainerInstances(input *DescribeContainerInstancesInput) (*DescribeContainerInstancesOutput, error) { req, out := c.DescribeContainerInstancesRequest(input) err := req.Send() @@ -494,6 +728,8 @@ const opDescribeServices = "DescribeServices" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeServices for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -528,7 +764,34 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon EC2 Container Service's +// API operation DescribeServices for usage and error information. +// +// Returned Error Codes: +// * ServerException +// These errors are usually caused by a server issue. +// +// * ClientException +// These errors are usually caused by a client action, such as using an action +// or resource on behalf of a user that doesn't have permission to use the action +// or resource, or specifying an identifier that is not valid. +// +// * InvalidParameterException +// The specified parameter is invalid. Review the available parameters for the +// API request. +// +// * ClusterNotFoundException +// The specified cluster could not be found. You can view your available clusters +// with ListClusters. Amazon ECS clusters are region-specific. +// func (c *ECS) DescribeServices(input *DescribeServicesInput) (*DescribeServicesOutput, error) { req, out := c.DescribeServicesRequest(input) err := req.Send() @@ -542,6 +805,8 @@ const opDescribeTaskDefinition = "DescribeTaskDefinition" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeTaskDefinition for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -576,12 +841,35 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon EC2 Container Service's +// API operation DescribeTaskDefinition for usage and error information. +// +// Returned Error Codes: +// * ServerException +// These errors are usually caused by a server issue. +// +// * ClientException +// These errors are usually caused by a client action, such as using an action +// or resource on behalf of a user that doesn't have permission to use the action +// or resource, or specifying an identifier that is not valid. +// +// * InvalidParameterException +// The specified parameter is invalid. Review the available parameters for the +// API request. +// func (c *ECS) DescribeTaskDefinition(input *DescribeTaskDefinitionInput) (*DescribeTaskDefinitionOutput, error) { req, out := c.DescribeTaskDefinitionRequest(input) err := req.Send() @@ -595,6 +883,8 @@ const opDescribeTasks = "DescribeTasks" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeTasks for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -629,7 +919,34 @@ func (c *ECS) DescribeTasksRequest(input *DescribeTasksInput) (req *request.Requ return } +// DescribeTasks API operation for Amazon EC2 Container Service. +// // Describes a specified task or tasks. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon EC2 Container Service's +// API operation DescribeTasks for usage and error information. +// +// Returned Error Codes: +// * ServerException +// These errors are usually caused by a server issue. +// +// * ClientException +// These errors are usually caused by a client action, such as using an action +// or resource on behalf of a user that doesn't have permission to use the action +// or resource, or specifying an identifier that is not valid. +// +// * InvalidParameterException +// The specified parameter is invalid. Review the available parameters for the +// API request. +// +// * ClusterNotFoundException +// The specified cluster could not be found. You can view your available clusters +// with ListClusters. Amazon ECS clusters are region-specific. +// func (c *ECS) DescribeTasks(input *DescribeTasksInput) (*DescribeTasksOutput, error) { req, out := c.DescribeTasksRequest(input) err := req.Send() @@ -643,6 +960,8 @@ const opDiscoverPollEndpoint = "DiscoverPollEndpoint" // value can be used to capture response data after the request's "Send" method // is called. // +// See DiscoverPollEndpoint for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -677,11 +996,30 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon EC2 Container Service's +// API operation DiscoverPollEndpoint for usage and error information. +// +// Returned Error Codes: +// * ServerException +// These errors are usually caused by a server issue. +// +// * ClientException +// These errors are usually caused by a client action, such as using an action +// or resource on behalf of a user that doesn't have permission to use the action +// or resource, or specifying an identifier that is not valid. +// func (c *ECS) DiscoverPollEndpoint(input *DiscoverPollEndpointInput) (*DiscoverPollEndpointOutput, error) { req, out := c.DiscoverPollEndpointRequest(input) err := req.Send() @@ -695,6 +1033,8 @@ const opListClusters = "ListClusters" // value can be used to capture response data after the request's "Send" method // is called. // +// See ListClusters for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -735,7 +1075,30 @@ func (c *ECS) ListClustersRequest(input *ListClustersInput) (req *request.Reques return } +// ListClusters API operation for Amazon EC2 Container Service. +// // Returns a list of existing clusters. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon EC2 Container Service's +// API operation ListClusters for usage and error information. +// +// Returned Error Codes: +// * ServerException +// These errors are usually caused by a server issue. +// +// * ClientException +// These errors are usually caused by a client action, such as using an action +// or resource on behalf of a user that doesn't have permission to use the action +// or resource, or specifying an identifier that is not valid. +// +// * InvalidParameterException +// The specified parameter is invalid. Review the available parameters for the +// API request. +// func (c *ECS) ListClusters(input *ListClustersInput) (*ListClustersOutput, error) { req, out := c.ListClustersRequest(input) err := req.Send() @@ -774,6 +1137,8 @@ const opListContainerInstances = "ListContainerInstances" // value can be used to capture response data after the request's "Send" method // is called. // +// See ListContainerInstances for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -814,7 +1179,34 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon EC2 Container Service's +// API operation ListContainerInstances for usage and error information. +// +// Returned Error Codes: +// * ServerException +// These errors are usually caused by a server issue. +// +// * ClientException +// These errors are usually caused by a client action, such as using an action +// or resource on behalf of a user that doesn't have permission to use the action +// or resource, or specifying an identifier that is not valid. +// +// * InvalidParameterException +// The specified parameter is invalid. Review the available parameters for the +// API request. +// +// * ClusterNotFoundException +// The specified cluster could not be found. You can view your available clusters +// with ListClusters. Amazon ECS clusters are region-specific. +// func (c *ECS) ListContainerInstances(input *ListContainerInstancesInput) (*ListContainerInstancesOutput, error) { req, out := c.ListContainerInstancesRequest(input) err := req.Send() @@ -853,6 +1245,8 @@ const opListServices = "ListServices" // value can be used to capture response data after the request's "Send" method // is called. // +// See ListServices for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -893,7 +1287,34 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon EC2 Container Service's +// API operation ListServices for usage and error information. +// +// Returned Error Codes: +// * ServerException +// These errors are usually caused by a server issue. +// +// * ClientException +// These errors are usually caused by a client action, such as using an action +// or resource on behalf of a user that doesn't have permission to use the action +// or resource, or specifying an identifier that is not valid. +// +// * InvalidParameterException +// The specified parameter is invalid. Review the available parameters for the +// API request. +// +// * ClusterNotFoundException +// The specified cluster could not be found. You can view your available clusters +// with ListClusters. Amazon ECS clusters are region-specific. +// func (c *ECS) ListServices(input *ListServicesInput) (*ListServicesOutput, error) { req, out := c.ListServicesRequest(input) err := req.Send() @@ -932,6 +1353,8 @@ const opListTaskDefinitionFamilies = "ListTaskDefinitionFamilies" // value can be used to capture response data after the request's "Send" method // is called. // +// See ListTaskDefinitionFamilies for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -972,6 +1395,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 +1404,27 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon EC2 Container Service's +// API operation ListTaskDefinitionFamilies for usage and error information. +// +// Returned Error Codes: +// * ServerException +// These errors are usually caused by a server issue. +// +// * ClientException +// These errors are usually caused by a client action, such as using an action +// or resource on behalf of a user that doesn't have permission to use the action +// or resource, or specifying an identifier that is not valid. +// +// * InvalidParameterException +// The specified parameter is invalid. Review the available parameters for the +// API request. +// func (c *ECS) ListTaskDefinitionFamilies(input *ListTaskDefinitionFamiliesInput) (*ListTaskDefinitionFamiliesOutput, error) { req, out := c.ListTaskDefinitionFamiliesRequest(input) err := req.Send() @@ -1017,6 +1463,8 @@ const opListTaskDefinitions = "ListTaskDefinitions" // value can be used to capture response data after the request's "Send" method // is called. // +// See ListTaskDefinitions for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1057,9 +1505,32 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon EC2 Container Service's +// API operation ListTaskDefinitions for usage and error information. +// +// Returned Error Codes: +// * ServerException +// These errors are usually caused by a server issue. +// +// * ClientException +// These errors are usually caused by a client action, such as using an action +// or resource on behalf of a user that doesn't have permission to use the action +// or resource, or specifying an identifier that is not valid. +// +// * InvalidParameterException +// The specified parameter is invalid. Review the available parameters for the +// API request. +// func (c *ECS) ListTaskDefinitions(input *ListTaskDefinitionsInput) (*ListTaskDefinitionsOutput, error) { req, out := c.ListTaskDefinitionsRequest(input) err := req.Send() @@ -1098,6 +1569,8 @@ const opListTasks = "ListTasks" // value can be used to capture response data after the request's "Send" method // is called. // +// See ListTasks for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1138,12 +1611,43 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon EC2 Container Service's +// API operation ListTasks for usage and error information. +// +// Returned Error Codes: +// * ServerException +// These errors are usually caused by a server issue. +// +// * ClientException +// These errors are usually caused by a client action, such as using an action +// or resource on behalf of a user that doesn't have permission to use the action +// or resource, or specifying an identifier that is not valid. +// +// * InvalidParameterException +// The specified parameter is invalid. Review the available parameters for the +// API request. +// +// * ClusterNotFoundException +// The specified cluster could not be found. You can view your available clusters +// with ListClusters. Amazon ECS clusters are region-specific. +// +// * ServiceNotFoundException +// The specified service could not be found. You can view your available services +// with ListServices. Amazon ECS services are cluster-specific and region-specific. +// func (c *ECS) ListTasks(input *ListTasksInput) (*ListTasksOutput, error) { req, out := c.ListTasksRequest(input) err := req.Send() @@ -1182,6 +1686,8 @@ const opRegisterContainerInstance = "RegisterContainerInstance" // value can be used to capture response data after the request's "Send" method // is called. // +// See RegisterContainerInstance for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1216,11 +1722,30 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon EC2 Container Service's +// API operation RegisterContainerInstance for usage and error information. +// +// Returned Error Codes: +// * ServerException +// These errors are usually caused by a server issue. +// +// * ClientException +// These errors are usually caused by a client action, such as using an action +// or resource on behalf of a user that doesn't have permission to use the action +// or resource, or specifying an identifier that is not valid. +// func (c *ECS) RegisterContainerInstance(input *RegisterContainerInstanceInput) (*RegisterContainerInstanceOutput, error) { req, out := c.RegisterContainerInstanceRequest(input) err := req.Send() @@ -1234,6 +1759,8 @@ const opRegisterTaskDefinition = "RegisterTaskDefinition" // value can be used to capture response data after the request's "Send" method // is called. // +// See RegisterTaskDefinition for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1268,6 +1795,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 +1814,27 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon EC2 Container Service's +// API operation RegisterTaskDefinition for usage and error information. +// +// Returned Error Codes: +// * ServerException +// These errors are usually caused by a server issue. +// +// * ClientException +// These errors are usually caused by a client action, such as using an action +// or resource on behalf of a user that doesn't have permission to use the action +// or resource, or specifying an identifier that is not valid. +// +// * InvalidParameterException +// The specified parameter is invalid. Review the available parameters for the +// API request. +// func (c *ECS) RegisterTaskDefinition(input *RegisterTaskDefinitionInput) (*RegisterTaskDefinitionOutput, error) { req, out := c.RegisterTaskDefinitionRequest(input) err := req.Send() @@ -1298,6 +1848,8 @@ const opRunTask = "RunTask" // value can be used to capture response data after the request's "Send" method // is called. // +// See RunTask for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1332,11 +1884,38 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon EC2 Container Service's +// API operation RunTask for usage and error information. +// +// Returned Error Codes: +// * ServerException +// These errors are usually caused by a server issue. +// +// * ClientException +// These errors are usually caused by a client action, such as using an action +// or resource on behalf of a user that doesn't have permission to use the action +// or resource, or specifying an identifier that is not valid. +// +// * InvalidParameterException +// The specified parameter is invalid. Review the available parameters for the +// API request. +// +// * ClusterNotFoundException +// The specified cluster could not be found. You can view your available clusters +// with ListClusters. Amazon ECS clusters are region-specific. +// func (c *ECS) RunTask(input *RunTaskInput) (*RunTaskOutput, error) { req, out := c.RunTaskRequest(input) err := req.Send() @@ -1350,6 +1929,8 @@ const opStartTask = "StartTask" // value can be used to capture response data after the request's "Send" method // is called. // +// See StartTask for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1384,11 +1965,38 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon EC2 Container Service's +// API operation StartTask for usage and error information. +// +// Returned Error Codes: +// * ServerException +// These errors are usually caused by a server issue. +// +// * ClientException +// These errors are usually caused by a client action, such as using an action +// or resource on behalf of a user that doesn't have permission to use the action +// or resource, or specifying an identifier that is not valid. +// +// * InvalidParameterException +// The specified parameter is invalid. Review the available parameters for the +// API request. +// +// * ClusterNotFoundException +// The specified cluster could not be found. You can view your available clusters +// with ListClusters. Amazon ECS clusters are region-specific. +// func (c *ECS) StartTask(input *StartTaskInput) (*StartTaskOutput, error) { req, out := c.StartTaskRequest(input) err := req.Send() @@ -1402,6 +2010,8 @@ const opStopTask = "StopTask" // value can be used to capture response data after the request's "Send" method // is called. // +// See StopTask for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1436,6 +2046,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 +2055,31 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon EC2 Container Service's +// API operation StopTask for usage and error information. +// +// Returned Error Codes: +// * ServerException +// These errors are usually caused by a server issue. +// +// * ClientException +// These errors are usually caused by a client action, such as using an action +// or resource on behalf of a user that doesn't have permission to use the action +// or resource, or specifying an identifier that is not valid. +// +// * InvalidParameterException +// The specified parameter is invalid. Review the available parameters for the +// API request. +// +// * ClusterNotFoundException +// The specified cluster could not be found. You can view your available clusters +// with ListClusters. Amazon ECS clusters are region-specific. +// func (c *ECS) StopTask(input *StopTaskInput) (*StopTaskOutput, error) { req, out := c.StopTaskRequest(input) err := req.Send() @@ -1456,6 +2093,8 @@ const opSubmitContainerStateChange = "SubmitContainerStateChange" // value can be used to capture response data after the request's "Send" method // is called. // +// See SubmitContainerStateChange for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1490,10 +2129,29 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon EC2 Container Service's +// API operation SubmitContainerStateChange for usage and error information. +// +// Returned Error Codes: +// * ServerException +// These errors are usually caused by a server issue. +// +// * ClientException +// These errors are usually caused by a client action, such as using an action +// or resource on behalf of a user that doesn't have permission to use the action +// or resource, or specifying an identifier that is not valid. +// func (c *ECS) SubmitContainerStateChange(input *SubmitContainerStateChangeInput) (*SubmitContainerStateChangeOutput, error) { req, out := c.SubmitContainerStateChangeRequest(input) err := req.Send() @@ -1507,6 +2165,8 @@ const opSubmitTaskStateChange = "SubmitTaskStateChange" // value can be used to capture response data after the request's "Send" method // is called. // +// See SubmitTaskStateChange for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1541,10 +2201,29 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon EC2 Container Service's +// API operation SubmitTaskStateChange for usage and error information. +// +// Returned Error Codes: +// * ServerException +// These errors are usually caused by a server issue. +// +// * ClientException +// These errors are usually caused by a client action, such as using an action +// or resource on behalf of a user that doesn't have permission to use the action +// or resource, or specifying an identifier that is not valid. +// func (c *ECS) SubmitTaskStateChange(input *SubmitTaskStateChangeInput) (*SubmitTaskStateChangeOutput, error) { req, out := c.SubmitTaskStateChangeRequest(input) err := req.Send() @@ -1558,6 +2237,8 @@ const opUpdateContainerAgent = "UpdateContainerAgent" // value can be used to capture response data after the request's "Send" method // is called. // +// See UpdateContainerAgent for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1592,6 +2273,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 +2286,49 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon EC2 Container Service's +// API operation UpdateContainerAgent for usage and error information. +// +// Returned Error Codes: +// * ServerException +// These errors are usually caused by a server issue. +// +// * ClientException +// These errors are usually caused by a client action, such as using an action +// or resource on behalf of a user that doesn't have permission to use the action +// or resource, or specifying an identifier that is not valid. +// +// * InvalidParameterException +// The specified parameter is invalid. Review the available parameters for the +// API request. +// +// * ClusterNotFoundException +// The specified cluster could not be found. You can view your available clusters +// with ListClusters. Amazon ECS clusters are region-specific. +// +// * UpdateInProgressException +// There is already a current Amazon ECS container agent update in progress +// on the specified container instance. If the container agent becomes disconnected +// while it is in a transitional stage, such as PENDING or STAGING, the update +// process can get stuck in that state. However, when the agent reconnects, +// it resumes where it stopped previously. +// +// * NoUpdateAvailableException +// There is no update available for this Amazon ECS container agent. This could +// be because the agent is already running the latest version, or it is so old +// that there is no update path to the current version. +// +// * MissingVersionException +// Amazon ECS is unable to determine the current version of the Amazon ECS container +// agent on the container instance and does not have enough information to proceed +// with an update. This could be because the agent running on the container +// instance is an older or custom version that does not use our version information. +// func (c *ECS) UpdateContainerAgent(input *UpdateContainerAgentInput) (*UpdateContainerAgentOutput, error) { req, out := c.UpdateContainerAgentRequest(input) err := req.Send() @@ -1616,6 +2342,8 @@ const opUpdateService = "UpdateService" // value can be used to capture response data after the request's "Send" method // is called. // +// See UpdateService for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1650,6 +2378,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 +2433,40 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon EC2 Container Service's +// API operation UpdateService for usage and error information. +// +// Returned Error Codes: +// * ServerException +// These errors are usually caused by a server issue. +// +// * ClientException +// These errors are usually caused by a client action, such as using an action +// or resource on behalf of a user that doesn't have permission to use the action +// or resource, or specifying an identifier that is not valid. +// +// * InvalidParameterException +// The specified parameter is invalid. Review the available parameters for the +// API request. +// +// * ClusterNotFoundException +// The specified cluster could not be found. You can view your available clusters +// with ListClusters. Amazon ECS clusters are region-specific. +// +// * ServiceNotFoundException +// The specified service could not be found. You can view your available services +// with ListServices. Amazon ECS services are cluster-specific and region-specific. +// +// * ServiceNotActiveException +// The specified service is not active. You cannot update a service that is +// not active. If you have previously deleted a service, you can re-create it +// with CreateService. +// 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..f05c8fb2cae 100644 --- a/service/efs/api.go +++ b/service/efs/api.go @@ -20,6 +20,8 @@ const opCreateFileSystem = "CreateFileSystem" // value can be used to capture response data after the request's "Send" method // is called. // +// See CreateFileSystem for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -54,6 +56,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 +104,30 @@ func (c *EFS) CreateFileSystemRequest(input *CreateFileSystemInput) (req *reques // // This operation requires permissions for the elasticfilesystem:CreateFileSystem // action. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic File System's +// API operation CreateFileSystem for usage and error information. +// +// Returned Error Codes: +// * BadRequest +// Returned if the request is malformed or contains an error such as an invalid +// parameter value or a missing required parameter. +// +// * InternalServerError +// Returned if an error occurred on the server side. +// +// * FileSystemAlreadyExists +// Returned if the file system you are trying to create already exists, with +// the creation token you provided. +// +// * FileSystemLimitExceeded +// Returned if the AWS account has already created maximum number of file systems +// allowed per account. +// func (c *EFS) CreateFileSystem(input *CreateFileSystemInput) (*FileSystemDescription, error) { req, out := c.CreateFileSystemRequest(input) err := req.Send() @@ -113,6 +141,8 @@ const opCreateMountTarget = "CreateMountTarget" // value can be used to capture response data after the request's "Send" method // is called. // +// See CreateMountTarget for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -147,6 +177,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 +275,62 @@ func (c *EFS) CreateMountTargetRequest(input *CreateMountTargetInput) (req *requ // ec2:DescribeNetworkInterfaces // // ec2:CreateNetworkInterface +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic File System's +// API operation CreateMountTarget for usage and error information. +// +// Returned Error Codes: +// * BadRequest +// Returned if the request is malformed or contains an error such as an invalid +// parameter value or a missing required parameter. +// +// * InternalServerError +// Returned if an error occurred on the server side. +// +// * FileSystemNotFound +// Returned if the specified FileSystemId does not exist in the requester's +// AWS account. +// +// * IncorrectFileSystemLifeCycleState +// Returned if the file system's life cycle state is not "created". +// +// * MountTargetConflict +// Returned if the mount target would violate one of the specified restrictions +// based on the file system's existing mount targets. +// +// * SubnetNotFound +// Returned if there is no subnet with ID SubnetId provided in the request. +// +// * NoFreeAddressesInSubnet +// Returned if IpAddress was not specified in the request and there are no free +// IP addresses in the subnet. +// +// * IpAddressInUse +// Returned if the request specified an IpAddress that is already in use in +// the subnet. +// +// * NetworkInterfaceLimitExceeded +// The calling account has reached the ENI limit for the specific AWS region. +// Client should try to delete some ENIs or get its account limit raised. For +// more information, see Amazon VPC Limits (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_Appendix_Limits.html) +// in the Amazon Virtual Private Cloud User Guide (see the Network interfaces +// per VPC entry in the table). +// +// * SecurityGroupLimitExceeded +// Returned if the size of SecurityGroups specified in the request is greater +// than five. +// +// * SecurityGroupNotFound +// Returned if one of the specified security groups does not exist in the subnet's +// VPC. +// +// * UnsupportedAvailabilityZone + +// func (c *EFS) CreateMountTarget(input *CreateMountTargetInput) (*MountTargetDescription, error) { req, out := c.CreateMountTargetRequest(input) err := req.Send() @@ -256,6 +344,8 @@ const opCreateTags = "CreateTags" // value can be used to capture response data after the request's "Send" method // is called. // +// See CreateTags for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -292,6 +382,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 +392,26 @@ func (c *EFS) CreateTagsRequest(input *CreateTagsInput) (req *request.Request, o // // This operation requires permission for the elasticfilesystem:CreateTags // action. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic File System's +// API operation CreateTags for usage and error information. +// +// Returned Error Codes: +// * BadRequest +// Returned if the request is malformed or contains an error such as an invalid +// parameter value or a missing required parameter. +// +// * InternalServerError +// Returned if an error occurred on the server side. +// +// * FileSystemNotFound +// Returned if the specified FileSystemId does not exist in the requester's +// AWS account. +// func (c *EFS) CreateTags(input *CreateTagsInput) (*CreateTagsOutput, error) { req, out := c.CreateTagsRequest(input) err := req.Send() @@ -313,6 +425,8 @@ const opDeleteFileSystem = "DeleteFileSystem" // value can be used to capture response data after the request's "Send" method // is called. // +// See DeleteFileSystem for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -349,6 +463,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 +481,29 @@ func (c *EFS) DeleteFileSystemRequest(input *DeleteFileSystemInput) (req *reques // // This operation requires permissions for the elasticfilesystem:DeleteFileSystem // action. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic File System's +// API operation DeleteFileSystem for usage and error information. +// +// Returned Error Codes: +// * BadRequest +// Returned if the request is malformed or contains an error such as an invalid +// parameter value or a missing required parameter. +// +// * InternalServerError +// Returned if an error occurred on the server side. +// +// * FileSystemNotFound +// Returned if the specified FileSystemId does not exist in the requester's +// AWS account. +// +// * FileSystemInUse +// Returned if a file system has mount targets. +// func (c *EFS) DeleteFileSystem(input *DeleteFileSystemInput) (*DeleteFileSystemOutput, error) { req, out := c.DeleteFileSystemRequest(input) err := req.Send() @@ -378,6 +517,8 @@ const opDeleteMountTarget = "DeleteMountTarget" // value can be used to capture response data after the request's "Send" method // is called. // +// See DeleteMountTarget for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -414,6 +555,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 +582,30 @@ func (c *EFS) DeleteMountTargetRequest(input *DeleteMountTargetInput) (req *requ // on the mount target's network interface: // // ec2:DeleteNetworkInterface +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic File System's +// API operation DeleteMountTarget for usage and error information. +// +// Returned Error Codes: +// * BadRequest +// Returned if the request is malformed or contains an error such as an invalid +// parameter value or a missing required parameter. +// +// * InternalServerError +// Returned if an error occurred on the server side. +// +// * DependencyTimeout +// The service timed out trying to fulfill the request, and the client should +// try the call again. +// +// * MountTargetNotFound +// Returned if there is no mount target with the specified ID found in the caller's +// account. +// func (c *EFS) DeleteMountTarget(input *DeleteMountTargetInput) (*DeleteMountTargetOutput, error) { req, out := c.DeleteMountTargetRequest(input) err := req.Send() @@ -452,6 +619,8 @@ const opDeleteTags = "DeleteTags" // value can be used to capture response data after the request's "Send" method // is called. // +// See DeleteTags for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -488,6 +657,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 +667,26 @@ func (c *EFS) DeleteTagsRequest(input *DeleteTagsInput) (req *request.Request, o // // This operation requires permissions for the elasticfilesystem:DeleteTags // action. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic File System's +// API operation DeleteTags for usage and error information. +// +// Returned Error Codes: +// * BadRequest +// Returned if the request is malformed or contains an error such as an invalid +// parameter value or a missing required parameter. +// +// * InternalServerError +// Returned if an error occurred on the server side. +// +// * FileSystemNotFound +// Returned if the specified FileSystemId does not exist in the requester's +// AWS account. +// func (c *EFS) DeleteTags(input *DeleteTagsInput) (*DeleteTagsOutput, error) { req, out := c.DeleteTagsRequest(input) err := req.Send() @@ -509,6 +700,8 @@ const opDescribeFileSystems = "DescribeFileSystems" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeFileSystems for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -543,6 +736,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 +764,26 @@ func (c *EFS) DescribeFileSystemsRequest(input *DescribeFileSystemsInput) (req * // // This operation requires permissions for the elasticfilesystem:DescribeFileSystems // action. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic File System's +// API operation DescribeFileSystems for usage and error information. +// +// Returned Error Codes: +// * BadRequest +// Returned if the request is malformed or contains an error such as an invalid +// parameter value or a missing required parameter. +// +// * InternalServerError +// Returned if an error occurred on the server side. +// +// * FileSystemNotFound +// Returned if the specified FileSystemId does not exist in the requester's +// AWS account. +// func (c *EFS) DescribeFileSystems(input *DescribeFileSystemsInput) (*DescribeFileSystemsOutput, error) { req, out := c.DescribeFileSystemsRequest(input) err := req.Send() @@ -582,6 +797,8 @@ const opDescribeMountTargetSecurityGroups = "DescribeMountTargetSecurityGroups" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeMountTargetSecurityGroups for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -616,6 +833,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 +846,29 @@ func (c *EFS) DescribeMountTargetSecurityGroupsRequest(input *DescribeMountTarge // // ec2:DescribeNetworkInterfaceAttribute action on the mount target's network // interface. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic File System's +// API operation DescribeMountTargetSecurityGroups for usage and error information. +// +// Returned Error Codes: +// * BadRequest +// Returned if the request is malformed or contains an error such as an invalid +// parameter value or a missing required parameter. +// +// * InternalServerError +// Returned if an error occurred on the server side. +// +// * MountTargetNotFound +// Returned if there is no mount target with the specified ID found in the caller's +// account. +// +// * IncorrectMountTargetState +// Returned if the mount target is not in the correct state for the operation. +// func (c *EFS) DescribeMountTargetSecurityGroups(input *DescribeMountTargetSecurityGroupsInput) (*DescribeMountTargetSecurityGroupsOutput, error) { req, out := c.DescribeMountTargetSecurityGroupsRequest(input) err := req.Send() @@ -640,6 +882,8 @@ const opDescribeMountTargets = "DescribeMountTargets" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeMountTargets for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -674,6 +918,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 +927,30 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic File System's +// API operation DescribeMountTargets for usage and error information. +// +// Returned Error Codes: +// * BadRequest +// Returned if the request is malformed or contains an error such as an invalid +// parameter value or a missing required parameter. +// +// * InternalServerError +// Returned if an error occurred on the server side. +// +// * FileSystemNotFound +// Returned if the specified FileSystemId does not exist in the requester's +// AWS account. +// +// * MountTargetNotFound +// Returned if there is no mount target with the specified ID found in the caller's +// account. +// func (c *EFS) DescribeMountTargets(input *DescribeMountTargetsInput) (*DescribeMountTargetsOutput, error) { req, out := c.DescribeMountTargetsRequest(input) err := req.Send() @@ -694,6 +964,8 @@ const opDescribeTags = "DescribeTags" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeTags for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -728,12 +1000,34 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic File System's +// API operation DescribeTags for usage and error information. +// +// Returned Error Codes: +// * BadRequest +// Returned if the request is malformed or contains an error such as an invalid +// parameter value or a missing required parameter. +// +// * InternalServerError +// Returned if an error occurred on the server side. +// +// * FileSystemNotFound +// Returned if the specified FileSystemId does not exist in the requester's +// AWS account. +// func (c *EFS) DescribeTags(input *DescribeTagsInput) (*DescribeTagsOutput, error) { req, out := c.DescribeTagsRequest(input) err := req.Send() @@ -747,6 +1041,8 @@ const opModifyMountTargetSecurityGroups = "ModifyMountTargetSecurityGroups" // value can be used to capture response data after the request's "Send" method // is called. // +// See ModifyMountTargetSecurityGroups for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -783,6 +1079,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 +1097,37 @@ func (c *EFS) ModifyMountTargetSecurityGroupsRequest(input *ModifyMountTargetSec // // ec2:ModifyNetworkInterfaceAttribute action on the mount target's network // interface. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic File System's +// API operation ModifyMountTargetSecurityGroups for usage and error information. +// +// Returned Error Codes: +// * BadRequest +// Returned if the request is malformed or contains an error such as an invalid +// parameter value or a missing required parameter. +// +// * InternalServerError +// Returned if an error occurred on the server side. +// +// * MountTargetNotFound +// Returned if there is no mount target with the specified ID found in the caller's +// account. +// +// * IncorrectMountTargetState +// Returned if the mount target is not in the correct state for the operation. +// +// * SecurityGroupLimitExceeded +// Returned if the size of SecurityGroups specified in the request is greater +// than five. +// +// * SecurityGroupNotFound +// Returned if one of the specified security groups does not exist in the subnet's +// VPC. +// 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..8c0ba7741b9 100644 --- a/service/elasticache/api.go +++ b/service/elasticache/api.go @@ -19,6 +19,8 @@ const opAddTagsToResource = "AddTagsToResource" // value can be used to capture response data after the request's "Send" method // is called. // +// See AddTagsToResource for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -53,6 +55,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 +69,29 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon ElastiCache's +// API operation AddTagsToResource for usage and error information. +// +// Returned Error Codes: +// * CacheClusterNotFound +// The requested cache cluster ID does not refer to an existing cache cluster. +// +// * SnapshotNotFoundFault +// The requested snapshot name does not refer to an existing snapshot. +// +// * TagQuotaPerResourceExceeded +// The request cannot be processed because it would cause the resource to have +// more than the allowed number of tags. The maximum number of tags permitted +// on a resource is 10. +// +// * InvalidARN +// The requested Amazon Resource Name (ARN) does not refer to an existing resource. +// func (c *ElastiCache) AddTagsToResource(input *AddTagsToResourceInput) (*TagListMessage, error) { req, out := c.AddTagsToResourceRequest(input) err := req.Send() @@ -78,6 +105,8 @@ const opAuthorizeCacheSecurityGroupIngress = "AuthorizeCacheSecurityGroupIngress // value can be used to capture response data after the request's "Send" method // is called. // +// See AuthorizeCacheSecurityGroupIngress for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -112,12 +141,40 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon ElastiCache's +// API operation AuthorizeCacheSecurityGroupIngress for usage and error information. +// +// Returned Error Codes: +// * CacheSecurityGroupNotFound +// The requested cache security group name does not refer to an existing cache +// security group. +// +// * InvalidCacheSecurityGroupState +// The current state of the cache security group does not allow deletion. +// +// * AuthorizationAlreadyExists +// The specified Amazon EC2 security group is already authorized for the specified +// cache security group. +// +// * InvalidParameterValue +// The value for a parameter is invalid. +// +// * InvalidParameterCombination +// Two or more incompatible parameters were specified. +// func (c *ElastiCache) AuthorizeCacheSecurityGroupIngress(input *AuthorizeCacheSecurityGroupIngressInput) (*AuthorizeCacheSecurityGroupIngressOutput, error) { req, out := c.AuthorizeCacheSecurityGroupIngressRequest(input) err := req.Send() @@ -131,6 +188,8 @@ const opCopySnapshot = "CopySnapshot" // value can be used to capture response data after the request's "Send" method // is called. // +// See CopySnapshot for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -165,6 +224,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 +239,35 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon ElastiCache's +// API operation CopySnapshot for usage and error information. +// +// Returned Error Codes: +// * SnapshotAlreadyExistsFault +// You already have a snapshot with the given name. +// +// * SnapshotNotFoundFault +// The requested snapshot name does not refer to an existing snapshot. +// +// * SnapshotQuotaExceededFault +// The request cannot be processed because it would exceed the maximum number +// of snapshots. +// +// * InvalidSnapshotState +// The current state of the snapshot does not allow the requested action to +// occur. +// +// * InvalidParameterValue +// The value for a parameter is invalid. +// +// * InvalidParameterCombination +// Two or more incompatible parameters were specified. +// func (c *ElastiCache) CopySnapshot(input *CopySnapshotInput) (*CopySnapshotOutput, error) { req, out := c.CopySnapshotRequest(input) err := req.Send() @@ -191,6 +281,8 @@ const opCreateCacheCluster = "CreateCacheCluster" // value can be used to capture response data after the request's "Send" method // is called. // +// See CreateCacheCluster for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -225,9 +317,71 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon ElastiCache's +// API operation CreateCacheCluster for usage and error information. +// +// Returned Error Codes: +// * ReplicationGroupNotFoundFault +// The specified replication group does not exist. +// +// * InvalidReplicationGroupState +// The requested replication group is not in the available state. +// +// * CacheClusterAlreadyExists +// You already have a cache cluster with the given identifier. +// +// * InsufficientCacheClusterCapacity +// The requested cache node type is not available in the specified Availability +// Zone. +// +// * CacheSecurityGroupNotFound +// The requested cache security group name does not refer to an existing cache +// security group. +// +// * CacheSubnetGroupNotFoundFault +// The requested cache subnet group name does not refer to an existing cache +// subnet group. +// +// * ClusterQuotaForCustomerExceeded +// The request cannot be processed because it would exceed the allowed number +// of cache clusters per customer. +// +// * NodeQuotaForClusterExceeded +// The request cannot be processed because it would exceed the allowed number +// of cache nodes in a single cache cluster. +// +// * NodeQuotaForCustomerExceeded +// The request cannot be processed because it would exceed the allowed number +// of cache nodes per customer. +// +// * CacheParameterGroupNotFound +// The requested cache parameter group name does not refer to an existing cache +// parameter group. +// +// * InvalidVPCNetworkStateFault +// The VPC network is in an invalid state. +// +// * TagQuotaPerResourceExceeded +// The request cannot be processed because it would cause the resource to have +// more than the allowed number of tags. The maximum number of tags permitted +// on a resource is 10. +// +// * InvalidParameterValue +// The value for a parameter is invalid. +// +// * InvalidParameterCombination +// Two or more incompatible parameters were specified. +// func (c *ElastiCache) CreateCacheCluster(input *CreateCacheClusterInput) (*CreateCacheClusterOutput, error) { req, out := c.CreateCacheClusterRequest(input) err := req.Send() @@ -241,6 +395,8 @@ const opCreateCacheParameterGroup = "CreateCacheParameterGroup" // value can be used to capture response data after the request's "Send" method // is called. // +// See CreateCacheParameterGroup for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -275,9 +431,37 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon ElastiCache's +// API operation CreateCacheParameterGroup for usage and error information. +// +// Returned Error Codes: +// * CacheParameterGroupQuotaExceeded +// The request cannot be processed because it would exceed the maximum number +// of cache security groups. +// +// * CacheParameterGroupAlreadyExists +// A cache parameter group with the requested name already exists. +// +// * InvalidCacheParameterGroupState +// The current state of the cache parameter group does not allow the requested +// action to occur. +// +// * InvalidParameterValue +// The value for a parameter is invalid. +// +// * InvalidParameterCombination +// Two or more incompatible parameters were specified. +// func (c *ElastiCache) CreateCacheParameterGroup(input *CreateCacheParameterGroupInput) (*CreateCacheParameterGroupOutput, error) { req, out := c.CreateCacheParameterGroupRequest(input) err := req.Send() @@ -291,6 +475,8 @@ const opCreateCacheSecurityGroup = "CreateCacheSecurityGroup" // value can be used to capture response data after the request's "Send" method // is called. // +// See CreateCacheSecurityGroup for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -325,6 +511,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 +520,28 @@ 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). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon ElastiCache's +// API operation CreateCacheSecurityGroup for usage and error information. +// +// Returned Error Codes: +// * CacheSecurityGroupAlreadyExists +// A cache security group with the specified name already exists. +// +// * QuotaExceeded.CacheSecurityGroup +// The request cannot be processed because it would exceed the allowed number +// of cache security groups. +// +// * InvalidParameterValue +// The value for a parameter is invalid. +// +// * InvalidParameterCombination +// Two or more incompatible parameters were specified. +// func (c *ElastiCache) CreateCacheSecurityGroup(input *CreateCacheSecurityGroupInput) (*CreateCacheSecurityGroupOutput, error) { req, out := c.CreateCacheSecurityGroupRequest(input) err := req.Send() @@ -345,6 +555,8 @@ const opCreateCacheSubnetGroup = "CreateCacheSubnetGroup" // value can be used to capture response data after the request's "Send" method // is called. // +// See CreateCacheSubnetGroup for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -379,10 +591,36 @@ 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). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon ElastiCache's +// API operation CreateCacheSubnetGroup for usage and error information. +// +// Returned Error Codes: +// * CacheSubnetGroupAlreadyExists +// The requested cache subnet group name is already in use by an existing cache +// subnet group. +// +// * CacheSubnetGroupQuotaExceeded +// The request cannot be processed because it would exceed the allowed number +// of cache subnet groups. +// +// * CacheSubnetQuotaExceededFault +// The request cannot be processed because it would exceed the allowed number +// of subnets in a cache subnet group. +// +// * InvalidSubnet +// An invalid subnet identifier was specified. +// func (c *ElastiCache) CreateCacheSubnetGroup(input *CreateCacheSubnetGroupInput) (*CreateCacheSubnetGroupOutput, error) { req, out := c.CreateCacheSubnetGroupRequest(input) err := req.Send() @@ -396,6 +634,8 @@ const opCreateReplicationGroup = "CreateReplicationGroup" // value can be used to capture response data after the request's "Send" method // is called. // +// See CreateReplicationGroup for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -430,6 +670,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 +683,66 @@ func (c *ElastiCache) CreateReplicationGroupRequest(input *CreateReplicationGrou // up to a total of five read replicas. // // This action is valid only for Redis. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon ElastiCache's +// API operation CreateReplicationGroup for usage and error information. +// +// Returned Error Codes: +// * CacheClusterNotFound +// The requested cache cluster ID does not refer to an existing cache cluster. +// +// * InvalidCacheClusterState +// The requested cache cluster is not in the available state. +// +// * ReplicationGroupAlreadyExists +// The specified replication group already exists. +// +// * InsufficientCacheClusterCapacity +// The requested cache node type is not available in the specified Availability +// Zone. +// +// * CacheSecurityGroupNotFound +// The requested cache security group name does not refer to an existing cache +// security group. +// +// * CacheSubnetGroupNotFoundFault +// The requested cache subnet group name does not refer to an existing cache +// subnet group. +// +// * ClusterQuotaForCustomerExceeded +// The request cannot be processed because it would exceed the allowed number +// of cache clusters per customer. +// +// * NodeQuotaForClusterExceeded +// The request cannot be processed because it would exceed the allowed number +// of cache nodes in a single cache cluster. +// +// * NodeQuotaForCustomerExceeded +// The request cannot be processed because it would exceed the allowed number +// of cache nodes per customer. +// +// * CacheParameterGroupNotFound +// The requested cache parameter group name does not refer to an existing cache +// parameter group. +// +// * InvalidVPCNetworkStateFault +// The VPC network is in an invalid state. +// +// * TagQuotaPerResourceExceeded +// The request cannot be processed because it would cause the resource to have +// more than the allowed number of tags. The maximum number of tags permitted +// on a resource is 10. +// +// * InvalidParameterValue +// The value for a parameter is invalid. +// +// * InvalidParameterCombination +// Two or more incompatible parameters were specified. +// func (c *ElastiCache) CreateReplicationGroup(input *CreateReplicationGroupInput) (*CreateReplicationGroupOutput, error) { req, out := c.CreateReplicationGroupRequest(input) err := req.Send() @@ -454,6 +756,8 @@ const opCreateSnapshot = "CreateSnapshot" // value can be used to capture response data after the request's "Send" method // is called. // +// See CreateSnapshot for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -488,8 +792,49 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon ElastiCache's +// API operation CreateSnapshot for usage and error information. +// +// Returned Error Codes: +// * SnapshotAlreadyExistsFault +// You already have a snapshot with the given name. +// +// * CacheClusterNotFound +// The requested cache cluster ID does not refer to an existing cache cluster. +// +// * InvalidCacheClusterState +// The requested cache cluster is not in the available state. +// +// * SnapshotQuotaExceededFault +// The request cannot be processed because it would exceed the maximum number +// of snapshots. +// +// * SnapshotFeatureNotSupportedFault +// You attempted one of the following actions: +// +// Creating a snapshot of a Redis cache cluster running on a t1.micro cache +// node. +// +// Creating a snapshot of a cache cluster that is running Memcached rather +// than Redis. +// +// Neither of these are supported by ElastiCache. +// +// * InvalidParameterCombination +// Two or more incompatible parameters were specified. +// +// * InvalidParameterValue +// The value for a parameter is invalid. +// func (c *ElastiCache) CreateSnapshot(input *CreateSnapshotInput) (*CreateSnapshotOutput, error) { req, out := c.CreateSnapshotRequest(input) err := req.Send() @@ -503,6 +848,8 @@ const opDeleteCacheCluster = "DeleteCacheCluster" // value can be used to capture response data after the request's "Send" method // is called. // +// See DeleteCacheCluster for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -537,6 +884,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 +894,45 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon ElastiCache's +// API operation DeleteCacheCluster for usage and error information. +// +// Returned Error Codes: +// * CacheClusterNotFound +// The requested cache cluster ID does not refer to an existing cache cluster. +// +// * InvalidCacheClusterState +// The requested cache cluster is not in the available state. +// +// * SnapshotAlreadyExistsFault +// You already have a snapshot with the given name. +// +// * SnapshotFeatureNotSupportedFault +// You attempted one of the following actions: +// +// Creating a snapshot of a Redis cache cluster running on a t1.micro cache +// node. +// +// Creating a snapshot of a cache cluster that is running Memcached rather +// than Redis. +// +// Neither of these are supported by ElastiCache. +// +// * SnapshotQuotaExceededFault +// The request cannot be processed because it would exceed the maximum number +// of snapshots. +// +// * InvalidParameterValue +// The value for a parameter is invalid. +// +// * InvalidParameterCombination +// Two or more incompatible parameters were specified. +// func (c *ElastiCache) DeleteCacheCluster(input *DeleteCacheClusterInput) (*DeleteCacheClusterOutput, error) { req, out := c.DeleteCacheClusterRequest(input) err := req.Send() @@ -558,6 +946,8 @@ const opDeleteCacheParameterGroup = "DeleteCacheParameterGroup" // value can be used to capture response data after the request's "Send" method // is called. // +// See DeleteCacheParameterGroup for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -594,9 +984,34 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon ElastiCache's +// API operation DeleteCacheParameterGroup for usage and error information. +// +// Returned Error Codes: +// * InvalidCacheParameterGroupState +// The current state of the cache parameter group does not allow the requested +// action to occur. +// +// * CacheParameterGroupNotFound +// The requested cache parameter group name does not refer to an existing cache +// parameter group. +// +// * InvalidParameterValue +// The value for a parameter is invalid. +// +// * InvalidParameterCombination +// Two or more incompatible parameters were specified. +// func (c *ElastiCache) DeleteCacheParameterGroup(input *DeleteCacheParameterGroupInput) (*DeleteCacheParameterGroupOutput, error) { req, out := c.DeleteCacheParameterGroupRequest(input) err := req.Send() @@ -610,6 +1025,8 @@ const opDeleteCacheSecurityGroup = "DeleteCacheSecurityGroup" // value can be used to capture response data after the request's "Send" method // is called. // +// See DeleteCacheSecurityGroup for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -646,10 +1063,34 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon ElastiCache's +// API operation DeleteCacheSecurityGroup for usage and error information. +// +// Returned Error Codes: +// * InvalidCacheSecurityGroupState +// The current state of the cache security group does not allow deletion. +// +// * CacheSecurityGroupNotFound +// The requested cache security group name does not refer to an existing cache +// security group. +// +// * InvalidParameterValue +// The value for a parameter is invalid. +// +// * InvalidParameterCombination +// Two or more incompatible parameters were specified. +// func (c *ElastiCache) DeleteCacheSecurityGroup(input *DeleteCacheSecurityGroupInput) (*DeleteCacheSecurityGroupOutput, error) { req, out := c.DeleteCacheSecurityGroupRequest(input) err := req.Send() @@ -663,6 +1104,8 @@ const opDeleteCacheSubnetGroup = "DeleteCacheSubnetGroup" // value can be used to capture response data after the request's "Send" method // is called. // +// See DeleteCacheSubnetGroup for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -699,10 +1142,28 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon ElastiCache's +// API operation DeleteCacheSubnetGroup for usage and error information. +// +// Returned Error Codes: +// * CacheSubnetGroupInUse +// The requested cache subnet group is currently in use. +// +// * CacheSubnetGroupNotFoundFault +// The requested cache subnet group name does not refer to an existing cache +// subnet group. +// func (c *ElastiCache) DeleteCacheSubnetGroup(input *DeleteCacheSubnetGroupInput) (*DeleteCacheSubnetGroupOutput, error) { req, out := c.DeleteCacheSubnetGroupRequest(input) err := req.Send() @@ -716,6 +1177,8 @@ const opDeleteReplicationGroup = "DeleteReplicationGroup" // value can be used to capture response data after the request's "Send" method // is called. // +// See DeleteReplicationGroup for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -750,6 +1213,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 +1223,45 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon ElastiCache's +// API operation DeleteReplicationGroup for usage and error information. +// +// Returned Error Codes: +// * ReplicationGroupNotFoundFault +// The specified replication group does not exist. +// +// * InvalidReplicationGroupState +// The requested replication group is not in the available state. +// +// * SnapshotAlreadyExistsFault +// You already have a snapshot with the given name. +// +// * SnapshotFeatureNotSupportedFault +// You attempted one of the following actions: +// +// Creating a snapshot of a Redis cache cluster running on a t1.micro cache +// node. +// +// Creating a snapshot of a cache cluster that is running Memcached rather +// than Redis. +// +// Neither of these are supported by ElastiCache. +// +// * SnapshotQuotaExceededFault +// The request cannot be processed because it would exceed the maximum number +// of snapshots. +// +// * InvalidParameterValue +// The value for a parameter is invalid. +// +// * InvalidParameterCombination +// Two or more incompatible parameters were specified. +// func (c *ElastiCache) DeleteReplicationGroup(input *DeleteReplicationGroupInput) (*DeleteReplicationGroupOutput, error) { req, out := c.DeleteReplicationGroupRequest(input) err := req.Send() @@ -771,6 +1275,8 @@ const opDeleteSnapshot = "DeleteSnapshot" // value can be used to capture response data after the request's "Send" method // is called. // +// See DeleteSnapshot for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -805,9 +1311,33 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon ElastiCache's +// API operation DeleteSnapshot for usage and error information. +// +// Returned Error Codes: +// * SnapshotNotFoundFault +// The requested snapshot name does not refer to an existing snapshot. +// +// * InvalidSnapshotState +// The current state of the snapshot does not allow the requested action to +// occur. +// +// * InvalidParameterValue +// The value for a parameter is invalid. +// +// * InvalidParameterCombination +// Two or more incompatible parameters were specified. +// func (c *ElastiCache) DeleteSnapshot(input *DeleteSnapshotInput) (*DeleteSnapshotOutput, error) { req, out := c.DeleteSnapshotRequest(input) err := req.Send() @@ -821,6 +1351,8 @@ const opDescribeCacheClusters = "DescribeCacheClusters" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeCacheClusters for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -861,6 +1393,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 +1417,24 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon ElastiCache's +// API operation DescribeCacheClusters for usage and error information. +// +// Returned Error Codes: +// * CacheClusterNotFound +// The requested cache cluster ID does not refer to an existing cache cluster. +// +// * InvalidParameterValue +// The value for a parameter is invalid. +// +// * InvalidParameterCombination +// Two or more incompatible parameters were specified. +// func (c *ElastiCache) DescribeCacheClusters(input *DescribeCacheClustersInput) (*DescribeCacheClustersOutput, error) { req, out := c.DescribeCacheClustersRequest(input) err := req.Send() @@ -921,6 +1473,8 @@ const opDescribeCacheEngineVersions = "DescribeCacheEngineVersions" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeCacheEngineVersions for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -961,8 +1515,17 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon ElastiCache's +// API operation DescribeCacheEngineVersions for usage and error information. func (c *ElastiCache) DescribeCacheEngineVersions(input *DescribeCacheEngineVersionsInput) (*DescribeCacheEngineVersionsOutput, error) { req, out := c.DescribeCacheEngineVersionsRequest(input) err := req.Send() @@ -1001,6 +1564,8 @@ const opDescribeCacheParameterGroups = "DescribeCacheParameterGroups" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeCacheParameterGroups for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1041,9 +1606,30 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon ElastiCache's +// API operation DescribeCacheParameterGroups for usage and error information. +// +// Returned Error Codes: +// * CacheParameterGroupNotFound +// The requested cache parameter group name does not refer to an existing cache +// parameter group. +// +// * InvalidParameterValue +// The value for a parameter is invalid. +// +// * InvalidParameterCombination +// Two or more incompatible parameters were specified. +// func (c *ElastiCache) DescribeCacheParameterGroups(input *DescribeCacheParameterGroupsInput) (*DescribeCacheParameterGroupsOutput, error) { req, out := c.DescribeCacheParameterGroupsRequest(input) err := req.Send() @@ -1082,6 +1668,8 @@ const opDescribeCacheParameters = "DescribeCacheParameters" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeCacheParameters for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1122,8 +1710,29 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon ElastiCache's +// API operation DescribeCacheParameters for usage and error information. +// +// Returned Error Codes: +// * CacheParameterGroupNotFound +// The requested cache parameter group name does not refer to an existing cache +// parameter group. +// +// * InvalidParameterValue +// The value for a parameter is invalid. +// +// * InvalidParameterCombination +// Two or more incompatible parameters were specified. +// func (c *ElastiCache) DescribeCacheParameters(input *DescribeCacheParametersInput) (*DescribeCacheParametersOutput, error) { req, out := c.DescribeCacheParametersRequest(input) err := req.Send() @@ -1162,6 +1771,8 @@ const opDescribeCacheSecurityGroups = "DescribeCacheSecurityGroups" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeCacheSecurityGroups for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1202,9 +1813,30 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon ElastiCache's +// API operation DescribeCacheSecurityGroups for usage and error information. +// +// Returned Error Codes: +// * CacheSecurityGroupNotFound +// The requested cache security group name does not refer to an existing cache +// security group. +// +// * InvalidParameterValue +// The value for a parameter is invalid. +// +// * InvalidParameterCombination +// Two or more incompatible parameters were specified. +// func (c *ElastiCache) DescribeCacheSecurityGroups(input *DescribeCacheSecurityGroupsInput) (*DescribeCacheSecurityGroupsOutput, error) { req, out := c.DescribeCacheSecurityGroupsRequest(input) err := req.Send() @@ -1243,6 +1875,8 @@ const opDescribeCacheSubnetGroups = "DescribeCacheSubnetGroups" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeCacheSubnetGroups for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1283,9 +1917,24 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon ElastiCache's +// API operation DescribeCacheSubnetGroups for usage and error information. +// +// Returned Error Codes: +// * CacheSubnetGroupNotFoundFault +// The requested cache subnet group name does not refer to an existing cache +// subnet group. +// func (c *ElastiCache) DescribeCacheSubnetGroups(input *DescribeCacheSubnetGroupsInput) (*DescribeCacheSubnetGroupsOutput, error) { req, out := c.DescribeCacheSubnetGroupsRequest(input) err := req.Send() @@ -1324,6 +1973,8 @@ const opDescribeEngineDefaultParameters = "DescribeEngineDefaultParameters" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeEngineDefaultParameters for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1364,8 +2015,25 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon ElastiCache's +// API operation DescribeEngineDefaultParameters for usage and error information. +// +// Returned Error Codes: +// * InvalidParameterValue +// The value for a parameter is invalid. +// +// * InvalidParameterCombination +// Two or more incompatible parameters were specified. +// func (c *ElastiCache) DescribeEngineDefaultParameters(input *DescribeEngineDefaultParametersInput) (*DescribeEngineDefaultParametersOutput, error) { req, out := c.DescribeEngineDefaultParametersRequest(input) err := req.Send() @@ -1404,6 +2072,8 @@ const opDescribeEvents = "DescribeEvents" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeEvents for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1444,6 +2114,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 +2123,21 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon ElastiCache's +// API operation DescribeEvents for usage and error information. +// +// Returned Error Codes: +// * InvalidParameterValue +// The value for a parameter is invalid. +// +// * InvalidParameterCombination +// Two or more incompatible parameters were specified. +// func (c *ElastiCache) DescribeEvents(input *DescribeEventsInput) (*DescribeEventsOutput, error) { req, out := c.DescribeEventsRequest(input) err := req.Send() @@ -1489,6 +2176,8 @@ const opDescribeReplicationGroups = "DescribeReplicationGroups" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeReplicationGroups for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1529,9 +2218,29 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon ElastiCache's +// API operation DescribeReplicationGroups for usage and error information. +// +// Returned Error Codes: +// * ReplicationGroupNotFoundFault +// The specified replication group does not exist. +// +// * InvalidParameterValue +// The value for a parameter is invalid. +// +// * InvalidParameterCombination +// Two or more incompatible parameters were specified. +// func (c *ElastiCache) DescribeReplicationGroups(input *DescribeReplicationGroupsInput) (*DescribeReplicationGroupsOutput, error) { req, out := c.DescribeReplicationGroupsRequest(input) err := req.Send() @@ -1570,6 +2279,8 @@ const opDescribeReservedCacheNodes = "DescribeReservedCacheNodes" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeReservedCacheNodes for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1610,8 +2321,28 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon ElastiCache's +// API operation DescribeReservedCacheNodes for usage and error information. +// +// Returned Error Codes: +// * ReservedCacheNodeNotFound +// The requested reserved cache node was not found. +// +// * InvalidParameterValue +// The value for a parameter is invalid. +// +// * InvalidParameterCombination +// Two or more incompatible parameters were specified. +// func (c *ElastiCache) DescribeReservedCacheNodes(input *DescribeReservedCacheNodesInput) (*DescribeReservedCacheNodesOutput, error) { req, out := c.DescribeReservedCacheNodesRequest(input) err := req.Send() @@ -1650,6 +2381,8 @@ const opDescribeReservedCacheNodesOfferings = "DescribeReservedCacheNodesOfferin // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeReservedCacheNodesOfferings for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1690,8 +2423,28 @@ func (c *ElastiCache) DescribeReservedCacheNodesOfferingsRequest(input *Describe return } +// DescribeReservedCacheNodesOfferings API operation for Amazon ElastiCache. +// // The DescribeReservedCacheNodesOfferings action lists available reserved cache // node offerings. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon ElastiCache's +// API operation DescribeReservedCacheNodesOfferings for usage and error information. +// +// Returned Error Codes: +// * ReservedCacheNodesOfferingNotFound +// The requested cache node offering does not exist. +// +// * InvalidParameterValue +// The value for a parameter is invalid. +// +// * InvalidParameterCombination +// Two or more incompatible parameters were specified. +// func (c *ElastiCache) DescribeReservedCacheNodesOfferings(input *DescribeReservedCacheNodesOfferingsInput) (*DescribeReservedCacheNodesOfferingsOutput, error) { req, out := c.DescribeReservedCacheNodesOfferingsRequest(input) err := req.Send() @@ -1730,6 +2483,8 @@ const opDescribeSnapshots = "DescribeSnapshots" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeSnapshots for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1770,10 +2525,33 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon ElastiCache's +// API operation DescribeSnapshots for usage and error information. +// +// Returned Error Codes: +// * CacheClusterNotFound +// The requested cache cluster ID does not refer to an existing cache cluster. +// +// * SnapshotNotFoundFault +// The requested snapshot name does not refer to an existing snapshot. +// +// * InvalidParameterValue +// The value for a parameter is invalid. +// +// * InvalidParameterCombination +// Two or more incompatible parameters were specified. +// func (c *ElastiCache) DescribeSnapshots(input *DescribeSnapshotsInput) (*DescribeSnapshotsOutput, error) { req, out := c.DescribeSnapshotsRequest(input) err := req.Send() @@ -1812,6 +2590,8 @@ const opListAllowedNodeTypeModifications = "ListAllowedNodeTypeModifications" // value can be used to capture response data after the request's "Send" method // is called. // +// See ListAllowedNodeTypeModifications for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1846,6 +2626,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 +2635,27 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon ElastiCache's +// API operation ListAllowedNodeTypeModifications for usage and error information. +// +// Returned Error Codes: +// * CacheClusterNotFound +// The requested cache cluster ID does not refer to an existing cache cluster. +// +// * ReplicationGroupNotFoundFault +// The specified replication group does not exist. +// +// * InvalidParameterCombination +// Two or more incompatible parameters were specified. +// +// * InvalidParameterValue +// The value for a parameter is invalid. +// func (c *ElastiCache) ListAllowedNodeTypeModifications(input *ListAllowedNodeTypeModificationsInput) (*ListAllowedNodeTypeModificationsOutput, error) { req, out := c.ListAllowedNodeTypeModificationsRequest(input) err := req.Send() @@ -1866,6 +2669,8 @@ const opListTagsForResource = "ListTagsForResource" // value can be used to capture response data after the request's "Send" method // is called. // +// See ListTagsForResource for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1900,6 +2705,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 +2715,24 @@ 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). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon ElastiCache's +// API operation ListTagsForResource for usage and error information. +// +// Returned Error Codes: +// * CacheClusterNotFound +// The requested cache cluster ID does not refer to an existing cache cluster. +// +// * SnapshotNotFoundFault +// The requested snapshot name does not refer to an existing snapshot. +// +// * InvalidARN +// The requested Amazon Resource Name (ARN) does not refer to an existing resource. +// func (c *ElastiCache) ListTagsForResource(input *ListTagsForResourceInput) (*TagListMessage, error) { req, out := c.ListTagsForResourceRequest(input) err := req.Send() @@ -1921,6 +2746,8 @@ const opModifyCacheCluster = "ModifyCacheCluster" // value can be used to capture response data after the request's "Send" method // is called. // +// See ModifyCacheCluster for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1955,9 +2782,58 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon ElastiCache's +// API operation ModifyCacheCluster for usage and error information. +// +// Returned Error Codes: +// * InvalidCacheClusterState +// The requested cache cluster is not in the available state. +// +// * InvalidCacheSecurityGroupState +// The current state of the cache security group does not allow deletion. +// +// * InsufficientCacheClusterCapacity +// The requested cache node type is not available in the specified Availability +// Zone. +// +// * CacheClusterNotFound +// The requested cache cluster ID does not refer to an existing cache cluster. +// +// * NodeQuotaForClusterExceeded +// The request cannot be processed because it would exceed the allowed number +// of cache nodes in a single cache cluster. +// +// * NodeQuotaForCustomerExceeded +// The request cannot be processed because it would exceed the allowed number +// of cache nodes per customer. +// +// * CacheSecurityGroupNotFound +// The requested cache security group name does not refer to an existing cache +// security group. +// +// * CacheParameterGroupNotFound +// The requested cache parameter group name does not refer to an existing cache +// parameter group. +// +// * InvalidVPCNetworkStateFault +// The VPC network is in an invalid state. +// +// * InvalidParameterValue +// The value for a parameter is invalid. +// +// * InvalidParameterCombination +// Two or more incompatible parameters were specified. +// func (c *ElastiCache) ModifyCacheCluster(input *ModifyCacheClusterInput) (*ModifyCacheClusterOutput, error) { req, out := c.ModifyCacheClusterRequest(input) err := req.Send() @@ -1971,6 +2847,8 @@ const opModifyCacheParameterGroup = "ModifyCacheParameterGroup" // value can be used to capture response data after the request's "Send" method // is called. // +// See ModifyCacheParameterGroup for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -2005,9 +2883,34 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon ElastiCache's +// API operation ModifyCacheParameterGroup for usage and error information. +// +// Returned Error Codes: +// * CacheParameterGroupNotFound +// The requested cache parameter group name does not refer to an existing cache +// parameter group. +// +// * InvalidCacheParameterGroupState +// The current state of the cache parameter group does not allow the requested +// action to occur. +// +// * InvalidParameterValue +// The value for a parameter is invalid. +// +// * InvalidParameterCombination +// Two or more incompatible parameters were specified. +// func (c *ElastiCache) ModifyCacheParameterGroup(input *ModifyCacheParameterGroupInput) (*CacheParameterGroupNameMessage, error) { req, out := c.ModifyCacheParameterGroupRequest(input) err := req.Send() @@ -2021,6 +2924,8 @@ const opModifyCacheSubnetGroup = "ModifyCacheSubnetGroup" // value can be used to capture response data after the request's "Send" method // is called. // +// See ModifyCacheSubnetGroup for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -2055,7 +2960,32 @@ func (c *ElastiCache) ModifyCacheSubnetGroupRequest(input *ModifyCacheSubnetGrou return } +// ModifyCacheSubnetGroup API operation for Amazon ElastiCache. +// // The ModifyCacheSubnetGroup action modifies an existing cache subnet group. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon ElastiCache's +// API operation ModifyCacheSubnetGroup for usage and error information. +// +// Returned Error Codes: +// * CacheSubnetGroupNotFoundFault +// The requested cache subnet group name does not refer to an existing cache +// subnet group. +// +// * CacheSubnetQuotaExceededFault +// The request cannot be processed because it would exceed the allowed number +// of subnets in a cache subnet group. +// +// * SubnetInUse +// The requested subnet is being used by another cache subnet group. +// +// * InvalidSubnet +// An invalid subnet identifier was specified. +// func (c *ElastiCache) ModifyCacheSubnetGroup(input *ModifyCacheSubnetGroupInput) (*ModifyCacheSubnetGroupOutput, error) { req, out := c.ModifyCacheSubnetGroupRequest(input) err := req.Send() @@ -2069,6 +2999,8 @@ const opModifyReplicationGroup = "ModifyReplicationGroup" // value can be used to capture response data after the request's "Send" method // is called. // +// See ModifyReplicationGroup for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -2103,8 +3035,63 @@ func (c *ElastiCache) ModifyReplicationGroupRequest(input *ModifyReplicationGrou return } +// ModifyReplicationGroup API operation for Amazon ElastiCache. +// // The ModifyReplicationGroup action modifies the settings for a replication // group. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon ElastiCache's +// API operation ModifyReplicationGroup for usage and error information. +// +// Returned Error Codes: +// * ReplicationGroupNotFoundFault +// The specified replication group does not exist. +// +// * InvalidReplicationGroupState +// The requested replication group is not in the available state. +// +// * InvalidCacheClusterState +// The requested cache cluster is not in the available state. +// +// * InvalidCacheSecurityGroupState +// The current state of the cache security group does not allow deletion. +// +// * InsufficientCacheClusterCapacity +// The requested cache node type is not available in the specified Availability +// Zone. +// +// * CacheClusterNotFound +// The requested cache cluster ID does not refer to an existing cache cluster. +// +// * NodeQuotaForClusterExceeded +// The request cannot be processed because it would exceed the allowed number +// of cache nodes in a single cache cluster. +// +// * NodeQuotaForCustomerExceeded +// The request cannot be processed because it would exceed the allowed number +// of cache nodes per customer. +// +// * CacheSecurityGroupNotFound +// The requested cache security group name does not refer to an existing cache +// security group. +// +// * CacheParameterGroupNotFound +// The requested cache parameter group name does not refer to an existing cache +// parameter group. +// +// * InvalidVPCNetworkStateFault +// The VPC network is in an invalid state. +// +// * InvalidParameterValue +// The value for a parameter is invalid. +// +// * InvalidParameterCombination +// Two or more incompatible parameters were specified. +// func (c *ElastiCache) ModifyReplicationGroup(input *ModifyReplicationGroupInput) (*ModifyReplicationGroupOutput, error) { req, out := c.ModifyReplicationGroupRequest(input) err := req.Send() @@ -2118,6 +3105,8 @@ const opPurchaseReservedCacheNodesOffering = "PurchaseReservedCacheNodesOffering // value can be used to capture response data after the request's "Send" method // is called. // +// See PurchaseReservedCacheNodesOffering for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -2152,8 +3141,35 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon ElastiCache's +// API operation PurchaseReservedCacheNodesOffering for usage and error information. +// +// Returned Error Codes: +// * ReservedCacheNodesOfferingNotFound +// The requested cache node offering does not exist. +// +// * ReservedCacheNodeAlreadyExists +// You already have a reservation with the given identifier. +// +// * ReservedCacheNodeQuotaExceeded +// The request cannot be processed because it would exceed the user's cache +// node quota. +// +// * InvalidParameterValue +// The value for a parameter is invalid. +// +// * InvalidParameterCombination +// Two or more incompatible parameters were specified. +// func (c *ElastiCache) PurchaseReservedCacheNodesOffering(input *PurchaseReservedCacheNodesOfferingInput) (*PurchaseReservedCacheNodesOfferingOutput, error) { req, out := c.PurchaseReservedCacheNodesOfferingRequest(input) err := req.Send() @@ -2167,6 +3183,8 @@ const opRebootCacheCluster = "RebootCacheCluster" // value can be used to capture response data after the request's "Send" method // is called. // +// See RebootCacheCluster for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -2201,6 +3219,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 +3231,21 @@ func (c *ElastiCache) RebootCacheClusterRequest(input *RebootCacheClusterInput) // to be lost. // // When the reboot is complete, a cache cluster event is created. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon ElastiCache's +// API operation RebootCacheCluster for usage and error information. +// +// Returned Error Codes: +// * InvalidCacheClusterState +// The requested cache cluster is not in the available state. +// +// * CacheClusterNotFound +// The requested cache cluster ID does not refer to an existing cache cluster. +// func (c *ElastiCache) RebootCacheCluster(input *RebootCacheClusterInput) (*RebootCacheClusterOutput, error) { req, out := c.RebootCacheClusterRequest(input) err := req.Send() @@ -2224,6 +3259,8 @@ const opRemoveTagsFromResource = "RemoveTagsFromResource" // value can be used to capture response data after the request's "Send" method // is called. // +// See RemoveTagsFromResource for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -2258,8 +3295,31 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon ElastiCache's +// API operation RemoveTagsFromResource for usage and error information. +// +// Returned Error Codes: +// * CacheClusterNotFound +// The requested cache cluster ID does not refer to an existing cache cluster. +// +// * SnapshotNotFoundFault +// The requested snapshot name does not refer to an existing snapshot. +// +// * InvalidARN +// The requested Amazon Resource Name (ARN) does not refer to an existing resource. +// +// * TagNotFound +// The requested tag was not found on this resource. +// func (c *ElastiCache) RemoveTagsFromResource(input *RemoveTagsFromResourceInput) (*TagListMessage, error) { req, out := c.RemoveTagsFromResourceRequest(input) err := req.Send() @@ -2273,6 +3333,8 @@ const opResetCacheParameterGroup = "ResetCacheParameterGroup" // value can be used to capture response data after the request's "Send" method // is called. // +// See ResetCacheParameterGroup for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -2307,10 +3369,35 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon ElastiCache's +// API operation ResetCacheParameterGroup for usage and error information. +// +// Returned Error Codes: +// * InvalidCacheParameterGroupState +// The current state of the cache parameter group does not allow the requested +// action to occur. +// +// * CacheParameterGroupNotFound +// The requested cache parameter group name does not refer to an existing cache +// parameter group. +// +// * InvalidParameterValue +// The value for a parameter is invalid. +// +// * InvalidParameterCombination +// Two or more incompatible parameters were specified. +// func (c *ElastiCache) ResetCacheParameterGroup(input *ResetCacheParameterGroupInput) (*CacheParameterGroupNameMessage, error) { req, out := c.ResetCacheParameterGroupRequest(input) err := req.Send() @@ -2324,6 +3411,8 @@ const opRevokeCacheSecurityGroupIngress = "RevokeCacheSecurityGroupIngress" // value can be used to capture response data after the request's "Send" method // is called. // +// See RevokeCacheSecurityGroupIngress for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -2358,9 +3447,37 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon ElastiCache's +// API operation RevokeCacheSecurityGroupIngress for usage and error information. +// +// Returned Error Codes: +// * CacheSecurityGroupNotFound +// The requested cache security group name does not refer to an existing cache +// security group. +// +// * AuthorizationNotFound +// The specified Amazon EC2 security group is not authorized for the specified +// cache security group. +// +// * InvalidCacheSecurityGroupState +// The current state of the cache security group does not allow deletion. +// +// * InvalidParameterValue +// The value for a parameter is invalid. +// +// * InvalidParameterCombination +// Two or more incompatible parameters were specified. +// 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..dacadcc2b6e 100644 --- a/service/elasticbeanstalk/api.go +++ b/service/elasticbeanstalk/api.go @@ -20,6 +20,8 @@ const opAbortEnvironmentUpdate = "AbortEnvironmentUpdate" // value can be used to capture response data after the request's "Send" method // is called. // +// See AbortEnvironmentUpdate for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -56,8 +58,23 @@ func (c *ElasticBeanstalk) AbortEnvironmentUpdateRequest(input *AbortEnvironment return } +// AbortEnvironmentUpdate API operation for AWS Elastic Beanstalk. +// // Cancels in-progress environment configuration update or application version // deployment. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Elastic Beanstalk's +// API operation AbortEnvironmentUpdate for usage and error information. +// +// Returned Error Codes: +// * InsufficientPrivilegesException +// The specified account does not have sufficient privileges for one of more +// AWS services. +// func (c *ElasticBeanstalk) AbortEnvironmentUpdate(input *AbortEnvironmentUpdateInput) (*AbortEnvironmentUpdateOutput, error) { req, out := c.AbortEnvironmentUpdateRequest(input) err := req.Send() @@ -71,6 +88,8 @@ const opApplyEnvironmentManagedAction = "ApplyEnvironmentManagedAction" // value can be used to capture response data after the request's "Send" method // is called. // +// See ApplyEnvironmentManagedAction for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -105,9 +124,26 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Elastic Beanstalk's +// API operation ApplyEnvironmentManagedAction for usage and error information. +// +// Returned Error Codes: +// * ServiceException +// A generic service exception has occurred. +// +// * ManagedActionInvalidStateException +// Cannot modify the managed action in its current state. +// func (c *ElasticBeanstalk) ApplyEnvironmentManagedAction(input *ApplyEnvironmentManagedActionInput) (*ApplyEnvironmentManagedActionOutput, error) { req, out := c.ApplyEnvironmentManagedActionRequest(input) err := req.Send() @@ -121,6 +157,8 @@ const opCheckDNSAvailability = "CheckDNSAvailability" // value can be used to capture response data after the request's "Send" method // is called. // +// See CheckDNSAvailability for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -155,7 +193,16 @@ func (c *ElasticBeanstalk) CheckDNSAvailabilityRequest(input *CheckDNSAvailabili return } +// CheckDNSAvailability API operation for AWS Elastic Beanstalk. +// // Checks if the specified CNAME is available. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Elastic Beanstalk's +// API operation CheckDNSAvailability for usage and error information. func (c *ElasticBeanstalk) CheckDNSAvailability(input *CheckDNSAvailabilityInput) (*CheckDNSAvailabilityOutput, error) { req, out := c.CheckDNSAvailabilityRequest(input) err := req.Send() @@ -169,6 +216,8 @@ const opComposeEnvironments = "ComposeEnvironments" // value can be used to capture response data after the request's "Send" method // is called. // +// See ComposeEnvironments for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -203,6 +252,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 +261,22 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Elastic Beanstalk's +// API operation ComposeEnvironments for usage and error information. +// +// Returned Error Codes: +// * TooManyEnvironmentsException +// The specified account has reached its limit of environments. +// +// * InsufficientPrivilegesException +// The specified account does not have sufficient privileges for one of more +// AWS services. +// func (c *ElasticBeanstalk) ComposeEnvironments(input *ComposeEnvironmentsInput) (*EnvironmentDescriptionsMessage, error) { req, out := c.ComposeEnvironmentsRequest(input) err := req.Send() @@ -223,6 +290,8 @@ const opCreateApplication = "CreateApplication" // value can be used to capture response data after the request's "Send" method // is called. // +// See CreateApplication for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -257,8 +326,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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Elastic Beanstalk's +// API operation CreateApplication for usage and error information. +// +// Returned Error Codes: +// * TooManyApplicationsException +// The specified account has reached its limit of applications. +// func (c *ElasticBeanstalk) CreateApplication(input *CreateApplicationInput) (*ApplicationDescriptionMessage, error) { req, out := c.CreateApplicationRequest(input) err := req.Send() @@ -272,6 +355,8 @@ const opCreateApplicationVersion = "CreateApplicationVersion" // value can be used to capture response data after the request's "Send" method // is called. // +// See CreateApplicationVersion for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -306,12 +391,37 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Elastic Beanstalk's +// API operation CreateApplicationVersion for usage and error information. +// +// Returned Error Codes: +// * TooManyApplicationsException +// The specified account has reached its limit of applications. +// +// * TooManyApplicationVersionsException +// The specified account has reached its limit of application versions. +// +// * InsufficientPrivilegesException +// The specified account does not have sufficient privileges for one of more +// AWS services. +// +// * S3LocationNotInServiceRegionException +// The specified S3 bucket does not belong to the S3 region in which the service +// is running. +// func (c *ElasticBeanstalk) CreateApplicationVersion(input *CreateApplicationVersionInput) (*ApplicationVersionDescriptionMessage, error) { req, out := c.CreateApplicationVersionRequest(input) err := req.Send() @@ -325,6 +435,8 @@ const opCreateConfigurationTemplate = "CreateConfigurationTemplate" // value can be used to capture response data after the request's "Send" method // is called. // +// See CreateConfigurationTemplate for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -359,6 +471,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 +480,25 @@ func (c *ElasticBeanstalk) CreateConfigurationTemplateRequest(input *CreateConfi // Related Topics // // DescribeConfigurationOptions DescribeConfigurationSettings ListAvailableSolutionStacks +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Elastic Beanstalk's +// API operation CreateConfigurationTemplate for usage and error information. +// +// Returned Error Codes: +// * InsufficientPrivilegesException +// The specified account does not have sufficient privileges for one of more +// AWS services. +// +// * TooManyBucketsException +// The specified account has reached its limit of Amazon S3 buckets. +// +// * TooManyConfigurationTemplatesException +// The specified account has reached its limit of configuration templates. +// func (c *ElasticBeanstalk) CreateConfigurationTemplate(input *CreateConfigurationTemplateInput) (*ConfigurationSettingsDescription, error) { req, out := c.CreateConfigurationTemplateRequest(input) err := req.Send() @@ -379,6 +512,8 @@ const opCreateEnvironment = "CreateEnvironment" // value can be used to capture response data after the request's "Send" method // is called. // +// See CreateEnvironment for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -413,8 +548,26 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Elastic Beanstalk's +// API operation CreateEnvironment for usage and error information. +// +// Returned Error Codes: +// * TooManyEnvironmentsException +// The specified account has reached its limit of environments. +// +// * InsufficientPrivilegesException +// The specified account does not have sufficient privileges for one of more +// AWS services. +// func (c *ElasticBeanstalk) CreateEnvironment(input *CreateEnvironmentInput) (*EnvironmentDescription, error) { req, out := c.CreateEnvironmentRequest(input) err := req.Send() @@ -428,6 +581,8 @@ const opCreateStorageLocation = "CreateStorageLocation" // value can be used to capture response data after the request's "Send" method // is called. // +// See CreateStorageLocation for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -462,9 +617,30 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Elastic Beanstalk's +// API operation CreateStorageLocation for usage and error information. +// +// Returned Error Codes: +// * TooManyBucketsException +// The specified account has reached its limit of Amazon S3 buckets. +// +// * S3SubscriptionRequiredException +// The specified account does not have a subscription to Amazon S3. +// +// * InsufficientPrivilegesException +// The specified account does not have sufficient privileges for one of more +// AWS services. +// func (c *ElasticBeanstalk) CreateStorageLocation(input *CreateStorageLocationInput) (*CreateStorageLocationOutput, error) { req, out := c.CreateStorageLocationRequest(input) err := req.Send() @@ -478,6 +654,8 @@ const opDeleteApplication = "DeleteApplication" // value can be used to capture response data after the request's "Send" method // is called. // +// See DeleteApplication for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -514,11 +692,26 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Elastic Beanstalk's +// API operation DeleteApplication for usage and error information. +// +// Returned Error Codes: +// * OperationInProgressFailure +// Unable to perform the specified operation because another operation that +// effects an element in this activity is already in progress. +// func (c *ElasticBeanstalk) DeleteApplication(input *DeleteApplicationInput) (*DeleteApplicationOutput, error) { req, out := c.DeleteApplicationRequest(input) err := req.Send() @@ -532,6 +725,8 @@ const opDeleteApplicationVersion = "DeleteApplicationVersion" // value can be used to capture response data after the request's "Send" method // is called. // +// See DeleteApplicationVersion for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -568,10 +763,37 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Elastic Beanstalk's +// API operation DeleteApplicationVersion for usage and error information. +// +// Returned Error Codes: +// * SourceBundleDeletionFailure +// Unable to delete the Amazon S3 source bundle associated with the application +// version. The application version was deleted successfully. +// +// * InsufficientPrivilegesException +// The specified account does not have sufficient privileges for one of more +// AWS services. +// +// * OperationInProgressFailure +// Unable to perform the specified operation because another operation that +// effects an element in this activity is already in progress. +// +// * S3LocationNotInServiceRegionException +// The specified S3 bucket does not belong to the S3 region in which the service +// is running. +// func (c *ElasticBeanstalk) DeleteApplicationVersion(input *DeleteApplicationVersionInput) (*DeleteApplicationVersionOutput, error) { req, out := c.DeleteApplicationVersionRequest(input) err := req.Send() @@ -585,6 +807,8 @@ const opDeleteConfigurationTemplate = "DeleteConfigurationTemplate" // value can be used to capture response data after the request's "Send" method // is called. // +// See DeleteConfigurationTemplate for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -621,11 +845,26 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Elastic Beanstalk's +// API operation DeleteConfigurationTemplate for usage and error information. +// +// Returned Error Codes: +// * OperationInProgressFailure +// Unable to perform the specified operation because another operation that +// effects an element in this activity is already in progress. +// func (c *ElasticBeanstalk) DeleteConfigurationTemplate(input *DeleteConfigurationTemplateInput) (*DeleteConfigurationTemplateOutput, error) { req, out := c.DeleteConfigurationTemplateRequest(input) err := req.Send() @@ -639,6 +878,8 @@ const opDeleteEnvironmentConfiguration = "DeleteEnvironmentConfiguration" // value can be used to capture response data after the request's "Send" method // is called. // +// See DeleteEnvironmentConfiguration for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -675,6 +916,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 +926,13 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Elastic Beanstalk's +// API operation DeleteEnvironmentConfiguration for usage and error information. func (c *ElasticBeanstalk) DeleteEnvironmentConfiguration(input *DeleteEnvironmentConfigurationInput) (*DeleteEnvironmentConfigurationOutput, error) { req, out := c.DeleteEnvironmentConfigurationRequest(input) err := req.Send() @@ -696,6 +946,8 @@ const opDescribeApplicationVersions = "DescribeApplicationVersions" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeApplicationVersions for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -730,8 +982,17 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Elastic Beanstalk's +// API operation DescribeApplicationVersions for usage and error information. func (c *ElasticBeanstalk) DescribeApplicationVersions(input *DescribeApplicationVersionsInput) (*DescribeApplicationVersionsOutput, error) { req, out := c.DescribeApplicationVersionsRequest(input) err := req.Send() @@ -745,6 +1006,8 @@ const opDescribeApplications = "DescribeApplications" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeApplications for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -779,7 +1042,16 @@ func (c *ElasticBeanstalk) DescribeApplicationsRequest(input *DescribeApplicatio return } +// DescribeApplications API operation for AWS Elastic Beanstalk. +// // Returns the descriptions of existing applications. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Elastic Beanstalk's +// API operation DescribeApplications for usage and error information. func (c *ElasticBeanstalk) DescribeApplications(input *DescribeApplicationsInput) (*DescribeApplicationsOutput, error) { req, out := c.DescribeApplicationsRequest(input) err := req.Send() @@ -793,6 +1065,8 @@ const opDescribeConfigurationOptions = "DescribeConfigurationOptions" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeConfigurationOptions for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -827,11 +1101,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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Elastic Beanstalk's +// API operation DescribeConfigurationOptions for usage and error information. +// +// Returned Error Codes: +// * TooManyBucketsException +// The specified account has reached its limit of Amazon S3 buckets. +// func (c *ElasticBeanstalk) DescribeConfigurationOptions(input *DescribeConfigurationOptionsInput) (*DescribeConfigurationOptionsOutput, error) { req, out := c.DescribeConfigurationOptionsRequest(input) err := req.Send() @@ -845,6 +1133,8 @@ const opDescribeConfigurationSettings = "DescribeConfigurationSettings" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeConfigurationSettings for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -879,6 +1169,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 +1184,18 @@ func (c *ElasticBeanstalk) DescribeConfigurationSettingsRequest(input *DescribeC // Related Topics // // DeleteEnvironmentConfiguration +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Elastic Beanstalk's +// API operation DescribeConfigurationSettings for usage and error information. +// +// Returned Error Codes: +// * TooManyBucketsException +// The specified account has reached its limit of Amazon S3 buckets. +// func (c *ElasticBeanstalk) DescribeConfigurationSettings(input *DescribeConfigurationSettingsInput) (*DescribeConfigurationSettingsOutput, error) { req, out := c.DescribeConfigurationSettingsRequest(input) err := req.Send() @@ -905,6 +1209,8 @@ const opDescribeEnvironmentHealth = "DescribeEnvironmentHealth" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeEnvironmentHealth for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -939,9 +1245,27 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Elastic Beanstalk's +// API operation DescribeEnvironmentHealth for usage and error information. +// +// Returned Error Codes: +// * InvalidRequestException +// One or more input parameters is not valid. Please correct the input parameters +// and try the operation again. +// +// * ServiceException +// A generic service exception has occurred. +// func (c *ElasticBeanstalk) DescribeEnvironmentHealth(input *DescribeEnvironmentHealthInput) (*DescribeEnvironmentHealthOutput, error) { req, out := c.DescribeEnvironmentHealthRequest(input) err := req.Send() @@ -955,6 +1279,8 @@ const opDescribeEnvironmentManagedActionHistory = "DescribeEnvironmentManagedAct // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeEnvironmentManagedActionHistory for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -989,7 +1315,21 @@ func (c *ElasticBeanstalk) DescribeEnvironmentManagedActionHistoryRequest(input return } +// DescribeEnvironmentManagedActionHistory API operation for AWS Elastic Beanstalk. +// // Lists an environment's completed and failed managed actions. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Elastic Beanstalk's +// API operation DescribeEnvironmentManagedActionHistory for usage and error information. +// +// Returned Error Codes: +// * ServiceException +// A generic service exception has occurred. +// func (c *ElasticBeanstalk) DescribeEnvironmentManagedActionHistory(input *DescribeEnvironmentManagedActionHistoryInput) (*DescribeEnvironmentManagedActionHistoryOutput, error) { req, out := c.DescribeEnvironmentManagedActionHistoryRequest(input) err := req.Send() @@ -1003,6 +1343,8 @@ const opDescribeEnvironmentManagedActions = "DescribeEnvironmentManagedActions" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeEnvironmentManagedActions for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1037,7 +1379,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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Elastic Beanstalk's +// API operation DescribeEnvironmentManagedActions for usage and error information. +// +// Returned Error Codes: +// * ServiceException +// A generic service exception has occurred. +// func (c *ElasticBeanstalk) DescribeEnvironmentManagedActions(input *DescribeEnvironmentManagedActionsInput) (*DescribeEnvironmentManagedActionsOutput, error) { req, out := c.DescribeEnvironmentManagedActionsRequest(input) err := req.Send() @@ -1051,6 +1407,8 @@ const opDescribeEnvironmentResources = "DescribeEnvironmentResources" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeEnvironmentResources for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1085,7 +1443,22 @@ func (c *ElasticBeanstalk) DescribeEnvironmentResourcesRequest(input *DescribeEn return } +// DescribeEnvironmentResources API operation for AWS Elastic Beanstalk. +// // Returns AWS resources for this environment. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Elastic Beanstalk's +// API operation DescribeEnvironmentResources for usage and error information. +// +// Returned Error Codes: +// * InsufficientPrivilegesException +// The specified account does not have sufficient privileges for one of more +// AWS services. +// func (c *ElasticBeanstalk) DescribeEnvironmentResources(input *DescribeEnvironmentResourcesInput) (*DescribeEnvironmentResourcesOutput, error) { req, out := c.DescribeEnvironmentResourcesRequest(input) err := req.Send() @@ -1099,6 +1472,8 @@ const opDescribeEnvironments = "DescribeEnvironments" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeEnvironments for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1133,7 +1508,16 @@ func (c *ElasticBeanstalk) DescribeEnvironmentsRequest(input *DescribeEnvironmen return } +// DescribeEnvironments API operation for AWS Elastic Beanstalk. +// // Returns descriptions for existing environments. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Elastic Beanstalk's +// API operation DescribeEnvironments for usage and error information. func (c *ElasticBeanstalk) DescribeEnvironments(input *DescribeEnvironmentsInput) (*EnvironmentDescriptionsMessage, error) { req, out := c.DescribeEnvironmentsRequest(input) err := req.Send() @@ -1147,6 +1531,8 @@ const opDescribeEvents = "DescribeEvents" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeEvents for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1187,9 +1573,18 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Elastic Beanstalk's +// API operation DescribeEvents for usage and error information. func (c *ElasticBeanstalk) DescribeEvents(input *DescribeEventsInput) (*DescribeEventsOutput, error) { req, out := c.DescribeEventsRequest(input) err := req.Send() @@ -1228,6 +1623,8 @@ const opDescribeInstancesHealth = "DescribeInstancesHealth" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeInstancesHealth for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1262,9 +1659,27 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Elastic Beanstalk's +// API operation DescribeInstancesHealth for usage and error information. +// +// Returned Error Codes: +// * InvalidRequestException +// One or more input parameters is not valid. Please correct the input parameters +// and try the operation again. +// +// * ServiceException +// A generic service exception has occurred. +// func (c *ElasticBeanstalk) DescribeInstancesHealth(input *DescribeInstancesHealthInput) (*DescribeInstancesHealthOutput, error) { req, out := c.DescribeInstancesHealthRequest(input) err := req.Send() @@ -1278,6 +1693,8 @@ const opListAvailableSolutionStacks = "ListAvailableSolutionStacks" // value can be used to capture response data after the request's "Send" method // is called. // +// See ListAvailableSolutionStacks for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1312,7 +1729,16 @@ func (c *ElasticBeanstalk) ListAvailableSolutionStacksRequest(input *ListAvailab return } +// ListAvailableSolutionStacks API operation for AWS Elastic Beanstalk. +// // Returns a list of the available solution stack names. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Elastic Beanstalk's +// API operation ListAvailableSolutionStacks for usage and error information. func (c *ElasticBeanstalk) ListAvailableSolutionStacks(input *ListAvailableSolutionStacksInput) (*ListAvailableSolutionStacksOutput, error) { req, out := c.ListAvailableSolutionStacksRequest(input) err := req.Send() @@ -1326,6 +1752,8 @@ const opRebuildEnvironment = "RebuildEnvironment" // value can be used to capture response data after the request's "Send" method // is called. // +// See RebuildEnvironment for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1362,8 +1790,23 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Elastic Beanstalk's +// API operation RebuildEnvironment for usage and error information. +// +// Returned Error Codes: +// * InsufficientPrivilegesException +// The specified account does not have sufficient privileges for one of more +// AWS services. +// func (c *ElasticBeanstalk) RebuildEnvironment(input *RebuildEnvironmentInput) (*RebuildEnvironmentOutput, error) { req, out := c.RebuildEnvironmentRequest(input) err := req.Send() @@ -1377,6 +1820,8 @@ const opRequestEnvironmentInfo = "RequestEnvironmentInfo" // value can be used to capture response data after the request's "Send" method // is called. // +// See RequestEnvironmentInfo for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1413,6 +1858,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 +1875,13 @@ func (c *ElasticBeanstalk) RequestEnvironmentInfoRequest(input *RequestEnvironme // Related Topics // // RetrieveEnvironmentInfo +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Elastic Beanstalk's +// API operation RequestEnvironmentInfo for usage and error information. func (c *ElasticBeanstalk) RequestEnvironmentInfo(input *RequestEnvironmentInfoInput) (*RequestEnvironmentInfoOutput, error) { req, out := c.RequestEnvironmentInfoRequest(input) err := req.Send() @@ -1441,6 +1895,8 @@ const opRestartAppServer = "RestartAppServer" // value can be used to capture response data after the request's "Send" method // is called. // +// See RestartAppServer for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1477,8 +1933,17 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Elastic Beanstalk's +// API operation RestartAppServer for usage and error information. func (c *ElasticBeanstalk) RestartAppServer(input *RestartAppServerInput) (*RestartAppServerOutput, error) { req, out := c.RestartAppServerRequest(input) err := req.Send() @@ -1492,6 +1957,8 @@ const opRetrieveEnvironmentInfo = "RetrieveEnvironmentInfo" // value can be used to capture response data after the request's "Send" method // is called. // +// See RetrieveEnvironmentInfo for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1526,11 +1993,20 @@ 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 +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Elastic Beanstalk's +// API operation RetrieveEnvironmentInfo for usage and error information. func (c *ElasticBeanstalk) RetrieveEnvironmentInfo(input *RetrieveEnvironmentInfoInput) (*RetrieveEnvironmentInfoOutput, error) { req, out := c.RetrieveEnvironmentInfoRequest(input) err := req.Send() @@ -1544,6 +2020,8 @@ const opSwapEnvironmentCNAMEs = "SwapEnvironmentCNAMEs" // value can be used to capture response data after the request's "Send" method // is called. // +// See SwapEnvironmentCNAMEs for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1580,7 +2058,16 @@ func (c *ElasticBeanstalk) SwapEnvironmentCNAMEsRequest(input *SwapEnvironmentCN return } +// SwapEnvironmentCNAMEs API operation for AWS Elastic Beanstalk. +// // Swaps the CNAMEs of two environments. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Elastic Beanstalk's +// API operation SwapEnvironmentCNAMEs for usage and error information. func (c *ElasticBeanstalk) SwapEnvironmentCNAMEs(input *SwapEnvironmentCNAMEsInput) (*SwapEnvironmentCNAMEsOutput, error) { req, out := c.SwapEnvironmentCNAMEsRequest(input) err := req.Send() @@ -1594,6 +2081,8 @@ const opTerminateEnvironment = "TerminateEnvironment" // value can be used to capture response data after the request's "Send" method // is called. // +// See TerminateEnvironment for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1628,7 +2117,22 @@ func (c *ElasticBeanstalk) TerminateEnvironmentRequest(input *TerminateEnvironme return } +// TerminateEnvironment API operation for AWS Elastic Beanstalk. +// // Terminates the specified environment. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Elastic Beanstalk's +// API operation TerminateEnvironment for usage and error information. +// +// Returned Error Codes: +// * InsufficientPrivilegesException +// The specified account does not have sufficient privileges for one of more +// AWS services. +// func (c *ElasticBeanstalk) TerminateEnvironment(input *TerminateEnvironmentInput) (*EnvironmentDescription, error) { req, out := c.TerminateEnvironmentRequest(input) err := req.Send() @@ -1642,6 +2146,8 @@ const opUpdateApplication = "UpdateApplication" // value can be used to capture response data after the request's "Send" method // is called. // +// See UpdateApplication for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1676,10 +2182,19 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Elastic Beanstalk's +// API operation UpdateApplication for usage and error information. func (c *ElasticBeanstalk) UpdateApplication(input *UpdateApplicationInput) (*ApplicationDescriptionMessage, error) { req, out := c.UpdateApplicationRequest(input) err := req.Send() @@ -1693,6 +2208,8 @@ const opUpdateApplicationVersion = "UpdateApplicationVersion" // value can be used to capture response data after the request's "Send" method // is called. // +// See UpdateApplicationVersion for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1727,10 +2244,19 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Elastic Beanstalk's +// API operation UpdateApplicationVersion for usage and error information. func (c *ElasticBeanstalk) UpdateApplicationVersion(input *UpdateApplicationVersionInput) (*ApplicationVersionDescriptionMessage, error) { req, out := c.UpdateApplicationVersionRequest(input) err := req.Send() @@ -1744,6 +2270,8 @@ const opUpdateConfigurationTemplate = "UpdateConfigurationTemplate" // value can be used to capture response data after the request's "Send" method // is called. // +// See UpdateConfigurationTemplate for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1778,6 +2306,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 +2316,22 @@ func (c *ElasticBeanstalk) UpdateConfigurationTemplateRequest(input *UpdateConfi // Topics // // DescribeConfigurationOptions +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Elastic Beanstalk's +// API operation UpdateConfigurationTemplate for usage and error information. +// +// Returned Error Codes: +// * InsufficientPrivilegesException +// The specified account does not have sufficient privileges for one of more +// AWS services. +// +// * TooManyBucketsException +// The specified account has reached its limit of Amazon S3 buckets. +// func (c *ElasticBeanstalk) UpdateConfigurationTemplate(input *UpdateConfigurationTemplateInput) (*ConfigurationSettingsDescription, error) { req, out := c.UpdateConfigurationTemplateRequest(input) err := req.Send() @@ -1799,6 +2345,8 @@ const opUpdateEnvironment = "UpdateEnvironment" // value can be used to capture response data after the request's "Send" method // is called. // +// See UpdateEnvironment for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1833,6 +2381,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 +2394,22 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Elastic Beanstalk's +// API operation UpdateEnvironment for usage and error information. +// +// Returned Error Codes: +// * InsufficientPrivilegesException +// The specified account does not have sufficient privileges for one of more +// AWS services. +// +// * TooManyBucketsException +// The specified account has reached its limit of Amazon S3 buckets. +// func (c *ElasticBeanstalk) UpdateEnvironment(input *UpdateEnvironmentInput) (*EnvironmentDescription, error) { req, out := c.UpdateEnvironmentRequest(input) err := req.Send() @@ -1857,6 +2423,8 @@ const opValidateConfigurationSettings = "ValidateConfigurationSettings" // value can be used to capture response data after the request's "Send" method // is called. // +// See ValidateConfigurationSettings for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1891,11 +2459,29 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Elastic Beanstalk's +// API operation ValidateConfigurationSettings for usage and error information. +// +// Returned Error Codes: +// * InsufficientPrivilegesException +// The specified account does not have sufficient privileges for one of more +// AWS services. +// +// * TooManyBucketsException +// The specified account has reached its limit of Amazon S3 buckets. +// 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..665553687eb 100644 --- a/service/elasticsearchservice/api.go +++ b/service/elasticsearchservice/api.go @@ -20,6 +20,8 @@ const opAddTags = "AddTags" // value can be used to capture response data after the request's "Send" method // is called. // +// See AddTags for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -56,10 +58,37 @@ 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) +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elasticsearch Service's +// API operation AddTags for usage and error information. +// +// Returned Error Codes: +// * BaseException +// An error occurred while processing the request. +// +// * LimitExceededException +// An exception for trying to create more than allowed resources or sub-resources. +// Gives http status code of 409. +// +// * ValidationException +// An exception for missing / invalid input fields. Gives http status code of +// 400. +// +// * InternalException +// The request processing has failed because of an unknown error, exception +// or failure (the failure is internal to the service) . Gives http status code +// of 500. +// func (c *ElasticsearchService) AddTags(input *AddTagsInput) (*AddTagsOutput, error) { req, out := c.AddTagsRequest(input) err := req.Send() @@ -73,6 +102,8 @@ const opCreateElasticsearchDomain = "CreateElasticsearchDomain" // value can be used to capture response data after the request's "Send" method // is called. // +// See CreateElasticsearchDomain for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -107,9 +138,48 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elasticsearch Service's +// API operation CreateElasticsearchDomain for usage and error information. +// +// Returned Error Codes: +// * BaseException +// An error occurred while processing the request. +// +// * DisabledOperationException +// An error occured because the client wanted to access a not supported operation. +// Gives http status code of 409. +// +// * InternalException +// The request processing has failed because of an unknown error, exception +// or failure (the failure is internal to the service) . Gives http status code +// of 500. +// +// * InvalidTypeException +// An exception for trying to create or access sub-resource that is either invalid +// or not supported. Gives http status code of 409. +// +// * LimitExceededException +// An exception for trying to create more than allowed resources or sub-resources. +// Gives http status code of 409. +// +// * ResourceAlreadyExistsException +// An exception for creating a resource that already exists. Gives http status +// code of 400. +// +// * ValidationException +// An exception for missing / invalid input fields. Gives http status code of +// 400. +// func (c *ElasticsearchService) CreateElasticsearchDomain(input *CreateElasticsearchDomainInput) (*CreateElasticsearchDomainOutput, error) { req, out := c.CreateElasticsearchDomainRequest(input) err := req.Send() @@ -123,6 +193,8 @@ const opDeleteElasticsearchDomain = "DeleteElasticsearchDomain" // value can be used to capture response data after the request's "Send" method // is called. // +// See DeleteElasticsearchDomain for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -157,8 +229,35 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elasticsearch Service's +// API operation DeleteElasticsearchDomain for usage and error information. +// +// Returned Error Codes: +// * BaseException +// An error occurred while processing the request. +// +// * InternalException +// The request processing has failed because of an unknown error, exception +// or failure (the failure is internal to the service) . Gives http status code +// of 500. +// +// * ResourceNotFoundException +// An exception for accessing or deleting a resource that does not exist. Gives +// http status code of 400. +// +// * ValidationException +// An exception for missing / invalid input fields. Gives http status code of +// 400. +// func (c *ElasticsearchService) DeleteElasticsearchDomain(input *DeleteElasticsearchDomainInput) (*DeleteElasticsearchDomainOutput, error) { req, out := c.DeleteElasticsearchDomainRequest(input) err := req.Send() @@ -172,6 +271,8 @@ const opDescribeElasticsearchDomain = "DescribeElasticsearchDomain" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeElasticsearchDomain for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -206,8 +307,35 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elasticsearch Service's +// API operation DescribeElasticsearchDomain for usage and error information. +// +// Returned Error Codes: +// * BaseException +// An error occurred while processing the request. +// +// * InternalException +// The request processing has failed because of an unknown error, exception +// or failure (the failure is internal to the service) . Gives http status code +// of 500. +// +// * ResourceNotFoundException +// An exception for accessing or deleting a resource that does not exist. Gives +// http status code of 400. +// +// * ValidationException +// An exception for missing / invalid input fields. Gives http status code of +// 400. +// func (c *ElasticsearchService) DescribeElasticsearchDomain(input *DescribeElasticsearchDomainInput) (*DescribeElasticsearchDomainOutput, error) { req, out := c.DescribeElasticsearchDomainRequest(input) err := req.Send() @@ -221,6 +349,8 @@ const opDescribeElasticsearchDomainConfig = "DescribeElasticsearchDomainConfig" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeElasticsearchDomainConfig for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -255,9 +385,36 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elasticsearch Service's +// API operation DescribeElasticsearchDomainConfig for usage and error information. +// +// Returned Error Codes: +// * BaseException +// An error occurred while processing the request. +// +// * InternalException +// The request processing has failed because of an unknown error, exception +// or failure (the failure is internal to the service) . Gives http status code +// of 500. +// +// * ResourceNotFoundException +// An exception for accessing or deleting a resource that does not exist. Gives +// http status code of 400. +// +// * ValidationException +// An exception for missing / invalid input fields. Gives http status code of +// 400. +// func (c *ElasticsearchService) DescribeElasticsearchDomainConfig(input *DescribeElasticsearchDomainConfigInput) (*DescribeElasticsearchDomainConfigOutput, error) { req, out := c.DescribeElasticsearchDomainConfigRequest(input) err := req.Send() @@ -271,6 +428,8 @@ const opDescribeElasticsearchDomains = "DescribeElasticsearchDomains" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeElasticsearchDomains for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -305,8 +464,31 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elasticsearch Service's +// API operation DescribeElasticsearchDomains for usage and error information. +// +// Returned Error Codes: +// * BaseException +// An error occurred while processing the request. +// +// * InternalException +// The request processing has failed because of an unknown error, exception +// or failure (the failure is internal to the service) . Gives http status code +// of 500. +// +// * ValidationException +// An exception for missing / invalid input fields. Gives http status code of +// 400. +// func (c *ElasticsearchService) DescribeElasticsearchDomains(input *DescribeElasticsearchDomainsInput) (*DescribeElasticsearchDomainsOutput, error) { req, out := c.DescribeElasticsearchDomainsRequest(input) err := req.Send() @@ -320,6 +502,8 @@ const opListDomainNames = "ListDomainNames" // value can be used to capture response data after the request's "Send" method // is called. // +// See ListDomainNames for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -354,8 +538,26 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elasticsearch Service's +// API operation ListDomainNames for usage and error information. +// +// Returned Error Codes: +// * BaseException +// An error occurred while processing the request. +// +// * ValidationException +// An exception for missing / invalid input fields. Gives http status code of +// 400. +// func (c *ElasticsearchService) ListDomainNames(input *ListDomainNamesInput) (*ListDomainNamesOutput, error) { req, out := c.ListDomainNamesRequest(input) err := req.Send() @@ -369,6 +571,8 @@ const opListTags = "ListTags" // value can be used to capture response data after the request's "Send" method // is called. // +// See ListTags for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -403,7 +607,34 @@ func (c *ElasticsearchService) ListTagsRequest(input *ListTagsInput) (req *reque return } +// ListTags API operation for Amazon Elasticsearch Service. +// // Returns all tags for the given Elasticsearch domain. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elasticsearch Service's +// API operation ListTags for usage and error information. +// +// Returned Error Codes: +// * BaseException +// An error occurred while processing the request. +// +// * ResourceNotFoundException +// An exception for accessing or deleting a resource that does not exist. Gives +// http status code of 400. +// +// * ValidationException +// An exception for missing / invalid input fields. Gives http status code of +// 400. +// +// * InternalException +// The request processing has failed because of an unknown error, exception +// or failure (the failure is internal to the service) . Gives http status code +// of 500. +// func (c *ElasticsearchService) ListTags(input *ListTagsInput) (*ListTagsOutput, error) { req, out := c.ListTagsRequest(input) err := req.Send() @@ -417,6 +648,8 @@ const opRemoveTags = "RemoveTags" // value can be used to capture response data after the request's "Send" method // is called. // +// See RemoveTags for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -453,7 +686,30 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elasticsearch Service's +// API operation RemoveTags for usage and error information. +// +// Returned Error Codes: +// * BaseException +// An error occurred while processing the request. +// +// * ValidationException +// An exception for missing / invalid input fields. Gives http status code of +// 400. +// +// * InternalException +// The request processing has failed because of an unknown error, exception +// or failure (the failure is internal to the service) . Gives http status code +// of 500. +// func (c *ElasticsearchService) RemoveTags(input *RemoveTagsInput) (*RemoveTagsOutput, error) { req, out := c.RemoveTagsRequest(input) err := req.Send() @@ -467,6 +723,8 @@ const opUpdateElasticsearchDomainConfig = "UpdateElasticsearchDomainConfig" // value can be used to capture response data after the request's "Send" method // is called. // +// See UpdateElasticsearchDomainConfig for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -501,8 +759,43 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elasticsearch Service's +// API operation UpdateElasticsearchDomainConfig for usage and error information. +// +// Returned Error Codes: +// * BaseException +// An error occurred while processing the request. +// +// * InternalException +// The request processing has failed because of an unknown error, exception +// or failure (the failure is internal to the service) . Gives http status code +// of 500. +// +// * InvalidTypeException +// An exception for trying to create or access sub-resource that is either invalid +// or not supported. Gives http status code of 409. +// +// * LimitExceededException +// An exception for trying to create more than allowed resources or sub-resources. +// Gives http status code of 409. +// +// * ResourceNotFoundException +// An exception for accessing or deleting a resource that does not exist. Gives +// http status code of 400. +// +// * ValidationException +// An exception for missing / invalid input fields. Gives http status code of +// 400. +// 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..5d60f2c00d4 100644 --- a/service/elastictranscoder/api.go +++ b/service/elastictranscoder/api.go @@ -17,6 +17,8 @@ const opCancelJob = "CancelJob" // value can be used to capture response data after the request's "Send" method // is called. // +// See CancelJob for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -51,11 +53,44 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic Transcoder's +// API operation CancelJob for usage and error information. +// +// Returned Error Codes: +// * ValidationException +// One or more required parameter values were not provided in the request. +// +// * IncompatibleVersionException + +// +// * ResourceNotFoundException +// The requested resource does not exist or is not available. For example, the +// pipeline to which you're trying to add a job doesn't exist or is still being +// created. +// +// * ResourceInUseException +// The resource you are attempting to change is in use. For example, you are +// attempting to delete a pipeline that is currently in use. +// +// * AccessDeniedException +// General authentication failure. The request was not signed correctly. +// +// * InternalServiceException +// Elastic Transcoder encountered an unexpected exception while trying to fulfill +// the request. +// func (c *ElasticTranscoder) CancelJob(input *CancelJobInput) (*CancelJobOutput, error) { req, out := c.CancelJobRequest(input) err := req.Send() @@ -69,6 +104,8 @@ const opCreateJob = "CreateJob" // value can be used to capture response data after the request's "Send" method // is called. // +// See CreateJob for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -103,6 +140,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 +149,37 @@ 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). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic Transcoder's +// API operation CreateJob for usage and error information. +// +// Returned Error Codes: +// * ValidationException +// One or more required parameter values were not provided in the request. +// +// * IncompatibleVersionException + +// +// * ResourceNotFoundException +// The requested resource does not exist or is not available. For example, the +// pipeline to which you're trying to add a job doesn't exist or is still being +// created. +// +// * AccessDeniedException +// General authentication failure. The request was not signed correctly. +// +// * LimitExceededException +// Too many operations for a given AWS account. For example, the number of pipelines +// exceeds the maximum allowed. +// +// * InternalServiceException +// Elastic Transcoder encountered an unexpected exception while trying to fulfill +// the request. +// func (c *ElasticTranscoder) CreateJob(input *CreateJobInput) (*CreateJobResponse, error) { req, out := c.CreateJobRequest(input) err := req.Send() @@ -123,6 +193,8 @@ const opCreatePipeline = "CreatePipeline" // value can be used to capture response data after the request's "Send" method // is called. // +// See CreatePipeline for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -157,7 +229,40 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic Transcoder's +// API operation CreatePipeline for usage and error information. +// +// Returned Error Codes: +// * ValidationException +// One or more required parameter values were not provided in the request. +// +// * IncompatibleVersionException + +// +// * AccessDeniedException +// General authentication failure. The request was not signed correctly. +// +// * ResourceNotFoundException +// The requested resource does not exist or is not available. For example, the +// pipeline to which you're trying to add a job doesn't exist or is still being +// created. +// +// * LimitExceededException +// Too many operations for a given AWS account. For example, the number of pipelines +// exceeds the maximum allowed. +// +// * InternalServiceException +// Elastic Transcoder encountered an unexpected exception while trying to fulfill +// the request. +// func (c *ElasticTranscoder) CreatePipeline(input *CreatePipelineInput) (*CreatePipelineOutput, error) { req, out := c.CreatePipelineRequest(input) err := req.Send() @@ -171,6 +276,8 @@ const opCreatePreset = "CreatePreset" // value can be used to capture response data after the request's "Send" method // is called. // +// See CreatePreset for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -205,6 +312,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 +329,32 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic Transcoder's +// API operation CreatePreset for usage and error information. +// +// Returned Error Codes: +// * ValidationException +// One or more required parameter values were not provided in the request. +// +// * IncompatibleVersionException + +// +// * AccessDeniedException +// General authentication failure. The request was not signed correctly. +// +// * LimitExceededException +// Too many operations for a given AWS account. For example, the number of pipelines +// exceeds the maximum allowed. +// +// * InternalServiceException +// Elastic Transcoder encountered an unexpected exception while trying to fulfill +// the request. +// func (c *ElasticTranscoder) CreatePreset(input *CreatePresetInput) (*CreatePresetOutput, error) { req, out := c.CreatePresetRequest(input) err := req.Send() @@ -233,6 +368,8 @@ const opDeletePipeline = "DeletePipeline" // value can be used to capture response data after the request's "Send" method // is called. // +// See DeletePipeline for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -267,11 +404,44 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic Transcoder's +// API operation DeletePipeline for usage and error information. +// +// Returned Error Codes: +// * ValidationException +// One or more required parameter values were not provided in the request. +// +// * IncompatibleVersionException + +// +// * ResourceNotFoundException +// The requested resource does not exist or is not available. For example, the +// pipeline to which you're trying to add a job doesn't exist or is still being +// created. +// +// * ResourceInUseException +// The resource you are attempting to change is in use. For example, you are +// attempting to delete a pipeline that is currently in use. +// +// * AccessDeniedException +// General authentication failure. The request was not signed correctly. +// +// * InternalServiceException +// Elastic Transcoder encountered an unexpected exception while trying to fulfill +// the request. +// func (c *ElasticTranscoder) DeletePipeline(input *DeletePipelineInput) (*DeletePipelineOutput, error) { req, out := c.DeletePipelineRequest(input) err := req.Send() @@ -285,6 +455,8 @@ const opDeletePreset = "DeletePreset" // value can be used to capture response data after the request's "Send" method // is called. // +// See DeletePreset for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -319,9 +491,38 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic Transcoder's +// API operation DeletePreset for usage and error information. +// +// Returned Error Codes: +// * ValidationException +// One or more required parameter values were not provided in the request. +// +// * IncompatibleVersionException + +// +// * ResourceNotFoundException +// The requested resource does not exist or is not available. For example, the +// pipeline to which you're trying to add a job doesn't exist or is still being +// created. +// +// * AccessDeniedException +// General authentication failure. The request was not signed correctly. +// +// * InternalServiceException +// Elastic Transcoder encountered an unexpected exception while trying to fulfill +// the request. +// func (c *ElasticTranscoder) DeletePreset(input *DeletePresetInput) (*DeletePresetOutput, error) { req, out := c.DeletePresetRequest(input) err := req.Send() @@ -335,6 +536,8 @@ const opListJobsByPipeline = "ListJobsByPipeline" // value can be used to capture response data after the request's "Send" method // is called. // +// See ListJobsByPipeline for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -375,11 +578,40 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic Transcoder's +// API operation ListJobsByPipeline for usage and error information. +// +// Returned Error Codes: +// * ValidationException +// One or more required parameter values were not provided in the request. +// +// * IncompatibleVersionException + +// +// * ResourceNotFoundException +// The requested resource does not exist or is not available. For example, the +// pipeline to which you're trying to add a job doesn't exist or is still being +// created. +// +// * AccessDeniedException +// General authentication failure. The request was not signed correctly. +// +// * InternalServiceException +// Elastic Transcoder encountered an unexpected exception while trying to fulfill +// the request. +// func (c *ElasticTranscoder) ListJobsByPipeline(input *ListJobsByPipelineInput) (*ListJobsByPipelineOutput, error) { req, out := c.ListJobsByPipelineRequest(input) err := req.Send() @@ -418,6 +650,8 @@ const opListJobsByStatus = "ListJobsByStatus" // value can be used to capture response data after the request's "Send" method // is called. // +// See ListJobsByStatus for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -458,9 +692,38 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic Transcoder's +// API operation ListJobsByStatus for usage and error information. +// +// Returned Error Codes: +// * ValidationException +// One or more required parameter values were not provided in the request. +// +// * IncompatibleVersionException + +// +// * ResourceNotFoundException +// The requested resource does not exist or is not available. For example, the +// pipeline to which you're trying to add a job doesn't exist or is still being +// created. +// +// * AccessDeniedException +// General authentication failure. The request was not signed correctly. +// +// * InternalServiceException +// Elastic Transcoder encountered an unexpected exception while trying to fulfill +// the request. +// func (c *ElasticTranscoder) ListJobsByStatus(input *ListJobsByStatusInput) (*ListJobsByStatusOutput, error) { req, out := c.ListJobsByStatusRequest(input) err := req.Send() @@ -499,6 +762,8 @@ const opListPipelines = "ListPipelines" // value can be used to capture response data after the request's "Send" method // is called. // +// See ListPipelines for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -539,8 +804,32 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic Transcoder's +// API operation ListPipelines for usage and error information. +// +// Returned Error Codes: +// * ValidationException +// One or more required parameter values were not provided in the request. +// +// * IncompatibleVersionException + +// +// * AccessDeniedException +// General authentication failure. The request was not signed correctly. +// +// * InternalServiceException +// Elastic Transcoder encountered an unexpected exception while trying to fulfill +// the request. +// func (c *ElasticTranscoder) ListPipelines(input *ListPipelinesInput) (*ListPipelinesOutput, error) { req, out := c.ListPipelinesRequest(input) err := req.Send() @@ -579,6 +868,8 @@ const opListPresets = "ListPresets" // value can be used to capture response data after the request's "Send" method // is called. // +// See ListPresets for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -619,8 +910,32 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic Transcoder's +// API operation ListPresets for usage and error information. +// +// Returned Error Codes: +// * ValidationException +// One or more required parameter values were not provided in the request. +// +// * IncompatibleVersionException + +// +// * AccessDeniedException +// General authentication failure. The request was not signed correctly. +// +// * InternalServiceException +// Elastic Transcoder encountered an unexpected exception while trying to fulfill +// the request. +// func (c *ElasticTranscoder) ListPresets(input *ListPresetsInput) (*ListPresetsOutput, error) { req, out := c.ListPresetsRequest(input) err := req.Send() @@ -659,6 +974,8 @@ const opReadJob = "ReadJob" // value can be used to capture response data after the request's "Send" method // is called. // +// See ReadJob for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -693,7 +1010,36 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic Transcoder's +// API operation ReadJob for usage and error information. +// +// Returned Error Codes: +// * ValidationException +// One or more required parameter values were not provided in the request. +// +// * IncompatibleVersionException + +// +// * ResourceNotFoundException +// The requested resource does not exist or is not available. For example, the +// pipeline to which you're trying to add a job doesn't exist or is still being +// created. +// +// * AccessDeniedException +// General authentication failure. The request was not signed correctly. +// +// * InternalServiceException +// Elastic Transcoder encountered an unexpected exception while trying to fulfill +// the request. +// func (c *ElasticTranscoder) ReadJob(input *ReadJobInput) (*ReadJobOutput, error) { req, out := c.ReadJobRequest(input) err := req.Send() @@ -707,6 +1053,8 @@ const opReadPipeline = "ReadPipeline" // value can be used to capture response data after the request's "Send" method // is called. // +// See ReadPipeline for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -741,7 +1089,36 @@ func (c *ElasticTranscoder) ReadPipelineRequest(input *ReadPipelineInput) (req * return } +// ReadPipeline API operation for Amazon Elastic Transcoder. +// // The ReadPipeline operation gets detailed information about a pipeline. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic Transcoder's +// API operation ReadPipeline for usage and error information. +// +// Returned Error Codes: +// * ValidationException +// One or more required parameter values were not provided in the request. +// +// * IncompatibleVersionException + +// +// * ResourceNotFoundException +// The requested resource does not exist or is not available. For example, the +// pipeline to which you're trying to add a job doesn't exist or is still being +// created. +// +// * AccessDeniedException +// General authentication failure. The request was not signed correctly. +// +// * InternalServiceException +// Elastic Transcoder encountered an unexpected exception while trying to fulfill +// the request. +// func (c *ElasticTranscoder) ReadPipeline(input *ReadPipelineInput) (*ReadPipelineOutput, error) { req, out := c.ReadPipelineRequest(input) err := req.Send() @@ -755,6 +1132,8 @@ const opReadPreset = "ReadPreset" // value can be used to capture response data after the request's "Send" method // is called. // +// See ReadPreset for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -789,7 +1168,36 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic Transcoder's +// API operation ReadPreset for usage and error information. +// +// Returned Error Codes: +// * ValidationException +// One or more required parameter values were not provided in the request. +// +// * IncompatibleVersionException + +// +// * ResourceNotFoundException +// The requested resource does not exist or is not available. For example, the +// pipeline to which you're trying to add a job doesn't exist or is still being +// created. +// +// * AccessDeniedException +// General authentication failure. The request was not signed correctly. +// +// * InternalServiceException +// Elastic Transcoder encountered an unexpected exception while trying to fulfill +// the request. +// func (c *ElasticTranscoder) ReadPreset(input *ReadPresetInput) (*ReadPresetOutput, error) { req, out := c.ReadPresetRequest(input) err := req.Send() @@ -803,6 +1211,8 @@ const opTestRole = "TestRole" // value can be used to capture response data after the request's "Send" method // is called. // +// See TestRole for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -837,6 +1247,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 +1256,33 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic Transcoder's +// API operation TestRole for usage and error information. +// +// Returned Error Codes: +// * ValidationException +// One or more required parameter values were not provided in the request. +// +// * IncompatibleVersionException + +// +// * ResourceNotFoundException +// The requested resource does not exist or is not available. For example, the +// pipeline to which you're trying to add a job doesn't exist or is still being +// created. +// +// * AccessDeniedException +// General authentication failure. The request was not signed correctly. +// +// * InternalServiceException +// Elastic Transcoder encountered an unexpected exception while trying to fulfill +// the request. +// func (c *ElasticTranscoder) TestRole(input *TestRoleInput) (*TestRoleOutput, error) { req, out := c.TestRoleRequest(input) err := req.Send() @@ -857,6 +1296,8 @@ const opUpdatePipeline = "UpdatePipeline" // value can be used to capture response data after the request's "Send" method // is called. // +// See UpdatePipeline for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -891,11 +1332,44 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic Transcoder's +// API operation UpdatePipeline for usage and error information. +// +// Returned Error Codes: +// * ValidationException +// One or more required parameter values were not provided in the request. +// +// * IncompatibleVersionException + +// +// * AccessDeniedException +// General authentication failure. The request was not signed correctly. +// +// * ResourceInUseException +// The resource you are attempting to change is in use. For example, you are +// attempting to delete a pipeline that is currently in use. +// +// * ResourceNotFoundException +// The requested resource does not exist or is not available. For example, the +// pipeline to which you're trying to add a job doesn't exist or is still being +// created. +// +// * InternalServiceException +// Elastic Transcoder encountered an unexpected exception while trying to fulfill +// the request. +// func (c *ElasticTranscoder) UpdatePipeline(input *UpdatePipelineInput) (*UpdatePipelineOutput, error) { req, out := c.UpdatePipelineRequest(input) err := req.Send() @@ -909,6 +1383,8 @@ const opUpdatePipelineNotifications = "UpdatePipelineNotifications" // value can be used to capture response data after the request's "Send" method // is called. // +// See UpdatePipelineNotifications for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -943,11 +1419,44 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic Transcoder's +// API operation UpdatePipelineNotifications for usage and error information. +// +// Returned Error Codes: +// * ValidationException +// One or more required parameter values were not provided in the request. +// +// * IncompatibleVersionException + +// +// * ResourceNotFoundException +// The requested resource does not exist or is not available. For example, the +// pipeline to which you're trying to add a job doesn't exist or is still being +// created. +// +// * ResourceInUseException +// The resource you are attempting to change is in use. For example, you are +// attempting to delete a pipeline that is currently in use. +// +// * AccessDeniedException +// General authentication failure. The request was not signed correctly. +// +// * InternalServiceException +// Elastic Transcoder encountered an unexpected exception while trying to fulfill +// the request. +// func (c *ElasticTranscoder) UpdatePipelineNotifications(input *UpdatePipelineNotificationsInput) (*UpdatePipelineNotificationsOutput, error) { req, out := c.UpdatePipelineNotificationsRequest(input) err := req.Send() @@ -961,6 +1470,8 @@ const opUpdatePipelineStatus = "UpdatePipelineStatus" // value can be used to capture response data after the request's "Send" method // is called. // +// See UpdatePipelineStatus for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -995,6 +1506,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 +1516,37 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic Transcoder's +// API operation UpdatePipelineStatus for usage and error information. +// +// Returned Error Codes: +// * ValidationException +// One or more required parameter values were not provided in the request. +// +// * IncompatibleVersionException + +// +// * ResourceNotFoundException +// The requested resource does not exist or is not available. For example, the +// pipeline to which you're trying to add a job doesn't exist or is still being +// created. +// +// * ResourceInUseException +// The resource you are attempting to change is in use. For example, you are +// attempting to delete a pipeline that is currently in use. +// +// * AccessDeniedException +// General authentication failure. The request was not signed correctly. +// +// * InternalServiceException +// Elastic Transcoder encountered an unexpected exception while trying to fulfill +// the request. +// 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..025f5e53e6b 100644 --- a/service/elb/api.go +++ b/service/elb/api.go @@ -18,6 +18,8 @@ const opAddTags = "AddTags" // value can be used to capture response data after the request's "Send" method // is called. // +// See AddTags for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -52,6 +54,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 +64,25 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Elastic Load Balancing's +// API operation AddTags for usage and error information. +// +// Returned Error Codes: +// * LoadBalancerNotFound +// The specified load balancer does not exist. +// +// * TooManyTags +// The quota for the number of tags that can be assigned to a load balancer +// has been reached. +// +// * DuplicateTagKeys +// A tag key was specified more than once. +// func (c *ELB) AddTags(input *AddTagsInput) (*AddTagsOutput, error) { req, out := c.AddTagsRequest(input) err := req.Send() @@ -73,6 +96,8 @@ const opApplySecurityGroupsToLoadBalancer = "ApplySecurityGroupsToLoadBalancer" // value can be used to capture response data after the request's "Send" method // is called. // +// See ApplySecurityGroupsToLoadBalancer for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -107,12 +132,32 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Elastic Load Balancing's +// API operation ApplySecurityGroupsToLoadBalancer for usage and error information. +// +// Returned Error Codes: +// * LoadBalancerNotFound +// The specified load balancer does not exist. +// +// * InvalidConfigurationRequest +// The requested configuration change is not valid. +// +// * InvalidSecurityGroup +// One or more of the specified security groups do not exist. +// func (c *ELB) ApplySecurityGroupsToLoadBalancer(input *ApplySecurityGroupsToLoadBalancerInput) (*ApplySecurityGroupsToLoadBalancerOutput, error) { req, out := c.ApplySecurityGroupsToLoadBalancerRequest(input) err := req.Send() @@ -126,6 +171,8 @@ const opAttachLoadBalancerToSubnets = "AttachLoadBalancerToSubnets" // value can be used to capture response data after the request's "Send" method // is called. // +// See AttachLoadBalancerToSubnets for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -160,6 +207,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 +216,27 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Elastic Load Balancing's +// API operation AttachLoadBalancerToSubnets for usage and error information. +// +// Returned Error Codes: +// * LoadBalancerNotFound +// The specified load balancer does not exist. +// +// * InvalidConfigurationRequest +// The requested configuration change is not valid. +// +// * SubnetNotFound +// One or more of the specified subnets do not exist. +// +// * InvalidSubnet +// The specified VPC has no associated Internet gateway. +// func (c *ELB) AttachLoadBalancerToSubnets(input *AttachLoadBalancerToSubnetsInput) (*AttachLoadBalancerToSubnetsOutput, error) { req, out := c.AttachLoadBalancerToSubnetsRequest(input) err := req.Send() @@ -180,6 +250,8 @@ const opConfigureHealthCheck = "ConfigureHealthCheck" // value can be used to capture response data after the request's "Send" method // is called. // +// See ConfigureHealthCheck for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -214,12 +286,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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Elastic Load Balancing's +// API operation ConfigureHealthCheck for usage and error information. +// +// Returned Error Codes: +// * LoadBalancerNotFound +// The specified load balancer does not exist. +// func (c *ELB) ConfigureHealthCheck(input *ConfigureHealthCheckInput) (*ConfigureHealthCheckOutput, error) { req, out := c.ConfigureHealthCheckRequest(input) err := req.Send() @@ -233,6 +319,8 @@ const opCreateAppCookieStickinessPolicy = "CreateAppCookieStickinessPolicy" // value can be used to capture response data after the request's "Send" method // is called. // +// See CreateAppCookieStickinessPolicy for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -267,6 +355,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 +372,27 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Elastic Load Balancing's +// API operation CreateAppCookieStickinessPolicy for usage and error information. +// +// Returned Error Codes: +// * LoadBalancerNotFound +// The specified load balancer does not exist. +// +// * DuplicatePolicyName +// A policy with the specified name already exists for this load balancer. +// +// * TooManyPolicies +// The quota for the number of policies for this load balancer has been reached. +// +// * InvalidConfigurationRequest +// The requested configuration change is not valid. +// func (c *ELB) CreateAppCookieStickinessPolicy(input *CreateAppCookieStickinessPolicyInput) (*CreateAppCookieStickinessPolicyOutput, error) { req, out := c.CreateAppCookieStickinessPolicyRequest(input) err := req.Send() @@ -295,6 +406,8 @@ const opCreateLBCookieStickinessPolicy = "CreateLBCookieStickinessPolicy" // value can be used to capture response data after the request's "Send" method // is called. // +// See CreateLBCookieStickinessPolicy for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -329,6 +442,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 +461,27 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Elastic Load Balancing's +// API operation CreateLBCookieStickinessPolicy for usage and error information. +// +// Returned Error Codes: +// * LoadBalancerNotFound +// The specified load balancer does not exist. +// +// * DuplicatePolicyName +// A policy with the specified name already exists for this load balancer. +// +// * TooManyPolicies +// The quota for the number of policies for this load balancer has been reached. +// +// * InvalidConfigurationRequest +// The requested configuration change is not valid. +// func (c *ELB) CreateLBCookieStickinessPolicy(input *CreateLBCookieStickinessPolicyInput) (*CreateLBCookieStickinessPolicyOutput, error) { req, out := c.CreateLBCookieStickinessPolicyRequest(input) err := req.Send() @@ -359,6 +495,8 @@ const opCreateLoadBalancer = "CreateLoadBalancer" // value can be used to capture response data after the request's "Send" method // is called. // +// See CreateLoadBalancer for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -393,6 +531,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 +546,53 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Elastic Load Balancing's +// API operation CreateLoadBalancer for usage and error information. +// +// Returned Error Codes: +// * DuplicateLoadBalancerName +// The specified load balancer name already exists for this account. +// +// * TooManyLoadBalancers +// The quota for the number of load balancers has been reached. +// +// * CertificateNotFound +// The specified ARN does not refer to a valid SSL certificate in AWS Identity +// and Access Management (IAM) or AWS Certificate Manager (ACM). Note that if +// you recently uploaded the certificate to IAM, this error might indicate that +// the certificate is not fully available yet. +// +// * InvalidConfigurationRequest +// The requested configuration change is not valid. +// +// * SubnetNotFound +// One or more of the specified subnets do not exist. +// +// * InvalidSubnet +// The specified VPC has no associated Internet gateway. +// +// * InvalidSecurityGroup +// One or more of the specified security groups do not exist. +// +// * InvalidScheme +// The specified value for the schema is not valid. You can only specify a scheme +// for load balancers in a VPC. +// +// * TooManyTags +// The quota for the number of tags that can be assigned to a load balancer +// has been reached. +// +// * DuplicateTagKeys +// A tag key was specified more than once. +// +// * UnsupportedProtocol + +// func (c *ELB) CreateLoadBalancer(input *CreateLoadBalancerInput) (*CreateLoadBalancerOutput, error) { req, out := c.CreateLoadBalancerRequest(input) err := req.Send() @@ -419,6 +606,8 @@ const opCreateLoadBalancerListeners = "CreateLoadBalancerListeners" // value can be used to capture response data after the request's "Send" method // is called. // +// See CreateLoadBalancerListeners for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -453,6 +642,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 +651,34 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Elastic Load Balancing's +// API operation CreateLoadBalancerListeners for usage and error information. +// +// Returned Error Codes: +// * LoadBalancerNotFound +// The specified load balancer does not exist. +// +// * DuplicateListener +// A listener already exists for the specified load balancer name and port, +// but with a different instance port, protocol, or SSL certificate. +// +// * CertificateNotFound +// The specified ARN does not refer to a valid SSL certificate in AWS Identity +// and Access Management (IAM) or AWS Certificate Manager (ACM). Note that if +// you recently uploaded the certificate to IAM, this error might indicate that +// the certificate is not fully available yet. +// +// * InvalidConfigurationRequest +// The requested configuration change is not valid. +// +// * UnsupportedProtocol + +// func (c *ELB) CreateLoadBalancerListeners(input *CreateLoadBalancerListenersInput) (*CreateLoadBalancerListenersOutput, error) { req, out := c.CreateLoadBalancerListenersRequest(input) err := req.Send() @@ -473,6 +692,8 @@ const opCreateLoadBalancerPolicy = "CreateLoadBalancerPolicy" // value can be used to capture response data after the request's "Send" method // is called. // +// See CreateLoadBalancerPolicy for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -507,11 +728,37 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Elastic Load Balancing's +// API operation CreateLoadBalancerPolicy for usage and error information. +// +// Returned Error Codes: +// * LoadBalancerNotFound +// The specified load balancer does not exist. +// +// * PolicyTypeNotFound +// One or more of the specified policy types do not exist. +// +// * DuplicatePolicyName +// A policy with the specified name already exists for this load balancer. +// +// * TooManyPolicies +// The quota for the number of policies for this load balancer has been reached. +// +// * InvalidConfigurationRequest +// The requested configuration change is not valid. +// func (c *ELB) CreateLoadBalancerPolicy(input *CreateLoadBalancerPolicyInput) (*CreateLoadBalancerPolicyOutput, error) { req, out := c.CreateLoadBalancerPolicyRequest(input) err := req.Send() @@ -525,6 +772,8 @@ const opDeleteLoadBalancer = "DeleteLoadBalancer" // value can be used to capture response data after the request's "Send" method // is called. // +// See DeleteLoadBalancer for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -559,6 +808,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 +820,13 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Elastic Load Balancing's +// API operation DeleteLoadBalancer for usage and error information. func (c *ELB) DeleteLoadBalancer(input *DeleteLoadBalancerInput) (*DeleteLoadBalancerOutput, error) { req, out := c.DeleteLoadBalancerRequest(input) err := req.Send() @@ -582,6 +840,8 @@ const opDeleteLoadBalancerListeners = "DeleteLoadBalancerListeners" // value can be used to capture response data after the request's "Send" method // is called. // +// See DeleteLoadBalancerListeners for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -616,7 +876,21 @@ func (c *ELB) DeleteLoadBalancerListenersRequest(input *DeleteLoadBalancerListen return } +// DeleteLoadBalancerListeners API operation for Elastic Load Balancing. +// // Deletes the specified listeners from the specified load balancer. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Elastic Load Balancing's +// API operation DeleteLoadBalancerListeners for usage and error information. +// +// Returned Error Codes: +// * LoadBalancerNotFound +// The specified load balancer does not exist. +// func (c *ELB) DeleteLoadBalancerListeners(input *DeleteLoadBalancerListenersInput) (*DeleteLoadBalancerListenersOutput, error) { req, out := c.DeleteLoadBalancerListenersRequest(input) err := req.Send() @@ -630,6 +904,8 @@ const opDeleteLoadBalancerPolicy = "DeleteLoadBalancerPolicy" // value can be used to capture response data after the request's "Send" method // is called. // +// See DeleteLoadBalancerPolicy for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -664,8 +940,25 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Elastic Load Balancing's +// API operation DeleteLoadBalancerPolicy for usage and error information. +// +// Returned Error Codes: +// * LoadBalancerNotFound +// The specified load balancer does not exist. +// +// * InvalidConfigurationRequest +// The requested configuration change is not valid. +// func (c *ELB) DeleteLoadBalancerPolicy(input *DeleteLoadBalancerPolicyInput) (*DeleteLoadBalancerPolicyOutput, error) { req, out := c.DeleteLoadBalancerPolicyRequest(input) err := req.Send() @@ -679,6 +972,8 @@ const opDeregisterInstancesFromLoadBalancer = "DeregisterInstancesFromLoadBalanc // value can be used to capture response data after the request's "Send" method // is called. // +// See DeregisterInstancesFromLoadBalancer for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -713,6 +1008,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 +1019,21 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Elastic Load Balancing's +// API operation DeregisterInstancesFromLoadBalancer for usage and error information. +// +// Returned Error Codes: +// * LoadBalancerNotFound +// The specified load balancer does not exist. +// +// * InvalidInstance +// The specified endpoint is not valid. +// func (c *ELB) DeregisterInstancesFromLoadBalancer(input *DeregisterInstancesFromLoadBalancerInput) (*DeregisterInstancesFromLoadBalancerOutput, error) { req, out := c.DeregisterInstancesFromLoadBalancerRequest(input) err := req.Send() @@ -735,6 +1047,8 @@ const opDescribeInstanceHealth = "DescribeInstanceHealth" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeInstanceHealth for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -769,12 +1083,29 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Elastic Load Balancing's +// API operation DescribeInstanceHealth for usage and error information. +// +// Returned Error Codes: +// * LoadBalancerNotFound +// The specified load balancer does not exist. +// +// * InvalidInstance +// The specified endpoint is not valid. +// func (c *ELB) DescribeInstanceHealth(input *DescribeInstanceHealthInput) (*DescribeInstanceHealthOutput, error) { req, out := c.DescribeInstanceHealthRequest(input) err := req.Send() @@ -788,6 +1119,8 @@ const opDescribeLoadBalancerAttributes = "DescribeLoadBalancerAttributes" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeLoadBalancerAttributes for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -822,7 +1155,24 @@ func (c *ELB) DescribeLoadBalancerAttributesRequest(input *DescribeLoadBalancerA return } +// DescribeLoadBalancerAttributes API operation for Elastic Load Balancing. +// // Describes the attributes for the specified load balancer. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Elastic Load Balancing's +// API operation DescribeLoadBalancerAttributes for usage and error information. +// +// Returned Error Codes: +// * LoadBalancerNotFound +// The specified load balancer does not exist. +// +// * LoadBalancerAttributeNotFound +// The specified load balancer attribute does not exist. +// func (c *ELB) DescribeLoadBalancerAttributes(input *DescribeLoadBalancerAttributesInput) (*DescribeLoadBalancerAttributesOutput, error) { req, out := c.DescribeLoadBalancerAttributesRequest(input) err := req.Send() @@ -836,6 +1186,8 @@ const opDescribeLoadBalancerPolicies = "DescribeLoadBalancerPolicies" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeLoadBalancerPolicies for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -870,6 +1222,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 +1232,21 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Elastic Load Balancing's +// API operation DescribeLoadBalancerPolicies for usage and error information. +// +// Returned Error Codes: +// * LoadBalancerNotFound +// The specified load balancer does not exist. +// +// * PolicyNotFound +// One or more of the specified policies do not exist. +// func (c *ELB) DescribeLoadBalancerPolicies(input *DescribeLoadBalancerPoliciesInput) (*DescribeLoadBalancerPoliciesOutput, error) { req, out := c.DescribeLoadBalancerPoliciesRequest(input) err := req.Send() @@ -891,6 +1260,8 @@ const opDescribeLoadBalancerPolicyTypes = "DescribeLoadBalancerPolicyTypes" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeLoadBalancerPolicyTypes for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -925,6 +1296,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 +1310,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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Elastic Load Balancing's +// API operation DescribeLoadBalancerPolicyTypes for usage and error information. +// +// Returned Error Codes: +// * PolicyTypeNotFound +// One or more of the specified policy types do not exist. +// func (c *ELB) DescribeLoadBalancerPolicyTypes(input *DescribeLoadBalancerPolicyTypesInput) (*DescribeLoadBalancerPolicyTypesOutput, error) { req, out := c.DescribeLoadBalancerPolicyTypesRequest(input) err := req.Send() @@ -950,6 +1335,8 @@ const opDescribeLoadBalancers = "DescribeLoadBalancers" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeLoadBalancers for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -990,8 +1377,25 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Elastic Load Balancing's +// API operation DescribeLoadBalancers for usage and error information. +// +// Returned Error Codes: +// * LoadBalancerNotFound +// The specified load balancer does not exist. +// +// * DependencyThrottle + +// func (c *ELB) DescribeLoadBalancers(input *DescribeLoadBalancersInput) (*DescribeLoadBalancersOutput, error) { req, out := c.DescribeLoadBalancersRequest(input) err := req.Send() @@ -1030,6 +1434,8 @@ const opDescribeTags = "DescribeTags" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeTags for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1064,7 +1470,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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Elastic Load Balancing's +// API operation DescribeTags for usage and error information. +// +// Returned Error Codes: +// * LoadBalancerNotFound +// The specified load balancer does not exist. +// func (c *ELB) DescribeTags(input *DescribeTagsInput) (*DescribeTagsOutput, error) { req, out := c.DescribeTagsRequest(input) err := req.Send() @@ -1078,6 +1498,8 @@ const opDetachLoadBalancerFromSubnets = "DetachLoadBalancerFromSubnets" // value can be used to capture response data after the request's "Send" method // is called. // +// See DetachLoadBalancerFromSubnets for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1112,12 +1534,29 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Elastic Load Balancing's +// API operation DetachLoadBalancerFromSubnets for usage and error information. +// +// Returned Error Codes: +// * LoadBalancerNotFound +// The specified load balancer does not exist. +// +// * InvalidConfigurationRequest +// The requested configuration change is not valid. +// func (c *ELB) DetachLoadBalancerFromSubnets(input *DetachLoadBalancerFromSubnetsInput) (*DetachLoadBalancerFromSubnetsOutput, error) { req, out := c.DetachLoadBalancerFromSubnetsRequest(input) err := req.Send() @@ -1131,6 +1570,8 @@ const opDisableAvailabilityZonesForLoadBalancer = "DisableAvailabilityZonesForLo // value can be used to capture response data after the request's "Send" method // is called. // +// See DisableAvailabilityZonesForLoadBalancer for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1165,6 +1606,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 +1619,21 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Elastic Load Balancing's +// API operation DisableAvailabilityZonesForLoadBalancer for usage and error information. +// +// Returned Error Codes: +// * LoadBalancerNotFound +// The specified load balancer does not exist. +// +// * InvalidConfigurationRequest +// The requested configuration change is not valid. +// func (c *ELB) DisableAvailabilityZonesForLoadBalancer(input *DisableAvailabilityZonesForLoadBalancerInput) (*DisableAvailabilityZonesForLoadBalancerOutput, error) { req, out := c.DisableAvailabilityZonesForLoadBalancerRequest(input) err := req.Send() @@ -1189,6 +1647,8 @@ const opEnableAvailabilityZonesForLoadBalancer = "EnableAvailabilityZonesForLoad // value can be used to capture response data after the request's "Send" method // is called. // +// See EnableAvailabilityZonesForLoadBalancer for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1223,6 +1683,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 +1693,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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Elastic Load Balancing's +// API operation EnableAvailabilityZonesForLoadBalancer for usage and error information. +// +// Returned Error Codes: +// * LoadBalancerNotFound +// The specified load balancer does not exist. +// func (c *ELB) EnableAvailabilityZonesForLoadBalancer(input *EnableAvailabilityZonesForLoadBalancerInput) (*EnableAvailabilityZonesForLoadBalancerOutput, error) { req, out := c.EnableAvailabilityZonesForLoadBalancerRequest(input) err := req.Send() @@ -1244,6 +1718,8 @@ const opModifyLoadBalancerAttributes = "ModifyLoadBalancerAttributes" // value can be used to capture response data after the request's "Send" method // is called. // +// See ModifyLoadBalancerAttributes for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1278,6 +1754,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 +1772,24 @@ 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) +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Elastic Load Balancing's +// API operation ModifyLoadBalancerAttributes for usage and error information. +// +// Returned Error Codes: +// * LoadBalancerNotFound +// The specified load balancer does not exist. +// +// * LoadBalancerAttributeNotFound +// The specified load balancer attribute does not exist. +// +// * InvalidConfigurationRequest +// The requested configuration change is not valid. +// func (c *ELB) ModifyLoadBalancerAttributes(input *ModifyLoadBalancerAttributesInput) (*ModifyLoadBalancerAttributesOutput, error) { req, out := c.ModifyLoadBalancerAttributesRequest(input) err := req.Send() @@ -1307,6 +1803,8 @@ const opRegisterInstancesWithLoadBalancer = "RegisterInstancesWithLoadBalancer" // value can be used to capture response data after the request's "Send" method // is called. // +// See RegisterInstancesWithLoadBalancer for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1341,6 +1839,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 +1864,21 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Elastic Load Balancing's +// API operation RegisterInstancesWithLoadBalancer for usage and error information. +// +// Returned Error Codes: +// * LoadBalancerNotFound +// The specified load balancer does not exist. +// +// * InvalidInstance +// The specified endpoint is not valid. +// func (c *ELB) RegisterInstancesWithLoadBalancer(input *RegisterInstancesWithLoadBalancerInput) (*RegisterInstancesWithLoadBalancerOutput, error) { req, out := c.RegisterInstancesWithLoadBalancerRequest(input) err := req.Send() @@ -1377,6 +1892,8 @@ const opRemoveTags = "RemoveTags" // value can be used to capture response data after the request's "Send" method // is called. // +// See RemoveTags for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1411,7 +1928,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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Elastic Load Balancing's +// API operation RemoveTags for usage and error information. +// +// Returned Error Codes: +// * LoadBalancerNotFound +// The specified load balancer does not exist. +// func (c *ELB) RemoveTags(input *RemoveTagsInput) (*RemoveTagsOutput, error) { req, out := c.RemoveTagsRequest(input) err := req.Send() @@ -1425,6 +1956,8 @@ const opSetLoadBalancerListenerSSLCertificate = "SetLoadBalancerListenerSSLCerti // value can be used to capture response data after the request's "Send" method // is called. // +// See SetLoadBalancerListenerSSLCertificate for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1459,6 +1992,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 +2001,33 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Elastic Load Balancing's +// API operation SetLoadBalancerListenerSSLCertificate for usage and error information. +// +// Returned Error Codes: +// * CertificateNotFound +// The specified ARN does not refer to a valid SSL certificate in AWS Identity +// and Access Management (IAM) or AWS Certificate Manager (ACM). Note that if +// you recently uploaded the certificate to IAM, this error might indicate that +// the certificate is not fully available yet. +// +// * LoadBalancerNotFound +// The specified load balancer does not exist. +// +// * ListenerNotFound +// The load balancer does not have a listener configured at the specified port. +// +// * InvalidConfigurationRequest +// The requested configuration change is not valid. +// +// * UnsupportedProtocol + +// func (c *ELB) SetLoadBalancerListenerSSLCertificate(input *SetLoadBalancerListenerSSLCertificateInput) (*SetLoadBalancerListenerSSLCertificateOutput, error) { req, out := c.SetLoadBalancerListenerSSLCertificateRequest(input) err := req.Send() @@ -1479,6 +2041,8 @@ const opSetLoadBalancerPoliciesForBackendServer = "SetLoadBalancerPoliciesForBac // value can be used to capture response data after the request's "Send" method // is called. // +// See SetLoadBalancerPoliciesForBackendServer for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1513,6 +2077,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 +2096,24 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Elastic Load Balancing's +// API operation SetLoadBalancerPoliciesForBackendServer for usage and error information. +// +// Returned Error Codes: +// * LoadBalancerNotFound +// The specified load balancer does not exist. +// +// * PolicyNotFound +// One or more of the specified policies do not exist. +// +// * InvalidConfigurationRequest +// The requested configuration change is not valid. +// func (c *ELB) SetLoadBalancerPoliciesForBackendServer(input *SetLoadBalancerPoliciesForBackendServerInput) (*SetLoadBalancerPoliciesForBackendServerOutput, error) { req, out := c.SetLoadBalancerPoliciesForBackendServerRequest(input) err := req.Send() @@ -1543,6 +2127,8 @@ const opSetLoadBalancerPoliciesOfListener = "SetLoadBalancerPoliciesOfListener" // value can be used to capture response data after the request's "Send" method // is called. // +// See SetLoadBalancerPoliciesOfListener for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1577,6 +2163,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 +2175,27 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Elastic Load Balancing's +// API operation SetLoadBalancerPoliciesOfListener for usage and error information. +// +// Returned Error Codes: +// * LoadBalancerNotFound +// The specified load balancer does not exist. +// +// * PolicyNotFound +// One or more of the specified policies do not exist. +// +// * ListenerNotFound +// The load balancer does not have a listener configured at the specified port. +// +// * InvalidConfigurationRequest +// The requested configuration change is not valid. +// 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..b1b7acb94ab 100644 --- a/service/elbv2/api.go +++ b/service/elbv2/api.go @@ -18,6 +18,8 @@ const opAddTags = "AddTags" // value can be used to capture response data after the request's "Send" method // is called. // +// See AddTags for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -52,6 +54,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 +64,27 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Elastic Load Balancing's +// API operation AddTags for usage and error information. +// +// Returned Error Codes: +// * DuplicateTagKeys +// A tag key was specified more than once. +// +// * TooManyTags +// You've reached the limit on the number of tags per load balancer. +// +// * LoadBalancerNotFound +// The specified load balancer does not exist. +// +// * TargetGroupNotFound +// The specified target group does not exist. +// func (c *ELBV2) AddTags(input *AddTagsInput) (*AddTagsOutput, error) { req, out := c.AddTagsRequest(input) err := req.Send() @@ -73,6 +98,8 @@ const opCreateListener = "CreateListener" // value can be used to capture response data after the request's "Send" method // is called. // +// See CreateListener for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -107,6 +134,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 +145,52 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Elastic Load Balancing's +// API operation CreateListener for usage and error information. +// +// Returned Error Codes: +// * DuplicateListener +// A listener with the specified port already exists. +// +// * TooManyListeners +// You've reached the limit on the number of listeners per load balancer. +// +// * TooManyCertificates +// You've reached the limit on the number of certificates per listener. +// +// * LoadBalancerNotFound +// The specified load balancer does not exist. +// +// * TargetGroupNotFound +// The specified target group does not exist. +// +// * TargetGroupAssociationLimit +// You've reached the limit on the number of load balancers per target group. +// +// * InvalidConfigurationRequest +// The requested configuration is not valid. +// +// * IncompatibleProtocols +// The specified configuration is not valid with this protocol. +// +// * SSLPolicyNotFound +// The specified SSL policy does not exist. +// +// * CertificateNotFound +// The specified certificate does not exist. +// +// * UnsupportedProtocol +// The specified protocol is not supported. +// +// * TooManyRegistrationsForTargetId +// You've reached the limit on the number of times a target can be registered +// with a load balancer. +// func (c *ELBV2) CreateListener(input *CreateListenerInput) (*CreateListenerOutput, error) { req, out := c.CreateListenerRequest(input) err := req.Send() @@ -129,6 +204,8 @@ const opCreateLoadBalancer = "CreateLoadBalancer" // value can be used to capture response data after the request's "Send" method // is called. // +// See CreateLoadBalancer for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -163,6 +240,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 +255,42 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Elastic Load Balancing's +// API operation CreateLoadBalancer for usage and error information. +// +// Returned Error Codes: +// * DuplicateLoadBalancerName +// A load balancer with the specified name already exists for this account. +// +// * TooManyLoadBalancers +// You've reached the limit on the number of load balancers for your AWS account. +// +// * InvalidConfigurationRequest +// The requested configuration is not valid. +// +// * SubnetNotFound +// The specified subnet does not exist. +// +// * InvalidSubnet +// The specified subnet is out of available addresses. +// +// * InvalidSecurityGroup +// The specified security group does not exist. +// +// * InvalidScheme +// The requested scheme is not valid. +// +// * TooManyTags +// You've reached the limit on the number of tags per load balancer. +// +// * DuplicateTagKeys +// A tag key was specified more than once. +// func (c *ELBV2) CreateLoadBalancer(input *CreateLoadBalancerInput) (*CreateLoadBalancerOutput, error) { req, out := c.CreateLoadBalancerRequest(input) err := req.Send() @@ -189,6 +304,8 @@ const opCreateRule = "CreateRule" // value can be used to capture response data after the request's "Send" method // is called. // +// See CreateRule for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -223,6 +340,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 +352,40 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Elastic Load Balancing's +// API operation CreateRule for usage and error information. +// +// Returned Error Codes: +// * PriorityInUse +// The specified priority is in use. +// +// * TooManyTargetGroups +// You've reached the limit on the number of target groups for your AWS account. +// +// * TooManyRules +// You've reached the limit on the number of rules per load balancer. +// +// * TargetGroupAssociationLimit +// You've reached the limit on the number of load balancers per target group. +// +// * ListenerNotFound +// The specified listener does not exist. +// +// * TargetGroupNotFound +// The specified target group does not exist. +// +// * InvalidConfigurationRequest +// The requested configuration is not valid. +// +// * TooManyRegistrationsForTargetId +// You've reached the limit on the number of times a target can be registered +// with a load balancer. +// func (c *ELBV2) CreateRule(input *CreateRuleInput) (*CreateRuleOutput, error) { req, out := c.CreateRuleRequest(input) err := req.Send() @@ -246,6 +399,8 @@ const opCreateTargetGroup = "CreateTargetGroup" // value can be used to capture response data after the request's "Send" method // is called. // +// See CreateTargetGroup for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -280,6 +435,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 +451,21 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Elastic Load Balancing's +// API operation CreateTargetGroup for usage and error information. +// +// Returned Error Codes: +// * DuplicateTargetGroupName +// A target group with the specified name already exists. +// +// * TooManyTargetGroups +// You've reached the limit on the number of target groups for your AWS account. +// func (c *ELBV2) CreateTargetGroup(input *CreateTargetGroupInput) (*CreateTargetGroupOutput, error) { req, out := c.CreateTargetGroupRequest(input) err := req.Send() @@ -307,6 +479,8 @@ const opDeleteListener = "DeleteListener" // value can be used to capture response data after the request's "Send" method // is called. // +// See DeleteListener for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -341,10 +515,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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Elastic Load Balancing's +// API operation DeleteListener for usage and error information. +// +// Returned Error Codes: +// * ListenerNotFound +// The specified listener does not exist. +// func (c *ELBV2) DeleteListener(input *DeleteListenerInput) (*DeleteListenerOutput, error) { req, out := c.DeleteListenerRequest(input) err := req.Send() @@ -358,6 +546,8 @@ const opDeleteLoadBalancer = "DeleteLoadBalancer" // value can be used to capture response data after the request's "Send" method // is called. // +// See DeleteLoadBalancer for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -392,6 +582,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 +593,21 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Elastic Load Balancing's +// API operation DeleteLoadBalancer for usage and error information. +// +// Returned Error Codes: +// * LoadBalancerNotFound +// The specified load balancer does not exist. +// +// * OperationNotPermitted +// This operation is not allowed. +// func (c *ELBV2) DeleteLoadBalancer(input *DeleteLoadBalancerInput) (*DeleteLoadBalancerOutput, error) { req, out := c.DeleteLoadBalancerRequest(input) err := req.Send() @@ -414,6 +621,8 @@ const opDeleteRule = "DeleteRule" // value can be used to capture response data after the request's "Send" method // is called. // +// See DeleteRule for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -448,7 +657,24 @@ func (c *ELBV2) DeleteRuleRequest(input *DeleteRuleInput) (req *request.Request, return } +// DeleteRule API operation for Elastic Load Balancing. +// // Deletes the specified rule. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Elastic Load Balancing's +// API operation DeleteRule for usage and error information. +// +// Returned Error Codes: +// * RuleNotFound +// The specified rule does not exist. +// +// * OperationNotPermitted +// This operation is not allowed. +// func (c *ELBV2) DeleteRule(input *DeleteRuleInput) (*DeleteRuleOutput, error) { req, out := c.DeleteRuleRequest(input) err := req.Send() @@ -462,6 +688,8 @@ const opDeleteTargetGroup = "DeleteTargetGroup" // value can be used to capture response data after the request's "Send" method // is called. // +// See DeleteTargetGroup for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -496,10 +724,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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Elastic Load Balancing's +// API operation DeleteTargetGroup for usage and error information. +// +// Returned Error Codes: +// * ResourceInUse +// A specified resource is in use. +// func (c *ELBV2) DeleteTargetGroup(input *DeleteTargetGroupInput) (*DeleteTargetGroupOutput, error) { req, out := c.DeleteTargetGroupRequest(input) err := req.Send() @@ -513,6 +755,8 @@ const opDeregisterTargets = "DeregisterTargets" // value can be used to capture response data after the request's "Send" method // is called. // +// See DeregisterTargets for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -547,9 +791,27 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Elastic Load Balancing's +// API operation DeregisterTargets for usage and error information. +// +// Returned Error Codes: +// * TargetGroupNotFound +// The specified target group does not exist. +// +// * InvalidTarget +// The specified target does not exist or is not in the same VPC as the target +// group. +// func (c *ELBV2) DeregisterTargets(input *DeregisterTargetsInput) (*DeregisterTargetsOutput, error) { req, out := c.DeregisterTargetsRequest(input) err := req.Send() @@ -563,6 +825,8 @@ const opDescribeListeners = "DescribeListeners" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeListeners for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -603,8 +867,25 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Elastic Load Balancing's +// API operation DescribeListeners for usage and error information. +// +// Returned Error Codes: +// * ListenerNotFound +// The specified listener does not exist. +// +// * LoadBalancerNotFound +// The specified load balancer does not exist. +// func (c *ELBV2) DescribeListeners(input *DescribeListenersInput) (*DescribeListenersOutput, error) { req, out := c.DescribeListenersRequest(input) err := req.Send() @@ -643,6 +924,8 @@ const opDescribeLoadBalancerAttributes = "DescribeLoadBalancerAttributes" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeLoadBalancerAttributes for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -677,7 +960,21 @@ func (c *ELBV2) DescribeLoadBalancerAttributesRequest(input *DescribeLoadBalance return } +// DescribeLoadBalancerAttributes API operation for Elastic Load Balancing. +// // Describes the attributes for the specified load balancer. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Elastic Load Balancing's +// API operation DescribeLoadBalancerAttributes for usage and error information. +// +// Returned Error Codes: +// * LoadBalancerNotFound +// The specified load balancer does not exist. +// func (c *ELBV2) DescribeLoadBalancerAttributes(input *DescribeLoadBalancerAttributesInput) (*DescribeLoadBalancerAttributesOutput, error) { req, out := c.DescribeLoadBalancerAttributesRequest(input) err := req.Send() @@ -691,6 +988,8 @@ const opDescribeLoadBalancers = "DescribeLoadBalancers" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeLoadBalancers for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -731,11 +1030,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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Elastic Load Balancing's +// API operation DescribeLoadBalancers for usage and error information. +// +// Returned Error Codes: +// * LoadBalancerNotFound +// The specified load balancer does not exist. +// func (c *ELBV2) DescribeLoadBalancers(input *DescribeLoadBalancersInput) (*DescribeLoadBalancersOutput, error) { req, out := c.DescribeLoadBalancersRequest(input) err := req.Send() @@ -774,6 +1087,8 @@ const opDescribeRules = "DescribeRules" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeRules for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -808,8 +1123,25 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Elastic Load Balancing's +// API operation DescribeRules for usage and error information. +// +// Returned Error Codes: +// * ListenerNotFound +// The specified listener does not exist. +// +// * RuleNotFound +// The specified rule does not exist. +// func (c *ELBV2) DescribeRules(input *DescribeRulesInput) (*DescribeRulesOutput, error) { req, out := c.DescribeRulesRequest(input) err := req.Send() @@ -823,6 +1155,8 @@ const opDescribeSSLPolicies = "DescribeSSLPolicies" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeSSLPolicies for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -857,9 +1191,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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Elastic Load Balancing's +// API operation DescribeSSLPolicies for usage and error information. +// +// Returned Error Codes: +// * SSLPolicyNotFound +// The specified SSL policy does not exist. +// func (c *ELBV2) DescribeSSLPolicies(input *DescribeSSLPoliciesInput) (*DescribeSSLPoliciesOutput, error) { req, out := c.DescribeSSLPoliciesRequest(input) err := req.Send() @@ -873,6 +1221,8 @@ const opDescribeTags = "DescribeTags" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeTags for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -907,7 +1257,30 @@ func (c *ELBV2) DescribeTagsRequest(input *DescribeTagsInput) (req *request.Requ return } +// DescribeTags API operation for Elastic Load Balancing. +// // Describes the tags for the specified resources. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Elastic Load Balancing's +// API operation DescribeTags for usage and error information. +// +// Returned Error Codes: +// * LoadBalancerNotFound +// The specified load balancer does not exist. +// +// * TargetGroupNotFound +// The specified target group does not exist. +// +// * ListenerNotFound +// The specified listener does not exist. +// +// * RuleNotFound +// The specified rule does not exist. +// func (c *ELBV2) DescribeTags(input *DescribeTagsInput) (*DescribeTagsOutput, error) { req, out := c.DescribeTagsRequest(input) err := req.Send() @@ -921,6 +1294,8 @@ const opDescribeTargetGroupAttributes = "DescribeTargetGroupAttributes" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeTargetGroupAttributes for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -955,7 +1330,21 @@ func (c *ELBV2) DescribeTargetGroupAttributesRequest(input *DescribeTargetGroupA return } +// DescribeTargetGroupAttributes API operation for Elastic Load Balancing. +// // Describes the attributes for the specified target group. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Elastic Load Balancing's +// API operation DescribeTargetGroupAttributes for usage and error information. +// +// Returned Error Codes: +// * TargetGroupNotFound +// The specified target group does not exist. +// func (c *ELBV2) DescribeTargetGroupAttributes(input *DescribeTargetGroupAttributesInput) (*DescribeTargetGroupAttributesOutput, error) { req, out := c.DescribeTargetGroupAttributesRequest(input) err := req.Send() @@ -969,6 +1358,8 @@ const opDescribeTargetGroups = "DescribeTargetGroups" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeTargetGroups for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1009,6 +1400,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 +1409,21 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Elastic Load Balancing's +// API operation DescribeTargetGroups for usage and error information. +// +// Returned Error Codes: +// * LoadBalancerNotFound +// The specified load balancer does not exist. +// +// * TargetGroupNotFound +// The specified target group does not exist. +// func (c *ELBV2) DescribeTargetGroups(input *DescribeTargetGroupsInput) (*DescribeTargetGroupsOutput, error) { req, out := c.DescribeTargetGroupsRequest(input) err := req.Send() @@ -1054,6 +1462,8 @@ const opDescribeTargetHealth = "DescribeTargetHealth" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeTargetHealth for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1088,7 +1498,29 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Elastic Load Balancing's +// API operation DescribeTargetHealth for usage and error information. +// +// Returned Error Codes: +// * InvalidTarget +// The specified target does not exist or is not in the same VPC as the target +// group. +// +// * TargetGroupNotFound +// The specified target group does not exist. +// +// * HealthUnavailable +// The health of the specified targets could not be retrieved due to an internal +// error. +// func (c *ELBV2) DescribeTargetHealth(input *DescribeTargetHealthInput) (*DescribeTargetHealthOutput, error) { req, out := c.DescribeTargetHealthRequest(input) err := req.Send() @@ -1102,6 +1534,8 @@ const opModifyListener = "ModifyListener" // value can be used to capture response data after the request's "Send" method // is called. // +// See ModifyListener for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1136,12 +1570,60 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Elastic Load Balancing's +// API operation ModifyListener for usage and error information. +// +// Returned Error Codes: +// * DuplicateListener +// A listener with the specified port already exists. +// +// * TooManyListeners +// You've reached the limit on the number of listeners per load balancer. +// +// * TooManyCertificates +// You've reached the limit on the number of certificates per listener. +// +// * ListenerNotFound +// The specified listener does not exist. +// +// * TargetGroupNotFound +// The specified target group does not exist. +// +// * TargetGroupAssociationLimit +// You've reached the limit on the number of load balancers per target group. +// +// * IncompatibleProtocols +// The specified configuration is not valid with this protocol. +// +// * SSLPolicyNotFound +// The specified SSL policy does not exist. +// +// * CertificateNotFound +// The specified certificate does not exist. +// +// * InvalidConfigurationRequest +// The requested configuration is not valid. +// +// * UnsupportedProtocol +// The specified protocol is not supported. +// +// * TooManyRegistrationsForTargetId +// You've reached the limit on the number of times a target can be registered +// with a load balancer. +// func (c *ELBV2) ModifyListener(input *ModifyListenerInput) (*ModifyListenerOutput, error) { req, out := c.ModifyListenerRequest(input) err := req.Send() @@ -1155,6 +1637,8 @@ const opModifyLoadBalancerAttributes = "ModifyLoadBalancerAttributes" // value can be used to capture response data after the request's "Send" method // is called. // +// See ModifyLoadBalancerAttributes for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1189,11 +1673,28 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Elastic Load Balancing's +// API operation ModifyLoadBalancerAttributes for usage and error information. +// +// Returned Error Codes: +// * LoadBalancerNotFound +// The specified load balancer does not exist. +// +// * InvalidConfigurationRequest +// The requested configuration is not valid. +// func (c *ELBV2) ModifyLoadBalancerAttributes(input *ModifyLoadBalancerAttributesInput) (*ModifyLoadBalancerAttributesOutput, error) { req, out := c.ModifyLoadBalancerAttributesRequest(input) err := req.Send() @@ -1207,6 +1708,8 @@ const opModifyRule = "ModifyRule" // value can be used to capture response data after the request's "Send" method // is called. // +// See ModifyRule for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1241,11 +1744,35 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Elastic Load Balancing's +// API operation ModifyRule for usage and error information. +// +// Returned Error Codes: +// * TargetGroupAssociationLimit +// You've reached the limit on the number of load balancers per target group. +// +// * RuleNotFound +// The specified rule does not exist. +// +// * OperationNotPermitted +// This operation is not allowed. +// +// * TooManyRegistrationsForTargetId +// You've reached the limit on the number of times a target can be registered +// with a load balancer. +// func (c *ELBV2) ModifyRule(input *ModifyRuleInput) (*ModifyRuleOutput, error) { req, out := c.ModifyRuleRequest(input) err := req.Send() @@ -1259,6 +1786,8 @@ const opModifyTargetGroup = "ModifyTargetGroup" // value can be used to capture response data after the request's "Send" method // is called. // +// See ModifyTargetGroup for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1293,10 +1822,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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Elastic Load Balancing's +// API operation ModifyTargetGroup for usage and error information. +// +// Returned Error Codes: +// * TargetGroupNotFound +// The specified target group does not exist. +// func (c *ELBV2) ModifyTargetGroup(input *ModifyTargetGroupInput) (*ModifyTargetGroupOutput, error) { req, out := c.ModifyTargetGroupRequest(input) err := req.Send() @@ -1310,6 +1853,8 @@ const opModifyTargetGroupAttributes = "ModifyTargetGroupAttributes" // value can be used to capture response data after the request's "Send" method // is called. // +// See ModifyTargetGroupAttributes for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1344,7 +1889,21 @@ func (c *ELBV2) ModifyTargetGroupAttributesRequest(input *ModifyTargetGroupAttri return } +// ModifyTargetGroupAttributes API operation for Elastic Load Balancing. +// // Modifies the specified attributes of the specified target group. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Elastic Load Balancing's +// API operation ModifyTargetGroupAttributes for usage and error information. +// +// Returned Error Codes: +// * TargetGroupNotFound +// The specified target group does not exist. +// func (c *ELBV2) ModifyTargetGroupAttributes(input *ModifyTargetGroupAttributesInput) (*ModifyTargetGroupAttributesOutput, error) { req, out := c.ModifyTargetGroupAttributesRequest(input) err := req.Send() @@ -1358,6 +1917,8 @@ const opRegisterTargets = "RegisterTargets" // value can be used to capture response data after the request's "Send" method // is called. // +// See RegisterTargets for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1392,12 +1953,37 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Elastic Load Balancing's +// API operation RegisterTargets for usage and error information. +// +// Returned Error Codes: +// * TargetGroupNotFound +// The specified target group does not exist. +// +// * TooManyTargets +// You've reached the limit on the number of targets. +// +// * InvalidTarget +// The specified target does not exist or is not in the same VPC as the target +// group. +// +// * TooManyRegistrationsForTargetId +// You've reached the limit on the number of times a target can be registered +// with a load balancer. +// func (c *ELBV2) RegisterTargets(input *RegisterTargetsInput) (*RegisterTargetsOutput, error) { req, out := c.RegisterTargetsRequest(input) err := req.Send() @@ -1411,6 +1997,8 @@ const opRemoveTags = "RemoveTags" // value can be used to capture response data after the request's "Send" method // is called. // +// See RemoveTags for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1445,9 +2033,35 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Elastic Load Balancing's +// API operation RemoveTags for usage and error information. +// +// Returned Error Codes: +// * LoadBalancerNotFound +// The specified load balancer does not exist. +// +// * TargetGroupNotFound +// The specified target group does not exist. +// +// * ListenerNotFound +// The specified listener does not exist. +// +// * RuleNotFound +// The specified rule does not exist. +// +// * TooManyTags +// You've reached the limit on the number of tags per load balancer. +// func (c *ELBV2) RemoveTags(input *RemoveTagsInput) (*RemoveTagsOutput, error) { req, out := c.RemoveTagsRequest(input) err := req.Send() @@ -1461,6 +2075,8 @@ const opSetRulePriorities = "SetRulePriorities" // value can be used to capture response data after the request's "Send" method // is called. // +// See SetRulePriorities for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1495,11 +2111,31 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Elastic Load Balancing's +// API operation SetRulePriorities for usage and error information. +// +// Returned Error Codes: +// * RuleNotFound +// The specified rule does not exist. +// +// * PriorityInUse +// The specified priority is in use. +// +// * OperationNotPermitted +// This operation is not allowed. +// func (c *ELBV2) SetRulePriorities(input *SetRulePrioritiesInput) (*SetRulePrioritiesOutput, error) { req, out := c.SetRulePrioritiesRequest(input) err := req.Send() @@ -1513,6 +2149,8 @@ const opSetSecurityGroups = "SetSecurityGroups" // value can be used to capture response data after the request's "Send" method // is called. // +// See SetSecurityGroups for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1547,9 +2185,29 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Elastic Load Balancing's +// API operation SetSecurityGroups for usage and error information. +// +// Returned Error Codes: +// * LoadBalancerNotFound +// The specified load balancer does not exist. +// +// * InvalidConfigurationRequest +// The requested configuration is not valid. +// +// * InvalidSecurityGroup +// The specified security group does not exist. +// func (c *ELBV2) SetSecurityGroups(input *SetSecurityGroupsInput) (*SetSecurityGroupsOutput, error) { req, out := c.SetSecurityGroupsRequest(input) err := req.Send() @@ -1563,6 +2221,8 @@ const opSetSubnets = "SetSubnets" // value can be used to capture response data after the request's "Send" method // is called. // +// See SetSubnets for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1597,8 +2257,31 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Elastic Load Balancing's +// API operation SetSubnets for usage and error information. +// +// Returned Error Codes: +// * LoadBalancerNotFound +// The specified load balancer does not exist. +// +// * InvalidConfigurationRequest +// The requested configuration is not valid. +// +// * SubnetNotFound +// The specified subnet does not exist. +// +// * InvalidSubnet +// The specified subnet is out of available addresses. +// 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..70a874f9fbd 100644 --- a/service/emr/api.go +++ b/service/emr/api.go @@ -20,6 +20,8 @@ const opAddInstanceGroups = "AddInstanceGroups" // value can be used to capture response data after the request's "Send" method // is called. // +// See AddInstanceGroups for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -54,7 +56,22 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic MapReduce's +// API operation AddInstanceGroups for usage and error information. +// +// Returned Error Codes: +// * InternalServerError +// Indicates that an error occurred while processing the request and that the +// request was not completed. +// func (c *EMR) AddInstanceGroups(input *AddInstanceGroupsInput) (*AddInstanceGroupsOutput, error) { req, out := c.AddInstanceGroupsRequest(input) err := req.Send() @@ -68,6 +85,8 @@ const opAddJobFlowSteps = "AddJobFlowSteps" // value can be used to capture response data after the request's "Send" method // is called. // +// See AddJobFlowSteps for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -102,6 +121,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 +147,19 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic MapReduce's +// API operation AddJobFlowSteps for usage and error information. +// +// Returned Error Codes: +// * InternalServerError +// Indicates that an error occurred while processing the request and that the +// request was not completed. +// func (c *EMR) AddJobFlowSteps(input *AddJobFlowStepsInput) (*AddJobFlowStepsOutput, error) { req, out := c.AddJobFlowStepsRequest(input) err := req.Send() @@ -139,6 +173,8 @@ const opAddTags = "AddTags" // value can be used to capture response data after the request's "Send" method // is called. // +// See AddTags for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -173,10 +209,27 @@ 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). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic MapReduce's +// API operation AddTags for usage and error information. +// +// Returned Error Codes: +// * InternalServerException +// This exception occurs when there is an internal failure in the EMR service. +// +// * InvalidRequestException +// This exception occurs when there is something wrong with user input. +// func (c *EMR) AddTags(input *AddTagsInput) (*AddTagsOutput, error) { req, out := c.AddTagsRequest(input) err := req.Send() @@ -190,6 +243,8 @@ const opCreateSecurityConfiguration = "CreateSecurityConfiguration" // value can be used to capture response data after the request's "Send" method // is called. // +// See CreateSecurityConfiguration for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -224,9 +279,26 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic MapReduce's +// API operation CreateSecurityConfiguration for usage and error information. +// +// Returned Error Codes: +// * InternalServerException +// This exception occurs when there is an internal failure in the EMR service. +// +// * InvalidRequestException +// This exception occurs when there is something wrong with user input. +// func (c *EMR) CreateSecurityConfiguration(input *CreateSecurityConfigurationInput) (*CreateSecurityConfigurationOutput, error) { req, out := c.CreateSecurityConfigurationRequest(input) err := req.Send() @@ -240,6 +312,8 @@ const opDeleteSecurityConfiguration = "DeleteSecurityConfiguration" // value can be used to capture response data after the request's "Send" method // is called. // +// See DeleteSecurityConfiguration for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -274,7 +348,24 @@ func (c *EMR) DeleteSecurityConfigurationRequest(input *DeleteSecurityConfigurat return } +// DeleteSecurityConfiguration API operation for Amazon Elastic MapReduce. +// // Deletes a security configuration. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic MapReduce's +// API operation DeleteSecurityConfiguration for usage and error information. +// +// Returned Error Codes: +// * InternalServerException +// This exception occurs when there is an internal failure in the EMR service. +// +// * InvalidRequestException +// This exception occurs when there is something wrong with user input. +// func (c *EMR) DeleteSecurityConfiguration(input *DeleteSecurityConfigurationInput) (*DeleteSecurityConfigurationOutput, error) { req, out := c.DeleteSecurityConfigurationRequest(input) err := req.Send() @@ -288,6 +379,8 @@ const opDescribeCluster = "DescribeCluster" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeCluster for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -322,8 +415,25 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic MapReduce's +// API operation DescribeCluster for usage and error information. +// +// Returned Error Codes: +// * InternalServerException +// This exception occurs when there is an internal failure in the EMR service. +// +// * InvalidRequestException +// This exception occurs when there is something wrong with user input. +// func (c *EMR) DescribeCluster(input *DescribeClusterInput) (*DescribeClusterOutput, error) { req, out := c.DescribeClusterRequest(input) err := req.Send() @@ -337,6 +447,8 @@ const opDescribeJobFlows = "DescribeJobFlows" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeJobFlows for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -374,6 +486,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 +508,19 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic MapReduce's +// API operation DescribeJobFlows for usage and error information. +// +// Returned Error Codes: +// * InternalServerError +// Indicates that an error occurred while processing the request and that the +// request was not completed. +// func (c *EMR) DescribeJobFlows(input *DescribeJobFlowsInput) (*DescribeJobFlowsOutput, error) { req, out := c.DescribeJobFlowsRequest(input) err := req.Send() @@ -407,6 +534,8 @@ const opDescribeSecurityConfiguration = "DescribeSecurityConfiguration" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeSecurityConfiguration for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -441,8 +570,25 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic MapReduce's +// API operation DescribeSecurityConfiguration for usage and error information. +// +// Returned Error Codes: +// * InternalServerException +// This exception occurs when there is an internal failure in the EMR service. +// +// * InvalidRequestException +// This exception occurs when there is something wrong with user input. +// func (c *EMR) DescribeSecurityConfiguration(input *DescribeSecurityConfigurationInput) (*DescribeSecurityConfigurationOutput, error) { req, out := c.DescribeSecurityConfigurationRequest(input) err := req.Send() @@ -456,6 +602,8 @@ const opDescribeStep = "DescribeStep" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeStep for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -490,7 +638,24 @@ func (c *EMR) DescribeStepRequest(input *DescribeStepInput) (req *request.Reques return } +// DescribeStep API operation for Amazon Elastic MapReduce. +// // Provides more detail about the cluster step. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic MapReduce's +// API operation DescribeStep for usage and error information. +// +// Returned Error Codes: +// * InternalServerException +// This exception occurs when there is an internal failure in the EMR service. +// +// * InvalidRequestException +// This exception occurs when there is something wrong with user input. +// func (c *EMR) DescribeStep(input *DescribeStepInput) (*DescribeStepOutput, error) { req, out := c.DescribeStepRequest(input) err := req.Send() @@ -504,6 +669,8 @@ const opListBootstrapActions = "ListBootstrapActions" // value can be used to capture response data after the request's "Send" method // is called. // +// See ListBootstrapActions for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -544,7 +711,24 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic MapReduce's +// API operation ListBootstrapActions for usage and error information. +// +// Returned Error Codes: +// * InternalServerException +// This exception occurs when there is an internal failure in the EMR service. +// +// * InvalidRequestException +// This exception occurs when there is something wrong with user input. +// func (c *EMR) ListBootstrapActions(input *ListBootstrapActionsInput) (*ListBootstrapActionsOutput, error) { req, out := c.ListBootstrapActionsRequest(input) err := req.Send() @@ -583,6 +767,8 @@ const opListClusters = "ListClusters" // value can be used to capture response data after the request's "Send" method // is called. // +// See ListClusters for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -623,11 +809,28 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic MapReduce's +// API operation ListClusters for usage and error information. +// +// Returned Error Codes: +// * InternalServerException +// This exception occurs when there is an internal failure in the EMR service. +// +// * InvalidRequestException +// This exception occurs when there is something wrong with user input. +// func (c *EMR) ListClusters(input *ListClustersInput) (*ListClustersOutput, error) { req, out := c.ListClustersRequest(input) err := req.Send() @@ -666,6 +869,8 @@ const opListInstanceGroups = "ListInstanceGroups" // value can be used to capture response data after the request's "Send" method // is called. // +// See ListInstanceGroups for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -706,7 +911,24 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic MapReduce's +// API operation ListInstanceGroups for usage and error information. +// +// Returned Error Codes: +// * InternalServerException +// This exception occurs when there is an internal failure in the EMR service. +// +// * InvalidRequestException +// This exception occurs when there is something wrong with user input. +// func (c *EMR) ListInstanceGroups(input *ListInstanceGroupsInput) (*ListInstanceGroupsOutput, error) { req, out := c.ListInstanceGroupsRequest(input) err := req.Send() @@ -745,6 +967,8 @@ const opListInstances = "ListInstances" // value can be used to capture response data after the request's "Send" method // is called. // +// See ListInstances for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -785,11 +1009,28 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic MapReduce's +// API operation ListInstances for usage and error information. +// +// Returned Error Codes: +// * InternalServerException +// This exception occurs when there is an internal failure in the EMR service. +// +// * InvalidRequestException +// This exception occurs when there is something wrong with user input. +// func (c *EMR) ListInstances(input *ListInstancesInput) (*ListInstancesOutput, error) { req, out := c.ListInstancesRequest(input) err := req.Send() @@ -828,6 +1069,8 @@ const opListSecurityConfigurations = "ListSecurityConfigurations" // value can be used to capture response data after the request's "Send" method // is called. // +// See ListSecurityConfigurations for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -862,10 +1105,27 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic MapReduce's +// API operation ListSecurityConfigurations for usage and error information. +// +// Returned Error Codes: +// * InternalServerException +// This exception occurs when there is an internal failure in the EMR service. +// +// * InvalidRequestException +// This exception occurs when there is something wrong with user input. +// func (c *EMR) ListSecurityConfigurations(input *ListSecurityConfigurationsInput) (*ListSecurityConfigurationsOutput, error) { req, out := c.ListSecurityConfigurationsRequest(input) err := req.Send() @@ -879,6 +1139,8 @@ const opListSteps = "ListSteps" // value can be used to capture response data after the request's "Send" method // is called. // +// See ListSteps for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -919,7 +1181,24 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic MapReduce's +// API operation ListSteps for usage and error information. +// +// Returned Error Codes: +// * InternalServerException +// This exception occurs when there is an internal failure in the EMR service. +// +// * InvalidRequestException +// This exception occurs when there is something wrong with user input. +// func (c *EMR) ListSteps(input *ListStepsInput) (*ListStepsOutput, error) { req, out := c.ListStepsRequest(input) err := req.Send() @@ -958,6 +1237,8 @@ const opModifyInstanceGroups = "ModifyInstanceGroups" // value can be used to capture response data after the request's "Send" method // is called. // +// See ModifyInstanceGroups for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -994,10 +1275,25 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic MapReduce's +// API operation ModifyInstanceGroups for usage and error information. +// +// Returned Error Codes: +// * InternalServerError +// Indicates that an error occurred while processing the request and that the +// request was not completed. +// func (c *EMR) ModifyInstanceGroups(input *ModifyInstanceGroupsInput) (*ModifyInstanceGroupsOutput, error) { req, out := c.ModifyInstanceGroupsRequest(input) err := req.Send() @@ -1011,6 +1307,8 @@ const opRemoveTags = "RemoveTags" // value can be used to capture response data after the request's "Send" method // is called. // +// See RemoveTags for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1045,12 +1343,29 @@ 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: +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic MapReduce's +// API operation RemoveTags for usage and error information. +// +// Returned Error Codes: +// * InternalServerException +// This exception occurs when there is an internal failure in the EMR service. +// +// * InvalidRequestException +// This exception occurs when there is something wrong with user input. +// func (c *EMR) RemoveTags(input *RemoveTagsInput) (*RemoveTagsOutput, error) { req, out := c.RemoveTagsRequest(input) err := req.Send() @@ -1064,6 +1379,8 @@ const opRunJobFlow = "RunJobFlow" // value can be used to capture response data after the request's "Send" method // is called. // +// See RunJobFlow for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1098,6 +1415,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 +1440,19 @@ func (c *EMR) RunJobFlowRequest(input *RunJobFlowInput) (req *request.Request, o // // For long running job flows, we recommend that you periodically store your // results. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic MapReduce's +// API operation RunJobFlow for usage and error information. +// +// Returned Error Codes: +// * InternalServerError +// Indicates that an error occurred while processing the request and that the +// request was not completed. +// func (c *EMR) RunJobFlow(input *RunJobFlowInput) (*RunJobFlowOutput, error) { req, out := c.RunJobFlowRequest(input) err := req.Send() @@ -1134,6 +1466,8 @@ const opSetTerminationProtection = "SetTerminationProtection" // value can be used to capture response data after the request's "Send" method // is called. // +// See SetTerminationProtection for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1170,6 +1504,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 +1523,19 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic MapReduce's +// API operation SetTerminationProtection for usage and error information. +// +// Returned Error Codes: +// * InternalServerError +// Indicates that an error occurred while processing the request and that the +// request was not completed. +// func (c *EMR) SetTerminationProtection(input *SetTerminationProtectionInput) (*SetTerminationProtectionOutput, error) { req, out := c.SetTerminationProtectionRequest(input) err := req.Send() @@ -1200,6 +1549,8 @@ const opSetVisibleToAllUsers = "SetVisibleToAllUsers" // value can be used to capture response data after the request's "Send" method // is called. // +// See SetVisibleToAllUsers for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1236,12 +1587,27 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic MapReduce's +// API operation SetVisibleToAllUsers for usage and error information. +// +// Returned Error Codes: +// * InternalServerError +// Indicates that an error occurred while processing the request and that the +// request was not completed. +// func (c *EMR) SetVisibleToAllUsers(input *SetVisibleToAllUsersInput) (*SetVisibleToAllUsersOutput, error) { req, out := c.SetVisibleToAllUsersRequest(input) err := req.Send() @@ -1255,6 +1621,8 @@ const opTerminateJobFlows = "TerminateJobFlows" // value can be used to capture response data after the request's "Send" method // is called. // +// See TerminateJobFlows for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1291,6 +1659,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 +1670,19 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic MapReduce's +// API operation TerminateJobFlows for usage and error information. +// +// Returned Error Codes: +// * InternalServerError +// Indicates that an error occurred while processing the request and that the +// request was not completed. +// 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..6147933731f 100644 --- a/service/firehose/api.go +++ b/service/firehose/api.go @@ -18,6 +18,8 @@ const opCreateDeliveryStream = "CreateDeliveryStream" // value can be used to capture response data after the request's "Send" method // is called. // +// See CreateDeliveryStream for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -52,6 +54,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 +106,24 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Kinesis Firehose's +// API operation CreateDeliveryStream for usage and error information. +// +// Returned Error Codes: +// * InvalidArgumentException +// The specified input parameter has an value that is not valid. +// +// * LimitExceededException +// You have already reached the limit for a requested resource. +// +// * ResourceInUseException +// The resource is already in use and not available for this operation. +// func (c *Firehose) CreateDeliveryStream(input *CreateDeliveryStreamInput) (*CreateDeliveryStreamOutput, error) { req, out := c.CreateDeliveryStreamRequest(input) err := req.Send() @@ -115,6 +137,8 @@ const opDeleteDeliveryStream = "DeleteDeliveryStream" // value can be used to capture response data after the request's "Send" method // is called. // +// See DeleteDeliveryStream for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -149,6 +173,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 +187,21 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Kinesis Firehose's +// API operation DeleteDeliveryStream for usage and error information. +// +// Returned Error Codes: +// * ResourceInUseException +// The resource is already in use and not available for this operation. +// +// * ResourceNotFoundException +// The specified resource could not be found. +// func (c *Firehose) DeleteDeliveryStream(input *DeleteDeliveryStreamInput) (*DeleteDeliveryStreamOutput, error) { req, out := c.DeleteDeliveryStreamRequest(input) err := req.Send() @@ -174,6 +215,8 @@ const opDescribeDeliveryStream = "DescribeDeliveryStream" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeDeliveryStream for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -208,10 +251,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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Kinesis Firehose's +// API operation DescribeDeliveryStream for usage and error information. +// +// Returned Error Codes: +// * ResourceNotFoundException +// The specified resource could not be found. +// func (c *Firehose) DescribeDeliveryStream(input *DescribeDeliveryStreamInput) (*DescribeDeliveryStreamOutput, error) { req, out := c.DescribeDeliveryStreamRequest(input) err := req.Send() @@ -225,6 +282,8 @@ const opListDeliveryStreams = "ListDeliveryStreams" // value can be used to capture response data after the request's "Send" method // is called. // +// See ListDeliveryStreams for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -259,6 +318,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 +329,13 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Kinesis Firehose's +// API operation ListDeliveryStreams for usage and error information. func (c *Firehose) ListDeliveryStreams(input *ListDeliveryStreamsInput) (*ListDeliveryStreamsOutput, error) { req, out := c.ListDeliveryStreamsRequest(input) err := req.Send() @@ -281,6 +349,8 @@ const opPutRecord = "PutRecord" // value can be used to capture response data after the request's "Send" method // is called. // +// See PutRecord for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -315,6 +385,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 +420,27 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Kinesis Firehose's +// API operation PutRecord for usage and error information. +// +// Returned Error Codes: +// * ResourceNotFoundException +// The specified resource could not be found. +// +// * InvalidArgumentException +// The specified input parameter has an value that is not valid. +// +// * ServiceUnavailableException +// The service is unavailable, back off and retry the operation. If you continue +// to see the exception, throughput limits for the delivery stream may have +// been exceeded. For more information about limits and how to request an increase, +// see Amazon Kinesis Firehose Limits (http://docs.aws.amazon.com/firehose/latest/dev/limits.html). +// func (c *Firehose) PutRecord(input *PutRecordInput) (*PutRecordOutput, error) { req, out := c.PutRecordRequest(input) err := req.Send() @@ -361,6 +454,8 @@ const opPutRecordBatch = "PutRecordBatch" // value can be used to capture response data after the request's "Send" method // is called. // +// See PutRecordBatch for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -395,6 +490,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 +548,27 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Kinesis Firehose's +// API operation PutRecordBatch for usage and error information. +// +// Returned Error Codes: +// * ResourceNotFoundException +// The specified resource could not be found. +// +// * InvalidArgumentException +// The specified input parameter has an value that is not valid. +// +// * ServiceUnavailableException +// The service is unavailable, back off and retry the operation. If you continue +// to see the exception, throughput limits for the delivery stream may have +// been exceeded. For more information about limits and how to request an increase, +// see Amazon Kinesis Firehose Limits (http://docs.aws.amazon.com/firehose/latest/dev/limits.html). +// func (c *Firehose) PutRecordBatch(input *PutRecordBatchInput) (*PutRecordBatchOutput, error) { req, out := c.PutRecordBatchRequest(input) err := req.Send() @@ -464,6 +582,8 @@ const opUpdateDestination = "UpdateDestination" // value can be used to capture response data after the request's "Send" method // is called. // +// See UpdateDestination for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -498,6 +618,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 +652,28 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Kinesis Firehose's +// API operation UpdateDestination for usage and error information. +// +// Returned Error Codes: +// * InvalidArgumentException +// The specified input parameter has an value that is not valid. +// +// * ResourceInUseException +// The resource is already in use and not available for this operation. +// +// * ResourceNotFoundException +// The specified resource could not be found. +// +// * ConcurrentModificationException +// Another modification has already happened. Fetch VersionId again and use +// it to update the destination. +// 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..fd307e7b8c4 100644 --- a/service/gamelift/api.go +++ b/service/gamelift/api.go @@ -20,6 +20,8 @@ const opCreateAlias = "CreateAlias" // value can be used to capture response data after the request's "Send" method // is called. // +// See CreateAlias for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -54,6 +56,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 +71,36 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon GameLift's +// API operation CreateAlias for usage and error information. +// +// Returned Error Codes: +// * UnauthorizedException +// The client failed authentication. Clients should not retry such requests +// +// * InvalidRequestException +// One or more parameters specified as part of the request are invalid. Correct +// the invalid parameters before retrying. +// +// * ConflictException +// The requested operation would cause a conflict with the current state of +// a service resource associated with the request. Resolve the conflict before +// retrying this request. +// +// * InternalServiceException +// The service encountered an unrecoverable internal failure while processing +// the request. Clients can retry such requests, either immediately or after +// a back-off period. +// +// * LimitExceededException +// The requested operation would cause the resource to exceed the allowed service +// limit. Resolve the issue before retrying. +// func (c *GameLift) CreateAlias(input *CreateAliasInput) (*CreateAliasOutput, error) { req, out := c.CreateAliasRequest(input) err := req.Send() @@ -80,6 +114,8 @@ const opCreateBuild = "CreateBuild" // value can be used to capture response data after the request's "Send" method // is called. // +// See CreateBuild for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -114,6 +150,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 +170,32 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon GameLift's +// API operation CreateBuild for usage and error information. +// +// Returned Error Codes: +// * UnauthorizedException +// The client failed authentication. Clients should not retry such requests +// +// * InvalidRequestException +// One or more parameters specified as part of the request are invalid. Correct +// the invalid parameters before retrying. +// +// * ConflictException +// The requested operation would cause a conflict with the current state of +// a service resource associated with the request. Resolve the conflict before +// retrying this request. +// +// * InternalServiceException +// The service encountered an unrecoverable internal failure while processing +// the request. Clients can retry such requests, either immediately or after +// a back-off period. +// func (c *GameLift) CreateBuild(input *CreateBuildInput) (*CreateBuildOutput, error) { req, out := c.CreateBuildRequest(input) err := req.Send() @@ -145,6 +209,8 @@ const opCreateFleet = "CreateFleet" // value can be used to capture response data after the request's "Send" method // is called. // +// See CreateFleet for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -179,6 +245,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 +282,40 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon GameLift's +// API operation CreateFleet for usage and error information. +// +// Returned Error Codes: +// * InternalServiceException +// The service encountered an unrecoverable internal failure while processing +// the request. Clients can retry such requests, either immediately or after +// a back-off period. +// +// * NotFoundException +// A service resource associated with the request could not be found. Clients +// should not retry such requests +// +// * ConflictException +// The requested operation would cause a conflict with the current state of +// a service resource associated with the request. Resolve the conflict before +// retrying this request. +// +// * LimitExceededException +// The requested operation would cause the resource to exceed the allowed service +// limit. Resolve the issue before retrying. +// +// * InvalidRequestException +// One or more parameters specified as part of the request are invalid. Correct +// the invalid parameters before retrying. +// +// * UnauthorizedException +// The client failed authentication. Clients should not retry such requests +// func (c *GameLift) CreateFleet(input *CreateFleetInput) (*CreateFleetOutput, error) { req, out := c.CreateFleetRequest(input) err := req.Send() @@ -227,6 +329,8 @@ const opCreateGameSession = "CreateGameSession" // value can be used to capture response data after the request's "Send" method // is called. // +// See CreateGameSession for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -261,6 +365,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 +380,53 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon GameLift's +// API operation CreateGameSession for usage and error information. +// +// Returned Error Codes: +// * ConflictException +// The requested operation would cause a conflict with the current state of +// a service resource associated with the request. Resolve the conflict before +// retrying this request. +// +// * InternalServiceException +// The service encountered an unrecoverable internal failure while processing +// the request. Clients can retry such requests, either immediately or after +// a back-off period. +// +// * UnauthorizedException +// The client failed authentication. Clients should not retry such requests +// +// * InvalidFleetStatusException +// The requested operation would cause a conflict with the current state of +// a resource associated with the request and/or the fleet. Resolve the conflict +// before retrying. +// +// * TerminalRoutingStrategyException +// The service is unable to resolve the routing for a particular alias because +// it has a terminal RoutingStrategy associated with it. The message returned +// in this exception is the message defined in the routing strategy itself. +// Such requests should only be retried if the routing strategy for the specified +// alias is modified. +// +// * InvalidRequestException +// One or more parameters specified as part of the request are invalid. Correct +// the invalid parameters before retrying. +// +// * NotFoundException +// A service resource associated with the request could not be found. Clients +// should not retry such requests +// +// * FleetCapacityExceededException +// The specified fleet has no available instances to fulfill a request to create +// a new game session. Such requests should only be retried once the fleet capacity +// has been increased. +// func (c *GameLift) CreateGameSession(input *CreateGameSessionInput) (*CreateGameSessionOutput, error) { req, out := c.CreateGameSessionRequest(input) err := req.Send() @@ -287,6 +440,8 @@ const opCreatePlayerSession = "CreatePlayerSession" // value can be used to capture response data after the request's "Send" method // is called. // +// See CreatePlayerSession for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -321,6 +476,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 +485,47 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon GameLift's +// API operation CreatePlayerSession for usage and error information. +// +// Returned Error Codes: +// * InternalServiceException +// The service encountered an unrecoverable internal failure while processing +// the request. Clients can retry such requests, either immediately or after +// a back-off period. +// +// * UnauthorizedException +// The client failed authentication. Clients should not retry such requests +// +// * InvalidGameSessionStatusException +// The requested operation would cause a conflict with the current state of +// a resource associated with the request and/or the game instance. Clients +// should not retry such requests without resolving the conflict. +// +// * GameSessionFullException +// The game instance is currently full and cannot allow the requested player(s) +// to join. This exception occurs in response to a CreatePlayerSession request. +// +// * TerminalRoutingStrategyException +// The service is unable to resolve the routing for a particular alias because +// it has a terminal RoutingStrategy associated with it. The message returned +// in this exception is the message defined in the routing strategy itself. +// Such requests should only be retried if the routing strategy for the specified +// alias is modified. +// +// * InvalidRequestException +// One or more parameters specified as part of the request are invalid. Correct +// the invalid parameters before retrying. +// +// * NotFoundException +// A service resource associated with the request could not be found. Clients +// should not retry such requests +// func (c *GameLift) CreatePlayerSession(input *CreatePlayerSessionInput) (*CreatePlayerSessionOutput, error) { req, out := c.CreatePlayerSessionRequest(input) err := req.Send() @@ -341,6 +539,8 @@ const opCreatePlayerSessions = "CreatePlayerSessions" // value can be used to capture response data after the request's "Send" method // is called. // +// See CreatePlayerSessions for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -375,6 +575,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 +586,47 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon GameLift's +// API operation CreatePlayerSessions for usage and error information. +// +// Returned Error Codes: +// * InternalServiceException +// The service encountered an unrecoverable internal failure while processing +// the request. Clients can retry such requests, either immediately or after +// a back-off period. +// +// * UnauthorizedException +// The client failed authentication. Clients should not retry such requests +// +// * InvalidGameSessionStatusException +// The requested operation would cause a conflict with the current state of +// a resource associated with the request and/or the game instance. Clients +// should not retry such requests without resolving the conflict. +// +// * GameSessionFullException +// The game instance is currently full and cannot allow the requested player(s) +// to join. This exception occurs in response to a CreatePlayerSession request. +// +// * TerminalRoutingStrategyException +// The service is unable to resolve the routing for a particular alias because +// it has a terminal RoutingStrategy associated with it. The message returned +// in this exception is the message defined in the routing strategy itself. +// Such requests should only be retried if the routing strategy for the specified +// alias is modified. +// +// * InvalidRequestException +// One or more parameters specified as part of the request are invalid. Correct +// the invalid parameters before retrying. +// +// * NotFoundException +// A service resource associated with the request could not be found. Clients +// should not retry such requests +// func (c *GameLift) CreatePlayerSessions(input *CreatePlayerSessionsInput) (*CreatePlayerSessionsOutput, error) { req, out := c.CreatePlayerSessionsRequest(input) err := req.Send() @@ -397,6 +640,8 @@ const opDeleteAlias = "DeleteAlias" // value can be used to capture response data after the request's "Send" method // is called. // +// See DeleteAlias for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -433,9 +678,36 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon GameLift's +// API operation DeleteAlias for usage and error information. +// +// Returned Error Codes: +// * UnauthorizedException +// The client failed authentication. Clients should not retry such requests +// +// * NotFoundException +// A service resource associated with the request could not be found. Clients +// should not retry such requests +// +// * InvalidRequestException +// One or more parameters specified as part of the request are invalid. Correct +// the invalid parameters before retrying. +// +// * InternalServiceException +// The service encountered an unrecoverable internal failure while processing +// the request. Clients can retry such requests, either immediately or after +// a back-off period. +// func (c *GameLift) DeleteAlias(input *DeleteAliasInput) (*DeleteAliasOutput, error) { req, out := c.DeleteAliasRequest(input) err := req.Send() @@ -449,6 +721,8 @@ const opDeleteBuild = "DeleteBuild" // value can be used to capture response data after the request's "Send" method // is called. // +// See DeleteBuild for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -485,12 +759,39 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon GameLift's +// API operation DeleteBuild for usage and error information. +// +// Returned Error Codes: +// * UnauthorizedException +// The client failed authentication. Clients should not retry such requests +// +// * NotFoundException +// A service resource associated with the request could not be found. Clients +// should not retry such requests +// +// * InternalServiceException +// The service encountered an unrecoverable internal failure while processing +// the request. Clients can retry such requests, either immediately or after +// a back-off period. +// +// * InvalidRequestException +// One or more parameters specified as part of the request are invalid. Correct +// the invalid parameters before retrying. +// func (c *GameLift) DeleteBuild(input *DeleteBuildInput) (*DeleteBuildOutput, error) { req, out := c.DeleteBuildRequest(input) err := req.Send() @@ -504,6 +805,8 @@ const opDeleteFleet = "DeleteFleet" // value can be used to capture response data after the request's "Send" method // is called. // +// See DeleteFleet for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -540,11 +843,43 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon GameLift's +// API operation DeleteFleet for usage and error information. +// +// Returned Error Codes: +// * NotFoundException +// A service resource associated with the request could not be found. Clients +// should not retry such requests +// +// * InternalServiceException +// The service encountered an unrecoverable internal failure while processing +// the request. Clients can retry such requests, either immediately or after +// a back-off period. +// +// * InvalidFleetStatusException +// The requested operation would cause a conflict with the current state of +// a resource associated with the request and/or the fleet. Resolve the conflict +// before retrying. +// +// * UnauthorizedException +// The client failed authentication. Clients should not retry such requests +// +// * InvalidRequestException +// One or more parameters specified as part of the request are invalid. Correct +// the invalid parameters before retrying. +// func (c *GameLift) DeleteFleet(input *DeleteFleetInput) (*DeleteFleetOutput, error) { req, out := c.DeleteFleetRequest(input) err := req.Send() @@ -558,6 +893,8 @@ const opDeleteScalingPolicy = "DeleteScalingPolicy" // value can be used to capture response data after the request's "Send" method // is called. // +// See DeleteScalingPolicy for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -594,9 +931,36 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon GameLift's +// API operation DeleteScalingPolicy for usage and error information. +// +// Returned Error Codes: +// * InternalServiceException +// The service encountered an unrecoverable internal failure while processing +// the request. Clients can retry such requests, either immediately or after +// a back-off period. +// +// * InvalidRequestException +// One or more parameters specified as part of the request are invalid. Correct +// the invalid parameters before retrying. +// +// * UnauthorizedException +// The client failed authentication. Clients should not retry such requests +// +// * NotFoundException +// A service resource associated with the request could not be found. Clients +// should not retry such requests +// func (c *GameLift) DeleteScalingPolicy(input *DeleteScalingPolicyInput) (*DeleteScalingPolicyOutput, error) { req, out := c.DeleteScalingPolicyRequest(input) err := req.Send() @@ -610,6 +974,8 @@ const opDescribeAlias = "DescribeAlias" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeAlias for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -644,8 +1010,35 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon GameLift's +// API operation DescribeAlias for usage and error information. +// +// Returned Error Codes: +// * UnauthorizedException +// The client failed authentication. Clients should not retry such requests +// +// * InvalidRequestException +// One or more parameters specified as part of the request are invalid. Correct +// the invalid parameters before retrying. +// +// * NotFoundException +// A service resource associated with the request could not be found. Clients +// should not retry such requests +// +// * InternalServiceException +// The service encountered an unrecoverable internal failure while processing +// the request. Clients can retry such requests, either immediately or after +// a back-off period. +// func (c *GameLift) DescribeAlias(input *DescribeAliasInput) (*DescribeAliasOutput, error) { req, out := c.DescribeAliasRequest(input) err := req.Send() @@ -659,6 +1052,8 @@ const opDescribeBuild = "DescribeBuild" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeBuild for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -693,8 +1088,35 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon GameLift's +// API operation DescribeBuild for usage and error information. +// +// Returned Error Codes: +// * UnauthorizedException +// The client failed authentication. Clients should not retry such requests +// +// * InvalidRequestException +// One or more parameters specified as part of the request are invalid. Correct +// the invalid parameters before retrying. +// +// * NotFoundException +// A service resource associated with the request could not be found. Clients +// should not retry such requests +// +// * InternalServiceException +// The service encountered an unrecoverable internal failure while processing +// the request. Clients can retry such requests, either immediately or after +// a back-off period. +// func (c *GameLift) DescribeBuild(input *DescribeBuildInput) (*DescribeBuildOutput, error) { req, out := c.DescribeBuildRequest(input) err := req.Send() @@ -708,6 +1130,8 @@ const opDescribeEC2InstanceLimits = "DescribeEC2InstanceLimits" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeEC2InstanceLimits for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -742,12 +1166,35 @@ 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). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon GameLift's +// API operation DescribeEC2InstanceLimits for usage and error information. +// +// Returned Error Codes: +// * InvalidRequestException +// One or more parameters specified as part of the request are invalid. Correct +// the invalid parameters before retrying. +// +// * InternalServiceException +// The service encountered an unrecoverable internal failure while processing +// the request. Clients can retry such requests, either immediately or after +// a back-off period. +// +// * UnauthorizedException +// The client failed authentication. Clients should not retry such requests +// func (c *GameLift) DescribeEC2InstanceLimits(input *DescribeEC2InstanceLimitsInput) (*DescribeEC2InstanceLimitsOutput, error) { req, out := c.DescribeEC2InstanceLimitsRequest(input) err := req.Send() @@ -761,6 +1208,8 @@ const opDescribeFleetAttributes = "DescribeFleetAttributes" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeFleetAttributes for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -795,6 +1244,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 +1257,31 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon GameLift's +// API operation DescribeFleetAttributes for usage and error information. +// +// Returned Error Codes: +// * InternalServiceException +// The service encountered an unrecoverable internal failure while processing +// the request. Clients can retry such requests, either immediately or after +// a back-off period. +// +// * NotFoundException +// A service resource associated with the request could not be found. Clients +// should not retry such requests +// +// * InvalidRequestException +// One or more parameters specified as part of the request are invalid. Correct +// the invalid parameters before retrying. +// +// * UnauthorizedException +// The client failed authentication. Clients should not retry such requests +// func (c *GameLift) DescribeFleetAttributes(input *DescribeFleetAttributesInput) (*DescribeFleetAttributesOutput, error) { req, out := c.DescribeFleetAttributesRequest(input) err := req.Send() @@ -819,6 +1295,8 @@ const opDescribeFleetCapacity = "DescribeFleetCapacity" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeFleetCapacity for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -853,6 +1331,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 +1345,31 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon GameLift's +// API operation DescribeFleetCapacity for usage and error information. +// +// Returned Error Codes: +// * InternalServiceException +// The service encountered an unrecoverable internal failure while processing +// the request. Clients can retry such requests, either immediately or after +// a back-off period. +// +// * NotFoundException +// A service resource associated with the request could not be found. Clients +// should not retry such requests +// +// * InvalidRequestException +// One or more parameters specified as part of the request are invalid. Correct +// the invalid parameters before retrying. +// +// * UnauthorizedException +// The client failed authentication. Clients should not retry such requests +// func (c *GameLift) DescribeFleetCapacity(input *DescribeFleetCapacityInput) (*DescribeFleetCapacityOutput, error) { req, out := c.DescribeFleetCapacityRequest(input) err := req.Send() @@ -878,6 +1383,8 @@ const opDescribeFleetEvents = "DescribeFleetEvents" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeFleetEvents for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -912,10 +1419,37 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon GameLift's +// API operation DescribeFleetEvents for usage and error information. +// +// Returned Error Codes: +// * NotFoundException +// A service resource associated with the request could not be found. Clients +// should not retry such requests +// +// * InternalServiceException +// The service encountered an unrecoverable internal failure while processing +// the request. Clients can retry such requests, either immediately or after +// a back-off period. +// +// * UnauthorizedException +// The client failed authentication. Clients should not retry such requests +// +// * InvalidRequestException +// One or more parameters specified as part of the request are invalid. Correct +// the invalid parameters before retrying. +// func (c *GameLift) DescribeFleetEvents(input *DescribeFleetEventsInput) (*DescribeFleetEventsOutput, error) { req, out := c.DescribeFleetEventsRequest(input) err := req.Send() @@ -929,6 +1463,8 @@ const opDescribeFleetPortSettings = "DescribeFleetPortSettings" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeFleetPortSettings for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -963,12 +1499,39 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon GameLift's +// API operation DescribeFleetPortSettings for usage and error information. +// +// Returned Error Codes: +// * InternalServiceException +// The service encountered an unrecoverable internal failure while processing +// the request. Clients can retry such requests, either immediately or after +// a back-off period. +// +// * NotFoundException +// A service resource associated with the request could not be found. Clients +// should not retry such requests +// +// * InvalidRequestException +// One or more parameters specified as part of the request are invalid. Correct +// the invalid parameters before retrying. +// +// * UnauthorizedException +// The client failed authentication. Clients should not retry such requests +// func (c *GameLift) DescribeFleetPortSettings(input *DescribeFleetPortSettingsInput) (*DescribeFleetPortSettingsOutput, error) { req, out := c.DescribeFleetPortSettingsRequest(input) err := req.Send() @@ -982,6 +1545,8 @@ const opDescribeFleetUtilization = "DescribeFleetUtilization" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeFleetUtilization for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1016,6 +1581,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 +1593,31 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon GameLift's +// API operation DescribeFleetUtilization for usage and error information. +// +// Returned Error Codes: +// * InternalServiceException +// The service encountered an unrecoverable internal failure while processing +// the request. Clients can retry such requests, either immediately or after +// a back-off period. +// +// * NotFoundException +// A service resource associated with the request could not be found. Clients +// should not retry such requests +// +// * InvalidRequestException +// One or more parameters specified as part of the request are invalid. Correct +// the invalid parameters before retrying. +// +// * UnauthorizedException +// The client failed authentication. Clients should not retry such requests +// func (c *GameLift) DescribeFleetUtilization(input *DescribeFleetUtilizationInput) (*DescribeFleetUtilizationOutput, error) { req, out := c.DescribeFleetUtilizationRequest(input) err := req.Send() @@ -1039,6 +1631,8 @@ const opDescribeGameSessionDetails = "DescribeGameSessionDetails" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeGameSessionDetails for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1073,6 +1667,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 +1680,38 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon GameLift's +// API operation DescribeGameSessionDetails for usage and error information. +// +// Returned Error Codes: +// * InternalServiceException +// The service encountered an unrecoverable internal failure while processing +// the request. Clients can retry such requests, either immediately or after +// a back-off period. +// +// * NotFoundException +// A service resource associated with the request could not be found. Clients +// should not retry such requests +// +// * InvalidRequestException +// One or more parameters specified as part of the request are invalid. Correct +// the invalid parameters before retrying. +// +// * UnauthorizedException +// The client failed authentication. Clients should not retry such requests +// +// * TerminalRoutingStrategyException +// The service is unable to resolve the routing for a particular alias because +// it has a terminal RoutingStrategy associated with it. The message returned +// in this exception is the message defined in the routing strategy itself. +// Such requests should only be retried if the routing strategy for the specified +// alias is modified. +// func (c *GameLift) DescribeGameSessionDetails(input *DescribeGameSessionDetailsInput) (*DescribeGameSessionDetailsOutput, error) { req, out := c.DescribeGameSessionDetailsRequest(input) err := req.Send() @@ -1097,6 +1725,8 @@ const opDescribeGameSessions = "DescribeGameSessions" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeGameSessions for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1131,6 +1761,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 +1773,38 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon GameLift's +// API operation DescribeGameSessions for usage and error information. +// +// Returned Error Codes: +// * InternalServiceException +// The service encountered an unrecoverable internal failure while processing +// the request. Clients can retry such requests, either immediately or after +// a back-off period. +// +// * NotFoundException +// A service resource associated with the request could not be found. Clients +// should not retry such requests +// +// * InvalidRequestException +// One or more parameters specified as part of the request are invalid. Correct +// the invalid parameters before retrying. +// +// * UnauthorizedException +// The client failed authentication. Clients should not retry such requests +// +// * TerminalRoutingStrategyException +// The service is unable to resolve the routing for a particular alias because +// it has a terminal RoutingStrategy associated with it. The message returned +// in this exception is the message defined in the routing strategy itself. +// Such requests should only be retried if the routing strategy for the specified +// alias is modified. +// func (c *GameLift) DescribeGameSessions(input *DescribeGameSessionsInput) (*DescribeGameSessionsOutput, error) { req, out := c.DescribeGameSessionsRequest(input) err := req.Send() @@ -1154,6 +1818,8 @@ const opDescribePlayerSessions = "DescribePlayerSessions" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribePlayerSessions for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1188,6 +1854,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 +1868,31 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon GameLift's +// API operation DescribePlayerSessions for usage and error information. +// +// Returned Error Codes: +// * InternalServiceException +// The service encountered an unrecoverable internal failure while processing +// the request. Clients can retry such requests, either immediately or after +// a back-off period. +// +// * NotFoundException +// A service resource associated with the request could not be found. Clients +// should not retry such requests +// +// * InvalidRequestException +// One or more parameters specified as part of the request are invalid. Correct +// the invalid parameters before retrying. +// +// * UnauthorizedException +// The client failed authentication. Clients should not retry such requests +// func (c *GameLift) DescribePlayerSessions(input *DescribePlayerSessionsInput) (*DescribePlayerSessionsOutput, error) { req, out := c.DescribePlayerSessionsRequest(input) err := req.Send() @@ -1213,6 +1906,8 @@ const opDescribeRuntimeConfiguration = "DescribeRuntimeConfiguration" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeRuntimeConfiguration for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1247,9 +1942,36 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon GameLift's +// API operation DescribeRuntimeConfiguration for usage and error information. +// +// Returned Error Codes: +// * UnauthorizedException +// The client failed authentication. Clients should not retry such requests +// +// * NotFoundException +// A service resource associated with the request could not be found. Clients +// should not retry such requests +// +// * InternalServiceException +// The service encountered an unrecoverable internal failure while processing +// the request. Clients can retry such requests, either immediately or after +// a back-off period. +// +// * InvalidRequestException +// One or more parameters specified as part of the request are invalid. Correct +// the invalid parameters before retrying. +// func (c *GameLift) DescribeRuntimeConfiguration(input *DescribeRuntimeConfigurationInput) (*DescribeRuntimeConfigurationOutput, error) { req, out := c.DescribeRuntimeConfigurationRequest(input) err := req.Send() @@ -1263,6 +1985,8 @@ const opDescribeScalingPolicies = "DescribeScalingPolicies" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeScalingPolicies for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1297,12 +2021,39 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon GameLift's +// API operation DescribeScalingPolicies for usage and error information. +// +// Returned Error Codes: +// * InternalServiceException +// The service encountered an unrecoverable internal failure while processing +// the request. Clients can retry such requests, either immediately or after +// a back-off period. +// +// * InvalidRequestException +// One or more parameters specified as part of the request are invalid. Correct +// the invalid parameters before retrying. +// +// * UnauthorizedException +// The client failed authentication. Clients should not retry such requests +// +// * NotFoundException +// A service resource associated with the request could not be found. Clients +// should not retry such requests +// func (c *GameLift) DescribeScalingPolicies(input *DescribeScalingPoliciesInput) (*DescribeScalingPoliciesOutput, error) { req, out := c.DescribeScalingPoliciesRequest(input) err := req.Send() @@ -1316,6 +2067,8 @@ const opGetGameSessionLogUrl = "GetGameSessionLogUrl" // value can be used to capture response data after the request's "Send" method // is called. // +// See GetGameSessionLogUrl for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1350,6 +2103,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 +2112,31 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon GameLift's +// API operation GetGameSessionLogUrl for usage and error information. +// +// Returned Error Codes: +// * InternalServiceException +// The service encountered an unrecoverable internal failure while processing +// the request. Clients can retry such requests, either immediately or after +// a back-off period. +// +// * NotFoundException +// A service resource associated with the request could not be found. Clients +// should not retry such requests +// +// * UnauthorizedException +// The client failed authentication. Clients should not retry such requests +// +// * InvalidRequestException +// One or more parameters specified as part of the request are invalid. Correct +// the invalid parameters before retrying. +// func (c *GameLift) GetGameSessionLogUrl(input *GetGameSessionLogUrlInput) (*GetGameSessionLogUrlOutput, error) { req, out := c.GetGameSessionLogUrlRequest(input) err := req.Send() @@ -1370,6 +2150,8 @@ const opListAliases = "ListAliases" // value can be used to capture response data after the request's "Send" method // is called. // +// See ListAliases for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1404,11 +2186,34 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon GameLift's +// API operation ListAliases for usage and error information. +// +// Returned Error Codes: +// * UnauthorizedException +// The client failed authentication. Clients should not retry such requests +// +// * InvalidRequestException +// One or more parameters specified as part of the request are invalid. Correct +// the invalid parameters before retrying. +// +// * InternalServiceException +// The service encountered an unrecoverable internal failure while processing +// the request. Clients can retry such requests, either immediately or after +// a back-off period. +// func (c *GameLift) ListAliases(input *ListAliasesInput) (*ListAliasesOutput, error) { req, out := c.ListAliasesRequest(input) err := req.Send() @@ -1422,6 +2227,8 @@ const opListBuilds = "ListBuilds" // value can be used to capture response data after the request's "Send" method // is called. // +// See ListBuilds for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1456,12 +2263,35 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon GameLift's +// API operation ListBuilds for usage and error information. +// +// Returned Error Codes: +// * UnauthorizedException +// The client failed authentication. Clients should not retry such requests +// +// * InvalidRequestException +// One or more parameters specified as part of the request are invalid. Correct +// the invalid parameters before retrying. +// +// * InternalServiceException +// The service encountered an unrecoverable internal failure while processing +// the request. Clients can retry such requests, either immediately or after +// a back-off period. +// func (c *GameLift) ListBuilds(input *ListBuildsInput) (*ListBuildsOutput, error) { req, out := c.ListBuildsRequest(input) err := req.Send() @@ -1475,6 +2305,8 @@ const opListFleets = "ListFleets" // value can be used to capture response data after the request's "Send" method // is called. // +// See ListFleets for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1509,11 +2341,38 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon GameLift's +// API operation ListFleets for usage and error information. +// +// Returned Error Codes: +// * InternalServiceException +// The service encountered an unrecoverable internal failure while processing +// the request. Clients can retry such requests, either immediately or after +// a back-off period. +// +// * NotFoundException +// A service resource associated with the request could not be found. Clients +// should not retry such requests +// +// * InvalidRequestException +// One or more parameters specified as part of the request are invalid. Correct +// the invalid parameters before retrying. +// +// * UnauthorizedException +// The client failed authentication. Clients should not retry such requests +// func (c *GameLift) ListFleets(input *ListFleetsInput) (*ListFleetsOutput, error) { req, out := c.ListFleetsRequest(input) err := req.Send() @@ -1527,6 +2386,8 @@ const opPutScalingPolicy = "PutScalingPolicy" // value can be used to capture response data after the request's "Send" method // is called. // +// See PutScalingPolicy for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1561,6 +2422,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 +2446,31 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon GameLift's +// API operation PutScalingPolicy for usage and error information. +// +// Returned Error Codes: +// * InternalServiceException +// The service encountered an unrecoverable internal failure while processing +// the request. Clients can retry such requests, either immediately or after +// a back-off period. +// +// * InvalidRequestException +// One or more parameters specified as part of the request are invalid. Correct +// the invalid parameters before retrying. +// +// * UnauthorizedException +// The client failed authentication. Clients should not retry such requests +// +// * NotFoundException +// A service resource associated with the request could not be found. Clients +// should not retry such requests +// func (c *GameLift) PutScalingPolicy(input *PutScalingPolicyInput) (*PutScalingPolicyOutput, error) { req, out := c.PutScalingPolicyRequest(input) err := req.Send() @@ -1596,6 +2484,8 @@ const opRequestUploadCredentials = "RequestUploadCredentials" // value can be used to capture response data after the request's "Send" method // is called. // +// See RequestUploadCredentials for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1630,6 +2520,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 +2535,31 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon GameLift's +// API operation RequestUploadCredentials for usage and error information. +// +// Returned Error Codes: +// * UnauthorizedException +// The client failed authentication. Clients should not retry such requests +// +// * InvalidRequestException +// One or more parameters specified as part of the request are invalid. Correct +// the invalid parameters before retrying. +// +// * NotFoundException +// A service resource associated with the request could not be found. Clients +// should not retry such requests +// +// * InternalServiceException +// The service encountered an unrecoverable internal failure while processing +// the request. Clients can retry such requests, either immediately or after +// a back-off period. +// func (c *GameLift) RequestUploadCredentials(input *RequestUploadCredentialsInput) (*RequestUploadCredentialsOutput, error) { req, out := c.RequestUploadCredentialsRequest(input) err := req.Send() @@ -1656,6 +2573,8 @@ const opResolveAlias = "ResolveAlias" // value can be used to capture response data after the request's "Send" method // is called. // +// See ResolveAlias for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1690,7 +2609,41 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon GameLift's +// API operation ResolveAlias for usage and error information. +// +// Returned Error Codes: +// * UnauthorizedException +// The client failed authentication. Clients should not retry such requests +// +// * InvalidRequestException +// One or more parameters specified as part of the request are invalid. Correct +// the invalid parameters before retrying. +// +// * NotFoundException +// A service resource associated with the request could not be found. Clients +// should not retry such requests +// +// * TerminalRoutingStrategyException +// The service is unable to resolve the routing for a particular alias because +// it has a terminal RoutingStrategy associated with it. The message returned +// in this exception is the message defined in the routing strategy itself. +// Such requests should only be retried if the routing strategy for the specified +// alias is modified. +// +// * InternalServiceException +// The service encountered an unrecoverable internal failure while processing +// the request. Clients can retry such requests, either immediately or after +// a back-off period. +// func (c *GameLift) ResolveAlias(input *ResolveAliasInput) (*ResolveAliasOutput, error) { req, out := c.ResolveAliasRequest(input) err := req.Send() @@ -1704,6 +2657,8 @@ const opSearchGameSessions = "SearchGameSessions" // value can be used to capture response data after the request's "Send" method // is called. // +// See SearchGameSessions for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1738,6 +2693,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 +2727,38 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon GameLift's +// API operation SearchGameSessions for usage and error information. +// +// Returned Error Codes: +// * InternalServiceException +// The service encountered an unrecoverable internal failure while processing +// the request. Clients can retry such requests, either immediately or after +// a back-off period. +// +// * NotFoundException +// A service resource associated with the request could not be found. Clients +// should not retry such requests +// +// * InvalidRequestException +// One or more parameters specified as part of the request are invalid. Correct +// the invalid parameters before retrying. +// +// * UnauthorizedException +// The client failed authentication. Clients should not retry such requests +// +// * TerminalRoutingStrategyException +// The service is unable to resolve the routing for a particular alias because +// it has a terminal RoutingStrategy associated with it. The message returned +// in this exception is the message defined in the routing strategy itself. +// Such requests should only be retried if the routing strategy for the specified +// alias is modified. +// func (c *GameLift) SearchGameSessions(input *SearchGameSessionsInput) (*SearchGameSessionsOutput, error) { req, out := c.SearchGameSessionsRequest(input) err := req.Send() @@ -1783,6 +2772,8 @@ const opUpdateAlias = "UpdateAlias" // value can be used to capture response data after the request's "Send" method // is called. // +// See UpdateAlias for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1817,10 +2808,37 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon GameLift's +// API operation UpdateAlias for usage and error information. +// +// Returned Error Codes: +// * UnauthorizedException +// The client failed authentication. Clients should not retry such requests +// +// * InvalidRequestException +// One or more parameters specified as part of the request are invalid. Correct +// the invalid parameters before retrying. +// +// * NotFoundException +// A service resource associated with the request could not be found. Clients +// should not retry such requests +// +// * InternalServiceException +// The service encountered an unrecoverable internal failure while processing +// the request. Clients can retry such requests, either immediately or after +// a back-off period. +// func (c *GameLift) UpdateAlias(input *UpdateAliasInput) (*UpdateAliasOutput, error) { req, out := c.UpdateAliasRequest(input) err := req.Send() @@ -1834,6 +2852,8 @@ const opUpdateBuild = "UpdateBuild" // value can be used to capture response data after the request's "Send" method // is called. // +// See UpdateBuild for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1868,10 +2888,37 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon GameLift's +// API operation UpdateBuild for usage and error information. +// +// Returned Error Codes: +// * UnauthorizedException +// The client failed authentication. Clients should not retry such requests +// +// * InvalidRequestException +// One or more parameters specified as part of the request are invalid. Correct +// the invalid parameters before retrying. +// +// * NotFoundException +// A service resource associated with the request could not be found. Clients +// should not retry such requests +// +// * InternalServiceException +// The service encountered an unrecoverable internal failure while processing +// the request. Clients can retry such requests, either immediately or after +// a back-off period. +// func (c *GameLift) UpdateBuild(input *UpdateBuildInput) (*UpdateBuildOutput, error) { req, out := c.UpdateBuildRequest(input) err := req.Send() @@ -1885,6 +2932,8 @@ const opUpdateFleetAttributes = "UpdateFleetAttributes" // value can be used to capture response data after the request's "Send" method // is called. // +// See UpdateFleetAttributes for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1919,9 +2968,50 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon GameLift's +// API operation UpdateFleetAttributes for usage and error information. +// +// Returned Error Codes: +// * NotFoundException +// A service resource associated with the request could not be found. Clients +// should not retry such requests +// +// * ConflictException +// The requested operation would cause a conflict with the current state of +// a service resource associated with the request. Resolve the conflict before +// retrying this request. +// +// * InvalidFleetStatusException +// The requested operation would cause a conflict with the current state of +// a resource associated with the request and/or the fleet. Resolve the conflict +// before retrying. +// +// * LimitExceededException +// The requested operation would cause the resource to exceed the allowed service +// limit. Resolve the issue before retrying. +// +// * InternalServiceException +// The service encountered an unrecoverable internal failure while processing +// the request. Clients can retry such requests, either immediately or after +// a back-off period. +// +// * InvalidRequestException +// One or more parameters specified as part of the request are invalid. Correct +// the invalid parameters before retrying. +// +// * UnauthorizedException +// The client failed authentication. Clients should not retry such requests +// func (c *GameLift) UpdateFleetAttributes(input *UpdateFleetAttributesInput) (*UpdateFleetAttributesOutput, error) { req, out := c.UpdateFleetAttributesRequest(input) err := req.Send() @@ -1935,6 +3025,8 @@ const opUpdateFleetCapacity = "UpdateFleetCapacity" // value can be used to capture response data after the request's "Send" method // is called. // +// See UpdateFleetCapacity for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1969,6 +3061,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 +3078,45 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon GameLift's +// API operation UpdateFleetCapacity for usage and error information. +// +// Returned Error Codes: +// * NotFoundException +// A service resource associated with the request could not be found. Clients +// should not retry such requests +// +// * ConflictException +// The requested operation would cause a conflict with the current state of +// a service resource associated with the request. Resolve the conflict before +// retrying this request. +// +// * LimitExceededException +// The requested operation would cause the resource to exceed the allowed service +// limit. Resolve the issue before retrying. +// +// * InvalidFleetStatusException +// The requested operation would cause a conflict with the current state of +// a resource associated with the request and/or the fleet. Resolve the conflict +// before retrying. +// +// * InternalServiceException +// The service encountered an unrecoverable internal failure while processing +// the request. Clients can retry such requests, either immediately or after +// a back-off period. +// +// * InvalidRequestException +// One or more parameters specified as part of the request are invalid. Correct +// the invalid parameters before retrying. +// +// * UnauthorizedException +// The client failed authentication. Clients should not retry such requests +// func (c *GameLift) UpdateFleetCapacity(input *UpdateFleetCapacityInput) (*UpdateFleetCapacityOutput, error) { req, out := c.UpdateFleetCapacityRequest(input) err := req.Send() @@ -1997,6 +3130,8 @@ const opUpdateFleetPortSettings = "UpdateFleetPortSettings" // value can be used to capture response data after the request's "Send" method // is called. // +// See UpdateFleetPortSettings for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -2031,12 +3166,53 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon GameLift's +// API operation UpdateFleetPortSettings for usage and error information. +// +// Returned Error Codes: +// * NotFoundException +// A service resource associated with the request could not be found. Clients +// should not retry such requests +// +// * ConflictException +// The requested operation would cause a conflict with the current state of +// a service resource associated with the request. Resolve the conflict before +// retrying this request. +// +// * InvalidFleetStatusException +// The requested operation would cause a conflict with the current state of +// a resource associated with the request and/or the fleet. Resolve the conflict +// before retrying. +// +// * LimitExceededException +// The requested operation would cause the resource to exceed the allowed service +// limit. Resolve the issue before retrying. +// +// * InternalServiceException +// The service encountered an unrecoverable internal failure while processing +// the request. Clients can retry such requests, either immediately or after +// a back-off period. +// +// * InvalidRequestException +// One or more parameters specified as part of the request are invalid. Correct +// the invalid parameters before retrying. +// +// * UnauthorizedException +// The client failed authentication. Clients should not retry such requests +// func (c *GameLift) UpdateFleetPortSettings(input *UpdateFleetPortSettingsInput) (*UpdateFleetPortSettingsOutput, error) { req, out := c.UpdateFleetPortSettingsRequest(input) err := req.Send() @@ -2050,6 +3226,8 @@ const opUpdateGameSession = "UpdateGameSession" // value can be used to capture response data after the request's "Send" method // is called. // +// See UpdateGameSession for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -2084,6 +3262,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 +3271,41 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon GameLift's +// API operation UpdateGameSession for usage and error information. +// +// Returned Error Codes: +// * NotFoundException +// A service resource associated with the request could not be found. Clients +// should not retry such requests +// +// * ConflictException +// The requested operation would cause a conflict with the current state of +// a service resource associated with the request. Resolve the conflict before +// retrying this request. +// +// * InternalServiceException +// The service encountered an unrecoverable internal failure while processing +// the request. Clients can retry such requests, either immediately or after +// a back-off period. +// +// * UnauthorizedException +// The client failed authentication. Clients should not retry such requests +// +// * InvalidGameSessionStatusException +// The requested operation would cause a conflict with the current state of +// a resource associated with the request and/or the game instance. Clients +// should not retry such requests without resolving the conflict. +// +// * InvalidRequestException +// One or more parameters specified as part of the request are invalid. Correct +// the invalid parameters before retrying. +// func (c *GameLift) UpdateGameSession(input *UpdateGameSessionInput) (*UpdateGameSessionOutput, error) { req, out := c.UpdateGameSessionRequest(input) err := req.Send() @@ -2104,6 +3319,8 @@ const opUpdateRuntimeConfiguration = "UpdateRuntimeConfiguration" // value can be used to capture response data after the request's "Send" method // is called. // +// See UpdateRuntimeConfiguration for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -2138,6 +3355,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 +3372,36 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon GameLift's +// API operation UpdateRuntimeConfiguration for usage and error information. +// +// Returned Error Codes: +// * UnauthorizedException +// The client failed authentication. Clients should not retry such requests +// +// * NotFoundException +// A service resource associated with the request could not be found. Clients +// should not retry such requests +// +// * InternalServiceException +// The service encountered an unrecoverable internal failure while processing +// the request. Clients can retry such requests, either immediately or after +// a back-off period. +// +// * InvalidRequestException +// One or more parameters specified as part of the request are invalid. Correct +// the invalid parameters before retrying. +// +// * InvalidFleetStatusException +// The requested operation would cause a conflict with the current state of +// a resource associated with the request and/or the fleet. Resolve the conflict +// before retrying. +// 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..fd3d333ecdb 100644 --- a/service/glacier/api.go +++ b/service/glacier/api.go @@ -19,6 +19,8 @@ const opAbortMultipartUpload = "AbortMultipartUpload" // value can be used to capture response data after the request's "Send" method // is called. // +// See AbortMultipartUpload for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -55,6 +57,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 +79,28 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Glacier's +// API operation AbortMultipartUpload for usage and error information. +// +// Returned Error Codes: +// * ResourceNotFoundException +// Returned if the specified resource, such as a vault, upload ID, or job ID, +// does not exist. +// +// * InvalidParameterValueException +// Returned if a parameter of the request is incorrectly specified. +// +// * MissingParameterValueException +// Returned if a required header or parameter is missing from the request. +// +// * ServiceUnavailableException +// Returned if the service cannot complete the request. +// func (c *Glacier) AbortMultipartUpload(input *AbortMultipartUploadInput) (*AbortMultipartUploadOutput, error) { req, out := c.AbortMultipartUploadRequest(input) err := req.Send() @@ -88,6 +114,8 @@ const opAbortVaultLock = "AbortVaultLock" // value can be used to capture response data after the request's "Send" method // is called. // +// See AbortVaultLock for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -124,6 +152,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 +170,28 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Glacier's +// API operation AbortVaultLock for usage and error information. +// +// Returned Error Codes: +// * ResourceNotFoundException +// Returned if the specified resource, such as a vault, upload ID, or job ID, +// does not exist. +// +// * InvalidParameterValueException +// Returned if a parameter of the request is incorrectly specified. +// +// * MissingParameterValueException +// Returned if a required header or parameter is missing from the request. +// +// * ServiceUnavailableException +// Returned if the service cannot complete the request. +// func (c *Glacier) AbortVaultLock(input *AbortVaultLockInput) (*AbortVaultLockOutput, error) { req, out := c.AbortVaultLockRequest(input) err := req.Send() @@ -153,6 +205,8 @@ const opAddTagsToVault = "AddTagsToVault" // value can be used to capture response data after the request's "Send" method // is called. // +// See AddTagsToVault for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -189,12 +243,39 @@ 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). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Glacier's +// API operation AddTagsToVault for usage and error information. +// +// Returned Error Codes: +// * InvalidParameterValueException +// Returned if a parameter of the request is incorrectly specified. +// +// * MissingParameterValueException +// Returned if a required header or parameter is missing from the request. +// +// * ResourceNotFoundException +// Returned if the specified resource, such as a vault, upload ID, or job ID, +// does not exist. +// +// * LimitExceededException +// Returned if the request results in a vault or account limit being exceeded. +// +// * ServiceUnavailableException +// Returned if the service cannot complete the request. +// func (c *Glacier) AddTagsToVault(input *AddTagsToVaultInput) (*AddTagsToVaultOutput, error) { req, out := c.AddTagsToVaultRequest(input) err := req.Send() @@ -208,6 +289,8 @@ const opCompleteMultipartUpload = "CompleteMultipartUpload" // value can be used to capture response data after the request's "Send" method // is called. // +// See CompleteMultipartUpload for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -242,6 +325,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 +371,28 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Glacier's +// API operation CompleteMultipartUpload for usage and error information. +// +// Returned Error Codes: +// * ResourceNotFoundException +// Returned if the specified resource, such as a vault, upload ID, or job ID, +// does not exist. +// +// * InvalidParameterValueException +// Returned if a parameter of the request is incorrectly specified. +// +// * MissingParameterValueException +// Returned if a required header or parameter is missing from the request. +// +// * ServiceUnavailableException +// Returned if the service cannot complete the request. +// func (c *Glacier) CompleteMultipartUpload(input *CompleteMultipartUploadInput) (*ArchiveCreationOutput, error) { req, out := c.CompleteMultipartUploadRequest(input) err := req.Send() @@ -299,6 +406,8 @@ const opCompleteVaultLock = "CompleteVaultLock" // value can be used to capture response data after the request's "Send" method // is called. // +// See CompleteVaultLock for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -335,6 +444,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 +461,28 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Glacier's +// API operation CompleteVaultLock for usage and error information. +// +// Returned Error Codes: +// * ResourceNotFoundException +// Returned if the specified resource, such as a vault, upload ID, or job ID, +// does not exist. +// +// * InvalidParameterValueException +// Returned if a parameter of the request is incorrectly specified. +// +// * MissingParameterValueException +// Returned if a required header or parameter is missing from the request. +// +// * ServiceUnavailableException +// Returned if the service cannot complete the request. +// func (c *Glacier) CompleteVaultLock(input *CompleteVaultLockInput) (*CompleteVaultLockOutput, error) { req, out := c.CompleteVaultLockRequest(input) err := req.Send() @@ -363,6 +496,8 @@ const opCreateVault = "CreateVault" // value can be used to capture response data after the request's "Send" method // is called. // +// See CreateVault for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -397,6 +532,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 +558,27 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Glacier's +// API operation CreateVault for usage and error information. +// +// Returned Error Codes: +// * InvalidParameterValueException +// Returned if a parameter of the request is incorrectly specified. +// +// * MissingParameterValueException +// Returned if a required header or parameter is missing from the request. +// +// * ServiceUnavailableException +// Returned if the service cannot complete the request. +// +// * LimitExceededException +// Returned if the request results in a vault or account limit being exceeded. +// func (c *Glacier) CreateVault(input *CreateVaultInput) (*CreateVaultOutput, error) { req, out := c.CreateVaultRequest(input) err := req.Send() @@ -434,6 +592,8 @@ const opDeleteArchive = "DeleteArchive" // value can be used to capture response data after the request's "Send" method // is called. // +// See DeleteArchive for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -470,6 +630,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 +653,28 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Glacier's +// API operation DeleteArchive for usage and error information. +// +// Returned Error Codes: +// * ResourceNotFoundException +// Returned if the specified resource, such as a vault, upload ID, or job ID, +// does not exist. +// +// * InvalidParameterValueException +// Returned if a parameter of the request is incorrectly specified. +// +// * MissingParameterValueException +// Returned if a required header or parameter is missing from the request. +// +// * ServiceUnavailableException +// Returned if the service cannot complete the request. +// func (c *Glacier) DeleteArchive(input *DeleteArchiveInput) (*DeleteArchiveOutput, error) { req, out := c.DeleteArchiveRequest(input) err := req.Send() @@ -504,6 +688,8 @@ const opDeleteVault = "DeleteVault" // value can be used to capture response data after the request's "Send" method // is called. // +// See DeleteVault for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -540,6 +726,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 +751,28 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Glacier's +// API operation DeleteVault for usage and error information. +// +// Returned Error Codes: +// * ResourceNotFoundException +// Returned if the specified resource, such as a vault, upload ID, or job ID, +// does not exist. +// +// * InvalidParameterValueException +// Returned if a parameter of the request is incorrectly specified. +// +// * MissingParameterValueException +// Returned if a required header or parameter is missing from the request. +// +// * ServiceUnavailableException +// Returned if the service cannot complete the request. +// func (c *Glacier) DeleteVault(input *DeleteVaultInput) (*DeleteVaultOutput, error) { req, out := c.DeleteVaultRequest(input) err := req.Send() @@ -576,6 +786,8 @@ const opDeleteVaultAccessPolicy = "DeleteVaultAccessPolicy" // value can be used to capture response data after the request's "Send" method // is called. // +// See DeleteVaultAccessPolicy for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -612,6 +824,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 +836,28 @@ 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). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Glacier's +// API operation DeleteVaultAccessPolicy for usage and error information. +// +// Returned Error Codes: +// * ResourceNotFoundException +// Returned if the specified resource, such as a vault, upload ID, or job ID, +// does not exist. +// +// * InvalidParameterValueException +// Returned if a parameter of the request is incorrectly specified. +// +// * MissingParameterValueException +// Returned if a required header or parameter is missing from the request. +// +// * ServiceUnavailableException +// Returned if the service cannot complete the request. +// func (c *Glacier) DeleteVaultAccessPolicy(input *DeleteVaultAccessPolicyInput) (*DeleteVaultAccessPolicyOutput, error) { req, out := c.DeleteVaultAccessPolicyRequest(input) err := req.Send() @@ -635,6 +871,8 @@ const opDeleteVaultNotifications = "DeleteVaultNotifications" // value can be used to capture response data after the request's "Send" method // is called. // +// See DeleteVaultNotifications for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -671,6 +909,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 +926,28 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Glacier's +// API operation DeleteVaultNotifications for usage and error information. +// +// Returned Error Codes: +// * ResourceNotFoundException +// Returned if the specified resource, such as a vault, upload ID, or job ID, +// does not exist. +// +// * InvalidParameterValueException +// Returned if a parameter of the request is incorrectly specified. +// +// * MissingParameterValueException +// Returned if a required header or parameter is missing from the request. +// +// * ServiceUnavailableException +// Returned if the service cannot complete the request. +// func (c *Glacier) DeleteVaultNotifications(input *DeleteVaultNotificationsInput) (*DeleteVaultNotificationsOutput, error) { req, out := c.DeleteVaultNotificationsRequest(input) err := req.Send() @@ -699,6 +961,8 @@ const opDescribeJob = "DescribeJob" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeJob for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -733,6 +997,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 +1021,28 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Glacier's +// API operation DescribeJob for usage and error information. +// +// Returned Error Codes: +// * ResourceNotFoundException +// Returned if the specified resource, such as a vault, upload ID, or job ID, +// does not exist. +// +// * InvalidParameterValueException +// Returned if a parameter of the request is incorrectly specified. +// +// * MissingParameterValueException +// Returned if a required header or parameter is missing from the request. +// +// * ServiceUnavailableException +// Returned if the service cannot complete the request. +// func (c *Glacier) DescribeJob(input *DescribeJobInput) (*JobDescription, error) { req, out := c.DescribeJobRequest(input) err := req.Send() @@ -768,6 +1056,8 @@ const opDescribeVault = "DescribeVault" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeVault for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -802,6 +1092,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 +1114,28 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Glacier's +// API operation DescribeVault for usage and error information. +// +// Returned Error Codes: +// * ResourceNotFoundException +// Returned if the specified resource, such as a vault, upload ID, or job ID, +// does not exist. +// +// * InvalidParameterValueException +// Returned if a parameter of the request is incorrectly specified. +// +// * MissingParameterValueException +// Returned if a required header or parameter is missing from the request. +// +// * ServiceUnavailableException +// Returned if the service cannot complete the request. +// func (c *Glacier) DescribeVault(input *DescribeVaultInput) (*DescribeVaultOutput, error) { req, out := c.DescribeVaultRequest(input) err := req.Send() @@ -835,6 +1149,8 @@ const opGetDataRetrievalPolicy = "GetDataRetrievalPolicy" // value can be used to capture response data after the request's "Send" method // is called. // +// See GetDataRetrievalPolicy for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -869,9 +1185,29 @@ 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). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Glacier's +// API operation GetDataRetrievalPolicy for usage and error information. +// +// Returned Error Codes: +// * InvalidParameterValueException +// Returned if a parameter of the request is incorrectly specified. +// +// * MissingParameterValueException +// Returned if a required header or parameter is missing from the request. +// +// * ServiceUnavailableException +// Returned if the service cannot complete the request. +// func (c *Glacier) GetDataRetrievalPolicy(input *GetDataRetrievalPolicyInput) (*GetDataRetrievalPolicyOutput, error) { req, out := c.GetDataRetrievalPolicyRequest(input) err := req.Send() @@ -885,6 +1221,8 @@ const opGetJobOutput = "GetJobOutput" // value can be used to capture response data after the request's "Send" method // is called. // +// See GetJobOutput for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -919,6 +1257,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 +1303,28 @@ 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) +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Glacier's +// API operation GetJobOutput for usage and error information. +// +// Returned Error Codes: +// * ResourceNotFoundException +// Returned if the specified resource, such as a vault, upload ID, or job ID, +// does not exist. +// +// * InvalidParameterValueException +// Returned if a parameter of the request is incorrectly specified. +// +// * MissingParameterValueException +// Returned if a required header or parameter is missing from the request. +// +// * ServiceUnavailableException +// Returned if the service cannot complete the request. +// func (c *Glacier) GetJobOutput(input *GetJobOutputInput) (*GetJobOutputOutput, error) { req, out := c.GetJobOutputRequest(input) err := req.Send() @@ -976,6 +1338,8 @@ const opGetVaultAccessPolicy = "GetVaultAccessPolicy" // value can be used to capture response data after the request's "Send" method // is called. // +// See GetVaultAccessPolicy for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1010,12 +1374,36 @@ 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). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Glacier's +// API operation GetVaultAccessPolicy for usage and error information. +// +// Returned Error Codes: +// * ResourceNotFoundException +// Returned if the specified resource, such as a vault, upload ID, or job ID, +// does not exist. +// +// * InvalidParameterValueException +// Returned if a parameter of the request is incorrectly specified. +// +// * MissingParameterValueException +// Returned if a required header or parameter is missing from the request. +// +// * ServiceUnavailableException +// Returned if the service cannot complete the request. +// func (c *Glacier) GetVaultAccessPolicy(input *GetVaultAccessPolicyInput) (*GetVaultAccessPolicyOutput, error) { req, out := c.GetVaultAccessPolicyRequest(input) err := req.Send() @@ -1029,6 +1417,8 @@ const opGetVaultLock = "GetVaultLock" // value can be used to capture response data after the request's "Send" method // is called. // +// See GetVaultLock for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1063,6 +1453,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 +1473,28 @@ 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). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Glacier's +// API operation GetVaultLock for usage and error information. +// +// Returned Error Codes: +// * ResourceNotFoundException +// Returned if the specified resource, such as a vault, upload ID, or job ID, +// does not exist. +// +// * InvalidParameterValueException +// Returned if a parameter of the request is incorrectly specified. +// +// * MissingParameterValueException +// Returned if a required header or parameter is missing from the request. +// +// * ServiceUnavailableException +// Returned if the service cannot complete the request. +// func (c *Glacier) GetVaultLock(input *GetVaultLockInput) (*GetVaultLockOutput, error) { req, out := c.GetVaultLockRequest(input) err := req.Send() @@ -1094,6 +1508,8 @@ const opGetVaultNotifications = "GetVaultNotifications" // value can be used to capture response data after the request's "Send" method // is called. // +// See GetVaultNotifications for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1128,6 +1544,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 +1565,28 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Glacier's +// API operation GetVaultNotifications for usage and error information. +// +// Returned Error Codes: +// * ResourceNotFoundException +// Returned if the specified resource, such as a vault, upload ID, or job ID, +// does not exist. +// +// * InvalidParameterValueException +// Returned if a parameter of the request is incorrectly specified. +// +// * MissingParameterValueException +// Returned if a required header or parameter is missing from the request. +// +// * ServiceUnavailableException +// Returned if the service cannot complete the request. +// func (c *Glacier) GetVaultNotifications(input *GetVaultNotificationsInput) (*GetVaultNotificationsOutput, error) { req, out := c.GetVaultNotificationsRequest(input) err := req.Send() @@ -1160,6 +1600,8 @@ const opInitiateJob = "InitiateJob" // value can be used to capture response data after the request's "Send" method // is called. // +// See InitiateJob for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1194,6 +1636,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 +1754,32 @@ 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) +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Glacier's +// API operation InitiateJob for usage and error information. +// +// Returned Error Codes: +// * ResourceNotFoundException +// Returned if the specified resource, such as a vault, upload ID, or job ID, +// does not exist. +// +// * PolicyEnforcedException +// Returned if a retrieval job would exceed the current data policy's retrieval +// rate limit. For more information about data retrieval policies, +// +// * InvalidParameterValueException +// Returned if a parameter of the request is incorrectly specified. +// +// * MissingParameterValueException +// Returned if a required header or parameter is missing from the request. +// +// * ServiceUnavailableException +// Returned if the service cannot complete the request. +// func (c *Glacier) InitiateJob(input *InitiateJobInput) (*InitiateJobOutput, error) { req, out := c.InitiateJobRequest(input) err := req.Send() @@ -1323,6 +1793,8 @@ const opInitiateMultipartUpload = "InitiateMultipartUpload" // value can be used to capture response data after the request's "Send" method // is called. // +// See InitiateMultipartUpload for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1357,6 +1829,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 +1866,28 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Glacier's +// API operation InitiateMultipartUpload for usage and error information. +// +// Returned Error Codes: +// * ResourceNotFoundException +// Returned if the specified resource, such as a vault, upload ID, or job ID, +// does not exist. +// +// * InvalidParameterValueException +// Returned if a parameter of the request is incorrectly specified. +// +// * MissingParameterValueException +// Returned if a required header or parameter is missing from the request. +// +// * ServiceUnavailableException +// Returned if the service cannot complete the request. +// func (c *Glacier) InitiateMultipartUpload(input *InitiateMultipartUploadInput) (*InitiateMultipartUploadOutput, error) { req, out := c.InitiateMultipartUploadRequest(input) err := req.Send() @@ -1405,6 +1901,8 @@ const opInitiateVaultLock = "InitiateVaultLock" // value can be used to capture response data after the request's "Send" method // is called. // +// See InitiateVaultLock for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1439,6 +1937,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 +1967,28 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Glacier's +// API operation InitiateVaultLock for usage and error information. +// +// Returned Error Codes: +// * ResourceNotFoundException +// Returned if the specified resource, such as a vault, upload ID, or job ID, +// does not exist. +// +// * InvalidParameterValueException +// Returned if a parameter of the request is incorrectly specified. +// +// * MissingParameterValueException +// Returned if a required header or parameter is missing from the request. +// +// * ServiceUnavailableException +// Returned if the service cannot complete the request. +// func (c *Glacier) InitiateVaultLock(input *InitiateVaultLockInput) (*InitiateVaultLockOutput, error) { req, out := c.InitiateVaultLockRequest(input) err := req.Send() @@ -1480,6 +2002,8 @@ const opListJobs = "ListJobs" // value can be used to capture response data after the request's "Send" method // is called. // +// See ListJobs for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1520,6 +2044,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 +2086,28 @@ 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) +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Glacier's +// API operation ListJobs for usage and error information. +// +// Returned Error Codes: +// * ResourceNotFoundException +// Returned if the specified resource, such as a vault, upload ID, or job ID, +// does not exist. +// +// * InvalidParameterValueException +// Returned if a parameter of the request is incorrectly specified. +// +// * MissingParameterValueException +// Returned if a required header or parameter is missing from the request. +// +// * ServiceUnavailableException +// Returned if the service cannot complete the request. +// func (c *Glacier) ListJobs(input *ListJobsInput) (*ListJobsOutput, error) { req, out := c.ListJobsRequest(input) err := req.Send() @@ -1598,6 +2146,8 @@ const opListMultipartUploads = "ListMultipartUploads" // value can be used to capture response data after the request's "Send" method // is called. // +// See ListMultipartUploads for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1638,6 +2188,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 +2220,28 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Glacier's +// API operation ListMultipartUploads for usage and error information. +// +// Returned Error Codes: +// * ResourceNotFoundException +// Returned if the specified resource, such as a vault, upload ID, or job ID, +// does not exist. +// +// * InvalidParameterValueException +// Returned if a parameter of the request is incorrectly specified. +// +// * MissingParameterValueException +// Returned if a required header or parameter is missing from the request. +// +// * ServiceUnavailableException +// Returned if the service cannot complete the request. +// func (c *Glacier) ListMultipartUploads(input *ListMultipartUploadsInput) (*ListMultipartUploadsOutput, error) { req, out := c.ListMultipartUploadsRequest(input) err := req.Send() @@ -1706,6 +2280,8 @@ const opListParts = "ListParts" // value can be used to capture response data after the request's "Send" method // is called. // +// See ListParts for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1746,6 +2322,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 +2348,28 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Glacier's +// API operation ListParts for usage and error information. +// +// Returned Error Codes: +// * ResourceNotFoundException +// Returned if the specified resource, such as a vault, upload ID, or job ID, +// does not exist. +// +// * InvalidParameterValueException +// Returned if a parameter of the request is incorrectly specified. +// +// * MissingParameterValueException +// Returned if a required header or parameter is missing from the request. +// +// * ServiceUnavailableException +// Returned if the service cannot complete the request. +// func (c *Glacier) ListParts(input *ListPartsInput) (*ListPartsOutput, error) { req, out := c.ListPartsRequest(input) err := req.Send() @@ -1808,6 +2408,8 @@ const opListTagsForVault = "ListTagsForVault" // value can be used to capture response data after the request's "Send" method // is called. // +// See ListTagsForVault for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1842,9 +2444,33 @@ 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). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Glacier's +// API operation ListTagsForVault for usage and error information. +// +// Returned Error Codes: +// * InvalidParameterValueException +// Returned if a parameter of the request is incorrectly specified. +// +// * MissingParameterValueException +// Returned if a required header or parameter is missing from the request. +// +// * ResourceNotFoundException +// Returned if the specified resource, such as a vault, upload ID, or job ID, +// does not exist. +// +// * ServiceUnavailableException +// Returned if the service cannot complete the request. +// func (c *Glacier) ListTagsForVault(input *ListTagsForVaultInput) (*ListTagsForVaultOutput, error) { req, out := c.ListTagsForVaultRequest(input) err := req.Send() @@ -1858,6 +2484,8 @@ const opListVaults = "ListVaults" // value can be used to capture response data after the request's "Send" method // is called. // +// See ListVaults for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1898,6 +2526,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 +2550,28 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Glacier's +// API operation ListVaults for usage and error information. +// +// Returned Error Codes: +// * ResourceNotFoundException +// Returned if the specified resource, such as a vault, upload ID, or job ID, +// does not exist. +// +// * InvalidParameterValueException +// Returned if a parameter of the request is incorrectly specified. +// +// * MissingParameterValueException +// Returned if a required header or parameter is missing from the request. +// +// * ServiceUnavailableException +// Returned if the service cannot complete the request. +// func (c *Glacier) ListVaults(input *ListVaultsInput) (*ListVaultsOutput, error) { req, out := c.ListVaultsRequest(input) err := req.Send() @@ -1958,6 +2610,8 @@ const opRemoveTagsFromVault = "RemoveTagsFromVault" // value can be used to capture response data after the request's "Send" method // is called. // +// See RemoveTagsFromVault for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1994,11 +2648,35 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Glacier's +// API operation RemoveTagsFromVault for usage and error information. +// +// Returned Error Codes: +// * InvalidParameterValueException +// Returned if a parameter of the request is incorrectly specified. +// +// * MissingParameterValueException +// Returned if a required header or parameter is missing from the request. +// +// * ResourceNotFoundException +// Returned if the specified resource, such as a vault, upload ID, or job ID, +// does not exist. +// +// * ServiceUnavailableException +// Returned if the service cannot complete the request. +// func (c *Glacier) RemoveTagsFromVault(input *RemoveTagsFromVaultInput) (*RemoveTagsFromVaultOutput, error) { req, out := c.RemoveTagsFromVaultRequest(input) err := req.Send() @@ -2012,6 +2690,8 @@ const opSetDataRetrievalPolicy = "SetDataRetrievalPolicy" // value can be used to capture response data after the request's "Send" method // is called. // +// See SetDataRetrievalPolicy for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -2048,6 +2728,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 +2737,24 @@ 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). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Glacier's +// API operation SetDataRetrievalPolicy for usage and error information. +// +// Returned Error Codes: +// * InvalidParameterValueException +// Returned if a parameter of the request is incorrectly specified. +// +// * MissingParameterValueException +// Returned if a required header or parameter is missing from the request. +// +// * ServiceUnavailableException +// Returned if the service cannot complete the request. +// func (c *Glacier) SetDataRetrievalPolicy(input *SetDataRetrievalPolicyInput) (*SetDataRetrievalPolicyOutput, error) { req, out := c.SetDataRetrievalPolicyRequest(input) err := req.Send() @@ -2068,6 +2768,8 @@ const opSetVaultAccessPolicy = "SetVaultAccessPolicy" // value can be used to capture response data after the request's "Send" method // is called. // +// See SetVaultAccessPolicy for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -2104,6 +2806,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 +2815,28 @@ 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). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Glacier's +// API operation SetVaultAccessPolicy for usage and error information. +// +// Returned Error Codes: +// * ResourceNotFoundException +// Returned if the specified resource, such as a vault, upload ID, or job ID, +// does not exist. +// +// * InvalidParameterValueException +// Returned if a parameter of the request is incorrectly specified. +// +// * MissingParameterValueException +// Returned if a required header or parameter is missing from the request. +// +// * ServiceUnavailableException +// Returned if the service cannot complete the request. +// func (c *Glacier) SetVaultAccessPolicy(input *SetVaultAccessPolicyInput) (*SetVaultAccessPolicyOutput, error) { req, out := c.SetVaultAccessPolicyRequest(input) err := req.Send() @@ -2124,6 +2850,8 @@ const opSetVaultNotifications = "SetVaultNotifications" // value can be used to capture response data after the request's "Send" method // is called. // +// See SetVaultNotifications for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -2160,6 +2888,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 +2919,28 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Glacier's +// API operation SetVaultNotifications for usage and error information. +// +// Returned Error Codes: +// * ResourceNotFoundException +// Returned if the specified resource, such as a vault, upload ID, or job ID, +// does not exist. +// +// * InvalidParameterValueException +// Returned if a parameter of the request is incorrectly specified. +// +// * MissingParameterValueException +// Returned if a required header or parameter is missing from the request. +// +// * ServiceUnavailableException +// Returned if the service cannot complete the request. +// func (c *Glacier) SetVaultNotifications(input *SetVaultNotificationsInput) (*SetVaultNotificationsOutput, error) { req, out := c.SetVaultNotificationsRequest(input) err := req.Send() @@ -2202,6 +2954,8 @@ const opUploadArchive = "UploadArchive" // value can be used to capture response data after the request's "Send" method // is called. // +// See UploadArchive for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -2236,6 +2990,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 +3028,32 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Glacier's +// API operation UploadArchive for usage and error information. +// +// Returned Error Codes: +// * ResourceNotFoundException +// Returned if the specified resource, such as a vault, upload ID, or job ID, +// does not exist. +// +// * InvalidParameterValueException +// Returned if a parameter of the request is incorrectly specified. +// +// * MissingParameterValueException +// Returned if a required header or parameter is missing from the request. +// +// * RequestTimeoutException +// Returned if, when uploading an archive, Amazon Glacier times out while receiving +// the upload. +// +// * ServiceUnavailableException +// Returned if the service cannot complete the request. +// func (c *Glacier) UploadArchive(input *UploadArchiveInput) (*ArchiveCreationOutput, error) { req, out := c.UploadArchiveRequest(input) err := req.Send() @@ -2285,6 +3067,8 @@ const opUploadMultipartPart = "UploadMultipartPart" // value can be used to capture response data after the request's "Send" method // is called. // +// See UploadMultipartPart for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -2319,6 +3103,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 +3148,32 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Glacier's +// API operation UploadMultipartPart for usage and error information. +// +// Returned Error Codes: +// * ResourceNotFoundException +// Returned if the specified resource, such as a vault, upload ID, or job ID, +// does not exist. +// +// * InvalidParameterValueException +// Returned if a parameter of the request is incorrectly specified. +// +// * MissingParameterValueException +// Returned if a required header or parameter is missing from the request. +// +// * RequestTimeoutException +// Returned if, when uploading an archive, Amazon Glacier times out while receiving +// the upload. +// +// * ServiceUnavailableException +// Returned if the service cannot complete the request. +// 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..0e506cbdc6f 100644 --- a/service/iam/api.go +++ b/service/iam/api.go @@ -20,6 +20,8 @@ const opAddClientIDToOpenIDConnectProvider = "AddClientIDToOpenIDConnectProvider // value can be used to capture response data after the request's "Send" method // is called. // +// See AddClientIDToOpenIDConnectProvider for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -56,11 +58,38 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Identity and Access Management's +// API operation AddClientIDToOpenIDConnectProvider for usage and error information. +// +// Returned Error Codes: +// * InvalidInput +// The request was rejected because an invalid or out-of-range value was supplied +// for an input parameter. +// +// * NoSuchEntity +// The request was rejected because it referenced an entity that does not exist. +// The error message describes the entity. +// +// * LimitExceeded +// The request was rejected because it attempted to create resources beyond +// the current AWS account limits. The error message describes the limit exceeded. +// +// * ServiceFailure +// The request processing has failed because of an unknown error, exception +// or failure. +// func (c *IAM) AddClientIDToOpenIDConnectProvider(input *AddClientIDToOpenIDConnectProviderInput) (*AddClientIDToOpenIDConnectProviderOutput, error) { req, out := c.AddClientIDToOpenIDConnectProviderRequest(input) err := req.Send() @@ -74,6 +103,8 @@ const opAddRoleToInstanceProfile = "AddRoleToInstanceProfile" // value can be used to capture response data after the request's "Send" method // is called. // +// See AddRoleToInstanceProfile for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -110,6 +141,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 +151,31 @@ 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). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Identity and Access Management's +// API operation AddRoleToInstanceProfile for usage and error information. +// +// Returned Error Codes: +// * NoSuchEntity +// The request was rejected because it referenced an entity that does not exist. +// The error message describes the entity. +// +// * EntityAlreadyExists +// The request was rejected because it attempted to create a resource that already +// exists. +// +// * LimitExceeded +// The request was rejected because it attempted to create resources beyond +// the current AWS account limits. The error message describes the limit exceeded. +// +// * ServiceFailure +// The request processing has failed because of an unknown error, exception +// or failure. +// func (c *IAM) AddRoleToInstanceProfile(input *AddRoleToInstanceProfileInput) (*AddRoleToInstanceProfileOutput, error) { req, out := c.AddRoleToInstanceProfileRequest(input) err := req.Send() @@ -131,6 +189,8 @@ const opAddUserToGroup = "AddUserToGroup" // value can be used to capture response data after the request's "Send" method // is called. // +// See AddUserToGroup for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -167,7 +227,30 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Identity and Access Management's +// API operation AddUserToGroup for usage and error information. +// +// Returned Error Codes: +// * NoSuchEntity +// The request was rejected because it referenced an entity that does not exist. +// The error message describes the entity. +// +// * LimitExceeded +// The request was rejected because it attempted to create resources beyond +// the current AWS account limits. The error message describes the limit exceeded. +// +// * ServiceFailure +// The request processing has failed because of an unknown error, exception +// or failure. +// func (c *IAM) AddUserToGroup(input *AddUserToGroupInput) (*AddUserToGroupOutput, error) { req, out := c.AddUserToGroupRequest(input) err := req.Send() @@ -181,6 +264,8 @@ const opAttachGroupPolicy = "AttachGroupPolicy" // value can be used to capture response data after the request's "Send" method // is called. // +// See AttachGroupPolicy for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -217,6 +302,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 +312,31 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Identity and Access Management's +// API operation AttachGroupPolicy for usage and error information. +// +// Returned Error Codes: +// * NoSuchEntity +// The request was rejected because it referenced an entity that does not exist. +// The error message describes the entity. +// +// * LimitExceeded +// The request was rejected because it attempted to create resources beyond +// the current AWS account limits. The error message describes the limit exceeded. +// +// * InvalidInput +// The request was rejected because an invalid or out-of-range value was supplied +// for an input parameter. +// +// * ServiceFailure +// The request processing has failed because of an unknown error, exception +// or failure. +// func (c *IAM) AttachGroupPolicy(input *AttachGroupPolicyInput) (*AttachGroupPolicyOutput, error) { req, out := c.AttachGroupPolicyRequest(input) err := req.Send() @@ -238,6 +350,8 @@ const opAttachRolePolicy = "AttachRolePolicy" // value can be used to capture response data after the request's "Send" method // is called. // +// See AttachRolePolicy for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -274,6 +388,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 +402,31 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Identity and Access Management's +// API operation AttachRolePolicy for usage and error information. +// +// Returned Error Codes: +// * NoSuchEntity +// The request was rejected because it referenced an entity that does not exist. +// The error message describes the entity. +// +// * LimitExceeded +// The request was rejected because it attempted to create resources beyond +// the current AWS account limits. The error message describes the limit exceeded. +// +// * InvalidInput +// The request was rejected because an invalid or out-of-range value was supplied +// for an input parameter. +// +// * ServiceFailure +// The request processing has failed because of an unknown error, exception +// or failure. +// func (c *IAM) AttachRolePolicy(input *AttachRolePolicyInput) (*AttachRolePolicyOutput, error) { req, out := c.AttachRolePolicyRequest(input) err := req.Send() @@ -299,6 +440,8 @@ const opAttachUserPolicy = "AttachUserPolicy" // value can be used to capture response data after the request's "Send" method // is called. // +// See AttachUserPolicy for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -335,6 +478,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 +488,31 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Identity and Access Management's +// API operation AttachUserPolicy for usage and error information. +// +// Returned Error Codes: +// * NoSuchEntity +// The request was rejected because it referenced an entity that does not exist. +// The error message describes the entity. +// +// * LimitExceeded +// The request was rejected because it attempted to create resources beyond +// the current AWS account limits. The error message describes the limit exceeded. +// +// * InvalidInput +// The request was rejected because an invalid or out-of-range value was supplied +// for an input parameter. +// +// * ServiceFailure +// The request processing has failed because of an unknown error, exception +// or failure. +// func (c *IAM) AttachUserPolicy(input *AttachUserPolicyInput) (*AttachUserPolicyOutput, error) { req, out := c.AttachUserPolicyRequest(input) err := req.Send() @@ -356,6 +526,8 @@ const opChangePassword = "ChangePassword" // value can be used to capture response data after the request's "Send" method // is called. // +// See ChangePassword for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -392,12 +564,49 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Identity and Access Management's +// API operation ChangePassword for usage and error information. +// +// Returned Error Codes: +// * NoSuchEntity +// The request was rejected because it referenced an entity that does not exist. +// The error message describes the entity. +// +// * InvalidUserType +// The request was rejected because the type of user for the transaction was +// incorrect. +// +// * LimitExceeded +// The request was rejected because it attempted to create resources beyond +// the current AWS account limits. The error message describes the limit exceeded. +// +// * EntityTemporarilyUnmodifiable +// The request was rejected because it referenced an entity that is temporarily +// unmodifiable, such as a user name that was deleted and then recreated. The +// error indicates that the request is likely to succeed if you try again after +// waiting several minutes. The error message describes the entity. +// +// * PasswordPolicyViolation +// The request was rejected because the provided password did not meet the requirements +// imposed by the account password policy. +// +// * ServiceFailure +// The request processing has failed because of an unknown error, exception +// or failure. +// func (c *IAM) ChangePassword(input *ChangePasswordInput) (*ChangePasswordOutput, error) { req, out := c.ChangePasswordRequest(input) err := req.Send() @@ -411,6 +620,8 @@ const opCreateAccessKey = "CreateAccessKey" // value can be used to capture response data after the request's "Send" method // is called. // +// See CreateAccessKey for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -445,6 +656,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 +675,27 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Identity and Access Management's +// API operation CreateAccessKey for usage and error information. +// +// Returned Error Codes: +// * NoSuchEntity +// The request was rejected because it referenced an entity that does not exist. +// The error message describes the entity. +// +// * LimitExceeded +// The request was rejected because it attempted to create resources beyond +// the current AWS account limits. The error message describes the limit exceeded. +// +// * ServiceFailure +// The request processing has failed because of an unknown error, exception +// or failure. +// func (c *IAM) CreateAccessKey(input *CreateAccessKeyInput) (*CreateAccessKeyOutput, error) { req, out := c.CreateAccessKeyRequest(input) err := req.Send() @@ -475,6 +709,8 @@ const opCreateAccountAlias = "CreateAccountAlias" // value can be used to capture response data after the request's "Send" method // is called. // +// See CreateAccountAlias for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -511,9 +747,32 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Identity and Access Management's +// API operation CreateAccountAlias for usage and error information. +// +// Returned Error Codes: +// * EntityAlreadyExists +// The request was rejected because it attempted to create a resource that already +// exists. +// +// * LimitExceeded +// The request was rejected because it attempted to create resources beyond +// the current AWS account limits. The error message describes the limit exceeded. +// +// * ServiceFailure +// The request processing has failed because of an unknown error, exception +// or failure. +// func (c *IAM) CreateAccountAlias(input *CreateAccountAliasInput) (*CreateAccountAliasOutput, error) { req, out := c.CreateAccountAliasRequest(input) err := req.Send() @@ -527,6 +786,8 @@ const opCreateGroup = "CreateGroup" // value can be used to capture response data after the request's "Send" method // is called. // +// See CreateGroup for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -561,11 +822,38 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Identity and Access Management's +// API operation CreateGroup for usage and error information. +// +// Returned Error Codes: +// * LimitExceeded +// The request was rejected because it attempted to create resources beyond +// the current AWS account limits. The error message describes the limit exceeded. +// +// * EntityAlreadyExists +// The request was rejected because it attempted to create a resource that already +// exists. +// +// * NoSuchEntity +// The request was rejected because it referenced an entity that does not exist. +// The error message describes the entity. +// +// * ServiceFailure +// The request processing has failed because of an unknown error, exception +// or failure. +// func (c *IAM) CreateGroup(input *CreateGroupInput) (*CreateGroupOutput, error) { req, out := c.CreateGroupRequest(input) err := req.Send() @@ -579,6 +867,8 @@ const opCreateInstanceProfile = "CreateInstanceProfile" // value can be used to capture response data after the request's "Send" method // is called. // +// See CreateInstanceProfile for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -613,12 +903,35 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Identity and Access Management's +// API operation CreateInstanceProfile for usage and error information. +// +// Returned Error Codes: +// * EntityAlreadyExists +// The request was rejected because it attempted to create a resource that already +// exists. +// +// * LimitExceeded +// The request was rejected because it attempted to create resources beyond +// the current AWS account limits. The error message describes the limit exceeded. +// +// * ServiceFailure +// The request processing has failed because of an unknown error, exception +// or failure. +// func (c *IAM) CreateInstanceProfile(input *CreateInstanceProfileInput) (*CreateInstanceProfileOutput, error) { req, out := c.CreateInstanceProfileRequest(input) err := req.Send() @@ -632,6 +945,8 @@ const opCreateLoginProfile = "CreateLoginProfile" // value can be used to capture response data after the request's "Send" method // is called. // +// See CreateLoginProfile for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -666,10 +981,41 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Identity and Access Management's +// API operation CreateLoginProfile for usage and error information. +// +// Returned Error Codes: +// * EntityAlreadyExists +// The request was rejected because it attempted to create a resource that already +// exists. +// +// * NoSuchEntity +// The request was rejected because it referenced an entity that does not exist. +// The error message describes the entity. +// +// * PasswordPolicyViolation +// The request was rejected because the provided password did not meet the requirements +// imposed by the account password policy. +// +// * LimitExceeded +// The request was rejected because it attempted to create resources beyond +// the current AWS account limits. The error message describes the limit exceeded. +// +// * ServiceFailure +// The request processing has failed because of an unknown error, exception +// or failure. +// func (c *IAM) CreateLoginProfile(input *CreateLoginProfileInput) (*CreateLoginProfileOutput, error) { req, out := c.CreateLoginProfileRequest(input) err := req.Send() @@ -683,6 +1029,8 @@ const opCreateOpenIDConnectProvider = "CreateOpenIDConnectProvider" // value can be used to capture response data after the request's "Send" method // is called. // +// See CreateOpenIDConnectProvider for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -717,6 +1065,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 +1084,31 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Identity and Access Management's +// API operation CreateOpenIDConnectProvider for usage and error information. +// +// Returned Error Codes: +// * InvalidInput +// The request was rejected because an invalid or out-of-range value was supplied +// for an input parameter. +// +// * EntityAlreadyExists +// The request was rejected because it attempted to create a resource that already +// exists. +// +// * LimitExceeded +// The request was rejected because it attempted to create resources beyond +// the current AWS account limits. The error message describes the limit exceeded. +// +// * ServiceFailure +// The request processing has failed because of an unknown error, exception +// or failure. +// func (c *IAM) CreateOpenIDConnectProvider(input *CreateOpenIDConnectProviderInput) (*CreateOpenIDConnectProviderOutput, error) { req, out := c.CreateOpenIDConnectProviderRequest(input) err := req.Send() @@ -747,6 +1122,8 @@ const opCreatePolicy = "CreatePolicy" // value can be used to capture response data after the request's "Send" method // is called. // +// See CreatePolicy for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -781,6 +1158,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 +1170,35 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Identity and Access Management's +// API operation CreatePolicy for usage and error information. +// +// Returned Error Codes: +// * InvalidInput +// The request was rejected because an invalid or out-of-range value was supplied +// for an input parameter. +// +// * LimitExceeded +// The request was rejected because it attempted to create resources beyond +// the current AWS account limits. The error message describes the limit exceeded. +// +// * EntityAlreadyExists +// The request was rejected because it attempted to create a resource that already +// exists. +// +// * MalformedPolicyDocument +// The request was rejected because the policy document was malformed. The error +// message describes the specific error. +// +// * ServiceFailure +// The request processing has failed because of an unknown error, exception +// or failure. +// func (c *IAM) CreatePolicy(input *CreatePolicyInput) (*CreatePolicyOutput, error) { req, out := c.CreatePolicyRequest(input) err := req.Send() @@ -804,6 +1212,8 @@ const opCreatePolicyVersion = "CreatePolicyVersion" // value can be used to capture response data after the request's "Send" method // is called. // +// See CreatePolicyVersion for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -838,6 +1248,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 +1262,35 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Identity and Access Management's +// API operation CreatePolicyVersion for usage and error information. +// +// Returned Error Codes: +// * NoSuchEntity +// The request was rejected because it referenced an entity that does not exist. +// The error message describes the entity. +// +// * MalformedPolicyDocument +// The request was rejected because the policy document was malformed. The error +// message describes the specific error. +// +// * InvalidInput +// The request was rejected because an invalid or out-of-range value was supplied +// for an input parameter. +// +// * LimitExceeded +// The request was rejected because it attempted to create resources beyond +// the current AWS account limits. The error message describes the limit exceeded. +// +// * ServiceFailure +// The request processing has failed because of an unknown error, exception +// or failure. +// func (c *IAM) CreatePolicyVersion(input *CreatePolicyVersionInput) (*CreatePolicyVersionOutput, error) { req, out := c.CreatePolicyVersionRequest(input) err := req.Send() @@ -863,6 +1304,8 @@ const opCreateRole = "CreateRole" // value can be used to capture response data after the request's "Send" method // is called. // +// See CreateRole for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -897,11 +1340,38 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Identity and Access Management's +// API operation CreateRole for usage and error information. +// +// Returned Error Codes: +// * LimitExceeded +// The request was rejected because it attempted to create resources beyond +// the current AWS account limits. The error message describes the limit exceeded. +// +// * EntityAlreadyExists +// The request was rejected because it attempted to create a resource that already +// exists. +// +// * MalformedPolicyDocument +// The request was rejected because the policy document was malformed. The error +// message describes the specific error. +// +// * ServiceFailure +// The request processing has failed because of an unknown error, exception +// or failure. +// func (c *IAM) CreateRole(input *CreateRoleInput) (*CreateRoleOutput, error) { req, out := c.CreateRoleRequest(input) err := req.Send() @@ -915,6 +1385,8 @@ const opCreateSAMLProvider = "CreateSAMLProvider" // value can be used to capture response data after the request's "Send" method // is called. // +// See CreateSAMLProvider for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -949,6 +1421,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 +1445,31 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Identity and Access Management's +// API operation CreateSAMLProvider for usage and error information. +// +// Returned Error Codes: +// * InvalidInput +// The request was rejected because an invalid or out-of-range value was supplied +// for an input parameter. +// +// * EntityAlreadyExists +// The request was rejected because it attempted to create a resource that already +// exists. +// +// * LimitExceeded +// The request was rejected because it attempted to create resources beyond +// the current AWS account limits. The error message describes the limit exceeded. +// +// * ServiceFailure +// The request processing has failed because of an unknown error, exception +// or failure. +// func (c *IAM) CreateSAMLProvider(input *CreateSAMLProviderInput) (*CreateSAMLProviderOutput, error) { req, out := c.CreateSAMLProviderRequest(input) err := req.Send() @@ -984,6 +1483,8 @@ const opCreateUser = "CreateUser" // value can be used to capture response data after the request's "Send" method // is called. // +// See CreateUser for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1018,11 +1519,38 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Identity and Access Management's +// API operation CreateUser for usage and error information. +// +// Returned Error Codes: +// * LimitExceeded +// The request was rejected because it attempted to create resources beyond +// the current AWS account limits. The error message describes the limit exceeded. +// +// * EntityAlreadyExists +// The request was rejected because it attempted to create a resource that already +// exists. +// +// * NoSuchEntity +// The request was rejected because it referenced an entity that does not exist. +// The error message describes the entity. +// +// * ServiceFailure +// The request processing has failed because of an unknown error, exception +// or failure. +// func (c *IAM) CreateUser(input *CreateUserInput) (*CreateUserOutput, error) { req, out := c.CreateUserRequest(input) err := req.Send() @@ -1036,6 +1564,8 @@ const opCreateVirtualMFADevice = "CreateVirtualMFADevice" // value can be used to capture response data after the request's "Send" method // is called. // +// See CreateVirtualMFADevice for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1070,6 +1600,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 +1616,27 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Identity and Access Management's +// API operation CreateVirtualMFADevice for usage and error information. +// +// Returned Error Codes: +// * LimitExceeded +// The request was rejected because it attempted to create resources beyond +// the current AWS account limits. The error message describes the limit exceeded. +// +// * EntityAlreadyExists +// The request was rejected because it attempted to create a resource that already +// exists. +// +// * ServiceFailure +// The request processing has failed because of an unknown error, exception +// or failure. +// func (c *IAM) CreateVirtualMFADevice(input *CreateVirtualMFADeviceInput) (*CreateVirtualMFADeviceOutput, error) { req, out := c.CreateVirtualMFADeviceRequest(input) err := req.Send() @@ -1097,6 +1650,8 @@ const opDeactivateMFADevice = "DeactivateMFADevice" // value can be used to capture response data after the request's "Send" method // is called. // +// See DeactivateMFADevice for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1133,12 +1688,41 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Identity and Access Management's +// API operation DeactivateMFADevice for usage and error information. +// +// Returned Error Codes: +// * EntityTemporarilyUnmodifiable +// The request was rejected because it referenced an entity that is temporarily +// unmodifiable, such as a user name that was deleted and then recreated. The +// error indicates that the request is likely to succeed if you try again after +// waiting several minutes. The error message describes the entity. +// +// * NoSuchEntity +// The request was rejected because it referenced an entity that does not exist. +// The error message describes the entity. +// +// * LimitExceeded +// The request was rejected because it attempted to create resources beyond +// the current AWS account limits. The error message describes the limit exceeded. +// +// * ServiceFailure +// The request processing has failed because of an unknown error, exception +// or failure. +// func (c *IAM) DeactivateMFADevice(input *DeactivateMFADeviceInput) (*DeactivateMFADeviceOutput, error) { req, out := c.DeactivateMFADeviceRequest(input) err := req.Send() @@ -1152,6 +1736,8 @@ const opDeleteAccessKey = "DeleteAccessKey" // value can be used to capture response data after the request's "Send" method // is called. // +// See DeleteAccessKey for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1188,12 +1774,35 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Identity and Access Management's +// API operation DeleteAccessKey for usage and error information. +// +// Returned Error Codes: +// * NoSuchEntity +// The request was rejected because it referenced an entity that does not exist. +// The error message describes the entity. +// +// * LimitExceeded +// The request was rejected because it attempted to create resources beyond +// the current AWS account limits. The error message describes the limit exceeded. +// +// * ServiceFailure +// The request processing has failed because of an unknown error, exception +// or failure. +// func (c *IAM) DeleteAccessKey(input *DeleteAccessKeyInput) (*DeleteAccessKeyOutput, error) { req, out := c.DeleteAccessKeyRequest(input) err := req.Send() @@ -1207,6 +1816,8 @@ const opDeleteAccountAlias = "DeleteAccountAlias" // value can be used to capture response data after the request's "Send" method // is called. // +// See DeleteAccountAlias for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1243,9 +1854,32 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Identity and Access Management's +// API operation DeleteAccountAlias for usage and error information. +// +// Returned Error Codes: +// * NoSuchEntity +// The request was rejected because it referenced an entity that does not exist. +// The error message describes the entity. +// +// * LimitExceeded +// The request was rejected because it attempted to create resources beyond +// the current AWS account limits. The error message describes the limit exceeded. +// +// * ServiceFailure +// The request processing has failed because of an unknown error, exception +// or failure. +// func (c *IAM) DeleteAccountAlias(input *DeleteAccountAliasInput) (*DeleteAccountAliasOutput, error) { req, out := c.DeleteAccountAliasRequest(input) err := req.Send() @@ -1259,6 +1893,8 @@ const opDeleteAccountPasswordPolicy = "DeleteAccountPasswordPolicy" // value can be used to capture response data after the request's "Send" method // is called. // +// See DeleteAccountPasswordPolicy for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1295,7 +1931,30 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Identity and Access Management's +// API operation DeleteAccountPasswordPolicy for usage and error information. +// +// Returned Error Codes: +// * NoSuchEntity +// The request was rejected because it referenced an entity that does not exist. +// The error message describes the entity. +// +// * LimitExceeded +// The request was rejected because it attempted to create resources beyond +// the current AWS account limits. The error message describes the limit exceeded. +// +// * ServiceFailure +// The request processing has failed because of an unknown error, exception +// or failure. +// func (c *IAM) DeleteAccountPasswordPolicy(input *DeleteAccountPasswordPolicyInput) (*DeleteAccountPasswordPolicyOutput, error) { req, out := c.DeleteAccountPasswordPolicyRequest(input) err := req.Send() @@ -1309,6 +1968,8 @@ const opDeleteGroup = "DeleteGroup" // value can be used to capture response data after the request's "Send" method // is called. // +// See DeleteGroup for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1345,8 +2006,35 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Identity and Access Management's +// API operation DeleteGroup for usage and error information. +// +// Returned Error Codes: +// * NoSuchEntity +// The request was rejected because it referenced an entity that does not exist. +// The error message describes the entity. +// +// * DeleteConflict +// The request was rejected because it attempted to delete a resource that has +// attached subordinate entities. The error message describes these entities. +// +// * LimitExceeded +// The request was rejected because it attempted to create resources beyond +// the current AWS account limits. The error message describes the limit exceeded. +// +// * ServiceFailure +// The request processing has failed because of an unknown error, exception +// or failure. +// func (c *IAM) DeleteGroup(input *DeleteGroupInput) (*DeleteGroupOutput, error) { req, out := c.DeleteGroupRequest(input) err := req.Send() @@ -1360,6 +2048,8 @@ const opDeleteGroupPolicy = "DeleteGroupPolicy" // value can be used to capture response data after the request's "Send" method // is called. // +// See DeleteGroupPolicy for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1396,6 +2086,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 +2095,27 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Identity and Access Management's +// API operation DeleteGroupPolicy for usage and error information. +// +// Returned Error Codes: +// * NoSuchEntity +// The request was rejected because it referenced an entity that does not exist. +// The error message describes the entity. +// +// * LimitExceeded +// The request was rejected because it attempted to create resources beyond +// the current AWS account limits. The error message describes the limit exceeded. +// +// * ServiceFailure +// The request processing has failed because of an unknown error, exception +// or failure. +// func (c *IAM) DeleteGroupPolicy(input *DeleteGroupPolicyInput) (*DeleteGroupPolicyOutput, error) { req, out := c.DeleteGroupPolicyRequest(input) err := req.Send() @@ -1416,6 +2129,8 @@ const opDeleteInstanceProfile = "DeleteInstanceProfile" // value can be used to capture response data after the request's "Send" method // is called. // +// See DeleteInstanceProfile for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1452,6 +2167,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 +2179,31 @@ 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). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Identity and Access Management's +// API operation DeleteInstanceProfile for usage and error information. +// +// Returned Error Codes: +// * NoSuchEntity +// The request was rejected because it referenced an entity that does not exist. +// The error message describes the entity. +// +// * DeleteConflict +// The request was rejected because it attempted to delete a resource that has +// attached subordinate entities. The error message describes these entities. +// +// * LimitExceeded +// The request was rejected because it attempted to create resources beyond +// the current AWS account limits. The error message describes the limit exceeded. +// +// * ServiceFailure +// The request processing has failed because of an unknown error, exception +// or failure. +// func (c *IAM) DeleteInstanceProfile(input *DeleteInstanceProfileInput) (*DeleteInstanceProfileOutput, error) { req, out := c.DeleteInstanceProfileRequest(input) err := req.Send() @@ -1475,6 +2217,8 @@ const opDeleteLoginProfile = "DeleteLoginProfile" // value can be used to capture response data after the request's "Send" method // is called. // +// See DeleteLoginProfile for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1511,6 +2255,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 +2265,33 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Identity and Access Management's +// API operation DeleteLoginProfile for usage and error information. +// +// Returned Error Codes: +// * EntityTemporarilyUnmodifiable +// The request was rejected because it referenced an entity that is temporarily +// unmodifiable, such as a user name that was deleted and then recreated. The +// error indicates that the request is likely to succeed if you try again after +// waiting several minutes. The error message describes the entity. +// +// * NoSuchEntity +// The request was rejected because it referenced an entity that does not exist. +// The error message describes the entity. +// +// * LimitExceeded +// The request was rejected because it attempted to create resources beyond +// the current AWS account limits. The error message describes the limit exceeded. +// +// * ServiceFailure +// The request processing has failed because of an unknown error, exception +// or failure. +// func (c *IAM) DeleteLoginProfile(input *DeleteLoginProfileInput) (*DeleteLoginProfileOutput, error) { req, out := c.DeleteLoginProfileRequest(input) err := req.Send() @@ -1532,6 +2305,8 @@ const opDeleteOpenIDConnectProvider = "DeleteOpenIDConnectProvider" // value can be used to capture response data after the request's "Send" method // is called. // +// See DeleteOpenIDConnectProvider for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1568,6 +2343,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 +2353,27 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Identity and Access Management's +// API operation DeleteOpenIDConnectProvider for usage and error information. +// +// Returned Error Codes: +// * InvalidInput +// The request was rejected because an invalid or out-of-range value was supplied +// for an input parameter. +// +// * NoSuchEntity +// The request was rejected because it referenced an entity that does not exist. +// The error message describes the entity. +// +// * ServiceFailure +// The request processing has failed because of an unknown error, exception +// or failure. +// func (c *IAM) DeleteOpenIDConnectProvider(input *DeleteOpenIDConnectProviderInput) (*DeleteOpenIDConnectProviderOutput, error) { req, out := c.DeleteOpenIDConnectProviderRequest(input) err := req.Send() @@ -1589,6 +2387,8 @@ const opDeletePolicy = "DeletePolicy" // value can be used to capture response data after the request's "Send" method // is called. // +// See DeletePolicy for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1625,6 +2425,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 +2450,35 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Identity and Access Management's +// API operation DeletePolicy for usage and error information. +// +// Returned Error Codes: +// * NoSuchEntity +// The request was rejected because it referenced an entity that does not exist. +// The error message describes the entity. +// +// * LimitExceeded +// The request was rejected because it attempted to create resources beyond +// the current AWS account limits. The error message describes the limit exceeded. +// +// * InvalidInput +// The request was rejected because an invalid or out-of-range value was supplied +// for an input parameter. +// +// * DeleteConflict +// The request was rejected because it attempted to delete a resource that has +// attached subordinate entities. The error message describes these entities. +// +// * ServiceFailure +// The request processing has failed because of an unknown error, exception +// or failure. +// func (c *IAM) DeletePolicy(input *DeletePolicyInput) (*DeletePolicyOutput, error) { req, out := c.DeletePolicyRequest(input) err := req.Send() @@ -1661,6 +2492,8 @@ const opDeletePolicyVersion = "DeletePolicyVersion" // value can be used to capture response data after the request's "Send" method // is called. // +// See DeletePolicyVersion for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1697,6 +2530,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 +2541,35 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Identity and Access Management's +// API operation DeletePolicyVersion for usage and error information. +// +// Returned Error Codes: +// * NoSuchEntity +// The request was rejected because it referenced an entity that does not exist. +// The error message describes the entity. +// +// * LimitExceeded +// The request was rejected because it attempted to create resources beyond +// the current AWS account limits. The error message describes the limit exceeded. +// +// * InvalidInput +// The request was rejected because an invalid or out-of-range value was supplied +// for an input parameter. +// +// * DeleteConflict +// The request was rejected because it attempted to delete a resource that has +// attached subordinate entities. The error message describes these entities. +// +// * ServiceFailure +// The request processing has failed because of an unknown error, exception +// or failure. +// func (c *IAM) DeletePolicyVersion(input *DeletePolicyVersionInput) (*DeletePolicyVersionOutput, error) { req, out := c.DeletePolicyVersionRequest(input) err := req.Send() @@ -1719,6 +2583,8 @@ const opDeleteRole = "DeleteRole" // value can be used to capture response data after the request's "Send" method // is called. // +// See DeleteRole for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1755,12 +2621,39 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Identity and Access Management's +// API operation DeleteRole for usage and error information. +// +// Returned Error Codes: +// * NoSuchEntity +// The request was rejected because it referenced an entity that does not exist. +// The error message describes the entity. +// +// * DeleteConflict +// The request was rejected because it attempted to delete a resource that has +// attached subordinate entities. The error message describes these entities. +// +// * LimitExceeded +// The request was rejected because it attempted to create resources beyond +// the current AWS account limits. The error message describes the limit exceeded. +// +// * ServiceFailure +// The request processing has failed because of an unknown error, exception +// or failure. +// func (c *IAM) DeleteRole(input *DeleteRoleInput) (*DeleteRoleOutput, error) { req, out := c.DeleteRoleRequest(input) err := req.Send() @@ -1774,6 +2667,8 @@ const opDeleteRolePolicy = "DeleteRolePolicy" // value can be used to capture response data after the request's "Send" method // is called. // +// See DeleteRolePolicy for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1810,6 +2705,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 +2714,27 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Identity and Access Management's +// API operation DeleteRolePolicy for usage and error information. +// +// Returned Error Codes: +// * NoSuchEntity +// The request was rejected because it referenced an entity that does not exist. +// The error message describes the entity. +// +// * LimitExceeded +// The request was rejected because it attempted to create resources beyond +// the current AWS account limits. The error message describes the limit exceeded. +// +// * ServiceFailure +// The request processing has failed because of an unknown error, exception +// or failure. +// func (c *IAM) DeleteRolePolicy(input *DeleteRolePolicyInput) (*DeleteRolePolicyOutput, error) { req, out := c.DeleteRolePolicyRequest(input) err := req.Send() @@ -1830,6 +2748,8 @@ const opDeleteSAMLProvider = "DeleteSAMLProvider" // value can be used to capture response data after the request's "Send" method // is called. // +// See DeleteSAMLProvider for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1866,6 +2786,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 +2796,31 @@ 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). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Identity and Access Management's +// API operation DeleteSAMLProvider for usage and error information. +// +// Returned Error Codes: +// * InvalidInput +// The request was rejected because an invalid or out-of-range value was supplied +// for an input parameter. +// +// * LimitExceeded +// The request was rejected because it attempted to create resources beyond +// the current AWS account limits. The error message describes the limit exceeded. +// +// * NoSuchEntity +// The request was rejected because it referenced an entity that does not exist. +// The error message describes the entity. +// +// * ServiceFailure +// The request processing has failed because of an unknown error, exception +// or failure. +// func (c *IAM) DeleteSAMLProvider(input *DeleteSAMLProviderInput) (*DeleteSAMLProviderOutput, error) { req, out := c.DeleteSAMLProviderRequest(input) err := req.Send() @@ -1887,6 +2834,8 @@ const opDeleteSSHPublicKey = "DeleteSSHPublicKey" // value can be used to capture response data after the request's "Send" method // is called. // +// See DeleteSSHPublicKey for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1923,6 +2872,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 +2881,19 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Identity and Access Management's +// API operation DeleteSSHPublicKey for usage and error information. +// +// Returned Error Codes: +// * NoSuchEntity +// The request was rejected because it referenced an entity that does not exist. +// The error message describes the entity. +// func (c *IAM) DeleteSSHPublicKey(input *DeleteSSHPublicKeyInput) (*DeleteSSHPublicKeyOutput, error) { req, out := c.DeleteSSHPublicKeyRequest(input) err := req.Send() @@ -1943,6 +2907,8 @@ const opDeleteServerCertificate = "DeleteServerCertificate" // value can be used to capture response data after the request's "Send" method // is called. // +// See DeleteServerCertificate for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1979,6 +2945,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 +2963,31 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Identity and Access Management's +// API operation DeleteServerCertificate for usage and error information. +// +// Returned Error Codes: +// * NoSuchEntity +// The request was rejected because it referenced an entity that does not exist. +// The error message describes the entity. +// +// * DeleteConflict +// The request was rejected because it attempted to delete a resource that has +// attached subordinate entities. The error message describes these entities. +// +// * LimitExceeded +// The request was rejected because it attempted to create resources beyond +// the current AWS account limits. The error message describes the limit exceeded. +// +// * ServiceFailure +// The request processing has failed because of an unknown error, exception +// or failure. +// func (c *IAM) DeleteServerCertificate(input *DeleteServerCertificateInput) (*DeleteServerCertificateOutput, error) { req, out := c.DeleteServerCertificateRequest(input) err := req.Send() @@ -2008,6 +3001,8 @@ const opDeleteSigningCertificate = "DeleteSigningCertificate" // value can be used to capture response data after the request's "Send" method // is called. // +// See DeleteSigningCertificate for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -2044,12 +3039,35 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Identity and Access Management's +// API operation DeleteSigningCertificate for usage and error information. +// +// Returned Error Codes: +// * NoSuchEntity +// The request was rejected because it referenced an entity that does not exist. +// The error message describes the entity. +// +// * LimitExceeded +// The request was rejected because it attempted to create resources beyond +// the current AWS account limits. The error message describes the limit exceeded. +// +// * ServiceFailure +// The request processing has failed because of an unknown error, exception +// or failure. +// func (c *IAM) DeleteSigningCertificate(input *DeleteSigningCertificateInput) (*DeleteSigningCertificateOutput, error) { req, out := c.DeleteSigningCertificateRequest(input) err := req.Send() @@ -2063,6 +3081,8 @@ const opDeleteUser = "DeleteUser" // value can be used to capture response data after the request's "Send" method // is called. // +// See DeleteUser for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -2099,8 +3119,35 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Identity and Access Management's +// API operation DeleteUser for usage and error information. +// +// Returned Error Codes: +// * LimitExceeded +// The request was rejected because it attempted to create resources beyond +// the current AWS account limits. The error message describes the limit exceeded. +// +// * NoSuchEntity +// The request was rejected because it referenced an entity that does not exist. +// The error message describes the entity. +// +// * DeleteConflict +// The request was rejected because it attempted to delete a resource that has +// attached subordinate entities. The error message describes these entities. +// +// * ServiceFailure +// The request processing has failed because of an unknown error, exception +// or failure. +// func (c *IAM) DeleteUser(input *DeleteUserInput) (*DeleteUserOutput, error) { req, out := c.DeleteUserRequest(input) err := req.Send() @@ -2114,6 +3161,8 @@ const opDeleteUserPolicy = "DeleteUserPolicy" // value can be used to capture response data after the request's "Send" method // is called. // +// See DeleteUserPolicy for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -2150,6 +3199,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 +3208,27 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Identity and Access Management's +// API operation DeleteUserPolicy for usage and error information. +// +// Returned Error Codes: +// * NoSuchEntity +// The request was rejected because it referenced an entity that does not exist. +// The error message describes the entity. +// +// * LimitExceeded +// The request was rejected because it attempted to create resources beyond +// the current AWS account limits. The error message describes the limit exceeded. +// +// * ServiceFailure +// The request processing has failed because of an unknown error, exception +// or failure. +// func (c *IAM) DeleteUserPolicy(input *DeleteUserPolicyInput) (*DeleteUserPolicyOutput, error) { req, out := c.DeleteUserPolicyRequest(input) err := req.Send() @@ -2170,6 +3242,8 @@ const opDeleteVirtualMFADevice = "DeleteVirtualMFADevice" // value can be used to capture response data after the request's "Send" method // is called. // +// See DeleteVirtualMFADevice for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -2206,10 +3280,37 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Identity and Access Management's +// API operation DeleteVirtualMFADevice for usage and error information. +// +// Returned Error Codes: +// * NoSuchEntity +// The request was rejected because it referenced an entity that does not exist. +// The error message describes the entity. +// +// * DeleteConflict +// The request was rejected because it attempted to delete a resource that has +// attached subordinate entities. The error message describes these entities. +// +// * LimitExceeded +// The request was rejected because it attempted to create resources beyond +// the current AWS account limits. The error message describes the limit exceeded. +// +// * ServiceFailure +// The request processing has failed because of an unknown error, exception +// or failure. +// func (c *IAM) DeleteVirtualMFADevice(input *DeleteVirtualMFADeviceInput) (*DeleteVirtualMFADeviceOutput, error) { req, out := c.DeleteVirtualMFADeviceRequest(input) err := req.Send() @@ -2223,6 +3324,8 @@ const opDetachGroupPolicy = "DetachGroupPolicy" // value can be used to capture response data after the request's "Send" method // is called. // +// See DetachGroupPolicy for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -2259,12 +3362,39 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Identity and Access Management's +// API operation DetachGroupPolicy for usage and error information. +// +// Returned Error Codes: +// * NoSuchEntity +// The request was rejected because it referenced an entity that does not exist. +// The error message describes the entity. +// +// * LimitExceeded +// The request was rejected because it attempted to create resources beyond +// the current AWS account limits. The error message describes the limit exceeded. +// +// * InvalidInput +// The request was rejected because an invalid or out-of-range value was supplied +// for an input parameter. +// +// * ServiceFailure +// The request processing has failed because of an unknown error, exception +// or failure. +// func (c *IAM) DetachGroupPolicy(input *DetachGroupPolicyInput) (*DetachGroupPolicyOutput, error) { req, out := c.DetachGroupPolicyRequest(input) err := req.Send() @@ -2278,6 +3408,8 @@ const opDetachRolePolicy = "DetachRolePolicy" // value can be used to capture response data after the request's "Send" method // is called. // +// See DetachRolePolicy for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -2314,12 +3446,39 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Identity and Access Management's +// API operation DetachRolePolicy for usage and error information. +// +// Returned Error Codes: +// * NoSuchEntity +// The request was rejected because it referenced an entity that does not exist. +// The error message describes the entity. +// +// * LimitExceeded +// The request was rejected because it attempted to create resources beyond +// the current AWS account limits. The error message describes the limit exceeded. +// +// * InvalidInput +// The request was rejected because an invalid or out-of-range value was supplied +// for an input parameter. +// +// * ServiceFailure +// The request processing has failed because of an unknown error, exception +// or failure. +// func (c *IAM) DetachRolePolicy(input *DetachRolePolicyInput) (*DetachRolePolicyOutput, error) { req, out := c.DetachRolePolicyRequest(input) err := req.Send() @@ -2333,6 +3492,8 @@ const opDetachUserPolicy = "DetachUserPolicy" // value can be used to capture response data after the request's "Send" method // is called. // +// See DetachUserPolicy for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -2369,12 +3530,39 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Identity and Access Management's +// API operation DetachUserPolicy for usage and error information. +// +// Returned Error Codes: +// * NoSuchEntity +// The request was rejected because it referenced an entity that does not exist. +// The error message describes the entity. +// +// * LimitExceeded +// The request was rejected because it attempted to create resources beyond +// the current AWS account limits. The error message describes the limit exceeded. +// +// * InvalidInput +// The request was rejected because an invalid or out-of-range value was supplied +// for an input parameter. +// +// * ServiceFailure +// The request processing has failed because of an unknown error, exception +// or failure. +// func (c *IAM) DetachUserPolicy(input *DetachUserPolicyInput) (*DetachUserPolicyOutput, error) { req, out := c.DetachUserPolicyRequest(input) err := req.Send() @@ -2388,6 +3576,8 @@ const opEnableMFADevice = "EnableMFADevice" // value can be used to capture response data after the request's "Send" method // is called. // +// See EnableMFADevice for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -2424,9 +3614,46 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Identity and Access Management's +// API operation EnableMFADevice for usage and error information. +// +// Returned Error Codes: +// * EntityAlreadyExists +// The request was rejected because it attempted to create a resource that already +// exists. +// +// * EntityTemporarilyUnmodifiable +// The request was rejected because it referenced an entity that is temporarily +// unmodifiable, such as a user name that was deleted and then recreated. The +// error indicates that the request is likely to succeed if you try again after +// waiting several minutes. The error message describes the entity. +// +// * InvalidAuthenticationCode +// The request was rejected because the authentication code was not recognized. +// The error message describes the specific error. +// +// * LimitExceeded +// The request was rejected because it attempted to create resources beyond +// the current AWS account limits. The error message describes the limit exceeded. +// +// * NoSuchEntity +// The request was rejected because it referenced an entity that does not exist. +// The error message describes the entity. +// +// * ServiceFailure +// The request processing has failed because of an unknown error, exception +// or failure. +// func (c *IAM) EnableMFADevice(input *EnableMFADeviceInput) (*EnableMFADeviceOutput, error) { req, out := c.EnableMFADeviceRequest(input) err := req.Send() @@ -2440,6 +3667,8 @@ const opGenerateCredentialReport = "GenerateCredentialReport" // value can be used to capture response data after the request's "Send" method // is called. // +// See GenerateCredentialReport for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -2474,9 +3703,28 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Identity and Access Management's +// API operation GenerateCredentialReport for usage and error information. +// +// Returned Error Codes: +// * LimitExceeded +// The request was rejected because it attempted to create resources beyond +// the current AWS account limits. The error message describes the limit exceeded. +// +// * ServiceFailure +// The request processing has failed because of an unknown error, exception +// or failure. +// func (c *IAM) GenerateCredentialReport(input *GenerateCredentialReportInput) (*GenerateCredentialReportOutput, error) { req, out := c.GenerateCredentialReportRequest(input) err := req.Send() @@ -2490,6 +3738,8 @@ const opGetAccessKeyLastUsed = "GetAccessKeyLastUsed" // value can be used to capture response data after the request's "Send" method // is called. // +// See GetAccessKeyLastUsed for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -2524,10 +3774,25 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Identity and Access Management's +// API operation GetAccessKeyLastUsed for usage and error information. +// +// Returned Error Codes: +// * NoSuchEntity +// The request was rejected because it referenced an entity that does not exist. +// The error message describes the entity. +// func (c *IAM) GetAccessKeyLastUsed(input *GetAccessKeyLastUsedInput) (*GetAccessKeyLastUsedOutput, error) { req, out := c.GetAccessKeyLastUsedRequest(input) err := req.Send() @@ -2541,6 +3806,8 @@ const opGetAccountAuthorizationDetails = "GetAccountAuthorizationDetails" // value can be used to capture response data after the request's "Send" method // is called. // +// See GetAccountAuthorizationDetails for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -2581,13 +3848,28 @@ 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, // groups, roles, and policies) in your account. // -// You can optionally filter the results using the Filter parameter. You can -// paginate the results using the MaxItems and Marker parameters. +// You can optionally filter the results using the Filter parameter. You can +// paginate the results using the MaxItems and Marker parameters. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Identity and Access Management's +// API operation GetAccountAuthorizationDetails for usage and error information. +// +// Returned Error Codes: +// * ServiceFailure +// The request processing has failed because of an unknown error, exception +// or failure. +// func (c *IAM) GetAccountAuthorizationDetails(input *GetAccountAuthorizationDetailsInput) (*GetAccountAuthorizationDetailsOutput, error) { req, out := c.GetAccountAuthorizationDetailsRequest(input) err := req.Send() @@ -2626,6 +3908,8 @@ const opGetAccountPasswordPolicy = "GetAccountPasswordPolicy" // value can be used to capture response data after the request's "Send" method // is called. // +// See GetAccountPasswordPolicy for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -2660,8 +3944,27 @@ 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). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Identity and Access Management's +// API operation GetAccountPasswordPolicy for usage and error information. +// +// Returned Error Codes: +// * NoSuchEntity +// The request was rejected because it referenced an entity that does not exist. +// The error message describes the entity. +// +// * ServiceFailure +// The request processing has failed because of an unknown error, exception +// or failure. +// func (c *IAM) GetAccountPasswordPolicy(input *GetAccountPasswordPolicyInput) (*GetAccountPasswordPolicyOutput, error) { req, out := c.GetAccountPasswordPolicyRequest(input) err := req.Send() @@ -2675,6 +3978,8 @@ const opGetAccountSummary = "GetAccountSummary" // value can be used to capture response data after the request's "Send" method // is called. // +// See GetAccountSummary for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -2709,11 +4014,26 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Identity and Access Management's +// API operation GetAccountSummary for usage and error information. +// +// Returned Error Codes: +// * ServiceFailure +// The request processing has failed because of an unknown error, exception +// or failure. +// func (c *IAM) GetAccountSummary(input *GetAccountSummaryInput) (*GetAccountSummaryOutput, error) { req, out := c.GetAccountSummaryRequest(input) err := req.Send() @@ -2727,6 +4047,8 @@ const opGetContextKeysForCustomPolicy = "GetContextKeysForCustomPolicy" // value can be used to capture response data after the request's "Send" method // is called. // +// See GetContextKeysForCustomPolicy for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -2761,6 +4083,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 +4095,19 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Identity and Access Management's +// API operation GetContextKeysForCustomPolicy for usage and error information. +// +// Returned Error Codes: +// * InvalidInput +// The request was rejected because an invalid or out-of-range value was supplied +// for an input parameter. +// func (c *IAM) GetContextKeysForCustomPolicy(input *GetContextKeysForCustomPolicyInput) (*GetContextKeysForPolicyResponse, error) { req, out := c.GetContextKeysForCustomPolicyRequest(input) err := req.Send() @@ -2784,6 +4121,8 @@ const opGetContextKeysForPrincipalPolicy = "GetContextKeysForPrincipalPolicy" // value can be used to capture response data after the request's "Send" method // is called. // +// See GetContextKeysForPrincipalPolicy for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -2818,6 +4157,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 +4176,23 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Identity and Access Management's +// API operation GetContextKeysForPrincipalPolicy for usage and error information. +// +// Returned Error Codes: +// * NoSuchEntity +// The request was rejected because it referenced an entity that does not exist. +// The error message describes the entity. +// +// * InvalidInput +// The request was rejected because an invalid or out-of-range value was supplied +// for an input parameter. +// func (c *IAM) GetContextKeysForPrincipalPolicy(input *GetContextKeysForPrincipalPolicyInput) (*GetContextKeysForPolicyResponse, error) { req, out := c.GetContextKeysForPrincipalPolicyRequest(input) err := req.Send() @@ -2848,6 +4206,8 @@ const opGetCredentialReport = "GetCredentialReport" // value can be used to capture response data after the request's "Send" method // is called. // +// See GetCredentialReport for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -2882,9 +4242,38 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Identity and Access Management's +// API operation GetCredentialReport for usage and error information. +// +// Returned Error Codes: +// * ReportNotPresent +// The request was rejected because the credential report does not exist. To +// generate a credential report, use GenerateCredentialReport. +// +// * ReportExpired +// The request was rejected because the most recent credential report has expired. +// To generate a new credential report, use GenerateCredentialReport. For more +// information about credential report expiration, see Getting Credential Reports +// (http://docs.aws.amazon.com/IAM/latest/UserGuide/credential-reports.html) +// in the IAM User Guide. +// +// * ReportInProgress +// The request was rejected because the credential report is still being generated. +// +// * ServiceFailure +// The request processing has failed because of an unknown error, exception +// or failure. +// func (c *IAM) GetCredentialReport(input *GetCredentialReportInput) (*GetCredentialReportOutput, error) { req, out := c.GetCredentialReportRequest(input) err := req.Send() @@ -2898,6 +4287,8 @@ const opGetGroup = "GetGroup" // value can be used to capture response data after the request's "Send" method // is called. // +// See GetGroup for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -2938,8 +4329,27 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Identity and Access Management's +// API operation GetGroup for usage and error information. +// +// Returned Error Codes: +// * NoSuchEntity +// The request was rejected because it referenced an entity that does not exist. +// The error message describes the entity. +// +// * ServiceFailure +// The request processing has failed because of an unknown error, exception +// or failure. +// func (c *IAM) GetGroup(input *GetGroupInput) (*GetGroupOutput, error) { req, out := c.GetGroupRequest(input) err := req.Send() @@ -2978,6 +4388,8 @@ const opGetGroupPolicy = "GetGroupPolicy" // value can be used to capture response data after the request's "Send" method // is called. // +// See GetGroupPolicy for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -3012,6 +4424,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 +4443,23 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Identity and Access Management's +// API operation GetGroupPolicy for usage and error information. +// +// Returned Error Codes: +// * NoSuchEntity +// The request was rejected because it referenced an entity that does not exist. +// The error message describes the entity. +// +// * ServiceFailure +// The request processing has failed because of an unknown error, exception +// or failure. +// func (c *IAM) GetGroupPolicy(input *GetGroupPolicyInput) (*GetGroupPolicyOutput, error) { req, out := c.GetGroupPolicyRequest(input) err := req.Send() @@ -3042,6 +4473,8 @@ const opGetInstanceProfile = "GetInstanceProfile" // value can be used to capture response data after the request's "Send" method // is called. // +// See GetInstanceProfile for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -3076,10 +4509,29 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Identity and Access Management's +// API operation GetInstanceProfile for usage and error information. +// +// Returned Error Codes: +// * NoSuchEntity +// The request was rejected because it referenced an entity that does not exist. +// The error message describes the entity. +// +// * ServiceFailure +// The request processing has failed because of an unknown error, exception +// or failure. +// func (c *IAM) GetInstanceProfile(input *GetInstanceProfileInput) (*GetInstanceProfileOutput, error) { req, out := c.GetInstanceProfileRequest(input) err := req.Send() @@ -3093,6 +4545,8 @@ const opGetLoginProfile = "GetLoginProfile" // value can be used to capture response data after the request's "Send" method // is called. // +// See GetLoginProfile for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -3127,9 +4581,28 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Identity and Access Management's +// API operation GetLoginProfile for usage and error information. +// +// Returned Error Codes: +// * NoSuchEntity +// The request was rejected because it referenced an entity that does not exist. +// The error message describes the entity. +// +// * ServiceFailure +// The request processing has failed because of an unknown error, exception +// or failure. +// func (c *IAM) GetLoginProfile(input *GetLoginProfileInput) (*GetLoginProfileOutput, error) { req, out := c.GetLoginProfileRequest(input) err := req.Send() @@ -3143,6 +4616,8 @@ const opGetOpenIDConnectProvider = "GetOpenIDConnectProvider" // value can be used to capture response data after the request's "Send" method // is called. // +// See GetOpenIDConnectProvider for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -3177,8 +4652,31 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Identity and Access Management's +// API operation GetOpenIDConnectProvider for usage and error information. +// +// Returned Error Codes: +// * InvalidInput +// The request was rejected because an invalid or out-of-range value was supplied +// for an input parameter. +// +// * NoSuchEntity +// The request was rejected because it referenced an entity that does not exist. +// The error message describes the entity. +// +// * ServiceFailure +// The request processing has failed because of an unknown error, exception +// or failure. +// func (c *IAM) GetOpenIDConnectProvider(input *GetOpenIDConnectProviderInput) (*GetOpenIDConnectProviderOutput, error) { req, out := c.GetOpenIDConnectProviderRequest(input) err := req.Send() @@ -3192,6 +4690,8 @@ const opGetPolicy = "GetPolicy" // value can be used to capture response data after the request's "Send" method // is called. // +// See GetPolicy for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -3226,6 +4726,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 +4742,27 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Identity and Access Management's +// API operation GetPolicy for usage and error information. +// +// Returned Error Codes: +// * NoSuchEntity +// The request was rejected because it referenced an entity that does not exist. +// The error message describes the entity. +// +// * InvalidInput +// The request was rejected because an invalid or out-of-range value was supplied +// for an input parameter. +// +// * ServiceFailure +// The request processing has failed because of an unknown error, exception +// or failure. +// func (c *IAM) GetPolicy(input *GetPolicyInput) (*GetPolicyOutput, error) { req, out := c.GetPolicyRequest(input) err := req.Send() @@ -3253,6 +4776,8 @@ const opGetPolicyVersion = "GetPolicyVersion" // value can be used to capture response data after the request's "Send" method // is called. // +// See GetPolicyVersion for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -3287,6 +4812,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 +4836,27 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Identity and Access Management's +// API operation GetPolicyVersion for usage and error information. +// +// Returned Error Codes: +// * NoSuchEntity +// The request was rejected because it referenced an entity that does not exist. +// The error message describes the entity. +// +// * InvalidInput +// The request was rejected because an invalid or out-of-range value was supplied +// for an input parameter. +// +// * ServiceFailure +// The request processing has failed because of an unknown error, exception +// or failure. +// func (c *IAM) GetPolicyVersion(input *GetPolicyVersionInput) (*GetPolicyVersionOutput, error) { req, out := c.GetPolicyVersionRequest(input) err := req.Send() @@ -3322,6 +4870,8 @@ const opGetRole = "GetRole" // value can be used to capture response data after the request's "Send" method // is called. // +// See GetRole for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -3356,6 +4906,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 +4917,23 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Identity and Access Management's +// API operation GetRole for usage and error information. +// +// Returned Error Codes: +// * NoSuchEntity +// The request was rejected because it referenced an entity that does not exist. +// The error message describes the entity. +// +// * ServiceFailure +// The request processing has failed because of an unknown error, exception +// or failure. +// func (c *IAM) GetRole(input *GetRoleInput) (*GetRoleOutput, error) { req, out := c.GetRoleRequest(input) err := req.Send() @@ -3378,6 +4947,8 @@ const opGetRolePolicy = "GetRolePolicy" // value can be used to capture response data after the request's "Send" method // is called. // +// See GetRolePolicy for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -3412,6 +4983,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 +5005,23 @@ 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). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Identity and Access Management's +// API operation GetRolePolicy for usage and error information. +// +// Returned Error Codes: +// * NoSuchEntity +// The request was rejected because it referenced an entity that does not exist. +// The error message describes the entity. +// +// * ServiceFailure +// The request processing has failed because of an unknown error, exception +// or failure. +// func (c *IAM) GetRolePolicy(input *GetRolePolicyInput) (*GetRolePolicyOutput, error) { req, out := c.GetRolePolicyRequest(input) err := req.Send() @@ -3445,6 +5035,8 @@ const opGetSAMLProvider = "GetSAMLProvider" // value can be used to capture response data after the request's "Send" method // is called. // +// See GetSAMLProvider for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -3479,10 +5071,33 @@ 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). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Identity and Access Management's +// API operation GetSAMLProvider for usage and error information. +// +// Returned Error Codes: +// * NoSuchEntity +// The request was rejected because it referenced an entity that does not exist. +// The error message describes the entity. +// +// * InvalidInput +// The request was rejected because an invalid or out-of-range value was supplied +// for an input parameter. +// +// * ServiceFailure +// The request processing has failed because of an unknown error, exception +// or failure. +// func (c *IAM) GetSAMLProvider(input *GetSAMLProviderInput) (*GetSAMLProviderOutput, error) { req, out := c.GetSAMLProviderRequest(input) err := req.Send() @@ -3496,6 +5111,8 @@ const opGetSSHPublicKey = "GetSSHPublicKey" // value can be used to capture response data after the request's "Send" method // is called. // +// See GetSSHPublicKey for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -3530,6 +5147,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 +5156,23 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Identity and Access Management's +// API operation GetSSHPublicKey for usage and error information. +// +// Returned Error Codes: +// * NoSuchEntity +// The request was rejected because it referenced an entity that does not exist. +// The error message describes the entity. +// +// * UnrecognizedPublicKeyEncoding +// The request was rejected because the public key encoding format is unsupported +// or unrecognized. +// func (c *IAM) GetSSHPublicKey(input *GetSSHPublicKeyInput) (*GetSSHPublicKeyOutput, error) { req, out := c.GetSSHPublicKeyRequest(input) err := req.Send() @@ -3550,6 +5186,8 @@ const opGetServerCertificate = "GetServerCertificate" // value can be used to capture response data after the request's "Send" method // is called. // +// See GetServerCertificate for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -3584,12 +5222,31 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Identity and Access Management's +// API operation GetServerCertificate for usage and error information. +// +// Returned Error Codes: +// * NoSuchEntity +// The request was rejected because it referenced an entity that does not exist. +// The error message describes the entity. +// +// * ServiceFailure +// The request processing has failed because of an unknown error, exception +// or failure. +// func (c *IAM) GetServerCertificate(input *GetServerCertificateInput) (*GetServerCertificateOutput, error) { req, out := c.GetServerCertificateRequest(input) err := req.Send() @@ -3603,6 +5260,8 @@ const opGetUser = "GetUser" // value can be used to capture response data after the request's "Send" method // is called. // +// See GetUser for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -3637,11 +5296,30 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Identity and Access Management's +// API operation GetUser for usage and error information. +// +// Returned Error Codes: +// * NoSuchEntity +// The request was rejected because it referenced an entity that does not exist. +// The error message describes the entity. +// +// * ServiceFailure +// The request processing has failed because of an unknown error, exception +// or failure. +// func (c *IAM) GetUser(input *GetUserInput) (*GetUserOutput, error) { req, out := c.GetUserRequest(input) err := req.Send() @@ -3655,6 +5333,8 @@ const opGetUserPolicy = "GetUserPolicy" // value can be used to capture response data after the request's "Send" method // is called. // +// See GetUserPolicy for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -3689,6 +5369,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 +5388,23 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Identity and Access Management's +// API operation GetUserPolicy for usage and error information. +// +// Returned Error Codes: +// * NoSuchEntity +// The request was rejected because it referenced an entity that does not exist. +// The error message describes the entity. +// +// * ServiceFailure +// The request processing has failed because of an unknown error, exception +// or failure. +// func (c *IAM) GetUserPolicy(input *GetUserPolicyInput) (*GetUserPolicyOutput, error) { req, out := c.GetUserPolicyRequest(input) err := req.Send() @@ -3719,6 +5418,8 @@ const opListAccessKeys = "ListAccessKeys" // value can be used to capture response data after the request's "Send" method // is called. // +// See ListAccessKeys for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -3759,6 +5460,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 +5475,23 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Identity and Access Management's +// API operation ListAccessKeys for usage and error information. +// +// Returned Error Codes: +// * NoSuchEntity +// The request was rejected because it referenced an entity that does not exist. +// The error message describes the entity. +// +// * ServiceFailure +// The request processing has failed because of an unknown error, exception +// or failure. +// func (c *IAM) ListAccessKeys(input *ListAccessKeysInput) (*ListAccessKeysOutput, error) { req, out := c.ListAccessKeysRequest(input) err := req.Send() @@ -3810,6 +5530,8 @@ const opListAccountAliases = "ListAccountAliases" // value can be used to capture response data after the request's "Send" method // is called. // +// See ListAccountAliases for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -3850,10 +5572,25 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Identity and Access Management's +// API operation ListAccountAliases for usage and error information. +// +// Returned Error Codes: +// * ServiceFailure +// The request processing has failed because of an unknown error, exception +// or failure. +// func (c *IAM) ListAccountAliases(input *ListAccountAliasesInput) (*ListAccountAliasesOutput, error) { req, out := c.ListAccountAliasesRequest(input) err := req.Send() @@ -3892,6 +5629,8 @@ const opListAttachedGroupPolicies = "ListAttachedGroupPolicies" // value can be used to capture response data after the request's "Send" method // is called. // +// See ListAttachedGroupPolicies for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -3932,6 +5671,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 +5685,27 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Identity and Access Management's +// API operation ListAttachedGroupPolicies for usage and error information. +// +// Returned Error Codes: +// * NoSuchEntity +// The request was rejected because it referenced an entity that does not exist. +// The error message describes the entity. +// +// * InvalidInput +// The request was rejected because an invalid or out-of-range value was supplied +// for an input parameter. +// +// * ServiceFailure +// The request processing has failed because of an unknown error, exception +// or failure. +// func (c *IAM) ListAttachedGroupPolicies(input *ListAttachedGroupPoliciesInput) (*ListAttachedGroupPoliciesOutput, error) { req, out := c.ListAttachedGroupPoliciesRequest(input) err := req.Send() @@ -3982,6 +5744,8 @@ const opListAttachedRolePolicies = "ListAttachedRolePolicies" // value can be used to capture response data after the request's "Send" method // is called. // +// See ListAttachedRolePolicies for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -4022,6 +5786,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 +5800,27 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Identity and Access Management's +// API operation ListAttachedRolePolicies for usage and error information. +// +// Returned Error Codes: +// * NoSuchEntity +// The request was rejected because it referenced an entity that does not exist. +// The error message describes the entity. +// +// * InvalidInput +// The request was rejected because an invalid or out-of-range value was supplied +// for an input parameter. +// +// * ServiceFailure +// The request processing has failed because of an unknown error, exception +// or failure. +// func (c *IAM) ListAttachedRolePolicies(input *ListAttachedRolePoliciesInput) (*ListAttachedRolePoliciesOutput, error) { req, out := c.ListAttachedRolePoliciesRequest(input) err := req.Send() @@ -4072,6 +5859,8 @@ const opListAttachedUserPolicies = "ListAttachedUserPolicies" // value can be used to capture response data after the request's "Send" method // is called. // +// See ListAttachedUserPolicies for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -4112,6 +5901,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 +5915,27 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Identity and Access Management's +// API operation ListAttachedUserPolicies for usage and error information. +// +// Returned Error Codes: +// * NoSuchEntity +// The request was rejected because it referenced an entity that does not exist. +// The error message describes the entity. +// +// * InvalidInput +// The request was rejected because an invalid or out-of-range value was supplied +// for an input parameter. +// +// * ServiceFailure +// The request processing has failed because of an unknown error, exception +// or failure. +// func (c *IAM) ListAttachedUserPolicies(input *ListAttachedUserPoliciesInput) (*ListAttachedUserPoliciesOutput, error) { req, out := c.ListAttachedUserPoliciesRequest(input) err := req.Send() @@ -4162,6 +5974,8 @@ const opListEntitiesForPolicy = "ListEntitiesForPolicy" // value can be used to capture response data after the request's "Send" method // is called. // +// See ListEntitiesForPolicy for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -4202,6 +6016,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 +6027,27 @@ func (c *IAM) ListEntitiesForPolicyRequest(input *ListEntitiesForPolicyInput) (r // to Role. // // You can paginate the results using the MaxItems and Marker parameters. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Identity and Access Management's +// API operation ListEntitiesForPolicy for usage and error information. +// +// Returned Error Codes: +// * NoSuchEntity +// The request was rejected because it referenced an entity that does not exist. +// The error message describes the entity. +// +// * InvalidInput +// The request was rejected because an invalid or out-of-range value was supplied +// for an input parameter. +// +// * ServiceFailure +// The request processing has failed because of an unknown error, exception +// or failure. +// func (c *IAM) ListEntitiesForPolicy(input *ListEntitiesForPolicyInput) (*ListEntitiesForPolicyOutput, error) { req, out := c.ListEntitiesForPolicyRequest(input) err := req.Send() @@ -4249,6 +6086,8 @@ const opListGroupPolicies = "ListGroupPolicies" // value can be used to capture response data after the request's "Send" method // is called. // +// See ListGroupPolicies for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -4289,6 +6128,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 +6142,23 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Identity and Access Management's +// API operation ListGroupPolicies for usage and error information. +// +// Returned Error Codes: +// * NoSuchEntity +// The request was rejected because it referenced an entity that does not exist. +// The error message describes the entity. +// +// * ServiceFailure +// The request processing has failed because of an unknown error, exception +// or failure. +// func (c *IAM) ListGroupPolicies(input *ListGroupPoliciesInput) (*ListGroupPoliciesOutput, error) { req, out := c.ListGroupPoliciesRequest(input) err := req.Send() @@ -4339,6 +6197,8 @@ const opListGroups = "ListGroups" // value can be used to capture response data after the request's "Send" method // is called. // +// See ListGroups for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -4379,9 +6239,24 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Identity and Access Management's +// API operation ListGroups for usage and error information. +// +// Returned Error Codes: +// * ServiceFailure +// The request processing has failed because of an unknown error, exception +// or failure. +// func (c *IAM) ListGroups(input *ListGroupsInput) (*ListGroupsOutput, error) { req, out := c.ListGroupsRequest(input) err := req.Send() @@ -4420,6 +6295,8 @@ const opListGroupsForUser = "ListGroupsForUser" // value can be used to capture response data after the request's "Send" method // is called. // +// See ListGroupsForUser for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -4460,9 +6337,28 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Identity and Access Management's +// API operation ListGroupsForUser for usage and error information. +// +// Returned Error Codes: +// * NoSuchEntity +// The request was rejected because it referenced an entity that does not exist. +// The error message describes the entity. +// +// * ServiceFailure +// The request processing has failed because of an unknown error, exception +// or failure. +// func (c *IAM) ListGroupsForUser(input *ListGroupsForUserInput) (*ListGroupsForUserOutput, error) { req, out := c.ListGroupsForUserRequest(input) err := req.Send() @@ -4501,6 +6397,8 @@ const opListInstanceProfiles = "ListInstanceProfiles" // value can be used to capture response data after the request's "Send" method // is called. // +// See ListInstanceProfiles for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -4541,11 +6439,26 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Identity and Access Management's +// API operation ListInstanceProfiles for usage and error information. +// +// Returned Error Codes: +// * ServiceFailure +// The request processing has failed because of an unknown error, exception +// or failure. +// func (c *IAM) ListInstanceProfiles(input *ListInstanceProfilesInput) (*ListInstanceProfilesOutput, error) { req, out := c.ListInstanceProfilesRequest(input) err := req.Send() @@ -4584,6 +6497,8 @@ const opListInstanceProfilesForRole = "ListInstanceProfilesForRole" // value can be used to capture response data after the request's "Send" method // is called. // +// See ListInstanceProfilesForRole for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -4624,11 +6539,30 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Identity and Access Management's +// API operation ListInstanceProfilesForRole for usage and error information. +// +// Returned Error Codes: +// * NoSuchEntity +// The request was rejected because it referenced an entity that does not exist. +// The error message describes the entity. +// +// * ServiceFailure +// The request processing has failed because of an unknown error, exception +// or failure. +// func (c *IAM) ListInstanceProfilesForRole(input *ListInstanceProfilesForRoleInput) (*ListInstanceProfilesForRoleOutput, error) { req, out := c.ListInstanceProfilesForRoleRequest(input) err := req.Send() @@ -4667,6 +6601,8 @@ const opListMFADevices = "ListMFADevices" // value can be used to capture response data after the request's "Send" method // is called. // +// See ListMFADevices for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -4707,12 +6643,31 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Identity and Access Management's +// API operation ListMFADevices for usage and error information. +// +// Returned Error Codes: +// * NoSuchEntity +// The request was rejected because it referenced an entity that does not exist. +// The error message describes the entity. +// +// * ServiceFailure +// The request processing has failed because of an unknown error, exception +// or failure. +// func (c *IAM) ListMFADevices(input *ListMFADevicesInput) (*ListMFADevicesOutput, error) { req, out := c.ListMFADevicesRequest(input) err := req.Send() @@ -4751,6 +6706,8 @@ const opListOpenIDConnectProviders = "ListOpenIDConnectProviders" // value can be used to capture response data after the request's "Send" method // is called. // +// See ListOpenIDConnectProviders for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -4785,8 +6742,23 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Identity and Access Management's +// API operation ListOpenIDConnectProviders for usage and error information. +// +// Returned Error Codes: +// * ServiceFailure +// The request processing has failed because of an unknown error, exception +// or failure. +// func (c *IAM) ListOpenIDConnectProviders(input *ListOpenIDConnectProvidersInput) (*ListOpenIDConnectProvidersOutput, error) { req, out := c.ListOpenIDConnectProvidersRequest(input) err := req.Send() @@ -4800,6 +6772,8 @@ const opListPolicies = "ListPolicies" // value can be used to capture response data after the request's "Send" method // is called. // +// See ListPolicies for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -4840,6 +6814,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 +6829,19 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Identity and Access Management's +// API operation ListPolicies for usage and error information. +// +// Returned Error Codes: +// * ServiceFailure +// The request processing has failed because of an unknown error, exception +// or failure. +// func (c *IAM) ListPolicies(input *ListPoliciesInput) (*ListPoliciesOutput, error) { req, out := c.ListPoliciesRequest(input) err := req.Send() @@ -4891,6 +6880,8 @@ const opListPolicyVersions = "ListPolicyVersions" // value can be used to capture response data after the request's "Send" method // is called. // +// See ListPolicyVersions for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -4931,12 +6922,35 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Identity and Access Management's +// API operation ListPolicyVersions for usage and error information. +// +// Returned Error Codes: +// * NoSuchEntity +// The request was rejected because it referenced an entity that does not exist. +// The error message describes the entity. +// +// * InvalidInput +// The request was rejected because an invalid or out-of-range value was supplied +// for an input parameter. +// +// * ServiceFailure +// The request processing has failed because of an unknown error, exception +// or failure. +// func (c *IAM) ListPolicyVersions(input *ListPolicyVersionsInput) (*ListPolicyVersionsOutput, error) { req, out := c.ListPolicyVersionsRequest(input) err := req.Send() @@ -4975,6 +6989,8 @@ const opListRolePolicies = "ListRolePolicies" // value can be used to capture response data after the request's "Send" method // is called. // +// See ListRolePolicies for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -5015,6 +7031,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 +7044,23 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Identity and Access Management's +// API operation ListRolePolicies for usage and error information. +// +// Returned Error Codes: +// * NoSuchEntity +// The request was rejected because it referenced an entity that does not exist. +// The error message describes the entity. +// +// * ServiceFailure +// The request processing has failed because of an unknown error, exception +// or failure. +// func (c *IAM) ListRolePolicies(input *ListRolePoliciesInput) (*ListRolePoliciesOutput, error) { req, out := c.ListRolePoliciesRequest(input) err := req.Send() @@ -5064,6 +7099,8 @@ const opListRoles = "ListRoles" // value can be used to capture response data after the request's "Send" method // is called. // +// See ListRoles for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -5104,11 +7141,26 @@ 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. +// You can paginate the results using the MaxItems and Marker parameters. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Identity and Access Management's +// API operation ListRoles for usage and error information. +// +// Returned Error Codes: +// * ServiceFailure +// The request processing has failed because of an unknown error, exception +// or failure. +// func (c *IAM) ListRoles(input *ListRolesInput) (*ListRolesOutput, error) { req, out := c.ListRolesRequest(input) err := req.Send() @@ -5147,6 +7199,8 @@ const opListSAMLProviders = "ListSAMLProviders" // value can be used to capture response data after the request's "Send" method // is called. // +// See ListSAMLProviders for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -5181,9 +7235,24 @@ 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). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Identity and Access Management's +// API operation ListSAMLProviders for usage and error information. +// +// Returned Error Codes: +// * ServiceFailure +// The request processing has failed because of an unknown error, exception +// or failure. +// func (c *IAM) ListSAMLProviders(input *ListSAMLProvidersInput) (*ListSAMLProvidersOutput, error) { req, out := c.ListSAMLProvidersRequest(input) err := req.Send() @@ -5197,6 +7266,8 @@ const opListSSHPublicKeys = "ListSSHPublicKeys" // value can be used to capture response data after the request's "Send" method // is called. // +// See ListSSHPublicKeys for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -5237,6 +7308,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 +7321,19 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Identity and Access Management's +// API operation ListSSHPublicKeys for usage and error information. +// +// Returned Error Codes: +// * NoSuchEntity +// The request was rejected because it referenced an entity that does not exist. +// The error message describes the entity. +// func (c *IAM) ListSSHPublicKeys(input *ListSSHPublicKeysInput) (*ListSSHPublicKeysOutput, error) { req, out := c.ListSSHPublicKeysRequest(input) err := req.Send() @@ -5286,6 +7372,8 @@ const opListServerCertificates = "ListServerCertificates" // value can be used to capture response data after the request's "Send" method // is called. // +// See ListServerCertificates for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -5326,6 +7414,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 +7425,19 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Identity and Access Management's +// API operation ListServerCertificates for usage and error information. +// +// Returned Error Codes: +// * ServiceFailure +// The request processing has failed because of an unknown error, exception +// or failure. +// func (c *IAM) ListServerCertificates(input *ListServerCertificatesInput) (*ListServerCertificatesOutput, error) { req, out := c.ListServerCertificatesRequest(input) err := req.Send() @@ -5373,6 +7476,8 @@ const opListSigningCertificates = "ListSigningCertificates" // value can be used to capture response data after the request's "Send" method // is called. // +// See ListSigningCertificates for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -5413,6 +7518,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 +7531,23 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Identity and Access Management's +// API operation ListSigningCertificates for usage and error information. +// +// Returned Error Codes: +// * NoSuchEntity +// The request was rejected because it referenced an entity that does not exist. +// The error message describes the entity. +// +// * ServiceFailure +// The request processing has failed because of an unknown error, exception +// or failure. +// func (c *IAM) ListSigningCertificates(input *ListSigningCertificatesInput) (*ListSigningCertificatesOutput, error) { req, out := c.ListSigningCertificatesRequest(input) err := req.Send() @@ -5462,6 +7586,8 @@ const opListUserPolicies = "ListUserPolicies" // value can be used to capture response data after the request's "Send" method // is called. // +// See ListUserPolicies for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -5502,6 +7628,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 +7640,23 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Identity and Access Management's +// API operation ListUserPolicies for usage and error information. +// +// Returned Error Codes: +// * NoSuchEntity +// The request was rejected because it referenced an entity that does not exist. +// The error message describes the entity. +// +// * ServiceFailure +// The request processing has failed because of an unknown error, exception +// or failure. +// func (c *IAM) ListUserPolicies(input *ListUserPoliciesInput) (*ListUserPoliciesOutput, error) { req, out := c.ListUserPoliciesRequest(input) err := req.Send() @@ -5550,6 +7695,8 @@ const opListUsers = "ListUsers" // value can be used to capture response data after the request's "Send" method // is called. // +// See ListUsers for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -5590,11 +7737,26 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Identity and Access Management's +// API operation ListUsers for usage and error information. +// +// Returned Error Codes: +// * ServiceFailure +// The request processing has failed because of an unknown error, exception +// or failure. +// func (c *IAM) ListUsers(input *ListUsersInput) (*ListUsersOutput, error) { req, out := c.ListUsersRequest(input) err := req.Send() @@ -5633,6 +7795,8 @@ const opListVirtualMFADevices = "ListVirtualMFADevices" // value can be used to capture response data after the request's "Send" method // is called. // +// See ListVirtualMFADevices for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -5673,12 +7837,21 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Identity and Access Management's +// API operation ListVirtualMFADevices for usage and error information. func (c *IAM) ListVirtualMFADevices(input *ListVirtualMFADevicesInput) (*ListVirtualMFADevicesOutput, error) { req, out := c.ListVirtualMFADevicesRequest(input) err := req.Send() @@ -5717,6 +7890,8 @@ const opPutGroupPolicy = "PutGroupPolicy" // value can be used to capture response data after the request's "Send" method // is called. // +// See PutGroupPolicy for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -5753,6 +7928,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 +7947,31 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Identity and Access Management's +// API operation PutGroupPolicy for usage and error information. +// +// Returned Error Codes: +// * LimitExceeded +// The request was rejected because it attempted to create resources beyond +// the current AWS account limits. The error message describes the limit exceeded. +// +// * MalformedPolicyDocument +// The request was rejected because the policy document was malformed. The error +// message describes the specific error. +// +// * NoSuchEntity +// The request was rejected because it referenced an entity that does not exist. +// The error message describes the entity. +// +// * ServiceFailure +// The request processing has failed because of an unknown error, exception +// or failure. +// func (c *IAM) PutGroupPolicy(input *PutGroupPolicyInput) (*PutGroupPolicyOutput, error) { req, out := c.PutGroupPolicyRequest(input) err := req.Send() @@ -5783,6 +7985,8 @@ const opPutRolePolicy = "PutRolePolicy" // value can be used to capture response data after the request's "Send" method // is called. // +// See PutRolePolicy for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -5819,6 +8023,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 +8049,31 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Identity and Access Management's +// API operation PutRolePolicy for usage and error information. +// +// Returned Error Codes: +// * LimitExceeded +// The request was rejected because it attempted to create resources beyond +// the current AWS account limits. The error message describes the limit exceeded. +// +// * MalformedPolicyDocument +// The request was rejected because the policy document was malformed. The error +// message describes the specific error. +// +// * NoSuchEntity +// The request was rejected because it referenced an entity that does not exist. +// The error message describes the entity. +// +// * ServiceFailure +// The request processing has failed because of an unknown error, exception +// or failure. +// func (c *IAM) PutRolePolicy(input *PutRolePolicyInput) (*PutRolePolicyOutput, error) { req, out := c.PutRolePolicyRequest(input) err := req.Send() @@ -5856,6 +8087,8 @@ const opPutUserPolicy = "PutUserPolicy" // value can be used to capture response data after the request's "Send" method // is called. // +// See PutUserPolicy for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -5892,6 +8125,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 +8144,31 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Identity and Access Management's +// API operation PutUserPolicy for usage and error information. +// +// Returned Error Codes: +// * LimitExceeded +// The request was rejected because it attempted to create resources beyond +// the current AWS account limits. The error message describes the limit exceeded. +// +// * MalformedPolicyDocument +// The request was rejected because the policy document was malformed. The error +// message describes the specific error. +// +// * NoSuchEntity +// The request was rejected because it referenced an entity that does not exist. +// The error message describes the entity. +// +// * ServiceFailure +// The request processing has failed because of an unknown error, exception +// or failure. +// func (c *IAM) PutUserPolicy(input *PutUserPolicyInput) (*PutUserPolicyOutput, error) { req, out := c.PutUserPolicyRequest(input) err := req.Send() @@ -5922,6 +8182,8 @@ const opRemoveClientIDFromOpenIDConnectProvider = "RemoveClientIDFromOpenIDConne // value can be used to capture response data after the request's "Send" method // is called. // +// See RemoveClientIDFromOpenIDConnectProvider for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -5958,12 +8220,35 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Identity and Access Management's +// API operation RemoveClientIDFromOpenIDConnectProvider for usage and error information. +// +// Returned Error Codes: +// * InvalidInput +// The request was rejected because an invalid or out-of-range value was supplied +// for an input parameter. +// +// * NoSuchEntity +// The request was rejected because it referenced an entity that does not exist. +// The error message describes the entity. +// +// * ServiceFailure +// The request processing has failed because of an unknown error, exception +// or failure. +// func (c *IAM) RemoveClientIDFromOpenIDConnectProvider(input *RemoveClientIDFromOpenIDConnectProviderInput) (*RemoveClientIDFromOpenIDConnectProviderOutput, error) { req, out := c.RemoveClientIDFromOpenIDConnectProviderRequest(input) err := req.Send() @@ -5977,6 +8262,8 @@ const opRemoveRoleFromInstanceProfile = "RemoveRoleFromInstanceProfile" // value can be used to capture response data after the request's "Send" method // is called. // +// See RemoveRoleFromInstanceProfile for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -6013,6 +8300,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 +8312,27 @@ 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). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Identity and Access Management's +// API operation RemoveRoleFromInstanceProfile for usage and error information. +// +// Returned Error Codes: +// * NoSuchEntity +// The request was rejected because it referenced an entity that does not exist. +// The error message describes the entity. +// +// * LimitExceeded +// The request was rejected because it attempted to create resources beyond +// the current AWS account limits. The error message describes the limit exceeded. +// +// * ServiceFailure +// The request processing has failed because of an unknown error, exception +// or failure. +// func (c *IAM) RemoveRoleFromInstanceProfile(input *RemoveRoleFromInstanceProfileInput) (*RemoveRoleFromInstanceProfileOutput, error) { req, out := c.RemoveRoleFromInstanceProfileRequest(input) err := req.Send() @@ -6036,6 +8346,8 @@ const opRemoveUserFromGroup = "RemoveUserFromGroup" // value can be used to capture response data after the request's "Send" method // is called. // +// See RemoveUserFromGroup for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -6072,7 +8384,30 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Identity and Access Management's +// API operation RemoveUserFromGroup for usage and error information. +// +// Returned Error Codes: +// * NoSuchEntity +// The request was rejected because it referenced an entity that does not exist. +// The error message describes the entity. +// +// * LimitExceeded +// The request was rejected because it attempted to create resources beyond +// the current AWS account limits. The error message describes the limit exceeded. +// +// * ServiceFailure +// The request processing has failed because of an unknown error, exception +// or failure. +// func (c *IAM) RemoveUserFromGroup(input *RemoveUserFromGroupInput) (*RemoveUserFromGroupOutput, error) { req, out := c.RemoveUserFromGroupRequest(input) err := req.Send() @@ -6086,6 +8421,8 @@ const opResyncMFADevice = "ResyncMFADevice" // value can be used to capture response data after the request's "Send" method // is called. // +// See ResyncMFADevice for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -6122,12 +8459,39 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Identity and Access Management's +// API operation ResyncMFADevice for usage and error information. +// +// Returned Error Codes: +// * InvalidAuthenticationCode +// The request was rejected because the authentication code was not recognized. +// The error message describes the specific error. +// +// * NoSuchEntity +// The request was rejected because it referenced an entity that does not exist. +// The error message describes the entity. +// +// * LimitExceeded +// The request was rejected because it attempted to create resources beyond +// the current AWS account limits. The error message describes the limit exceeded. +// +// * ServiceFailure +// The request processing has failed because of an unknown error, exception +// or failure. +// func (c *IAM) ResyncMFADevice(input *ResyncMFADeviceInput) (*ResyncMFADeviceOutput, error) { req, out := c.ResyncMFADeviceRequest(input) err := req.Send() @@ -6141,6 +8505,8 @@ const opSetDefaultPolicyVersion = "SetDefaultPolicyVersion" // value can be used to capture response data after the request's "Send" method // is called. // +// See SetDefaultPolicyVersion for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -6177,6 +8543,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 +8555,31 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Identity and Access Management's +// API operation SetDefaultPolicyVersion for usage and error information. +// +// Returned Error Codes: +// * NoSuchEntity +// The request was rejected because it referenced an entity that does not exist. +// The error message describes the entity. +// +// * InvalidInput +// The request was rejected because an invalid or out-of-range value was supplied +// for an input parameter. +// +// * LimitExceeded +// The request was rejected because it attempted to create resources beyond +// the current AWS account limits. The error message describes the limit exceeded. +// +// * ServiceFailure +// The request processing has failed because of an unknown error, exception +// or failure. +// func (c *IAM) SetDefaultPolicyVersion(input *SetDefaultPolicyVersionInput) (*SetDefaultPolicyVersionOutput, error) { req, out := c.SetDefaultPolicyVersionRequest(input) err := req.Send() @@ -6200,6 +8593,8 @@ const opSimulateCustomPolicy = "SimulateCustomPolicy" // value can be used to capture response data after the request's "Send" method // is called. // +// See SimulateCustomPolicy for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -6240,6 +8635,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 +8654,23 @@ func (c *IAM) SimulateCustomPolicyRequest(input *SimulateCustomPolicyInput) (req // // If the output is long, you can use MaxItems and Marker parameters to paginate // the results. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Identity and Access Management's +// API operation SimulateCustomPolicy for usage and error information. +// +// Returned Error Codes: +// * InvalidInput +// The request was rejected because an invalid or out-of-range value was supplied +// for an input parameter. +// +// * PolicyEvaluation +// The request failed because a provided policy could not be successfully evaluated. +// An additional detail message indicates the source of the failure. +// func (c *IAM) SimulateCustomPolicy(input *SimulateCustomPolicyInput) (*SimulatePolicyResponse, error) { req, out := c.SimulateCustomPolicyRequest(input) err := req.Send() @@ -6295,6 +8709,8 @@ const opSimulatePrincipalPolicy = "SimulatePrincipalPolicy" // value can be used to capture response data after the request's "Send" method // is called. // +// See SimulatePrincipalPolicy for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -6335,6 +8751,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 +8780,27 @@ func (c *IAM) SimulatePrincipalPolicyRequest(input *SimulatePrincipalPolicyInput // // If the output is long, you can use the MaxItems and Marker parameters to // paginate the results. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Identity and Access Management's +// API operation SimulatePrincipalPolicy for usage and error information. +// +// Returned Error Codes: +// * NoSuchEntity +// The request was rejected because it referenced an entity that does not exist. +// The error message describes the entity. +// +// * InvalidInput +// The request was rejected because an invalid or out-of-range value was supplied +// for an input parameter. +// +// * PolicyEvaluation +// The request failed because a provided policy could not be successfully evaluated. +// An additional detail message indicates the source of the failure. +// func (c *IAM) SimulatePrincipalPolicy(input *SimulatePrincipalPolicyInput) (*SimulatePolicyResponse, error) { req, out := c.SimulatePrincipalPolicyRequest(input) err := req.Send() @@ -6400,6 +8839,8 @@ const opUpdateAccessKey = "UpdateAccessKey" // value can be used to capture response data after the request's "Send" method // is called. // +// See UpdateAccessKey for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -6436,6 +8877,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 +8891,27 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Identity and Access Management's +// API operation UpdateAccessKey for usage and error information. +// +// Returned Error Codes: +// * NoSuchEntity +// The request was rejected because it referenced an entity that does not exist. +// The error message describes the entity. +// +// * LimitExceeded +// The request was rejected because it attempted to create resources beyond +// the current AWS account limits. The error message describes the limit exceeded. +// +// * ServiceFailure +// The request processing has failed because of an unknown error, exception +// or failure. +// func (c *IAM) UpdateAccessKey(input *UpdateAccessKeyInput) (*UpdateAccessKeyOutput, error) { req, out := c.UpdateAccessKeyRequest(input) err := req.Send() @@ -6461,6 +8925,8 @@ const opUpdateAccountPasswordPolicy = "UpdateAccountPasswordPolicy" // value can be used to capture response data after the request's "Send" method // is called. // +// See UpdateAccountPasswordPolicy for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -6497,6 +8963,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 +8975,31 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Identity and Access Management's +// API operation UpdateAccountPasswordPolicy for usage and error information. +// +// Returned Error Codes: +// * NoSuchEntity +// The request was rejected because it referenced an entity that does not exist. +// The error message describes the entity. +// +// * MalformedPolicyDocument +// The request was rejected because the policy document was malformed. The error +// message describes the specific error. +// +// * LimitExceeded +// The request was rejected because it attempted to create resources beyond +// the current AWS account limits. The error message describes the limit exceeded. +// +// * ServiceFailure +// The request processing has failed because of an unknown error, exception +// or failure. +// func (c *IAM) UpdateAccountPasswordPolicy(input *UpdateAccountPasswordPolicyInput) (*UpdateAccountPasswordPolicyOutput, error) { req, out := c.UpdateAccountPasswordPolicyRequest(input) err := req.Send() @@ -6520,6 +9013,8 @@ const opUpdateAssumeRolePolicy = "UpdateAssumeRolePolicy" // value can be used to capture response data after the request's "Send" method // is called. // +// See UpdateAssumeRolePolicy for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -6556,10 +9051,37 @@ 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). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Identity and Access Management's +// API operation UpdateAssumeRolePolicy for usage and error information. +// +// Returned Error Codes: +// * NoSuchEntity +// The request was rejected because it referenced an entity that does not exist. +// The error message describes the entity. +// +// * MalformedPolicyDocument +// The request was rejected because the policy document was malformed. The error +// message describes the specific error. +// +// * LimitExceeded +// The request was rejected because it attempted to create resources beyond +// the current AWS account limits. The error message describes the limit exceeded. +// +// * ServiceFailure +// The request processing has failed because of an unknown error, exception +// or failure. +// func (c *IAM) UpdateAssumeRolePolicy(input *UpdateAssumeRolePolicyInput) (*UpdateAssumeRolePolicyOutput, error) { req, out := c.UpdateAssumeRolePolicyRequest(input) err := req.Send() @@ -6573,6 +9095,8 @@ const opUpdateGroup = "UpdateGroup" // value can be used to capture response data after the request's "Send" method // is called. // +// See UpdateGroup for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -6609,6 +9133,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 +9146,31 @@ 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). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Identity and Access Management's +// API operation UpdateGroup for usage and error information. +// +// Returned Error Codes: +// * NoSuchEntity +// The request was rejected because it referenced an entity that does not exist. +// The error message describes the entity. +// +// * EntityAlreadyExists +// The request was rejected because it attempted to create a resource that already +// exists. +// +// * LimitExceeded +// The request was rejected because it attempted to create resources beyond +// the current AWS account limits. The error message describes the limit exceeded. +// +// * ServiceFailure +// The request processing has failed because of an unknown error, exception +// or failure. +// func (c *IAM) UpdateGroup(input *UpdateGroupInput) (*UpdateGroupOutput, error) { req, out := c.UpdateGroupRequest(input) err := req.Send() @@ -6633,6 +9184,8 @@ const opUpdateLoginProfile = "UpdateLoginProfile" // value can be used to capture response data after the request's "Send" method // is called. // +// See UpdateLoginProfile for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -6669,11 +9222,44 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Identity and Access Management's +// API operation UpdateLoginProfile for usage and error information. +// +// Returned Error Codes: +// * EntityTemporarilyUnmodifiable +// The request was rejected because it referenced an entity that is temporarily +// unmodifiable, such as a user name that was deleted and then recreated. The +// error indicates that the request is likely to succeed if you try again after +// waiting several minutes. The error message describes the entity. +// +// * NoSuchEntity +// The request was rejected because it referenced an entity that does not exist. +// The error message describes the entity. +// +// * PasswordPolicyViolation +// The request was rejected because the provided password did not meet the requirements +// imposed by the account password policy. +// +// * LimitExceeded +// The request was rejected because it attempted to create resources beyond +// the current AWS account limits. The error message describes the limit exceeded. +// +// * ServiceFailure +// The request processing has failed because of an unknown error, exception +// or failure. +// func (c *IAM) UpdateLoginProfile(input *UpdateLoginProfileInput) (*UpdateLoginProfileOutput, error) { req, out := c.UpdateLoginProfileRequest(input) err := req.Send() @@ -6687,6 +9273,8 @@ const opUpdateOpenIDConnectProviderThumbprint = "UpdateOpenIDConnectProviderThum // value can be used to capture response data after the request's "Send" method // is called. // +// See UpdateOpenIDConnectProviderThumbprint for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -6723,6 +9311,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 +9328,27 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Identity and Access Management's +// API operation UpdateOpenIDConnectProviderThumbprint for usage and error information. +// +// Returned Error Codes: +// * InvalidInput +// The request was rejected because an invalid or out-of-range value was supplied +// for an input parameter. +// +// * NoSuchEntity +// The request was rejected because it referenced an entity that does not exist. +// The error message describes the entity. +// +// * ServiceFailure +// The request processing has failed because of an unknown error, exception +// or failure. +// func (c *IAM) UpdateOpenIDConnectProviderThumbprint(input *UpdateOpenIDConnectProviderThumbprintInput) (*UpdateOpenIDConnectProviderThumbprintOutput, error) { req, out := c.UpdateOpenIDConnectProviderThumbprintRequest(input) err := req.Send() @@ -6751,6 +9362,8 @@ const opUpdateSAMLProvider = "UpdateSAMLProvider" // value can be used to capture response data after the request's "Send" method // is called. // +// See UpdateSAMLProvider for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -6785,9 +9398,36 @@ 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). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Identity and Access Management's +// API operation UpdateSAMLProvider for usage and error information. +// +// Returned Error Codes: +// * NoSuchEntity +// The request was rejected because it referenced an entity that does not exist. +// The error message describes the entity. +// +// * InvalidInput +// The request was rejected because an invalid or out-of-range value was supplied +// for an input parameter. +// +// * LimitExceeded +// The request was rejected because it attempted to create resources beyond +// the current AWS account limits. The error message describes the limit exceeded. +// +// * ServiceFailure +// The request processing has failed because of an unknown error, exception +// or failure. +// func (c *IAM) UpdateSAMLProvider(input *UpdateSAMLProviderInput) (*UpdateSAMLProviderOutput, error) { req, out := c.UpdateSAMLProviderRequest(input) err := req.Send() @@ -6801,6 +9441,8 @@ const opUpdateSSHPublicKey = "UpdateSSHPublicKey" // value can be used to capture response data after the request's "Send" method // is called. // +// See UpdateSSHPublicKey for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -6837,6 +9479,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 +9491,19 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Identity and Access Management's +// API operation UpdateSSHPublicKey for usage and error information. +// +// Returned Error Codes: +// * NoSuchEntity +// The request was rejected because it referenced an entity that does not exist. +// The error message describes the entity. +// func (c *IAM) UpdateSSHPublicKey(input *UpdateSSHPublicKeyInput) (*UpdateSSHPublicKeyOutput, error) { req, out := c.UpdateSSHPublicKeyRequest(input) err := req.Send() @@ -6860,6 +9517,8 @@ const opUpdateServerCertificate = "UpdateServerCertificate" // value can be used to capture response data after the request's "Send" method // is called. // +// See UpdateServerCertificate for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -6896,6 +9555,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 +9576,31 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Identity and Access Management's +// API operation UpdateServerCertificate for usage and error information. +// +// Returned Error Codes: +// * NoSuchEntity +// The request was rejected because it referenced an entity that does not exist. +// The error message describes the entity. +// +// * EntityAlreadyExists +// The request was rejected because it attempted to create a resource that already +// exists. +// +// * LimitExceeded +// The request was rejected because it attempted to create resources beyond +// the current AWS account limits. The error message describes the limit exceeded. +// +// * ServiceFailure +// The request processing has failed because of an unknown error, exception +// or failure. +// func (c *IAM) UpdateServerCertificate(input *UpdateServerCertificateInput) (*UpdateServerCertificateOutput, error) { req, out := c.UpdateServerCertificateRequest(input) err := req.Send() @@ -6928,6 +9614,8 @@ const opUpdateSigningCertificate = "UpdateSigningCertificate" // value can be used to capture response data after the request's "Send" method // is called. // +// See UpdateSigningCertificate for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -6964,6 +9652,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 +9662,27 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Identity and Access Management's +// API operation UpdateSigningCertificate for usage and error information. +// +// Returned Error Codes: +// * NoSuchEntity +// The request was rejected because it referenced an entity that does not exist. +// The error message describes the entity. +// +// * LimitExceeded +// The request was rejected because it attempted to create resources beyond +// the current AWS account limits. The error message describes the limit exceeded. +// +// * ServiceFailure +// The request processing has failed because of an unknown error, exception +// or failure. +// func (c *IAM) UpdateSigningCertificate(input *UpdateSigningCertificateInput) (*UpdateSigningCertificateOutput, error) { req, out := c.UpdateSigningCertificateRequest(input) err := req.Send() @@ -6985,6 +9696,8 @@ const opUpdateUser = "UpdateUser" // value can be used to capture response data after the request's "Send" method // is called. // +// See UpdateUser for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -7021,6 +9734,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 +9748,37 @@ 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). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Identity and Access Management's +// API operation UpdateUser for usage and error information. +// +// Returned Error Codes: +// * NoSuchEntity +// The request was rejected because it referenced an entity that does not exist. +// The error message describes the entity. +// +// * LimitExceeded +// The request was rejected because it attempted to create resources beyond +// the current AWS account limits. The error message describes the limit exceeded. +// +// * EntityAlreadyExists +// The request was rejected because it attempted to create a resource that already +// exists. +// +// * EntityTemporarilyUnmodifiable +// The request was rejected because it referenced an entity that is temporarily +// unmodifiable, such as a user name that was deleted and then recreated. The +// error indicates that the request is likely to succeed if you try again after +// waiting several minutes. The error message describes the entity. +// +// * ServiceFailure +// The request processing has failed because of an unknown error, exception +// or failure. +// func (c *IAM) UpdateUser(input *UpdateUserInput) (*UpdateUserOutput, error) { req, out := c.UpdateUserRequest(input) err := req.Send() @@ -7046,6 +9792,8 @@ const opUploadSSHPublicKey = "UploadSSHPublicKey" // value can be used to capture response data after the request's "Send" method // is called. // +// See UploadSSHPublicKey for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -7080,6 +9828,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 +9837,35 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Identity and Access Management's +// API operation UploadSSHPublicKey for usage and error information. +// +// Returned Error Codes: +// * LimitExceeded +// The request was rejected because it attempted to create resources beyond +// the current AWS account limits. The error message describes the limit exceeded. +// +// * NoSuchEntity +// The request was rejected because it referenced an entity that does not exist. +// The error message describes the entity. +// +// * InvalidPublicKey +// The request was rejected because the public key is malformed or otherwise +// invalid. +// +// * DuplicateSSHPublicKey +// The request was rejected because the SSH public key is already associated +// with the specified IAM user. +// +// * UnrecognizedPublicKeyEncoding +// The request was rejected because the public key encoding format is unsupported +// or unrecognized. +// func (c *IAM) UploadSSHPublicKey(input *UploadSSHPublicKeyInput) (*UploadSSHPublicKeyOutput, error) { req, out := c.UploadSSHPublicKeyRequest(input) err := req.Send() @@ -7100,6 +9879,8 @@ const opUploadServerCertificate = "UploadServerCertificate" // value can be used to capture response data after the request's "Send" method // is called. // +// See UploadServerCertificate for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -7134,6 +9915,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 +9937,35 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Identity and Access Management's +// API operation UploadServerCertificate for usage and error information. +// +// Returned Error Codes: +// * LimitExceeded +// The request was rejected because it attempted to create resources beyond +// the current AWS account limits. The error message describes the limit exceeded. +// +// * EntityAlreadyExists +// The request was rejected because it attempted to create a resource that already +// exists. +// +// * MalformedCertificate +// The request was rejected because the certificate was malformed or expired. +// The error message describes the specific error. +// +// * KeyPairMismatch +// The request was rejected because the public key certificate and the private +// key do not match. +// +// * ServiceFailure +// The request processing has failed because of an unknown error, exception +// or failure. +// func (c *IAM) UploadServerCertificate(input *UploadServerCertificateInput) (*UploadServerCertificateOutput, error) { req, out := c.UploadServerCertificateRequest(input) err := req.Send() @@ -7167,6 +9979,8 @@ const opUploadSigningCertificate = "UploadSigningCertificate" // value can be used to capture response data after the request's "Send" method // is called. // +// See UploadSigningCertificate for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -7201,6 +10015,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 +10035,42 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Identity and Access Management's +// API operation UploadSigningCertificate for usage and error information. +// +// Returned Error Codes: +// * LimitExceeded +// The request was rejected because it attempted to create resources beyond +// the current AWS account limits. The error message describes the limit exceeded. +// +// * EntityAlreadyExists +// The request was rejected because it attempted to create a resource that already +// exists. +// +// * MalformedCertificate +// The request was rejected because the certificate was malformed or expired. +// The error message describes the specific error. +// +// * InvalidCertificate +// The request was rejected because the certificate is invalid. +// +// * DuplicateCertificate +// The request was rejected because the same certificate is associated with +// an IAM user in the account. +// +// * NoSuchEntity +// The request was rejected because it referenced an entity that does not exist. +// The error message describes the entity. +// +// * ServiceFailure +// The request processing has failed because of an unknown error, exception +// or failure. +// 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..7700a39a225 100644 --- a/service/inspector/api.go +++ b/service/inspector/api.go @@ -20,6 +20,8 @@ const opAddAttributesToFindings = "AddAttributesToFindings" // value can be used to capture response data after the request's "Send" method // is called. // +// See AddAttributesToFindings for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -54,8 +56,33 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Inspector's +// API operation AddAttributesToFindings for usage and error information. +// +// Returned Error Codes: +// * InternalException +// Internal server error. +// +// * InvalidInputException +// The request was rejected because an invalid or out-of-range value was supplied +// for an input parameter. +// +// * AccessDeniedException +// You do not have required permissions to access the requested resource. +// +// * NoSuchEntityException +// The request was rejected because it referenced an entity that does not exist. +// The error code describes the entity. +// func (c *Inspector) AddAttributesToFindings(input *AddAttributesToFindingsInput) (*AddAttributesToFindingsOutput, error) { req, out := c.AddAttributesToFindingsRequest(input) err := req.Send() @@ -69,6 +96,8 @@ const opCreateAssessmentTarget = "CreateAssessmentTarget" // value can be used to capture response data after the request's "Send" method // is called. // +// See CreateAssessmentTarget for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -103,10 +132,39 @@ 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). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Inspector's +// API operation CreateAssessmentTarget for usage and error information. +// +// Returned Error Codes: +// * InternalException +// Internal server error. +// +// * InvalidInputException +// The request was rejected because an invalid or out-of-range value was supplied +// for an input parameter. +// +// * LimitExceededException +// The request was rejected because it attempted to create resources beyond +// the current AWS account limits. The error code describes the limit exceeded. +// +// * AccessDeniedException +// You do not have required permissions to access the requested resource. +// +// * NoSuchEntityException +// The request was rejected because it referenced an entity that does not exist. +// The error code describes the entity. +// func (c *Inspector) CreateAssessmentTarget(input *CreateAssessmentTargetInput) (*CreateAssessmentTargetOutput, error) { req, out := c.CreateAssessmentTargetRequest(input) err := req.Send() @@ -120,6 +178,8 @@ const opCreateAssessmentTemplate = "CreateAssessmentTemplate" // value can be used to capture response data after the request's "Send" method // is called. // +// See CreateAssessmentTemplate for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -154,8 +214,37 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Inspector's +// API operation CreateAssessmentTemplate for usage and error information. +// +// Returned Error Codes: +// * InternalException +// Internal server error. +// +// * InvalidInputException +// The request was rejected because an invalid or out-of-range value was supplied +// for an input parameter. +// +// * LimitExceededException +// The request was rejected because it attempted to create resources beyond +// the current AWS account limits. The error code describes the limit exceeded. +// +// * AccessDeniedException +// You do not have required permissions to access the requested resource. +// +// * NoSuchEntityException +// The request was rejected because it referenced an entity that does not exist. +// The error code describes the entity. +// func (c *Inspector) CreateAssessmentTemplate(input *CreateAssessmentTemplateInput) (*CreateAssessmentTemplateOutput, error) { req, out := c.CreateAssessmentTemplateRequest(input) err := req.Send() @@ -169,6 +258,8 @@ const opCreateResourceGroup = "CreateResourceGroup" // value can be used to capture response data after the request's "Send" method // is called. // +// See CreateResourceGroup for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -203,10 +294,35 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Inspector's +// API operation CreateResourceGroup for usage and error information. +// +// Returned Error Codes: +// * InternalException +// Internal server error. +// +// * InvalidInputException +// The request was rejected because an invalid or out-of-range value was supplied +// for an input parameter. +// +// * LimitExceededException +// The request was rejected because it attempted to create resources beyond +// the current AWS account limits. The error code describes the limit exceeded. +// +// * AccessDeniedException +// You do not have required permissions to access the requested resource. +// func (c *Inspector) CreateResourceGroup(input *CreateResourceGroupInput) (*CreateResourceGroupOutput, error) { req, out := c.CreateResourceGroupRequest(input) err := req.Send() @@ -220,6 +336,8 @@ const opDeleteAssessmentRun = "DeleteAssessmentRun" // value can be used to capture response data after the request's "Send" method // is called. // +// See DeleteAssessmentRun for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -256,8 +374,37 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Inspector's +// API operation DeleteAssessmentRun for usage and error information. +// +// Returned Error Codes: +// * InternalException +// Internal server error. +// +// * InvalidInputException +// The request was rejected because an invalid or out-of-range value was supplied +// for an input parameter. +// +// * AssessmentRunInProgressException +// You cannot perform a specified action if an assessment run is currently in +// progress. +// +// * AccessDeniedException +// You do not have required permissions to access the requested resource. +// +// * NoSuchEntityException +// The request was rejected because it referenced an entity that does not exist. +// The error code describes the entity. +// func (c *Inspector) DeleteAssessmentRun(input *DeleteAssessmentRunInput) (*DeleteAssessmentRunOutput, error) { req, out := c.DeleteAssessmentRunRequest(input) err := req.Send() @@ -271,6 +418,8 @@ const opDeleteAssessmentTarget = "DeleteAssessmentTarget" // value can be used to capture response data after the request's "Send" method // is called. // +// See DeleteAssessmentTarget for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -307,8 +456,37 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Inspector's +// API operation DeleteAssessmentTarget for usage and error information. +// +// Returned Error Codes: +// * InternalException +// Internal server error. +// +// * InvalidInputException +// The request was rejected because an invalid or out-of-range value was supplied +// for an input parameter. +// +// * AssessmentRunInProgressException +// You cannot perform a specified action if an assessment run is currently in +// progress. +// +// * AccessDeniedException +// You do not have required permissions to access the requested resource. +// +// * NoSuchEntityException +// The request was rejected because it referenced an entity that does not exist. +// The error code describes the entity. +// func (c *Inspector) DeleteAssessmentTarget(input *DeleteAssessmentTargetInput) (*DeleteAssessmentTargetOutput, error) { req, out := c.DeleteAssessmentTargetRequest(input) err := req.Send() @@ -322,6 +500,8 @@ const opDeleteAssessmentTemplate = "DeleteAssessmentTemplate" // value can be used to capture response data after the request's "Send" method // is called. // +// See DeleteAssessmentTemplate for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -358,8 +538,37 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Inspector's +// API operation DeleteAssessmentTemplate for usage and error information. +// +// Returned Error Codes: +// * InternalException +// Internal server error. +// +// * InvalidInputException +// The request was rejected because an invalid or out-of-range value was supplied +// for an input parameter. +// +// * AssessmentRunInProgressException +// You cannot perform a specified action if an assessment run is currently in +// progress. +// +// * AccessDeniedException +// You do not have required permissions to access the requested resource. +// +// * NoSuchEntityException +// The request was rejected because it referenced an entity that does not exist. +// The error code describes the entity. +// func (c *Inspector) DeleteAssessmentTemplate(input *DeleteAssessmentTemplateInput) (*DeleteAssessmentTemplateOutput, error) { req, out := c.DeleteAssessmentTemplateRequest(input) err := req.Send() @@ -373,6 +582,8 @@ const opDescribeAssessmentRuns = "DescribeAssessmentRuns" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeAssessmentRuns for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -407,8 +618,26 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Inspector's +// API operation DescribeAssessmentRuns for usage and error information. +// +// Returned Error Codes: +// * InternalException +// Internal server error. +// +// * InvalidInputException +// The request was rejected because an invalid or out-of-range value was supplied +// for an input parameter. +// func (c *Inspector) DescribeAssessmentRuns(input *DescribeAssessmentRunsInput) (*DescribeAssessmentRunsOutput, error) { req, out := c.DescribeAssessmentRunsRequest(input) err := req.Send() @@ -422,6 +651,8 @@ const opDescribeAssessmentTargets = "DescribeAssessmentTargets" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeAssessmentTargets for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -456,8 +687,26 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Inspector's +// API operation DescribeAssessmentTargets for usage and error information. +// +// Returned Error Codes: +// * InternalException +// Internal server error. +// +// * InvalidInputException +// The request was rejected because an invalid or out-of-range value was supplied +// for an input parameter. +// func (c *Inspector) DescribeAssessmentTargets(input *DescribeAssessmentTargetsInput) (*DescribeAssessmentTargetsOutput, error) { req, out := c.DescribeAssessmentTargetsRequest(input) err := req.Send() @@ -471,6 +720,8 @@ const opDescribeAssessmentTemplates = "DescribeAssessmentTemplates" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeAssessmentTemplates for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -505,8 +756,26 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Inspector's +// API operation DescribeAssessmentTemplates for usage and error information. +// +// Returned Error Codes: +// * InternalException +// Internal server error. +// +// * InvalidInputException +// The request was rejected because an invalid or out-of-range value was supplied +// for an input parameter. +// func (c *Inspector) DescribeAssessmentTemplates(input *DescribeAssessmentTemplatesInput) (*DescribeAssessmentTemplatesOutput, error) { req, out := c.DescribeAssessmentTemplatesRequest(input) err := req.Send() @@ -520,6 +789,8 @@ const opDescribeCrossAccountAccessRole = "DescribeCrossAccountAccessRole" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeCrossAccountAccessRole for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -554,7 +825,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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Inspector's +// API operation DescribeCrossAccountAccessRole for usage and error information. +// +// Returned Error Codes: +// * InternalException +// Internal server error. +// func (c *Inspector) DescribeCrossAccountAccessRole(input *DescribeCrossAccountAccessRoleInput) (*DescribeCrossAccountAccessRoleOutput, error) { req, out := c.DescribeCrossAccountAccessRoleRequest(input) err := req.Send() @@ -568,6 +853,8 @@ const opDescribeFindings = "DescribeFindings" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeFindings for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -602,7 +889,25 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Inspector's +// API operation DescribeFindings for usage and error information. +// +// Returned Error Codes: +// * InternalException +// Internal server error. +// +// * InvalidInputException +// The request was rejected because an invalid or out-of-range value was supplied +// for an input parameter. +// func (c *Inspector) DescribeFindings(input *DescribeFindingsInput) (*DescribeFindingsOutput, error) { req, out := c.DescribeFindingsRequest(input) err := req.Send() @@ -616,6 +921,8 @@ const opDescribeResourceGroups = "DescribeResourceGroups" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeResourceGroups for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -650,8 +957,26 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Inspector's +// API operation DescribeResourceGroups for usage and error information. +// +// Returned Error Codes: +// * InternalException +// Internal server error. +// +// * InvalidInputException +// The request was rejected because an invalid or out-of-range value was supplied +// for an input parameter. +// func (c *Inspector) DescribeResourceGroups(input *DescribeResourceGroupsInput) (*DescribeResourceGroupsOutput, error) { req, out := c.DescribeResourceGroupsRequest(input) err := req.Send() @@ -665,6 +990,8 @@ const opDescribeRulesPackages = "DescribeRulesPackages" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeRulesPackages for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -699,8 +1026,26 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Inspector's +// API operation DescribeRulesPackages for usage and error information. +// +// Returned Error Codes: +// * InternalException +// Internal server error. +// +// * InvalidInputException +// The request was rejected because an invalid or out-of-range value was supplied +// for an input parameter. +// func (c *Inspector) DescribeRulesPackages(input *DescribeRulesPackagesInput) (*DescribeRulesPackagesOutput, error) { req, out := c.DescribeRulesPackagesRequest(input) err := req.Send() @@ -714,6 +1059,8 @@ const opGetTelemetryMetadata = "GetTelemetryMetadata" // value can be used to capture response data after the request's "Send" method // is called. // +// See GetTelemetryMetadata for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -748,8 +1095,33 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Inspector's +// API operation GetTelemetryMetadata for usage and error information. +// +// Returned Error Codes: +// * InternalException +// Internal server error. +// +// * InvalidInputException +// The request was rejected because an invalid or out-of-range value was supplied +// for an input parameter. +// +// * AccessDeniedException +// You do not have required permissions to access the requested resource. +// +// * NoSuchEntityException +// The request was rejected because it referenced an entity that does not exist. +// The error code describes the entity. +// func (c *Inspector) GetTelemetryMetadata(input *GetTelemetryMetadataInput) (*GetTelemetryMetadataOutput, error) { req, out := c.GetTelemetryMetadataRequest(input) err := req.Send() @@ -763,6 +1135,8 @@ const opListAssessmentRunAgents = "ListAssessmentRunAgents" // value can be used to capture response data after the request's "Send" method // is called. // +// See ListAssessmentRunAgents for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -797,8 +1171,33 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Inspector's +// API operation ListAssessmentRunAgents for usage and error information. +// +// Returned Error Codes: +// * InternalException +// Internal server error. +// +// * InvalidInputException +// The request was rejected because an invalid or out-of-range value was supplied +// for an input parameter. +// +// * AccessDeniedException +// You do not have required permissions to access the requested resource. +// +// * NoSuchEntityException +// The request was rejected because it referenced an entity that does not exist. +// The error code describes the entity. +// func (c *Inspector) ListAssessmentRunAgents(input *ListAssessmentRunAgentsInput) (*ListAssessmentRunAgentsOutput, error) { req, out := c.ListAssessmentRunAgentsRequest(input) err := req.Send() @@ -812,6 +1211,8 @@ const opListAssessmentRuns = "ListAssessmentRuns" // value can be used to capture response data after the request's "Send" method // is called. // +// See ListAssessmentRuns for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -846,8 +1247,33 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Inspector's +// API operation ListAssessmentRuns for usage and error information. +// +// Returned Error Codes: +// * InternalException +// Internal server error. +// +// * InvalidInputException +// The request was rejected because an invalid or out-of-range value was supplied +// for an input parameter. +// +// * AccessDeniedException +// You do not have required permissions to access the requested resource. +// +// * NoSuchEntityException +// The request was rejected because it referenced an entity that does not exist. +// The error code describes the entity. +// func (c *Inspector) ListAssessmentRuns(input *ListAssessmentRunsInput) (*ListAssessmentRunsOutput, error) { req, out := c.ListAssessmentRunsRequest(input) err := req.Send() @@ -861,6 +1287,8 @@ const opListAssessmentTargets = "ListAssessmentTargets" // value can be used to capture response data after the request's "Send" method // is called. // +// See ListAssessmentTargets for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -895,9 +1323,30 @@ 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). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Inspector's +// API operation ListAssessmentTargets for usage and error information. +// +// Returned Error Codes: +// * InternalException +// Internal server error. +// +// * InvalidInputException +// The request was rejected because an invalid or out-of-range value was supplied +// for an input parameter. +// +// * AccessDeniedException +// You do not have required permissions to access the requested resource. +// func (c *Inspector) ListAssessmentTargets(input *ListAssessmentTargetsInput) (*ListAssessmentTargetsOutput, error) { req, out := c.ListAssessmentTargetsRequest(input) err := req.Send() @@ -911,6 +1360,8 @@ const opListAssessmentTemplates = "ListAssessmentTemplates" // value can be used to capture response data after the request's "Send" method // is called. // +// See ListAssessmentTemplates for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -945,8 +1396,33 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Inspector's +// API operation ListAssessmentTemplates for usage and error information. +// +// Returned Error Codes: +// * InternalException +// Internal server error. +// +// * InvalidInputException +// The request was rejected because an invalid or out-of-range value was supplied +// for an input parameter. +// +// * AccessDeniedException +// You do not have required permissions to access the requested resource. +// +// * NoSuchEntityException +// The request was rejected because it referenced an entity that does not exist. +// The error code describes the entity. +// func (c *Inspector) ListAssessmentTemplates(input *ListAssessmentTemplatesInput) (*ListAssessmentTemplatesOutput, error) { req, out := c.ListAssessmentTemplatesRequest(input) err := req.Send() @@ -960,6 +1436,8 @@ const opListEventSubscriptions = "ListEventSubscriptions" // value can be used to capture response data after the request's "Send" method // is called. // +// See ListEventSubscriptions for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -994,9 +1472,34 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Inspector's +// API operation ListEventSubscriptions for usage and error information. +// +// Returned Error Codes: +// * InternalException +// Internal server error. +// +// * InvalidInputException +// The request was rejected because an invalid or out-of-range value was supplied +// for an input parameter. +// +// * AccessDeniedException +// You do not have required permissions to access the requested resource. +// +// * NoSuchEntityException +// The request was rejected because it referenced an entity that does not exist. +// The error code describes the entity. +// func (c *Inspector) ListEventSubscriptions(input *ListEventSubscriptionsInput) (*ListEventSubscriptionsOutput, error) { req, out := c.ListEventSubscriptionsRequest(input) err := req.Send() @@ -1010,6 +1513,8 @@ const opListFindings = "ListFindings" // value can be used to capture response data after the request's "Send" method // is called. // +// See ListFindings for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1044,8 +1549,33 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Inspector's +// API operation ListFindings for usage and error information. +// +// Returned Error Codes: +// * InternalException +// Internal server error. +// +// * InvalidInputException +// The request was rejected because an invalid or out-of-range value was supplied +// for an input parameter. +// +// * AccessDeniedException +// You do not have required permissions to access the requested resource. +// +// * NoSuchEntityException +// The request was rejected because it referenced an entity that does not exist. +// The error code describes the entity. +// func (c *Inspector) ListFindings(input *ListFindingsInput) (*ListFindingsOutput, error) { req, out := c.ListFindingsRequest(input) err := req.Send() @@ -1059,6 +1589,8 @@ const opListRulesPackages = "ListRulesPackages" // value can be used to capture response data after the request's "Send" method // is called. // +// See ListRulesPackages for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1093,7 +1625,28 @@ func (c *Inspector) ListRulesPackagesRequest(input *ListRulesPackagesInput) (req return } +// ListRulesPackages API operation for Amazon Inspector. +// // Lists all available Amazon Inspector rules packages. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Inspector's +// API operation ListRulesPackages for usage and error information. +// +// Returned Error Codes: +// * InternalException +// Internal server error. +// +// * InvalidInputException +// The request was rejected because an invalid or out-of-range value was supplied +// for an input parameter. +// +// * AccessDeniedException +// You do not have required permissions to access the requested resource. +// func (c *Inspector) ListRulesPackages(input *ListRulesPackagesInput) (*ListRulesPackagesOutput, error) { req, out := c.ListRulesPackagesRequest(input) err := req.Send() @@ -1107,6 +1660,8 @@ const opListTagsForResource = "ListTagsForResource" // value can be used to capture response data after the request's "Send" method // is called. // +// See ListTagsForResource for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1141,7 +1696,32 @@ func (c *Inspector) ListTagsForResourceRequest(input *ListTagsForResourceInput) return } +// ListTagsForResource API operation for Amazon Inspector. +// // Lists all tags associated with an assessment template. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Inspector's +// API operation ListTagsForResource for usage and error information. +// +// Returned Error Codes: +// * InternalException +// Internal server error. +// +// * InvalidInputException +// The request was rejected because an invalid or out-of-range value was supplied +// for an input parameter. +// +// * AccessDeniedException +// You do not have required permissions to access the requested resource. +// +// * NoSuchEntityException +// The request was rejected because it referenced an entity that does not exist. +// The error code describes the entity. +// func (c *Inspector) ListTagsForResource(input *ListTagsForResourceInput) (*ListTagsForResourceOutput, error) { req, out := c.ListTagsForResourceRequest(input) err := req.Send() @@ -1155,6 +1735,8 @@ const opPreviewAgents = "PreviewAgents" // value can be used to capture response data after the request's "Send" method // is called. // +// See PreviewAgents for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1189,8 +1771,37 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Inspector's +// API operation PreviewAgents for usage and error information. +// +// Returned Error Codes: +// * InternalException +// Internal server error. +// +// * InvalidInputException +// The request was rejected because an invalid or out-of-range value was supplied +// for an input parameter. +// +// * AccessDeniedException +// You do not have required permissions to access the requested resource. +// +// * NoSuchEntityException +// The request was rejected because it referenced an entity that does not exist. +// The error code describes the entity. +// +// * InvalidCrossAccountRoleException +// Amazon Inspector cannot assume the cross-account role that it needs to list +// your EC2 instances during the assessment run. +// func (c *Inspector) PreviewAgents(input *PreviewAgentsInput) (*PreviewAgentsOutput, error) { req, out := c.PreviewAgentsRequest(input) err := req.Send() @@ -1204,6 +1815,8 @@ const opRegisterCrossAccountAccessRole = "RegisterCrossAccountAccessRole" // value can be used to capture response data after the request's "Send" method // is called. // +// See RegisterCrossAccountAccessRole for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1240,8 +1853,33 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Inspector's +// API operation RegisterCrossAccountAccessRole for usage and error information. +// +// Returned Error Codes: +// * InternalException +// Internal server error. +// +// * InvalidInputException +// The request was rejected because an invalid or out-of-range value was supplied +// for an input parameter. +// +// * AccessDeniedException +// You do not have required permissions to access the requested resource. +// +// * InvalidCrossAccountRoleException +// Amazon Inspector cannot assume the cross-account role that it needs to list +// your EC2 instances during the assessment run. +// func (c *Inspector) RegisterCrossAccountAccessRole(input *RegisterCrossAccountAccessRoleInput) (*RegisterCrossAccountAccessRoleOutput, error) { req, out := c.RegisterCrossAccountAccessRoleRequest(input) err := req.Send() @@ -1255,6 +1893,8 @@ const opRemoveAttributesFromFindings = "RemoveAttributesFromFindings" // value can be used to capture response data after the request's "Send" method // is called. // +// See RemoveAttributesFromFindings for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1289,9 +1929,34 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Inspector's +// API operation RemoveAttributesFromFindings for usage and error information. +// +// Returned Error Codes: +// * InternalException +// Internal server error. +// +// * InvalidInputException +// The request was rejected because an invalid or out-of-range value was supplied +// for an input parameter. +// +// * AccessDeniedException +// You do not have required permissions to access the requested resource. +// +// * NoSuchEntityException +// The request was rejected because it referenced an entity that does not exist. +// The error code describes the entity. +// func (c *Inspector) RemoveAttributesFromFindings(input *RemoveAttributesFromFindingsInput) (*RemoveAttributesFromFindingsOutput, error) { req, out := c.RemoveAttributesFromFindingsRequest(input) err := req.Send() @@ -1305,6 +1970,8 @@ const opSetTagsForResource = "SetTagsForResource" // value can be used to capture response data after the request's "Send" method // is called. // +// See SetTagsForResource for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1341,8 +2008,33 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Inspector's +// API operation SetTagsForResource for usage and error information. +// +// Returned Error Codes: +// * InternalException +// Internal server error. +// +// * InvalidInputException +// The request was rejected because an invalid or out-of-range value was supplied +// for an input parameter. +// +// * AccessDeniedException +// You do not have required permissions to access the requested resource. +// +// * NoSuchEntityException +// The request was rejected because it referenced an entity that does not exist. +// The error code describes the entity. +// func (c *Inspector) SetTagsForResource(input *SetTagsForResourceInput) (*SetTagsForResourceOutput, error) { req, out := c.SetTagsForResourceRequest(input) err := req.Send() @@ -1356,6 +2048,8 @@ const opStartAssessmentRun = "StartAssessmentRun" // value can be used to capture response data after the request's "Send" method // is called. // +// See StartAssessmentRun for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1390,9 +2084,46 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Inspector's +// API operation StartAssessmentRun for usage and error information. +// +// Returned Error Codes: +// * InternalException +// Internal server error. +// +// * InvalidInputException +// The request was rejected because an invalid or out-of-range value was supplied +// for an input parameter. +// +// * LimitExceededException +// The request was rejected because it attempted to create resources beyond +// the current AWS account limits. The error code describes the limit exceeded. +// +// * AccessDeniedException +// You do not have required permissions to access the requested resource. +// +// * NoSuchEntityException +// The request was rejected because it referenced an entity that does not exist. +// The error code describes the entity. +// +// * InvalidCrossAccountRoleException +// Amazon Inspector cannot assume the cross-account role that it needs to list +// your EC2 instances during the assessment run. +// +// * AgentsAlreadyRunningAssessmentException +// You started an assessment run, but one of the instances is already participating +// in another assessment run. +// func (c *Inspector) StartAssessmentRun(input *StartAssessmentRunInput) (*StartAssessmentRunOutput, error) { req, out := c.StartAssessmentRunRequest(input) err := req.Send() @@ -1406,6 +2137,8 @@ const opStopAssessmentRun = "StopAssessmentRun" // value can be used to capture response data after the request's "Send" method // is called. // +// See StopAssessmentRun for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1442,7 +2175,32 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Inspector's +// API operation StopAssessmentRun for usage and error information. +// +// Returned Error Codes: +// * InternalException +// Internal server error. +// +// * InvalidInputException +// The request was rejected because an invalid or out-of-range value was supplied +// for an input parameter. +// +// * AccessDeniedException +// You do not have required permissions to access the requested resource. +// +// * NoSuchEntityException +// The request was rejected because it referenced an entity that does not exist. +// The error code describes the entity. +// func (c *Inspector) StopAssessmentRun(input *StopAssessmentRunInput) (*StopAssessmentRunOutput, error) { req, out := c.StopAssessmentRunRequest(input) err := req.Send() @@ -1456,6 +2214,8 @@ const opSubscribeToEvent = "SubscribeToEvent" // value can be used to capture response data after the request's "Send" method // is called. // +// See SubscribeToEvent for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1492,8 +2252,37 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Inspector's +// API operation SubscribeToEvent for usage and error information. +// +// Returned Error Codes: +// * InternalException +// Internal server error. +// +// * InvalidInputException +// The request was rejected because an invalid or out-of-range value was supplied +// for an input parameter. +// +// * LimitExceededException +// The request was rejected because it attempted to create resources beyond +// the current AWS account limits. The error code describes the limit exceeded. +// +// * AccessDeniedException +// You do not have required permissions to access the requested resource. +// +// * NoSuchEntityException +// The request was rejected because it referenced an entity that does not exist. +// The error code describes the entity. +// func (c *Inspector) SubscribeToEvent(input *SubscribeToEventInput) (*SubscribeToEventOutput, error) { req, out := c.SubscribeToEventRequest(input) err := req.Send() @@ -1507,6 +2296,8 @@ const opUnsubscribeFromEvent = "UnsubscribeFromEvent" // value can be used to capture response data after the request's "Send" method // is called. // +// See UnsubscribeFromEvent for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1543,8 +2334,33 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Inspector's +// API operation UnsubscribeFromEvent for usage and error information. +// +// Returned Error Codes: +// * InternalException +// Internal server error. +// +// * InvalidInputException +// The request was rejected because an invalid or out-of-range value was supplied +// for an input parameter. +// +// * AccessDeniedException +// You do not have required permissions to access the requested resource. +// +// * NoSuchEntityException +// The request was rejected because it referenced an entity that does not exist. +// The error code describes the entity. +// func (c *Inspector) UnsubscribeFromEvent(input *UnsubscribeFromEventInput) (*UnsubscribeFromEventOutput, error) { req, out := c.UnsubscribeFromEventRequest(input) err := req.Send() @@ -1558,6 +2374,8 @@ const opUpdateAssessmentTarget = "UpdateAssessmentTarget" // value can be used to capture response data after the request's "Send" method // is called. // +// See UpdateAssessmentTarget for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1594,8 +2412,33 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Inspector's +// API operation UpdateAssessmentTarget for usage and error information. +// +// Returned Error Codes: +// * InternalException +// Internal server error. +// +// * InvalidInputException +// The request was rejected because an invalid or out-of-range value was supplied +// for an input parameter. +// +// * AccessDeniedException +// You do not have required permissions to access the requested resource. +// +// * NoSuchEntityException +// The request was rejected because it referenced an entity that does not exist. +// The error code describes the entity. +// 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..889c7a786a2 100644 --- a/service/iot/api.go +++ b/service/iot/api.go @@ -20,6 +20,8 @@ const opAcceptCertificateTransfer = "AcceptCertificateTransfer" // value can be used to capture response data after the request's "Send" method // is called. // +// See AcceptCertificateTransfer for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -56,11 +58,44 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS IoT's +// API operation AcceptCertificateTransfer for usage and error information. +// +// Returned Error Codes: +// * ResourceNotFoundException +// The specified resource does not exist. +// +// * TransferAlreadyCompletedException +// You can't revert the certificate transfer because the transfer is already +// complete. +// +// * InvalidRequestException +// The request is not valid. +// +// * ThrottlingException +// The rate exceeds the limit. +// +// * UnauthorizedException +// You are not authorized to perform this operation. +// +// * ServiceUnavailableException +// The service is temporarily unavailable. +// +// * InternalFailureException +// An unexpected error has occurred. +// func (c *IoT) AcceptCertificateTransfer(input *AcceptCertificateTransferInput) (*AcceptCertificateTransferOutput, error) { req, out := c.AcceptCertificateTransferRequest(input) err := req.Send() @@ -74,6 +109,8 @@ const opAttachPrincipalPolicy = "AttachPrincipalPolicy" // value can be used to capture response data after the request's "Send" method // is called. // +// See AttachPrincipalPolicy for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -110,8 +147,40 @@ 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). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS IoT's +// API operation AttachPrincipalPolicy for usage and error information. +// +// Returned Error Codes: +// * ResourceNotFoundException +// The specified resource does not exist. +// +// * InvalidRequestException +// The request is not valid. +// +// * ThrottlingException +// The rate exceeds the limit. +// +// * UnauthorizedException +// You are not authorized to perform this operation. +// +// * ServiceUnavailableException +// The service is temporarily unavailable. +// +// * InternalFailureException +// An unexpected error has occurred. +// +// * LimitExceededException +// The number of attached entities exceeds the limit. +// func (c *IoT) AttachPrincipalPolicy(input *AttachPrincipalPolicyInput) (*AttachPrincipalPolicyOutput, error) { req, out := c.AttachPrincipalPolicyRequest(input) err := req.Send() @@ -125,6 +194,8 @@ const opAttachThingPrincipal = "AttachThingPrincipal" // value can be used to capture response data after the request's "Send" method // is called. // +// See AttachThingPrincipal for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -159,7 +230,36 @@ func (c *IoT) AttachThingPrincipalRequest(input *AttachThingPrincipalInput) (req return } +// AttachThingPrincipal API operation for AWS IoT. +// // Attaches the specified principal to the specified thing. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS IoT's +// API operation AttachThingPrincipal for usage and error information. +// +// Returned Error Codes: +// * ResourceNotFoundException +// The specified resource does not exist. +// +// * InvalidRequestException +// The request is not valid. +// +// * ThrottlingException +// The rate exceeds the limit. +// +// * UnauthorizedException +// You are not authorized to perform this operation. +// +// * ServiceUnavailableException +// The service is temporarily unavailable. +// +// * InternalFailureException +// An unexpected error has occurred. +// func (c *IoT) AttachThingPrincipal(input *AttachThingPrincipalInput) (*AttachThingPrincipalOutput, error) { req, out := c.AttachThingPrincipalRequest(input) err := req.Send() @@ -173,6 +273,8 @@ const opCancelCertificateTransfer = "CancelCertificateTransfer" // value can be used to capture response data after the request's "Send" method // is called. // +// See CancelCertificateTransfer for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -209,6 +311,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 +323,37 @@ func (c *IoT) CancelCertificateTransferRequest(input *CancelCertificateTransferI // // After a certificate transfer is cancelled, the status of the certificate // changes from PENDING_TRANSFER to INACTIVE. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS IoT's +// API operation CancelCertificateTransfer for usage and error information. +// +// Returned Error Codes: +// * ResourceNotFoundException +// The specified resource does not exist. +// +// * TransferAlreadyCompletedException +// You can't revert the certificate transfer because the transfer is already +// complete. +// +// * InvalidRequestException +// The request is not valid. +// +// * ThrottlingException +// The rate exceeds the limit. +// +// * UnauthorizedException +// You are not authorized to perform this operation. +// +// * ServiceUnavailableException +// The service is temporarily unavailable. +// +// * InternalFailureException +// An unexpected error has occurred. +// func (c *IoT) CancelCertificateTransfer(input *CancelCertificateTransferInput) (*CancelCertificateTransferOutput, error) { req, out := c.CancelCertificateTransferRequest(input) err := req.Send() @@ -232,6 +367,8 @@ const opCreateCertificateFromCsr = "CreateCertificateFromCsr" // value can be used to capture response data after the request's "Send" method // is called. // +// See CreateCertificateFromCsr for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -266,6 +403,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 +443,30 @@ 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" +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS IoT's +// API operation CreateCertificateFromCsr for usage and error information. +// +// Returned Error Codes: +// * InvalidRequestException +// The request is not valid. +// +// * ThrottlingException +// The rate exceeds the limit. +// +// * UnauthorizedException +// You are not authorized to perform this operation. +// +// * ServiceUnavailableException +// The service is temporarily unavailable. +// +// * InternalFailureException +// An unexpected error has occurred. +// func (c *IoT) CreateCertificateFromCsr(input *CreateCertificateFromCsrInput) (*CreateCertificateFromCsrOutput, error) { req, out := c.CreateCertificateFromCsrRequest(input) err := req.Send() @@ -317,6 +480,8 @@ const opCreateKeysAndCertificate = "CreateKeysAndCertificate" // value can be used to capture response data after the request's "Send" method // is called. // +// See CreateKeysAndCertificate for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -351,11 +516,37 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS IoT's +// API operation CreateKeysAndCertificate for usage and error information. +// +// Returned Error Codes: +// * InvalidRequestException +// The request is not valid. +// +// * ThrottlingException +// The rate exceeds the limit. +// +// * UnauthorizedException +// You are not authorized to perform this operation. +// +// * ServiceUnavailableException +// The service is temporarily unavailable. +// +// * InternalFailureException +// An unexpected error has occurred. +// func (c *IoT) CreateKeysAndCertificate(input *CreateKeysAndCertificateInput) (*CreateKeysAndCertificateOutput, error) { req, out := c.CreateKeysAndCertificateRequest(input) err := req.Send() @@ -369,6 +560,8 @@ const opCreatePolicy = "CreatePolicy" // value can be used to capture response data after the request's "Send" method // is called. // +// See CreatePolicy for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -403,11 +596,43 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS IoT's +// API operation CreatePolicy for usage and error information. +// +// Returned Error Codes: +// * ResourceAlreadyExistsException +// The resource already exists. +// +// * MalformedPolicyException +// The policy documentation is not valid. +// +// * InvalidRequestException +// The request is not valid. +// +// * ThrottlingException +// The rate exceeds the limit. +// +// * UnauthorizedException +// You are not authorized to perform this operation. +// +// * ServiceUnavailableException +// The service is temporarily unavailable. +// +// * InternalFailureException +// An unexpected error has occurred. +// func (c *IoT) CreatePolicy(input *CreatePolicyInput) (*CreatePolicyOutput, error) { req, out := c.CreatePolicyRequest(input) err := req.Send() @@ -421,6 +646,8 @@ const opCreatePolicyVersion = "CreatePolicyVersion" // value can be used to capture response data after the request's "Send" method // is called. // +// See CreatePolicyVersion for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -455,6 +682,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 +692,39 @@ 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). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS IoT's +// API operation CreatePolicyVersion for usage and error information. +// +// Returned Error Codes: +// * ResourceNotFoundException +// The specified resource does not exist. +// +// * MalformedPolicyException +// The policy documentation is not valid. +// +// * VersionsLimitExceededException +// The number of policy versions exceeds the limit. +// +// * InvalidRequestException +// The request is not valid. +// +// * ThrottlingException +// The rate exceeds the limit. +// +// * UnauthorizedException +// You are not authorized to perform this operation. +// +// * ServiceUnavailableException +// The service is temporarily unavailable. +// +// * InternalFailureException +// An unexpected error has occurred. +// func (c *IoT) CreatePolicyVersion(input *CreatePolicyVersionInput) (*CreatePolicyVersionOutput, error) { req, out := c.CreatePolicyVersionRequest(input) err := req.Send() @@ -476,6 +738,8 @@ const opCreateThing = "CreateThing" // value can be used to capture response data after the request's "Send" method // is called. // +// See CreateThing for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -510,7 +774,39 @@ func (c *IoT) CreateThingRequest(input *CreateThingInput) (req *request.Request, return } +// CreateThing API operation for AWS IoT. +// // Creates a thing record in the thing registry. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS IoT's +// API operation CreateThing for usage and error information. +// +// Returned Error Codes: +// * InvalidRequestException +// The request is not valid. +// +// * ThrottlingException +// The rate exceeds the limit. +// +// * UnauthorizedException +// You are not authorized to perform this operation. +// +// * ServiceUnavailableException +// The service is temporarily unavailable. +// +// * InternalFailureException +// An unexpected error has occurred. +// +// * ResourceAlreadyExistsException +// The resource already exists. +// +// * ResourceNotFoundException +// The specified resource does not exist. +// func (c *IoT) CreateThing(input *CreateThingInput) (*CreateThingOutput, error) { req, out := c.CreateThingRequest(input) err := req.Send() @@ -524,6 +820,8 @@ const opCreateThingType = "CreateThingType" // value can be used to capture response data after the request's "Send" method // is called. // +// See CreateThingType for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -558,7 +856,36 @@ func (c *IoT) CreateThingTypeRequest(input *CreateThingTypeInput) (req *request. return } +// CreateThingType API operation for AWS IoT. +// // Creates a new thing type. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS IoT's +// API operation CreateThingType for usage and error information. +// +// Returned Error Codes: +// * InvalidRequestException +// The request is not valid. +// +// * ThrottlingException +// The rate exceeds the limit. +// +// * UnauthorizedException +// You are not authorized to perform this operation. +// +// * ServiceUnavailableException +// The service is temporarily unavailable. +// +// * InternalFailureException +// An unexpected error has occurred. +// +// * ResourceAlreadyExistsException +// The resource already exists. +// func (c *IoT) CreateThingType(input *CreateThingTypeInput) (*CreateThingTypeOutput, error) { req, out := c.CreateThingTypeRequest(input) err := req.Send() @@ -572,6 +899,8 @@ const opCreateTopicRule = "CreateTopicRule" // value can be used to capture response data after the request's "Send" method // is called. // +// See CreateTopicRule for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -608,9 +937,35 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS IoT's +// API operation CreateTopicRule for usage and error information. +// +// Returned Error Codes: +// * SqlParseException +// The Rule-SQL expression can't be parsed correctly. +// +// * InternalException +// An unexpected error has occurred. +// +// * InvalidRequestException +// The request is not valid. +// +// * ResourceAlreadyExistsException +// The resource already exists. +// +// * ServiceUnavailableException +// The service is temporarily unavailable. +// func (c *IoT) CreateTopicRule(input *CreateTopicRuleInput) (*CreateTopicRuleOutput, error) { req, out := c.CreateTopicRuleRequest(input) err := req.Send() @@ -624,6 +979,8 @@ const opDeleteCACertificate = "DeleteCACertificate" // value can be used to capture response data after the request's "Send" method // is called. // +// See DeleteCACertificate for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -658,7 +1015,39 @@ func (c *IoT) DeleteCACertificateRequest(input *DeleteCACertificateInput) (req * return } +// DeleteCACertificate API operation for AWS IoT. +// // Deletes a registered CA certificate. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS IoT's +// API operation DeleteCACertificate for usage and error information. +// +// Returned Error Codes: +// * InvalidRequestException +// The request is not valid. +// +// * CertificateStateException +// The certificate operation is not allowed. +// +// * ThrottlingException +// The rate exceeds the limit. +// +// * UnauthorizedException +// You are not authorized to perform this operation. +// +// * ServiceUnavailableException +// The service is temporarily unavailable. +// +// * InternalFailureException +// An unexpected error has occurred. +// +// * ResourceNotFoundException +// The specified resource does not exist. +// func (c *IoT) DeleteCACertificate(input *DeleteCACertificateInput) (*DeleteCACertificateOutput, error) { req, out := c.DeleteCACertificateRequest(input) err := req.Send() @@ -672,6 +1061,8 @@ const opDeleteCertificate = "DeleteCertificate" // value can be used to capture response data after the request's "Send" method // is called. // +// See DeleteCertificate for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -708,12 +1099,47 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS IoT's +// API operation DeleteCertificate for usage and error information. +// +// Returned Error Codes: +// * CertificateStateException +// The certificate operation is not allowed. +// +// * DeleteConflictException +// You can't delete the resource because it is attached to one or more resources. +// +// * InvalidRequestException +// The request is not valid. +// +// * ThrottlingException +// The rate exceeds the limit. +// +// * UnauthorizedException +// You are not authorized to perform this operation. +// +// * ServiceUnavailableException +// The service is temporarily unavailable. +// +// * InternalFailureException +// An unexpected error has occurred. +// +// * ResourceNotFoundException +// The specified resource does not exist. +// func (c *IoT) DeleteCertificate(input *DeleteCertificateInput) (*DeleteCertificateOutput, error) { req, out := c.DeleteCertificateRequest(input) err := req.Send() @@ -727,6 +1153,8 @@ const opDeletePolicy = "DeletePolicy" // value can be used to capture response data after the request's "Send" method // is called. // +// See DeletePolicy for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -763,6 +1191,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 +1204,36 @@ func (c *IoT) DeletePolicyRequest(input *DeletePolicyInput) (req *request.Reques // // When a policy is deleted using DeletePolicy, its default version is deleted // with it. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS IoT's +// API operation DeletePolicy for usage and error information. +// +// Returned Error Codes: +// * DeleteConflictException +// You can't delete the resource because it is attached to one or more resources. +// +// * ResourceNotFoundException +// The specified resource does not exist. +// +// * InvalidRequestException +// The request is not valid. +// +// * ThrottlingException +// The rate exceeds the limit. +// +// * UnauthorizedException +// You are not authorized to perform this operation. +// +// * ServiceUnavailableException +// The service is temporarily unavailable. +// +// * InternalFailureException +// An unexpected error has occurred. +// func (c *IoT) DeletePolicy(input *DeletePolicyInput) (*DeletePolicyOutput, error) { req, out := c.DeletePolicyRequest(input) err := req.Send() @@ -787,6 +1247,8 @@ const opDeletePolicyVersion = "DeletePolicyVersion" // value can be used to capture response data after the request's "Send" method // is called. // +// See DeletePolicyVersion for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -823,10 +1285,42 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS IoT's +// API operation DeletePolicyVersion for usage and error information. +// +// Returned Error Codes: +// * DeleteConflictException +// You can't delete the resource because it is attached to one or more resources. +// +// * ResourceNotFoundException +// The specified resource does not exist. +// +// * InvalidRequestException +// The request is not valid. +// +// * ThrottlingException +// The rate exceeds the limit. +// +// * UnauthorizedException +// You are not authorized to perform this operation. +// +// * ServiceUnavailableException +// The service is temporarily unavailable. +// +// * InternalFailureException +// An unexpected error has occurred. +// func (c *IoT) DeletePolicyVersion(input *DeletePolicyVersionInput) (*DeletePolicyVersionOutput, error) { req, out := c.DeletePolicyVersionRequest(input) err := req.Send() @@ -840,6 +1334,8 @@ const opDeleteRegistrationCode = "DeleteRegistrationCode" // value can be used to capture response data after the request's "Send" method // is called. // +// See DeleteRegistrationCode for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -874,7 +1370,33 @@ func (c *IoT) DeleteRegistrationCodeRequest(input *DeleteRegistrationCodeInput) return } +// DeleteRegistrationCode API operation for AWS IoT. +// // Deletes a CA certificate registration code. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS IoT's +// API operation DeleteRegistrationCode for usage and error information. +// +// Returned Error Codes: +// * ThrottlingException +// The rate exceeds the limit. +// +// * ResourceNotFoundException +// The specified resource does not exist. +// +// * UnauthorizedException +// You are not authorized to perform this operation. +// +// * ServiceUnavailableException +// The service is temporarily unavailable. +// +// * InternalFailureException +// An unexpected error has occurred. +// func (c *IoT) DeleteRegistrationCode(input *DeleteRegistrationCodeInput) (*DeleteRegistrationCodeOutput, error) { req, out := c.DeleteRegistrationCodeRequest(input) err := req.Send() @@ -888,6 +1410,8 @@ const opDeleteThing = "DeleteThing" // value can be used to capture response data after the request's "Send" method // is called. // +// See DeleteThing for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -922,7 +1446,40 @@ func (c *IoT) DeleteThingRequest(input *DeleteThingInput) (req *request.Request, return } +// DeleteThing API operation for AWS IoT. +// // Deletes the specified thing. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS IoT's +// API operation DeleteThing for usage and error information. +// +// Returned Error Codes: +// * ResourceNotFoundException +// The specified resource does not exist. +// +// * VersionConflictException +// An exception thrown when the version of a thing passed to a command is different +// than the version specified with the --version parameter. +// +// * InvalidRequestException +// The request is not valid. +// +// * ThrottlingException +// The rate exceeds the limit. +// +// * UnauthorizedException +// You are not authorized to perform this operation. +// +// * ServiceUnavailableException +// The service is temporarily unavailable. +// +// * InternalFailureException +// An unexpected error has occurred. +// func (c *IoT) DeleteThing(input *DeleteThingInput) (*DeleteThingOutput, error) { req, out := c.DeleteThingRequest(input) err := req.Send() @@ -936,6 +1493,8 @@ const opDeleteThingType = "DeleteThingType" // value can be used to capture response data after the request's "Send" method // is called. // +// See DeleteThingType for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -970,11 +1529,40 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS IoT's +// API operation DeleteThingType for usage and error information. +// +// Returned Error Codes: +// * ResourceNotFoundException +// The specified resource does not exist. +// +// * InvalidRequestException +// The request is not valid. +// +// * ThrottlingException +// The rate exceeds the limit. +// +// * UnauthorizedException +// You are not authorized to perform this operation. +// +// * ServiceUnavailableException +// The service is temporarily unavailable. +// +// * InternalFailureException +// An unexpected error has occurred. +// func (c *IoT) DeleteThingType(input *DeleteThingTypeInput) (*DeleteThingTypeOutput, error) { req, out := c.DeleteThingTypeRequest(input) err := req.Send() @@ -988,6 +1576,8 @@ const opDeleteTopicRule = "DeleteTopicRule" // value can be used to capture response data after the request's "Send" method // is called. // +// See DeleteTopicRule for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1024,7 +1614,30 @@ func (c *IoT) DeleteTopicRuleRequest(input *DeleteTopicRuleInput) (req *request. return } +// DeleteTopicRule API operation for AWS IoT. +// // Deletes the specified rule. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS IoT's +// API operation DeleteTopicRule for usage and error information. +// +// Returned Error Codes: +// * InternalException +// An unexpected error has occurred. +// +// * InvalidRequestException +// The request is not valid. +// +// * ServiceUnavailableException +// The service is temporarily unavailable. +// +// * UnauthorizedException +// You are not authorized to perform this operation. +// func (c *IoT) DeleteTopicRule(input *DeleteTopicRuleInput) (*DeleteTopicRuleOutput, error) { req, out := c.DeleteTopicRuleRequest(input) err := req.Send() @@ -1038,6 +1651,8 @@ const opDeprecateThingType = "DeprecateThingType" // value can be used to capture response data after the request's "Send" method // is called. // +// See DeprecateThingType for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1072,8 +1687,37 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS IoT's +// API operation DeprecateThingType for usage and error information. +// +// Returned Error Codes: +// * ResourceNotFoundException +// The specified resource does not exist. +// +// * InvalidRequestException +// The request is not valid. +// +// * ThrottlingException +// The rate exceeds the limit. +// +// * UnauthorizedException +// You are not authorized to perform this operation. +// +// * ServiceUnavailableException +// The service is temporarily unavailable. +// +// * InternalFailureException +// An unexpected error has occurred. +// func (c *IoT) DeprecateThingType(input *DeprecateThingTypeInput) (*DeprecateThingTypeOutput, error) { req, out := c.DeprecateThingTypeRequest(input) err := req.Send() @@ -1087,6 +1731,8 @@ const opDescribeCACertificate = "DescribeCACertificate" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeCACertificate for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1121,7 +1767,36 @@ func (c *IoT) DescribeCACertificateRequest(input *DescribeCACertificateInput) (r return } +// DescribeCACertificate API operation for AWS IoT. +// // Describes a registered CA certificate. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS IoT's +// API operation DescribeCACertificate for usage and error information. +// +// Returned Error Codes: +// * InvalidRequestException +// The request is not valid. +// +// * ThrottlingException +// The rate exceeds the limit. +// +// * UnauthorizedException +// You are not authorized to perform this operation. +// +// * ServiceUnavailableException +// The service is temporarily unavailable. +// +// * InternalFailureException +// An unexpected error has occurred. +// +// * ResourceNotFoundException +// The specified resource does not exist. +// func (c *IoT) DescribeCACertificate(input *DescribeCACertificateInput) (*DescribeCACertificateOutput, error) { req, out := c.DescribeCACertificateRequest(input) err := req.Send() @@ -1135,6 +1810,8 @@ const opDescribeCertificate = "DescribeCertificate" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeCertificate for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1169,7 +1846,36 @@ func (c *IoT) DescribeCertificateRequest(input *DescribeCertificateInput) (req * return } +// DescribeCertificate API operation for AWS IoT. +// // Gets information about the specified certificate. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS IoT's +// API operation DescribeCertificate for usage and error information. +// +// Returned Error Codes: +// * InvalidRequestException +// The request is not valid. +// +// * ThrottlingException +// The rate exceeds the limit. +// +// * UnauthorizedException +// You are not authorized to perform this operation. +// +// * ServiceUnavailableException +// The service is temporarily unavailable. +// +// * InternalFailureException +// An unexpected error has occurred. +// +// * ResourceNotFoundException +// The specified resource does not exist. +// func (c *IoT) DescribeCertificate(input *DescribeCertificateInput) (*DescribeCertificateOutput, error) { req, out := c.DescribeCertificateRequest(input) err := req.Send() @@ -1183,6 +1889,8 @@ const opDescribeEndpoint = "DescribeEndpoint" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeEndpoint for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1217,12 +1925,32 @@ 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. -func (c *IoT) DescribeEndpoint(input *DescribeEndpointInput) (*DescribeEndpointOutput, error) { - req, out := c.DescribeEndpointRequest(input) - err := req.Send() - return out, err -} +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS IoT's +// API operation DescribeEndpoint for usage and error information. +// +// Returned Error Codes: +// * InternalFailureException +// An unexpected error has occurred. +// +// * UnauthorizedException +// You are not authorized to perform this operation. +// +// * ThrottlingException +// The rate exceeds the limit. +// +func (c *IoT) DescribeEndpoint(input *DescribeEndpointInput) (*DescribeEndpointOutput, error) { + req, out := c.DescribeEndpointRequest(input) + err := req.Send() + return out, err +} const opDescribeThing = "DescribeThing" @@ -1231,6 +1959,8 @@ const opDescribeThing = "DescribeThing" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeThing for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1265,7 +1995,36 @@ func (c *IoT) DescribeThingRequest(input *DescribeThingInput) (req *request.Requ return } +// DescribeThing API operation for AWS IoT. +// // Gets information about the specified thing. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS IoT's +// API operation DescribeThing for usage and error information. +// +// Returned Error Codes: +// * ResourceNotFoundException +// The specified resource does not exist. +// +// * InvalidRequestException +// The request is not valid. +// +// * ThrottlingException +// The rate exceeds the limit. +// +// * UnauthorizedException +// You are not authorized to perform this operation. +// +// * ServiceUnavailableException +// The service is temporarily unavailable. +// +// * InternalFailureException +// An unexpected error has occurred. +// func (c *IoT) DescribeThing(input *DescribeThingInput) (*DescribeThingOutput, error) { req, out := c.DescribeThingRequest(input) err := req.Send() @@ -1279,6 +2038,8 @@ const opDescribeThingType = "DescribeThingType" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeThingType for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1313,7 +2074,36 @@ func (c *IoT) DescribeThingTypeRequest(input *DescribeThingTypeInput) (req *requ return } +// DescribeThingType API operation for AWS IoT. +// // Gets information about the specified thing type. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS IoT's +// API operation DescribeThingType for usage and error information. +// +// Returned Error Codes: +// * ResourceNotFoundException +// The specified resource does not exist. +// +// * InvalidRequestException +// The request is not valid. +// +// * ThrottlingException +// The rate exceeds the limit. +// +// * UnauthorizedException +// You are not authorized to perform this operation. +// +// * ServiceUnavailableException +// The service is temporarily unavailable. +// +// * InternalFailureException +// An unexpected error has occurred. +// func (c *IoT) DescribeThingType(input *DescribeThingTypeInput) (*DescribeThingTypeOutput, error) { req, out := c.DescribeThingTypeRequest(input) err := req.Send() @@ -1327,6 +2117,8 @@ const opDetachPrincipalPolicy = "DetachPrincipalPolicy" // value can be used to capture response data after the request's "Send" method // is called. // +// See DetachPrincipalPolicy for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1363,7 +2155,36 @@ func (c *IoT) DetachPrincipalPolicyRequest(input *DetachPrincipalPolicyInput) (r return } +// DetachPrincipalPolicy API operation for AWS IoT. +// // Removes the specified policy from the specified certificate. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS IoT's +// API operation DetachPrincipalPolicy for usage and error information. +// +// Returned Error Codes: +// * ResourceNotFoundException +// The specified resource does not exist. +// +// * InvalidRequestException +// The request is not valid. +// +// * ThrottlingException +// The rate exceeds the limit. +// +// * UnauthorizedException +// You are not authorized to perform this operation. +// +// * ServiceUnavailableException +// The service is temporarily unavailable. +// +// * InternalFailureException +// An unexpected error has occurred. +// func (c *IoT) DetachPrincipalPolicy(input *DetachPrincipalPolicyInput) (*DetachPrincipalPolicyOutput, error) { req, out := c.DetachPrincipalPolicyRequest(input) err := req.Send() @@ -1377,6 +2198,8 @@ const opDetachThingPrincipal = "DetachThingPrincipal" // value can be used to capture response data after the request's "Send" method // is called. // +// See DetachThingPrincipal for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1411,7 +2234,36 @@ func (c *IoT) DetachThingPrincipalRequest(input *DetachThingPrincipalInput) (req return } +// DetachThingPrincipal API operation for AWS IoT. +// // Detaches the specified principal from the specified thing. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS IoT's +// API operation DetachThingPrincipal for usage and error information. +// +// Returned Error Codes: +// * ResourceNotFoundException +// The specified resource does not exist. +// +// * InvalidRequestException +// The request is not valid. +// +// * ThrottlingException +// The rate exceeds the limit. +// +// * UnauthorizedException +// You are not authorized to perform this operation. +// +// * ServiceUnavailableException +// The service is temporarily unavailable. +// +// * InternalFailureException +// An unexpected error has occurred. +// func (c *IoT) DetachThingPrincipal(input *DetachThingPrincipalInput) (*DetachThingPrincipalOutput, error) { req, out := c.DetachThingPrincipalRequest(input) err := req.Send() @@ -1425,6 +2277,8 @@ const opDisableTopicRule = "DisableTopicRule" // value can be used to capture response data after the request's "Send" method // is called. // +// See DisableTopicRule for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1461,7 +2315,30 @@ func (c *IoT) DisableTopicRuleRequest(input *DisableTopicRuleInput) (req *reques return } +// DisableTopicRule API operation for AWS IoT. +// // Disables the specified rule. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS IoT's +// API operation DisableTopicRule for usage and error information. +// +// Returned Error Codes: +// * InternalException +// An unexpected error has occurred. +// +// * InvalidRequestException +// The request is not valid. +// +// * ServiceUnavailableException +// The service is temporarily unavailable. +// +// * UnauthorizedException +// You are not authorized to perform this operation. +// func (c *IoT) DisableTopicRule(input *DisableTopicRuleInput) (*DisableTopicRuleOutput, error) { req, out := c.DisableTopicRuleRequest(input) err := req.Send() @@ -1475,6 +2352,8 @@ const opEnableTopicRule = "EnableTopicRule" // value can be used to capture response data after the request's "Send" method // is called. // +// See EnableTopicRule for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1511,7 +2390,30 @@ func (c *IoT) EnableTopicRuleRequest(input *EnableTopicRuleInput) (req *request. return } +// EnableTopicRule API operation for AWS IoT. +// // Enables the specified rule. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS IoT's +// API operation EnableTopicRule for usage and error information. +// +// Returned Error Codes: +// * InternalException +// An unexpected error has occurred. +// +// * InvalidRequestException +// The request is not valid. +// +// * ServiceUnavailableException +// The service is temporarily unavailable. +// +// * UnauthorizedException +// You are not authorized to perform this operation. +// func (c *IoT) EnableTopicRule(input *EnableTopicRuleInput) (*EnableTopicRuleOutput, error) { req, out := c.EnableTopicRuleRequest(input) err := req.Send() @@ -1525,6 +2427,8 @@ const opGetLoggingOptions = "GetLoggingOptions" // value can be used to capture response data after the request's "Send" method // is called. // +// See GetLoggingOptions for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1559,7 +2463,27 @@ func (c *IoT) GetLoggingOptionsRequest(input *GetLoggingOptionsInput) (req *requ return } +// GetLoggingOptions API operation for AWS IoT. +// // Gets the logging options. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS IoT's +// API operation GetLoggingOptions for usage and error information. +// +// Returned Error Codes: +// * InternalException +// An unexpected error has occurred. +// +// * InvalidRequestException +// The request is not valid. +// +// * ServiceUnavailableException +// The service is temporarily unavailable. +// func (c *IoT) GetLoggingOptions(input *GetLoggingOptionsInput) (*GetLoggingOptionsOutput, error) { req, out := c.GetLoggingOptionsRequest(input) err := req.Send() @@ -1573,6 +2497,8 @@ const opGetPolicy = "GetPolicy" // value can be used to capture response data after the request's "Send" method // is called. // +// See GetPolicy for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1607,8 +2533,37 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS IoT's +// API operation GetPolicy for usage and error information. +// +// Returned Error Codes: +// * ResourceNotFoundException +// The specified resource does not exist. +// +// * InvalidRequestException +// The request is not valid. +// +// * ThrottlingException +// The rate exceeds the limit. +// +// * UnauthorizedException +// You are not authorized to perform this operation. +// +// * ServiceUnavailableException +// The service is temporarily unavailable. +// +// * InternalFailureException +// An unexpected error has occurred. +// func (c *IoT) GetPolicy(input *GetPolicyInput) (*GetPolicyOutput, error) { req, out := c.GetPolicyRequest(input) err := req.Send() @@ -1622,6 +2577,8 @@ const opGetPolicyVersion = "GetPolicyVersion" // value can be used to capture response data after the request's "Send" method // is called. // +// See GetPolicyVersion for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1656,7 +2613,36 @@ func (c *IoT) GetPolicyVersionRequest(input *GetPolicyVersionInput) (req *reques return } +// GetPolicyVersion API operation for AWS IoT. +// // Gets information about the specified policy version. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS IoT's +// API operation GetPolicyVersion for usage and error information. +// +// Returned Error Codes: +// * ResourceNotFoundException +// The specified resource does not exist. +// +// * InvalidRequestException +// The request is not valid. +// +// * ThrottlingException +// The rate exceeds the limit. +// +// * UnauthorizedException +// You are not authorized to perform this operation. +// +// * ServiceUnavailableException +// The service is temporarily unavailable. +// +// * InternalFailureException +// An unexpected error has occurred. +// func (c *IoT) GetPolicyVersion(input *GetPolicyVersionInput) (*GetPolicyVersionOutput, error) { req, out := c.GetPolicyVersionRequest(input) err := req.Send() @@ -1670,6 +2656,8 @@ const opGetRegistrationCode = "GetRegistrationCode" // value can be used to capture response data after the request's "Send" method // is called. // +// See GetRegistrationCode for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1704,7 +2692,33 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS IoT's +// API operation GetRegistrationCode for usage and error information. +// +// Returned Error Codes: +// * ThrottlingException +// The rate exceeds the limit. +// +// * UnauthorizedException +// You are not authorized to perform this operation. +// +// * ServiceUnavailableException +// The service is temporarily unavailable. +// +// * InternalFailureException +// An unexpected error has occurred. +// +// * InvalidRequestException +// The request is not valid. +// func (c *IoT) GetRegistrationCode(input *GetRegistrationCodeInput) (*GetRegistrationCodeOutput, error) { req, out := c.GetRegistrationCodeRequest(input) err := req.Send() @@ -1718,6 +2732,8 @@ const opGetTopicRule = "GetTopicRule" // value can be used to capture response data after the request's "Send" method // is called. // +// See GetTopicRule for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1752,7 +2768,30 @@ func (c *IoT) GetTopicRuleRequest(input *GetTopicRuleInput) (req *request.Reques return } +// GetTopicRule API operation for AWS IoT. +// // Gets information about the specified rule. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS IoT's +// API operation GetTopicRule for usage and error information. +// +// Returned Error Codes: +// * InternalException +// An unexpected error has occurred. +// +// * InvalidRequestException +// The request is not valid. +// +// * ServiceUnavailableException +// The service is temporarily unavailable. +// +// * UnauthorizedException +// You are not authorized to perform this operation. +// func (c *IoT) GetTopicRule(input *GetTopicRuleInput) (*GetTopicRuleOutput, error) { req, out := c.GetTopicRuleRequest(input) err := req.Send() @@ -1766,6 +2805,8 @@ const opListCACertificates = "ListCACertificates" // value can be used to capture response data after the request's "Send" method // is called. // +// See ListCACertificates for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1800,10 +2841,36 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS IoT's +// API operation ListCACertificates for usage and error information. +// +// Returned Error Codes: +// * InvalidRequestException +// The request is not valid. +// +// * ThrottlingException +// The rate exceeds the limit. +// +// * UnauthorizedException +// You are not authorized to perform this operation. +// +// * ServiceUnavailableException +// The service is temporarily unavailable. +// +// * InternalFailureException +// An unexpected error has occurred. +// func (c *IoT) ListCACertificates(input *ListCACertificatesInput) (*ListCACertificatesOutput, error) { req, out := c.ListCACertificatesRequest(input) err := req.Send() @@ -1817,6 +2884,8 @@ const opListCertificates = "ListCertificates" // value can be used to capture response data after the request's "Send" method // is called. // +// See ListCertificates for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1851,10 +2920,36 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS IoT's +// API operation ListCertificates for usage and error information. +// +// Returned Error Codes: +// * InvalidRequestException +// The request is not valid. +// +// * ThrottlingException +// The rate exceeds the limit. +// +// * UnauthorizedException +// You are not authorized to perform this operation. +// +// * ServiceUnavailableException +// The service is temporarily unavailable. +// +// * InternalFailureException +// An unexpected error has occurred. +// func (c *IoT) ListCertificates(input *ListCertificatesInput) (*ListCertificatesOutput, error) { req, out := c.ListCertificatesRequest(input) err := req.Send() @@ -1868,6 +2963,8 @@ const opListCertificatesByCA = "ListCertificatesByCA" // value can be used to capture response data after the request's "Send" method // is called. // +// See ListCertificatesByCA for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1902,7 +2999,33 @@ func (c *IoT) ListCertificatesByCARequest(input *ListCertificatesByCAInput) (req return } +// ListCertificatesByCA API operation for AWS IoT. +// // List the device certificates signed by the specified CA certificate. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS IoT's +// API operation ListCertificatesByCA for usage and error information. +// +// Returned Error Codes: +// * InvalidRequestException +// The request is not valid. +// +// * ThrottlingException +// The rate exceeds the limit. +// +// * UnauthorizedException +// You are not authorized to perform this operation. +// +// * ServiceUnavailableException +// The service is temporarily unavailable. +// +// * InternalFailureException +// An unexpected error has occurred. +// func (c *IoT) ListCertificatesByCA(input *ListCertificatesByCAInput) (*ListCertificatesByCAOutput, error) { req, out := c.ListCertificatesByCARequest(input) err := req.Send() @@ -1916,6 +3039,8 @@ const opListOutgoingCertificates = "ListOutgoingCertificates" // value can be used to capture response data after the request's "Send" method // is called. // +// See ListOutgoingCertificates for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1950,7 +3075,33 @@ func (c *IoT) ListOutgoingCertificatesRequest(input *ListOutgoingCertificatesInp return } +// ListOutgoingCertificates API operation for AWS IoT. +// // Lists certificates that are being transfered but not yet accepted. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS IoT's +// API operation ListOutgoingCertificates for usage and error information. +// +// Returned Error Codes: +// * InvalidRequestException +// The request is not valid. +// +// * ThrottlingException +// The rate exceeds the limit. +// +// * UnauthorizedException +// You are not authorized to perform this operation. +// +// * ServiceUnavailableException +// The service is temporarily unavailable. +// +// * InternalFailureException +// An unexpected error has occurred. +// func (c *IoT) ListOutgoingCertificates(input *ListOutgoingCertificatesInput) (*ListOutgoingCertificatesOutput, error) { req, out := c.ListOutgoingCertificatesRequest(input) err := req.Send() @@ -1964,6 +3115,8 @@ const opListPolicies = "ListPolicies" // value can be used to capture response data after the request's "Send" method // is called. // +// See ListPolicies for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1998,7 +3151,33 @@ func (c *IoT) ListPoliciesRequest(input *ListPoliciesInput) (req *request.Reques return } +// ListPolicies API operation for AWS IoT. +// // Lists your policies. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS IoT's +// API operation ListPolicies for usage and error information. +// +// Returned Error Codes: +// * InvalidRequestException +// The request is not valid. +// +// * ThrottlingException +// The rate exceeds the limit. +// +// * UnauthorizedException +// You are not authorized to perform this operation. +// +// * ServiceUnavailableException +// The service is temporarily unavailable. +// +// * InternalFailureException +// An unexpected error has occurred. +// func (c *IoT) ListPolicies(input *ListPoliciesInput) (*ListPoliciesOutput, error) { req, out := c.ListPoliciesRequest(input) err := req.Send() @@ -2012,6 +3191,8 @@ const opListPolicyPrincipals = "ListPolicyPrincipals" // value can be used to capture response data after the request's "Send" method // is called. // +// See ListPolicyPrincipals for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -2046,7 +3227,36 @@ func (c *IoT) ListPolicyPrincipalsRequest(input *ListPolicyPrincipalsInput) (req return } +// ListPolicyPrincipals API operation for AWS IoT. +// // Lists the principals associated with the specified policy. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS IoT's +// API operation ListPolicyPrincipals for usage and error information. +// +// Returned Error Codes: +// * ResourceNotFoundException +// The specified resource does not exist. +// +// * InvalidRequestException +// The request is not valid. +// +// * ThrottlingException +// The rate exceeds the limit. +// +// * UnauthorizedException +// You are not authorized to perform this operation. +// +// * ServiceUnavailableException +// The service is temporarily unavailable. +// +// * InternalFailureException +// An unexpected error has occurred. +// func (c *IoT) ListPolicyPrincipals(input *ListPolicyPrincipalsInput) (*ListPolicyPrincipalsOutput, error) { req, out := c.ListPolicyPrincipalsRequest(input) err := req.Send() @@ -2060,6 +3270,8 @@ const opListPolicyVersions = "ListPolicyVersions" // value can be used to capture response data after the request's "Send" method // is called. // +// See ListPolicyVersions for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -2094,7 +3306,36 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS IoT's +// API operation ListPolicyVersions for usage and error information. +// +// Returned Error Codes: +// * ResourceNotFoundException +// The specified resource does not exist. +// +// * InvalidRequestException +// The request is not valid. +// +// * ThrottlingException +// The rate exceeds the limit. +// +// * UnauthorizedException +// You are not authorized to perform this operation. +// +// * ServiceUnavailableException +// The service is temporarily unavailable. +// +// * InternalFailureException +// An unexpected error has occurred. +// func (c *IoT) ListPolicyVersions(input *ListPolicyVersionsInput) (*ListPolicyVersionsOutput, error) { req, out := c.ListPolicyVersionsRequest(input) err := req.Send() @@ -2108,6 +3349,8 @@ const opListPrincipalPolicies = "ListPrincipalPolicies" // value can be used to capture response data after the request's "Send" method // is called. // +// See ListPrincipalPolicies for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -2142,8 +3385,37 @@ 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). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS IoT's +// API operation ListPrincipalPolicies for usage and error information. +// +// Returned Error Codes: +// * ResourceNotFoundException +// The specified resource does not exist. +// +// * InvalidRequestException +// The request is not valid. +// +// * ThrottlingException +// The rate exceeds the limit. +// +// * UnauthorizedException +// You are not authorized to perform this operation. +// +// * ServiceUnavailableException +// The service is temporarily unavailable. +// +// * InternalFailureException +// An unexpected error has occurred. +// func (c *IoT) ListPrincipalPolicies(input *ListPrincipalPoliciesInput) (*ListPrincipalPoliciesOutput, error) { req, out := c.ListPrincipalPoliciesRequest(input) err := req.Send() @@ -2157,6 +3429,8 @@ const opListPrincipalThings = "ListPrincipalThings" // value can be used to capture response data after the request's "Send" method // is called. // +// See ListPrincipalThings for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -2191,7 +3465,36 @@ func (c *IoT) ListPrincipalThingsRequest(input *ListPrincipalThingsInput) (req * return } +// ListPrincipalThings API operation for AWS IoT. +// // Lists the things associated with the specified principal. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS IoT's +// API operation ListPrincipalThings for usage and error information. +// +// Returned Error Codes: +// * InvalidRequestException +// The request is not valid. +// +// * ThrottlingException +// The rate exceeds the limit. +// +// * UnauthorizedException +// You are not authorized to perform this operation. +// +// * ServiceUnavailableException +// The service is temporarily unavailable. +// +// * InternalFailureException +// An unexpected error has occurred. +// +// * ResourceNotFoundException +// The specified resource does not exist. +// func (c *IoT) ListPrincipalThings(input *ListPrincipalThingsInput) (*ListPrincipalThingsOutput, error) { req, out := c.ListPrincipalThingsRequest(input) err := req.Send() @@ -2205,6 +3508,8 @@ const opListThingPrincipals = "ListThingPrincipals" // value can be used to capture response data after the request's "Send" method // is called. // +// See ListThingPrincipals for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -2239,7 +3544,36 @@ func (c *IoT) ListThingPrincipalsRequest(input *ListThingPrincipalsInput) (req * return } +// ListThingPrincipals API operation for AWS IoT. +// // Lists the principals associated with the specified thing. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS IoT's +// API operation ListThingPrincipals for usage and error information. +// +// Returned Error Codes: +// * InvalidRequestException +// The request is not valid. +// +// * ThrottlingException +// The rate exceeds the limit. +// +// * UnauthorizedException +// You are not authorized to perform this operation. +// +// * ServiceUnavailableException +// The service is temporarily unavailable. +// +// * InternalFailureException +// An unexpected error has occurred. +// +// * ResourceNotFoundException +// The specified resource does not exist. +// func (c *IoT) ListThingPrincipals(input *ListThingPrincipalsInput) (*ListThingPrincipalsOutput, error) { req, out := c.ListThingPrincipalsRequest(input) err := req.Send() @@ -2253,6 +3587,8 @@ const opListThingTypes = "ListThingTypes" // value can be used to capture response data after the request's "Send" method // is called. // +// See ListThingTypes for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -2287,7 +3623,33 @@ func (c *IoT) ListThingTypesRequest(input *ListThingTypesInput) (req *request.Re return } +// ListThingTypes API operation for AWS IoT. +// // Lists the existing thing types. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS IoT's +// API operation ListThingTypes for usage and error information. +// +// Returned Error Codes: +// * InvalidRequestException +// The request is not valid. +// +// * ThrottlingException +// The rate exceeds the limit. +// +// * UnauthorizedException +// You are not authorized to perform this operation. +// +// * ServiceUnavailableException +// The service is temporarily unavailable. +// +// * InternalFailureException +// An unexpected error has occurred. +// func (c *IoT) ListThingTypes(input *ListThingTypesInput) (*ListThingTypesOutput, error) { req, out := c.ListThingTypesRequest(input) err := req.Send() @@ -2301,6 +3663,8 @@ const opListThings = "ListThings" // value can be used to capture response data after the request's "Send" method // is called. // +// See ListThings for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -2335,10 +3699,36 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS IoT's +// API operation ListThings for usage and error information. +// +// Returned Error Codes: +// * InvalidRequestException +// The request is not valid. +// +// * ThrottlingException +// The rate exceeds the limit. +// +// * UnauthorizedException +// You are not authorized to perform this operation. +// +// * ServiceUnavailableException +// The service is temporarily unavailable. +// +// * InternalFailureException +// An unexpected error has occurred. +// func (c *IoT) ListThings(input *ListThingsInput) (*ListThingsOutput, error) { req, out := c.ListThingsRequest(input) err := req.Send() @@ -2352,6 +3742,8 @@ const opListTopicRules = "ListTopicRules" // value can be used to capture response data after the request's "Send" method // is called. // +// See ListTopicRules for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -2386,7 +3778,27 @@ func (c *IoT) ListTopicRulesRequest(input *ListTopicRulesInput) (req *request.Re return } +// ListTopicRules API operation for AWS IoT. +// // Lists the rules for the specific topic. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS IoT's +// API operation ListTopicRules for usage and error information. +// +// Returned Error Codes: +// * InternalException +// An unexpected error has occurred. +// +// * InvalidRequestException +// The request is not valid. +// +// * ServiceUnavailableException +// The service is temporarily unavailable. +// func (c *IoT) ListTopicRules(input *ListTopicRulesInput) (*ListTopicRulesOutput, error) { req, out := c.ListTopicRulesRequest(input) err := req.Send() @@ -2400,6 +3812,8 @@ const opRegisterCACertificate = "RegisterCACertificate" // value can be used to capture response data after the request's "Send" method // is called. // +// See RegisterCACertificate for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -2434,6 +3848,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 +3857,42 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS IoT's +// API operation RegisterCACertificate for usage and error information. +// +// Returned Error Codes: +// * ResourceAlreadyExistsException +// The resource already exists. +// +// * RegistrationCodeValidationException +// The registration code is invalid. +// +// * InvalidRequestException +// The request is not valid. +// +// * CertificateValidationException +// The certificate is invalid. +// +// * ThrottlingException +// The rate exceeds the limit. +// +// * LimitExceededException +// The number of attached entities exceeds the limit. +// +// * UnauthorizedException +// You are not authorized to perform this operation. +// +// * ServiceUnavailableException +// The service is temporarily unavailable. +// +// * InternalFailureException +// An unexpected error has occurred. +// func (c *IoT) RegisterCACertificate(input *RegisterCACertificateInput) (*RegisterCACertificateOutput, error) { req, out := c.RegisterCACertificateRequest(input) err := req.Send() @@ -2454,6 +3906,8 @@ const opRegisterCertificate = "RegisterCertificate" // value can be used to capture response data after the request's "Send" method // is called. // +// See RegisterCertificate for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -2488,9 +3942,49 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS IoT's +// API operation RegisterCertificate for usage and error information. +// +// Returned Error Codes: +// * ResourceAlreadyExistsException +// The resource already exists. +// +// * InvalidRequestException +// The request is not valid. +// +// * CertificateValidationException +// The certificate is invalid. +// +// * CertificateStateException +// The certificate operation is not allowed. +// +// * CertificateConflictException +// Unable to verify the CA certificate used to sign the device certificate you +// are attempting to register. This is happens when you have registered more +// than one CA certificate that has the same subject field and public key. +// +// * ThrottlingException +// The rate exceeds the limit. +// +// * UnauthorizedException +// You are not authorized to perform this operation. +// +// * ServiceUnavailableException +// The service is temporarily unavailable. +// +// * InternalFailureException +// An unexpected error has occurred. +// func (c *IoT) RegisterCertificate(input *RegisterCertificateInput) (*RegisterCertificateOutput, error) { req, out := c.RegisterCertificateRequest(input) err := req.Send() @@ -2504,6 +3998,8 @@ const opRejectCertificateTransfer = "RejectCertificateTransfer" // value can be used to capture response data after the request's "Send" method // is called. // +// See RejectCertificateTransfer for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -2540,6 +4036,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 +4047,37 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS IoT's +// API operation RejectCertificateTransfer for usage and error information. +// +// Returned Error Codes: +// * ResourceNotFoundException +// The specified resource does not exist. +// +// * TransferAlreadyCompletedException +// You can't revert the certificate transfer because the transfer is already +// complete. +// +// * InvalidRequestException +// The request is not valid. +// +// * ThrottlingException +// The rate exceeds the limit. +// +// * UnauthorizedException +// You are not authorized to perform this operation. +// +// * ServiceUnavailableException +// The service is temporarily unavailable. +// +// * InternalFailureException +// An unexpected error has occurred. +// func (c *IoT) RejectCertificateTransfer(input *RejectCertificateTransferInput) (*RejectCertificateTransferOutput, error) { req, out := c.RejectCertificateTransferRequest(input) err := req.Send() @@ -2562,6 +4091,8 @@ const opReplaceTopicRule = "ReplaceTopicRule" // value can be used to capture response data after the request's "Send" method // is called. // +// See ReplaceTopicRule for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -2598,9 +4129,35 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS IoT's +// API operation ReplaceTopicRule for usage and error information. +// +// Returned Error Codes: +// * SqlParseException +// The Rule-SQL expression can't be parsed correctly. +// +// * InternalException +// An unexpected error has occurred. +// +// * InvalidRequestException +// The request is not valid. +// +// * ServiceUnavailableException +// The service is temporarily unavailable. +// +// * UnauthorizedException +// You are not authorized to perform this operation. +// func (c *IoT) ReplaceTopicRule(input *ReplaceTopicRuleInput) (*ReplaceTopicRuleOutput, error) { req, out := c.ReplaceTopicRuleRequest(input) err := req.Send() @@ -2614,6 +4171,8 @@ const opSetDefaultPolicyVersion = "SetDefaultPolicyVersion" // value can be used to capture response data after the request's "Send" method // is called. // +// See SetDefaultPolicyVersion for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -2650,10 +4209,39 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS IoT's +// API operation SetDefaultPolicyVersion for usage and error information. +// +// Returned Error Codes: +// * ResourceNotFoundException +// The specified resource does not exist. +// +// * InvalidRequestException +// The request is not valid. +// +// * ThrottlingException +// The rate exceeds the limit. +// +// * UnauthorizedException +// You are not authorized to perform this operation. +// +// * ServiceUnavailableException +// The service is temporarily unavailable. +// +// * InternalFailureException +// An unexpected error has occurred. +// func (c *IoT) SetDefaultPolicyVersion(input *SetDefaultPolicyVersionInput) (*SetDefaultPolicyVersionOutput, error) { req, out := c.SetDefaultPolicyVersionRequest(input) err := req.Send() @@ -2667,6 +4255,8 @@ const opSetLoggingOptions = "SetLoggingOptions" // value can be used to capture response data after the request's "Send" method // is called. // +// See SetLoggingOptions for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -2703,7 +4293,27 @@ func (c *IoT) SetLoggingOptionsRequest(input *SetLoggingOptionsInput) (req *requ return } +// SetLoggingOptions API operation for AWS IoT. +// // Sets the logging options. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS IoT's +// API operation SetLoggingOptions for usage and error information. +// +// Returned Error Codes: +// * InternalException +// An unexpected error has occurred. +// +// * InvalidRequestException +// The request is not valid. +// +// * ServiceUnavailableException +// The service is temporarily unavailable. +// func (c *IoT) SetLoggingOptions(input *SetLoggingOptionsInput) (*SetLoggingOptionsOutput, error) { req, out := c.SetLoggingOptionsRequest(input) err := req.Send() @@ -2717,6 +4327,8 @@ const opTransferCertificate = "TransferCertificate" // value can be used to capture response data after the request's "Send" method // is called. // +// See TransferCertificate for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -2751,6 +4363,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 +4377,40 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS IoT's +// API operation TransferCertificate for usage and error information. +// +// Returned Error Codes: +// * InvalidRequestException +// The request is not valid. +// +// * ResourceNotFoundException +// The specified resource does not exist. +// +// * CertificateStateException +// The certificate operation is not allowed. +// +// * TransferConflictException +// You can't transfer the certificate because authorization policies are still +// attached. +// +// * ThrottlingException +// The rate exceeds the limit. +// +// * UnauthorizedException +// You are not authorized to perform this operation. +// +// * ServiceUnavailableException +// The service is temporarily unavailable. +// +// * InternalFailureException +// An unexpected error has occurred. +// func (c *IoT) TransferCertificate(input *TransferCertificateInput) (*TransferCertificateOutput, error) { req, out := c.TransferCertificateRequest(input) err := req.Send() @@ -2776,6 +4424,8 @@ const opUpdateCACertificate = "UpdateCACertificate" // value can be used to capture response data after the request's "Send" method // is called. // +// See UpdateCACertificate for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -2812,7 +4462,36 @@ func (c *IoT) UpdateCACertificateRequest(input *UpdateCACertificateInput) (req * return } +// UpdateCACertificate API operation for AWS IoT. +// // Updates a registered CA certificate. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS IoT's +// API operation UpdateCACertificate for usage and error information. +// +// Returned Error Codes: +// * ResourceNotFoundException +// The specified resource does not exist. +// +// * InvalidRequestException +// The request is not valid. +// +// * ThrottlingException +// The rate exceeds the limit. +// +// * UnauthorizedException +// You are not authorized to perform this operation. +// +// * ServiceUnavailableException +// The service is temporarily unavailable. +// +// * InternalFailureException +// An unexpected error has occurred. +// func (c *IoT) UpdateCACertificate(input *UpdateCACertificateInput) (*UpdateCACertificateOutput, error) { req, out := c.UpdateCACertificateRequest(input) err := req.Send() @@ -2826,6 +4505,8 @@ const opUpdateCertificate = "UpdateCertificate" // value can be used to capture response data after the request's "Send" method // is called. // +// See UpdateCertificate for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -2862,6 +4543,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 +4553,36 @@ func (c *IoT) UpdateCertificateRequest(input *UpdateCertificateInput) (req *requ // // The ACTIVE state is required to authenticate devices connecting to AWS IoT // using a certificate. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS IoT's +// API operation UpdateCertificate for usage and error information. +// +// Returned Error Codes: +// * ResourceNotFoundException +// The specified resource does not exist. +// +// * CertificateStateException +// The certificate operation is not allowed. +// +// * InvalidRequestException +// The request is not valid. +// +// * ThrottlingException +// The rate exceeds the limit. +// +// * UnauthorizedException +// You are not authorized to perform this operation. +// +// * ServiceUnavailableException +// The service is temporarily unavailable. +// +// * InternalFailureException +// An unexpected error has occurred. +// func (c *IoT) UpdateCertificate(input *UpdateCertificateInput) (*UpdateCertificateOutput, error) { req, out := c.UpdateCertificateRequest(input) err := req.Send() @@ -2883,6 +4596,8 @@ const opUpdateThing = "UpdateThing" // value can be used to capture response data after the request's "Send" method // is called. // +// See UpdateThing for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -2917,7 +4632,40 @@ func (c *IoT) UpdateThingRequest(input *UpdateThingInput) (req *request.Request, return } +// UpdateThing API operation for AWS IoT. +// // Updates the data for a thing. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS IoT's +// API operation UpdateThing for usage and error information. +// +// Returned Error Codes: +// * InvalidRequestException +// The request is not valid. +// +// * VersionConflictException +// An exception thrown when the version of a thing passed to a command is different +// than the version specified with the --version parameter. +// +// * ThrottlingException +// The rate exceeds the limit. +// +// * UnauthorizedException +// You are not authorized to perform this operation. +// +// * ServiceUnavailableException +// The service is temporarily unavailable. +// +// * InternalFailureException +// An unexpected error has occurred. +// +// * ResourceNotFoundException +// The specified resource does not exist. +// 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..ac38fd30556 100644 --- a/service/iotdataplane/api.go +++ b/service/iotdataplane/api.go @@ -17,6 +17,8 @@ const opDeleteThingShadow = "DeleteThingShadow" // value can be used to capture response data after the request's "Send" method // is called. // +// See DeleteThingShadow for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -51,10 +53,45 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS IoT Data Plane's +// API operation DeleteThingShadow for usage and error information. +// +// Returned Error Codes: +// * ResourceNotFoundException +// The specified resource does not exist. +// +// * InvalidRequestException +// The request is not valid. +// +// * ThrottlingException +// The rate exceeds the limit. +// +// * UnauthorizedException +// You are not authorized to perform this operation. +// +// * ServiceUnavailableException +// The service is temporarily unavailable. +// +// * InternalFailureException +// An unexpected error has occurred. +// +// * MethodNotAllowedException +// The specified combination of HTTP verb and URI is not supported. +// +// * UnsupportedDocumentEncodingException +// The document encoding is not supported. +// func (c *IoTDataPlane) DeleteThingShadow(input *DeleteThingShadowInput) (*DeleteThingShadowOutput, error) { req, out := c.DeleteThingShadowRequest(input) err := req.Send() @@ -68,6 +105,8 @@ const opGetThingShadow = "GetThingShadow" // value can be used to capture response data after the request's "Send" method // is called. // +// See GetThingShadow for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -102,10 +141,45 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS IoT Data Plane's +// API operation GetThingShadow for usage and error information. +// +// Returned Error Codes: +// * InvalidRequestException +// The request is not valid. +// +// * ResourceNotFoundException +// The specified resource does not exist. +// +// * ThrottlingException +// The rate exceeds the limit. +// +// * UnauthorizedException +// You are not authorized to perform this operation. +// +// * ServiceUnavailableException +// The service is temporarily unavailable. +// +// * InternalFailureException +// An unexpected error has occurred. +// +// * MethodNotAllowedException +// The specified combination of HTTP verb and URI is not supported. +// +// * UnsupportedDocumentEncodingException +// The document encoding is not supported. +// func (c *IoTDataPlane) GetThingShadow(input *GetThingShadowInput) (*GetThingShadowOutput, error) { req, out := c.GetThingShadowRequest(input) err := req.Send() @@ -119,6 +193,8 @@ const opPublish = "Publish" // value can be used to capture response data after the request's "Send" method // is called. // +// See Publish for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -155,10 +231,33 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS IoT Data Plane's +// API operation Publish for usage and error information. +// +// Returned Error Codes: +// * InternalFailureException +// An unexpected error has occurred. +// +// * InvalidRequestException +// The request is not valid. +// +// * UnauthorizedException +// You are not authorized to perform this operation. +// +// * MethodNotAllowedException +// The specified combination of HTTP verb and URI is not supported. +// func (c *IoTDataPlane) Publish(input *PublishInput) (*PublishOutput, error) { req, out := c.PublishRequest(input) err := req.Send() @@ -172,6 +271,8 @@ const opUpdateThingShadow = "UpdateThingShadow" // value can be used to capture response data after the request's "Send" method // is called. // +// See UpdateThingShadow for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -206,10 +307,48 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS IoT Data Plane's +// API operation UpdateThingShadow for usage and error information. +// +// Returned Error Codes: +// * ConflictException +// The specified version does not match the version of the document. +// +// * RequestEntityTooLargeException +// The payload exceeds the maximum size allowed. +// +// * InvalidRequestException +// The request is not valid. +// +// * ThrottlingException +// The rate exceeds the limit. +// +// * UnauthorizedException +// You are not authorized to perform this operation. +// +// * ServiceUnavailableException +// The service is temporarily unavailable. +// +// * InternalFailureException +// An unexpected error has occurred. +// +// * MethodNotAllowedException +// The specified combination of HTTP verb and URI is not supported. +// +// * UnsupportedDocumentEncodingException +// The document encoding is not supported. +// 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..1d5749fa2e7 100644 --- a/service/kinesis/api.go +++ b/service/kinesis/api.go @@ -20,6 +20,8 @@ const opAddTagsToStream = "AddTagsToStream" // value can be used to capture response data after the request's "Send" method // is called. // +// See AddTagsToStream for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -56,11 +58,39 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Kinesis's +// API operation AddTagsToStream for usage and error information. +// +// Returned Error Codes: +// * ResourceNotFoundException +// The requested resource could not be found. The stream might not be specified +// correctly, or it might not be in the ACTIVE state if the operation requires +// it. +// +// * ResourceInUseException +// The resource is not available for this operation. For successful operation, +// the resource needs to be in the ACTIVE state. +// +// * InvalidArgumentException +// A specified parameter exceeds its restrictions, is not supported, or can't +// be used. For more information, see the returned message. +// +// * LimitExceededException +// The requested resource exceeds the maximum number allowed, or the number +// of concurrent stream requests exceeds the maximum number allowed (5). +// func (c *Kinesis) AddTagsToStream(input *AddTagsToStreamInput) (*AddTagsToStreamOutput, error) { req, out := c.AddTagsToStreamRequest(input) err := req.Send() @@ -74,6 +104,8 @@ const opCreateStream = "CreateStream" // value can be used to capture response data after the request's "Send" method // is called. // +// See CreateStream for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -110,6 +142,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 +180,27 @@ func (c *Kinesis) CreateStreamRequest(input *CreateStreamInput) (req *request.Re // in StreamStatus. // // CreateStream has a limit of 5 transactions per second per account. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Kinesis's +// API operation CreateStream for usage and error information. +// +// Returned Error Codes: +// * ResourceInUseException +// The resource is not available for this operation. For successful operation, +// the resource needs to be in the ACTIVE state. +// +// * LimitExceededException +// The requested resource exceeds the maximum number allowed, or the number +// of concurrent stream requests exceeds the maximum number allowed (5). +// +// * InvalidArgumentException +// A specified parameter exceeds its restrictions, is not supported, or can't +// be used. For more information, see the returned message. +// func (c *Kinesis) CreateStream(input *CreateStreamInput) (*CreateStreamOutput, error) { req, out := c.CreateStreamRequest(input) err := req.Send() @@ -159,6 +214,8 @@ const opDecreaseStreamRetentionPeriod = "DecreaseStreamRetentionPeriod" // value can be used to capture response data after the request's "Send" method // is called. // +// See DecreaseStreamRetentionPeriod for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -195,6 +252,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 +261,32 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Kinesis's +// API operation DecreaseStreamRetentionPeriod for usage and error information. +// +// Returned Error Codes: +// * ResourceInUseException +// The resource is not available for this operation. For successful operation, +// the resource needs to be in the ACTIVE state. +// +// * ResourceNotFoundException +// The requested resource could not be found. The stream might not be specified +// correctly, or it might not be in the ACTIVE state if the operation requires +// it. +// +// * LimitExceededException +// The requested resource exceeds the maximum number allowed, or the number +// of concurrent stream requests exceeds the maximum number allowed (5). +// +// * InvalidArgumentException +// A specified parameter exceeds its restrictions, is not supported, or can't +// be used. For more information, see the returned message. +// func (c *Kinesis) DecreaseStreamRetentionPeriod(input *DecreaseStreamRetentionPeriodInput) (*DecreaseStreamRetentionPeriodOutput, error) { req, out := c.DecreaseStreamRetentionPeriodRequest(input) err := req.Send() @@ -215,6 +300,8 @@ const opDeleteStream = "DeleteStream" // value can be used to capture response data after the request's "Send" method // is called. // +// See DeleteStream for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -251,6 +338,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 +360,24 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Kinesis's +// API operation DeleteStream for usage and error information. +// +// Returned Error Codes: +// * ResourceNotFoundException +// The requested resource could not be found. The stream might not be specified +// correctly, or it might not be in the ACTIVE state if the operation requires +// it. +// +// * LimitExceededException +// The requested resource exceeds the maximum number allowed, or the number +// of concurrent stream requests exceeds the maximum number allowed (5). +// func (c *Kinesis) DeleteStream(input *DeleteStreamInput) (*DeleteStreamOutput, error) { req, out := c.DeleteStreamRequest(input) err := req.Send() @@ -284,6 +391,8 @@ const opDescribeStream = "DescribeStream" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeStream for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -324,6 +433,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 +461,24 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Kinesis's +// API operation DescribeStream for usage and error information. +// +// Returned Error Codes: +// * ResourceNotFoundException +// The requested resource could not be found. The stream might not be specified +// correctly, or it might not be in the ACTIVE state if the operation requires +// it. +// +// * LimitExceededException +// The requested resource exceeds the maximum number allowed, or the number +// of concurrent stream requests exceeds the maximum number allowed (5). +// func (c *Kinesis) DescribeStream(input *DescribeStreamInput) (*DescribeStreamOutput, error) { req, out := c.DescribeStreamRequest(input) err := req.Send() @@ -388,6 +517,8 @@ const opDisableEnhancedMonitoring = "DisableEnhancedMonitoring" // value can be used to capture response data after the request's "Send" method // is called. // +// See DisableEnhancedMonitoring for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -422,7 +553,35 @@ func (c *Kinesis) DisableEnhancedMonitoringRequest(input *DisableEnhancedMonitor return } +// DisableEnhancedMonitoring API operation for Amazon Kinesis. +// // Disables enhanced monitoring. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Kinesis's +// API operation DisableEnhancedMonitoring for usage and error information. +// +// Returned Error Codes: +// * InvalidArgumentException +// A specified parameter exceeds its restrictions, is not supported, or can't +// be used. For more information, see the returned message. +// +// * LimitExceededException +// The requested resource exceeds the maximum number allowed, or the number +// of concurrent stream requests exceeds the maximum number allowed (5). +// +// * ResourceInUseException +// The resource is not available for this operation. For successful operation, +// the resource needs to be in the ACTIVE state. +// +// * ResourceNotFoundException +// The requested resource could not be found. The stream might not be specified +// correctly, or it might not be in the ACTIVE state if the operation requires +// it. +// func (c *Kinesis) DisableEnhancedMonitoring(input *DisableEnhancedMonitoringInput) (*EnhancedMonitoringOutput, error) { req, out := c.DisableEnhancedMonitoringRequest(input) err := req.Send() @@ -436,6 +595,8 @@ const opEnableEnhancedMonitoring = "EnableEnhancedMonitoring" // value can be used to capture response data after the request's "Send" method // is called. // +// See EnableEnhancedMonitoring for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -470,7 +631,35 @@ func (c *Kinesis) EnableEnhancedMonitoringRequest(input *EnableEnhancedMonitorin return } +// EnableEnhancedMonitoring API operation for Amazon Kinesis. +// // Enables enhanced Amazon Kinesis stream monitoring for shard-level metrics. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Kinesis's +// API operation EnableEnhancedMonitoring for usage and error information. +// +// Returned Error Codes: +// * InvalidArgumentException +// A specified parameter exceeds its restrictions, is not supported, or can't +// be used. For more information, see the returned message. +// +// * LimitExceededException +// The requested resource exceeds the maximum number allowed, or the number +// of concurrent stream requests exceeds the maximum number allowed (5). +// +// * ResourceInUseException +// The resource is not available for this operation. For successful operation, +// the resource needs to be in the ACTIVE state. +// +// * ResourceNotFoundException +// The requested resource could not be found. The stream might not be specified +// correctly, or it might not be in the ACTIVE state if the operation requires +// it. +// func (c *Kinesis) EnableEnhancedMonitoring(input *EnableEnhancedMonitoringInput) (*EnhancedMonitoringOutput, error) { req, out := c.EnableEnhancedMonitoringRequest(input) err := req.Send() @@ -484,6 +673,8 @@ const opGetRecords = "GetRecords" // value can be used to capture response data after the request's "Send" method // is called. // +// See GetRecords for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -518,6 +709,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 +764,35 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Kinesis's +// API operation GetRecords for usage and error information. +// +// Returned Error Codes: +// * ResourceNotFoundException +// The requested resource could not be found. The stream might not be specified +// correctly, or it might not be in the ACTIVE state if the operation requires +// it. +// +// * InvalidArgumentException +// A specified parameter exceeds its restrictions, is not supported, or can't +// be used. For more information, see the returned message. +// +// * ProvisionedThroughputExceededException +// The request rate for the stream is too high, or the requested data is too +// large for the available throughput. Reduce the frequency or size of your +// requests. For more information, see Streams Limits (http://docs.aws.amazon.com/kinesis/latest/dev/service-sizes-and-limits.html) +// in the Amazon Kinesis Streams Developer Guide, and Error Retries and Exponential +// Backoff in AWS (http://docs.aws.amazon.com/general/latest/gr/api-retries.html) +// in the AWS General Reference. +// +// * ExpiredIteratorException +// The provided iterator exceeds the maximum age allowed. +// func (c *Kinesis) GetRecords(input *GetRecordsInput) (*GetRecordsOutput, error) { req, out := c.GetRecordsRequest(input) err := req.Send() @@ -584,6 +806,8 @@ const opGetShardIterator = "GetShardIterator" // value can be used to capture response data after the request's "Send" method // is called. // +// See GetShardIterator for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -618,6 +842,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 +882,32 @@ func (c *Kinesis) GetShardIteratorRequest(input *GetShardIteratorInput) (req *re // // GetShardIterator has a limit of 5 transactions per second per account per // open shard. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Kinesis's +// API operation GetShardIterator for usage and error information. +// +// Returned Error Codes: +// * ResourceNotFoundException +// The requested resource could not be found. The stream might not be specified +// correctly, or it might not be in the ACTIVE state if the operation requires +// it. +// +// * InvalidArgumentException +// A specified parameter exceeds its restrictions, is not supported, or can't +// be used. For more information, see the returned message. +// +// * ProvisionedThroughputExceededException +// The request rate for the stream is too high, or the requested data is too +// large for the available throughput. Reduce the frequency or size of your +// requests. For more information, see Streams Limits (http://docs.aws.amazon.com/kinesis/latest/dev/service-sizes-and-limits.html) +// in the Amazon Kinesis Streams Developer Guide, and Error Retries and Exponential +// Backoff in AWS (http://docs.aws.amazon.com/general/latest/gr/api-retries.html) +// in the AWS General Reference. +// func (c *Kinesis) GetShardIterator(input *GetShardIteratorInput) (*GetShardIteratorOutput, error) { req, out := c.GetShardIteratorRequest(input) err := req.Send() @@ -669,6 +921,8 @@ const opIncreaseStreamRetentionPeriod = "IncreaseStreamRetentionPeriod" // value can be used to capture response data after the request's "Send" method // is called. // +// See IncreaseStreamRetentionPeriod for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -705,6 +959,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 +972,32 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Kinesis's +// API operation IncreaseStreamRetentionPeriod for usage and error information. +// +// Returned Error Codes: +// * ResourceInUseException +// The resource is not available for this operation. For successful operation, +// the resource needs to be in the ACTIVE state. +// +// * ResourceNotFoundException +// The requested resource could not be found. The stream might not be specified +// correctly, or it might not be in the ACTIVE state if the operation requires +// it. +// +// * LimitExceededException +// The requested resource exceeds the maximum number allowed, or the number +// of concurrent stream requests exceeds the maximum number allowed (5). +// +// * InvalidArgumentException +// A specified parameter exceeds its restrictions, is not supported, or can't +// be used. For more information, see the returned message. +// func (c *Kinesis) IncreaseStreamRetentionPeriod(input *IncreaseStreamRetentionPeriodInput) (*IncreaseStreamRetentionPeriodOutput, error) { req, out := c.IncreaseStreamRetentionPeriodRequest(input) err := req.Send() @@ -729,6 +1011,8 @@ const opListStreams = "ListStreams" // value can be used to capture response data after the request's "Send" method // is called. // +// See ListStreams for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -769,6 +1053,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 +1071,19 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Kinesis's +// API operation ListStreams for usage and error information. +// +// Returned Error Codes: +// * LimitExceededException +// The requested resource exceeds the maximum number allowed, or the number +// of concurrent stream requests exceeds the maximum number allowed (5). +// func (c *Kinesis) ListStreams(input *ListStreamsInput) (*ListStreamsOutput, error) { req, out := c.ListStreamsRequest(input) err := req.Send() @@ -823,6 +1122,8 @@ const opListTagsForStream = "ListTagsForStream" // value can be used to capture response data after the request's "Send" method // is called. // +// See ListTagsForStream for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -857,7 +1158,31 @@ func (c *Kinesis) ListTagsForStreamRequest(input *ListTagsForStreamInput) (req * return } +// ListTagsForStream API operation for Amazon Kinesis. +// // Lists the tags for the specified Amazon Kinesis stream. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Kinesis's +// API operation ListTagsForStream for usage and error information. +// +// Returned Error Codes: +// * ResourceNotFoundException +// The requested resource could not be found. The stream might not be specified +// correctly, or it might not be in the ACTIVE state if the operation requires +// it. +// +// * InvalidArgumentException +// A specified parameter exceeds its restrictions, is not supported, or can't +// be used. For more information, see the returned message. +// +// * LimitExceededException +// The requested resource exceeds the maximum number allowed, or the number +// of concurrent stream requests exceeds the maximum number allowed (5). +// func (c *Kinesis) ListTagsForStream(input *ListTagsForStreamInput) (*ListTagsForStreamOutput, error) { req, out := c.ListTagsForStreamRequest(input) err := req.Send() @@ -871,6 +1196,8 @@ const opMergeShards = "MergeShards" // value can be used to capture response data after the request's "Send" method // is called. // +// See MergeShards for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -907,6 +1234,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 +1272,32 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Kinesis's +// API operation MergeShards for usage and error information. +// +// Returned Error Codes: +// * ResourceNotFoundException +// The requested resource could not be found. The stream might not be specified +// correctly, or it might not be in the ACTIVE state if the operation requires +// it. +// +// * ResourceInUseException +// The resource is not available for this operation. For successful operation, +// the resource needs to be in the ACTIVE state. +// +// * InvalidArgumentException +// A specified parameter exceeds its restrictions, is not supported, or can't +// be used. For more information, see the returned message. +// +// * LimitExceededException +// The requested resource exceeds the maximum number allowed, or the number +// of concurrent stream requests exceeds the maximum number allowed (5). +// func (c *Kinesis) MergeShards(input *MergeShardsInput) (*MergeShardsOutput, error) { req, out := c.MergeShardsRequest(input) err := req.Send() @@ -956,6 +1311,8 @@ const opPutRecord = "PutRecord" // value can be used to capture response data after the request's "Send" method // is called. // +// See PutRecord for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -990,6 +1347,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 +1387,32 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Kinesis's +// API operation PutRecord for usage and error information. +// +// Returned Error Codes: +// * ResourceNotFoundException +// The requested resource could not be found. The stream might not be specified +// correctly, or it might not be in the ACTIVE state if the operation requires +// it. +// +// * InvalidArgumentException +// A specified parameter exceeds its restrictions, is not supported, or can't +// be used. For more information, see the returned message. +// +// * ProvisionedThroughputExceededException +// The request rate for the stream is too high, or the requested data is too +// large for the available throughput. Reduce the frequency or size of your +// requests. For more information, see Streams Limits (http://docs.aws.amazon.com/kinesis/latest/dev/service-sizes-and-limits.html) +// in the Amazon Kinesis Streams Developer Guide, and Error Retries and Exponential +// Backoff in AWS (http://docs.aws.amazon.com/general/latest/gr/api-retries.html) +// in the AWS General Reference. +// func (c *Kinesis) PutRecord(input *PutRecordInput) (*PutRecordOutput, error) { req, out := c.PutRecordRequest(input) err := req.Send() @@ -1041,6 +1426,8 @@ const opPutRecords = "PutRecords" // value can be used to capture response data after the request's "Send" method // is called. // +// See PutRecords for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1075,6 +1462,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 +1524,32 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Kinesis's +// API operation PutRecords for usage and error information. +// +// Returned Error Codes: +// * ResourceNotFoundException +// The requested resource could not be found. The stream might not be specified +// correctly, or it might not be in the ACTIVE state if the operation requires +// it. +// +// * InvalidArgumentException +// A specified parameter exceeds its restrictions, is not supported, or can't +// be used. For more information, see the returned message. +// +// * ProvisionedThroughputExceededException +// The request rate for the stream is too high, or the requested data is too +// large for the available throughput. Reduce the frequency or size of your +// requests. For more information, see Streams Limits (http://docs.aws.amazon.com/kinesis/latest/dev/service-sizes-and-limits.html) +// in the Amazon Kinesis Streams Developer Guide, and Error Retries and Exponential +// Backoff in AWS (http://docs.aws.amazon.com/general/latest/gr/api-retries.html) +// in the AWS General Reference. +// func (c *Kinesis) PutRecords(input *PutRecordsInput) (*PutRecordsOutput, error) { req, out := c.PutRecordsRequest(input) err := req.Send() @@ -1148,6 +1563,8 @@ const opRemoveTagsFromStream = "RemoveTagsFromStream" // value can be used to capture response data after the request's "Send" method // is called. // +// See RemoveTagsFromStream for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1184,10 +1601,38 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Kinesis's +// API operation RemoveTagsFromStream for usage and error information. +// +// Returned Error Codes: +// * ResourceNotFoundException +// The requested resource could not be found. The stream might not be specified +// correctly, or it might not be in the ACTIVE state if the operation requires +// it. +// +// * ResourceInUseException +// The resource is not available for this operation. For successful operation, +// the resource needs to be in the ACTIVE state. +// +// * InvalidArgumentException +// A specified parameter exceeds its restrictions, is not supported, or can't +// be used. For more information, see the returned message. +// +// * LimitExceededException +// The requested resource exceeds the maximum number allowed, or the number +// of concurrent stream requests exceeds the maximum number allowed (5). +// func (c *Kinesis) RemoveTagsFromStream(input *RemoveTagsFromStreamInput) (*RemoveTagsFromStreamOutput, error) { req, out := c.RemoveTagsFromStreamRequest(input) err := req.Send() @@ -1201,6 +1646,8 @@ const opSplitShard = "SplitShard" // value can be used to capture response data after the request's "Send" method // is called. // +// See SplitShard for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1237,6 +1684,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 +1731,32 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Kinesis's +// API operation SplitShard for usage and error information. +// +// Returned Error Codes: +// * ResourceNotFoundException +// The requested resource could not be found. The stream might not be specified +// correctly, or it might not be in the ACTIVE state if the operation requires +// it. +// +// * ResourceInUseException +// The resource is not available for this operation. For successful operation, +// the resource needs to be in the ACTIVE state. +// +// * InvalidArgumentException +// A specified parameter exceeds its restrictions, is not supported, or can't +// be used. For more information, see the returned message. +// +// * LimitExceededException +// The requested resource exceeds the maximum number allowed, or the number +// of concurrent stream requests exceeds the maximum number allowed (5). +// 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..93a4fa01068 100644 --- a/service/kinesisanalytics/api.go +++ b/service/kinesisanalytics/api.go @@ -18,6 +18,8 @@ const opAddApplicationInput = "AddApplicationInput" // value can be used to capture response data after the request's "Send" method // is called. // +// See AddApplicationInput for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -52,6 +54,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 +69,29 @@ func (c *KinesisAnalytics) AddApplicationInputRequest(input *AddApplicationInput // // This operation requires permissions to perform the kinesisanalytics:AddApplicationInput // action. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Kinesis Analytics's +// API operation AddApplicationInput for usage and error information. +// +// Returned Error Codes: +// * ResourceNotFoundException +// Specified application can't be found. +// +// * ResourceInUseException +// Application is not available for this operation. +// +// * InvalidArgumentException +// Specified input parameter value is invalid. +// +// * ConcurrentModificationException +// Exception thrown as a result of concurrent modification to an application. +// For example, two individuals attempting to edit the same application at the +// same time. +// func (c *KinesisAnalytics) AddApplicationInput(input *AddApplicationInputInput) (*AddApplicationInputOutput, error) { req, out := c.AddApplicationInputRequest(input) err := req.Send() @@ -78,6 +105,8 @@ const opAddApplicationOutput = "AddApplicationOutput" // value can be used to capture response data after the request's "Send" method // is called. // +// See AddApplicationOutput for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -112,6 +141,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 +166,29 @@ func (c *KinesisAnalytics) AddApplicationOutputRequest(input *AddApplicationOutp // // This operation requires permissions to perform the kinesisanalytics:AddApplicationOutput // action. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Kinesis Analytics's +// API operation AddApplicationOutput for usage and error information. +// +// Returned Error Codes: +// * ResourceNotFoundException +// Specified application can't be found. +// +// * ResourceInUseException +// Application is not available for this operation. +// +// * InvalidArgumentException +// Specified input parameter value is invalid. +// +// * ConcurrentModificationException +// Exception thrown as a result of concurrent modification to an application. +// For example, two individuals attempting to edit the same application at the +// same time. +// func (c *KinesisAnalytics) AddApplicationOutput(input *AddApplicationOutputInput) (*AddApplicationOutputOutput, error) { req, out := c.AddApplicationOutputRequest(input) err := req.Send() @@ -148,6 +202,8 @@ const opAddApplicationReferenceDataSource = "AddApplicationReferenceDataSource" // value can be used to capture response data after the request's "Send" method // is called. // +// See AddApplicationReferenceDataSource for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -182,6 +238,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 +255,29 @@ func (c *KinesisAnalytics) AddApplicationReferenceDataSourceRequest(input *AddAp // // This operation requires permissions to perform the kinesisanalytics:AddApplicationOutput // action. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Kinesis Analytics's +// API operation AddApplicationReferenceDataSource for usage and error information. +// +// Returned Error Codes: +// * ResourceNotFoundException +// Specified application can't be found. +// +// * ResourceInUseException +// Application is not available for this operation. +// +// * InvalidArgumentException +// Specified input parameter value is invalid. +// +// * ConcurrentModificationException +// Exception thrown as a result of concurrent modification to an application. +// For example, two individuals attempting to edit the same application at the +// same time. +// func (c *KinesisAnalytics) AddApplicationReferenceDataSource(input *AddApplicationReferenceDataSourceInput) (*AddApplicationReferenceDataSourceOutput, error) { req, out := c.AddApplicationReferenceDataSourceRequest(input) err := req.Send() @@ -210,6 +291,8 @@ const opCreateApplication = "CreateApplication" // value can be used to capture response data after the request's "Send" method // is called. // +// See CreateApplication for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -244,6 +327,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 +356,28 @@ 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). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Kinesis Analytics's +// API operation CreateApplication for usage and error information. +// +// Returned Error Codes: +// * CodeValidationException +// User-provided application code (query) is invalid. This can be a simple syntax +// error. +// +// * ResourceInUseException +// Application is not available for this operation. +// +// * LimitExceededException +// Exceeded the number of applications allowed. +// +// * InvalidArgumentException +// Specified input parameter value is invalid. +// func (c *KinesisAnalytics) CreateApplication(input *CreateApplicationInput) (*CreateApplicationOutput, error) { req, out := c.CreateApplicationRequest(input) err := req.Send() @@ -284,6 +391,8 @@ const opDeleteApplication = "DeleteApplication" // value can be used to capture response data after the request's "Send" method // is called. // +// See DeleteApplication for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -318,12 +427,34 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Kinesis Analytics's +// API operation DeleteApplication for usage and error information. +// +// Returned Error Codes: +// * ConcurrentModificationException +// Exception thrown as a result of concurrent modification to an application. +// For example, two individuals attempting to edit the same application at the +// same time. +// +// * ResourceNotFoundException +// Specified application can't be found. +// +// * ResourceInUseException +// Application is not available for this operation. +// func (c *KinesisAnalytics) DeleteApplication(input *DeleteApplicationInput) (*DeleteApplicationOutput, error) { req, out := c.DeleteApplicationRequest(input) err := req.Send() @@ -337,6 +468,8 @@ const opDeleteApplicationOutput = "DeleteApplicationOutput" // value can be used to capture response data after the request's "Send" method // is called. // +// See DeleteApplicationOutput for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -371,12 +504,34 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Kinesis Analytics's +// API operation DeleteApplicationOutput for usage and error information. +// +// Returned Error Codes: +// * ResourceNotFoundException +// Specified application can't be found. +// +// * ResourceInUseException +// Application is not available for this operation. +// +// * ConcurrentModificationException +// Exception thrown as a result of concurrent modification to an application. +// For example, two individuals attempting to edit the same application at the +// same time. +// func (c *KinesisAnalytics) DeleteApplicationOutput(input *DeleteApplicationOutputInput) (*DeleteApplicationOutputOutput, error) { req, out := c.DeleteApplicationOutputRequest(input) err := req.Send() @@ -390,6 +545,8 @@ const opDeleteApplicationReferenceDataSource = "DeleteApplicationReferenceDataSo // value can be used to capture response data after the request's "Send" method // is called. // +// See DeleteApplicationReferenceDataSource for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -424,6 +581,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 +592,29 @@ func (c *KinesisAnalytics) DeleteApplicationReferenceDataSourceRequest(input *De // // This operation requires permissions to perform the kinesisanalytics.DeleteApplicationReferenceDataSource // action. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Kinesis Analytics's +// API operation DeleteApplicationReferenceDataSource for usage and error information. +// +// Returned Error Codes: +// * ResourceNotFoundException +// Specified application can't be found. +// +// * ResourceInUseException +// Application is not available for this operation. +// +// * InvalidArgumentException +// Specified input parameter value is invalid. +// +// * ConcurrentModificationException +// Exception thrown as a result of concurrent modification to an application. +// For example, two individuals attempting to edit the same application at the +// same time. +// func (c *KinesisAnalytics) DeleteApplicationReferenceDataSource(input *DeleteApplicationReferenceDataSourceInput) (*DeleteApplicationReferenceDataSourceOutput, error) { req, out := c.DeleteApplicationReferenceDataSourceRequest(input) err := req.Send() @@ -446,6 +628,8 @@ const opDescribeApplication = "DescribeApplication" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeApplication for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -480,6 +664,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 +674,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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Kinesis Analytics's +// API operation DescribeApplication for usage and error information. +// +// Returned Error Codes: +// * ResourceNotFoundException +// Specified application can't be found. +// func (c *KinesisAnalytics) DescribeApplication(input *DescribeApplicationInput) (*DescribeApplicationOutput, error) { req, out := c.DescribeApplicationRequest(input) err := req.Send() @@ -501,6 +699,8 @@ const opDiscoverInputSchema = "DiscoverInputSchema" // value can be used to capture response data after the request's "Send" method // is called. // +// See DiscoverInputSchema for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -535,6 +735,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 +751,26 @@ func (c *KinesisAnalytics) DiscoverInputSchemaRequest(input *DiscoverInputSchema // // This operation requires permissions to perform the kinesisanalytics:DiscoverInputSchema // action. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Kinesis Analytics's +// API operation DiscoverInputSchema for usage and error information. +// +// Returned Error Codes: +// * InvalidArgumentException +// Specified input parameter value is invalid. +// +// * UnableToDetectSchemaException +// Data format is not valid, Kinesis Analytics is not able to detect schema +// for the given streaming source. +// +// * ResourceProvisionedThroughputExceededException +// Discovery failed to get a record from the streaming source because of the +// Kinesis Streams ProvisionedThroughputExceededException. +// func (c *KinesisAnalytics) DiscoverInputSchema(input *DiscoverInputSchemaInput) (*DiscoverInputSchemaOutput, error) { req, out := c.DiscoverInputSchemaRequest(input) err := req.Send() @@ -562,6 +784,8 @@ const opListApplications = "ListApplications" // value can be used to capture response data after the request's "Send" method // is called. // +// See ListApplications for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -596,6 +820,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 +833,13 @@ func (c *KinesisAnalytics) ListApplicationsRequest(input *ListApplicationsInput) // // This operation requires permissions to perform the kinesisanalytics:ListApplications // action. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Kinesis Analytics's +// API operation ListApplications for usage and error information. func (c *KinesisAnalytics) ListApplications(input *ListApplicationsInput) (*ListApplicationsOutput, error) { req, out := c.ListApplicationsRequest(input) err := req.Send() @@ -620,6 +853,8 @@ const opStartApplication = "StartApplication" // value can be used to capture response data after the request's "Send" method // is called. // +// See StartApplication for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -654,6 +889,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 +906,27 @@ func (c *KinesisAnalytics) StartApplicationRequest(input *StartApplicationInput) // // This operation requires permissions to perform the kinesisanalytics:StartApplication // action. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Kinesis Analytics's +// API operation StartApplication for usage and error information. +// +// Returned Error Codes: +// * ResourceNotFoundException +// Specified application can't be found. +// +// * ResourceInUseException +// Application is not available for this operation. +// +// * InvalidArgumentException +// Specified input parameter value is invalid. +// +// * InvalidApplicationConfigurationException +// User-provided application configuration is not valid. +// func (c *KinesisAnalytics) StartApplication(input *StartApplicationInput) (*StartApplicationOutput, error) { req, out := c.StartApplicationRequest(input) err := req.Send() @@ -682,6 +940,8 @@ const opStopApplication = "StopApplication" // value can be used to capture response data after the request's "Send" method // is called. // +// See StopApplication for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -716,6 +976,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 +986,21 @@ func (c *KinesisAnalytics) StopApplicationRequest(input *StopApplicationInput) ( // // This operation requires permissions to perform the kinesisanalytics:StopApplication // action. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Kinesis Analytics's +// API operation StopApplication for usage and error information. +// +// Returned Error Codes: +// * ResourceNotFoundException +// Specified application can't be found. +// +// * ResourceInUseException +// Application is not available for this operation. +// func (c *KinesisAnalytics) StopApplication(input *StopApplicationInput) (*StopApplicationOutput, error) { req, out := c.StopApplicationRequest(input) err := req.Send() @@ -737,6 +1014,8 @@ const opUpdateApplication = "UpdateApplication" // value can be used to capture response data after the request's "Send" method // is called. // +// See UpdateApplication for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -771,6 +1050,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 +1060,33 @@ func (c *KinesisAnalytics) UpdateApplicationRequest(input *UpdateApplicationInpu // // This opeation requires permission for the kinesisanalytics:UpdateApplication // action. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Kinesis Analytics's +// API operation UpdateApplication for usage and error information. +// +// Returned Error Codes: +// * CodeValidationException +// User-provided application code (query) is invalid. This can be a simple syntax +// error. +// +// * ResourceNotFoundException +// Specified application can't be found. +// +// * ResourceInUseException +// Application is not available for this operation. +// +// * InvalidArgumentException +// Specified input parameter value is invalid. +// +// * ConcurrentModificationException +// Exception thrown as a result of concurrent modification to an application. +// For example, two individuals attempting to edit the same application at the +// same time. +// 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..a11bddc4119 100644 --- a/service/kms/api.go +++ b/service/kms/api.go @@ -19,6 +19,8 @@ const opCancelKeyDeletion = "CancelKeyDeletion" // value can be used to capture response data after the request's "Send" method // is called. // +// See CancelKeyDeletion for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -53,6 +55,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 +64,38 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Key Management Service's +// API operation CancelKeyDeletion for usage and error information. +// +// Returned Error Codes: +// * NotFoundException +// The request was rejected because the specified entity or resource could not +// be found. +// +// * InvalidArnException +// The request was rejected because a specified ARN was not valid. +// +// * DependencyTimeoutException +// The system timed out while trying to fulfill the request. The request can +// be retried. +// +// * InternalException +// The request was rejected because an internal exception occurred. The request +// can be retried. +// +// * InvalidStateException +// The request was rejected because the state of the specified resource is not +// valid for this request. +// +// For more information about how key state affects the use of a CMK, see How +// Key State Affects Use of a Customer Master Key (http://docs.aws.amazon.com/kms/latest/developerguide/key-state.html) +// in the AWS Key Management Service Developer Guide. +// func (c *KMS) CancelKeyDeletion(input *CancelKeyDeletionInput) (*CancelKeyDeletionOutput, error) { req, out := c.CancelKeyDeletionRequest(input) err := req.Send() @@ -73,6 +109,8 @@ const opCreateAlias = "CreateAlias" // value can be used to capture response data after the request's "Send" method // is called. // +// See CreateAlias for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -109,6 +147,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 +161,47 @@ func (c *KMS) CreateAliasRequest(input *CreateAliasInput) (req *request.Request, // the same region. // // To map an alias to a different key, call UpdateAlias. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Key Management Service's +// API operation CreateAlias for usage and error information. +// +// Returned Error Codes: +// * DependencyTimeoutException +// The system timed out while trying to fulfill the request. The request can +// be retried. +// +// * AlreadyExistsException +// The request was rejected because it attempted to create a resource that already +// exists. +// +// * NotFoundException +// The request was rejected because the specified entity or resource could not +// be found. +// +// * InvalidAliasNameException +// The request was rejected because the specified alias name is not valid. +// +// * InternalException +// The request was rejected because an internal exception occurred. The request +// can be retried. +// +// * LimitExceededException +// The request was rejected because a limit was exceeded. For more information, +// see Limits (http://docs.aws.amazon.com/kms/latest/developerguide/limits.html) +// in the AWS Key Management Service Developer Guide. +// +// * InvalidStateException +// The request was rejected because the state of the specified resource is not +// valid for this request. +// +// For more information about how key state affects the use of a CMK, see How +// Key State Affects Use of a Customer Master Key (http://docs.aws.amazon.com/kms/latest/developerguide/key-state.html) +// in the AWS Key Management Service Developer Guide. +// func (c *KMS) CreateAlias(input *CreateAliasInput) (*CreateAliasOutput, error) { req, out := c.CreateAliasRequest(input) err := req.Send() @@ -134,6 +215,8 @@ const opCreateGrant = "CreateGrant" // value can be used to capture response data after the request's "Send" method // is called. // +// See CreateGrant for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -168,11 +251,56 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Key Management Service's +// API operation CreateGrant for usage and error information. +// +// Returned Error Codes: +// * NotFoundException +// The request was rejected because the specified entity or resource could not +// be found. +// +// * DisabledException +// The request was rejected because the specified CMK is not enabled. +// +// * DependencyTimeoutException +// The system timed out while trying to fulfill the request. The request can +// be retried. +// +// * InvalidArnException +// The request was rejected because a specified ARN was not valid. +// +// * InternalException +// The request was rejected because an internal exception occurred. The request +// can be retried. +// +// * InvalidGrantTokenException +// The request was rejected because the specified grant token is not valid. +// +// * LimitExceededException +// The request was rejected because a limit was exceeded. For more information, +// see Limits (http://docs.aws.amazon.com/kms/latest/developerguide/limits.html) +// in the AWS Key Management Service Developer Guide. +// +// * InvalidStateException +// The request was rejected because the state of the specified resource is not +// valid for this request. +// +// For more information about how key state affects the use of a CMK, see How +// Key State Affects Use of a Customer Master Key (http://docs.aws.amazon.com/kms/latest/developerguide/key-state.html) +// in the AWS Key Management Service Developer Guide. +// func (c *KMS) CreateGrant(input *CreateGrantInput) (*CreateGrantOutput, error) { req, out := c.CreateGrantRequest(input) err := req.Send() @@ -186,6 +314,8 @@ const opCreateKey = "CreateKey" // value can be used to capture response data after the request's "Send" method // is called. // +// See CreateKey for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -220,6 +350,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 +363,39 @@ 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 +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Key Management Service's +// API operation CreateKey for usage and error information. +// +// Returned Error Codes: +// * MalformedPolicyDocumentException +// The request was rejected because the specified policy is not syntactically +// or semantically correct. +// +// * DependencyTimeoutException +// The system timed out while trying to fulfill the request. The request can +// be retried. +// +// * InvalidArnException +// The request was rejected because a specified ARN was not valid. +// +// * UnsupportedOperationException +// The request was rejected because a specified parameter is not supported or +// a specified resource is not valid for this operation. +// +// * InternalException +// The request was rejected because an internal exception occurred. The request +// can be retried. +// +// * LimitExceededException +// The request was rejected because a limit was exceeded. For more information, +// see Limits (http://docs.aws.amazon.com/kms/latest/developerguide/limits.html) +// in the AWS Key Management Service Developer Guide. +// func (c *KMS) CreateKey(input *CreateKeyInput) (*CreateKeyOutput, error) { req, out := c.CreateKeyRequest(input) err := req.Send() @@ -244,6 +409,8 @@ const opDecrypt = "Decrypt" // value can be used to capture response data after the request's "Send" method // is called. // +// See Decrypt for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -278,6 +445,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 +464,49 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Key Management Service's +// API operation Decrypt for usage and error information. +// +// Returned Error Codes: +// * NotFoundException +// The request was rejected because the specified entity or resource could not +// be found. +// +// * DisabledException +// The request was rejected because the specified CMK is not enabled. +// +// * InvalidCiphertextException +// The request was rejected because the specified ciphertext has been corrupted +// or is otherwise invalid. +// +// * KeyUnavailableException +// The request was rejected because the specified CMK was not available. The +// request can be retried. +// +// * DependencyTimeoutException +// The system timed out while trying to fulfill the request. The request can +// be retried. +// +// * InvalidGrantTokenException +// The request was rejected because the specified grant token is not valid. +// +// * InternalException +// The request was rejected because an internal exception occurred. The request +// can be retried. +// +// * InvalidStateException +// The request was rejected because the state of the specified resource is not +// valid for this request. +// +// For more information about how key state affects the use of a CMK, see How +// Key State Affects Use of a Customer Master Key (http://docs.aws.amazon.com/kms/latest/developerguide/key-state.html) +// in the AWS Key Management Service Developer Guide. +// func (c *KMS) Decrypt(input *DecryptInput) (*DecryptOutput, error) { req, out := c.DecryptRequest(input) err := req.Send() @@ -308,6 +520,8 @@ const opDeleteAlias = "DeleteAlias" // value can be used to capture response data after the request's "Send" method // is called. // +// See DeleteAlias for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -344,7 +558,38 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Key Management Service's +// API operation DeleteAlias for usage and error information. +// +// Returned Error Codes: +// * DependencyTimeoutException +// The system timed out while trying to fulfill the request. The request can +// be retried. +// +// * NotFoundException +// The request was rejected because the specified entity or resource could not +// be found. +// +// * InternalException +// The request was rejected because an internal exception occurred. The request +// can be retried. +// +// * InvalidStateException +// The request was rejected because the state of the specified resource is not +// valid for this request. +// +// For more information about how key state affects the use of a CMK, see How +// Key State Affects Use of a Customer Master Key (http://docs.aws.amazon.com/kms/latest/developerguide/key-state.html) +// in the AWS Key Management Service Developer Guide. +// func (c *KMS) DeleteAlias(input *DeleteAliasInput) (*DeleteAliasOutput, error) { req, out := c.DeleteAliasRequest(input) err := req.Send() @@ -358,6 +603,8 @@ const opDeleteImportedKeyMaterial = "DeleteImportedKeyMaterial" // value can be used to capture response data after the request's "Send" method // is called. // +// See DeleteImportedKeyMaterial for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -394,6 +641,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 +653,42 @@ func (c *KMS) DeleteImportedKeyMaterialRequest(input *DeleteImportedKeyMaterialI // // After you delete key material, you can use ImportKeyMaterial to reimport // the same key material into the CMK. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Key Management Service's +// API operation DeleteImportedKeyMaterial for usage and error information. +// +// Returned Error Codes: +// * InvalidArnException +// The request was rejected because a specified ARN was not valid. +// +// * UnsupportedOperationException +// The request was rejected because a specified parameter is not supported or +// a specified resource is not valid for this operation. +// +// * DependencyTimeoutException +// The system timed out while trying to fulfill the request. The request can +// be retried. +// +// * NotFoundException +// The request was rejected because the specified entity or resource could not +// be found. +// +// * InternalException +// The request was rejected because an internal exception occurred. The request +// can be retried. +// +// * InvalidStateException +// The request was rejected because the state of the specified resource is not +// valid for this request. +// +// For more information about how key state affects the use of a CMK, see How +// Key State Affects Use of a Customer Master Key (http://docs.aws.amazon.com/kms/latest/developerguide/key-state.html) +// in the AWS Key Management Service Developer Guide. +// func (c *KMS) DeleteImportedKeyMaterial(input *DeleteImportedKeyMaterialInput) (*DeleteImportedKeyMaterialOutput, error) { req, out := c.DeleteImportedKeyMaterialRequest(input) err := req.Send() @@ -417,6 +702,8 @@ const opDescribeKey = "DescribeKey" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeKey for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -451,7 +738,33 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Key Management Service's +// API operation DescribeKey for usage and error information. +// +// Returned Error Codes: +// * NotFoundException +// The request was rejected because the specified entity or resource could not +// be found. +// +// * InvalidArnException +// The request was rejected because a specified ARN was not valid. +// +// * DependencyTimeoutException +// The system timed out while trying to fulfill the request. The request can +// be retried. +// +// * InternalException +// The request was rejected because an internal exception occurred. The request +// can be retried. +// func (c *KMS) DescribeKey(input *DescribeKeyInput) (*DescribeKeyOutput, error) { req, out := c.DescribeKeyRequest(input) err := req.Send() @@ -465,6 +778,8 @@ const opDisableKey = "DisableKey" // value can be used to capture response data after the request's "Send" method // is called. // +// See DisableKey for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -501,11 +816,45 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Key Management Service's +// API operation DisableKey for usage and error information. +// +// Returned Error Codes: +// * NotFoundException +// The request was rejected because the specified entity or resource could not +// be found. +// +// * InvalidArnException +// The request was rejected because a specified ARN was not valid. +// +// * DependencyTimeoutException +// The system timed out while trying to fulfill the request. The request can +// be retried. +// +// * InternalException +// The request was rejected because an internal exception occurred. The request +// can be retried. +// +// * InvalidStateException +// The request was rejected because the state of the specified resource is not +// valid for this request. +// +// For more information about how key state affects the use of a CMK, see How +// Key State Affects Use of a Customer Master Key (http://docs.aws.amazon.com/kms/latest/developerguide/key-state.html) +// in the AWS Key Management Service Developer Guide. +// func (c *KMS) DisableKey(input *DisableKeyInput) (*DisableKeyOutput, error) { req, out := c.DisableKeyRequest(input) err := req.Send() @@ -519,6 +868,8 @@ const opDisableKeyRotation = "DisableKeyRotation" // value can be used to capture response data after the request's "Send" method // is called. // +// See DisableKeyRotation for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -555,7 +906,48 @@ func (c *KMS) DisableKeyRotationRequest(input *DisableKeyRotationInput) (req *re return } +// DisableKeyRotation API operation for AWS Key Management Service. +// // Disables rotation of the specified key. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Key Management Service's +// API operation DisableKeyRotation for usage and error information. +// +// Returned Error Codes: +// * NotFoundException +// The request was rejected because the specified entity or resource could not +// be found. +// +// * DisabledException +// The request was rejected because the specified CMK is not enabled. +// +// * InvalidArnException +// The request was rejected because a specified ARN was not valid. +// +// * DependencyTimeoutException +// The system timed out while trying to fulfill the request. The request can +// be retried. +// +// * InternalException +// The request was rejected because an internal exception occurred. The request +// can be retried. +// +// * InvalidStateException +// The request was rejected because the state of the specified resource is not +// valid for this request. +// +// For more information about how key state affects the use of a CMK, see How +// Key State Affects Use of a Customer Master Key (http://docs.aws.amazon.com/kms/latest/developerguide/key-state.html) +// in the AWS Key Management Service Developer Guide. +// +// * UnsupportedOperationException +// The request was rejected because a specified parameter is not supported or +// a specified resource is not valid for this operation. +// func (c *KMS) DisableKeyRotation(input *DisableKeyRotationInput) (*DisableKeyRotationOutput, error) { req, out := c.DisableKeyRotationRequest(input) err := req.Send() @@ -569,6 +961,8 @@ const opEnableKey = "EnableKey" // value can be used to capture response data after the request's "Send" method // is called. // +// See EnableKey for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -605,7 +999,46 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Key Management Service's +// API operation EnableKey for usage and error information. +// +// Returned Error Codes: +// * NotFoundException +// The request was rejected because the specified entity or resource could not +// be found. +// +// * InvalidArnException +// The request was rejected because a specified ARN was not valid. +// +// * DependencyTimeoutException +// The system timed out while trying to fulfill the request. The request can +// be retried. +// +// * InternalException +// The request was rejected because an internal exception occurred. The request +// can be retried. +// +// * LimitExceededException +// The request was rejected because a limit was exceeded. For more information, +// see Limits (http://docs.aws.amazon.com/kms/latest/developerguide/limits.html) +// in the AWS Key Management Service Developer Guide. +// +// * InvalidStateException +// The request was rejected because the state of the specified resource is not +// valid for this request. +// +// For more information about how key state affects the use of a CMK, see How +// Key State Affects Use of a Customer Master Key (http://docs.aws.amazon.com/kms/latest/developerguide/key-state.html) +// in the AWS Key Management Service Developer Guide. +// func (c *KMS) EnableKey(input *EnableKeyInput) (*EnableKeyOutput, error) { req, out := c.EnableKeyRequest(input) err := req.Send() @@ -619,6 +1052,8 @@ const opEnableKeyRotation = "EnableKeyRotation" // value can be used to capture response data after the request's "Send" method // is called. // +// See EnableKeyRotation for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -655,7 +1090,48 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Key Management Service's +// API operation EnableKeyRotation for usage and error information. +// +// Returned Error Codes: +// * NotFoundException +// The request was rejected because the specified entity or resource could not +// be found. +// +// * DisabledException +// The request was rejected because the specified CMK is not enabled. +// +// * InvalidArnException +// The request was rejected because a specified ARN was not valid. +// +// * DependencyTimeoutException +// The system timed out while trying to fulfill the request. The request can +// be retried. +// +// * InternalException +// The request was rejected because an internal exception occurred. The request +// can be retried. +// +// * InvalidStateException +// The request was rejected because the state of the specified resource is not +// valid for this request. +// +// For more information about how key state affects the use of a CMK, see How +// Key State Affects Use of a Customer Master Key (http://docs.aws.amazon.com/kms/latest/developerguide/key-state.html) +// in the AWS Key Management Service Developer Guide. +// +// * UnsupportedOperationException +// The request was rejected because a specified parameter is not supported or +// a specified resource is not valid for this operation. +// func (c *KMS) EnableKeyRotation(input *EnableKeyRotationInput) (*EnableKeyRotationOutput, error) { req, out := c.EnableKeyRotationRequest(input) err := req.Send() @@ -669,6 +1145,8 @@ const opEncrypt = "Encrypt" // value can be used to capture response data after the request's "Send" method // is called. // +// See Encrypt for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -703,6 +1181,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 +1203,48 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Key Management Service's +// API operation Encrypt for usage and error information. +// +// Returned Error Codes: +// * NotFoundException +// The request was rejected because the specified entity or resource could not +// be found. +// +// * DisabledException +// The request was rejected because the specified CMK is not enabled. +// +// * KeyUnavailableException +// The request was rejected because the specified CMK was not available. The +// request can be retried. +// +// * DependencyTimeoutException +// The system timed out while trying to fulfill the request. The request can +// be retried. +// +// * InvalidKeyUsageException +// The request was rejected because the specified KeySpec value is not valid. +// +// * InvalidGrantTokenException +// The request was rejected because the specified grant token is not valid. +// +// * InternalException +// The request was rejected because an internal exception occurred. The request +// can be retried. +// +// * InvalidStateException +// The request was rejected because the state of the specified resource is not +// valid for this request. +// +// For more information about how key state affects the use of a CMK, see How +// Key State Affects Use of a Customer Master Key (http://docs.aws.amazon.com/kms/latest/developerguide/key-state.html) +// in the AWS Key Management Service Developer Guide. +// func (c *KMS) Encrypt(input *EncryptInput) (*EncryptOutput, error) { req, out := c.EncryptRequest(input) err := req.Send() @@ -736,6 +1258,8 @@ const opGenerateDataKey = "GenerateDataKey" // value can be used to capture response data after the request's "Send" method // is called. // +// See GenerateDataKey for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -770,6 +1294,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 +1340,48 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Key Management Service's +// API operation GenerateDataKey for usage and error information. +// +// Returned Error Codes: +// * NotFoundException +// The request was rejected because the specified entity or resource could not +// be found. +// +// * DisabledException +// The request was rejected because the specified CMK is not enabled. +// +// * KeyUnavailableException +// The request was rejected because the specified CMK was not available. The +// request can be retried. +// +// * DependencyTimeoutException +// The system timed out while trying to fulfill the request. The request can +// be retried. +// +// * InvalidKeyUsageException +// The request was rejected because the specified KeySpec value is not valid. +// +// * InvalidGrantTokenException +// The request was rejected because the specified grant token is not valid. +// +// * InternalException +// The request was rejected because an internal exception occurred. The request +// can be retried. +// +// * InvalidStateException +// The request was rejected because the state of the specified resource is not +// valid for this request. +// +// For more information about how key state affects the use of a CMK, see How +// Key State Affects Use of a Customer Master Key (http://docs.aws.amazon.com/kms/latest/developerguide/key-state.html) +// in the AWS Key Management Service Developer Guide. +// func (c *KMS) GenerateDataKey(input *GenerateDataKeyInput) (*GenerateDataKeyOutput, error) { req, out := c.GenerateDataKeyRequest(input) err := req.Send() @@ -827,6 +1395,8 @@ const opGenerateDataKeyWithoutPlaintext = "GenerateDataKeyWithoutPlaintext" // value can be used to capture response data after the request's "Send" method // is called. // +// See GenerateDataKeyWithoutPlaintext for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -861,6 +1431,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 +1448,48 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Key Management Service's +// API operation GenerateDataKeyWithoutPlaintext for usage and error information. +// +// Returned Error Codes: +// * NotFoundException +// The request was rejected because the specified entity or resource could not +// be found. +// +// * DisabledException +// The request was rejected because the specified CMK is not enabled. +// +// * KeyUnavailableException +// The request was rejected because the specified CMK was not available. The +// request can be retried. +// +// * DependencyTimeoutException +// The system timed out while trying to fulfill the request. The request can +// be retried. +// +// * InvalidKeyUsageException +// The request was rejected because the specified KeySpec value is not valid. +// +// * InvalidGrantTokenException +// The request was rejected because the specified grant token is not valid. +// +// * InternalException +// The request was rejected because an internal exception occurred. The request +// can be retried. +// +// * InvalidStateException +// The request was rejected because the state of the specified resource is not +// valid for this request. +// +// For more information about how key state affects the use of a CMK, see How +// Key State Affects Use of a Customer Master Key (http://docs.aws.amazon.com/kms/latest/developerguide/key-state.html) +// in the AWS Key Management Service Developer Guide. +// func (c *KMS) GenerateDataKeyWithoutPlaintext(input *GenerateDataKeyWithoutPlaintextInput) (*GenerateDataKeyWithoutPlaintextOutput, error) { req, out := c.GenerateDataKeyWithoutPlaintextRequest(input) err := req.Send() @@ -889,6 +1503,8 @@ const opGenerateRandom = "GenerateRandom" // value can be used to capture response data after the request's "Send" method // is called. // +// See GenerateRandom for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -923,7 +1539,26 @@ func (c *KMS) GenerateRandomRequest(input *GenerateRandomInput) (req *request.Re return } +// GenerateRandom API operation for AWS Key Management Service. +// // Generates an unpredictable byte string. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Key Management Service's +// API operation GenerateRandom for usage and error information. +// +// Returned Error Codes: +// * DependencyTimeoutException +// The system timed out while trying to fulfill the request. The request can +// be retried. +// +// * InternalException +// The request was rejected because an internal exception occurred. The request +// can be retried. +// func (c *KMS) GenerateRandom(input *GenerateRandomInput) (*GenerateRandomOutput, error) { req, out := c.GenerateRandomRequest(input) err := req.Send() @@ -937,6 +1572,8 @@ const opGetKeyPolicy = "GetKeyPolicy" // value can be used to capture response data after the request's "Send" method // is called. // +// See GetKeyPolicy for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -971,7 +1608,41 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Key Management Service's +// API operation GetKeyPolicy for usage and error information. +// +// Returned Error Codes: +// * NotFoundException +// The request was rejected because the specified entity or resource could not +// be found. +// +// * InvalidArnException +// The request was rejected because a specified ARN was not valid. +// +// * DependencyTimeoutException +// The system timed out while trying to fulfill the request. The request can +// be retried. +// +// * InternalException +// The request was rejected because an internal exception occurred. The request +// can be retried. +// +// * InvalidStateException +// The request was rejected because the state of the specified resource is not +// valid for this request. +// +// For more information about how key state affects the use of a CMK, see How +// Key State Affects Use of a Customer Master Key (http://docs.aws.amazon.com/kms/latest/developerguide/key-state.html) +// in the AWS Key Management Service Developer Guide. +// func (c *KMS) GetKeyPolicy(input *GetKeyPolicyInput) (*GetKeyPolicyOutput, error) { req, out := c.GetKeyPolicyRequest(input) err := req.Send() @@ -985,6 +1656,8 @@ const opGetKeyRotationStatus = "GetKeyRotationStatus" // value can be used to capture response data after the request's "Send" method // is called. // +// See GetKeyRotationStatus for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1019,8 +1692,46 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Key Management Service's +// API operation GetKeyRotationStatus for usage and error information. +// +// Returned Error Codes: +// * NotFoundException +// The request was rejected because the specified entity or resource could not +// be found. +// +// * InvalidArnException +// The request was rejected because a specified ARN was not valid. +// +// * DependencyTimeoutException +// The system timed out while trying to fulfill the request. The request can +// be retried. +// +// * InternalException +// The request was rejected because an internal exception occurred. The request +// can be retried. +// +// * InvalidStateException +// The request was rejected because the state of the specified resource is not +// valid for this request. +// +// For more information about how key state affects the use of a CMK, see How +// Key State Affects Use of a Customer Master Key (http://docs.aws.amazon.com/kms/latest/developerguide/key-state.html) +// in the AWS Key Management Service Developer Guide. +// +// * UnsupportedOperationException +// The request was rejected because a specified parameter is not supported or +// a specified resource is not valid for this operation. +// func (c *KMS) GetKeyRotationStatus(input *GetKeyRotationStatusInput) (*GetKeyRotationStatusOutput, error) { req, out := c.GetKeyRotationStatusRequest(input) err := req.Send() @@ -1034,6 +1745,8 @@ const opGetParametersForImport = "GetParametersForImport" // value can be used to capture response data after the request's "Send" method // is called. // +// See GetParametersForImport for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1068,6 +1781,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 +1799,42 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Key Management Service's +// API operation GetParametersForImport for usage and error information. +// +// Returned Error Codes: +// * InvalidArnException +// The request was rejected because a specified ARN was not valid. +// +// * UnsupportedOperationException +// The request was rejected because a specified parameter is not supported or +// a specified resource is not valid for this operation. +// +// * DependencyTimeoutException +// The system timed out while trying to fulfill the request. The request can +// be retried. +// +// * NotFoundException +// The request was rejected because the specified entity or resource could not +// be found. +// +// * InternalException +// The request was rejected because an internal exception occurred. The request +// can be retried. +// +// * InvalidStateException +// The request was rejected because the state of the specified resource is not +// valid for this request. +// +// For more information about how key state affects the use of a CMK, see How +// Key State Affects Use of a Customer Master Key (http://docs.aws.amazon.com/kms/latest/developerguide/key-state.html) +// in the AWS Key Management Service Developer Guide. +// func (c *KMS) GetParametersForImport(input *GetParametersForImportInput) (*GetParametersForImportOutput, error) { req, out := c.GetParametersForImportRequest(input) err := req.Send() @@ -1097,6 +1848,8 @@ const opImportKeyMaterial = "ImportKeyMaterial" // value can be used to capture response data after the request's "Send" method // is called. // +// See ImportKeyMaterial for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1131,6 +1884,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 +1908,61 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Key Management Service's +// API operation ImportKeyMaterial for usage and error information. +// +// Returned Error Codes: +// * InvalidArnException +// The request was rejected because a specified ARN was not valid. +// +// * UnsupportedOperationException +// The request was rejected because a specified parameter is not supported or +// a specified resource is not valid for this operation. +// +// * DependencyTimeoutException +// The system timed out while trying to fulfill the request. The request can +// be retried. +// +// * NotFoundException +// The request was rejected because the specified entity or resource could not +// be found. +// +// * InternalException +// The request was rejected because an internal exception occurred. The request +// can be retried. +// +// * InvalidStateException +// The request was rejected because the state of the specified resource is not +// valid for this request. +// +// For more information about how key state affects the use of a CMK, see How +// Key State Affects Use of a Customer Master Key (http://docs.aws.amazon.com/kms/latest/developerguide/key-state.html) +// in the AWS Key Management Service Developer Guide. +// +// * InvalidCiphertextException +// The request was rejected because the specified ciphertext has been corrupted +// or is otherwise invalid. +// +// * IncorrectKeyMaterialException +// The request was rejected because the provided key material is invalid or +// is not the same key material that was previously imported into this customer +// master key (CMK). +// +// * ExpiredImportTokenException +// The request was rejected because the provided import token is expired. Use +// GetParametersForImport to retrieve a new import token and public key, use +// the new public key to encrypt the key material, and then try the request +// again. +// +// * InvalidImportTokenException +// The request was rejected because the provided import token is invalid or +// is associated with a different customer master key (CMK). +// func (c *KMS) ImportKeyMaterial(input *ImportKeyMaterialInput) (*ImportKeyMaterialOutput, error) { req, out := c.ImportKeyMaterialRequest(input) err := req.Send() @@ -1166,6 +1976,8 @@ const opListAliases = "ListAliases" // value can be used to capture response data after the request's "Send" method // is called. // +// See ListAliases for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1206,7 +2018,30 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Key Management Service's +// API operation ListAliases for usage and error information. +// +// Returned Error Codes: +// * DependencyTimeoutException +// The system timed out while trying to fulfill the request. The request can +// be retried. +// +// * InvalidMarkerException +// The request was rejected because the marker that specifies where pagination +// should next begin is not valid. +// +// * InternalException +// The request was rejected because an internal exception occurred. The request +// can be retried. +// func (c *KMS) ListAliases(input *ListAliasesInput) (*ListAliasesOutput, error) { req, out := c.ListAliasesRequest(input) err := req.Send() @@ -1245,6 +2080,8 @@ const opListGrants = "ListGrants" // value can be used to capture response data after the request's "Send" method // is called. // +// See ListGrants for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1285,7 +2122,45 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Key Management Service's +// API operation ListGrants for usage and error information. +// +// Returned Error Codes: +// * NotFoundException +// The request was rejected because the specified entity or resource could not +// be found. +// +// * DependencyTimeoutException +// The system timed out while trying to fulfill the request. The request can +// be retried. +// +// * InvalidMarkerException +// The request was rejected because the marker that specifies where pagination +// should next begin is not valid. +// +// * InvalidArnException +// The request was rejected because a specified ARN was not valid. +// +// * InternalException +// The request was rejected because an internal exception occurred. The request +// can be retried. +// +// * InvalidStateException +// The request was rejected because the state of the specified resource is not +// valid for this request. +// +// For more information about how key state affects the use of a CMK, see How +// Key State Affects Use of a Customer Master Key (http://docs.aws.amazon.com/kms/latest/developerguide/key-state.html) +// in the AWS Key Management Service Developer Guide. +// func (c *KMS) ListGrants(input *ListGrantsInput) (*ListGrantsResponse, error) { req, out := c.ListGrantsRequest(input) err := req.Send() @@ -1324,6 +2199,8 @@ const opListKeyPolicies = "ListKeyPolicies" // value can be used to capture response data after the request's "Send" method // is called. // +// See ListKeyPolicies for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1364,7 +2241,41 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Key Management Service's +// API operation ListKeyPolicies for usage and error information. +// +// Returned Error Codes: +// * NotFoundException +// The request was rejected because the specified entity or resource could not +// be found. +// +// * InvalidArnException +// The request was rejected because a specified ARN was not valid. +// +// * DependencyTimeoutException +// The system timed out while trying to fulfill the request. The request can +// be retried. +// +// * InternalException +// The request was rejected because an internal exception occurred. The request +// can be retried. +// +// * InvalidStateException +// The request was rejected because the state of the specified resource is not +// valid for this request. +// +// For more information about how key state affects the use of a CMK, see How +// Key State Affects Use of a Customer Master Key (http://docs.aws.amazon.com/kms/latest/developerguide/key-state.html) +// in the AWS Key Management Service Developer Guide. +// func (c *KMS) ListKeyPolicies(input *ListKeyPoliciesInput) (*ListKeyPoliciesOutput, error) { req, out := c.ListKeyPoliciesRequest(input) err := req.Send() @@ -1403,6 +2314,8 @@ const opListKeys = "ListKeys" // value can be used to capture response data after the request's "Send" method // is called. // +// See ListKeys for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1443,7 +2356,30 @@ func (c *KMS) ListKeysRequest(input *ListKeysInput) (req *request.Request, outpu return } +// ListKeys API operation for AWS Key Management Service. +// // Lists the customer master keys. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Key Management Service's +// API operation ListKeys for usage and error information. +// +// Returned Error Codes: +// * DependencyTimeoutException +// The system timed out while trying to fulfill the request. The request can +// be retried. +// +// * InternalException +// The request was rejected because an internal exception occurred. The request +// can be retried. +// +// * InvalidMarkerException +// The request was rejected because the marker that specifies where pagination +// should next begin is not valid. +// func (c *KMS) ListKeys(input *ListKeysInput) (*ListKeysOutput, error) { req, out := c.ListKeysRequest(input) err := req.Send() @@ -1482,6 +2418,8 @@ const opListRetirableGrants = "ListRetirableGrants" // value can be used to capture response data after the request's "Send" method // is called. // +// See ListRetirableGrants for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1516,11 +2454,41 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Key Management Service's +// API operation ListRetirableGrants for usage and error information. +// +// Returned Error Codes: +// * DependencyTimeoutException +// The system timed out while trying to fulfill the request. The request can +// be retried. +// +// * InvalidMarkerException +// The request was rejected because the marker that specifies where pagination +// should next begin is not valid. +// +// * InvalidArnException +// The request was rejected because a specified ARN was not valid. +// +// * NotFoundException +// The request was rejected because the specified entity or resource could not +// be found. +// +// * InternalException +// The request was rejected because an internal exception occurred. The request +// can be retried. +// func (c *KMS) ListRetirableGrants(input *ListRetirableGrantsInput) (*ListGrantsResponse, error) { req, out := c.ListRetirableGrantsRequest(input) err := req.Send() @@ -1534,6 +2502,8 @@ const opPutKeyPolicy = "PutKeyPolicy" // value can be used to capture response data after the request's "Send" method // is called. // +// See PutKeyPolicy for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1570,10 +2540,57 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Key Management Service's +// API operation PutKeyPolicy for usage and error information. +// +// Returned Error Codes: +// * NotFoundException +// The request was rejected because the specified entity or resource could not +// be found. +// +// * InvalidArnException +// The request was rejected because a specified ARN was not valid. +// +// * MalformedPolicyDocumentException +// The request was rejected because the specified policy is not syntactically +// or semantically correct. +// +// * DependencyTimeoutException +// The system timed out while trying to fulfill the request. The request can +// be retried. +// +// * UnsupportedOperationException +// The request was rejected because a specified parameter is not supported or +// a specified resource is not valid for this operation. +// +// * InternalException +// The request was rejected because an internal exception occurred. The request +// can be retried. +// +// * LimitExceededException +// The request was rejected because a limit was exceeded. For more information, +// see Limits (http://docs.aws.amazon.com/kms/latest/developerguide/limits.html) +// in the AWS Key Management Service Developer Guide. +// +// * InvalidStateException +// The request was rejected because the state of the specified resource is not +// valid for this request. +// +// For more information about how key state affects the use of a CMK, see How +// Key State Affects Use of a Customer Master Key (http://docs.aws.amazon.com/kms/latest/developerguide/key-state.html) +// in the AWS Key Management Service Developer Guide. +// func (c *KMS) PutKeyPolicy(input *PutKeyPolicyInput) (*PutKeyPolicyOutput, error) { req, out := c.PutKeyPolicyRequest(input) err := req.Send() @@ -1587,6 +2604,8 @@ const opReEncrypt = "ReEncrypt" // value can be used to capture response data after the request's "Send" method // is called. // +// See ReEncrypt for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1621,6 +2640,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 +2654,52 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Key Management Service's +// API operation ReEncrypt for usage and error information. +// +// Returned Error Codes: +// * NotFoundException +// The request was rejected because the specified entity or resource could not +// be found. +// +// * DisabledException +// The request was rejected because the specified CMK is not enabled. +// +// * InvalidCiphertextException +// The request was rejected because the specified ciphertext has been corrupted +// or is otherwise invalid. +// +// * KeyUnavailableException +// The request was rejected because the specified CMK was not available. The +// request can be retried. +// +// * DependencyTimeoutException +// The system timed out while trying to fulfill the request. The request can +// be retried. +// +// * InvalidKeyUsageException +// The request was rejected because the specified KeySpec value is not valid. +// +// * InvalidGrantTokenException +// The request was rejected because the specified grant token is not valid. +// +// * InternalException +// The request was rejected because an internal exception occurred. The request +// can be retried. +// +// * InvalidStateException +// The request was rejected because the state of the specified resource is not +// valid for this request. +// +// For more information about how key state affects the use of a CMK, see How +// Key State Affects Use of a Customer Master Key (http://docs.aws.amazon.com/kms/latest/developerguide/key-state.html) +// in the AWS Key Management Service Developer Guide. +// func (c *KMS) ReEncrypt(input *ReEncryptInput) (*ReEncryptOutput, error) { req, out := c.ReEncryptRequest(input) err := req.Send() @@ -1646,6 +2713,8 @@ const opRetireGrant = "RetireGrant" // value can be used to capture response data after the request's "Send" method // is called. // +// See RetireGrant for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1682,6 +2751,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 +2767,41 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Key Management Service's +// API operation RetireGrant for usage and error information. +// +// Returned Error Codes: +// * InvalidGrantTokenException +// The request was rejected because the specified grant token is not valid. +// +// * InvalidGrantIdException +// The request was rejected because the specified GrantId is not valid. +// +// * NotFoundException +// The request was rejected because the specified entity or resource could not +// be found. +// +// * DependencyTimeoutException +// The system timed out while trying to fulfill the request. The request can +// be retried. +// +// * InternalException +// The request was rejected because an internal exception occurred. The request +// can be retried. +// +// * InvalidStateException +// The request was rejected because the state of the specified resource is not +// valid for this request. +// +// For more information about how key state affects the use of a CMK, see How +// Key State Affects Use of a Customer Master Key (http://docs.aws.amazon.com/kms/latest/developerguide/key-state.html) +// in the AWS Key Management Service Developer Guide. +// func (c *KMS) RetireGrant(input *RetireGrantInput) (*RetireGrantOutput, error) { req, out := c.RetireGrantRequest(input) err := req.Send() @@ -1709,6 +2815,8 @@ const opRevokeGrant = "RevokeGrant" // value can be used to capture response data after the request's "Send" method // is called. // +// See RevokeGrant for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1745,8 +2853,45 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Key Management Service's +// API operation RevokeGrant for usage and error information. +// +// Returned Error Codes: +// * NotFoundException +// The request was rejected because the specified entity or resource could not +// be found. +// +// * DependencyTimeoutException +// The system timed out while trying to fulfill the request. The request can +// be retried. +// +// * InvalidArnException +// The request was rejected because a specified ARN was not valid. +// +// * InvalidGrantIdException +// The request was rejected because the specified GrantId is not valid. +// +// * InternalException +// The request was rejected because an internal exception occurred. The request +// can be retried. +// +// * InvalidStateException +// The request was rejected because the state of the specified resource is not +// valid for this request. +// +// For more information about how key state affects the use of a CMK, see How +// Key State Affects Use of a Customer Master Key (http://docs.aws.amazon.com/kms/latest/developerguide/key-state.html) +// in the AWS Key Management Service Developer Guide. +// func (c *KMS) RevokeGrant(input *RevokeGrantInput) (*RevokeGrantOutput, error) { req, out := c.RevokeGrantRequest(input) err := req.Send() @@ -1760,6 +2905,8 @@ const opScheduleKeyDeletion = "ScheduleKeyDeletion" // value can be used to capture response data after the request's "Send" method // is called. // +// See ScheduleKeyDeletion for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1794,6 +2941,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 +2959,38 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Key Management Service's +// API operation ScheduleKeyDeletion for usage and error information. +// +// Returned Error Codes: +// * NotFoundException +// The request was rejected because the specified entity or resource could not +// be found. +// +// * InvalidArnException +// The request was rejected because a specified ARN was not valid. +// +// * DependencyTimeoutException +// The system timed out while trying to fulfill the request. The request can +// be retried. +// +// * InternalException +// The request was rejected because an internal exception occurred. The request +// can be retried. +// +// * InvalidStateException +// The request was rejected because the state of the specified resource is not +// valid for this request. +// +// For more information about how key state affects the use of a CMK, see How +// Key State Affects Use of a Customer Master Key (http://docs.aws.amazon.com/kms/latest/developerguide/key-state.html) +// in the AWS Key Management Service Developer Guide. +// func (c *KMS) ScheduleKeyDeletion(input *ScheduleKeyDeletionInput) (*ScheduleKeyDeletionOutput, error) { req, out := c.ScheduleKeyDeletionRequest(input) err := req.Send() @@ -1823,6 +3004,8 @@ const opUpdateAlias = "UpdateAlias" // value can be used to capture response data after the request's "Send" method // is called. // +// See UpdateAlias for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1859,6 +3042,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 +3057,35 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Key Management Service's +// API operation UpdateAlias for usage and error information. +// +// Returned Error Codes: +// * DependencyTimeoutException +// The system timed out while trying to fulfill the request. The request can +// be retried. +// +// * NotFoundException +// The request was rejected because the specified entity or resource could not +// be found. +// +// * InternalException +// The request was rejected because an internal exception occurred. The request +// can be retried. +// +// * InvalidStateException +// The request was rejected because the state of the specified resource is not +// valid for this request. +// +// For more information about how key state affects the use of a CMK, see How +// Key State Affects Use of a Customer Master Key (http://docs.aws.amazon.com/kms/latest/developerguide/key-state.html) +// in the AWS Key Management Service Developer Guide. +// func (c *KMS) UpdateAlias(input *UpdateAliasInput) (*UpdateAliasOutput, error) { req, out := c.UpdateAliasRequest(input) err := req.Send() @@ -1885,6 +3099,8 @@ const opUpdateKeyDescription = "UpdateKeyDescription" // value can be used to capture response data after the request's "Send" method // is called. // +// See UpdateKeyDescription for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1921,7 +3137,41 @@ func (c *KMS) UpdateKeyDescriptionRequest(input *UpdateKeyDescriptionInput) (req return } +// UpdateKeyDescription API operation for AWS Key Management Service. +// // Updates the description of a key. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Key Management Service's +// API operation UpdateKeyDescription for usage and error information. +// +// Returned Error Codes: +// * NotFoundException +// The request was rejected because the specified entity or resource could not +// be found. +// +// * InvalidArnException +// The request was rejected because a specified ARN was not valid. +// +// * DependencyTimeoutException +// The system timed out while trying to fulfill the request. The request can +// be retried. +// +// * InternalException +// The request was rejected because an internal exception occurred. The request +// can be retried. +// +// * InvalidStateException +// The request was rejected because the state of the specified resource is not +// valid for this request. +// +// For more information about how key state affects the use of a CMK, see How +// Key State Affects Use of a Customer Master Key (http://docs.aws.amazon.com/kms/latest/developerguide/key-state.html) +// in the AWS Key Management Service Developer Guide. +// 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..9713b501307 100644 --- a/service/lambda/api.go +++ b/service/lambda/api.go @@ -20,6 +20,8 @@ const opAddPermission = "AddPermission" // value can be used to capture response data after the request's "Send" method // is called. // +// See AddPermission for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -54,6 +56,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 +73,36 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Lambda's +// API operation AddPermission for usage and error information. +// +// Returned Error Codes: +// * ServiceException +// The AWS Lambda service encountered an internal error. +// +// * ResourceNotFoundException +// The resource (for example, a Lambda function or access policy statement) +// specified in the request does not exist. +// +// * ResourceConflictException +// The resource already exists. +// +// * InvalidParameterValueException +// One of the parameters in the request is invalid. For example, if you provided +// an IAM role for AWS Lambda to assume in the CreateFunction or the UpdateFunctionConfiguration +// API, that AWS Lambda is unable to assume you will get this exception. +// +// * PolicyLengthExceededException +// Lambda function access policy is limited to 20 KB. +// +// * TooManyRequestsException + +// func (c *Lambda) AddPermission(input *AddPermissionInput) (*AddPermissionOutput, error) { req, out := c.AddPermissionRequest(input) err := req.Send() @@ -82,6 +116,8 @@ const opCreateAlias = "CreateAlias" // value can be used to capture response data after the request's "Send" method // is called. // +// See CreateAlias for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -116,11 +152,40 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Lambda's +// API operation CreateAlias for usage and error information. +// +// Returned Error Codes: +// * ServiceException +// The AWS Lambda service encountered an internal error. +// +// * ResourceNotFoundException +// The resource (for example, a Lambda function or access policy statement) +// specified in the request does not exist. +// +// * ResourceConflictException +// The resource already exists. +// +// * InvalidParameterValueException +// One of the parameters in the request is invalid. For example, if you provided +// an IAM role for AWS Lambda to assume in the CreateFunction or the UpdateFunctionConfiguration +// API, that AWS Lambda is unable to assume you will get this exception. +// +// * TooManyRequestsException + +// func (c *Lambda) CreateAlias(input *CreateAliasInput) (*AliasConfiguration, error) { req, out := c.CreateAliasRequest(input) err := req.Send() @@ -134,6 +199,8 @@ const opCreateEventSourceMapping = "CreateEventSourceMapping" // value can be used to capture response data after the request's "Send" method // is called. // +// See CreateEventSourceMapping for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -168,6 +235,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 +262,33 @@ func (c *Lambda) CreateEventSourceMappingRequest(input *CreateEventSourceMapping // // This operation requires permission for the lambda:CreateEventSourceMapping // action. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Lambda's +// API operation CreateEventSourceMapping for usage and error information. +// +// Returned Error Codes: +// * ServiceException +// The AWS Lambda service encountered an internal error. +// +// * InvalidParameterValueException +// One of the parameters in the request is invalid. For example, if you provided +// an IAM role for AWS Lambda to assume in the CreateFunction or the UpdateFunctionConfiguration +// API, that AWS Lambda is unable to assume you will get this exception. +// +// * ResourceConflictException +// The resource already exists. +// +// * TooManyRequestsException + +// +// * ResourceNotFoundException +// The resource (for example, a Lambda function or access policy statement) +// specified in the request does not exist. +// func (c *Lambda) CreateEventSourceMapping(input *CreateEventSourceMappingInput) (*EventSourceMappingConfiguration, error) { req, out := c.CreateEventSourceMappingRequest(input) err := req.Send() @@ -206,6 +302,8 @@ const opCreateFunction = "CreateFunction" // value can be used to capture response data after the request's "Send" method // is called. // +// See CreateFunction for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -240,6 +338,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 +350,36 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Lambda's +// API operation CreateFunction for usage and error information. +// +// Returned Error Codes: +// * ServiceException +// The AWS Lambda service encountered an internal error. +// +// * InvalidParameterValueException +// One of the parameters in the request is invalid. For example, if you provided +// an IAM role for AWS Lambda to assume in the CreateFunction or the UpdateFunctionConfiguration +// API, that AWS Lambda is unable to assume you will get this exception. +// +// * ResourceNotFoundException +// The resource (for example, a Lambda function or access policy statement) +// specified in the request does not exist. +// +// * ResourceConflictException +// The resource already exists. +// +// * TooManyRequestsException + +// +// * CodeStorageExceededException +// You have exceeded your maximum total code size per account. Limits (http://docs.aws.amazon.com/lambda/latest/dg/limits.html) +// func (c *Lambda) CreateFunction(input *CreateFunctionInput) (*FunctionConfiguration, error) { req, out := c.CreateFunctionRequest(input) err := req.Send() @@ -263,6 +393,8 @@ const opDeleteAlias = "DeleteAlias" // value can be used to capture response data after the request's "Send" method // is called. // +// See DeleteAlias for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -299,10 +431,32 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Lambda's +// API operation DeleteAlias for usage and error information. +// +// Returned Error Codes: +// * ServiceException +// The AWS Lambda service encountered an internal error. +// +// * InvalidParameterValueException +// One of the parameters in the request is invalid. For example, if you provided +// an IAM role for AWS Lambda to assume in the CreateFunction or the UpdateFunctionConfiguration +// API, that AWS Lambda is unable to assume you will get this exception. +// +// * TooManyRequestsException + +// func (c *Lambda) DeleteAlias(input *DeleteAliasInput) (*DeleteAliasOutput, error) { req, out := c.DeleteAliasRequest(input) err := req.Send() @@ -316,6 +470,8 @@ const opDeleteEventSourceMapping = "DeleteEventSourceMapping" // value can be used to capture response data after the request's "Send" method // is called. // +// See DeleteEventSourceMapping for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -350,11 +506,37 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Lambda's +// API operation DeleteEventSourceMapping for usage and error information. +// +// Returned Error Codes: +// * ServiceException +// The AWS Lambda service encountered an internal error. +// +// * ResourceNotFoundException +// The resource (for example, a Lambda function or access policy statement) +// specified in the request does not exist. +// +// * InvalidParameterValueException +// One of the parameters in the request is invalid. For example, if you provided +// an IAM role for AWS Lambda to assume in the CreateFunction or the UpdateFunctionConfiguration +// API, that AWS Lambda is unable to assume you will get this exception. +// +// * TooManyRequestsException + +// func (c *Lambda) DeleteEventSourceMapping(input *DeleteEventSourceMappingInput) (*EventSourceMappingConfiguration, error) { req, out := c.DeleteEventSourceMappingRequest(input) err := req.Send() @@ -368,6 +550,8 @@ const opDeleteFunction = "DeleteFunction" // value can be used to capture response data after the request's "Send" method // is called. // +// See DeleteFunction for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -404,6 +588,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 +603,33 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Lambda's +// API operation DeleteFunction for usage and error information. +// +// Returned Error Codes: +// * ServiceException +// The AWS Lambda service encountered an internal error. +// +// * ResourceNotFoundException +// The resource (for example, a Lambda function or access policy statement) +// specified in the request does not exist. +// +// * TooManyRequestsException + +// +// * InvalidParameterValueException +// One of the parameters in the request is invalid. For example, if you provided +// an IAM role for AWS Lambda to assume in the CreateFunction or the UpdateFunctionConfiguration +// API, that AWS Lambda is unable to assume you will get this exception. +// +// * ResourceConflictException +// The resource already exists. +// func (c *Lambda) DeleteFunction(input *DeleteFunctionInput) (*DeleteFunctionOutput, error) { req, out := c.DeleteFunctionRequest(input) err := req.Send() @@ -430,6 +643,8 @@ const opGetAlias = "GetAlias" // value can be used to capture response data after the request's "Send" method // is called. // +// See GetAlias for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -464,11 +679,37 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Lambda's +// API operation GetAlias for usage and error information. +// +// Returned Error Codes: +// * ServiceException +// The AWS Lambda service encountered an internal error. +// +// * ResourceNotFoundException +// The resource (for example, a Lambda function or access policy statement) +// specified in the request does not exist. +// +// * InvalidParameterValueException +// One of the parameters in the request is invalid. For example, if you provided +// an IAM role for AWS Lambda to assume in the CreateFunction or the UpdateFunctionConfiguration +// API, that AWS Lambda is unable to assume you will get this exception. +// +// * TooManyRequestsException + +// func (c *Lambda) GetAlias(input *GetAliasInput) (*AliasConfiguration, error) { req, out := c.GetAliasRequest(input) err := req.Send() @@ -482,6 +723,8 @@ const opGetEventSourceMapping = "GetEventSourceMapping" // value can be used to capture response data after the request's "Send" method // is called. // +// See GetEventSourceMapping for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -516,11 +759,37 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Lambda's +// API operation GetEventSourceMapping for usage and error information. +// +// Returned Error Codes: +// * ServiceException +// The AWS Lambda service encountered an internal error. +// +// * ResourceNotFoundException +// The resource (for example, a Lambda function or access policy statement) +// specified in the request does not exist. +// +// * InvalidParameterValueException +// One of the parameters in the request is invalid. For example, if you provided +// an IAM role for AWS Lambda to assume in the CreateFunction or the UpdateFunctionConfiguration +// API, that AWS Lambda is unable to assume you will get this exception. +// +// * TooManyRequestsException + +// func (c *Lambda) GetEventSourceMapping(input *GetEventSourceMappingInput) (*EventSourceMappingConfiguration, error) { req, out := c.GetEventSourceMappingRequest(input) err := req.Send() @@ -534,6 +803,8 @@ const opGetFunction = "GetFunction" // value can be used to capture response data after the request's "Send" method // is called. // +// See GetFunction for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -568,6 +839,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 +854,30 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Lambda's +// API operation GetFunction for usage and error information. +// +// Returned Error Codes: +// * ServiceException +// The AWS Lambda service encountered an internal error. +// +// * ResourceNotFoundException +// The resource (for example, a Lambda function or access policy statement) +// specified in the request does not exist. +// +// * TooManyRequestsException + +// +// * InvalidParameterValueException +// One of the parameters in the request is invalid. For example, if you provided +// an IAM role for AWS Lambda to assume in the CreateFunction or the UpdateFunctionConfiguration +// API, that AWS Lambda is unable to assume you will get this exception. +// func (c *Lambda) GetFunction(input *GetFunctionInput) (*GetFunctionOutput, error) { req, out := c.GetFunctionRequest(input) err := req.Send() @@ -594,6 +891,8 @@ const opGetFunctionConfiguration = "GetFunctionConfiguration" // value can be used to capture response data after the request's "Send" method // is called. // +// See GetFunctionConfiguration for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -628,6 +927,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 +942,30 @@ func (c *Lambda) GetFunctionConfigurationRequest(input *GetFunctionConfiguration // // This operation requires permission for the lambda:GetFunctionConfiguration // operation. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Lambda's +// API operation GetFunctionConfiguration for usage and error information. +// +// Returned Error Codes: +// * ServiceException +// The AWS Lambda service encountered an internal error. +// +// * ResourceNotFoundException +// The resource (for example, a Lambda function or access policy statement) +// specified in the request does not exist. +// +// * TooManyRequestsException + +// +// * InvalidParameterValueException +// One of the parameters in the request is invalid. For example, if you provided +// an IAM role for AWS Lambda to assume in the CreateFunction or the UpdateFunctionConfiguration +// API, that AWS Lambda is unable to assume you will get this exception. +// func (c *Lambda) GetFunctionConfiguration(input *GetFunctionConfigurationInput) (*FunctionConfiguration, error) { req, out := c.GetFunctionConfigurationRequest(input) err := req.Send() @@ -654,6 +979,8 @@ const opGetPolicy = "GetPolicy" // value can be used to capture response data after the request's "Send" method // is called. // +// See GetPolicy for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -688,6 +1015,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 +1027,30 @@ func (c *Lambda) GetPolicyRequest(input *GetPolicyInput) (req *request.Request, // For information about adding permissions, see AddPermission. // // You need permission for the lambda:GetPolicy action. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Lambda's +// API operation GetPolicy for usage and error information. +// +// Returned Error Codes: +// * ServiceException +// The AWS Lambda service encountered an internal error. +// +// * ResourceNotFoundException +// The resource (for example, a Lambda function or access policy statement) +// specified in the request does not exist. +// +// * TooManyRequestsException + +// +// * InvalidParameterValueException +// One of the parameters in the request is invalid. For example, if you provided +// an IAM role for AWS Lambda to assume in the CreateFunction or the UpdateFunctionConfiguration +// API, that AWS Lambda is unable to assume you will get this exception. +// func (c *Lambda) GetPolicy(input *GetPolicyInput) (*GetPolicyOutput, error) { req, out := c.GetPolicyRequest(input) err := req.Send() @@ -711,6 +1064,8 @@ const opInvoke = "Invoke" // value can be used to capture response data after the request's "Send" method // is called. // +// See Invoke for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -745,6 +1100,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 +1113,70 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Lambda's +// API operation Invoke for usage and error information. +// +// Returned Error Codes: +// * ServiceException +// The AWS Lambda service encountered an internal error. +// +// * ResourceNotFoundException +// The resource (for example, a Lambda function or access policy statement) +// specified in the request does not exist. +// +// * InvalidRequestContentException +// The request body could not be parsed as JSON. +// +// * RequestTooLargeException +// The request payload exceeded the Invoke request body JSON input limit. For +// more information, see Limits (http://docs.aws.amazon.com/lambda/latest/dg/limits.html). +// +// * UnsupportedMediaTypeException +// The content type of the Invoke request body is not JSON. +// +// * TooManyRequestsException + +// +// * InvalidParameterValueException +// One of the parameters in the request is invalid. For example, if you provided +// an IAM role for AWS Lambda to assume in the CreateFunction or the UpdateFunctionConfiguration +// API, that AWS Lambda is unable to assume you will get this exception. +// +// * EC2UnexpectedException +// AWS Lambda received an unexpected EC2 client exception while setting up for +// the Lambda function. +// +// * SubnetIPAddressLimitReachedException +// AWS Lambda was not able to set up VPC access for the Lambda function because +// one or more configured subnets has no available IP addresses. +// +// * ENILimitReachedException +// AWS Lambda was not able to create an Elastic Network Interface (ENI) in the +// VPC, specified as part of Lambda function configuration, because the limit +// for network interfaces has been reached. +// +// * EC2ThrottledException +// AWS Lambda was throttled by Amazon EC2 during Lambda function initialization +// using the execution role provided for the Lambda function. +// +// * EC2AccessDeniedException + +// +// * InvalidSubnetIDException +// The Subnet ID provided in the Lambda function VPC configuration is invalid. +// +// * InvalidSecurityGroupIDException +// The Security Group ID provided in the Lambda function VPC configuration is +// invalid. +// +// * InvalidZipFileException +// AWS Lambda could not unzip the function zip file. +// func (c *Lambda) Invoke(input *InvokeInput) (*InvokeOutput, error) { req, out := c.InvokeRequest(input) err := req.Send() @@ -769,6 +1190,8 @@ const opInvokeAsync = "InvokeAsync" // value can be used to capture response data after the request's "Send" method // is called. // +// See InvokeAsync for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -806,6 +1229,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 +1238,25 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Lambda's +// API operation InvokeAsync for usage and error information. +// +// Returned Error Codes: +// * ServiceException +// The AWS Lambda service encountered an internal error. +// +// * ResourceNotFoundException +// The resource (for example, a Lambda function or access policy statement) +// specified in the request does not exist. +// +// * InvalidRequestContentException +// The request body could not be parsed as JSON. +// func (c *Lambda) InvokeAsync(input *InvokeAsyncInput) (*InvokeAsyncOutput, error) { req, out := c.InvokeAsyncRequest(input) err := req.Send() @@ -826,6 +1270,8 @@ const opListAliases = "ListAliases" // value can be used to capture response data after the request's "Send" method // is called. // +// See ListAliases for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -860,12 +1306,38 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Lambda's +// API operation ListAliases for usage and error information. +// +// Returned Error Codes: +// * ServiceException +// The AWS Lambda service encountered an internal error. +// +// * ResourceNotFoundException +// The resource (for example, a Lambda function or access policy statement) +// specified in the request does not exist. +// +// * InvalidParameterValueException +// One of the parameters in the request is invalid. For example, if you provided +// an IAM role for AWS Lambda to assume in the CreateFunction or the UpdateFunctionConfiguration +// API, that AWS Lambda is unable to assume you will get this exception. +// +// * TooManyRequestsException + +// func (c *Lambda) ListAliases(input *ListAliasesInput) (*ListAliasesOutput, error) { req, out := c.ListAliasesRequest(input) err := req.Send() @@ -879,6 +1351,8 @@ const opListEventSourceMappings = "ListEventSourceMappings" // value can be used to capture response data after the request's "Send" method // is called. // +// See ListEventSourceMappings for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -919,6 +1393,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 +1408,30 @@ func (c *Lambda) ListEventSourceMappingsRequest(input *ListEventSourceMappingsIn // // This operation requires permission for the lambda:ListEventSourceMappings // action. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Lambda's +// API operation ListEventSourceMappings for usage and error information. +// +// Returned Error Codes: +// * ServiceException +// The AWS Lambda service encountered an internal error. +// +// * ResourceNotFoundException +// The resource (for example, a Lambda function or access policy statement) +// specified in the request does not exist. +// +// * InvalidParameterValueException +// One of the parameters in the request is invalid. For example, if you provided +// an IAM role for AWS Lambda to assume in the CreateFunction or the UpdateFunctionConfiguration +// API, that AWS Lambda is unable to assume you will get this exception. +// +// * TooManyRequestsException + +// func (c *Lambda) ListEventSourceMappings(input *ListEventSourceMappingsInput) (*ListEventSourceMappingsOutput, error) { req, out := c.ListEventSourceMappingsRequest(input) err := req.Send() @@ -970,6 +1470,8 @@ const opListFunctions = "ListFunctions" // value can be used to capture response data after the request's "Send" method // is called. // +// See ListFunctions for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1010,6 +1512,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 +1523,21 @@ 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). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Lambda's +// API operation ListFunctions for usage and error information. +// +// Returned Error Codes: +// * ServiceException +// The AWS Lambda service encountered an internal error. +// +// * TooManyRequestsException + +// func (c *Lambda) ListFunctions(input *ListFunctionsInput) (*ListFunctionsOutput, error) { req, out := c.ListFunctionsRequest(input) err := req.Send() @@ -1057,6 +1576,8 @@ const opListVersionsByFunction = "ListVersionsByFunction" // value can be used to capture response data after the request's "Send" method // is called. // +// See ListVersionsByFunction for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1091,8 +1612,34 @@ 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). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Lambda's +// API operation ListVersionsByFunction for usage and error information. +// +// Returned Error Codes: +// * ServiceException +// The AWS Lambda service encountered an internal error. +// +// * ResourceNotFoundException +// The resource (for example, a Lambda function or access policy statement) +// specified in the request does not exist. +// +// * InvalidParameterValueException +// One of the parameters in the request is invalid. For example, if you provided +// an IAM role for AWS Lambda to assume in the CreateFunction or the UpdateFunctionConfiguration +// API, that AWS Lambda is unable to assume you will get this exception. +// +// * TooManyRequestsException + +// func (c *Lambda) ListVersionsByFunction(input *ListVersionsByFunctionInput) (*ListVersionsByFunctionOutput, error) { req, out := c.ListVersionsByFunctionRequest(input) err := req.Send() @@ -1106,6 +1653,8 @@ const opPublishVersion = "PublishVersion" // value can be used to capture response data after the request's "Send" method // is called. // +// See PublishVersion for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1140,11 +1689,40 @@ 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). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Lambda's +// API operation PublishVersion for usage and error information. +// +// Returned Error Codes: +// * ServiceException +// The AWS Lambda service encountered an internal error. +// +// * ResourceNotFoundException +// The resource (for example, a Lambda function or access policy statement) +// specified in the request does not exist. +// +// * InvalidParameterValueException +// One of the parameters in the request is invalid. For example, if you provided +// an IAM role for AWS Lambda to assume in the CreateFunction or the UpdateFunctionConfiguration +// API, that AWS Lambda is unable to assume you will get this exception. +// +// * TooManyRequestsException + +// +// * CodeStorageExceededException +// You have exceeded your maximum total code size per account. Limits (http://docs.aws.amazon.com/lambda/latest/dg/limits.html) +// func (c *Lambda) PublishVersion(input *PublishVersionInput) (*FunctionConfiguration, error) { req, out := c.PublishVersionRequest(input) err := req.Send() @@ -1158,6 +1736,8 @@ const opRemovePermission = "RemovePermission" // value can be used to capture response data after the request's "Send" method // is called. // +// See RemovePermission for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1194,6 +1774,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 +1789,30 @@ func (c *Lambda) RemovePermissionRequest(input *RemovePermissionInput) (req *req // permission to the function. // // You need permission for the lambda:RemovePermission action. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Lambda's +// API operation RemovePermission for usage and error information. +// +// Returned Error Codes: +// * ServiceException +// The AWS Lambda service encountered an internal error. +// +// * ResourceNotFoundException +// The resource (for example, a Lambda function or access policy statement) +// specified in the request does not exist. +// +// * InvalidParameterValueException +// One of the parameters in the request is invalid. For example, if you provided +// an IAM role for AWS Lambda to assume in the CreateFunction or the UpdateFunctionConfiguration +// API, that AWS Lambda is unable to assume you will get this exception. +// +// * TooManyRequestsException + +// func (c *Lambda) RemovePermission(input *RemovePermissionInput) (*RemovePermissionOutput, error) { req, out := c.RemovePermissionRequest(input) err := req.Send() @@ -1220,6 +1826,8 @@ const opUpdateAlias = "UpdateAlias" // value can be used to capture response data after the request's "Send" method // is called. // +// See UpdateAlias for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1254,11 +1862,37 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Lambda's +// API operation UpdateAlias for usage and error information. +// +// Returned Error Codes: +// * ServiceException +// The AWS Lambda service encountered an internal error. +// +// * ResourceNotFoundException +// The resource (for example, a Lambda function or access policy statement) +// specified in the request does not exist. +// +// * InvalidParameterValueException +// One of the parameters in the request is invalid. For example, if you provided +// an IAM role for AWS Lambda to assume in the CreateFunction or the UpdateFunctionConfiguration +// API, that AWS Lambda is unable to assume you will get this exception. +// +// * TooManyRequestsException + +// func (c *Lambda) UpdateAlias(input *UpdateAliasInput) (*AliasConfiguration, error) { req, out := c.UpdateAliasRequest(input) err := req.Send() @@ -1272,6 +1906,8 @@ const opUpdateEventSourceMapping = "UpdateEventSourceMapping" // value can be used to capture response data after the request's "Send" method // is called. // +// See UpdateEventSourceMapping for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1306,6 +1942,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 +1961,33 @@ func (c *Lambda) UpdateEventSourceMappingRequest(input *UpdateEventSourceMapping // // This operation requires permission for the lambda:UpdateEventSourceMapping // action. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Lambda's +// API operation UpdateEventSourceMapping for usage and error information. +// +// Returned Error Codes: +// * ServiceException +// The AWS Lambda service encountered an internal error. +// +// * ResourceNotFoundException +// The resource (for example, a Lambda function or access policy statement) +// specified in the request does not exist. +// +// * InvalidParameterValueException +// One of the parameters in the request is invalid. For example, if you provided +// an IAM role for AWS Lambda to assume in the CreateFunction or the UpdateFunctionConfiguration +// API, that AWS Lambda is unable to assume you will get this exception. +// +// * TooManyRequestsException + +// +// * ResourceConflictException +// The resource already exists. +// func (c *Lambda) UpdateEventSourceMapping(input *UpdateEventSourceMappingInput) (*EventSourceMappingConfiguration, error) { req, out := c.UpdateEventSourceMappingRequest(input) err := req.Send() @@ -1336,6 +2001,8 @@ const opUpdateFunctionCode = "UpdateFunctionCode" // value can be used to capture response data after the request's "Send" method // is called. // +// See UpdateFunctionCode for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1370,6 +2037,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 +2048,33 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Lambda's +// API operation UpdateFunctionCode for usage and error information. +// +// Returned Error Codes: +// * ServiceException +// The AWS Lambda service encountered an internal error. +// +// * ResourceNotFoundException +// The resource (for example, a Lambda function or access policy statement) +// specified in the request does not exist. +// +// * InvalidParameterValueException +// One of the parameters in the request is invalid. For example, if you provided +// an IAM role for AWS Lambda to assume in the CreateFunction or the UpdateFunctionConfiguration +// API, that AWS Lambda is unable to assume you will get this exception. +// +// * TooManyRequestsException + +// +// * CodeStorageExceededException +// You have exceeded your maximum total code size per account. Limits (http://docs.aws.amazon.com/lambda/latest/dg/limits.html) +// func (c *Lambda) UpdateFunctionCode(input *UpdateFunctionCodeInput) (*FunctionConfiguration, error) { req, out := c.UpdateFunctionCodeRequest(input) err := req.Send() @@ -1392,6 +2088,8 @@ const opUpdateFunctionConfiguration = "UpdateFunctionConfiguration" // value can be used to capture response data after the request's "Send" method // is called. // +// See UpdateFunctionConfiguration for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1426,6 +2124,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 +2137,30 @@ func (c *Lambda) UpdateFunctionConfigurationRequest(input *UpdateFunctionConfigu // // This operation requires permission for the lambda:UpdateFunctionConfiguration // action. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Lambda's +// API operation UpdateFunctionConfiguration for usage and error information. +// +// Returned Error Codes: +// * ServiceException +// The AWS Lambda service encountered an internal error. +// +// * ResourceNotFoundException +// The resource (for example, a Lambda function or access policy statement) +// specified in the request does not exist. +// +// * InvalidParameterValueException +// One of the parameters in the request is invalid. For example, if you provided +// an IAM role for AWS Lambda to assume in the CreateFunction or the UpdateFunctionConfiguration +// API, that AWS Lambda is unable to assume you will get this exception. +// +// * TooManyRequestsException + +// 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..a834fe50b3e 100644 --- a/service/machinelearning/api.go +++ b/service/machinelearning/api.go @@ -18,6 +18,8 @@ const opAddTags = "AddTags" // value can be used to capture response data after the request's "Send" method // is called. // +// See AddTags for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -52,9 +54,36 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Machine Learning's +// API operation AddTags for usage and error information. +// +// Returned Error Codes: +// * InvalidInputException +// An error on the client occurred. Typically, the cause is an invalid input +// value. +// +// * InvalidTagException + +// +// * TagLimitExceededException + +// +// * ResourceNotFoundException +// A specified resource cannot be located. +// +// * InternalServerException +// An error on the server occurred when trying to process a request. +// func (c *MachineLearning) AddTags(input *AddTagsInput) (*AddTagsOutput, error) { req, out := c.AddTagsRequest(input) err := req.Send() @@ -68,6 +97,8 @@ const opCreateBatchPrediction = "CreateBatchPrediction" // value can be used to capture response data after the request's "Send" method // is called. // +// See CreateBatchPrediction for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -102,6 +133,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 +149,27 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Machine Learning's +// API operation CreateBatchPrediction for usage and error information. +// +// Returned Error Codes: +// * InvalidInputException +// An error on the client occurred. Typically, the cause is an invalid input +// value. +// +// * InternalServerException +// An error on the server occurred when trying to process a request. +// +// * IdempotentParameterMismatchException +// A second request to use or change an object was not allowed. This can result +// from retrying a request using a parameter that was not present in the original +// request. +// func (c *MachineLearning) CreateBatchPrediction(input *CreateBatchPredictionInput) (*CreateBatchPredictionOutput, error) { req, out := c.CreateBatchPredictionRequest(input) err := req.Send() @@ -129,6 +183,8 @@ const opCreateDataSourceFromRDS = "CreateDataSourceFromRDS" // value can be used to capture response data after the request's "Send" method // is called. // +// See CreateDataSourceFromRDS for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -163,6 +219,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 +235,27 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Machine Learning's +// API operation CreateDataSourceFromRDS for usage and error information. +// +// Returned Error Codes: +// * InvalidInputException +// An error on the client occurred. Typically, the cause is an invalid input +// value. +// +// * InternalServerException +// An error on the server occurred when trying to process a request. +// +// * IdempotentParameterMismatchException +// A second request to use or change an object was not allowed. This can result +// from retrying a request using a parameter that was not present in the original +// request. +// func (c *MachineLearning) CreateDataSourceFromRDS(input *CreateDataSourceFromRDSInput) (*CreateDataSourceFromRDSOutput, error) { req, out := c.CreateDataSourceFromRDSRequest(input) err := req.Send() @@ -190,6 +269,8 @@ const opCreateDataSourceFromRedshift = "CreateDataSourceFromRedshift" // value can be used to capture response data after the request's "Send" method // is called. // +// See CreateDataSourceFromRedshift for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -224,6 +305,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 +340,27 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Machine Learning's +// API operation CreateDataSourceFromRedshift for usage and error information. +// +// Returned Error Codes: +// * InvalidInputException +// An error on the client occurred. Typically, the cause is an invalid input +// value. +// +// * InternalServerException +// An error on the server occurred when trying to process a request. +// +// * IdempotentParameterMismatchException +// A second request to use or change an object was not allowed. This can result +// from retrying a request using a parameter that was not present in the original +// request. +// func (c *MachineLearning) CreateDataSourceFromRedshift(input *CreateDataSourceFromRedshiftInput) (*CreateDataSourceFromRedshiftOutput, error) { req, out := c.CreateDataSourceFromRedshiftRequest(input) err := req.Send() @@ -270,6 +374,8 @@ const opCreateDataSourceFromS3 = "CreateDataSourceFromS3" // value can be used to capture response data after the request's "Send" method // is called. // +// See CreateDataSourceFromS3 for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -304,6 +410,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 +440,27 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Machine Learning's +// API operation CreateDataSourceFromS3 for usage and error information. +// +// Returned Error Codes: +// * InvalidInputException +// An error on the client occurred. Typically, the cause is an invalid input +// value. +// +// * InternalServerException +// An error on the server occurred when trying to process a request. +// +// * IdempotentParameterMismatchException +// A second request to use or change an object was not allowed. This can result +// from retrying a request using a parameter that was not present in the original +// request. +// func (c *MachineLearning) CreateDataSourceFromS3(input *CreateDataSourceFromS3Input) (*CreateDataSourceFromS3Output, error) { req, out := c.CreateDataSourceFromS3Request(input) err := req.Send() @@ -345,6 +474,8 @@ const opCreateEvaluation = "CreateEvaluation" // value can be used to capture response data after the request's "Send" method // is called. // +// See CreateEvaluation for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -379,6 +510,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 +528,27 @@ func (c *MachineLearning) CreateEvaluationRequest(input *CreateEvaluationInput) // // You can use the GetEvaluation operation to check progress of the evaluation // during the creation operation. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Machine Learning's +// API operation CreateEvaluation for usage and error information. +// +// Returned Error Codes: +// * InvalidInputException +// An error on the client occurred. Typically, the cause is an invalid input +// value. +// +// * InternalServerException +// An error on the server occurred when trying to process a request. +// +// * IdempotentParameterMismatchException +// A second request to use or change an object was not allowed. This can result +// from retrying a request using a parameter that was not present in the original +// request. +// func (c *MachineLearning) CreateEvaluation(input *CreateEvaluationInput) (*CreateEvaluationOutput, error) { req, out := c.CreateEvaluationRequest(input) err := req.Send() @@ -408,6 +562,8 @@ const opCreateMLModel = "CreateMLModel" // value can be used to capture response data after the request's "Send" method // is called. // +// See CreateMLModel for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -442,6 +598,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 +617,27 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Machine Learning's +// API operation CreateMLModel for usage and error information. +// +// Returned Error Codes: +// * InvalidInputException +// An error on the client occurred. Typically, the cause is an invalid input +// value. +// +// * InternalServerException +// An error on the server occurred when trying to process a request. +// +// * IdempotentParameterMismatchException +// A second request to use or change an object was not allowed. This can result +// from retrying a request using a parameter that was not present in the original +// request. +// func (c *MachineLearning) CreateMLModel(input *CreateMLModelInput) (*CreateMLModelOutput, error) { req, out := c.CreateMLModelRequest(input) err := req.Send() @@ -472,6 +651,8 @@ const opCreateRealtimeEndpoint = "CreateRealtimeEndpoint" // value can be used to capture response data after the request's "Send" method // is called. // +// See CreateRealtimeEndpoint for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -506,9 +687,30 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Machine Learning's +// API operation CreateRealtimeEndpoint for usage and error information. +// +// Returned Error Codes: +// * InvalidInputException +// An error on the client occurred. Typically, the cause is an invalid input +// value. +// +// * ResourceNotFoundException +// A specified resource cannot be located. +// +// * InternalServerException +// An error on the server occurred when trying to process a request. +// func (c *MachineLearning) CreateRealtimeEndpoint(input *CreateRealtimeEndpointInput) (*CreateRealtimeEndpointOutput, error) { req, out := c.CreateRealtimeEndpointRequest(input) err := req.Send() @@ -522,6 +724,8 @@ const opDeleteBatchPrediction = "DeleteBatchPrediction" // value can be used to capture response data after the request's "Send" method // is called. // +// See DeleteBatchPrediction for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -556,12 +760,33 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Machine Learning's +// API operation DeleteBatchPrediction for usage and error information. +// +// Returned Error Codes: +// * InvalidInputException +// An error on the client occurred. Typically, the cause is an invalid input +// value. +// +// * ResourceNotFoundException +// A specified resource cannot be located. +// +// * InternalServerException +// An error on the server occurred when trying to process a request. +// func (c *MachineLearning) DeleteBatchPrediction(input *DeleteBatchPredictionInput) (*DeleteBatchPredictionOutput, error) { req, out := c.DeleteBatchPredictionRequest(input) err := req.Send() @@ -575,6 +800,8 @@ const opDeleteDataSource = "DeleteDataSource" // value can be used to capture response data after the request's "Send" method // is called. // +// See DeleteDataSource for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -609,12 +836,33 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Machine Learning's +// API operation DeleteDataSource for usage and error information. +// +// Returned Error Codes: +// * InvalidInputException +// An error on the client occurred. Typically, the cause is an invalid input +// value. +// +// * ResourceNotFoundException +// A specified resource cannot be located. +// +// * InternalServerException +// An error on the server occurred when trying to process a request. +// func (c *MachineLearning) DeleteDataSource(input *DeleteDataSourceInput) (*DeleteDataSourceOutput, error) { req, out := c.DeleteDataSourceRequest(input) err := req.Send() @@ -628,6 +876,8 @@ const opDeleteEvaluation = "DeleteEvaluation" // value can be used to capture response data after the request's "Send" method // is called. // +// See DeleteEvaluation for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -662,12 +912,33 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Machine Learning's +// API operation DeleteEvaluation for usage and error information. +// +// Returned Error Codes: +// * InvalidInputException +// An error on the client occurred. Typically, the cause is an invalid input +// value. +// +// * ResourceNotFoundException +// A specified resource cannot be located. +// +// * InternalServerException +// An error on the server occurred when trying to process a request. +// func (c *MachineLearning) DeleteEvaluation(input *DeleteEvaluationInput) (*DeleteEvaluationOutput, error) { req, out := c.DeleteEvaluationRequest(input) err := req.Send() @@ -681,6 +952,8 @@ const opDeleteMLModel = "DeleteMLModel" // value can be used to capture response data after the request's "Send" method // is called. // +// See DeleteMLModel for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -715,12 +988,33 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Machine Learning's +// API operation DeleteMLModel for usage and error information. +// +// Returned Error Codes: +// * InvalidInputException +// An error on the client occurred. Typically, the cause is an invalid input +// value. +// +// * ResourceNotFoundException +// A specified resource cannot be located. +// +// * InternalServerException +// An error on the server occurred when trying to process a request. +// func (c *MachineLearning) DeleteMLModel(input *DeleteMLModelInput) (*DeleteMLModelOutput, error) { req, out := c.DeleteMLModelRequest(input) err := req.Send() @@ -734,6 +1028,8 @@ const opDeleteRealtimeEndpoint = "DeleteRealtimeEndpoint" // value can be used to capture response data after the request's "Send" method // is called. // +// See DeleteRealtimeEndpoint for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -768,7 +1064,28 @@ func (c *MachineLearning) DeleteRealtimeEndpointRequest(input *DeleteRealtimeEnd return } +// DeleteRealtimeEndpoint API operation for Amazon Machine Learning. +// // Deletes a real time endpoint of an MLModel. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Machine Learning's +// API operation DeleteRealtimeEndpoint for usage and error information. +// +// Returned Error Codes: +// * InvalidInputException +// An error on the client occurred. Typically, the cause is an invalid input +// value. +// +// * ResourceNotFoundException +// A specified resource cannot be located. +// +// * InternalServerException +// An error on the server occurred when trying to process a request. +// func (c *MachineLearning) DeleteRealtimeEndpoint(input *DeleteRealtimeEndpointInput) (*DeleteRealtimeEndpointOutput, error) { req, out := c.DeleteRealtimeEndpointRequest(input) err := req.Send() @@ -782,6 +1099,8 @@ const opDeleteTags = "DeleteTags" // value can be used to capture response data after the request's "Send" method // is called. // +// See DeleteTags for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -816,10 +1135,34 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Machine Learning's +// API operation DeleteTags for usage and error information. +// +// Returned Error Codes: +// * InvalidInputException +// An error on the client occurred. Typically, the cause is an invalid input +// value. +// +// * InvalidTagException + +// +// * ResourceNotFoundException +// A specified resource cannot be located. +// +// * InternalServerException +// An error on the server occurred when trying to process a request. +// func (c *MachineLearning) DeleteTags(input *DeleteTagsInput) (*DeleteTagsOutput, error) { req, out := c.DeleteTagsRequest(input) err := req.Send() @@ -833,6 +1176,8 @@ const opDescribeBatchPredictions = "DescribeBatchPredictions" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeBatchPredictions for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -873,8 +1218,26 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Machine Learning's +// API operation DescribeBatchPredictions for usage and error information. +// +// Returned Error Codes: +// * InvalidInputException +// An error on the client occurred. Typically, the cause is an invalid input +// value. +// +// * InternalServerException +// An error on the server occurred when trying to process a request. +// func (c *MachineLearning) DescribeBatchPredictions(input *DescribeBatchPredictionsInput) (*DescribeBatchPredictionsOutput, error) { req, out := c.DescribeBatchPredictionsRequest(input) err := req.Send() @@ -913,6 +1276,8 @@ const opDescribeDataSources = "DescribeDataSources" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeDataSources for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -953,7 +1318,25 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Machine Learning's +// API operation DescribeDataSources for usage and error information. +// +// Returned Error Codes: +// * InvalidInputException +// An error on the client occurred. Typically, the cause is an invalid input +// value. +// +// * InternalServerException +// An error on the server occurred when trying to process a request. +// func (c *MachineLearning) DescribeDataSources(input *DescribeDataSourcesInput) (*DescribeDataSourcesOutput, error) { req, out := c.DescribeDataSourcesRequest(input) err := req.Send() @@ -992,6 +1375,8 @@ const opDescribeEvaluations = "DescribeEvaluations" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeEvaluations for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1032,8 +1417,26 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Machine Learning's +// API operation DescribeEvaluations for usage and error information. +// +// Returned Error Codes: +// * InvalidInputException +// An error on the client occurred. Typically, the cause is an invalid input +// value. +// +// * InternalServerException +// An error on the server occurred when trying to process a request. +// func (c *MachineLearning) DescribeEvaluations(input *DescribeEvaluationsInput) (*DescribeEvaluationsOutput, error) { req, out := c.DescribeEvaluationsRequest(input) err := req.Send() @@ -1072,6 +1475,8 @@ const opDescribeMLModels = "DescribeMLModels" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeMLModels for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1112,7 +1517,25 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Machine Learning's +// API operation DescribeMLModels for usage and error information. +// +// Returned Error Codes: +// * InvalidInputException +// An error on the client occurred. Typically, the cause is an invalid input +// value. +// +// * InternalServerException +// An error on the server occurred when trying to process a request. +// func (c *MachineLearning) DescribeMLModels(input *DescribeMLModelsInput) (*DescribeMLModelsOutput, error) { req, out := c.DescribeMLModelsRequest(input) err := req.Send() @@ -1151,6 +1574,8 @@ const opDescribeTags = "DescribeTags" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeTags for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1185,7 +1610,28 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Machine Learning's +// API operation DescribeTags for usage and error information. +// +// Returned Error Codes: +// * InvalidInputException +// An error on the client occurred. Typically, the cause is an invalid input +// value. +// +// * ResourceNotFoundException +// A specified resource cannot be located. +// +// * InternalServerException +// An error on the server occurred when trying to process a request. +// func (c *MachineLearning) DescribeTags(input *DescribeTagsInput) (*DescribeTagsOutput, error) { req, out := c.DescribeTagsRequest(input) err := req.Send() @@ -1199,6 +1645,8 @@ const opGetBatchPrediction = "GetBatchPrediction" // value can be used to capture response data after the request's "Send" method // is called. // +// See GetBatchPrediction for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1233,8 +1681,29 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Machine Learning's +// API operation GetBatchPrediction for usage and error information. +// +// Returned Error Codes: +// * InvalidInputException +// An error on the client occurred. Typically, the cause is an invalid input +// value. +// +// * ResourceNotFoundException +// A specified resource cannot be located. +// +// * InternalServerException +// An error on the server occurred when trying to process a request. +// func (c *MachineLearning) GetBatchPrediction(input *GetBatchPredictionInput) (*GetBatchPredictionOutput, error) { req, out := c.GetBatchPredictionRequest(input) err := req.Send() @@ -1248,6 +1717,8 @@ const opGetDataSource = "GetDataSource" // value can be used to capture response data after the request's "Send" method // is called. // +// See GetDataSource for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1282,12 +1753,33 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Machine Learning's +// API operation GetDataSource for usage and error information. +// +// Returned Error Codes: +// * InvalidInputException +// An error on the client occurred. Typically, the cause is an invalid input +// value. +// +// * ResourceNotFoundException +// A specified resource cannot be located. +// +// * InternalServerException +// An error on the server occurred when trying to process a request. +// func (c *MachineLearning) GetDataSource(input *GetDataSourceInput) (*GetDataSourceOutput, error) { req, out := c.GetDataSourceRequest(input) err := req.Send() @@ -1301,6 +1793,8 @@ const opGetEvaluation = "GetEvaluation" // value can be used to capture response data after the request's "Send" method // is called. // +// See GetEvaluation for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1335,8 +1829,29 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Machine Learning's +// API operation GetEvaluation for usage and error information. +// +// Returned Error Codes: +// * InvalidInputException +// An error on the client occurred. Typically, the cause is an invalid input +// value. +// +// * ResourceNotFoundException +// A specified resource cannot be located. +// +// * InternalServerException +// An error on the server occurred when trying to process a request. +// func (c *MachineLearning) GetEvaluation(input *GetEvaluationInput) (*GetEvaluationOutput, error) { req, out := c.GetEvaluationRequest(input) err := req.Send() @@ -1350,6 +1865,8 @@ const opGetMLModel = "GetMLModel" // value can be used to capture response data after the request's "Send" method // is called. // +// See GetMLModel for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1384,10 +1901,31 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Machine Learning's +// API operation GetMLModel for usage and error information. +// +// Returned Error Codes: +// * InvalidInputException +// An error on the client occurred. Typically, the cause is an invalid input +// value. +// +// * ResourceNotFoundException +// A specified resource cannot be located. +// +// * InternalServerException +// An error on the server occurred when trying to process a request. +// func (c *MachineLearning) GetMLModel(input *GetMLModelInput) (*GetMLModelOutput, error) { req, out := c.GetMLModelRequest(input) err := req.Send() @@ -1401,6 +1939,8 @@ const opPredict = "Predict" // value can be used to capture response data after the request's "Send" method // is called. // +// See Predict for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1435,10 +1975,38 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Machine Learning's +// API operation Predict for usage and error information. +// +// Returned Error Codes: +// * InvalidInputException +// An error on the client occurred. Typically, the cause is an invalid input +// value. +// +// * ResourceNotFoundException +// A specified resource cannot be located. +// +// * LimitExceededException +// The subscriber exceeded the maximum number of operations. This exception +// can occur when listing objects such as DataSource. +// +// * InternalServerException +// An error on the server occurred when trying to process a request. +// +// * PredictorNotMountedException +// The exception is thrown when a predict request is made to an unmounted MLModel. +// func (c *MachineLearning) Predict(input *PredictInput) (*PredictOutput, error) { req, out := c.PredictRequest(input) err := req.Send() @@ -1452,6 +2020,8 @@ const opUpdateBatchPrediction = "UpdateBatchPrediction" // value can be used to capture response data after the request's "Send" method // is called. // +// See UpdateBatchPrediction for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1486,10 +2056,31 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Machine Learning's +// API operation UpdateBatchPrediction for usage and error information. +// +// Returned Error Codes: +// * InvalidInputException +// An error on the client occurred. Typically, the cause is an invalid input +// value. +// +// * ResourceNotFoundException +// A specified resource cannot be located. +// +// * InternalServerException +// An error on the server occurred when trying to process a request. +// func (c *MachineLearning) UpdateBatchPrediction(input *UpdateBatchPredictionInput) (*UpdateBatchPredictionOutput, error) { req, out := c.UpdateBatchPredictionRequest(input) err := req.Send() @@ -1503,6 +2094,8 @@ const opUpdateDataSource = "UpdateDataSource" // value can be used to capture response data after the request's "Send" method // is called. // +// See UpdateDataSource for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1537,10 +2130,31 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Machine Learning's +// API operation UpdateDataSource for usage and error information. +// +// Returned Error Codes: +// * InvalidInputException +// An error on the client occurred. Typically, the cause is an invalid input +// value. +// +// * ResourceNotFoundException +// A specified resource cannot be located. +// +// * InternalServerException +// An error on the server occurred when trying to process a request. +// func (c *MachineLearning) UpdateDataSource(input *UpdateDataSourceInput) (*UpdateDataSourceOutput, error) { req, out := c.UpdateDataSourceRequest(input) err := req.Send() @@ -1554,6 +2168,8 @@ const opUpdateEvaluation = "UpdateEvaluation" // value can be used to capture response data after the request's "Send" method // is called. // +// See UpdateEvaluation for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1588,10 +2204,31 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Machine Learning's +// API operation UpdateEvaluation for usage and error information. +// +// Returned Error Codes: +// * InvalidInputException +// An error on the client occurred. Typically, the cause is an invalid input +// value. +// +// * ResourceNotFoundException +// A specified resource cannot be located. +// +// * InternalServerException +// An error on the server occurred when trying to process a request. +// func (c *MachineLearning) UpdateEvaluation(input *UpdateEvaluationInput) (*UpdateEvaluationOutput, error) { req, out := c.UpdateEvaluationRequest(input) err := req.Send() @@ -1605,6 +2242,8 @@ const opUpdateMLModel = "UpdateMLModel" // value can be used to capture response data after the request's "Send" method // is called. // +// See UpdateMLModel for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1639,10 +2278,31 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Machine Learning's +// API operation UpdateMLModel for usage and error information. +// +// Returned Error Codes: +// * InvalidInputException +// An error on the client occurred. Typically, the cause is an invalid input +// value. +// +// * ResourceNotFoundException +// A specified resource cannot be located. +// +// * InternalServerException +// An error on the server occurred when trying to process a request. +// 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..c3a3c6aaf21 100644 --- a/service/marketplacecommerceanalytics/api.go +++ b/service/marketplacecommerceanalytics/api.go @@ -17,6 +17,8 @@ const opGenerateDataSet = "GenerateDataSet" // value can be used to capture response data after the request's "Send" method // is called. // +// See GenerateDataSet for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -51,6 +53,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 +65,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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Marketplace Commerce Analytics's +// API operation GenerateDataSet for usage and error information. +// +// Returned Error Codes: +// * Exception +// This exception is thrown when an internal service error occurs. +// func (c *MarketplaceCommerceAnalytics) GenerateDataSet(input *GenerateDataSetInput) (*GenerateDataSetOutput, error) { req, out := c.GenerateDataSetRequest(input) err := req.Send() @@ -74,6 +90,8 @@ const opStartSupportDataExport = "StartSupportDataExport" // value can be used to capture response data after the request's "Send" method // is called. // +// See StartSupportDataExport for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -108,6 +126,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 +139,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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Marketplace Commerce Analytics's +// API operation StartSupportDataExport for usage and error information. +// +// Returned Error Codes: +// * Exception +// This exception is thrown when an internal service error occurs. +// 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..9eef1b10117 100644 --- a/service/marketplacemetering/api.go +++ b/service/marketplacemetering/api.go @@ -17,6 +17,8 @@ const opMeterUsage = "MeterUsage" // value can be used to capture response data after the request's "Send" method // is called. // +// See MeterUsage for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -51,8 +53,46 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWSMarketplace Metering's +// API operation MeterUsage for usage and error information. +// +// Returned Error Codes: +// * InternalServiceErrorException +// An internal error has occurred. Retry your request. If the problem persists, +// post a message with details on the AWS forums. +// +// * InvalidProductCodeException +// The product code passed does not match the product code used for publishing +// the product. +// +// * InvalidUsageDimensionException +// The usage dimension does not match one of the UsageDimensions associated +// with products. +// +// * InvalidEndpointRegionException +// The endpoint being called is in a region different from your EC2 instance. +// The region of the Metering service endpoint and the region of the EC2 instance +// must match. +// +// * TimestampOutOfBoundsException +// The timestamp value passed in the meterUsage() is out of allowed range. +// +// * DuplicateRequestException +// A metering record has already been emitted by the same EC2 instance for the +// given {usageDimension, timestamp} with a different usageQuantity. +// +// * ThrottlingException +// The calls to the MeterUsage API are throttled. +// 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..1d4418cddb4 100644 --- a/service/mobileanalytics/api.go +++ b/service/mobileanalytics/api.go @@ -19,6 +19,8 @@ const opPutEvents = "PutEvents" // value can be used to capture response data after the request's "Send" method // is called. // +// See PutEvents for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -55,9 +57,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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Mobile Analytics's +// API operation PutEvents for usage and error information. +// +// Returned Error Codes: +// * BadRequestException +// An exception object returned when a request fails. +// 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..507f05eec52 100644 --- a/service/opsworks/api.go +++ b/service/opsworks/api.go @@ -19,6 +19,8 @@ const opAssignInstance = "AssignInstance" // value can be used to capture response data after the request's "Send" method // is called. // +// See AssignInstance for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -55,6 +57,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 +71,21 @@ 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). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS OpsWorks's +// API operation AssignInstance for usage and error information. +// +// Returned Error Codes: +// * ValidationException +// Indicates that a request was not valid. +// +// * ResourceNotFoundException +// Indicates that a resource was not found. +// func (c *OpsWorks) AssignInstance(input *AssignInstanceInput) (*AssignInstanceOutput, error) { req, out := c.AssignInstanceRequest(input) err := req.Send() @@ -80,6 +99,8 @@ const opAssignVolume = "AssignVolume" // value can be used to capture response data after the request's "Send" method // is called. // +// See AssignVolume for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -116,6 +137,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 +149,21 @@ 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). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS OpsWorks's +// API operation AssignVolume for usage and error information. +// +// Returned Error Codes: +// * ValidationException +// Indicates that a request was not valid. +// +// * ResourceNotFoundException +// Indicates that a resource was not found. +// func (c *OpsWorks) AssignVolume(input *AssignVolumeInput) (*AssignVolumeOutput, error) { req, out := c.AssignVolumeRequest(input) err := req.Send() @@ -139,6 +177,8 @@ const opAssociateElasticIp = "AssociateElasticIp" // value can be used to capture response data after the request's "Send" method // is called. // +// See AssociateElasticIp for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -175,6 +215,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 +225,21 @@ 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). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS OpsWorks's +// API operation AssociateElasticIp for usage and error information. +// +// Returned Error Codes: +// * ValidationException +// Indicates that a request was not valid. +// +// * ResourceNotFoundException +// Indicates that a resource was not found. +// func (c *OpsWorks) AssociateElasticIp(input *AssociateElasticIpInput) (*AssociateElasticIpOutput, error) { req, out := c.AssociateElasticIpRequest(input) err := req.Send() @@ -196,6 +253,8 @@ const opAttachElasticLoadBalancer = "AttachElasticLoadBalancer" // value can be used to capture response data after the request's "Send" method // is called. // +// See AttachElasticLoadBalancer for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -232,6 +291,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 +304,21 @@ 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). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS OpsWorks's +// API operation AttachElasticLoadBalancer for usage and error information. +// +// Returned Error Codes: +// * ValidationException +// Indicates that a request was not valid. +// +// * ResourceNotFoundException +// Indicates that a resource was not found. +// func (c *OpsWorks) AttachElasticLoadBalancer(input *AttachElasticLoadBalancerInput) (*AttachElasticLoadBalancerOutput, error) { req, out := c.AttachElasticLoadBalancerRequest(input) err := req.Send() @@ -256,6 +332,8 @@ const opCloneStack = "CloneStack" // value can be used to capture response data after the request's "Send" method // is called. // +// See CloneStack for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -290,6 +368,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 +377,21 @@ 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). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS OpsWorks's +// API operation CloneStack for usage and error information. +// +// Returned Error Codes: +// * ValidationException +// Indicates that a request was not valid. +// +// * ResourceNotFoundException +// Indicates that a resource was not found. +// func (c *OpsWorks) CloneStack(input *CloneStackInput) (*CloneStackOutput, error) { req, out := c.CloneStackRequest(input) err := req.Send() @@ -310,6 +405,8 @@ const opCreateApp = "CreateApp" // value can be used to capture response data after the request's "Send" method // is called. // +// See CreateApp for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -344,6 +441,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 +450,21 @@ 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). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS OpsWorks's +// API operation CreateApp for usage and error information. +// +// Returned Error Codes: +// * ValidationException +// Indicates that a request was not valid. +// +// * ResourceNotFoundException +// Indicates that a resource was not found. +// func (c *OpsWorks) CreateApp(input *CreateAppInput) (*CreateAppOutput, error) { req, out := c.CreateAppRequest(input) err := req.Send() @@ -364,6 +478,8 @@ const opCreateDeployment = "CreateDeployment" // value can be used to capture response data after the request's "Send" method // is called. // +// See CreateDeployment for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -398,6 +514,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 +524,21 @@ 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). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS OpsWorks's +// API operation CreateDeployment for usage and error information. +// +// Returned Error Codes: +// * ValidationException +// Indicates that a request was not valid. +// +// * ResourceNotFoundException +// Indicates that a resource was not found. +// func (c *OpsWorks) CreateDeployment(input *CreateDeploymentInput) (*CreateDeploymentOutput, error) { req, out := c.CreateDeploymentRequest(input) err := req.Send() @@ -419,6 +552,8 @@ const opCreateInstance = "CreateInstance" // value can be used to capture response data after the request's "Send" method // is called. // +// See CreateInstance for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -453,6 +588,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 +597,21 @@ 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). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS OpsWorks's +// API operation CreateInstance for usage and error information. +// +// Returned Error Codes: +// * ValidationException +// Indicates that a request was not valid. +// +// * ResourceNotFoundException +// Indicates that a resource was not found. +// func (c *OpsWorks) CreateInstance(input *CreateInstanceInput) (*CreateInstanceOutput, error) { req, out := c.CreateInstanceRequest(input) err := req.Send() @@ -473,6 +625,8 @@ const opCreateLayer = "CreateLayer" // value can be used to capture response data after the request's "Send" method // is called. // +// See CreateLayer for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -507,6 +661,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 +676,21 @@ 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). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS OpsWorks's +// API operation CreateLayer for usage and error information. +// +// Returned Error Codes: +// * ValidationException +// Indicates that a request was not valid. +// +// * ResourceNotFoundException +// Indicates that a resource was not found. +// func (c *OpsWorks) CreateLayer(input *CreateLayerInput) (*CreateLayerOutput, error) { req, out := c.CreateLayerRequest(input) err := req.Send() @@ -533,6 +704,8 @@ const opCreateStack = "CreateStack" // value can be used to capture response data after the request's "Send" method // is called. // +// See CreateStack for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -567,11 +740,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). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS OpsWorks's +// API operation CreateStack for usage and error information. +// +// Returned Error Codes: +// * ValidationException +// Indicates that a request was not valid. +// func (c *OpsWorks) CreateStack(input *CreateStackInput) (*CreateStackOutput, error) { req, out := c.CreateStackRequest(input) err := req.Send() @@ -585,6 +772,8 @@ const opCreateUserProfile = "CreateUserProfile" // value can be used to capture response data after the request's "Send" method // is called. // +// See CreateUserProfile for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -619,11 +808,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). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS OpsWorks's +// API operation CreateUserProfile for usage and error information. +// +// Returned Error Codes: +// * ValidationException +// Indicates that a request was not valid. +// func (c *OpsWorks) CreateUserProfile(input *CreateUserProfileInput) (*CreateUserProfileOutput, error) { req, out := c.CreateUserProfileRequest(input) err := req.Send() @@ -637,6 +840,8 @@ const opDeleteApp = "DeleteApp" // value can be used to capture response data after the request's "Send" method // is called. // +// See DeleteApp for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -673,12 +878,29 @@ 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). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS OpsWorks's +// API operation DeleteApp for usage and error information. +// +// Returned Error Codes: +// * ValidationException +// Indicates that a request was not valid. +// +// * ResourceNotFoundException +// Indicates that a resource was not found. +// func (c *OpsWorks) DeleteApp(input *DeleteAppInput) (*DeleteAppOutput, error) { req, out := c.DeleteAppRequest(input) err := req.Send() @@ -692,6 +914,8 @@ const opDeleteInstance = "DeleteInstance" // value can be used to capture response data after the request's "Send" method // is called. // +// See DeleteInstance for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -728,6 +952,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 +963,21 @@ 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). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS OpsWorks's +// API operation DeleteInstance for usage and error information. +// +// Returned Error Codes: +// * ValidationException +// Indicates that a request was not valid. +// +// * ResourceNotFoundException +// Indicates that a resource was not found. +// func (c *OpsWorks) DeleteInstance(input *DeleteInstanceInput) (*DeleteInstanceOutput, error) { req, out := c.DeleteInstanceRequest(input) err := req.Send() @@ -750,6 +991,8 @@ const opDeleteLayer = "DeleteLayer" // value can be used to capture response data after the request's "Send" method // is called. // +// See DeleteLayer for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -786,6 +1029,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 +1039,21 @@ 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). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS OpsWorks's +// API operation DeleteLayer for usage and error information. +// +// Returned Error Codes: +// * ValidationException +// Indicates that a request was not valid. +// +// * ResourceNotFoundException +// Indicates that a resource was not found. +// func (c *OpsWorks) DeleteLayer(input *DeleteLayerInput) (*DeleteLayerOutput, error) { req, out := c.DeleteLayerRequest(input) err := req.Send() @@ -807,6 +1067,8 @@ const opDeleteStack = "DeleteStack" // value can be used to capture response data after the request's "Send" method // is called. // +// See DeleteStack for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -843,6 +1105,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 +1115,21 @@ 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). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS OpsWorks's +// API operation DeleteStack for usage and error information. +// +// Returned Error Codes: +// * ValidationException +// Indicates that a request was not valid. +// +// * ResourceNotFoundException +// Indicates that a resource was not found. +// func (c *OpsWorks) DeleteStack(input *DeleteStackInput) (*DeleteStackOutput, error) { req, out := c.DeleteStackRequest(input) err := req.Send() @@ -864,6 +1143,8 @@ const opDeleteUserProfile = "DeleteUserProfile" // value can be used to capture response data after the request's "Send" method // is called. // +// See DeleteUserProfile for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -900,11 +1181,28 @@ 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). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS OpsWorks's +// API operation DeleteUserProfile for usage and error information. +// +// Returned Error Codes: +// * ValidationException +// Indicates that a request was not valid. +// +// * ResourceNotFoundException +// Indicates that a resource was not found. +// func (c *OpsWorks) DeleteUserProfile(input *DeleteUserProfileInput) (*DeleteUserProfileOutput, error) { req, out := c.DeleteUserProfileRequest(input) err := req.Send() @@ -918,6 +1216,8 @@ const opDeregisterEcsCluster = "DeregisterEcsCluster" // value can be used to capture response data after the request's "Send" method // is called. // +// See DeregisterEcsCluster for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -954,6 +1254,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 +1263,21 @@ 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). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS OpsWorks's +// API operation DeregisterEcsCluster for usage and error information. +// +// Returned Error Codes: +// * ValidationException +// Indicates that a request was not valid. +// +// * ResourceNotFoundException +// Indicates that a resource was not found. +// func (c *OpsWorks) DeregisterEcsCluster(input *DeregisterEcsClusterInput) (*DeregisterEcsClusterOutput, error) { req, out := c.DeregisterEcsClusterRequest(input) err := req.Send() @@ -974,6 +1291,8 @@ const opDeregisterElasticIp = "DeregisterElasticIp" // value can be used to capture response data after the request's "Send" method // is called. // +// See DeregisterElasticIp for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1010,6 +1329,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 +1338,21 @@ 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). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS OpsWorks's +// API operation DeregisterElasticIp for usage and error information. +// +// Returned Error Codes: +// * ValidationException +// Indicates that a request was not valid. +// +// * ResourceNotFoundException +// Indicates that a resource was not found. +// func (c *OpsWorks) DeregisterElasticIp(input *DeregisterElasticIpInput) (*DeregisterElasticIpOutput, error) { req, out := c.DeregisterElasticIpRequest(input) err := req.Send() @@ -1030,6 +1366,8 @@ const opDeregisterInstance = "DeregisterInstance" // value can be used to capture response data after the request's "Send" method // is called. // +// See DeregisterInstance for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1066,6 +1404,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 +1414,21 @@ 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). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS OpsWorks's +// API operation DeregisterInstance for usage and error information. +// +// Returned Error Codes: +// * ValidationException +// Indicates that a request was not valid. +// +// * ResourceNotFoundException +// Indicates that a resource was not found. +// func (c *OpsWorks) DeregisterInstance(input *DeregisterInstanceInput) (*DeregisterInstanceOutput, error) { req, out := c.DeregisterInstanceRequest(input) err := req.Send() @@ -1087,6 +1442,8 @@ const opDeregisterRdsDbInstance = "DeregisterRdsDbInstance" // value can be used to capture response data after the request's "Send" method // is called. // +// See DeregisterRdsDbInstance for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1123,12 +1480,29 @@ 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). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS OpsWorks's +// API operation DeregisterRdsDbInstance for usage and error information. +// +// Returned Error Codes: +// * ValidationException +// Indicates that a request was not valid. +// +// * ResourceNotFoundException +// Indicates that a resource was not found. +// func (c *OpsWorks) DeregisterRdsDbInstance(input *DeregisterRdsDbInstanceInput) (*DeregisterRdsDbInstanceOutput, error) { req, out := c.DeregisterRdsDbInstanceRequest(input) err := req.Send() @@ -1142,6 +1516,8 @@ const opDeregisterVolume = "DeregisterVolume" // value can be used to capture response data after the request's "Send" method // is called. // +// See DeregisterVolume for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1178,6 +1554,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 +1563,21 @@ 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). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS OpsWorks's +// API operation DeregisterVolume for usage and error information. +// +// Returned Error Codes: +// * ValidationException +// Indicates that a request was not valid. +// +// * ResourceNotFoundException +// Indicates that a resource was not found. +// func (c *OpsWorks) DeregisterVolume(input *DeregisterVolumeInput) (*DeregisterVolumeOutput, error) { req, out := c.DeregisterVolumeRequest(input) err := req.Send() @@ -1198,6 +1591,8 @@ const opDescribeAgentVersions = "DescribeAgentVersions" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeAgentVersions for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1232,9 +1627,26 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS OpsWorks's +// API operation DescribeAgentVersions for usage and error information. +// +// Returned Error Codes: +// * ValidationException +// Indicates that a request was not valid. +// +// * ResourceNotFoundException +// Indicates that a resource was not found. +// func (c *OpsWorks) DescribeAgentVersions(input *DescribeAgentVersionsInput) (*DescribeAgentVersionsOutput, error) { req, out := c.DescribeAgentVersionsRequest(input) err := req.Send() @@ -1248,6 +1660,8 @@ const opDescribeApps = "DescribeApps" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeApps for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1282,6 +1696,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 +1706,21 @@ 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). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS OpsWorks's +// API operation DescribeApps for usage and error information. +// +// Returned Error Codes: +// * ValidationException +// Indicates that a request was not valid. +// +// * ResourceNotFoundException +// Indicates that a resource was not found. +// func (c *OpsWorks) DescribeApps(input *DescribeAppsInput) (*DescribeAppsOutput, error) { req, out := c.DescribeAppsRequest(input) err := req.Send() @@ -1303,6 +1734,8 @@ const opDescribeCommands = "DescribeCommands" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeCommands for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1337,6 +1770,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 +1780,21 @@ 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). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS OpsWorks's +// API operation DescribeCommands for usage and error information. +// +// Returned Error Codes: +// * ValidationException +// Indicates that a request was not valid. +// +// * ResourceNotFoundException +// Indicates that a resource was not found. +// func (c *OpsWorks) DescribeCommands(input *DescribeCommandsInput) (*DescribeCommandsOutput, error) { req, out := c.DescribeCommandsRequest(input) err := req.Send() @@ -1358,6 +1808,8 @@ const opDescribeDeployments = "DescribeDeployments" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeDeployments for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1392,6 +1844,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 +1854,21 @@ 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). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS OpsWorks's +// API operation DescribeDeployments for usage and error information. +// +// Returned Error Codes: +// * ValidationException +// Indicates that a request was not valid. +// +// * ResourceNotFoundException +// Indicates that a resource was not found. +// func (c *OpsWorks) DescribeDeployments(input *DescribeDeploymentsInput) (*DescribeDeploymentsOutput, error) { req, out := c.DescribeDeploymentsRequest(input) err := req.Send() @@ -1413,6 +1882,8 @@ const opDescribeEcsClusters = "DescribeEcsClusters" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeEcsClusters for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1453,6 +1924,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 +1935,21 @@ 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). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS OpsWorks's +// API operation DescribeEcsClusters for usage and error information. +// +// Returned Error Codes: +// * ValidationException +// Indicates that a request was not valid. +// +// * ResourceNotFoundException +// Indicates that a resource was not found. +// func (c *OpsWorks) DescribeEcsClusters(input *DescribeEcsClustersInput) (*DescribeEcsClustersOutput, error) { req, out := c.DescribeEcsClustersRequest(input) err := req.Send() @@ -1500,6 +1988,8 @@ const opDescribeElasticIps = "DescribeElasticIps" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeElasticIps for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1534,6 +2024,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 +2034,21 @@ 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). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS OpsWorks's +// API operation DescribeElasticIps for usage and error information. +// +// Returned Error Codes: +// * ValidationException +// Indicates that a request was not valid. +// +// * ResourceNotFoundException +// Indicates that a resource was not found. +// func (c *OpsWorks) DescribeElasticIps(input *DescribeElasticIpsInput) (*DescribeElasticIpsOutput, error) { req, out := c.DescribeElasticIpsRequest(input) err := req.Send() @@ -1555,6 +2062,8 @@ const opDescribeElasticLoadBalancers = "DescribeElasticLoadBalancers" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeElasticLoadBalancers for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1589,6 +2098,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 +2108,21 @@ 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). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS OpsWorks's +// API operation DescribeElasticLoadBalancers for usage and error information. +// +// Returned Error Codes: +// * ValidationException +// Indicates that a request was not valid. +// +// * ResourceNotFoundException +// Indicates that a resource was not found. +// func (c *OpsWorks) DescribeElasticLoadBalancers(input *DescribeElasticLoadBalancersInput) (*DescribeElasticLoadBalancersOutput, error) { req, out := c.DescribeElasticLoadBalancersRequest(input) err := req.Send() @@ -1610,6 +2136,8 @@ const opDescribeInstances = "DescribeInstances" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeInstances for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1644,6 +2172,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 +2182,21 @@ 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). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS OpsWorks's +// API operation DescribeInstances for usage and error information. +// +// Returned Error Codes: +// * ValidationException +// Indicates that a request was not valid. +// +// * ResourceNotFoundException +// Indicates that a resource was not found. +// func (c *OpsWorks) DescribeInstances(input *DescribeInstancesInput) (*DescribeInstancesOutput, error) { req, out := c.DescribeInstancesRequest(input) err := req.Send() @@ -1665,6 +2210,8 @@ const opDescribeLayers = "DescribeLayers" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeLayers for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1699,6 +2246,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 +2256,21 @@ 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). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS OpsWorks's +// API operation DescribeLayers for usage and error information. +// +// Returned Error Codes: +// * ValidationException +// Indicates that a request was not valid. +// +// * ResourceNotFoundException +// Indicates that a resource was not found. +// func (c *OpsWorks) DescribeLayers(input *DescribeLayersInput) (*DescribeLayersOutput, error) { req, out := c.DescribeLayersRequest(input) err := req.Send() @@ -1720,6 +2284,8 @@ const opDescribeLoadBasedAutoScaling = "DescribeLoadBasedAutoScaling" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeLoadBasedAutoScaling for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1754,6 +2320,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 +2330,21 @@ 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). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS OpsWorks's +// API operation DescribeLoadBasedAutoScaling for usage and error information. +// +// Returned Error Codes: +// * ValidationException +// Indicates that a request was not valid. +// +// * ResourceNotFoundException +// Indicates that a resource was not found. +// func (c *OpsWorks) DescribeLoadBasedAutoScaling(input *DescribeLoadBasedAutoScalingInput) (*DescribeLoadBasedAutoScalingOutput, error) { req, out := c.DescribeLoadBasedAutoScalingRequest(input) err := req.Send() @@ -1775,6 +2358,8 @@ const opDescribeMyUserProfile = "DescribeMyUserProfile" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeMyUserProfile for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1809,11 +2394,20 @@ 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). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS OpsWorks's +// API operation DescribeMyUserProfile for usage and error information. func (c *OpsWorks) DescribeMyUserProfile(input *DescribeMyUserProfileInput) (*DescribeMyUserProfileOutput, error) { req, out := c.DescribeMyUserProfileRequest(input) err := req.Send() @@ -1827,6 +2421,8 @@ const opDescribePermissions = "DescribePermissions" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribePermissions for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1861,12 +2457,29 @@ 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). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS OpsWorks's +// API operation DescribePermissions for usage and error information. +// +// Returned Error Codes: +// * ValidationException +// Indicates that a request was not valid. +// +// * ResourceNotFoundException +// Indicates that a resource was not found. +// func (c *OpsWorks) DescribePermissions(input *DescribePermissionsInput) (*DescribePermissionsOutput, error) { req, out := c.DescribePermissionsRequest(input) err := req.Send() @@ -1880,6 +2493,8 @@ const opDescribeRaidArrays = "DescribeRaidArrays" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeRaidArrays for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1914,6 +2529,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 +2539,21 @@ 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). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS OpsWorks's +// API operation DescribeRaidArrays for usage and error information. +// +// Returned Error Codes: +// * ValidationException +// Indicates that a request was not valid. +// +// * ResourceNotFoundException +// Indicates that a resource was not found. +// func (c *OpsWorks) DescribeRaidArrays(input *DescribeRaidArraysInput) (*DescribeRaidArraysOutput, error) { req, out := c.DescribeRaidArraysRequest(input) err := req.Send() @@ -1935,6 +2567,8 @@ const opDescribeRdsDbInstances = "DescribeRdsDbInstances" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeRdsDbInstances for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1969,12 +2603,29 @@ 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). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS OpsWorks's +// API operation DescribeRdsDbInstances for usage and error information. +// +// Returned Error Codes: +// * ValidationException +// Indicates that a request was not valid. +// +// * ResourceNotFoundException +// Indicates that a resource was not found. +// func (c *OpsWorks) DescribeRdsDbInstances(input *DescribeRdsDbInstancesInput) (*DescribeRdsDbInstancesOutput, error) { req, out := c.DescribeRdsDbInstancesRequest(input) err := req.Send() @@ -1988,6 +2639,8 @@ const opDescribeServiceErrors = "DescribeServiceErrors" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeServiceErrors for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -2022,12 +2675,29 @@ 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). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS OpsWorks's +// API operation DescribeServiceErrors for usage and error information. +// +// Returned Error Codes: +// * ValidationException +// Indicates that a request was not valid. +// +// * ResourceNotFoundException +// Indicates that a resource was not found. +// func (c *OpsWorks) DescribeServiceErrors(input *DescribeServiceErrorsInput) (*DescribeServiceErrorsOutput, error) { req, out := c.DescribeServiceErrorsRequest(input) err := req.Send() @@ -2041,6 +2711,8 @@ const opDescribeStackProvisioningParameters = "DescribeStackProvisioningParamete // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeStackProvisioningParameters for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -2075,12 +2747,29 @@ 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). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS OpsWorks's +// API operation DescribeStackProvisioningParameters for usage and error information. +// +// Returned Error Codes: +// * ValidationException +// Indicates that a request was not valid. +// +// * ResourceNotFoundException +// Indicates that a resource was not found. +// func (c *OpsWorks) DescribeStackProvisioningParameters(input *DescribeStackProvisioningParametersInput) (*DescribeStackProvisioningParametersOutput, error) { req, out := c.DescribeStackProvisioningParametersRequest(input) err := req.Send() @@ -2094,6 +2783,8 @@ const opDescribeStackSummary = "DescribeStackSummary" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeStackSummary for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -2128,6 +2819,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 +2828,21 @@ 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). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS OpsWorks's +// API operation DescribeStackSummary for usage and error information. +// +// Returned Error Codes: +// * ValidationException +// Indicates that a request was not valid. +// +// * ResourceNotFoundException +// Indicates that a resource was not found. +// func (c *OpsWorks) DescribeStackSummary(input *DescribeStackSummaryInput) (*DescribeStackSummaryOutput, error) { req, out := c.DescribeStackSummaryRequest(input) err := req.Send() @@ -2148,6 +2856,8 @@ const opDescribeStacks = "DescribeStacks" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeStacks for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -2182,12 +2892,29 @@ 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). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS OpsWorks's +// API operation DescribeStacks for usage and error information. +// +// Returned Error Codes: +// * ValidationException +// Indicates that a request was not valid. +// +// * ResourceNotFoundException +// Indicates that a resource was not found. +// func (c *OpsWorks) DescribeStacks(input *DescribeStacksInput) (*DescribeStacksOutput, error) { req, out := c.DescribeStacksRequest(input) err := req.Send() @@ -2201,6 +2928,8 @@ const opDescribeTimeBasedAutoScaling = "DescribeTimeBasedAutoScaling" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeTimeBasedAutoScaling for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -2235,6 +2964,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 +2974,21 @@ 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). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS OpsWorks's +// API operation DescribeTimeBasedAutoScaling for usage and error information. +// +// Returned Error Codes: +// * ValidationException +// Indicates that a request was not valid. +// +// * ResourceNotFoundException +// Indicates that a resource was not found. +// func (c *OpsWorks) DescribeTimeBasedAutoScaling(input *DescribeTimeBasedAutoScalingInput) (*DescribeTimeBasedAutoScalingOutput, error) { req, out := c.DescribeTimeBasedAutoScalingRequest(input) err := req.Send() @@ -2256,6 +3002,8 @@ const opDescribeUserProfiles = "DescribeUserProfiles" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeUserProfiles for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -2290,11 +3038,28 @@ 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). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS OpsWorks's +// API operation DescribeUserProfiles for usage and error information. +// +// Returned Error Codes: +// * ValidationException +// Indicates that a request was not valid. +// +// * ResourceNotFoundException +// Indicates that a resource was not found. +// func (c *OpsWorks) DescribeUserProfiles(input *DescribeUserProfilesInput) (*DescribeUserProfilesOutput, error) { req, out := c.DescribeUserProfilesRequest(input) err := req.Send() @@ -2308,6 +3073,8 @@ const opDescribeVolumes = "DescribeVolumes" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeVolumes for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -2342,6 +3109,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 +3119,21 @@ 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). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS OpsWorks's +// API operation DescribeVolumes for usage and error information. +// +// Returned Error Codes: +// * ValidationException +// Indicates that a request was not valid. +// +// * ResourceNotFoundException +// Indicates that a resource was not found. +// func (c *OpsWorks) DescribeVolumes(input *DescribeVolumesInput) (*DescribeVolumesOutput, error) { req, out := c.DescribeVolumesRequest(input) err := req.Send() @@ -2363,6 +3147,8 @@ const opDetachElasticLoadBalancer = "DetachElasticLoadBalancer" // value can be used to capture response data after the request's "Send" method // is called. // +// See DetachElasticLoadBalancer for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -2399,12 +3185,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). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS OpsWorks's +// API operation DetachElasticLoadBalancer for usage and error information. +// +// Returned Error Codes: +// * ResourceNotFoundException +// Indicates that a resource was not found. +// func (c *OpsWorks) DetachElasticLoadBalancer(input *DetachElasticLoadBalancerInput) (*DetachElasticLoadBalancerOutput, error) { req, out := c.DetachElasticLoadBalancerRequest(input) err := req.Send() @@ -2418,6 +3218,8 @@ const opDisassociateElasticIp = "DisassociateElasticIp" // value can be used to capture response data after the request's "Send" method // is called. // +// See DisassociateElasticIp for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -2454,6 +3256,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 +3266,21 @@ 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). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS OpsWorks's +// API operation DisassociateElasticIp for usage and error information. +// +// Returned Error Codes: +// * ValidationException +// Indicates that a request was not valid. +// +// * ResourceNotFoundException +// Indicates that a resource was not found. +// func (c *OpsWorks) DisassociateElasticIp(input *DisassociateElasticIpInput) (*DisassociateElasticIpOutput, error) { req, out := c.DisassociateElasticIpRequest(input) err := req.Send() @@ -2475,6 +3294,8 @@ const opGetHostnameSuggestion = "GetHostnameSuggestion" // value can be used to capture response data after the request's "Send" method // is called. // +// See GetHostnameSuggestion for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -2509,6 +3330,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 +3339,21 @@ 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). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS OpsWorks's +// API operation GetHostnameSuggestion for usage and error information. +// +// Returned Error Codes: +// * ValidationException +// Indicates that a request was not valid. +// +// * ResourceNotFoundException +// Indicates that a resource was not found. +// func (c *OpsWorks) GetHostnameSuggestion(input *GetHostnameSuggestionInput) (*GetHostnameSuggestionOutput, error) { req, out := c.GetHostnameSuggestionRequest(input) err := req.Send() @@ -2529,6 +3367,8 @@ const opGrantAccess = "GrantAccess" // value can be used to capture response data after the request's "Send" method // is called. // +// See GrantAccess for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -2563,9 +3403,26 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS OpsWorks's +// API operation GrantAccess for usage and error information. +// +// Returned Error Codes: +// * ValidationException +// Indicates that a request was not valid. +// +// * ResourceNotFoundException +// Indicates that a resource was not found. +// func (c *OpsWorks) GrantAccess(input *GrantAccessInput) (*GrantAccessOutput, error) { req, out := c.GrantAccessRequest(input) err := req.Send() @@ -2579,6 +3436,8 @@ const opRebootInstance = "RebootInstance" // value can be used to capture response data after the request's "Send" method // is called. // +// See RebootInstance for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -2615,6 +3474,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 +3483,21 @@ 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). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS OpsWorks's +// API operation RebootInstance for usage and error information. +// +// Returned Error Codes: +// * ValidationException +// Indicates that a request was not valid. +// +// * ResourceNotFoundException +// Indicates that a resource was not found. +// func (c *OpsWorks) RebootInstance(input *RebootInstanceInput) (*RebootInstanceOutput, error) { req, out := c.RebootInstanceRequest(input) err := req.Send() @@ -2635,6 +3511,8 @@ const opRegisterEcsCluster = "RegisterEcsCluster" // value can be used to capture response data after the request's "Send" method // is called. // +// See RegisterEcsCluster for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -2669,6 +3547,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 +3557,21 @@ 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). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS OpsWorks's +// API operation RegisterEcsCluster for usage and error information. +// +// Returned Error Codes: +// * ValidationException +// Indicates that a request was not valid. +// +// * ResourceNotFoundException +// Indicates that a resource was not found. +// func (c *OpsWorks) RegisterEcsCluster(input *RegisterEcsClusterInput) (*RegisterEcsClusterOutput, error) { req, out := c.RegisterEcsClusterRequest(input) err := req.Send() @@ -2690,6 +3585,8 @@ const opRegisterElasticIp = "RegisterElasticIp" // value can be used to capture response data after the request's "Send" method // is called. // +// See RegisterElasticIp for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -2724,6 +3621,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 +3632,21 @@ 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). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS OpsWorks's +// API operation RegisterElasticIp for usage and error information. +// +// Returned Error Codes: +// * ValidationException +// Indicates that a request was not valid. +// +// * ResourceNotFoundException +// Indicates that a resource was not found. +// func (c *OpsWorks) RegisterElasticIp(input *RegisterElasticIpInput) (*RegisterElasticIpOutput, error) { req, out := c.RegisterElasticIpRequest(input) err := req.Send() @@ -2746,6 +3660,8 @@ const opRegisterInstance = "RegisterInstance" // value can be used to capture response data after the request's "Send" method // is called. // +// See RegisterInstance for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -2780,6 +3696,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 +3712,21 @@ 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). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS OpsWorks's +// API operation RegisterInstance for usage and error information. +// +// Returned Error Codes: +// * ValidationException +// Indicates that a request was not valid. +// +// * ResourceNotFoundException +// Indicates that a resource was not found. +// func (c *OpsWorks) RegisterInstance(input *RegisterInstanceInput) (*RegisterInstanceOutput, error) { req, out := c.RegisterInstanceRequest(input) err := req.Send() @@ -2807,6 +3740,8 @@ const opRegisterRdsDbInstance = "RegisterRdsDbInstance" // value can be used to capture response data after the request's "Send" method // is called. // +// See RegisterRdsDbInstance for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -2843,12 +3778,29 @@ 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). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS OpsWorks's +// API operation RegisterRdsDbInstance for usage and error information. +// +// Returned Error Codes: +// * ValidationException +// Indicates that a request was not valid. +// +// * ResourceNotFoundException +// Indicates that a resource was not found. +// func (c *OpsWorks) RegisterRdsDbInstance(input *RegisterRdsDbInstanceInput) (*RegisterRdsDbInstanceOutput, error) { req, out := c.RegisterRdsDbInstanceRequest(input) err := req.Send() @@ -2862,6 +3814,8 @@ const opRegisterVolume = "RegisterVolume" // value can be used to capture response data after the request's "Send" method // is called. // +// See RegisterVolume for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -2896,6 +3850,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 +3861,21 @@ 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). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS OpsWorks's +// API operation RegisterVolume for usage and error information. +// +// Returned Error Codes: +// * ValidationException +// Indicates that a request was not valid. +// +// * ResourceNotFoundException +// Indicates that a resource was not found. +// func (c *OpsWorks) RegisterVolume(input *RegisterVolumeInput) (*RegisterVolumeOutput, error) { req, out := c.RegisterVolumeRequest(input) err := req.Send() @@ -2918,6 +3889,8 @@ const opSetLoadBasedAutoScaling = "SetLoadBasedAutoScaling" // value can be used to capture response data after the request's "Send" method // is called. // +// See SetLoadBasedAutoScaling for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -2954,6 +3927,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 +3942,21 @@ 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). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS OpsWorks's +// API operation SetLoadBasedAutoScaling for usage and error information. +// +// Returned Error Codes: +// * ValidationException +// Indicates that a request was not valid. +// +// * ResourceNotFoundException +// Indicates that a resource was not found. +// func (c *OpsWorks) SetLoadBasedAutoScaling(input *SetLoadBasedAutoScalingInput) (*SetLoadBasedAutoScalingOutput, error) { req, out := c.SetLoadBasedAutoScalingRequest(input) err := req.Send() @@ -2980,6 +3970,8 @@ const opSetPermission = "SetPermission" // value can be used to capture response data after the request's "Send" method // is called. // +// See SetPermission for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -3016,6 +4008,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 +4017,21 @@ 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). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS OpsWorks's +// API operation SetPermission for usage and error information. +// +// Returned Error Codes: +// * ValidationException +// Indicates that a request was not valid. +// +// * ResourceNotFoundException +// Indicates that a resource was not found. +// func (c *OpsWorks) SetPermission(input *SetPermissionInput) (*SetPermissionOutput, error) { req, out := c.SetPermissionRequest(input) err := req.Send() @@ -3036,6 +4045,8 @@ const opSetTimeBasedAutoScaling = "SetTimeBasedAutoScaling" // value can be used to capture response data after the request's "Send" method // is called. // +// See SetTimeBasedAutoScaling for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -3072,6 +4083,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 +4093,21 @@ 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). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS OpsWorks's +// API operation SetTimeBasedAutoScaling for usage and error information. +// +// Returned Error Codes: +// * ValidationException +// Indicates that a request was not valid. +// +// * ResourceNotFoundException +// Indicates that a resource was not found. +// func (c *OpsWorks) SetTimeBasedAutoScaling(input *SetTimeBasedAutoScalingInput) (*SetTimeBasedAutoScalingOutput, error) { req, out := c.SetTimeBasedAutoScalingRequest(input) err := req.Send() @@ -3093,6 +4121,8 @@ const opStartInstance = "StartInstance" // value can be used to capture response data after the request's "Send" method // is called. // +// See StartInstance for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -3129,6 +4159,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 +4168,21 @@ 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). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS OpsWorks's +// API operation StartInstance for usage and error information. +// +// Returned Error Codes: +// * ValidationException +// Indicates that a request was not valid. +// +// * ResourceNotFoundException +// Indicates that a resource was not found. +// func (c *OpsWorks) StartInstance(input *StartInstanceInput) (*StartInstanceOutput, error) { req, out := c.StartInstanceRequest(input) err := req.Send() @@ -3149,6 +4196,8 @@ const opStartStack = "StartStack" // value can be used to capture response data after the request's "Send" method // is called. // +// See StartStack for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -3185,12 +4234,29 @@ 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). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS OpsWorks's +// API operation StartStack for usage and error information. +// +// Returned Error Codes: +// * ValidationException +// Indicates that a request was not valid. +// +// * ResourceNotFoundException +// Indicates that a resource was not found. +// func (c *OpsWorks) StartStack(input *StartStackInput) (*StartStackOutput, error) { req, out := c.StartStackRequest(input) err := req.Send() @@ -3204,6 +4270,8 @@ const opStopInstance = "StopInstance" // value can be used to capture response data after the request's "Send" method // is called. // +// See StopInstance for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -3240,6 +4308,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 +4319,21 @@ 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). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS OpsWorks's +// API operation StopInstance for usage and error information. +// +// Returned Error Codes: +// * ValidationException +// Indicates that a request was not valid. +// +// * ResourceNotFoundException +// Indicates that a resource was not found. +// func (c *OpsWorks) StopInstance(input *StopInstanceInput) (*StopInstanceOutput, error) { req, out := c.StopInstanceRequest(input) err := req.Send() @@ -3262,6 +4347,8 @@ const opStopStack = "StopStack" // value can be used to capture response data after the request's "Send" method // is called. // +// See StopStack for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -3298,12 +4385,29 @@ 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). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS OpsWorks's +// API operation StopStack for usage and error information. +// +// Returned Error Codes: +// * ValidationException +// Indicates that a request was not valid. +// +// * ResourceNotFoundException +// Indicates that a resource was not found. +// func (c *OpsWorks) StopStack(input *StopStackInput) (*StopStackOutput, error) { req, out := c.StopStackRequest(input) err := req.Send() @@ -3317,6 +4421,8 @@ const opUnassignInstance = "UnassignInstance" // value can be used to capture response data after the request's "Send" method // is called. // +// See UnassignInstance for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -3353,6 +4459,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 +4470,21 @@ 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). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS OpsWorks's +// API operation UnassignInstance for usage and error information. +// +// Returned Error Codes: +// * ValidationException +// Indicates that a request was not valid. +// +// * ResourceNotFoundException +// Indicates that a resource was not found. +// func (c *OpsWorks) UnassignInstance(input *UnassignInstanceInput) (*UnassignInstanceOutput, error) { req, out := c.UnassignInstanceRequest(input) err := req.Send() @@ -3375,6 +4498,8 @@ const opUnassignVolume = "UnassignVolume" // value can be used to capture response data after the request's "Send" method // is called. // +// See UnassignVolume for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -3411,6 +4536,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 +4545,21 @@ 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). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS OpsWorks's +// API operation UnassignVolume for usage and error information. +// +// Returned Error Codes: +// * ValidationException +// Indicates that a request was not valid. +// +// * ResourceNotFoundException +// Indicates that a resource was not found. +// func (c *OpsWorks) UnassignVolume(input *UnassignVolumeInput) (*UnassignVolumeOutput, error) { req, out := c.UnassignVolumeRequest(input) err := req.Send() @@ -3431,6 +4573,8 @@ const opUpdateApp = "UpdateApp" // value can be used to capture response data after the request's "Send" method // is called. // +// See UpdateApp for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -3467,12 +4611,29 @@ 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). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS OpsWorks's +// API operation UpdateApp for usage and error information. +// +// Returned Error Codes: +// * ValidationException +// Indicates that a request was not valid. +// +// * ResourceNotFoundException +// Indicates that a resource was not found. +// func (c *OpsWorks) UpdateApp(input *UpdateAppInput) (*UpdateAppOutput, error) { req, out := c.UpdateAppRequest(input) err := req.Send() @@ -3486,6 +4647,8 @@ const opUpdateElasticIp = "UpdateElasticIp" // value can be used to capture response data after the request's "Send" method // is called. // +// See UpdateElasticIp for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -3522,6 +4685,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 +4694,21 @@ 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). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS OpsWorks's +// API operation UpdateElasticIp for usage and error information. +// +// Returned Error Codes: +// * ValidationException +// Indicates that a request was not valid. +// +// * ResourceNotFoundException +// Indicates that a resource was not found. +// func (c *OpsWorks) UpdateElasticIp(input *UpdateElasticIpInput) (*UpdateElasticIpOutput, error) { req, out := c.UpdateElasticIpRequest(input) err := req.Send() @@ -3542,6 +4722,8 @@ const opUpdateInstance = "UpdateInstance" // value can be used to capture response data after the request's "Send" method // is called. // +// See UpdateInstance for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -3578,12 +4760,29 @@ 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). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS OpsWorks's +// API operation UpdateInstance for usage and error information. +// +// Returned Error Codes: +// * ValidationException +// Indicates that a request was not valid. +// +// * ResourceNotFoundException +// Indicates that a resource was not found. +// func (c *OpsWorks) UpdateInstance(input *UpdateInstanceInput) (*UpdateInstanceOutput, error) { req, out := c.UpdateInstanceRequest(input) err := req.Send() @@ -3597,6 +4796,8 @@ const opUpdateLayer = "UpdateLayer" // value can be used to capture response data after the request's "Send" method // is called. // +// See UpdateLayer for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -3633,12 +4834,29 @@ 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). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS OpsWorks's +// API operation UpdateLayer for usage and error information. +// +// Returned Error Codes: +// * ValidationException +// Indicates that a request was not valid. +// +// * ResourceNotFoundException +// Indicates that a resource was not found. +// func (c *OpsWorks) UpdateLayer(input *UpdateLayerInput) (*UpdateLayerOutput, error) { req, out := c.UpdateLayerRequest(input) err := req.Send() @@ -3652,6 +4870,8 @@ const opUpdateMyUserProfile = "UpdateMyUserProfile" // value can be used to capture response data after the request's "Send" method // is called. // +// See UpdateMyUserProfile for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -3688,11 +4908,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). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS OpsWorks's +// API operation UpdateMyUserProfile for usage and error information. +// +// Returned Error Codes: +// * ValidationException +// Indicates that a request was not valid. +// func (c *OpsWorks) UpdateMyUserProfile(input *UpdateMyUserProfileInput) (*UpdateMyUserProfileOutput, error) { req, out := c.UpdateMyUserProfileRequest(input) err := req.Send() @@ -3706,6 +4940,8 @@ const opUpdateRdsDbInstance = "UpdateRdsDbInstance" // value can be used to capture response data after the request's "Send" method // is called. // +// See UpdateRdsDbInstance for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -3742,12 +4978,29 @@ 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). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS OpsWorks's +// API operation UpdateRdsDbInstance for usage and error information. +// +// Returned Error Codes: +// * ValidationException +// Indicates that a request was not valid. +// +// * ResourceNotFoundException +// Indicates that a resource was not found. +// func (c *OpsWorks) UpdateRdsDbInstance(input *UpdateRdsDbInstanceInput) (*UpdateRdsDbInstanceOutput, error) { req, out := c.UpdateRdsDbInstanceRequest(input) err := req.Send() @@ -3761,6 +5014,8 @@ const opUpdateStack = "UpdateStack" // value can be used to capture response data after the request's "Send" method // is called. // +// See UpdateStack for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -3797,12 +5052,29 @@ 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). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS OpsWorks's +// API operation UpdateStack for usage and error information. +// +// Returned Error Codes: +// * ValidationException +// Indicates that a request was not valid. +// +// * ResourceNotFoundException +// Indicates that a resource was not found. +// func (c *OpsWorks) UpdateStack(input *UpdateStackInput) (*UpdateStackOutput, error) { req, out := c.UpdateStackRequest(input) err := req.Send() @@ -3816,6 +5088,8 @@ const opUpdateUserProfile = "UpdateUserProfile" // value can be used to capture response data after the request's "Send" method // is called. // +// See UpdateUserProfile for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -3852,11 +5126,28 @@ 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). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS OpsWorks's +// API operation UpdateUserProfile for usage and error information. +// +// Returned Error Codes: +// * ValidationException +// Indicates that a request was not valid. +// +// * ResourceNotFoundException +// Indicates that a resource was not found. +// func (c *OpsWorks) UpdateUserProfile(input *UpdateUserProfileInput) (*UpdateUserProfileOutput, error) { req, out := c.UpdateUserProfileRequest(input) err := req.Send() @@ -3870,6 +5161,8 @@ const opUpdateVolume = "UpdateVolume" // value can be used to capture response data after the request's "Send" method // is called. // +// See UpdateVolume for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -3906,6 +5199,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 +5208,21 @@ 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). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS OpsWorks's +// API operation UpdateVolume for usage and error information. +// +// Returned Error Codes: +// * ValidationException +// Indicates that a request was not valid. +// +// * ResourceNotFoundException +// Indicates that a resource was not found. +// 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..9c2ab66995e 100644 --- a/service/rds/api.go +++ b/service/rds/api.go @@ -20,6 +20,8 @@ const opAddSourceIdentifierToSubscription = "AddSourceIdentifierToSubscription" // value can be used to capture response data after the request's "Send" method // is called. // +// See AddSourceIdentifierToSubscription for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -54,7 +56,24 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Relational Database Service's +// API operation AddSourceIdentifierToSubscription for usage and error information. +// +// Returned Error Codes: +// * SubscriptionNotFound +// The subscription name does not exist. +// +// * SourceNotFound +// The requested source could not be found. +// func (c *RDS) AddSourceIdentifierToSubscription(input *AddSourceIdentifierToSubscriptionInput) (*AddSourceIdentifierToSubscriptionOutput, error) { req, out := c.AddSourceIdentifierToSubscriptionRequest(input) err := req.Send() @@ -68,6 +87,8 @@ const opAddTagsToResource = "AddTagsToResource" // value can be used to capture response data after the request's "Send" method // is called. // +// See AddTagsToResource for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -104,12 +125,29 @@ 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). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Relational Database Service's +// API operation AddTagsToResource for usage and error information. +// +// Returned Error Codes: +// * DBInstanceNotFound +// DBInstanceIdentifier does not refer to an existing DB instance. +// +// * DBSnapshotNotFound +// DBSnapshotIdentifier does not refer to an existing DB snapshot. +// func (c *RDS) AddTagsToResource(input *AddTagsToResourceInput) (*AddTagsToResourceOutput, error) { req, out := c.AddTagsToResourceRequest(input) err := req.Send() @@ -123,6 +161,8 @@ const opApplyPendingMaintenanceAction = "ApplyPendingMaintenanceAction" // value can be used to capture response data after the request's "Send" method // is called. // +// See ApplyPendingMaintenanceAction for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -157,8 +197,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). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Relational Database Service's +// API operation ApplyPendingMaintenanceAction for usage and error information. +// +// Returned Error Codes: +// * ResourceNotFoundFault +// The specified resource ID was not found. +// func (c *RDS) ApplyPendingMaintenanceAction(input *ApplyPendingMaintenanceActionInput) (*ApplyPendingMaintenanceActionOutput, error) { req, out := c.ApplyPendingMaintenanceActionRequest(input) err := req.Send() @@ -172,6 +226,8 @@ const opAuthorizeDBSecurityGroupIngress = "AuthorizeDBSecurityGroupIngress" // value can be used to capture response data after the request's "Send" method // is called. // +// See AuthorizeDBSecurityGroupIngress for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -206,6 +262,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 +277,28 @@ 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). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Relational Database Service's +// API operation AuthorizeDBSecurityGroupIngress for usage and error information. +// +// Returned Error Codes: +// * DBSecurityGroupNotFound +// DBSecurityGroupName does not refer to an existing DB security group. +// +// * InvalidDBSecurityGroupState +// The state of the DB security group does not allow deletion. +// +// * AuthorizationAlreadyExists +// The specified CIDRIP or EC2 security group is already authorized for the +// specified DB security group. +// +// * AuthorizationQuotaExceeded +// DB security group authorization quota has been reached. +// func (c *RDS) AuthorizeDBSecurityGroupIngress(input *AuthorizeDBSecurityGroupIngressInput) (*AuthorizeDBSecurityGroupIngressOutput, error) { req, out := c.AuthorizeDBSecurityGroupIngressRequest(input) err := req.Send() @@ -232,6 +312,8 @@ const opCopyDBClusterParameterGroup = "CopyDBClusterParameterGroup" // value can be used to capture response data after the request's "Send" method // is called. // +// See CopyDBClusterParameterGroup for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -266,7 +348,28 @@ func (c *RDS) CopyDBClusterParameterGroupRequest(input *CopyDBClusterParameterGr return } +// CopyDBClusterParameterGroup API operation for Amazon Relational Database Service. +// // Copies the specified DB cluster parameter group. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Relational Database Service's +// API operation CopyDBClusterParameterGroup for usage and error information. +// +// Returned Error Codes: +// * DBParameterGroupNotFound +// DBParameterGroupName does not refer to an existing DB parameter group. +// +// * DBParameterGroupQuotaExceeded +// Request would result in user exceeding the allowed number of DB parameter +// groups. +// +// * DBParameterGroupAlreadyExists +// A DB parameter group with the same name exists. +// func (c *RDS) CopyDBClusterParameterGroup(input *CopyDBClusterParameterGroupInput) (*CopyDBClusterParameterGroupOutput, error) { req, out := c.CopyDBClusterParameterGroupRequest(input) err := req.Send() @@ -280,6 +383,8 @@ const opCopyDBClusterSnapshot = "CopyDBClusterSnapshot" // value can be used to capture response data after the request's "Send" method // is called. // +// See CopyDBClusterSnapshot for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -314,9 +419,32 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Relational Database Service's +// API operation CopyDBClusterSnapshot for usage and error information. +// +// Returned Error Codes: +// * DBClusterSnapshotAlreadyExistsFault +// User already has a DB cluster snapshot with the given identifier. +// +// * DBClusterSnapshotNotFoundFault +// DBClusterSnapshotIdentifier does not refer to an existing DB cluster snapshot. +// +// * InvalidDBClusterStateFault +// The DB cluster is not in a valid state. +// +// * InvalidDBClusterSnapshotStateFault +// The supplied value is not a valid DB cluster snapshot state. +// func (c *RDS) CopyDBClusterSnapshot(input *CopyDBClusterSnapshotInput) (*CopyDBClusterSnapshotOutput, error) { req, out := c.CopyDBClusterSnapshotRequest(input) err := req.Send() @@ -330,6 +458,8 @@ const opCopyDBParameterGroup = "CopyDBParameterGroup" // value can be used to capture response data after the request's "Send" method // is called. // +// See CopyDBParameterGroup for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -364,7 +494,28 @@ func (c *RDS) CopyDBParameterGroupRequest(input *CopyDBParameterGroupInput) (req return } +// CopyDBParameterGroup API operation for Amazon Relational Database Service. +// // Copies the specified DB parameter group. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Relational Database Service's +// API operation CopyDBParameterGroup for usage and error information. +// +// Returned Error Codes: +// * DBParameterGroupNotFound +// DBParameterGroupName does not refer to an existing DB parameter group. +// +// * DBParameterGroupAlreadyExists +// A DB parameter group with the same name exists. +// +// * DBParameterGroupQuotaExceeded +// Request would result in user exceeding the allowed number of DB parameter +// groups. +// func (c *RDS) CopyDBParameterGroup(input *CopyDBParameterGroupInput) (*CopyDBParameterGroupOutput, error) { req, out := c.CopyDBParameterGroupRequest(input) err := req.Send() @@ -378,6 +529,8 @@ const opCopyDBSnapshot = "CopyDBSnapshot" // value can be used to capture response data after the request's "Send" method // is called. // +// See CopyDBSnapshot for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -412,11 +565,37 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Relational Database Service's +// API operation CopyDBSnapshot for usage and error information. +// +// Returned Error Codes: +// * DBSnapshotAlreadyExists +// DBSnapshotIdentifier is already used by an existing snapshot. +// +// * DBSnapshotNotFound +// DBSnapshotIdentifier does not refer to an existing DB snapshot. +// +// * InvalidDBSnapshotState +// The state of the DB snapshot does not allow deletion. +// +// * SnapshotQuotaExceeded +// Request would result in user exceeding the allowed number of DB snapshots. +// +// * KMSKeyNotAccessibleFault +// Error accessing KMS key. +// func (c *RDS) CopyDBSnapshot(input *CopyDBSnapshotInput) (*CopyDBSnapshotOutput, error) { req, out := c.CopyDBSnapshotRequest(input) err := req.Send() @@ -430,6 +609,8 @@ const opCopyOptionGroup = "CopyOptionGroup" // value can be used to capture response data after the request's "Send" method // is called. // +// See CopyOptionGroup for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -464,7 +645,27 @@ func (c *RDS) CopyOptionGroupRequest(input *CopyOptionGroupInput) (req *request. return } +// CopyOptionGroup API operation for Amazon Relational Database Service. +// // Copies the specified option group. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Relational Database Service's +// API operation CopyOptionGroup for usage and error information. +// +// Returned Error Codes: +// * OptionGroupAlreadyExistsFault +// The option group you are trying to create already exists. +// +// * OptionGroupNotFoundFault +// The specified option group could not be found. +// +// * OptionGroupQuotaExceededFault +// The quota of 20 option groups was exceeded for this AWS account. +// func (c *RDS) CopyOptionGroup(input *CopyOptionGroupInput) (*CopyOptionGroupOutput, error) { req, out := c.CopyOptionGroupRequest(input) err := req.Send() @@ -478,6 +679,8 @@ const opCreateDBCluster = "CreateDBCluster" // value can be used to capture response data after the request's "Send" method // is called. // +// See CreateDBCluster for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -512,6 +715,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 +724,58 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Relational Database Service's +// API operation CreateDBCluster for usage and error information. +// +// Returned Error Codes: +// * DBClusterAlreadyExistsFault +// User already has a DB cluster with the given identifier. +// +// * InsufficientStorageClusterCapacity +// There is insufficient storage available for the current action. You may be +// able to resolve this error by updating your subnet group to use different +// Availability Zones that have more storage available. +// +// * DBClusterQuotaExceededFault +// User attempted to create a new DB cluster and the user has already reached +// the maximum allowed DB cluster quota. +// +// * StorageQuotaExceeded +// Request would result in user exceeding the allowed amount of storage available +// across all DB instances. +// +// * DBSubnetGroupNotFoundFault +// DBSubnetGroupName does not refer to an existing DB subnet group. +// +// * InvalidVPCNetworkStateFault +// DB subnet group does not cover all Availability Zones after it is created +// because users' change. +// +// * InvalidDBClusterStateFault +// The DB cluster is not in a valid state. +// +// * InvalidDBSubnetGroupStateFault +// The DB subnet group cannot be deleted because it is in use. +// +// * InvalidSubnet +// The requested subnet is invalid, or multiple subnets were requested that +// are not all in a common VPC. +// +// * DBClusterParameterGroupNotFound +// DBClusterParameterGroupName does not refer to an existing DB Cluster parameter +// group. +// +// * KMSKeyNotAccessibleFault +// Error accessing KMS key. +// +// * DBClusterNotFoundFault +// DBClusterIdentifier does not refer to an existing DB cluster. +// func (c *RDS) CreateDBCluster(input *CreateDBClusterInput) (*CreateDBClusterOutput, error) { req, out := c.CreateDBClusterRequest(input) err := req.Send() @@ -532,6 +789,8 @@ const opCreateDBClusterParameterGroup = "CreateDBClusterParameterGroup" // value can be used to capture response data after the request's "Send" method // is called. // +// See CreateDBClusterParameterGroup for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -566,6 +825,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 +855,22 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Relational Database Service's +// API operation CreateDBClusterParameterGroup for usage and error information. +// +// Returned Error Codes: +// * DBParameterGroupQuotaExceeded +// Request would result in user exceeding the allowed number of DB parameter +// groups. +// +// * DBParameterGroupAlreadyExists +// A DB parameter group with the same name exists. +// func (c *RDS) CreateDBClusterParameterGroup(input *CreateDBClusterParameterGroupInput) (*CreateDBClusterParameterGroupOutput, error) { req, out := c.CreateDBClusterParameterGroupRequest(input) err := req.Send() @@ -607,6 +884,8 @@ const opCreateDBClusterSnapshot = "CreateDBClusterSnapshot" // value can be used to capture response data after the request's "Send" method // is called. // +// See CreateDBClusterSnapshot for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -641,9 +920,35 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Relational Database Service's +// API operation CreateDBClusterSnapshot for usage and error information. +// +// Returned Error Codes: +// * DBClusterSnapshotAlreadyExistsFault +// User already has a DB cluster snapshot with the given identifier. +// +// * InvalidDBClusterStateFault +// The DB cluster is not in a valid state. +// +// * DBClusterNotFoundFault +// DBClusterIdentifier does not refer to an existing DB cluster. +// +// * SnapshotQuotaExceeded +// Request would result in user exceeding the allowed number of DB snapshots. +// +// * InvalidDBClusterSnapshotStateFault +// The supplied value is not a valid DB cluster snapshot state. +// func (c *RDS) CreateDBClusterSnapshot(input *CreateDBClusterSnapshotInput) (*CreateDBClusterSnapshotOutput, error) { req, out := c.CreateDBClusterSnapshotRequest(input) err := req.Send() @@ -657,6 +962,8 @@ const opCreateDBInstance = "CreateDBInstance" // value can be used to capture response data after the request's "Send" method // is called. // +// See CreateDBInstance for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -691,7 +998,81 @@ func (c *RDS) CreateDBInstanceRequest(input *CreateDBInstanceInput) (req *reques return } +// CreateDBInstance API operation for Amazon Relational Database Service. +// // Creates a new DB instance. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Relational Database Service's +// API operation CreateDBInstance for usage and error information. +// +// Returned Error Codes: +// * DBInstanceAlreadyExists +// User already has a DB instance with the given identifier. +// +// * InsufficientDBInstanceCapacity +// Specified DB instance class is not available in the specified Availability +// Zone. +// +// * DBParameterGroupNotFound +// DBParameterGroupName does not refer to an existing DB parameter group. +// +// * DBSecurityGroupNotFound +// DBSecurityGroupName does not refer to an existing DB security group. +// +// * InstanceQuotaExceeded +// Request would result in user exceeding the allowed number of DB instances. +// +// * StorageQuotaExceeded +// Request would result in user exceeding the allowed amount of storage available +// across all DB instances. +// +// * DBSubnetGroupNotFoundFault +// DBSubnetGroupName does not refer to an existing DB subnet group. +// +// * DBSubnetGroupDoesNotCoverEnoughAZs +// Subnets in the DB subnet group should cover at least two Availability Zones +// unless there is only one Availability Zone. +// +// * InvalidDBClusterStateFault +// The DB cluster is not in a valid state. +// +// * InvalidSubnet +// The requested subnet is invalid, or multiple subnets were requested that +// are not all in a common VPC. +// +// * InvalidVPCNetworkStateFault +// DB subnet group does not cover all Availability Zones after it is created +// because users' change. +// +// * ProvisionedIopsNotAvailableInAZFault +// Provisioned IOPS not available in the specified Availability Zone. +// +// * OptionGroupNotFoundFault +// The specified option group could not be found. +// +// * DBClusterNotFoundFault +// DBClusterIdentifier does not refer to an existing DB cluster. +// +// * StorageTypeNotSupported +// StorageType specified cannot be associated with the DB Instance. +// +// * AuthorizationNotFound +// Specified CIDRIP or EC2 security group is not authorized for the specified +// DB security group. +// +// RDS may not also be authorized via IAM to perform necessary actions on your +// behalf. +// +// * KMSKeyNotAccessibleFault +// Error accessing KMS key. +// +// * DomainNotFoundFault +// Domain does not refer to an existing Active Directory Domain. +// func (c *RDS) CreateDBInstance(input *CreateDBInstanceInput) (*CreateDBInstanceOutput, error) { req, out := c.CreateDBInstanceRequest(input) err := req.Send() @@ -705,6 +1086,8 @@ const opCreateDBInstanceReadReplica = "CreateDBInstanceReadReplica" // value can be used to capture response data after the request's "Send" method // is called. // +// See CreateDBInstanceReadReplica for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -739,6 +1122,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 +1133,76 @@ func (c *RDS) CreateDBInstanceReadReplicaRequest(input *CreateDBInstanceReadRepl // except as specified below. // // The source DB instance must have backup retention enabled. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Relational Database Service's +// API operation CreateDBInstanceReadReplica for usage and error information. +// +// Returned Error Codes: +// * DBInstanceAlreadyExists +// User already has a DB instance with the given identifier. +// +// * InsufficientDBInstanceCapacity +// Specified DB instance class is not available in the specified Availability +// Zone. +// +// * DBParameterGroupNotFound +// DBParameterGroupName does not refer to an existing DB parameter group. +// +// * DBSecurityGroupNotFound +// DBSecurityGroupName does not refer to an existing DB security group. +// +// * InstanceQuotaExceeded +// Request would result in user exceeding the allowed number of DB instances. +// +// * StorageQuotaExceeded +// Request would result in user exceeding the allowed amount of storage available +// across all DB instances. +// +// * DBInstanceNotFound +// DBInstanceIdentifier does not refer to an existing DB instance. +// +// * InvalidDBInstanceState +// The specified DB instance is not in the available state. +// +// * DBSubnetGroupNotFoundFault +// DBSubnetGroupName does not refer to an existing DB subnet group. +// +// * DBSubnetGroupDoesNotCoverEnoughAZs +// Subnets in the DB subnet group should cover at least two Availability Zones +// unless there is only one Availability Zone. +// +// * InvalidSubnet +// The requested subnet is invalid, or multiple subnets were requested that +// are not all in a common VPC. +// +// * InvalidVPCNetworkStateFault +// DB subnet group does not cover all Availability Zones after it is created +// because users' change. +// +// * ProvisionedIopsNotAvailableInAZFault +// Provisioned IOPS not available in the specified Availability Zone. +// +// * OptionGroupNotFoundFault +// The specified option group could not be found. +// +// * DBSubnetGroupNotAllowedFault +// Indicates that the DBSubnetGroup should not be specified while creating read +// replicas that lie in the same region as the source instance. +// +// * InvalidDBSubnetGroupFault +// Indicates the DBSubnetGroup does not belong to the same VPC as that of an +// existing cross region read replica of the same source instance. +// +// * StorageTypeNotSupported +// StorageType specified cannot be associated with the DB Instance. +// +// * KMSKeyNotAccessibleFault +// Error accessing KMS key. +// func (c *RDS) CreateDBInstanceReadReplica(input *CreateDBInstanceReadReplicaInput) (*CreateDBInstanceReadReplicaOutput, error) { req, out := c.CreateDBInstanceReadReplicaRequest(input) err := req.Send() @@ -761,6 +1216,8 @@ const opCreateDBParameterGroup = "CreateDBParameterGroup" // value can be used to capture response data after the request's "Send" method // is called. // +// See CreateDBParameterGroup for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -795,6 +1252,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 +1275,22 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Relational Database Service's +// API operation CreateDBParameterGroup for usage and error information. +// +// Returned Error Codes: +// * DBParameterGroupQuotaExceeded +// Request would result in user exceeding the allowed number of DB parameter +// groups. +// +// * DBParameterGroupAlreadyExists +// A DB parameter group with the same name exists. +// func (c *RDS) CreateDBParameterGroup(input *CreateDBParameterGroupInput) (*CreateDBParameterGroupOutput, error) { req, out := c.CreateDBParameterGroupRequest(input) err := req.Send() @@ -829,6 +1304,8 @@ const opCreateDBSecurityGroup = "CreateDBSecurityGroup" // value can be used to capture response data after the request's "Send" method // is called. // +// See CreateDBSecurityGroup for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -863,8 +1340,30 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Relational Database Service's +// API operation CreateDBSecurityGroup for usage and error information. +// +// Returned Error Codes: +// * DBSecurityGroupAlreadyExists +// A DB security group with the name specified in DBSecurityGroupName already +// exists. +// +// * QuotaExceeded.DBSecurityGroup +// Request would result in user exceeding the allowed number of DB security +// groups. +// +// * DBSecurityGroupNotSupported +// A DB security group is not allowed for this action. +// func (c *RDS) CreateDBSecurityGroup(input *CreateDBSecurityGroupInput) (*CreateDBSecurityGroupOutput, error) { req, out := c.CreateDBSecurityGroupRequest(input) err := req.Send() @@ -878,6 +1377,8 @@ const opCreateDBSnapshot = "CreateDBSnapshot" // value can be used to capture response data after the request's "Send" method // is called. // +// See CreateDBSnapshot for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -912,7 +1413,30 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Relational Database Service's +// API operation CreateDBSnapshot for usage and error information. +// +// Returned Error Codes: +// * DBSnapshotAlreadyExists +// DBSnapshotIdentifier is already used by an existing snapshot. +// +// * InvalidDBInstanceState +// The specified DB instance is not in the available state. +// +// * DBInstanceNotFound +// DBInstanceIdentifier does not refer to an existing DB instance. +// +// * SnapshotQuotaExceeded +// Request would result in user exceeding the allowed number of DB snapshots. +// func (c *RDS) CreateDBSnapshot(input *CreateDBSnapshotInput) (*CreateDBSnapshotOutput, error) { req, out := c.CreateDBSnapshotRequest(input) err := req.Send() @@ -926,6 +1450,8 @@ const opCreateDBSubnetGroup = "CreateDBSubnetGroup" // value can be used to capture response data after the request's "Send" method // is called. // +// See CreateDBSubnetGroup for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -960,8 +1486,37 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Relational Database Service's +// API operation CreateDBSubnetGroup for usage and error information. +// +// Returned Error Codes: +// * DBSubnetGroupAlreadyExists +// DBSubnetGroupName is already used by an existing DB subnet group. +// +// * DBSubnetGroupQuotaExceeded +// Request would result in user exceeding the allowed number of DB subnet groups. +// +// * DBSubnetQuotaExceededFault +// Request would result in user exceeding the allowed number of subnets in a +// DB subnet groups. +// +// * DBSubnetGroupDoesNotCoverEnoughAZs +// Subnets in the DB subnet group should cover at least two Availability Zones +// unless there is only one Availability Zone. +// +// * InvalidSubnet +// The requested subnet is invalid, or multiple subnets were requested that +// are not all in a common VPC. +// func (c *RDS) CreateDBSubnetGroup(input *CreateDBSubnetGroupInput) (*CreateDBSubnetGroupOutput, error) { req, out := c.CreateDBSubnetGroupRequest(input) err := req.Send() @@ -975,6 +1530,8 @@ const opCreateEventSubscription = "CreateEventSubscription" // value can be used to capture response data after the request's "Send" method // is called. // +// See CreateEventSubscription for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1009,6 +1566,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 +1587,36 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Relational Database Service's +// API operation CreateEventSubscription for usage and error information. +// +// Returned Error Codes: +// * EventSubscriptionQuotaExceeded +// You have reached the maximum number of event subscriptions. +// +// * SubscriptionAlreadyExist +// The supplied subscription name already exists. +// +// * SNSInvalidTopic +// SNS has responded that there is a problem with the SND topic specified. +// +// * SNSNoAuthorization +// You do not have permission to publish to the SNS topic ARN. +// +// * SNSTopicArnNotFound +// The SNS topic ARN does not exist. +// +// * SubscriptionCategoryNotFound +// The supplied category does not exist. +// +// * SourceNotFound +// The requested source could not be found. +// func (c *RDS) CreateEventSubscription(input *CreateEventSubscriptionInput) (*CreateEventSubscriptionOutput, error) { req, out := c.CreateEventSubscriptionRequest(input) err := req.Send() @@ -1041,6 +1630,8 @@ const opCreateOptionGroup = "CreateOptionGroup" // value can be used to capture response data after the request's "Send" method // is called. // +// See CreateOptionGroup for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1075,7 +1666,24 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Relational Database Service's +// API operation CreateOptionGroup for usage and error information. +// +// Returned Error Codes: +// * OptionGroupAlreadyExistsFault +// The option group you are trying to create already exists. +// +// * OptionGroupQuotaExceededFault +// The quota of 20 option groups was exceeded for this AWS account. +// func (c *RDS) CreateOptionGroup(input *CreateOptionGroupInput) (*CreateOptionGroupOutput, error) { req, out := c.CreateOptionGroupRequest(input) err := req.Send() @@ -1089,6 +1697,8 @@ const opDeleteDBCluster = "DeleteDBCluster" // value can be used to capture response data after the request's "Send" method // is called. // +// See DeleteDBCluster for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1123,6 +1733,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 +1742,30 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Relational Database Service's +// API operation DeleteDBCluster for usage and error information. +// +// Returned Error Codes: +// * DBClusterNotFoundFault +// DBClusterIdentifier does not refer to an existing DB cluster. +// +// * InvalidDBClusterStateFault +// The DB cluster is not in a valid state. +// +// * DBClusterSnapshotAlreadyExistsFault +// User already has a DB cluster snapshot with the given identifier. +// +// * SnapshotQuotaExceeded +// Request would result in user exceeding the allowed number of DB snapshots. +// +// * InvalidDBClusterSnapshotStateFault +// The supplied value is not a valid DB cluster snapshot state. +// func (c *RDS) DeleteDBCluster(input *DeleteDBClusterInput) (*DeleteDBClusterOutput, error) { req, out := c.DeleteDBClusterRequest(input) err := req.Send() @@ -1143,6 +1779,8 @@ const opDeleteDBClusterParameterGroup = "DeleteDBClusterParameterGroup" // value can be used to capture response data after the request's "Send" method // is called. // +// See DeleteDBClusterParameterGroup for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1179,11 +1817,28 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Relational Database Service's +// API operation DeleteDBClusterParameterGroup for usage and error information. +// +// Returned Error Codes: +// * InvalidDBParameterGroupState +// The DB parameter group cannot be deleted because it is in use. +// +// * DBParameterGroupNotFound +// DBParameterGroupName does not refer to an existing DB parameter group. +// func (c *RDS) DeleteDBClusterParameterGroup(input *DeleteDBClusterParameterGroupInput) (*DeleteDBClusterParameterGroupOutput, error) { req, out := c.DeleteDBClusterParameterGroupRequest(input) err := req.Send() @@ -1197,6 +1852,8 @@ const opDeleteDBClusterSnapshot = "DeleteDBClusterSnapshot" // value can be used to capture response data after the request's "Send" method // is called. // +// See DeleteDBClusterSnapshot for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1231,6 +1888,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 +1897,21 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Relational Database Service's +// API operation DeleteDBClusterSnapshot for usage and error information. +// +// Returned Error Codes: +// * InvalidDBClusterSnapshotStateFault +// The supplied value is not a valid DB cluster snapshot state. +// +// * DBClusterSnapshotNotFoundFault +// DBClusterSnapshotIdentifier does not refer to an existing DB cluster snapshot. +// func (c *RDS) DeleteDBClusterSnapshot(input *DeleteDBClusterSnapshotInput) (*DeleteDBClusterSnapshotOutput, error) { req, out := c.DeleteDBClusterSnapshotRequest(input) err := req.Send() @@ -1251,6 +1925,8 @@ const opDeleteDBInstance = "DeleteDBInstance" // value can be used to capture response data after the request's "Send" method // is called. // +// See DeleteDBInstance for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1285,6 +1961,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 +1988,30 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Relational Database Service's +// API operation DeleteDBInstance for usage and error information. +// +// Returned Error Codes: +// * DBInstanceNotFound +// DBInstanceIdentifier does not refer to an existing DB instance. +// +// * InvalidDBInstanceState +// The specified DB instance is not in the available state. +// +// * DBSnapshotAlreadyExists +// DBSnapshotIdentifier is already used by an existing snapshot. +// +// * SnapshotQuotaExceeded +// Request would result in user exceeding the allowed number of DB snapshots. +// +// * InvalidDBClusterStateFault +// The DB cluster is not in a valid state. +// func (c *RDS) DeleteDBInstance(input *DeleteDBInstanceInput) (*DeleteDBInstanceOutput, error) { req, out := c.DeleteDBInstanceRequest(input) err := req.Send() @@ -1323,6 +2025,8 @@ const opDeleteDBParameterGroup = "DeleteDBParameterGroup" // value can be used to capture response data after the request's "Send" method // is called. // +// See DeleteDBParameterGroup for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1359,8 +2063,25 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Relational Database Service's +// API operation DeleteDBParameterGroup for usage and error information. +// +// Returned Error Codes: +// * InvalidDBParameterGroupState +// The DB parameter group cannot be deleted because it is in use. +// +// * DBParameterGroupNotFound +// DBParameterGroupName does not refer to an existing DB parameter group. +// func (c *RDS) DeleteDBParameterGroup(input *DeleteDBParameterGroupInput) (*DeleteDBParameterGroupOutput, error) { req, out := c.DeleteDBParameterGroupRequest(input) err := req.Send() @@ -1374,6 +2095,8 @@ const opDeleteDBSecurityGroup = "DeleteDBSecurityGroup" // value can be used to capture response data after the request's "Send" method // is called. // +// See DeleteDBSecurityGroup for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1410,9 +2133,26 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Relational Database Service's +// API operation DeleteDBSecurityGroup for usage and error information. +// +// Returned Error Codes: +// * InvalidDBSecurityGroupState +// The state of the DB security group does not allow deletion. +// +// * DBSecurityGroupNotFound +// DBSecurityGroupName does not refer to an existing DB security group. +// func (c *RDS) DeleteDBSecurityGroup(input *DeleteDBSecurityGroupInput) (*DeleteDBSecurityGroupOutput, error) { req, out := c.DeleteDBSecurityGroupRequest(input) err := req.Send() @@ -1426,6 +2166,8 @@ const opDeleteDBSnapshot = "DeleteDBSnapshot" // value can be used to capture response data after the request's "Send" method // is called. // +// See DeleteDBSnapshot for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1460,10 +2202,27 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Relational Database Service's +// API operation DeleteDBSnapshot for usage and error information. +// +// Returned Error Codes: +// * InvalidDBSnapshotState +// The state of the DB snapshot does not allow deletion. +// +// * DBSnapshotNotFound +// DBSnapshotIdentifier does not refer to an existing DB snapshot. +// func (c *RDS) DeleteDBSnapshot(input *DeleteDBSnapshotInput) (*DeleteDBSnapshotOutput, error) { req, out := c.DeleteDBSnapshotRequest(input) err := req.Send() @@ -1477,6 +2236,8 @@ const opDeleteDBSubnetGroup = "DeleteDBSubnetGroup" // value can be used to capture response data after the request's "Send" method // is called. // +// See DeleteDBSubnetGroup for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1513,10 +2274,30 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Relational Database Service's +// API operation DeleteDBSubnetGroup for usage and error information. +// +// Returned Error Codes: +// * InvalidDBSubnetGroupStateFault +// The DB subnet group cannot be deleted because it is in use. +// +// * InvalidDBSubnetStateFault +// The DB subnet is not in the available state. +// +// * DBSubnetGroupNotFoundFault +// DBSubnetGroupName does not refer to an existing DB subnet group. +// func (c *RDS) DeleteDBSubnetGroup(input *DeleteDBSubnetGroupInput) (*DeleteDBSubnetGroupOutput, error) { req, out := c.DeleteDBSubnetGroupRequest(input) err := req.Send() @@ -1530,6 +2311,8 @@ const opDeleteEventSubscription = "DeleteEventSubscription" // value can be used to capture response data after the request's "Send" method // is called. // +// See DeleteEventSubscription for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1564,7 +2347,25 @@ func (c *RDS) DeleteEventSubscriptionRequest(input *DeleteEventSubscriptionInput return } +// DeleteEventSubscription API operation for Amazon Relational Database Service. +// // Deletes an RDS event notification subscription. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Relational Database Service's +// API operation DeleteEventSubscription for usage and error information. +// +// Returned Error Codes: +// * SubscriptionNotFound +// The subscription name does not exist. +// +// * InvalidEventSubscriptionState +// This error can occur if someone else is modifying a subscription. You should +// retry the action. +// func (c *RDS) DeleteEventSubscription(input *DeleteEventSubscriptionInput) (*DeleteEventSubscriptionOutput, error) { req, out := c.DeleteEventSubscriptionRequest(input) err := req.Send() @@ -1578,6 +2379,8 @@ const opDeleteOptionGroup = "DeleteOptionGroup" // value can be used to capture response data after the request's "Send" method // is called. // +// See DeleteOptionGroup for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1614,7 +2417,24 @@ func (c *RDS) DeleteOptionGroupRequest(input *DeleteOptionGroupInput) (req *requ return } +// DeleteOptionGroup API operation for Amazon Relational Database Service. +// // Deletes an existing option group. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Relational Database Service's +// API operation DeleteOptionGroup for usage and error information. +// +// Returned Error Codes: +// * OptionGroupNotFoundFault +// The specified option group could not be found. +// +// * InvalidOptionGroupStateFault +// The option group is not in the available state. +// func (c *RDS) DeleteOptionGroup(input *DeleteOptionGroupInput) (*DeleteOptionGroupOutput, error) { req, out := c.DeleteOptionGroupRequest(input) err := req.Send() @@ -1628,6 +2448,8 @@ const opDescribeAccountAttributes = "DescribeAccountAttributes" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeAccountAttributes for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1662,12 +2484,21 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Relational Database Service's +// API operation DescribeAccountAttributes for usage and error information. func (c *RDS) DescribeAccountAttributes(input *DescribeAccountAttributesInput) (*DescribeAccountAttributesOutput, error) { req, out := c.DescribeAccountAttributesRequest(input) err := req.Send() @@ -1681,6 +2512,8 @@ const opDescribeCertificates = "DescribeCertificates" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeCertificates for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1715,7 +2548,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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Relational Database Service's +// API operation DescribeCertificates for usage and error information. +// +// Returned Error Codes: +// * CertificateNotFound +// CertificateIdentifier does not refer to an existing certificate. +// func (c *RDS) DescribeCertificates(input *DescribeCertificatesInput) (*DescribeCertificatesOutput, error) { req, out := c.DescribeCertificatesRequest(input) err := req.Send() @@ -1729,6 +2576,8 @@ const opDescribeDBClusterParameterGroups = "DescribeDBClusterParameterGroups" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeDBClusterParameterGroups for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1763,12 +2612,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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Relational Database Service's +// API operation DescribeDBClusterParameterGroups for usage and error information. +// +// Returned Error Codes: +// * DBParameterGroupNotFound +// DBParameterGroupName does not refer to an existing DB parameter group. +// func (c *RDS) DescribeDBClusterParameterGroups(input *DescribeDBClusterParameterGroupsInput) (*DescribeDBClusterParameterGroupsOutput, error) { req, out := c.DescribeDBClusterParameterGroupsRequest(input) err := req.Send() @@ -1782,6 +2645,8 @@ const opDescribeDBClusterParameters = "DescribeDBClusterParameters" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeDBClusterParameters for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1816,11 +2681,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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Relational Database Service's +// API operation DescribeDBClusterParameters for usage and error information. +// +// Returned Error Codes: +// * DBParameterGroupNotFound +// DBParameterGroupName does not refer to an existing DB parameter group. +// func (c *RDS) DescribeDBClusterParameters(input *DescribeDBClusterParametersInput) (*DescribeDBClusterParametersOutput, error) { req, out := c.DescribeDBClusterParametersRequest(input) err := req.Send() @@ -1834,6 +2713,8 @@ const opDescribeDBClusterSnapshotAttributes = "DescribeDBClusterSnapshotAttribut // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeDBClusterSnapshotAttributes for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1868,6 +2749,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 +2763,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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Relational Database Service's +// API operation DescribeDBClusterSnapshotAttributes for usage and error information. +// +// Returned Error Codes: +// * DBClusterSnapshotNotFoundFault +// DBClusterSnapshotIdentifier does not refer to an existing DB cluster snapshot. +// func (c *RDS) DescribeDBClusterSnapshotAttributes(input *DescribeDBClusterSnapshotAttributesInput) (*DescribeDBClusterSnapshotAttributesOutput, error) { req, out := c.DescribeDBClusterSnapshotAttributesRequest(input) err := req.Send() @@ -1893,6 +2788,8 @@ const opDescribeDBClusterSnapshots = "DescribeDBClusterSnapshots" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeDBClusterSnapshots for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1927,11 +2824,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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Relational Database Service's +// API operation DescribeDBClusterSnapshots for usage and error information. +// +// Returned Error Codes: +// * DBClusterSnapshotNotFoundFault +// DBClusterSnapshotIdentifier does not refer to an existing DB cluster snapshot. +// func (c *RDS) DescribeDBClusterSnapshots(input *DescribeDBClusterSnapshotsInput) (*DescribeDBClusterSnapshotsOutput, error) { req, out := c.DescribeDBClusterSnapshotsRequest(input) err := req.Send() @@ -1945,6 +2856,8 @@ const opDescribeDBClusters = "DescribeDBClusters" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeDBClusters for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1979,11 +2892,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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Relational Database Service's +// API operation DescribeDBClusters for usage and error information. +// +// Returned Error Codes: +// * DBClusterNotFoundFault +// DBClusterIdentifier does not refer to an existing DB cluster. +// func (c *RDS) DescribeDBClusters(input *DescribeDBClustersInput) (*DescribeDBClustersOutput, error) { req, out := c.DescribeDBClustersRequest(input) err := req.Send() @@ -1997,6 +2924,8 @@ const opDescribeDBEngineVersions = "DescribeDBEngineVersions" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeDBEngineVersions for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -2037,7 +2966,16 @@ func (c *RDS) DescribeDBEngineVersionsRequest(input *DescribeDBEngineVersionsInp return } +// DescribeDBEngineVersions API operation for Amazon Relational Database Service. +// // Returns a list of the available DB engines. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Relational Database Service's +// API operation DescribeDBEngineVersions for usage and error information. func (c *RDS) DescribeDBEngineVersions(input *DescribeDBEngineVersionsInput) (*DescribeDBEngineVersionsOutput, error) { req, out := c.DescribeDBEngineVersionsRequest(input) err := req.Send() @@ -2076,6 +3014,8 @@ const opDescribeDBInstances = "DescribeDBInstances" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeDBInstances for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -2116,7 +3056,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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Relational Database Service's +// API operation DescribeDBInstances for usage and error information. +// +// Returned Error Codes: +// * DBInstanceNotFound +// DBInstanceIdentifier does not refer to an existing DB instance. +// func (c *RDS) DescribeDBInstances(input *DescribeDBInstancesInput) (*DescribeDBInstancesOutput, error) { req, out := c.DescribeDBInstancesRequest(input) err := req.Send() @@ -2155,6 +3109,8 @@ const opDescribeDBLogFiles = "DescribeDBLogFiles" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeDBLogFiles for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -2195,7 +3151,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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Relational Database Service's +// API operation DescribeDBLogFiles for usage and error information. +// +// Returned Error Codes: +// * DBInstanceNotFound +// DBInstanceIdentifier does not refer to an existing DB instance. +// func (c *RDS) DescribeDBLogFiles(input *DescribeDBLogFilesInput) (*DescribeDBLogFilesOutput, error) { req, out := c.DescribeDBLogFilesRequest(input) err := req.Send() @@ -2234,6 +3204,8 @@ const opDescribeDBParameterGroups = "DescribeDBParameterGroups" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeDBParameterGroups for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -2274,9 +3246,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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Relational Database Service's +// API operation DescribeDBParameterGroups for usage and error information. +// +// Returned Error Codes: +// * DBParameterGroupNotFound +// DBParameterGroupName does not refer to an existing DB parameter group. +// func (c *RDS) DescribeDBParameterGroups(input *DescribeDBParameterGroupsInput) (*DescribeDBParameterGroupsOutput, error) { req, out := c.DescribeDBParameterGroupsRequest(input) err := req.Send() @@ -2315,6 +3301,8 @@ const opDescribeDBParameters = "DescribeDBParameters" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeDBParameters for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -2355,7 +3343,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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Relational Database Service's +// API operation DescribeDBParameters for usage and error information. +// +// Returned Error Codes: +// * DBParameterGroupNotFound +// DBParameterGroupName does not refer to an existing DB parameter group. +// func (c *RDS) DescribeDBParameters(input *DescribeDBParametersInput) (*DescribeDBParametersOutput, error) { req, out := c.DescribeDBParametersRequest(input) err := req.Send() @@ -2394,6 +3396,8 @@ const opDescribeDBSecurityGroups = "DescribeDBSecurityGroups" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeDBSecurityGroups for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -2434,9 +3438,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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Relational Database Service's +// API operation DescribeDBSecurityGroups for usage and error information. +// +// Returned Error Codes: +// * DBSecurityGroupNotFound +// DBSecurityGroupName does not refer to an existing DB security group. +// func (c *RDS) DescribeDBSecurityGroups(input *DescribeDBSecurityGroupsInput) (*DescribeDBSecurityGroupsOutput, error) { req, out := c.DescribeDBSecurityGroupsRequest(input) err := req.Send() @@ -2475,6 +3493,8 @@ const opDescribeDBSnapshotAttributes = "DescribeDBSnapshotAttributes" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeDBSnapshotAttributes for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -2509,6 +3529,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 +3543,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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Relational Database Service's +// API operation DescribeDBSnapshotAttributes for usage and error information. +// +// Returned Error Codes: +// * DBSnapshotNotFound +// DBSnapshotIdentifier does not refer to an existing DB snapshot. +// func (c *RDS) DescribeDBSnapshotAttributes(input *DescribeDBSnapshotAttributesInput) (*DescribeDBSnapshotAttributesOutput, error) { req, out := c.DescribeDBSnapshotAttributesRequest(input) err := req.Send() @@ -2534,6 +3568,8 @@ const opDescribeDBSnapshots = "DescribeDBSnapshots" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeDBSnapshots for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -2574,7 +3610,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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Relational Database Service's +// API operation DescribeDBSnapshots for usage and error information. +// +// Returned Error Codes: +// * DBSnapshotNotFound +// DBSnapshotIdentifier does not refer to an existing DB snapshot. +// func (c *RDS) DescribeDBSnapshots(input *DescribeDBSnapshotsInput) (*DescribeDBSnapshotsOutput, error) { req, out := c.DescribeDBSnapshotsRequest(input) err := req.Send() @@ -2613,6 +3663,8 @@ const opDescribeDBSubnetGroups = "DescribeDBSubnetGroups" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeDBSubnetGroups for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -2653,10 +3705,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). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Relational Database Service's +// API operation DescribeDBSubnetGroups for usage and error information. +// +// Returned Error Codes: +// * DBSubnetGroupNotFoundFault +// DBSubnetGroupName does not refer to an existing DB subnet group. +// func (c *RDS) DescribeDBSubnetGroups(input *DescribeDBSubnetGroupsInput) (*DescribeDBSubnetGroupsOutput, error) { req, out := c.DescribeDBSubnetGroupsRequest(input) err := req.Send() @@ -2695,6 +3761,8 @@ const opDescribeEngineDefaultClusterParameters = "DescribeEngineDefaultClusterPa // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeEngineDefaultClusterParameters for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -2729,11 +3797,20 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Relational Database Service's +// API operation DescribeEngineDefaultClusterParameters for usage and error information. func (c *RDS) DescribeEngineDefaultClusterParameters(input *DescribeEngineDefaultClusterParametersInput) (*DescribeEngineDefaultClusterParametersOutput, error) { req, out := c.DescribeEngineDefaultClusterParametersRequest(input) err := req.Send() @@ -2747,6 +3824,8 @@ const opDescribeEngineDefaultParameters = "DescribeEngineDefaultParameters" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeEngineDefaultParameters for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -2787,8 +3866,17 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Relational Database Service's +// API operation DescribeEngineDefaultParameters for usage and error information. func (c *RDS) DescribeEngineDefaultParameters(input *DescribeEngineDefaultParametersInput) (*DescribeEngineDefaultParametersOutput, error) { req, out := c.DescribeEngineDefaultParametersRequest(input) err := req.Send() @@ -2827,6 +3915,8 @@ const opDescribeEventCategories = "DescribeEventCategories" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeEventCategories for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -2861,10 +3951,19 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Relational Database Service's +// API operation DescribeEventCategories for usage and error information. func (c *RDS) DescribeEventCategories(input *DescribeEventCategoriesInput) (*DescribeEventCategoriesOutput, error) { req, out := c.DescribeEventCategoriesRequest(input) err := req.Send() @@ -2878,6 +3977,8 @@ const opDescribeEventSubscriptions = "DescribeEventSubscriptions" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeEventSubscriptions for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -2918,11 +4019,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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Relational Database Service's +// API operation DescribeEventSubscriptions for usage and error information. +// +// Returned Error Codes: +// * SubscriptionNotFound +// The subscription name does not exist. +// func (c *RDS) DescribeEventSubscriptions(input *DescribeEventSubscriptionsInput) (*DescribeEventSubscriptionsOutput, error) { req, out := c.DescribeEventSubscriptionsRequest(input) err := req.Send() @@ -2961,6 +4076,8 @@ const opDescribeEvents = "DescribeEvents" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeEvents for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -3001,11 +4118,20 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Relational Database Service's +// API operation DescribeEvents for usage and error information. func (c *RDS) DescribeEvents(input *DescribeEventsInput) (*DescribeEventsOutput, error) { req, out := c.DescribeEventsRequest(input) err := req.Send() @@ -3044,6 +4170,8 @@ const opDescribeOptionGroupOptions = "DescribeOptionGroupOptions" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeOptionGroupOptions for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -3084,7 +4212,16 @@ func (c *RDS) DescribeOptionGroupOptionsRequest(input *DescribeOptionGroupOption return } +// DescribeOptionGroupOptions API operation for Amazon Relational Database Service. +// // Describes all available options. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Relational Database Service's +// API operation DescribeOptionGroupOptions for usage and error information. func (c *RDS) DescribeOptionGroupOptions(input *DescribeOptionGroupOptionsInput) (*DescribeOptionGroupOptionsOutput, error) { req, out := c.DescribeOptionGroupOptionsRequest(input) err := req.Send() @@ -3123,6 +4260,8 @@ const opDescribeOptionGroups = "DescribeOptionGroups" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeOptionGroups for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -3163,7 +4302,21 @@ func (c *RDS) DescribeOptionGroupsRequest(input *DescribeOptionGroupsInput) (req return } +// DescribeOptionGroups API operation for Amazon Relational Database Service. +// // Describes the available option groups. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Relational Database Service's +// API operation DescribeOptionGroups for usage and error information. +// +// Returned Error Codes: +// * OptionGroupNotFoundFault +// The specified option group could not be found. +// func (c *RDS) DescribeOptionGroups(input *DescribeOptionGroupsInput) (*DescribeOptionGroupsOutput, error) { req, out := c.DescribeOptionGroupsRequest(input) err := req.Send() @@ -3202,6 +4355,8 @@ const opDescribeOrderableDBInstanceOptions = "DescribeOrderableDBInstanceOptions // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeOrderableDBInstanceOptions for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -3242,7 +4397,16 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Relational Database Service's +// API operation DescribeOrderableDBInstanceOptions for usage and error information. func (c *RDS) DescribeOrderableDBInstanceOptions(input *DescribeOrderableDBInstanceOptionsInput) (*DescribeOrderableDBInstanceOptionsOutput, error) { req, out := c.DescribeOrderableDBInstanceOptionsRequest(input) err := req.Send() @@ -3281,6 +4445,8 @@ const opDescribePendingMaintenanceActions = "DescribePendingMaintenanceActions" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribePendingMaintenanceActions for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -3315,8 +4481,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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Relational Database Service's +// API operation DescribePendingMaintenanceActions for usage and error information. +// +// Returned Error Codes: +// * ResourceNotFoundFault +// The specified resource ID was not found. +// func (c *RDS) DescribePendingMaintenanceActions(input *DescribePendingMaintenanceActionsInput) (*DescribePendingMaintenanceActionsOutput, error) { req, out := c.DescribePendingMaintenanceActionsRequest(input) err := req.Send() @@ -3330,6 +4510,8 @@ const opDescribeReservedDBInstances = "DescribeReservedDBInstances" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeReservedDBInstances for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -3370,8 +4552,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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Relational Database Service's +// API operation DescribeReservedDBInstances for usage and error information. +// +// Returned Error Codes: +// * ReservedDBInstanceNotFound +// The specified reserved DB Instance not found. +// func (c *RDS) DescribeReservedDBInstances(input *DescribeReservedDBInstancesInput) (*DescribeReservedDBInstancesOutput, error) { req, out := c.DescribeReservedDBInstancesRequest(input) err := req.Send() @@ -3410,6 +4606,8 @@ const opDescribeReservedDBInstancesOfferings = "DescribeReservedDBInstancesOffer // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeReservedDBInstancesOfferings for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -3450,7 +4648,21 @@ func (c *RDS) DescribeReservedDBInstancesOfferingsRequest(input *DescribeReserve return } +// DescribeReservedDBInstancesOfferings API operation for Amazon Relational Database Service. +// // Lists available reserved DB instance offerings. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Relational Database Service's +// API operation DescribeReservedDBInstancesOfferings for usage and error information. +// +// Returned Error Codes: +// * ReservedDBInstancesOfferingNotFound +// Specified offering does not exist. +// func (c *RDS) DescribeReservedDBInstancesOfferings(input *DescribeReservedDBInstancesOfferingsInput) (*DescribeReservedDBInstancesOfferingsOutput, error) { req, out := c.DescribeReservedDBInstancesOfferingsRequest(input) err := req.Send() @@ -3489,6 +4701,8 @@ const opDescribeSourceRegions = "DescribeSourceRegions" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeSourceRegions for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -3523,9 +4737,18 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Relational Database Service's +// API operation DescribeSourceRegions for usage and error information. func (c *RDS) DescribeSourceRegions(input *DescribeSourceRegionsInput) (*DescribeSourceRegionsOutput, error) { req, out := c.DescribeSourceRegionsRequest(input) err := req.Send() @@ -3539,6 +4762,8 @@ const opDownloadDBLogFilePortion = "DownloadDBLogFilePortion" // value can be used to capture response data after the request's "Send" method // is called. // +// See DownloadDBLogFilePortion for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -3579,7 +4804,24 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Relational Database Service's +// API operation DownloadDBLogFilePortion for usage and error information. +// +// Returned Error Codes: +// * DBInstanceNotFound +// DBInstanceIdentifier does not refer to an existing DB instance. +// +// * DBLogFileNotFoundFault +// LogFileName does not refer to an existing DB log file. +// func (c *RDS) DownloadDBLogFilePortion(input *DownloadDBLogFilePortionInput) (*DownloadDBLogFilePortionOutput, error) { req, out := c.DownloadDBLogFilePortionRequest(input) err := req.Send() @@ -3618,6 +4860,8 @@ const opFailoverDBCluster = "FailoverDBCluster" // value can be used to capture response data after the request's "Send" method // is called. // +// See FailoverDBCluster for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -3652,6 +4896,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 +4913,24 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Relational Database Service's +// API operation FailoverDBCluster for usage and error information. +// +// Returned Error Codes: +// * DBClusterNotFoundFault +// DBClusterIdentifier does not refer to an existing DB cluster. +// +// * InvalidDBClusterStateFault +// The DB cluster is not in a valid state. +// +// * InvalidDBInstanceState +// The specified DB instance is not in the available state. +// func (c *RDS) FailoverDBCluster(input *FailoverDBClusterInput) (*FailoverDBClusterOutput, error) { req, out := c.FailoverDBClusterRequest(input) err := req.Send() @@ -3680,6 +4944,8 @@ const opListTagsForResource = "ListTagsForResource" // value can be used to capture response data after the request's "Send" method // is called. // +// See ListTagsForResource for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -3714,10 +4980,27 @@ 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). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Relational Database Service's +// API operation ListTagsForResource for usage and error information. +// +// Returned Error Codes: +// * DBInstanceNotFound +// DBInstanceIdentifier does not refer to an existing DB instance. +// +// * DBSnapshotNotFound +// DBSnapshotIdentifier does not refer to an existing DB snapshot. +// func (c *RDS) ListTagsForResource(input *ListTagsForResourceInput) (*ListTagsForResourceOutput, error) { req, out := c.ListTagsForResourceRequest(input) err := req.Send() @@ -3731,6 +5014,8 @@ const opModifyDBCluster = "ModifyDBCluster" // value can be used to capture response data after the request's "Send" method // is called. // +// See ModifyDBCluster for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -3765,11 +5050,59 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Relational Database Service's +// API operation ModifyDBCluster for usage and error information. +// +// Returned Error Codes: +// * DBClusterNotFoundFault +// DBClusterIdentifier does not refer to an existing DB cluster. +// +// * InvalidDBClusterStateFault +// The DB cluster is not in a valid state. +// +// * StorageQuotaExceeded +// Request would result in user exceeding the allowed amount of storage available +// across all DB instances. +// +// * DBSubnetGroupNotFoundFault +// DBSubnetGroupName does not refer to an existing DB subnet group. +// +// * InvalidVPCNetworkStateFault +// DB subnet group does not cover all Availability Zones after it is created +// because users' change. +// +// * InvalidDBSubnetGroupStateFault +// The DB subnet group cannot be deleted because it is in use. +// +// * InvalidSubnet +// The requested subnet is invalid, or multiple subnets were requested that +// are not all in a common VPC. +// +// * DBClusterParameterGroupNotFound +// DBClusterParameterGroupName does not refer to an existing DB Cluster parameter +// group. +// +// * InvalidDBSecurityGroupState +// The state of the DB security group does not allow deletion. +// +// * InvalidDBInstanceState +// The specified DB instance is not in the available state. +// +// * DBClusterAlreadyExistsFault +// User already has a DB cluster with the given identifier. +// func (c *RDS) ModifyDBCluster(input *ModifyDBClusterInput) (*ModifyDBClusterOutput, error) { req, out := c.ModifyDBClusterRequest(input) err := req.Send() @@ -3783,6 +5116,8 @@ const opModifyDBClusterParameterGroup = "ModifyDBClusterParameterGroup" // value can be used to capture response data after the request's "Send" method // is called. // +// See ModifyDBClusterParameterGroup for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -3817,6 +5152,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 +5176,21 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Relational Database Service's +// API operation ModifyDBClusterParameterGroup for usage and error information. +// +// Returned Error Codes: +// * DBParameterGroupNotFound +// DBParameterGroupName does not refer to an existing DB parameter group. +// +// * InvalidDBParameterGroupState +// The DB parameter group cannot be deleted because it is in use. +// func (c *RDS) ModifyDBClusterParameterGroup(input *ModifyDBClusterParameterGroupInput) (*DBClusterParameterGroupNameMessage, error) { req, out := c.ModifyDBClusterParameterGroupRequest(input) err := req.Send() @@ -3852,6 +5204,8 @@ const opModifyDBClusterSnapshotAttribute = "ModifyDBClusterSnapshotAttribute" // value can be used to capture response data after the request's "Send" method // is called. // +// See ModifyDBClusterSnapshotAttribute for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -3886,6 +5240,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 +5258,25 @@ func (c *RDS) ModifyDBClusterSnapshotAttributeRequest(input *ModifyDBClusterSnap // the DescribeDBClusterSnapshotAttributes API action. // // If a manual DB cluster snapshot is encrypted, it cannot be shared. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Relational Database Service's +// API operation ModifyDBClusterSnapshotAttribute for usage and error information. +// +// Returned Error Codes: +// * DBClusterSnapshotNotFoundFault +// DBClusterSnapshotIdentifier does not refer to an existing DB cluster snapshot. +// +// * InvalidDBClusterSnapshotStateFault +// The supplied value is not a valid DB cluster snapshot state. +// +// * SharedSnapshotQuotaExceeded +// You have exceeded the maximum number of accounts that you can share a manual +// DB snapshot with. +// func (c *RDS) ModifyDBClusterSnapshotAttribute(input *ModifyDBClusterSnapshotAttributeInput) (*ModifyDBClusterSnapshotAttributeOutput, error) { req, out := c.ModifyDBClusterSnapshotAttributeRequest(input) err := req.Send() @@ -3915,6 +5290,8 @@ const opModifyDBInstance = "ModifyDBInstance" // value can be used to capture response data after the request's "Send" method // is called. // +// See ModifyDBInstance for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -3949,9 +5326,75 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Relational Database Service's +// API operation ModifyDBInstance for usage and error information. +// +// Returned Error Codes: +// * InvalidDBInstanceState +// The specified DB instance is not in the available state. +// +// * InvalidDBSecurityGroupState +// The state of the DB security group does not allow deletion. +// +// * DBInstanceAlreadyExists +// User already has a DB instance with the given identifier. +// +// * DBInstanceNotFound +// DBInstanceIdentifier does not refer to an existing DB instance. +// +// * DBSecurityGroupNotFound +// DBSecurityGroupName does not refer to an existing DB security group. +// +// * DBParameterGroupNotFound +// DBParameterGroupName does not refer to an existing DB parameter group. +// +// * InsufficientDBInstanceCapacity +// Specified DB instance class is not available in the specified Availability +// Zone. +// +// * StorageQuotaExceeded +// Request would result in user exceeding the allowed amount of storage available +// across all DB instances. +// +// * InvalidVPCNetworkStateFault +// DB subnet group does not cover all Availability Zones after it is created +// because users' change. +// +// * ProvisionedIopsNotAvailableInAZFault +// Provisioned IOPS not available in the specified Availability Zone. +// +// * OptionGroupNotFoundFault +// The specified option group could not be found. +// +// * DBUpgradeDependencyFailure +// The DB upgrade failed because a resource the DB depends on could not be modified. +// +// * StorageTypeNotSupported +// StorageType specified cannot be associated with the DB Instance. +// +// * AuthorizationNotFound +// Specified CIDRIP or EC2 security group is not authorized for the specified +// DB security group. +// +// RDS may not also be authorized via IAM to perform necessary actions on your +// behalf. +// +// * CertificateNotFound +// CertificateIdentifier does not refer to an existing certificate. +// +// * DomainNotFoundFault +// Domain does not refer to an existing Active Directory Domain. +// func (c *RDS) ModifyDBInstance(input *ModifyDBInstanceInput) (*ModifyDBInstanceOutput, error) { req, out := c.ModifyDBInstanceRequest(input) err := req.Send() @@ -3965,6 +5408,8 @@ const opModifyDBParameterGroup = "ModifyDBParameterGroup" // value can be used to capture response data after the request's "Send" method // is called. // +// See ModifyDBParameterGroup for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -3999,6 +5444,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 +5464,21 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Relational Database Service's +// API operation ModifyDBParameterGroup for usage and error information. +// +// Returned Error Codes: +// * DBParameterGroupNotFound +// DBParameterGroupName does not refer to an existing DB parameter group. +// +// * InvalidDBParameterGroupState +// The DB parameter group cannot be deleted because it is in use. +// func (c *RDS) ModifyDBParameterGroup(input *ModifyDBParameterGroupInput) (*DBParameterGroupNameMessage, error) { req, out := c.ModifyDBParameterGroupRequest(input) err := req.Send() @@ -4030,6 +5492,8 @@ const opModifyDBSnapshotAttribute = "ModifyDBSnapshotAttribute" // value can be used to capture response data after the request's "Send" method // is called. // +// See ModifyDBSnapshotAttribute for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -4064,6 +5528,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 +5546,25 @@ func (c *RDS) ModifyDBSnapshotAttributeRequest(input *ModifyDBSnapshotAttributeI // API action. // // If the manual DB snapshot is encrypted, it cannot be shared. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Relational Database Service's +// API operation ModifyDBSnapshotAttribute for usage and error information. +// +// Returned Error Codes: +// * DBSnapshotNotFound +// DBSnapshotIdentifier does not refer to an existing DB snapshot. +// +// * InvalidDBSnapshotState +// The state of the DB snapshot does not allow deletion. +// +// * SharedSnapshotQuotaExceeded +// You have exceeded the maximum number of accounts that you can share a manual +// DB snapshot with. +// func (c *RDS) ModifyDBSnapshotAttribute(input *ModifyDBSnapshotAttributeInput) (*ModifyDBSnapshotAttributeOutput, error) { req, out := c.ModifyDBSnapshotAttributeRequest(input) err := req.Send() @@ -4093,6 +5578,8 @@ const opModifyDBSubnetGroup = "ModifyDBSubnetGroup" // value can be used to capture response data after the request's "Send" method // is called. // +// See ModifyDBSubnetGroup for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -4127,8 +5614,37 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Relational Database Service's +// API operation ModifyDBSubnetGroup for usage and error information. +// +// Returned Error Codes: +// * DBSubnetGroupNotFoundFault +// DBSubnetGroupName does not refer to an existing DB subnet group. +// +// * DBSubnetQuotaExceededFault +// Request would result in user exceeding the allowed number of subnets in a +// DB subnet groups. +// +// * SubnetAlreadyInUse +// The DB subnet is already in use in the Availability Zone. +// +// * DBSubnetGroupDoesNotCoverEnoughAZs +// Subnets in the DB subnet group should cover at least two Availability Zones +// unless there is only one Availability Zone. +// +// * InvalidSubnet +// The requested subnet is invalid, or multiple subnets were requested that +// are not all in a common VPC. +// func (c *RDS) ModifyDBSubnetGroup(input *ModifyDBSubnetGroupInput) (*ModifyDBSubnetGroupOutput, error) { req, out := c.ModifyDBSubnetGroupRequest(input) err := req.Send() @@ -4142,6 +5658,8 @@ const opModifyEventSubscription = "ModifyEventSubscription" // value can be used to capture response data after the request's "Send" method // is called. // +// See ModifyEventSubscription for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -4176,6 +5694,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 +5705,33 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Relational Database Service's +// API operation ModifyEventSubscription for usage and error information. +// +// Returned Error Codes: +// * EventSubscriptionQuotaExceeded +// You have reached the maximum number of event subscriptions. +// +// * SubscriptionNotFound +// The subscription name does not exist. +// +// * SNSInvalidTopic +// SNS has responded that there is a problem with the SND topic specified. +// +// * SNSNoAuthorization +// You do not have permission to publish to the SNS topic ARN. +// +// * SNSTopicArnNotFound +// The SNS topic ARN does not exist. +// +// * SubscriptionCategoryNotFound +// The supplied category does not exist. +// func (c *RDS) ModifyEventSubscription(input *ModifyEventSubscriptionInput) (*ModifyEventSubscriptionOutput, error) { req, out := c.ModifyEventSubscriptionRequest(input) err := req.Send() @@ -4198,6 +5745,8 @@ const opModifyOptionGroup = "ModifyOptionGroup" // value can be used to capture response data after the request's "Send" method // is called. // +// See ModifyOptionGroup for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -4232,7 +5781,24 @@ func (c *RDS) ModifyOptionGroupRequest(input *ModifyOptionGroupInput) (req *requ return } +// ModifyOptionGroup API operation for Amazon Relational Database Service. +// // Modifies an existing option group. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Relational Database Service's +// API operation ModifyOptionGroup for usage and error information. +// +// Returned Error Codes: +// * InvalidOptionGroupStateFault +// The option group is not in the available state. +// +// * OptionGroupNotFoundFault +// The specified option group could not be found. +// func (c *RDS) ModifyOptionGroup(input *ModifyOptionGroupInput) (*ModifyOptionGroupOutput, error) { req, out := c.ModifyOptionGroupRequest(input) err := req.Send() @@ -4246,6 +5812,8 @@ const opPromoteReadReplica = "PromoteReadReplica" // value can be used to capture response data after the request's "Send" method // is called. // +// See PromoteReadReplica for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -4280,12 +5848,29 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Relational Database Service's +// API operation PromoteReadReplica for usage and error information. +// +// Returned Error Codes: +// * InvalidDBInstanceState +// The specified DB instance is not in the available state. +// +// * DBInstanceNotFound +// DBInstanceIdentifier does not refer to an existing DB instance. +// func (c *RDS) PromoteReadReplica(input *PromoteReadReplicaInput) (*PromoteReadReplicaOutput, error) { req, out := c.PromoteReadReplicaRequest(input) err := req.Send() @@ -4299,6 +5884,8 @@ const opPromoteReadReplicaDBCluster = "PromoteReadReplicaDBCluster" // value can be used to capture response data after the request's "Send" method // is called. // +// See PromoteReadReplicaDBCluster for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -4333,7 +5920,24 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Relational Database Service's +// API operation PromoteReadReplicaDBCluster for usage and error information. +// +// Returned Error Codes: +// * DBClusterNotFoundFault +// DBClusterIdentifier does not refer to an existing DB cluster. +// +// * InvalidDBClusterStateFault +// The DB cluster is not in a valid state. +// func (c *RDS) PromoteReadReplicaDBCluster(input *PromoteReadReplicaDBClusterInput) (*PromoteReadReplicaDBClusterOutput, error) { req, out := c.PromoteReadReplicaDBClusterRequest(input) err := req.Send() @@ -4347,6 +5951,8 @@ const opPurchaseReservedDBInstancesOffering = "PurchaseReservedDBInstancesOfferi // value can be used to capture response data after the request's "Send" method // is called. // +// See PurchaseReservedDBInstancesOffering for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -4381,7 +5987,27 @@ func (c *RDS) PurchaseReservedDBInstancesOfferingRequest(input *PurchaseReserved return } +// PurchaseReservedDBInstancesOffering API operation for Amazon Relational Database Service. +// // Purchases a reserved DB instance offering. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Relational Database Service's +// API operation PurchaseReservedDBInstancesOffering for usage and error information. +// +// Returned Error Codes: +// * ReservedDBInstancesOfferingNotFound +// Specified offering does not exist. +// +// * ReservedDBInstanceAlreadyExists +// User already has a reservation with the given identifier. +// +// * ReservedDBInstanceQuotaExceeded +// Request would exceed the user's DB Instance quota. +// func (c *RDS) PurchaseReservedDBInstancesOffering(input *PurchaseReservedDBInstancesOfferingInput) (*PurchaseReservedDBInstancesOfferingOutput, error) { req, out := c.PurchaseReservedDBInstancesOfferingRequest(input) err := req.Send() @@ -4395,6 +6021,8 @@ const opRebootDBInstance = "RebootDBInstance" // value can be used to capture response data after the request's "Send" method // is called. // +// See RebootDBInstance for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -4429,6 +6057,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 +6076,21 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Relational Database Service's +// API operation RebootDBInstance for usage and error information. +// +// Returned Error Codes: +// * InvalidDBInstanceState +// The specified DB instance is not in the available state. +// +// * DBInstanceNotFound +// DBInstanceIdentifier does not refer to an existing DB instance. +// func (c *RDS) RebootDBInstance(input *RebootDBInstanceInput) (*RebootDBInstanceOutput, error) { req, out := c.RebootDBInstanceRequest(input) err := req.Send() @@ -4459,6 +6104,8 @@ const opRemoveSourceIdentifierFromSubscription = "RemoveSourceIdentifierFromSubs // value can be used to capture response data after the request's "Send" method // is called. // +// See RemoveSourceIdentifierFromSubscription for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -4493,7 +6140,24 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Relational Database Service's +// API operation RemoveSourceIdentifierFromSubscription for usage and error information. +// +// Returned Error Codes: +// * SubscriptionNotFound +// The subscription name does not exist. +// +// * SourceNotFound +// The requested source could not be found. +// func (c *RDS) RemoveSourceIdentifierFromSubscription(input *RemoveSourceIdentifierFromSubscriptionInput) (*RemoveSourceIdentifierFromSubscriptionOutput, error) { req, out := c.RemoveSourceIdentifierFromSubscriptionRequest(input) err := req.Send() @@ -4507,6 +6171,8 @@ const opRemoveTagsFromResource = "RemoveTagsFromResource" // value can be used to capture response data after the request's "Send" method // is called. // +// See RemoveTagsFromResource for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -4543,10 +6209,27 @@ 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). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Relational Database Service's +// API operation RemoveTagsFromResource for usage and error information. +// +// Returned Error Codes: +// * DBInstanceNotFound +// DBInstanceIdentifier does not refer to an existing DB instance. +// +// * DBSnapshotNotFound +// DBSnapshotIdentifier does not refer to an existing DB snapshot. +// func (c *RDS) RemoveTagsFromResource(input *RemoveTagsFromResourceInput) (*RemoveTagsFromResourceOutput, error) { req, out := c.RemoveTagsFromResourceRequest(input) err := req.Send() @@ -4560,6 +6243,8 @@ const opResetDBClusterParameterGroup = "ResetDBClusterParameterGroup" // value can be used to capture response data after the request's "Send" method // is called. // +// See ResetDBClusterParameterGroup for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -4594,6 +6279,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 +6294,21 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Relational Database Service's +// API operation ResetDBClusterParameterGroup for usage and error information. +// +// Returned Error Codes: +// * InvalidDBParameterGroupState +// The DB parameter group cannot be deleted because it is in use. +// +// * DBParameterGroupNotFound +// DBParameterGroupName does not refer to an existing DB parameter group. +// func (c *RDS) ResetDBClusterParameterGroup(input *ResetDBClusterParameterGroupInput) (*DBClusterParameterGroupNameMessage, error) { req, out := c.ResetDBClusterParameterGroupRequest(input) err := req.Send() @@ -4620,6 +6322,8 @@ const opResetDBParameterGroup = "ResetDBParameterGroup" // value can be used to capture response data after the request's "Send" method // is called. // +// See ResetDBParameterGroup for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -4654,6 +6358,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 +6367,21 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Relational Database Service's +// API operation ResetDBParameterGroup for usage and error information. +// +// Returned Error Codes: +// * InvalidDBParameterGroupState +// The DB parameter group cannot be deleted because it is in use. +// +// * DBParameterGroupNotFound +// DBParameterGroupName does not refer to an existing DB parameter group. +// func (c *RDS) ResetDBParameterGroup(input *ResetDBParameterGroupInput) (*DBParameterGroupNameMessage, error) { req, out := c.ResetDBParameterGroupRequest(input) err := req.Send() @@ -4674,6 +6395,8 @@ const opRestoreDBClusterFromS3 = "RestoreDBClusterFromS3" // value can be used to capture response data after the request's "Send" method // is called. // +// See RestoreDBClusterFromS3 for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -4708,10 +6431,69 @@ 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). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Relational Database Service's +// API operation RestoreDBClusterFromS3 for usage and error information. +// +// Returned Error Codes: +// * DBClusterAlreadyExistsFault +// User already has a DB cluster with the given identifier. +// +// * DBClusterQuotaExceededFault +// User attempted to create a new DB cluster and the user has already reached +// the maximum allowed DB cluster quota. +// +// * StorageQuotaExceeded +// Request would result in user exceeding the allowed amount of storage available +// across all DB instances. +// +// * DBSubnetGroupNotFoundFault +// DBSubnetGroupName does not refer to an existing DB subnet group. +// +// * InvalidVPCNetworkStateFault +// DB subnet group does not cover all Availability Zones after it is created +// because users' change. +// +// * InvalidDBClusterStateFault +// The DB cluster is not in a valid state. +// +// * InvalidDBSubnetGroupStateFault +// The DB subnet group cannot be deleted because it is in use. +// +// * InvalidSubnet +// The requested subnet is invalid, or multiple subnets were requested that +// are not all in a common VPC. +// +// * InvalidS3BucketFault +// The specified Amazon S3 bucket name could not be found or Amazon RDS is not +// authorized to access the specified Amazon S3 bucket. Verify the SourceS3BucketName +// and S3IngestionRoleArn values and try again. +// +// * DBClusterParameterGroupNotFound +// DBClusterParameterGroupName does not refer to an existing DB Cluster parameter +// group. +// +// * KMSKeyNotAccessibleFault +// Error accessing KMS key. +// +// * DBClusterNotFoundFault +// DBClusterIdentifier does not refer to an existing DB cluster. +// +// * InsufficientStorageClusterCapacity +// There is insufficient storage available for the current action. You may be +// able to resolve this error by updating your subnet group to use different +// Availability Zones that have more storage available. +// func (c *RDS) RestoreDBClusterFromS3(input *RestoreDBClusterFromS3Input) (*RestoreDBClusterFromS3Output, error) { req, out := c.RestoreDBClusterFromS3Request(input) err := req.Send() @@ -4725,6 +6507,8 @@ const opRestoreDBClusterFromSnapshot = "RestoreDBClusterFromSnapshot" // value can be used to capture response data after the request's "Send" method // is called. // +// See RestoreDBClusterFromSnapshot for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -4759,6 +6543,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 +6552,73 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Relational Database Service's +// API operation RestoreDBClusterFromSnapshot for usage and error information. +// +// Returned Error Codes: +// * DBClusterAlreadyExistsFault +// User already has a DB cluster with the given identifier. +// +// * DBClusterQuotaExceededFault +// User attempted to create a new DB cluster and the user has already reached +// the maximum allowed DB cluster quota. +// +// * StorageQuotaExceeded +// Request would result in user exceeding the allowed amount of storage available +// across all DB instances. +// +// * DBSubnetGroupNotFoundFault +// DBSubnetGroupName does not refer to an existing DB subnet group. +// +// * DBSnapshotNotFound +// DBSnapshotIdentifier does not refer to an existing DB snapshot. +// +// * DBClusterSnapshotNotFoundFault +// DBClusterSnapshotIdentifier does not refer to an existing DB cluster snapshot. +// +// * InsufficientDBClusterCapacityFault +// The DB cluster does not have enough capacity for the current operation. +// +// * InsufficientStorageClusterCapacity +// There is insufficient storage available for the current action. You may be +// able to resolve this error by updating your subnet group to use different +// Availability Zones that have more storage available. +// +// * InvalidDBSnapshotState +// The state of the DB snapshot does not allow deletion. +// +// * InvalidDBClusterSnapshotStateFault +// The supplied value is not a valid DB cluster snapshot state. +// +// * StorageQuotaExceeded +// Request would result in user exceeding the allowed amount of storage available +// across all DB instances. +// +// * InvalidVPCNetworkStateFault +// DB subnet group does not cover all Availability Zones after it is created +// because users' change. +// +// * InvalidRestoreFault +// Cannot restore from vpc backup to non-vpc DB instance. +// +// * DBSubnetGroupNotFoundFault +// DBSubnetGroupName does not refer to an existing DB subnet group. +// +// * InvalidSubnet +// The requested subnet is invalid, or multiple subnets were requested that +// are not all in a common VPC. +// +// * OptionGroupNotFoundFault +// The specified option group could not be found. +// +// * KMSKeyNotAccessibleFault +// Error accessing KMS key. +// func (c *RDS) RestoreDBClusterFromSnapshot(input *RestoreDBClusterFromSnapshotInput) (*RestoreDBClusterFromSnapshotOutput, error) { req, out := c.RestoreDBClusterFromSnapshotRequest(input) err := req.Send() @@ -4779,6 +6632,8 @@ const opRestoreDBClusterToPointInTime = "RestoreDBClusterToPointInTime" // value can be used to capture response data after the request's "Send" method // is called. // +// See RestoreDBClusterToPointInTime for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -4813,6 +6668,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 +6678,73 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Relational Database Service's +// API operation RestoreDBClusterToPointInTime for usage and error information. +// +// Returned Error Codes: +// * DBClusterAlreadyExistsFault +// User already has a DB cluster with the given identifier. +// +// * DBClusterQuotaExceededFault +// User attempted to create a new DB cluster and the user has already reached +// the maximum allowed DB cluster quota. +// +// * StorageQuotaExceeded +// Request would result in user exceeding the allowed amount of storage available +// across all DB instances. +// +// * DBSubnetGroupNotFoundFault +// DBSubnetGroupName does not refer to an existing DB subnet group. +// +// * DBClusterNotFoundFault +// DBClusterIdentifier does not refer to an existing DB cluster. +// +// * DBClusterSnapshotNotFoundFault +// DBClusterSnapshotIdentifier does not refer to an existing DB cluster snapshot. +// +// * InsufficientDBClusterCapacityFault +// The DB cluster does not have enough capacity for the current operation. +// +// * InsufficientStorageClusterCapacity +// There is insufficient storage available for the current action. You may be +// able to resolve this error by updating your subnet group to use different +// Availability Zones that have more storage available. +// +// * InvalidDBSnapshotState +// The state of the DB snapshot does not allow deletion. +// +// * InvalidDBClusterSnapshotStateFault +// The supplied value is not a valid DB cluster snapshot state. +// +// * StorageQuotaExceeded +// Request would result in user exceeding the allowed amount of storage available +// across all DB instances. +// +// * InvalidVPCNetworkStateFault +// DB subnet group does not cover all Availability Zones after it is created +// because users' change. +// +// * InvalidRestoreFault +// Cannot restore from vpc backup to non-vpc DB instance. +// +// * DBSubnetGroupNotFoundFault +// DBSubnetGroupName does not refer to an existing DB subnet group. +// +// * InvalidSubnet +// The requested subnet is invalid, or multiple subnets were requested that +// are not all in a common VPC. +// +// * OptionGroupNotFoundFault +// The specified option group could not be found. +// +// * KMSKeyNotAccessibleFault +// Error accessing KMS key. +// func (c *RDS) RestoreDBClusterToPointInTime(input *RestoreDBClusterToPointInTimeInput) (*RestoreDBClusterToPointInTimeOutput, error) { req, out := c.RestoreDBClusterToPointInTimeRequest(input) err := req.Send() @@ -4834,6 +6758,8 @@ const opRestoreDBInstanceFromDBSnapshot = "RestoreDBInstanceFromDBSnapshot" // value can be used to capture response data after the request's "Send" method // is called. // +// See RestoreDBInstanceFromDBSnapshot for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -4868,6 +6794,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 +6815,78 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Relational Database Service's +// API operation RestoreDBInstanceFromDBSnapshot for usage and error information. +// +// Returned Error Codes: +// * DBInstanceAlreadyExists +// User already has a DB instance with the given identifier. +// +// * DBSnapshotNotFound +// DBSnapshotIdentifier does not refer to an existing DB snapshot. +// +// * InstanceQuotaExceeded +// Request would result in user exceeding the allowed number of DB instances. +// +// * InsufficientDBInstanceCapacity +// Specified DB instance class is not available in the specified Availability +// Zone. +// +// * InvalidDBSnapshotState +// The state of the DB snapshot does not allow deletion. +// +// * StorageQuotaExceeded +// Request would result in user exceeding the allowed amount of storage available +// across all DB instances. +// +// * InvalidVPCNetworkStateFault +// DB subnet group does not cover all Availability Zones after it is created +// because users' change. +// +// * InvalidRestoreFault +// Cannot restore from vpc backup to non-vpc DB instance. +// +// * DBSubnetGroupNotFoundFault +// DBSubnetGroupName does not refer to an existing DB subnet group. +// +// * DBSubnetGroupDoesNotCoverEnoughAZs +// Subnets in the DB subnet group should cover at least two Availability Zones +// unless there is only one Availability Zone. +// +// * InvalidSubnet +// The requested subnet is invalid, or multiple subnets were requested that +// are not all in a common VPC. +// +// * ProvisionedIopsNotAvailableInAZFault +// Provisioned IOPS not available in the specified Availability Zone. +// +// * OptionGroupNotFoundFault +// The specified option group could not be found. +// +// * StorageTypeNotSupported +// StorageType specified cannot be associated with the DB Instance. +// +// * AuthorizationNotFound +// Specified CIDRIP or EC2 security group is not authorized for the specified +// DB security group. +// +// RDS may not also be authorized via IAM to perform necessary actions on your +// behalf. +// +// * KMSKeyNotAccessibleFault +// Error accessing KMS key. +// +// * DBSecurityGroupNotFound +// DBSecurityGroupName does not refer to an existing DB security group. +// +// * DomainNotFoundFault +// Domain does not refer to an existing Active Directory Domain. +// func (c *RDS) RestoreDBInstanceFromDBSnapshot(input *RestoreDBInstanceFromDBSnapshotInput) (*RestoreDBInstanceFromDBSnapshotOutput, error) { req, out := c.RestoreDBInstanceFromDBSnapshotRequest(input) err := req.Send() @@ -4900,6 +6900,8 @@ const opRestoreDBInstanceToPointInTime = "RestoreDBInstanceToPointInTime" // value can be used to capture response data after the request's "Send" method // is called. // +// See RestoreDBInstanceToPointInTime for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -4934,6 +6936,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 +6950,82 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Relational Database Service's +// API operation RestoreDBInstanceToPointInTime for usage and error information. +// +// Returned Error Codes: +// * DBInstanceAlreadyExists +// User already has a DB instance with the given identifier. +// +// * DBInstanceNotFound +// DBInstanceIdentifier does not refer to an existing DB instance. +// +// * InstanceQuotaExceeded +// Request would result in user exceeding the allowed number of DB instances. +// +// * InsufficientDBInstanceCapacity +// Specified DB instance class is not available in the specified Availability +// Zone. +// +// * InvalidDBInstanceState +// The specified DB instance is not in the available state. +// +// * PointInTimeRestoreNotEnabled +// SourceDBInstanceIdentifier refers to a DB instance with BackupRetentionPeriod +// equal to 0. +// +// * StorageQuotaExceeded +// Request would result in user exceeding the allowed amount of storage available +// across all DB instances. +// +// * InvalidVPCNetworkStateFault +// DB subnet group does not cover all Availability Zones after it is created +// because users' change. +// +// * InvalidRestoreFault +// Cannot restore from vpc backup to non-vpc DB instance. +// +// * DBSubnetGroupNotFoundFault +// DBSubnetGroupName does not refer to an existing DB subnet group. +// +// * DBSubnetGroupDoesNotCoverEnoughAZs +// Subnets in the DB subnet group should cover at least two Availability Zones +// unless there is only one Availability Zone. +// +// * InvalidSubnet +// The requested subnet is invalid, or multiple subnets were requested that +// are not all in a common VPC. +// +// * ProvisionedIopsNotAvailableInAZFault +// Provisioned IOPS not available in the specified Availability Zone. +// +// * OptionGroupNotFoundFault +// The specified option group could not be found. +// +// * StorageTypeNotSupported +// StorageType specified cannot be associated with the DB Instance. +// +// * AuthorizationNotFound +// Specified CIDRIP or EC2 security group is not authorized for the specified +// DB security group. +// +// RDS may not also be authorized via IAM to perform necessary actions on your +// behalf. +// +// * KMSKeyNotAccessibleFault +// Error accessing KMS key. +// +// * DBSecurityGroupNotFound +// DBSecurityGroupName does not refer to an existing DB security group. +// +// * DomainNotFoundFault +// Domain does not refer to an existing Active Directory Domain. +// func (c *RDS) RestoreDBInstanceToPointInTime(input *RestoreDBInstanceToPointInTimeInput) (*RestoreDBInstanceToPointInTimeOutput, error) { req, out := c.RestoreDBInstanceToPointInTimeRequest(input) err := req.Send() @@ -4959,6 +7039,8 @@ const opRevokeDBSecurityGroupIngress = "RevokeDBSecurityGroupIngress" // value can be used to capture response data after the request's "Send" method // is called. // +// See RevokeDBSecurityGroupIngress for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -4993,10 +7075,34 @@ 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). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Relational Database Service's +// API operation RevokeDBSecurityGroupIngress for usage and error information. +// +// Returned Error Codes: +// * DBSecurityGroupNotFound +// DBSecurityGroupName does not refer to an existing DB security group. +// +// * AuthorizationNotFound +// Specified CIDRIP or EC2 security group is not authorized for the specified +// DB security group. +// +// RDS may not also be authorized via IAM to perform necessary actions on your +// behalf. +// +// * InvalidDBSecurityGroupState +// The state of the DB security group does not allow deletion. +// 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..33d5614e25b 100644 --- a/service/redshift/api.go +++ b/service/redshift/api.go @@ -19,6 +19,8 @@ const opAuthorizeClusterSecurityGroupIngress = "AuthorizeClusterSecurityGroupIng // value can be used to capture response data after the request's "Send" method // is called. // +// See AuthorizeClusterSecurityGroupIngress for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -53,6 +55,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 +77,29 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Redshift's +// API operation AuthorizeClusterSecurityGroupIngress for usage and error information. +// +// Returned Error Codes: +// * ClusterSecurityGroupNotFound +// The cluster security group name does not refer to an existing cluster security +// group. +// +// * InvalidClusterSecurityGroupState +// The state of the cluster security group is not available. +// +// * AuthorizationAlreadyExists +// The specified CIDR block or EC2 security group is already authorized for +// the specified cluster security group. +// +// * AuthorizationQuotaExceeded +// The authorization quota for the cluster security group has been reached. +// func (c *Redshift) AuthorizeClusterSecurityGroupIngress(input *AuthorizeClusterSecurityGroupIngressInput) (*AuthorizeClusterSecurityGroupIngressOutput, error) { req, out := c.AuthorizeClusterSecurityGroupIngressRequest(input) err := req.Send() @@ -86,6 +113,8 @@ const opAuthorizeSnapshotAccess = "AuthorizeSnapshotAccess" // value can be used to capture response data after the request's "Send" method // is called. // +// See AuthorizeSnapshotAccess for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -120,11 +149,43 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Redshift's +// API operation AuthorizeSnapshotAccess for usage and error information. +// +// Returned Error Codes: +// * ClusterSnapshotNotFound +// The snapshot identifier does not refer to an existing cluster snapshot. +// +// * AuthorizationAlreadyExists +// The specified CIDR block or EC2 security group is already authorized for +// the specified cluster security group. +// +// * AuthorizationQuotaExceeded +// The authorization quota for the cluster security group has been reached. +// +// * DependentServiceRequestThrottlingFault +// The request cannot be completed because a dependent service is throttling +// requests made by Amazon Redshift on your behalf. Wait and retry the request. +// +// * InvalidClusterSnapshotState +// The specified cluster snapshot is not in the available state, or other accounts +// are authorized to access the snapshot. +// +// * LimitExceededFault +// The encryption key has exceeded its grant limit in AWS KMS. +// func (c *Redshift) AuthorizeSnapshotAccess(input *AuthorizeSnapshotAccessInput) (*AuthorizeSnapshotAccessOutput, error) { req, out := c.AuthorizeSnapshotAccessRequest(input) err := req.Send() @@ -138,6 +199,8 @@ const opCopyClusterSnapshot = "CopyClusterSnapshot" // value can be used to capture response data after the request's "Send" method // is called. // +// See CopyClusterSnapshot for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -172,6 +235,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 +250,30 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Redshift's +// API operation CopyClusterSnapshot for usage and error information. +// +// Returned Error Codes: +// * ClusterSnapshotAlreadyExists +// The value specified as a snapshot identifier is already used by an existing +// snapshot. +// +// * ClusterSnapshotNotFound +// The snapshot identifier does not refer to an existing cluster snapshot. +// +// * InvalidClusterSnapshotState +// The specified cluster snapshot is not in the available state, or other accounts +// are authorized to access the snapshot. +// +// * ClusterSnapshotQuotaExceeded +// The request would result in the user exceeding the allowed number of cluster +// snapshots. +// func (c *Redshift) CopyClusterSnapshot(input *CopyClusterSnapshotInput) (*CopyClusterSnapshotOutput, error) { req, out := c.CopyClusterSnapshotRequest(input) err := req.Send() @@ -198,6 +287,8 @@ const opCreateCluster = "CreateCluster" // value can be used to capture response data after the request's "Send" method // is called. // +// See CreateCluster for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -232,6 +323,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 +332,82 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Redshift's +// API operation CreateCluster for usage and error information. +// +// Returned Error Codes: +// * ClusterAlreadyExists +// The account already has a cluster with the given identifier. +// +// * InsufficientClusterCapacity +// The number of nodes specified exceeds the allotted capacity of the cluster. +// +// * ClusterParameterGroupNotFound +// The parameter group name does not refer to an existing parameter group. +// +// * ClusterSecurityGroupNotFound +// The cluster security group name does not refer to an existing cluster security +// group. +// +// * ClusterQuotaExceeded +// The request would exceed the allowed number of cluster instances for this +// account. For information about increasing your quota, go to Limits in Amazon +// Redshift (http://docs.aws.amazon.com/redshift/latest/mgmt/amazon-redshift-limits.html) +// in the Amazon Redshift Cluster Management Guide. +// +// * NumberOfNodesQuotaExceeded +// The operation would exceed the number of nodes allotted to the account. For +// information about increasing your quota, go to Limits in Amazon Redshift +// (http://docs.aws.amazon.com/redshift/latest/mgmt/amazon-redshift-limits.html) +// in the Amazon Redshift Cluster Management Guide. +// +// * NumberOfNodesPerClusterLimitExceeded +// The operation would exceed the number of nodes allowed for a cluster. +// +// * ClusterSubnetGroupNotFoundFault +// The cluster subnet group name does not refer to an existing cluster subnet +// group. +// +// * InvalidVPCNetworkStateFault +// The cluster subnet group does not cover all Availability Zones. +// +// * InvalidClusterSubnetGroupStateFault +// The cluster subnet group cannot be deleted because it is in use. +// +// * InvalidSubnet +// The requested subnet is not valid, or not all of the subnets are in the same +// VPC. +// +// * UnauthorizedOperation +// Your account is not authorized to perform the requested operation. +// +// * HsmClientCertificateNotFoundFault +// There is no Amazon Redshift HSM client certificate with the specified identifier. +// +// * HsmConfigurationNotFoundFault +// There is no Amazon Redshift HSM configuration with the specified identifier. +// +// * InvalidElasticIpFault +// The Elastic IP (EIP) is invalid or cannot be found. +// +// * TagLimitExceededFault +// The request exceeds the limit of 10 tags for the resource. +// +// * InvalidTagFault +// The tag is invalid. +// +// * LimitExceededFault +// The encryption key has exceeded its grant limit in AWS KMS. +// +// * DependentServiceRequestThrottlingFault +// The request cannot be completed because a dependent service is throttling +// requests made by Amazon Redshift on your behalf. Wait and retry the request. +// func (c *Redshift) CreateCluster(input *CreateClusterInput) (*CreateClusterOutput, error) { req, out := c.CreateClusterRequest(input) err := req.Send() @@ -252,6 +421,8 @@ const opCreateClusterParameterGroup = "CreateClusterParameterGroup" // value can be used to capture response data after the request's "Send" method // is called. // +// See CreateClusterParameterGroup for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -286,6 +457,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 +470,30 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Redshift's +// API operation CreateClusterParameterGroup for usage and error information. +// +// Returned Error Codes: +// * ClusterParameterGroupQuotaExceeded +// The request would result in the user exceeding the allowed number of cluster +// parameter groups. For information about increasing your quota, go to Limits +// in Amazon Redshift (http://docs.aws.amazon.com/redshift/latest/mgmt/amazon-redshift-limits.html) +// in the Amazon Redshift Cluster Management Guide. +// +// * ClusterParameterGroupAlreadyExists +// A cluster parameter group with the same name already exists. +// +// * TagLimitExceededFault +// The request exceeds the limit of 10 tags for the resource. +// +// * InvalidTagFault +// The tag is invalid. +// func (c *Redshift) CreateClusterParameterGroup(input *CreateClusterParameterGroupInput) (*CreateClusterParameterGroupOutput, error) { req, out := c.CreateClusterParameterGroupRequest(input) err := req.Send() @@ -310,6 +507,8 @@ const opCreateClusterSecurityGroup = "CreateClusterSecurityGroup" // value can be used to capture response data after the request's "Send" method // is called. // +// See CreateClusterSecurityGroup for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -344,12 +543,38 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Redshift's +// API operation CreateClusterSecurityGroup for usage and error information. +// +// Returned Error Codes: +// * ClusterSecurityGroupAlreadyExists +// A cluster security group with the same name already exists. +// +// * QuotaExceeded.ClusterSecurityGroup +// The request would result in the user exceeding the allowed number of cluster +// security groups. For information about increasing your quota, go to Limits +// in Amazon Redshift (http://docs.aws.amazon.com/redshift/latest/mgmt/amazon-redshift-limits.html) +// in the Amazon Redshift Cluster Management Guide. +// +// * TagLimitExceededFault +// The request exceeds the limit of 10 tags for the resource. +// +// * InvalidTagFault +// The tag is invalid. +// func (c *Redshift) CreateClusterSecurityGroup(input *CreateClusterSecurityGroupInput) (*CreateClusterSecurityGroupOutput, error) { req, out := c.CreateClusterSecurityGroupRequest(input) err := req.Send() @@ -363,6 +588,8 @@ const opCreateClusterSnapshot = "CreateClusterSnapshot" // value can be used to capture response data after the request's "Send" method // is called. // +// See CreateClusterSnapshot for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -397,12 +624,43 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Redshift's +// API operation CreateClusterSnapshot for usage and error information. +// +// Returned Error Codes: +// * ClusterSnapshotAlreadyExists +// The value specified as a snapshot identifier is already used by an existing +// snapshot. +// +// * InvalidClusterState +// The specified cluster is not in the available state. +// +// * ClusterNotFound +// The ClusterIdentifier parameter does not refer to an existing cluster. +// +// * ClusterSnapshotQuotaExceeded +// The request would result in the user exceeding the allowed number of cluster +// snapshots. +// +// * TagLimitExceededFault +// The request exceeds the limit of 10 tags for the resource. +// +// * InvalidTagFault +// The tag is invalid. +// func (c *Redshift) CreateClusterSnapshot(input *CreateClusterSnapshotInput) (*CreateClusterSnapshotOutput, error) { req, out := c.CreateClusterSnapshotRequest(input) err := req.Send() @@ -416,6 +674,8 @@ const opCreateClusterSubnetGroup = "CreateClusterSubnetGroup" // value can be used to capture response data after the request's "Send" method // is called. // +// See CreateClusterSubnetGroup for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -450,6 +710,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 +719,47 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Redshift's +// API operation CreateClusterSubnetGroup for usage and error information. +// +// Returned Error Codes: +// * ClusterSubnetGroupAlreadyExists +// A ClusterSubnetGroupName is already used by an existing cluster subnet group. +// +// * ClusterSubnetGroupQuotaExceeded +// The request would result in user exceeding the allowed number of cluster +// subnet groups. For information about increasing your quota, go to Limits +// in Amazon Redshift (http://docs.aws.amazon.com/redshift/latest/mgmt/amazon-redshift-limits.html) +// in the Amazon Redshift Cluster Management Guide. +// +// * ClusterSubnetQuotaExceededFault +// The request would result in user exceeding the allowed number of subnets +// in a cluster subnet groups. For information about increasing your quota, +// go to Limits in Amazon Redshift (http://docs.aws.amazon.com/redshift/latest/mgmt/amazon-redshift-limits.html) +// in the Amazon Redshift Cluster Management Guide. +// +// * InvalidSubnet +// The requested subnet is not valid, or not all of the subnets are in the same +// VPC. +// +// * UnauthorizedOperation +// Your account is not authorized to perform the requested operation. +// +// * TagLimitExceededFault +// The request exceeds the limit of 10 tags for the resource. +// +// * InvalidTagFault +// The tag is invalid. +// +// * DependentServiceRequestThrottlingFault +// The request cannot be completed because a dependent service is throttling +// requests made by Amazon Redshift on your behalf. Wait and retry the request. +// func (c *Redshift) CreateClusterSubnetGroup(input *CreateClusterSubnetGroupInput) (*CreateClusterSubnetGroupOutput, error) { req, out := c.CreateClusterSubnetGroupRequest(input) err := req.Send() @@ -470,6 +773,8 @@ const opCreateEventSubscription = "CreateEventSubscription" // value can be used to capture response data after the request's "Send" method // is called. // +// See CreateEventSubscription for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -504,6 +809,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 +833,58 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Redshift's +// API operation CreateEventSubscription for usage and error information. +// +// Returned Error Codes: +// * EventSubscriptionQuotaExceeded +// The request would exceed the allowed number of event subscriptions for this +// account. For information about increasing your quota, go to Limits in Amazon +// Redshift (http://docs.aws.amazon.com/redshift/latest/mgmt/amazon-redshift-limits.html) +// in the Amazon Redshift Cluster Management Guide. +// +// * SubscriptionAlreadyExist +// There is already an existing event notification subscription with the specified +// name. +// +// * SNSInvalidTopic +// Amazon SNS has responded that there is a problem with the specified Amazon +// SNS topic. +// +// * SNSNoAuthorization +// You do not have permission to publish to the specified Amazon SNS topic. +// +// * SNSTopicArnNotFound +// An Amazon SNS topic with the specified Amazon Resource Name (ARN) does not +// exist. +// +// * SubscriptionEventIdNotFound +// An Amazon Redshift event with the specified event ID does not exist. +// +// * SubscriptionCategoryNotFound +// The value specified for the event category was not one of the allowed values, +// or it specified a category that does not apply to the specified source type. +// The allowed values are Configuration, Management, Monitoring, and Security. +// +// * SubscriptionSeverityNotFound +// The value specified for the event severity was not one of the allowed values, +// or it specified a severity that does not apply to the specified source type. +// The allowed values are ERROR and INFO. +// +// * SourceNotFound +// The specified Amazon Redshift event source could not be found. +// +// * TagLimitExceededFault +// The request exceeds the limit of 10 tags for the resource. +// +// * InvalidTagFault +// The tag is invalid. +// func (c *Redshift) CreateEventSubscription(input *CreateEventSubscriptionInput) (*CreateEventSubscriptionOutput, error) { req, out := c.CreateEventSubscriptionRequest(input) err := req.Send() @@ -539,6 +898,8 @@ const opCreateHsmClientCertificate = "CreateHsmClientCertificate" // value can be used to capture response data after the request's "Send" method // is called. // +// See CreateHsmClientCertificate for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -573,6 +934,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 +945,30 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Redshift's +// API operation CreateHsmClientCertificate for usage and error information. +// +// Returned Error Codes: +// * HsmClientCertificateAlreadyExistsFault +// There is already an existing Amazon Redshift HSM client certificate with +// the specified identifier. +// +// * HsmClientCertificateQuotaExceededFault +// The quota for HSM client certificates has been reached. For information about +// increasing your quota, go to Limits in Amazon Redshift (http://docs.aws.amazon.com/redshift/latest/mgmt/amazon-redshift-limits.html) +// in the Amazon Redshift Cluster Management Guide. +// +// * TagLimitExceededFault +// The request exceeds the limit of 10 tags for the resource. +// +// * InvalidTagFault +// The tag is invalid. +// func (c *Redshift) CreateHsmClientCertificate(input *CreateHsmClientCertificateInput) (*CreateHsmClientCertificateOutput, error) { req, out := c.CreateHsmClientCertificateRequest(input) err := req.Send() @@ -595,6 +982,8 @@ const opCreateHsmConfiguration = "CreateHsmConfiguration" // value can be used to capture response data after the request's "Send" method // is called. // +// See CreateHsmConfiguration for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -629,6 +1018,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 +1030,30 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Redshift's +// API operation CreateHsmConfiguration for usage and error information. +// +// Returned Error Codes: +// * HsmConfigurationAlreadyExistsFault +// There is already an existing Amazon Redshift HSM configuration with the specified +// identifier. +// +// * HsmConfigurationQuotaExceededFault +// The quota for HSM configurations has been reached. For information about +// increasing your quota, go to Limits in Amazon Redshift (http://docs.aws.amazon.com/redshift/latest/mgmt/amazon-redshift-limits.html) +// in the Amazon Redshift Cluster Management Guide. +// +// * TagLimitExceededFault +// The request exceeds the limit of 10 tags for the resource. +// +// * InvalidTagFault +// The tag is invalid. +// func (c *Redshift) CreateHsmConfiguration(input *CreateHsmConfigurationInput) (*CreateHsmConfigurationOutput, error) { req, out := c.CreateHsmConfigurationRequest(input) err := req.Send() @@ -652,6 +1067,8 @@ const opCreateSnapshotCopyGrant = "CreateSnapshotCopyGrant" // value can be used to capture response data after the request's "Send" method // is called. // +// See CreateSnapshotCopyGrant for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -686,6 +1103,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 +1112,36 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Redshift's +// API operation CreateSnapshotCopyGrant for usage and error information. +// +// Returned Error Codes: +// * SnapshotCopyGrantAlreadyExistsFault +// The snapshot copy grant can't be created because a grant with the same name +// already exists. +// +// * SnapshotCopyGrantQuotaExceededFault +// The AWS account has exceeded the maximum number of snapshot copy grants in +// this region. +// +// * LimitExceededFault +// The encryption key has exceeded its grant limit in AWS KMS. +// +// * TagLimitExceededFault +// The request exceeds the limit of 10 tags for the resource. +// +// * InvalidTagFault +// The tag is invalid. +// +// * DependentServiceRequestThrottlingFault +// The request cannot be completed because a dependent service is throttling +// requests made by Amazon Redshift on your behalf. Wait and retry the request. +// func (c *Redshift) CreateSnapshotCopyGrant(input *CreateSnapshotCopyGrantInput) (*CreateSnapshotCopyGrantOutput, error) { req, out := c.CreateSnapshotCopyGrantRequest(input) err := req.Send() @@ -706,6 +1155,8 @@ const opCreateTags = "CreateTags" // value can be used to capture response data after the request's "Send" method // is called. // +// See CreateTags for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -742,6 +1193,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 +1202,24 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Redshift's +// API operation CreateTags for usage and error information. +// +// Returned Error Codes: +// * TagLimitExceededFault +// The request exceeds the limit of 10 tags for the resource. +// +// * ResourceNotFoundFault +// The resource could not be found. +// +// * InvalidTagFault +// The tag is invalid. +// func (c *Redshift) CreateTags(input *CreateTagsInput) (*CreateTagsOutput, error) { req, out := c.CreateTagsRequest(input) err := req.Send() @@ -762,6 +1233,8 @@ const opDeleteCluster = "DeleteCluster" // value can be used to capture response data after the request's "Send" method // is called. // +// See DeleteCluster for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -796,6 +1269,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 +1288,29 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Redshift's +// API operation DeleteCluster for usage and error information. +// +// Returned Error Codes: +// * ClusterNotFound +// The ClusterIdentifier parameter does not refer to an existing cluster. +// +// * InvalidClusterState +// The specified cluster is not in the available state. +// +// * ClusterSnapshotAlreadyExists +// The value specified as a snapshot identifier is already used by an existing +// snapshot. +// +// * ClusterSnapshotQuotaExceeded +// The request would result in the user exceeding the allowed number of cluster +// snapshots. +// func (c *Redshift) DeleteCluster(input *DeleteClusterInput) (*DeleteClusterOutput, error) { req, out := c.DeleteClusterRequest(input) err := req.Send() @@ -826,6 +1324,8 @@ const opDeleteClusterParameterGroup = "DeleteClusterParameterGroup" // value can be used to capture response data after the request's "Send" method // is called. // +// See DeleteClusterParameterGroup for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -862,9 +1362,28 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Redshift's +// API operation DeleteClusterParameterGroup for usage and error information. +// +// Returned Error Codes: +// * InvalidClusterParameterGroupState +// The cluster parameter group action can not be completed because another task +// is in progress that involves the parameter group. Wait a few moments and +// try the operation again. +// +// * ClusterParameterGroupNotFound +// The parameter group name does not refer to an existing parameter group. +// func (c *Redshift) DeleteClusterParameterGroup(input *DeleteClusterParameterGroupInput) (*DeleteClusterParameterGroupOutput, error) { req, out := c.DeleteClusterParameterGroupRequest(input) err := req.Send() @@ -878,6 +1397,8 @@ const opDeleteClusterSecurityGroup = "DeleteClusterSecurityGroup" // value can be used to capture response data after the request's "Send" method // is called. // +// See DeleteClusterSecurityGroup for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -914,6 +1435,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 +1445,22 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Redshift's +// API operation DeleteClusterSecurityGroup for usage and error information. +// +// Returned Error Codes: +// * InvalidClusterSecurityGroupState +// The state of the cluster security group is not available. +// +// * ClusterSecurityGroupNotFound +// The cluster security group name does not refer to an existing cluster security +// group. +// func (c *Redshift) DeleteClusterSecurityGroup(input *DeleteClusterSecurityGroupInput) (*DeleteClusterSecurityGroupOutput, error) { req, out := c.DeleteClusterSecurityGroupRequest(input) err := req.Send() @@ -935,6 +1474,8 @@ const opDeleteClusterSnapshot = "DeleteClusterSnapshot" // value can be used to capture response data after the request's "Send" method // is called. // +// See DeleteClusterSnapshot for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -969,6 +1510,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 +1520,22 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Redshift's +// API operation DeleteClusterSnapshot for usage and error information. +// +// Returned Error Codes: +// * InvalidClusterSnapshotState +// The specified cluster snapshot is not in the available state, or other accounts +// are authorized to access the snapshot. +// +// * ClusterSnapshotNotFound +// The snapshot identifier does not refer to an existing cluster snapshot. +// func (c *Redshift) DeleteClusterSnapshot(input *DeleteClusterSnapshotInput) (*DeleteClusterSnapshotOutput, error) { req, out := c.DeleteClusterSnapshotRequest(input) err := req.Send() @@ -990,6 +1549,8 @@ const opDeleteClusterSubnetGroup = "DeleteClusterSubnetGroup" // value can be used to capture response data after the request's "Send" method // is called. // +// See DeleteClusterSubnetGroup for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1026,7 +1587,28 @@ func (c *Redshift) DeleteClusterSubnetGroupRequest(input *DeleteClusterSubnetGro return } +// DeleteClusterSubnetGroup API operation for Amazon Redshift. +// // Deletes the specified cluster subnet group. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Redshift's +// API operation DeleteClusterSubnetGroup for usage and error information. +// +// Returned Error Codes: +// * InvalidClusterSubnetGroupStateFault +// The cluster subnet group cannot be deleted because it is in use. +// +// * InvalidClusterSubnetStateFault +// The state of the subnet is invalid. +// +// * ClusterSubnetGroupNotFoundFault +// The cluster subnet group name does not refer to an existing cluster subnet +// group. +// func (c *Redshift) DeleteClusterSubnetGroup(input *DeleteClusterSubnetGroupInput) (*DeleteClusterSubnetGroupOutput, error) { req, out := c.DeleteClusterSubnetGroupRequest(input) err := req.Send() @@ -1040,6 +1622,8 @@ const opDeleteEventSubscription = "DeleteEventSubscription" // value can be used to capture response data after the request's "Send" method // is called. // +// See DeleteEventSubscription for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1076,7 +1660,26 @@ func (c *Redshift) DeleteEventSubscriptionRequest(input *DeleteEventSubscription return } +// DeleteEventSubscription API operation for Amazon Redshift. +// // Deletes an Amazon Redshift event notification subscription. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Redshift's +// API operation DeleteEventSubscription for usage and error information. +// +// Returned Error Codes: +// * SubscriptionNotFound +// An Amazon Redshift event notification subscription with the specified name +// does not exist. +// +// * InvalidSubscriptionStateFault +// The subscription request is invalid because it is a duplicate request. This +// subscription request is already in progress. +// func (c *Redshift) DeleteEventSubscription(input *DeleteEventSubscriptionInput) (*DeleteEventSubscriptionOutput, error) { req, out := c.DeleteEventSubscriptionRequest(input) err := req.Send() @@ -1090,6 +1693,8 @@ const opDeleteHsmClientCertificate = "DeleteHsmClientCertificate" // value can be used to capture response data after the request's "Send" method // is called. // +// See DeleteHsmClientCertificate for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1126,7 +1731,25 @@ func (c *Redshift) DeleteHsmClientCertificateRequest(input *DeleteHsmClientCerti return } +// DeleteHsmClientCertificate API operation for Amazon Redshift. +// // Deletes the specified HSM client certificate. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Redshift's +// API operation DeleteHsmClientCertificate for usage and error information. +// +// Returned Error Codes: +// * InvalidHsmClientCertificateStateFault +// The specified HSM client certificate is not in the available state, or it +// is still in use by one or more Amazon Redshift clusters. +// +// * HsmClientCertificateNotFoundFault +// There is no Amazon Redshift HSM client certificate with the specified identifier. +// func (c *Redshift) DeleteHsmClientCertificate(input *DeleteHsmClientCertificateInput) (*DeleteHsmClientCertificateOutput, error) { req, out := c.DeleteHsmClientCertificateRequest(input) err := req.Send() @@ -1140,6 +1763,8 @@ const opDeleteHsmConfiguration = "DeleteHsmConfiguration" // value can be used to capture response data after the request's "Send" method // is called. // +// See DeleteHsmConfiguration for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1176,7 +1801,25 @@ func (c *Redshift) DeleteHsmConfigurationRequest(input *DeleteHsmConfigurationIn return } +// DeleteHsmConfiguration API operation for Amazon Redshift. +// // Deletes the specified Amazon Redshift HSM configuration. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Redshift's +// API operation DeleteHsmConfiguration for usage and error information. +// +// Returned Error Codes: +// * InvalidHsmConfigurationStateFault +// The specified HSM configuration is not in the available state, or it is still +// in use by one or more Amazon Redshift clusters. +// +// * HsmConfigurationNotFoundFault +// There is no Amazon Redshift HSM configuration with the specified identifier. +// func (c *Redshift) DeleteHsmConfiguration(input *DeleteHsmConfigurationInput) (*DeleteHsmConfigurationOutput, error) { req, out := c.DeleteHsmConfigurationRequest(input) err := req.Send() @@ -1190,6 +1833,8 @@ const opDeleteSnapshotCopyGrant = "DeleteSnapshotCopyGrant" // value can be used to capture response data after the request's "Send" method // is called. // +// See DeleteSnapshotCopyGrant for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1226,7 +1871,26 @@ func (c *Redshift) DeleteSnapshotCopyGrantRequest(input *DeleteSnapshotCopyGrant return } +// DeleteSnapshotCopyGrant API operation for Amazon Redshift. +// // Deletes the specified snapshot copy grant. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Redshift's +// API operation DeleteSnapshotCopyGrant for usage and error information. +// +// Returned Error Codes: +// * InvalidSnapshotCopyGrantStateFault +// The snapshot copy grant can't be deleted because it is used by one or more +// clusters. +// +// * SnapshotCopyGrantNotFoundFault +// The specified snapshot copy grant can't be found. Make sure that the name +// is typed correctly and that the grant exists in the destination region. +// func (c *Redshift) DeleteSnapshotCopyGrant(input *DeleteSnapshotCopyGrantInput) (*DeleteSnapshotCopyGrantOutput, error) { req, out := c.DeleteSnapshotCopyGrantRequest(input) err := req.Send() @@ -1240,6 +1904,8 @@ const opDeleteTags = "DeleteTags" // value can be used to capture response data after the request's "Send" method // is called. // +// See DeleteTags for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1276,8 +1942,25 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Redshift's +// API operation DeleteTags for usage and error information. +// +// Returned Error Codes: +// * ResourceNotFoundFault +// The resource could not be found. +// +// * InvalidTagFault +// The tag is invalid. +// func (c *Redshift) DeleteTags(input *DeleteTagsInput) (*DeleteTagsOutput, error) { req, out := c.DeleteTagsRequest(input) err := req.Send() @@ -1291,6 +1974,8 @@ const opDescribeClusterParameterGroups = "DescribeClusterParameterGroups" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeClusterParameterGroups for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1331,6 +2016,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 +2037,21 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Redshift's +// API operation DescribeClusterParameterGroups for usage and error information. +// +// Returned Error Codes: +// * ClusterParameterGroupNotFound +// The parameter group name does not refer to an existing parameter group. +// +// * InvalidTagFault +// The tag is invalid. +// func (c *Redshift) DescribeClusterParameterGroups(input *DescribeClusterParameterGroupsInput) (*DescribeClusterParameterGroupsOutput, error) { req, out := c.DescribeClusterParameterGroupsRequest(input) err := req.Send() @@ -1388,6 +2090,8 @@ const opDescribeClusterParameters = "DescribeClusterParameters" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeClusterParameters for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1428,6 +2132,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 +2146,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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Redshift's +// API operation DescribeClusterParameters for usage and error information. +// +// Returned Error Codes: +// * ClusterParameterGroupNotFound +// The parameter group name does not refer to an existing parameter group. +// func (c *Redshift) DescribeClusterParameters(input *DescribeClusterParametersInput) (*DescribeClusterParametersOutput, error) { req, out := c.DescribeClusterParametersRequest(input) err := req.Send() @@ -1478,6 +2196,8 @@ const opDescribeClusterSecurityGroups = "DescribeClusterSecurityGroups" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeClusterSecurityGroups for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1518,6 +2238,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 +2257,22 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Redshift's +// API operation DescribeClusterSecurityGroups for usage and error information. +// +// Returned Error Codes: +// * ClusterSecurityGroupNotFound +// The cluster security group name does not refer to an existing cluster security +// group. +// +// * InvalidTagFault +// The tag is invalid. +// func (c *Redshift) DescribeClusterSecurityGroups(input *DescribeClusterSecurityGroupsInput) (*DescribeClusterSecurityGroupsOutput, error) { req, out := c.DescribeClusterSecurityGroupsRequest(input) err := req.Send() @@ -1573,6 +2311,8 @@ const opDescribeClusterSnapshots = "DescribeClusterSnapshots" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeClusterSnapshots for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1613,6 +2353,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 +2371,21 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Redshift's +// API operation DescribeClusterSnapshots for usage and error information. +// +// Returned Error Codes: +// * ClusterSnapshotNotFound +// The snapshot identifier does not refer to an existing cluster snapshot. +// +// * InvalidTagFault +// The tag is invalid. +// func (c *Redshift) DescribeClusterSnapshots(input *DescribeClusterSnapshotsInput) (*DescribeClusterSnapshotsOutput, error) { req, out := c.DescribeClusterSnapshotsRequest(input) err := req.Send() @@ -1667,6 +2424,8 @@ const opDescribeClusterSubnetGroups = "DescribeClusterSubnetGroups" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeClusterSubnetGroups for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1707,6 +2466,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 +2481,22 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Redshift's +// API operation DescribeClusterSubnetGroups for usage and error information. +// +// Returned Error Codes: +// * ClusterSubnetGroupNotFoundFault +// The cluster subnet group name does not refer to an existing cluster subnet +// group. +// +// * InvalidTagFault +// The tag is invalid. +// func (c *Redshift) DescribeClusterSubnetGroups(input *DescribeClusterSubnetGroupsInput) (*DescribeClusterSubnetGroupsOutput, error) { req, out := c.DescribeClusterSubnetGroupsRequest(input) err := req.Send() @@ -1758,6 +2535,8 @@ const opDescribeClusterVersions = "DescribeClusterVersions" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeClusterVersions for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1798,11 +2577,20 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Redshift's +// API operation DescribeClusterVersions for usage and error information. func (c *Redshift) DescribeClusterVersions(input *DescribeClusterVersionsInput) (*DescribeClusterVersionsOutput, error) { req, out := c.DescribeClusterVersionsRequest(input) err := req.Send() @@ -1841,6 +2629,8 @@ const opDescribeClusters = "DescribeClusters" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeClusters for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1881,6 +2671,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 +2687,21 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Redshift's +// API operation DescribeClusters for usage and error information. +// +// Returned Error Codes: +// * ClusterNotFound +// The ClusterIdentifier parameter does not refer to an existing cluster. +// +// * InvalidTagFault +// The tag is invalid. +// func (c *Redshift) DescribeClusters(input *DescribeClustersInput) (*DescribeClustersOutput, error) { req, out := c.DescribeClustersRequest(input) err := req.Send() @@ -1933,6 +2740,8 @@ const opDescribeDefaultClusterParameters = "DescribeDefaultClusterParameters" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeDefaultClusterParameters for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1973,11 +2782,20 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Redshift's +// API operation DescribeDefaultClusterParameters for usage and error information. func (c *Redshift) DescribeDefaultClusterParameters(input *DescribeDefaultClusterParametersInput) (*DescribeDefaultClusterParametersOutput, error) { req, out := c.DescribeDefaultClusterParametersRequest(input) err := req.Send() @@ -2016,6 +2834,8 @@ const opDescribeEventCategories = "DescribeEventCategories" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeEventCategories for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -2050,9 +2870,18 @@ 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). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Redshift's +// API operation DescribeEventCategories for usage and error information. func (c *Redshift) DescribeEventCategories(input *DescribeEventCategoriesInput) (*DescribeEventCategoriesOutput, error) { req, out := c.DescribeEventCategoriesRequest(input) err := req.Send() @@ -2066,6 +2895,8 @@ const opDescribeEventSubscriptions = "DescribeEventSubscriptions" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeEventSubscriptions for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -2106,9 +2937,24 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Redshift's +// API operation DescribeEventSubscriptions for usage and error information. +// +// Returned Error Codes: +// * SubscriptionNotFound +// An Amazon Redshift event notification subscription with the specified name +// does not exist. +// func (c *Redshift) DescribeEventSubscriptions(input *DescribeEventSubscriptionsInput) (*DescribeEventSubscriptionsOutput, error) { req, out := c.DescribeEventSubscriptionsRequest(input) err := req.Send() @@ -2147,6 +2993,8 @@ const opDescribeEvents = "DescribeEvents" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeEvents for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -2187,10 +3035,19 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Redshift's +// API operation DescribeEvents for usage and error information. func (c *Redshift) DescribeEvents(input *DescribeEventsInput) (*DescribeEventsOutput, error) { req, out := c.DescribeEventsRequest(input) err := req.Send() @@ -2229,6 +3086,8 @@ const opDescribeHsmClientCertificates = "DescribeHsmClientCertificates" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeHsmClientCertificates for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -2269,6 +3128,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 +3143,21 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Redshift's +// API operation DescribeHsmClientCertificates for usage and error information. +// +// Returned Error Codes: +// * HsmClientCertificateNotFoundFault +// There is no Amazon Redshift HSM client certificate with the specified identifier. +// +// * InvalidTagFault +// The tag is invalid. +// func (c *Redshift) DescribeHsmClientCertificates(input *DescribeHsmClientCertificatesInput) (*DescribeHsmClientCertificatesOutput, error) { req, out := c.DescribeHsmClientCertificatesRequest(input) err := req.Send() @@ -2320,6 +3196,8 @@ const opDescribeHsmConfigurations = "DescribeHsmConfigurations" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeHsmConfigurations for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -2360,6 +3238,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 +3253,21 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Redshift's +// API operation DescribeHsmConfigurations for usage and error information. +// +// Returned Error Codes: +// * HsmConfigurationNotFoundFault +// There is no Amazon Redshift HSM configuration with the specified identifier. +// +// * InvalidTagFault +// The tag is invalid. +// func (c *Redshift) DescribeHsmConfigurations(input *DescribeHsmConfigurationsInput) (*DescribeHsmConfigurationsOutput, error) { req, out := c.DescribeHsmConfigurationsRequest(input) err := req.Send() @@ -2411,6 +3306,8 @@ const opDescribeLoggingStatus = "DescribeLoggingStatus" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeLoggingStatus for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -2445,8 +3342,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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Redshift's +// API operation DescribeLoggingStatus for usage and error information. +// +// Returned Error Codes: +// * ClusterNotFound +// The ClusterIdentifier parameter does not refer to an existing cluster. +// func (c *Redshift) DescribeLoggingStatus(input *DescribeLoggingStatusInput) (*LoggingStatus, error) { req, out := c.DescribeLoggingStatusRequest(input) err := req.Send() @@ -2460,6 +3371,8 @@ const opDescribeOrderableClusterOptions = "DescribeOrderableClusterOptions" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeOrderableClusterOptions for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -2500,6 +3413,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 +3424,13 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Redshift's +// API operation DescribeOrderableClusterOptions for usage and error information. func (c *Redshift) DescribeOrderableClusterOptions(input *DescribeOrderableClusterOptionsInput) (*DescribeOrderableClusterOptionsOutput, error) { req, out := c.DescribeOrderableClusterOptionsRequest(input) err := req.Send() @@ -2547,6 +3469,8 @@ const opDescribeReservedNodeOfferings = "DescribeReservedNodeOfferings" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeReservedNodeOfferings for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -2587,6 +3511,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 +3523,21 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Redshift's +// API operation DescribeReservedNodeOfferings for usage and error information. +// +// Returned Error Codes: +// * ReservedNodeOfferingNotFound +// Specified offering does not exist. +// +// * UnsupportedOperation +// The requested operation isn't supported. +// func (c *Redshift) DescribeReservedNodeOfferings(input *DescribeReservedNodeOfferingsInput) (*DescribeReservedNodeOfferingsOutput, error) { req, out := c.DescribeReservedNodeOfferingsRequest(input) err := req.Send() @@ -2635,6 +3576,8 @@ const opDescribeReservedNodes = "DescribeReservedNodes" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeReservedNodes for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -2675,7 +3618,21 @@ func (c *Redshift) DescribeReservedNodesRequest(input *DescribeReservedNodesInpu return } +// DescribeReservedNodes API operation for Amazon Redshift. +// // Returns the descriptions of the reserved nodes. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Redshift's +// API operation DescribeReservedNodes for usage and error information. +// +// Returned Error Codes: +// * ReservedNodeNotFound +// The specified reserved compute node not found. +// func (c *Redshift) DescribeReservedNodes(input *DescribeReservedNodesInput) (*DescribeReservedNodesOutput, error) { req, out := c.DescribeReservedNodesRequest(input) err := req.Send() @@ -2714,6 +3671,8 @@ const opDescribeResize = "DescribeResize" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeResize for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -2748,6 +3707,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 +3716,21 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Redshift's +// API operation DescribeResize for usage and error information. +// +// Returned Error Codes: +// * ClusterNotFound +// The ClusterIdentifier parameter does not refer to an existing cluster. +// +// * ResizeNotFound +// A resize operation for the specified cluster is not found. +// func (c *Redshift) DescribeResize(input *DescribeResizeInput) (*DescribeResizeOutput, error) { req, out := c.DescribeResizeRequest(input) err := req.Send() @@ -2768,6 +3744,8 @@ const opDescribeSnapshotCopyGrants = "DescribeSnapshotCopyGrants" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeSnapshotCopyGrants for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -2802,12 +3780,30 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Redshift's +// API operation DescribeSnapshotCopyGrants for usage and error information. +// +// Returned Error Codes: +// * SnapshotCopyGrantNotFoundFault +// The specified snapshot copy grant can't be found. Make sure that the name +// is typed correctly and that the grant exists in the destination region. +// +// * InvalidTagFault +// The tag is invalid. +// func (c *Redshift) DescribeSnapshotCopyGrants(input *DescribeSnapshotCopyGrantsInput) (*DescribeSnapshotCopyGrantsOutput, error) { req, out := c.DescribeSnapshotCopyGrantsRequest(input) err := req.Send() @@ -2821,6 +3817,8 @@ const opDescribeTableRestoreStatus = "DescribeTableRestoreStatus" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeTableRestoreStatus for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -2855,11 +3853,28 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Redshift's +// API operation DescribeTableRestoreStatus for usage and error information. +// +// Returned Error Codes: +// * TableRestoreNotFoundFault +// The specified TableRestoreRequestId value was not found. +// +// * ClusterNotFound +// The ClusterIdentifier parameter does not refer to an existing cluster. +// func (c *Redshift) DescribeTableRestoreStatus(input *DescribeTableRestoreStatusInput) (*DescribeTableRestoreStatusOutput, error) { req, out := c.DescribeTableRestoreStatusRequest(input) err := req.Send() @@ -2873,6 +3888,8 @@ const opDescribeTags = "DescribeTags" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeTags for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -2907,6 +3924,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 +3950,21 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Redshift's +// API operation DescribeTags for usage and error information. +// +// Returned Error Codes: +// * ResourceNotFoundFault +// The resource could not be found. +// +// * InvalidTagFault +// The tag is invalid. +// func (c *Redshift) DescribeTags(input *DescribeTagsInput) (*DescribeTagsOutput, error) { req, out := c.DescribeTagsRequest(input) err := req.Send() @@ -2944,6 +3978,8 @@ const opDisableLogging = "DisableLogging" // value can be used to capture response data after the request's "Send" method // is called. // +// See DisableLogging for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -2978,8 +4014,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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Redshift's +// API operation DisableLogging for usage and error information. +// +// Returned Error Codes: +// * ClusterNotFound +// The ClusterIdentifier parameter does not refer to an existing cluster. +// func (c *Redshift) DisableLogging(input *DisableLoggingInput) (*LoggingStatus, error) { req, out := c.DisableLoggingRequest(input) err := req.Send() @@ -2993,6 +4043,8 @@ const opDisableSnapshotCopy = "DisableSnapshotCopy" // value can be used to capture response data after the request's "Send" method // is called. // +// See DisableSnapshotCopy for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -3027,12 +4079,35 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Redshift's +// API operation DisableSnapshotCopy for usage and error information. +// +// Returned Error Codes: +// * ClusterNotFound +// The ClusterIdentifier parameter does not refer to an existing cluster. +// +// * SnapshotCopyAlreadyDisabledFault +// The cluster already has cross-region snapshot copy disabled. +// +// * InvalidClusterState +// The specified cluster is not in the available state. +// +// * UnauthorizedOperation +// Your account is not authorized to perform the requested operation. +// func (c *Redshift) DisableSnapshotCopy(input *DisableSnapshotCopyInput) (*DisableSnapshotCopyOutput, error) { req, out := c.DisableSnapshotCopyRequest(input) err := req.Send() @@ -3046,6 +4121,8 @@ const opEnableLogging = "EnableLogging" // value can be used to capture response data after the request's "Send" method // is called. // +// See EnableLogging for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -3080,8 +4157,38 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Redshift's +// API operation EnableLogging for usage and error information. +// +// Returned Error Codes: +// * ClusterNotFound +// The ClusterIdentifier parameter does not refer to an existing cluster. +// +// * BucketNotFoundFault +// Could not find the specified S3 bucket. +// +// * InsufficientS3BucketPolicyFault +// The cluster does not have read bucket or put object permissions on the S3 +// bucket specified when enabling logging. +// +// * InvalidS3KeyPrefixFault +// The string specified for the logging S3 key prefix does not comply with the +// documented constraints. +// +// * InvalidS3BucketNameFault +// The S3 bucket name is invalid. For more information about naming rules, go +// to Bucket Restrictions and Limitations (http://docs.aws.amazon.com/AmazonS3/latest/dev/BucketRestrictions.html) +// in the Amazon Simple Storage Service (S3) Developer Guide. +// func (c *Redshift) EnableLogging(input *EnableLoggingInput) (*LoggingStatus, error) { req, out := c.EnableLoggingRequest(input) err := req.Send() @@ -3095,6 +4202,8 @@ const opEnableSnapshotCopy = "EnableSnapshotCopy" // value can be used to capture response data after the request's "Send" method // is called. // +// See EnableSnapshotCopy for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -3129,8 +4238,51 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Redshift's +// API operation EnableSnapshotCopy for usage and error information. +// +// Returned Error Codes: +// * IncompatibleOrderableOptions +// The specified options are incompatible. +// +// * InvalidClusterState +// The specified cluster is not in the available state. +// +// * ClusterNotFound +// The ClusterIdentifier parameter does not refer to an existing cluster. +// +// * CopyToRegionDisabledFault +// Cross-region snapshot copy was temporarily disabled. Try your request again. +// +// * SnapshotCopyAlreadyEnabledFault +// The cluster already has cross-region snapshot copy enabled. +// +// * UnknownSnapshotCopyRegionFault +// The specified region is incorrect or does not exist. +// +// * UnauthorizedOperation +// Your account is not authorized to perform the requested operation. +// +// * SnapshotCopyGrantNotFoundFault +// The specified snapshot copy grant can't be found. Make sure that the name +// is typed correctly and that the grant exists in the destination region. +// +// * LimitExceededFault +// The encryption key has exceeded its grant limit in AWS KMS. +// +// * DependentServiceRequestThrottlingFault +// The request cannot be completed because a dependent service is throttling +// requests made by Amazon Redshift on your behalf. Wait and retry the request. +// func (c *Redshift) EnableSnapshotCopy(input *EnableSnapshotCopyInput) (*EnableSnapshotCopyOutput, error) { req, out := c.EnableSnapshotCopyRequest(input) err := req.Send() @@ -3144,6 +4296,8 @@ const opModifyCluster = "ModifyCluster" // value can be used to capture response data after the request's "Send" method // is called. // +// See ModifyCluster for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -3178,6 +4332,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 +4345,65 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Redshift's +// API operation ModifyCluster for usage and error information. +// +// Returned Error Codes: +// * InvalidClusterState +// The specified cluster is not in the available state. +// +// * InvalidClusterSecurityGroupState +// The state of the cluster security group is not available. +// +// * ClusterNotFound +// The ClusterIdentifier parameter does not refer to an existing cluster. +// +// * NumberOfNodesQuotaExceeded +// The operation would exceed the number of nodes allotted to the account. For +// information about increasing your quota, go to Limits in Amazon Redshift +// (http://docs.aws.amazon.com/redshift/latest/mgmt/amazon-redshift-limits.html) +// in the Amazon Redshift Cluster Management Guide. +// +// * ClusterSecurityGroupNotFound +// The cluster security group name does not refer to an existing cluster security +// group. +// +// * ClusterParameterGroupNotFound +// The parameter group name does not refer to an existing parameter group. +// +// * InsufficientClusterCapacity +// The number of nodes specified exceeds the allotted capacity of the cluster. +// +// * UnsupportedOptionFault +// A request option was specified that is not supported. +// +// * UnauthorizedOperation +// Your account is not authorized to perform the requested operation. +// +// * HsmClientCertificateNotFoundFault +// There is no Amazon Redshift HSM client certificate with the specified identifier. +// +// * HsmConfigurationNotFoundFault +// There is no Amazon Redshift HSM configuration with the specified identifier. +// +// * ClusterAlreadyExists +// The account already has a cluster with the given identifier. +// +// * LimitExceededFault +// The encryption key has exceeded its grant limit in AWS KMS. +// +// * DependentServiceRequestThrottlingFault +// The request cannot be completed because a dependent service is throttling +// requests made by Amazon Redshift on your behalf. Wait and retry the request. +// +// * InvalidElasticIpFault +// The Elastic IP (EIP) is invalid or cannot be found. +// func (c *Redshift) ModifyCluster(input *ModifyClusterInput) (*ModifyClusterOutput, error) { req, out := c.ModifyClusterRequest(input) err := req.Send() @@ -3202,6 +4417,8 @@ const opModifyClusterIamRoles = "ModifyClusterIamRoles" // value can be used to capture response data after the request's "Send" method // is called. // +// See ModifyClusterIamRoles for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -3236,10 +4453,27 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Redshift's +// API operation ModifyClusterIamRoles for usage and error information. +// +// Returned Error Codes: +// * InvalidClusterState +// The specified cluster is not in the available state. +// +// * ClusterNotFound +// The ClusterIdentifier parameter does not refer to an existing cluster. +// func (c *Redshift) ModifyClusterIamRoles(input *ModifyClusterIamRolesInput) (*ModifyClusterIamRolesOutput, error) { req, out := c.ModifyClusterIamRolesRequest(input) err := req.Send() @@ -3253,6 +4487,8 @@ const opModifyClusterParameterGroup = "ModifyClusterParameterGroup" // value can be used to capture response data after the request's "Send" method // is called. // +// See ModifyClusterParameterGroup for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -3287,11 +4523,30 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Redshift's +// API operation ModifyClusterParameterGroup for usage and error information. +// +// Returned Error Codes: +// * ClusterParameterGroupNotFound +// The parameter group name does not refer to an existing parameter group. +// +// * InvalidClusterParameterGroupState +// The cluster parameter group action can not be completed because another task +// is in progress that involves the parameter group. Wait a few moments and +// try the operation again. +// func (c *Redshift) ModifyClusterParameterGroup(input *ModifyClusterParameterGroupInput) (*ClusterParameterGroupNameMessage, error) { req, out := c.ModifyClusterParameterGroupRequest(input) err := req.Send() @@ -3305,6 +4560,8 @@ const opModifyClusterSubnetGroup = "ModifyClusterSubnetGroup" // value can be used to capture response data after the request's "Send" method // is called. // +// See ModifyClusterSubnetGroup for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -3339,9 +4596,44 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Redshift's +// API operation ModifyClusterSubnetGroup for usage and error information. +// +// Returned Error Codes: +// * ClusterSubnetGroupNotFoundFault +// The cluster subnet group name does not refer to an existing cluster subnet +// group. +// +// * ClusterSubnetQuotaExceededFault +// The request would result in user exceeding the allowed number of subnets +// in a cluster subnet groups. For information about increasing your quota, +// go to Limits in Amazon Redshift (http://docs.aws.amazon.com/redshift/latest/mgmt/amazon-redshift-limits.html) +// in the Amazon Redshift Cluster Management Guide. +// +// * SubnetAlreadyInUse +// A specified subnet is already in use by another cluster. +// +// * InvalidSubnet +// The requested subnet is not valid, or not all of the subnets are in the same +// VPC. +// +// * UnauthorizedOperation +// Your account is not authorized to perform the requested operation. +// +// * DependentServiceRequestThrottlingFault +// The request cannot be completed because a dependent service is throttling +// requests made by Amazon Redshift on your behalf. Wait and retry the request. +// func (c *Redshift) ModifyClusterSubnetGroup(input *ModifyClusterSubnetGroupInput) (*ModifyClusterSubnetGroupOutput, error) { req, out := c.ModifyClusterSubnetGroupRequest(input) err := req.Send() @@ -3355,6 +4647,8 @@ const opModifyEventSubscription = "ModifyEventSubscription" // value can be used to capture response data after the request's "Send" method // is called. // +// See ModifyEventSubscription for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -3389,7 +4683,53 @@ func (c *Redshift) ModifyEventSubscriptionRequest(input *ModifyEventSubscription return } +// ModifyEventSubscription API operation for Amazon Redshift. +// // Modifies an existing Amazon Redshift event notification subscription. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Redshift's +// API operation ModifyEventSubscription for usage and error information. +// +// Returned Error Codes: +// * SubscriptionNotFound +// An Amazon Redshift event notification subscription with the specified name +// does not exist. +// +// * SNSInvalidTopic +// Amazon SNS has responded that there is a problem with the specified Amazon +// SNS topic. +// +// * SNSNoAuthorization +// You do not have permission to publish to the specified Amazon SNS topic. +// +// * SNSTopicArnNotFound +// An Amazon SNS topic with the specified Amazon Resource Name (ARN) does not +// exist. +// +// * SubscriptionEventIdNotFound +// An Amazon Redshift event with the specified event ID does not exist. +// +// * SubscriptionCategoryNotFound +// The value specified for the event category was not one of the allowed values, +// or it specified a category that does not apply to the specified source type. +// The allowed values are Configuration, Management, Monitoring, and Security. +// +// * SubscriptionSeverityNotFound +// The value specified for the event severity was not one of the allowed values, +// or it specified a severity that does not apply to the specified source type. +// The allowed values are ERROR and INFO. +// +// * SourceNotFound +// The specified Amazon Redshift event source could not be found. +// +// * InvalidSubscriptionStateFault +// The subscription request is invalid because it is a duplicate request. This +// subscription request is already in progress. +// func (c *Redshift) ModifyEventSubscription(input *ModifyEventSubscriptionInput) (*ModifyEventSubscriptionOutput, error) { req, out := c.ModifyEventSubscriptionRequest(input) err := req.Send() @@ -3403,6 +4743,8 @@ const opModifySnapshotCopyRetentionPeriod = "ModifySnapshotCopyRetentionPeriod" // value can be used to capture response data after the request's "Send" method // is called. // +// See ModifySnapshotCopyRetentionPeriod for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -3437,8 +4779,31 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Redshift's +// API operation ModifySnapshotCopyRetentionPeriod for usage and error information. +// +// Returned Error Codes: +// * ClusterNotFound +// The ClusterIdentifier parameter does not refer to an existing cluster. +// +// * SnapshotCopyDisabledFault +// Cross-region snapshot copy was temporarily disabled. Try your request again. +// +// * UnauthorizedOperation +// Your account is not authorized to perform the requested operation. +// +// * InvalidClusterState +// The specified cluster is not in the available state. +// func (c *Redshift) ModifySnapshotCopyRetentionPeriod(input *ModifySnapshotCopyRetentionPeriodInput) (*ModifySnapshotCopyRetentionPeriodOutput, error) { req, out := c.ModifySnapshotCopyRetentionPeriodRequest(input) err := req.Send() @@ -3452,6 +4817,8 @@ const opPurchaseReservedNodeOffering = "PurchaseReservedNodeOffering" // value can be used to capture response data after the request's "Send" method // is called. // +// See PurchaseReservedNodeOffering for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -3486,6 +4853,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 +4864,29 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Redshift's +// API operation PurchaseReservedNodeOffering for usage and error information. +// +// Returned Error Codes: +// * ReservedNodeOfferingNotFound +// Specified offering does not exist. +// +// * ReservedNodeAlreadyExists +// User already has a reservation with the given identifier. +// +// * ReservedNodeQuotaExceeded +// Request would exceed the user's compute node quota. For information about +// increasing your quota, go to Limits in Amazon Redshift (http://docs.aws.amazon.com/redshift/latest/mgmt/amazon-redshift-limits.html) +// in the Amazon Redshift Cluster Management Guide. +// +// * UnsupportedOperation +// The requested operation isn't supported. +// func (c *Redshift) PurchaseReservedNodeOffering(input *PurchaseReservedNodeOfferingInput) (*PurchaseReservedNodeOfferingOutput, error) { req, out := c.PurchaseReservedNodeOfferingRequest(input) err := req.Send() @@ -3508,6 +4900,8 @@ const opRebootCluster = "RebootCluster" // value can be used to capture response data after the request's "Send" method // is called. // +// See RebootCluster for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -3542,6 +4936,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 +4945,21 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Redshift's +// API operation RebootCluster for usage and error information. +// +// Returned Error Codes: +// * InvalidClusterState +// The specified cluster is not in the available state. +// +// * ClusterNotFound +// The ClusterIdentifier parameter does not refer to an existing cluster. +// func (c *Redshift) RebootCluster(input *RebootClusterInput) (*RebootClusterOutput, error) { req, out := c.RebootClusterRequest(input) err := req.Send() @@ -3562,6 +4973,8 @@ const opResetClusterParameterGroup = "ResetClusterParameterGroup" // value can be used to capture response data after the request's "Send" method // is called. // +// See ResetClusterParameterGroup for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -3596,10 +5009,29 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Redshift's +// API operation ResetClusterParameterGroup for usage and error information. +// +// Returned Error Codes: +// * InvalidClusterParameterGroupState +// The cluster parameter group action can not be completed because another task +// is in progress that involves the parameter group. Wait a few moments and +// try the operation again. +// +// * ClusterParameterGroupNotFound +// The parameter group name does not refer to an existing parameter group. +// func (c *Redshift) ResetClusterParameterGroup(input *ResetClusterParameterGroupInput) (*ClusterParameterGroupNameMessage, error) { req, out := c.ResetClusterParameterGroupRequest(input) err := req.Send() @@ -3613,6 +5045,8 @@ const opRestoreFromClusterSnapshot = "RestoreFromClusterSnapshot" // value can be used to capture response data after the request's "Send" method // is called. // +// See RestoreFromClusterSnapshot for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -3647,6 +5081,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 +5098,90 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Redshift's +// API operation RestoreFromClusterSnapshot for usage and error information. +// +// Returned Error Codes: +// * AccessToSnapshotDenied +// The owner of the specified snapshot has not authorized your account to access +// the snapshot. +// +// * ClusterAlreadyExists +// The account already has a cluster with the given identifier. +// +// * ClusterSnapshotNotFound +// The snapshot identifier does not refer to an existing cluster snapshot. +// +// * ClusterQuotaExceeded +// The request would exceed the allowed number of cluster instances for this +// account. For information about increasing your quota, go to Limits in Amazon +// Redshift (http://docs.aws.amazon.com/redshift/latest/mgmt/amazon-redshift-limits.html) +// in the Amazon Redshift Cluster Management Guide. +// +// * InsufficientClusterCapacity +// The number of nodes specified exceeds the allotted capacity of the cluster. +// +// * InvalidClusterSnapshotState +// The specified cluster snapshot is not in the available state, or other accounts +// are authorized to access the snapshot. +// +// * InvalidRestore +// The restore is invalid. +// +// * NumberOfNodesQuotaExceeded +// The operation would exceed the number of nodes allotted to the account. For +// information about increasing your quota, go to Limits in Amazon Redshift +// (http://docs.aws.amazon.com/redshift/latest/mgmt/amazon-redshift-limits.html) +// in the Amazon Redshift Cluster Management Guide. +// +// * NumberOfNodesPerClusterLimitExceeded +// The operation would exceed the number of nodes allowed for a cluster. +// +// * InvalidVPCNetworkStateFault +// The cluster subnet group does not cover all Availability Zones. +// +// * InvalidClusterSubnetGroupStateFault +// The cluster subnet group cannot be deleted because it is in use. +// +// * InvalidSubnet +// The requested subnet is not valid, or not all of the subnets are in the same +// VPC. +// +// * ClusterSubnetGroupNotFoundFault +// The cluster subnet group name does not refer to an existing cluster subnet +// group. +// +// * UnauthorizedOperation +// Your account is not authorized to perform the requested operation. +// +// * HsmClientCertificateNotFoundFault +// There is no Amazon Redshift HSM client certificate with the specified identifier. +// +// * HsmConfigurationNotFoundFault +// There is no Amazon Redshift HSM configuration with the specified identifier. +// +// * InvalidElasticIpFault +// The Elastic IP (EIP) is invalid or cannot be found. +// +// * ClusterParameterGroupNotFound +// The parameter group name does not refer to an existing parameter group. +// +// * ClusterSecurityGroupNotFound +// The cluster security group name does not refer to an existing cluster security +// group. +// +// * LimitExceededFault +// The encryption key has exceeded its grant limit in AWS KMS. +// +// * DependentServiceRequestThrottlingFault +// The request cannot be completed because a dependent service is throttling +// requests made by Amazon Redshift on your behalf. Wait and retry the request. +// func (c *Redshift) RestoreFromClusterSnapshot(input *RestoreFromClusterSnapshotInput) (*RestoreFromClusterSnapshotOutput, error) { req, out := c.RestoreFromClusterSnapshotRequest(input) err := req.Send() @@ -3675,6 +5195,8 @@ const opRestoreTableFromClusterSnapshot = "RestoreTableFromClusterSnapshot" // value can be used to capture response data after the request's "Send" method // is called. // +// See RestoreTableFromClusterSnapshot for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -3709,6 +5231,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 +5246,39 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Redshift's +// API operation RestoreTableFromClusterSnapshot for usage and error information. +// +// Returned Error Codes: +// * ClusterSnapshotNotFound +// The snapshot identifier does not refer to an existing cluster snapshot. +// +// * InProgressTableRestoreQuotaExceededFault +// You have exceeded the allowed number of table restore requests. Wait for +// your current table restore requests to complete before making a new request. +// +// * InvalidClusterSnapshotState +// The specified cluster snapshot is not in the available state, or other accounts +// are authorized to access the snapshot. +// +// * InvalidTableRestoreArgument +// The value specified for the sourceDatabaseName, sourceSchemaName, or sourceTableName +// parameter, or a combination of these, doesn't exist in the snapshot. +// +// * ClusterNotFound +// The ClusterIdentifier parameter does not refer to an existing cluster. +// +// * InvalidClusterState +// The specified cluster is not in the available state. +// +// * UnsupportedOperation +// The requested operation isn't supported. +// func (c *Redshift) RestoreTableFromClusterSnapshot(input *RestoreTableFromClusterSnapshotInput) (*RestoreTableFromClusterSnapshotOutput, error) { req, out := c.RestoreTableFromClusterSnapshotRequest(input) err := req.Send() @@ -3735,6 +5292,8 @@ const opRevokeClusterSecurityGroupIngress = "RevokeClusterSecurityGroupIngress" // value can be used to capture response data after the request's "Send" method // is called. // +// See RevokeClusterSecurityGroupIngress for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -3769,11 +5328,33 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Redshift's +// API operation RevokeClusterSecurityGroupIngress for usage and error information. +// +// Returned Error Codes: +// * ClusterSecurityGroupNotFound +// The cluster security group name does not refer to an existing cluster security +// group. +// +// * AuthorizationNotFound +// The specified CIDR IP range or EC2 security group is not authorized for the +// specified cluster security group. +// +// * InvalidClusterSecurityGroupState +// The state of the cluster security group is not available. +// func (c *Redshift) RevokeClusterSecurityGroupIngress(input *RevokeClusterSecurityGroupIngressInput) (*RevokeClusterSecurityGroupIngressOutput, error) { req, out := c.RevokeClusterSecurityGroupIngressRequest(input) err := req.Send() @@ -3787,6 +5368,8 @@ const opRevokeSnapshotAccess = "RevokeSnapshotAccess" // value can be used to capture response data after the request's "Send" method // is called. // +// See RevokeSnapshotAccess for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -3821,6 +5404,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 +5413,26 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Redshift's +// API operation RevokeSnapshotAccess for usage and error information. +// +// Returned Error Codes: +// * AccessToSnapshotDenied +// The owner of the specified snapshot has not authorized your account to access +// the snapshot. +// +// * AuthorizationNotFound +// The specified CIDR IP range or EC2 security group is not authorized for the +// specified cluster security group. +// +// * ClusterSnapshotNotFound +// The snapshot identifier does not refer to an existing cluster snapshot. +// func (c *Redshift) RevokeSnapshotAccess(input *RevokeSnapshotAccessInput) (*RevokeSnapshotAccessOutput, error) { req, out := c.RevokeSnapshotAccessRequest(input) err := req.Send() @@ -3841,6 +5446,8 @@ const opRotateEncryptionKey = "RotateEncryptionKey" // value can be used to capture response data after the request's "Send" method // is called. // +// See RotateEncryptionKey for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -3875,7 +5482,28 @@ func (c *Redshift) RotateEncryptionKeyRequest(input *RotateEncryptionKeyInput) ( return } +// RotateEncryptionKey API operation for Amazon Redshift. +// // Rotates the encryption keys for a cluster. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Redshift's +// API operation RotateEncryptionKey for usage and error information. +// +// Returned Error Codes: +// * ClusterNotFound +// The ClusterIdentifier parameter does not refer to an existing cluster. +// +// * InvalidClusterState +// The specified cluster is not in the available state. +// +// * DependentServiceRequestThrottlingFault +// The request cannot be completed because a dependent service is throttling +// requests made by Amazon Redshift on your behalf. Wait and retry the request. +// 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..5e836a2783d 100644 --- a/service/route53/api.go +++ b/service/route53/api.go @@ -18,6 +18,8 @@ const opAssociateVPCWithHostedZone = "AssociateVPCWithHostedZone" // value can be used to capture response data after the request's "Send" method // is called. // +// See AssociateVPCWithHostedZone for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -52,6 +54,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 +73,35 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Route 53's +// API operation AssociateVPCWithHostedZone for usage and error information. +// +// Returned Error Codes: +// * NoSuchHostedZone +// No hosted zone exists with the ID that you specified. +// +// * InvalidVPCId +// The hosted zone you are trying to create for your VPC_ID does not belong +// to you. Amazon Route 53 returns this error when the VPC specified by VPCId +// does not belong to you. +// +// * InvalidInput +// The input is not valid. +// +// * PublicZoneVPCAssociation +// The hosted zone specified in HostedZoneId is a public hosted zone. +// +// * ConflictingDomainExists + +// +// * LimitsExceeded +// The limits specified for a resource have been exceeded. +// func (c *Route53) AssociateVPCWithHostedZone(input *AssociateVPCWithHostedZoneInput) (*AssociateVPCWithHostedZoneOutput, error) { req, out := c.AssociateVPCWithHostedZoneRequest(input) err := req.Send() @@ -82,6 +115,8 @@ const opChangeResourceRecordSets = "ChangeResourceRecordSets" // value can be used to capture response data after the request's "Send" method // is called. // +// See ChangeResourceRecordSets for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -116,6 +151,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 +245,36 @@ func (c *Route53) ChangeResourceRecordSetsRequest(input *ChangeResourceRecordSet // resource record set being created. // // For more information on transactional changes, see ChangeResourceRecordSets. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Route 53's +// API operation ChangeResourceRecordSets for usage and error information. +// +// Returned Error Codes: +// * NoSuchHostedZone +// No hosted zone exists with the ID that you specified. +// +// * NoSuchHealthCheck +// No health check exists with the ID that you specified in the DeleteHealthCheck +// request. +// +// * InvalidChangeBatch +// This exception contains a list of messages that might contain one or more +// error messages. Each error message indicates one error in the change batch. +// +// * InvalidInput +// The input is not valid. +// +// * PriorRequestNotComplete +// If Amazon Route 53 can't process a request before the next request arrives, +// it will reject subsequent requests for the same hosted zone and return an +// HTTP 400 error (Bad request). If Amazon Route 53 returns this error repeatedly +// for the same request, we recommend that you wait, in intervals of increasing +// duration, before you try the request again. +// func (c *Route53) ChangeResourceRecordSets(input *ChangeResourceRecordSetsInput) (*ChangeResourceRecordSetsOutput, error) { req, out := c.ChangeResourceRecordSetsRequest(input) err := req.Send() @@ -221,6 +288,8 @@ const opChangeTagsForResource = "ChangeTagsForResource" // value can be used to capture response data after the request's "Send" method // is called. // +// See ChangeTagsForResource for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -255,6 +324,36 @@ func (c *Route53) ChangeTagsForResourceRequest(input *ChangeTagsForResourceInput return } +// ChangeTagsForResource API operation for Amazon Route 53. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Route 53's +// API operation ChangeTagsForResource for usage and error information. +// +// Returned Error Codes: +// * InvalidInput +// The input is not valid. +// +// * NoSuchHealthCheck +// No health check exists with the ID that you specified in the DeleteHealthCheck +// request. +// +// * NoSuchHostedZone +// No hosted zone exists with the ID that you specified. +// +// * PriorRequestNotComplete +// If Amazon Route 53 can't process a request before the next request arrives, +// it will reject subsequent requests for the same hosted zone and return an +// HTTP 400 error (Bad request). If Amazon Route 53 returns this error repeatedly +// for the same request, we recommend that you wait, in intervals of increasing +// duration, before you try the request again. +// +// * ThrottlingException + +// func (c *Route53) ChangeTagsForResource(input *ChangeTagsForResourceInput) (*ChangeTagsForResourceOutput, error) { req, out := c.ChangeTagsForResourceRequest(input) err := req.Send() @@ -268,6 +367,8 @@ const opCreateHealthCheck = "CreateHealthCheck" // value can be used to capture response data after the request's "Send" method // is called. // +// See CreateHealthCheck for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -302,6 +403,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 +437,27 @@ 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). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Route 53's +// API operation CreateHealthCheck for usage and error information. +// +// Returned Error Codes: +// * TooManyHealthChecks + +// +// * HealthCheckAlreadyExists +// The health check you're attempting to create already exists. +// +// Amazon Route 53 returns this error when a health check has already been +// created with the specified value for CallerReference. +// +// * InvalidInput +// The input is not valid. +// func (c *Route53) CreateHealthCheck(input *CreateHealthCheckInput) (*CreateHealthCheckOutput, error) { req, out := c.CreateHealthCheckRequest(input) err := req.Send() @@ -347,6 +471,8 @@ const opCreateHostedZone = "CreateHostedZone" // value can be used to capture response data after the request's "Send" method // is called. // +// See CreateHostedZone for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -381,6 +507,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 +548,52 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Route 53's +// API operation CreateHostedZone for usage and error information. +// +// Returned Error Codes: +// * InvalidDomainName +// The specified domain name is not valid. +// +// * HostedZoneAlreadyExists +// The hosted zone you are trying to create already exists. Amazon Route 53 +// returns this error when a hosted zone has already been created with the specified +// CallerReference. +// +// * TooManyHostedZones +// This hosted zone cannot be created because the hosted zone limit is exceeded. +// To request a limit increase, go to the Amazon Route 53 Contact Us (http://aws.amazon.com/route53-request/) +// page. +// +// * InvalidVPCId +// The hosted zone you are trying to create for your VPC_ID does not belong +// to you. Amazon Route 53 returns this error when the VPC specified by VPCId +// does not belong to you. +// +// * InvalidInput +// The input is not valid. +// +// * DelegationSetNotAvailable +// You can create a hosted zone that has the same name as an existing hosted +// zone (example.com is common), but there is a limit to the number of hosted +// zones that have the same name. If you get this error, Amazon Route 53 has +// reached that limit. If you own the domain name and Amazon Route 53 generates +// this error, contact Customer Support. +// +// * ConflictingDomainExists + +// +// * NoSuchDelegationSet +// A reusable delegation set with the specified ID does not exist. +// +// * DelegationSetNotReusable +// A reusable delegation set with the specified ID does not exist. +// func (c *Route53) CreateHostedZone(input *CreateHostedZoneInput) (*CreateHostedZoneOutput, error) { req, out := c.CreateHostedZoneRequest(input) err := req.Send() @@ -433,6 +607,8 @@ const opCreateReusableDelegationSet = "CreateReusableDelegationSet" // value can be used to capture response data after the request's "Send" method // is called. // +// See CreateReusableDelegationSet for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -467,6 +643,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 +658,41 @@ 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). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Route 53's +// API operation CreateReusableDelegationSet for usage and error information. +// +// Returned Error Codes: +// * DelegationSetAlreadyCreated +// A delegation set with the same owner and caller reference combination has +// already been created. +// +// * LimitsExceeded +// The limits specified for a resource have been exceeded. +// +// * HostedZoneNotFound +// The specified HostedZone cannot be found. +// +// * InvalidArgument +// Parameter name and problem. +// +// * InvalidInput +// The input is not valid. +// +// * DelegationSetNotAvailable +// You can create a hosted zone that has the same name as an existing hosted +// zone (example.com is common), but there is a limit to the number of hosted +// zones that have the same name. If you get this error, Amazon Route 53 has +// reached that limit. If you own the domain name and Amazon Route 53 generates +// this error, contact Customer Support. +// +// * DelegationSetAlreadyReusable +// The specified delegation set has already been marked as reusable. +// func (c *Route53) CreateReusableDelegationSet(input *CreateReusableDelegationSetInput) (*CreateReusableDelegationSetOutput, error) { req, out := c.CreateReusableDelegationSetRequest(input) err := req.Send() @@ -493,6 +706,8 @@ const opCreateTrafficPolicy = "CreateTrafficPolicy" // value can be used to capture response data after the request's "Send" method // is called. // +// See CreateTrafficPolicy for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -527,6 +742,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 +752,30 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Route 53's +// API operation CreateTrafficPolicy for usage and error information. +// +// Returned Error Codes: +// * InvalidInput +// The input is not valid. +// +// * TooManyTrafficPolicies +// You've created the maximum number of traffic policies that can be created +// for the current AWS account. You can request an increase to the limit on +// the Contact Us (http://aws.amazon.com/route53-request/) page. +// +// * TrafficPolicyAlreadyExists +// A traffic policy that has the same value for Name already exists. +// +// * InvalidTrafficPolicyDocument +// The format of the traffic policy document that you specified in the Document +// element is invalid. +// func (c *Route53) CreateTrafficPolicy(input *CreateTrafficPolicyInput) (*CreateTrafficPolicyOutput, error) { req, out := c.CreateTrafficPolicyRequest(input) err := req.Send() @@ -548,6 +789,8 @@ const opCreateTrafficPolicyInstance = "CreateTrafficPolicyInstance" // value can be used to capture response data after the request's "Send" method // is called. // +// See CreateTrafficPolicyInstance for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -582,6 +825,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 +838,32 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Route 53's +// API operation CreateTrafficPolicyInstance for usage and error information. +// +// Returned Error Codes: +// * NoSuchHostedZone +// No hosted zone exists with the ID that you specified. +// +// * InvalidInput +// The input is not valid. +// +// * TooManyTrafficPolicyInstances +// You've created the maximum number of traffic policy instances that can be +// created for the current AWS account. You can request an increase to the limit +// on the Contact Us (http://aws.amazon.com/route53-request/) page. +// +// * NoSuchTrafficPolicy +// No traffic policy exists with the specified ID. +// +// * TrafficPolicyInstanceAlreadyExists +// Traffic policy instance with given Id already exists. +// func (c *Route53) CreateTrafficPolicyInstance(input *CreateTrafficPolicyInstanceInput) (*CreateTrafficPolicyInstanceOutput, error) { req, out := c.CreateTrafficPolicyInstanceRequest(input) err := req.Send() @@ -606,6 +877,8 @@ const opCreateTrafficPolicyVersion = "CreateTrafficPolicyVersion" // value can be used to capture response data after the request's "Send" method // is called. // +// See CreateTrafficPolicyVersion for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -640,6 +913,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 +928,29 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Route 53's +// API operation CreateTrafficPolicyVersion for usage and error information. +// +// Returned Error Codes: +// * NoSuchTrafficPolicy +// No traffic policy exists with the specified ID. +// +// * InvalidInput +// The input is not valid. +// +// * ConcurrentModification +// Another user submitted a request to update the object at the same time that +// you did. Retry the request. +// +// * InvalidTrafficPolicyDocument +// The format of the traffic policy document that you specified in the Document +// element is invalid. +// func (c *Route53) CreateTrafficPolicyVersion(input *CreateTrafficPolicyVersionInput) (*CreateTrafficPolicyVersionOutput, error) { req, out := c.CreateTrafficPolicyVersionRequest(input) err := req.Send() @@ -666,6 +964,8 @@ const opDeleteHealthCheck = "DeleteHealthCheck" // value can be used to capture response data after the request's "Send" method // is called. // +// See DeleteHealthCheck for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -700,6 +1000,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 +1013,27 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Route 53's +// API operation DeleteHealthCheck for usage and error information. +// +// Returned Error Codes: +// * NoSuchHealthCheck +// No health check exists with the ID that you specified in the DeleteHealthCheck +// request. +// +// * HealthCheckInUse +// The health check ID for this health check is referenced in the HealthCheckId +// element in one of the resource record sets in one of the hosted zones that +// are owned by the current AWS account. +// +// * InvalidInput +// The input is not valid. +// func (c *Route53) DeleteHealthCheck(input *DeleteHealthCheckInput) (*DeleteHealthCheckOutput, error) { req, out := c.DeleteHealthCheckRequest(input) err := req.Send() @@ -724,6 +1047,8 @@ const opDeleteHostedZone = "DeleteHostedZone" // value can be used to capture response data after the request's "Send" method // is called. // +// See DeleteHostedZone for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -758,6 +1083,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 +1094,34 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Route 53's +// API operation DeleteHostedZone for usage and error information. +// +// Returned Error Codes: +// * NoSuchHostedZone +// No hosted zone exists with the ID that you specified. +// +// * HostedZoneNotEmpty +// The hosted zone contains resource records that are not SOA or NS records. +// +// * PriorRequestNotComplete +// If Amazon Route 53 can't process a request before the next request arrives, +// it will reject subsequent requests for the same hosted zone and return an +// HTTP 400 error (Bad request). If Amazon Route 53 returns this error repeatedly +// for the same request, we recommend that you wait, in intervals of increasing +// duration, before you try the request again. +// +// * InvalidInput +// The input is not valid. +// +// * InvalidDomainName +// The specified domain name is not valid. +// func (c *Route53) DeleteHostedZone(input *DeleteHostedZoneInput) (*DeleteHostedZoneOutput, error) { req, out := c.DeleteHostedZoneRequest(input) err := req.Send() @@ -780,6 +1135,8 @@ const opDeleteReusableDelegationSet = "DeleteReusableDelegationSet" // value can be used to capture response data after the request's "Send" method // is called. // +// See DeleteReusableDelegationSet for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -814,6 +1171,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 +1182,28 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Route 53's +// API operation DeleteReusableDelegationSet for usage and error information. +// +// Returned Error Codes: +// * NoSuchDelegationSet +// A reusable delegation set with the specified ID does not exist. +// +// * DelegationSetInUse +// The specified delegation contains associated hosted zones which must be deleted +// before the reusable delegation set can be deleted. +// +// * DelegationSetNotReusable +// A reusable delegation set with the specified ID does not exist. +// +// * InvalidInput +// The input is not valid. +// func (c *Route53) DeleteReusableDelegationSet(input *DeleteReusableDelegationSetInput) (*DeleteReusableDelegationSetOutput, error) { req, out := c.DeleteReusableDelegationSetRequest(input) err := req.Send() @@ -836,6 +1217,8 @@ const opDeleteTrafficPolicy = "DeleteTrafficPolicy" // value can be used to capture response data after the request's "Send" method // is called. // +// See DeleteTrafficPolicy for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -870,10 +1253,35 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Route 53's +// API operation DeleteTrafficPolicy for usage and error information. +// +// Returned Error Codes: +// * NoSuchTrafficPolicy +// No traffic policy exists with the specified ID. +// +// * InvalidInput +// The input is not valid. +// +// * TrafficPolicyInUse +// One or more traffic policy instances were created by using the specified +// traffic policy. +// +// * ConcurrentModification +// Another user submitted a request to update the object at the same time that +// you did. Retry the request. +// func (c *Route53) DeleteTrafficPolicy(input *DeleteTrafficPolicyInput) (*DeleteTrafficPolicyOutput, error) { req, out := c.DeleteTrafficPolicyRequest(input) err := req.Send() @@ -887,6 +1295,8 @@ const opDeleteTrafficPolicyInstance = "DeleteTrafficPolicyInstance" // value can be used to capture response data after the request's "Send" method // is called. // +// See DeleteTrafficPolicyInstance for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -921,6 +1331,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 +1341,28 @@ func (c *Route53) DeleteTrafficPolicyInstanceRequest(input *DeleteTrafficPolicyI // // In the Amazon Route 53 console, traffic policy instances are known as policy // records. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Route 53's +// API operation DeleteTrafficPolicyInstance for usage and error information. +// +// Returned Error Codes: +// * NoSuchTrafficPolicyInstance +// No traffic policy instance exists with the specified ID. +// +// * InvalidInput +// The input is not valid. +// +// * PriorRequestNotComplete +// If Amazon Route 53 can't process a request before the next request arrives, +// it will reject subsequent requests for the same hosted zone and return an +// HTTP 400 error (Bad request). If Amazon Route 53 returns this error repeatedly +// for the same request, we recommend that you wait, in intervals of increasing +// duration, before you try the request again. +// func (c *Route53) DeleteTrafficPolicyInstance(input *DeleteTrafficPolicyInstanceInput) (*DeleteTrafficPolicyInstanceOutput, error) { req, out := c.DeleteTrafficPolicyInstanceRequest(input) err := req.Send() @@ -942,6 +1376,8 @@ const opDisassociateVPCFromHostedZone = "DisassociateVPCFromHostedZone" // value can be used to capture response data after the request's "Send" method // is called. // +// See DisassociateVPCFromHostedZone for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -976,6 +1412,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 +1424,34 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Route 53's +// API operation DisassociateVPCFromHostedZone for usage and error information. +// +// Returned Error Codes: +// * NoSuchHostedZone +// No hosted zone exists with the ID that you specified. +// +// * InvalidVPCId +// The hosted zone you are trying to create for your VPC_ID does not belong +// to you. Amazon Route 53 returns this error when the VPC specified by VPCId +// does not belong to you. +// +// * VPCAssociationNotFound +// The specified VPC and hosted zone are not currently associated. +// +// * LastVPCAssociation +// Only one VPC is currently associated with the hosted zone. You cannot convert +// a private hosted zone into a public hosted zone by disassociating the last +// VPC from a hosted zone. +// +// * InvalidInput +// The input is not valid. +// func (c *Route53) DisassociateVPCFromHostedZone(input *DisassociateVPCFromHostedZoneInput) (*DisassociateVPCFromHostedZoneOutput, error) { req, out := c.DisassociateVPCFromHostedZoneRequest(input) err := req.Send() @@ -999,6 +1465,8 @@ const opGetChange = "GetChange" // value can be used to capture response data after the request's "Send" method // is called. // +// See GetChange for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1033,6 +1501,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 +1512,21 @@ func (c *Route53) GetChangeRequest(input *GetChangeInput) (req *request.Request, // // INSYNC indicates that the changes have replicated to all Amazon Route // 53 DNS servers. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Route 53's +// API operation GetChange for usage and error information. +// +// Returned Error Codes: +// * NoSuchChange + +// +// * InvalidInput +// The input is not valid. +// func (c *Route53) GetChange(input *GetChangeInput) (*GetChangeOutput, error) { req, out := c.GetChangeRequest(input) err := req.Send() @@ -1055,6 +1540,8 @@ const opGetChangeDetails = "GetChangeDetails" // value can be used to capture response data after the request's "Send" method // is called. // +// See GetChangeDetails for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1092,7 +1579,24 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Route 53's +// API operation GetChangeDetails for usage and error information. +// +// Returned Error Codes: +// * NoSuchChange + +// +// * InvalidInput +// The input is not valid. +// func (c *Route53) GetChangeDetails(input *GetChangeDetailsInput) (*GetChangeDetailsOutput, error) { req, out := c.GetChangeDetailsRequest(input) err := req.Send() @@ -1106,6 +1610,8 @@ const opGetCheckerIpRanges = "GetCheckerIpRanges" // value can be used to capture response data after the request's "Send" method // is called. // +// See GetCheckerIpRanges for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1140,11 +1646,20 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Route 53's +// API operation GetCheckerIpRanges for usage and error information. func (c *Route53) GetCheckerIpRanges(input *GetCheckerIpRangesInput) (*GetCheckerIpRangesOutput, error) { req, out := c.GetCheckerIpRangesRequest(input) err := req.Send() @@ -1158,6 +1673,8 @@ const opGetGeoLocation = "GetGeoLocation" // value can be used to capture response data after the request's "Send" method // is called. // +// See GetGeoLocation for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1192,9 +1709,26 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Route 53's +// API operation GetGeoLocation for usage and error information. +// +// Returned Error Codes: +// * NoSuchGeoLocation +// Amazon Route 53 doesn't support the specified geolocation. +// +// * InvalidInput +// The input is not valid. +// func (c *Route53) GetGeoLocation(input *GetGeoLocationInput) (*GetGeoLocationOutput, error) { req, out := c.GetGeoLocationRequest(input) err := req.Send() @@ -1208,6 +1742,8 @@ const opGetHealthCheck = "GetHealthCheck" // value can be used to capture response data after the request's "Send" method // is called. // +// See GetHealthCheck for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1242,11 +1778,33 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Route 53's +// API operation GetHealthCheck for usage and error information. +// +// Returned Error Codes: +// * NoSuchHealthCheck +// No health check exists with the ID that you specified in the DeleteHealthCheck +// request. +// +// * InvalidInput +// The input is not valid. +// +// * IncompatibleVersion +// The resource you are trying to access is unsupported on this Amazon Route +// 53 endpoint. Please consider using a newer endpoint or a tool that does so. +// func (c *Route53) GetHealthCheck(input *GetHealthCheckInput) (*GetHealthCheckOutput, error) { req, out := c.GetHealthCheckRequest(input) err := req.Send() @@ -1260,6 +1818,8 @@ const opGetHealthCheckCount = "GetHealthCheckCount" // value can be used to capture response data after the request's "Send" method // is called. // +// See GetHealthCheckCount for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1294,8 +1854,17 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Route 53's +// API operation GetHealthCheckCount for usage and error information. func (c *Route53) GetHealthCheckCount(input *GetHealthCheckCountInput) (*GetHealthCheckCountOutput, error) { req, out := c.GetHealthCheckCountRequest(input) err := req.Send() @@ -1309,6 +1878,8 @@ const opGetHealthCheckLastFailureReason = "GetHealthCheckLastFailureReason" // value can be used to capture response data after the request's "Send" method // is called. // +// See GetHealthCheckLastFailureReason for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1343,10 +1914,28 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Route 53's +// API operation GetHealthCheckLastFailureReason for usage and error information. +// +// Returned Error Codes: +// * NoSuchHealthCheck +// No health check exists with the ID that you specified in the DeleteHealthCheck +// request. +// +// * InvalidInput +// The input is not valid. +// func (c *Route53) GetHealthCheckLastFailureReason(input *GetHealthCheckLastFailureReasonInput) (*GetHealthCheckLastFailureReasonOutput, error) { req, out := c.GetHealthCheckLastFailureReasonRequest(input) err := req.Send() @@ -1360,6 +1949,8 @@ const opGetHealthCheckStatus = "GetHealthCheckStatus" // value can be used to capture response data after the request's "Send" method // is called. // +// See GetHealthCheckStatus for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1394,9 +1985,27 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Route 53's +// API operation GetHealthCheckStatus for usage and error information. +// +// Returned Error Codes: +// * NoSuchHealthCheck +// No health check exists with the ID that you specified in the DeleteHealthCheck +// request. +// +// * InvalidInput +// The input is not valid. +// func (c *Route53) GetHealthCheckStatus(input *GetHealthCheckStatusInput) (*GetHealthCheckStatusOutput, error) { req, out := c.GetHealthCheckStatusRequest(input) err := req.Send() @@ -1410,6 +2019,8 @@ const opGetHostedZone = "GetHostedZone" // value can be used to capture response data after the request's "Send" method // is called. // +// See GetHostedZone for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1444,9 +2055,26 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Route 53's +// API operation GetHostedZone for usage and error information. +// +// Returned Error Codes: +// * NoSuchHostedZone +// No hosted zone exists with the ID that you specified. +// +// * InvalidInput +// The input is not valid. +// func (c *Route53) GetHostedZone(input *GetHostedZoneInput) (*GetHostedZoneOutput, error) { req, out := c.GetHostedZoneRequest(input) err := req.Send() @@ -1460,6 +2088,8 @@ const opGetHostedZoneCount = "GetHostedZoneCount" // value can be used to capture response data after the request's "Send" method // is called. // +// See GetHostedZoneCount for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1494,8 +2124,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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Route 53's +// API operation GetHostedZoneCount for usage and error information. +// +// Returned Error Codes: +// * InvalidInput +// The input is not valid. +// func (c *Route53) GetHostedZoneCount(input *GetHostedZoneCountInput) (*GetHostedZoneCountOutput, error) { req, out := c.GetHostedZoneCountRequest(input) err := req.Send() @@ -1509,6 +2153,8 @@ const opGetReusableDelegationSet = "GetReusableDelegationSet" // value can be used to capture response data after the request's "Send" method // is called. // +// See GetReusableDelegationSet for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1543,8 +2189,28 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Route 53's +// API operation GetReusableDelegationSet for usage and error information. +// +// Returned Error Codes: +// * NoSuchDelegationSet +// A reusable delegation set with the specified ID does not exist. +// +// * DelegationSetNotReusable +// A reusable delegation set with the specified ID does not exist. +// +// * InvalidInput +// The input is not valid. +// func (c *Route53) GetReusableDelegationSet(input *GetReusableDelegationSetInput) (*GetReusableDelegationSetOutput, error) { req, out := c.GetReusableDelegationSetRequest(input) err := req.Send() @@ -1558,6 +2224,8 @@ const opGetTrafficPolicy = "GetTrafficPolicy" // value can be used to capture response data after the request's "Send" method // is called. // +// See GetTrafficPolicy for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1592,9 +2260,26 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Route 53's +// API operation GetTrafficPolicy for usage and error information. +// +// Returned Error Codes: +// * NoSuchTrafficPolicy +// No traffic policy exists with the specified ID. +// +// * InvalidInput +// The input is not valid. +// func (c *Route53) GetTrafficPolicy(input *GetTrafficPolicyInput) (*GetTrafficPolicyOutput, error) { req, out := c.GetTrafficPolicyRequest(input) err := req.Send() @@ -1608,6 +2293,8 @@ const opGetTrafficPolicyInstance = "GetTrafficPolicyInstance" // value can be used to capture response data after the request's "Send" method // is called. // +// See GetTrafficPolicyInstance for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1642,6 +2329,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 +2343,21 @@ func (c *Route53) GetTrafficPolicyInstanceRequest(input *GetTrafficPolicyInstanc // // In the Amazon Route 53 console, traffic policy instances are known as // policy records. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Route 53's +// API operation GetTrafficPolicyInstance for usage and error information. +// +// Returned Error Codes: +// * NoSuchTrafficPolicyInstance +// No traffic policy instance exists with the specified ID. +// +// * InvalidInput +// The input is not valid. +// func (c *Route53) GetTrafficPolicyInstance(input *GetTrafficPolicyInstanceInput) (*GetTrafficPolicyInstanceOutput, error) { req, out := c.GetTrafficPolicyInstanceRequest(input) err := req.Send() @@ -1667,6 +2371,8 @@ const opGetTrafficPolicyInstanceCount = "GetTrafficPolicyInstanceCount" // value can be used to capture response data after the request's "Send" method // is called. // +// See GetTrafficPolicyInstanceCount for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1701,11 +2407,20 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Route 53's +// API operation GetTrafficPolicyInstanceCount for usage and error information. func (c *Route53) GetTrafficPolicyInstanceCount(input *GetTrafficPolicyInstanceCountInput) (*GetTrafficPolicyInstanceCountOutput, error) { req, out := c.GetTrafficPolicyInstanceCountRequest(input) err := req.Send() @@ -1719,6 +2434,8 @@ const opListChangeBatchesByHostedZone = "ListChangeBatchesByHostedZone" // value can be used to capture response data after the request's "Send" method // is called. // +// See ListChangeBatchesByHostedZone for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1756,8 +2473,25 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Route 53's +// API operation ListChangeBatchesByHostedZone for usage and error information. +// +// Returned Error Codes: +// * NoSuchHostedZone +// No hosted zone exists with the ID that you specified. +// +// * InvalidInput +// The input is not valid. +// func (c *Route53) ListChangeBatchesByHostedZone(input *ListChangeBatchesByHostedZoneInput) (*ListChangeBatchesByHostedZoneOutput, error) { req, out := c.ListChangeBatchesByHostedZoneRequest(input) err := req.Send() @@ -1771,6 +2505,8 @@ const opListChangeBatchesByRRSet = "ListChangeBatchesByRRSet" // value can be used to capture response data after the request's "Send" method // is called. // +// See ListChangeBatchesByRRSet for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1808,8 +2544,25 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Route 53's +// API operation ListChangeBatchesByRRSet for usage and error information. +// +// Returned Error Codes: +// * NoSuchHostedZone +// No hosted zone exists with the ID that you specified. +// +// * InvalidInput +// The input is not valid. +// func (c *Route53) ListChangeBatchesByRRSet(input *ListChangeBatchesByRRSetInput) (*ListChangeBatchesByRRSetOutput, error) { req, out := c.ListChangeBatchesByRRSetRequest(input) err := req.Send() @@ -1823,6 +2576,8 @@ const opListGeoLocations = "ListGeoLocations" // value can be used to capture response data after the request's "Send" method // is called. // +// See ListGeoLocations for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1857,6 +2612,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 +2622,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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Route 53's +// API operation ListGeoLocations for usage and error information. +// +// Returned Error Codes: +// * InvalidInput +// The input is not valid. +// func (c *Route53) ListGeoLocations(input *ListGeoLocationsInput) (*ListGeoLocationsOutput, error) { req, out := c.ListGeoLocationsRequest(input) err := req.Send() @@ -1878,6 +2647,8 @@ const opListHealthChecks = "ListHealthChecks" // value can be used to capture response data after the request's "Send" method // is called. // +// See ListHealthChecks for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1918,6 +2689,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 +2700,22 @@ 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). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Route 53's +// API operation ListHealthChecks for usage and error information. +// +// Returned Error Codes: +// * InvalidInput +// The input is not valid. +// +// * IncompatibleVersion +// The resource you are trying to access is unsupported on this Amazon Route +// 53 endpoint. Please consider using a newer endpoint or a tool that does so. +// func (c *Route53) ListHealthChecks(input *ListHealthChecksInput) (*ListHealthChecksOutput, error) { req, out := c.ListHealthChecksRequest(input) err := req.Send() @@ -1965,6 +2754,8 @@ const opListHostedZones = "ListHostedZones" // value can be used to capture response data after the request's "Send" method // is called. // +// See ListHostedZones for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -2005,6 +2796,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 +2824,24 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Route 53's +// API operation ListHostedZones for usage and error information. +// +// Returned Error Codes: +// * InvalidInput +// The input is not valid. +// +// * NoSuchDelegationSet +// A reusable delegation set with the specified ID does not exist. +// +// * DelegationSetNotReusable +// A reusable delegation set with the specified ID does not exist. +// func (c *Route53) ListHostedZones(input *ListHostedZonesInput) (*ListHostedZonesOutput, error) { req, out := c.ListHostedZonesRequest(input) err := req.Send() @@ -2069,6 +2880,8 @@ const opListHostedZonesByName = "ListHostedZonesByName" // value can be used to capture response data after the request's "Send" method // is called. // +// See ListHostedZonesByName for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -2103,6 +2916,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 +2968,21 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Route 53's +// API operation ListHostedZonesByName for usage and error information. +// +// Returned Error Codes: +// * InvalidInput +// The input is not valid. +// +// * InvalidDomainName +// The specified domain name is not valid. +// func (c *Route53) ListHostedZonesByName(input *ListHostedZonesByNameInput) (*ListHostedZonesByNameOutput, error) { req, out := c.ListHostedZonesByNameRequest(input) err := req.Send() @@ -2166,6 +2996,8 @@ const opListResourceRecordSets = "ListResourceRecordSets" // value can be used to capture response data after the request's "Send" method // is called. // +// See ListResourceRecordSets for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -2206,6 +3038,22 @@ func (c *Route53) ListResourceRecordSetsRequest(input *ListResourceRecordSetsInp return } +// ListResourceRecordSets API operation for Amazon Route 53. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Route 53's +// API operation ListResourceRecordSets for usage and error information. +// +// Returned Error Codes: +// * NoSuchHostedZone +// No hosted zone exists with the ID that you specified. +// +// * InvalidInput +// The input is not valid. +// func (c *Route53) ListResourceRecordSets(input *ListResourceRecordSetsInput) (*ListResourceRecordSetsOutput, error) { req, out := c.ListResourceRecordSetsRequest(input) err := req.Send() @@ -2244,6 +3092,8 @@ const opListReusableDelegationSets = "ListReusableDelegationSets" // value can be used to capture response data after the request's "Send" method // is called. // +// See ListReusableDelegationSets for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -2278,6 +3128,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 +3140,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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Route 53's +// API operation ListReusableDelegationSets for usage and error information. +// +// Returned Error Codes: +// * InvalidInput +// The input is not valid. +// func (c *Route53) ListReusableDelegationSets(input *ListReusableDelegationSetsInput) (*ListReusableDelegationSetsOutput, error) { req, out := c.ListReusableDelegationSetsRequest(input) err := req.Send() @@ -2301,6 +3165,8 @@ const opListTagsForResource = "ListTagsForResource" // value can be used to capture response data after the request's "Send" method // is called. // +// See ListTagsForResource for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -2335,6 +3201,36 @@ func (c *Route53) ListTagsForResourceRequest(input *ListTagsForResourceInput) (r return } +// ListTagsForResource API operation for Amazon Route 53. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Route 53's +// API operation ListTagsForResource for usage and error information. +// +// Returned Error Codes: +// * InvalidInput +// The input is not valid. +// +// * NoSuchHealthCheck +// No health check exists with the ID that you specified in the DeleteHealthCheck +// request. +// +// * NoSuchHostedZone +// No hosted zone exists with the ID that you specified. +// +// * PriorRequestNotComplete +// If Amazon Route 53 can't process a request before the next request arrives, +// it will reject subsequent requests for the same hosted zone and return an +// HTTP 400 error (Bad request). If Amazon Route 53 returns this error repeatedly +// for the same request, we recommend that you wait, in intervals of increasing +// duration, before you try the request again. +// +// * ThrottlingException + +// func (c *Route53) ListTagsForResource(input *ListTagsForResourceInput) (*ListTagsForResourceOutput, error) { req, out := c.ListTagsForResourceRequest(input) err := req.Send() @@ -2348,6 +3244,8 @@ const opListTagsForResources = "ListTagsForResources" // value can be used to capture response data after the request's "Send" method // is called. // +// See ListTagsForResources for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -2382,6 +3280,36 @@ func (c *Route53) ListTagsForResourcesRequest(input *ListTagsForResourcesInput) return } +// ListTagsForResources API operation for Amazon Route 53. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Route 53's +// API operation ListTagsForResources for usage and error information. +// +// Returned Error Codes: +// * InvalidInput +// The input is not valid. +// +// * NoSuchHealthCheck +// No health check exists with the ID that you specified in the DeleteHealthCheck +// request. +// +// * NoSuchHostedZone +// No hosted zone exists with the ID that you specified. +// +// * PriorRequestNotComplete +// If Amazon Route 53 can't process a request before the next request arrives, +// it will reject subsequent requests for the same hosted zone and return an +// HTTP 400 error (Bad request). If Amazon Route 53 returns this error repeatedly +// for the same request, we recommend that you wait, in intervals of increasing +// duration, before you try the request again. +// +// * ThrottlingException + +// func (c *Route53) ListTagsForResources(input *ListTagsForResourcesInput) (*ListTagsForResourcesOutput, error) { req, out := c.ListTagsForResourcesRequest(input) err := req.Send() @@ -2395,6 +3323,8 @@ const opListTrafficPolicies = "ListTrafficPolicies" // value can be used to capture response data after the request's "Send" method // is called. // +// See ListTrafficPolicies for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -2429,6 +3359,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 +3395,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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Route 53's +// API operation ListTrafficPolicies for usage and error information. +// +// Returned Error Codes: +// * InvalidInput +// The input is not valid. +// func (c *Route53) ListTrafficPolicies(input *ListTrafficPoliciesInput) (*ListTrafficPoliciesOutput, error) { req, out := c.ListTrafficPoliciesRequest(input) err := req.Send() @@ -2476,6 +3420,8 @@ const opListTrafficPolicyInstances = "ListTrafficPolicyInstances" // value can be used to capture response data after the request's "Send" method // is called. // +// See ListTrafficPolicyInstances for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -2510,6 +3456,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 +3497,21 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Route 53's +// API operation ListTrafficPolicyInstances for usage and error information. +// +// Returned Error Codes: +// * InvalidInput +// The input is not valid. +// +// * NoSuchTrafficPolicyInstance +// No traffic policy instance exists with the specified ID. +// func (c *Route53) ListTrafficPolicyInstances(input *ListTrafficPolicyInstancesInput) (*ListTrafficPolicyInstancesOutput, error) { req, out := c.ListTrafficPolicyInstancesRequest(input) err := req.Send() @@ -2562,6 +3525,8 @@ const opListTrafficPolicyInstancesByHostedZone = "ListTrafficPolicyInstancesByHo // value can be used to capture response data after the request's "Send" method // is called. // +// See ListTrafficPolicyInstancesByHostedZone for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -2596,6 +3561,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 +3602,24 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Route 53's +// API operation ListTrafficPolicyInstancesByHostedZone for usage and error information. +// +// Returned Error Codes: +// * InvalidInput +// The input is not valid. +// +// * NoSuchTrafficPolicyInstance +// No traffic policy instance exists with the specified ID. +// +// * NoSuchHostedZone +// No hosted zone exists with the ID that you specified. +// func (c *Route53) ListTrafficPolicyInstancesByHostedZone(input *ListTrafficPolicyInstancesByHostedZoneInput) (*ListTrafficPolicyInstancesByHostedZoneOutput, error) { req, out := c.ListTrafficPolicyInstancesByHostedZoneRequest(input) err := req.Send() @@ -2648,6 +3633,8 @@ const opListTrafficPolicyInstancesByPolicy = "ListTrafficPolicyInstancesByPolicy // value can be used to capture response data after the request's "Send" method // is called. // +// See ListTrafficPolicyInstancesByPolicy for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -2682,6 +3669,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 +3710,24 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Route 53's +// API operation ListTrafficPolicyInstancesByPolicy for usage and error information. +// +// Returned Error Codes: +// * InvalidInput +// The input is not valid. +// +// * NoSuchTrafficPolicyInstance +// No traffic policy instance exists with the specified ID. +// +// * NoSuchTrafficPolicy +// No traffic policy exists with the specified ID. +// func (c *Route53) ListTrafficPolicyInstancesByPolicy(input *ListTrafficPolicyInstancesByPolicyInput) (*ListTrafficPolicyInstancesByPolicyOutput, error) { req, out := c.ListTrafficPolicyInstancesByPolicyRequest(input) err := req.Send() @@ -2734,6 +3741,8 @@ const opListTrafficPolicyVersions = "ListTrafficPolicyVersions" // value can be used to capture response data after the request's "Send" method // is called. // +// See ListTrafficPolicyVersions for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -2768,6 +3777,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 +3813,21 @@ func (c *Route53) ListTrafficPolicyVersionsRequest(input *ListTrafficPolicyVersi // // The value that you specified for the MaxItems parameter in the request that // produced the current response. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Route 53's +// API operation ListTrafficPolicyVersions for usage and error information. +// +// Returned Error Codes: +// * InvalidInput +// The input is not valid. +// +// * NoSuchTrafficPolicy +// No traffic policy exists with the specified ID. +// func (c *Route53) ListTrafficPolicyVersions(input *ListTrafficPolicyVersionsInput) (*ListTrafficPolicyVersionsOutput, error) { req, out := c.ListTrafficPolicyVersionsRequest(input) err := req.Send() @@ -2815,6 +3841,8 @@ const opTestDNSAnswer = "TestDNSAnswer" // value can be used to capture response data after the request's "Send" method // is called. // +// See TestDNSAnswer for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -2849,6 +3877,22 @@ func (c *Route53) TestDNSAnswerRequest(input *TestDNSAnswerInput) (req *request. return } +// TestDNSAnswer API operation for Amazon Route 53. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Route 53's +// API operation TestDNSAnswer for usage and error information. +// +// Returned Error Codes: +// * NoSuchHostedZone +// No hosted zone exists with the ID that you specified. +// +// * InvalidInput +// The input is not valid. +// func (c *Route53) TestDNSAnswer(input *TestDNSAnswerInput) (*TestDNSAnswerOutput, error) { req, out := c.TestDNSAnswerRequest(input) err := req.Send() @@ -2862,6 +3906,8 @@ const opUpdateHealthCheck = "UpdateHealthCheck" // value can be used to capture response data after the request's "Send" method // is called. // +// See UpdateHealthCheck for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -2896,6 +3942,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 +3951,25 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Route 53's +// API operation UpdateHealthCheck for usage and error information. +// +// Returned Error Codes: +// * NoSuchHealthCheck +// No health check exists with the ID that you specified in the DeleteHealthCheck +// request. +// +// * InvalidInput +// The input is not valid. +// +// * HealthCheckVersionMismatch + +// func (c *Route53) UpdateHealthCheck(input *UpdateHealthCheckInput) (*UpdateHealthCheckOutput, error) { req, out := c.UpdateHealthCheckRequest(input) err := req.Send() @@ -2916,6 +3983,8 @@ const opUpdateHostedZoneComment = "UpdateHostedZoneComment" // value can be used to capture response data after the request's "Send" method // is called. // +// See UpdateHostedZoneComment for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -2950,8 +4019,25 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Route 53's +// API operation UpdateHostedZoneComment for usage and error information. +// +// Returned Error Codes: +// * NoSuchHostedZone +// No hosted zone exists with the ID that you specified. +// +// * InvalidInput +// The input is not valid. +// func (c *Route53) UpdateHostedZoneComment(input *UpdateHostedZoneCommentInput) (*UpdateHostedZoneCommentOutput, error) { req, out := c.UpdateHostedZoneCommentRequest(input) err := req.Send() @@ -2965,6 +4051,8 @@ const opUpdateTrafficPolicyComment = "UpdateTrafficPolicyComment" // value can be used to capture response data after the request's "Send" method // is called. // +// See UpdateTrafficPolicyComment for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -2999,12 +4087,33 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Route 53's +// API operation UpdateTrafficPolicyComment for usage and error information. +// +// Returned Error Codes: +// * InvalidInput +// The input is not valid. +// +// * NoSuchTrafficPolicy +// No traffic policy exists with the specified ID. +// +// * ConcurrentModification +// Another user submitted a request to update the object at the same time that +// you did. Retry the request. +// func (c *Route53) UpdateTrafficPolicyComment(input *UpdateTrafficPolicyCommentInput) (*UpdateTrafficPolicyCommentOutput, error) { req, out := c.UpdateTrafficPolicyCommentRequest(input) err := req.Send() @@ -3018,6 +4127,8 @@ const opUpdateTrafficPolicyInstance = "UpdateTrafficPolicyInstance" // value can be used to capture response data after the request's "Send" method // is called. // +// See UpdateTrafficPolicyInstance for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -3052,6 +4163,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 +4188,36 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Route 53's +// API operation UpdateTrafficPolicyInstance for usage and error information. +// +// Returned Error Codes: +// * InvalidInput +// The input is not valid. +// +// * NoSuchTrafficPolicy +// No traffic policy exists with the specified ID. +// +// * NoSuchTrafficPolicyInstance +// No traffic policy instance exists with the specified ID. +// +// * PriorRequestNotComplete +// If Amazon Route 53 can't process a request before the next request arrives, +// it will reject subsequent requests for the same hosted zone and return an +// HTTP 400 error (Bad request). If Amazon Route 53 returns this error repeatedly +// for the same request, we recommend that you wait, in intervals of increasing +// duration, before you try the request again. +// +// * ConflictingTypes +// You tried to update a traffic policy instance by using a traffic policy version +// that has a different DNS type than the current type for the instance. You +// specified the type in the JSON document in the CreateTrafficPolicy or CreateTrafficPolicyVersionrequest. +// 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..90bd2955ad5 100644 --- a/service/route53domains/api.go +++ b/service/route53domains/api.go @@ -18,6 +18,8 @@ const opCheckDomainAvailability = "CheckDomainAvailability" // value can be used to capture response data after the request's "Send" method // is called. // +// See CheckDomainAvailability for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -52,9 +54,28 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Route 53 Domains's +// API operation CheckDomainAvailability for usage and error information. +// +// Returned Error Codes: +// * InvalidInput +// The requested item is not acceptable. For example, for an OperationId it +// may refer to the ID of an operation that is already completed. For a domain +// name, it may not be a valid domain name or belong to the requester account. +// +// * UnsupportedTLD +// Amazon Route 53 does not support this top-level domain. +// func (c *Route53Domains) CheckDomainAvailability(input *CheckDomainAvailabilityInput) (*CheckDomainAvailabilityOutput, error) { req, out := c.CheckDomainAvailabilityRequest(input) err := req.Send() @@ -68,6 +89,8 @@ const opDeleteTagsForDomain = "DeleteTagsForDomain" // value can be used to capture response data after the request's "Send" method // is called. // +// See DeleteTagsForDomain for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -102,10 +125,33 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Route 53 Domains's +// API operation DeleteTagsForDomain for usage and error information. +// +// Returned Error Codes: +// * InvalidInput +// The requested item is not acceptable. For example, for an OperationId it +// may refer to the ID of an operation that is already completed. For a domain +// name, it may not be a valid domain name or belong to the requester account. +// +// * OperationLimitExceeded +// The number of operations or jobs running exceeded the allowed threshold for +// the account. +// +// * UnsupportedTLD +// Amazon Route 53 does not support this top-level domain. +// func (c *Route53Domains) DeleteTagsForDomain(input *DeleteTagsForDomainInput) (*DeleteTagsForDomainOutput, error) { req, out := c.DeleteTagsForDomainRequest(input) err := req.Send() @@ -119,6 +165,8 @@ const opDisableDomainAutoRenew = "DisableDomainAutoRenew" // value can be used to capture response data after the request's "Send" method // is called. // +// See DisableDomainAutoRenew for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -153,8 +201,27 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Route 53 Domains's +// API operation DisableDomainAutoRenew for usage and error information. +// +// Returned Error Codes: +// * InvalidInput +// The requested item is not acceptable. For example, for an OperationId it +// may refer to the ID of an operation that is already completed. For a domain +// name, it may not be a valid domain name or belong to the requester account. +// +// * UnsupportedTLD +// Amazon Route 53 does not support this top-level domain. +// func (c *Route53Domains) DisableDomainAutoRenew(input *DisableDomainAutoRenewInput) (*DisableDomainAutoRenewOutput, error) { req, out := c.DisableDomainAutoRenewRequest(input) err := req.Send() @@ -168,6 +235,8 @@ const opDisableDomainTransferLock = "DisableDomainTransferLock" // value can be used to capture response data after the request's "Send" method // is called. // +// See DisableDomainTransferLock for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -202,6 +271,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 +280,33 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Route 53 Domains's +// API operation DisableDomainTransferLock for usage and error information. +// +// Returned Error Codes: +// * InvalidInput +// The requested item is not acceptable. For example, for an OperationId it +// may refer to the ID of an operation that is already completed. For a domain +// name, it may not be a valid domain name or belong to the requester account. +// +// * DuplicateRequest +// The request is already in progress for the domain. +// +// * TLDRulesViolation +// The top-level domain does not support this operation. +// +// * OperationLimitExceeded +// The number of operations or jobs running exceeded the allowed threshold for +// the account. +// +// * UnsupportedTLD +// Amazon Route 53 does not support this top-level domain. +// func (c *Route53Domains) DisableDomainTransferLock(input *DisableDomainTransferLockInput) (*DisableDomainTransferLockOutput, error) { req, out := c.DisableDomainTransferLockRequest(input) err := req.Send() @@ -222,6 +320,8 @@ const opEnableDomainAutoRenew = "EnableDomainAutoRenew" // value can be used to capture response data after the request's "Send" method // is called. // +// See EnableDomainAutoRenew for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -256,6 +356,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 +368,26 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Route 53 Domains's +// API operation EnableDomainAutoRenew for usage and error information. +// +// Returned Error Codes: +// * InvalidInput +// The requested item is not acceptable. For example, for an OperationId it +// may refer to the ID of an operation that is already completed. For a domain +// name, it may not be a valid domain name or belong to the requester account. +// +// * UnsupportedTLD +// Amazon Route 53 does not support this top-level domain. +// +// * TLDRulesViolation +// The top-level domain does not support this operation. +// func (c *Route53Domains) EnableDomainAutoRenew(input *EnableDomainAutoRenewInput) (*EnableDomainAutoRenewOutput, error) { req, out := c.EnableDomainAutoRenewRequest(input) err := req.Send() @@ -279,6 +401,8 @@ const opEnableDomainTransferLock = "EnableDomainTransferLock" // value can be used to capture response data after the request's "Send" method // is called. // +// See EnableDomainTransferLock for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -313,11 +437,40 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Route 53 Domains's +// API operation EnableDomainTransferLock for usage and error information. +// +// Returned Error Codes: +// * InvalidInput +// The requested item is not acceptable. For example, for an OperationId it +// may refer to the ID of an operation that is already completed. For a domain +// name, it may not be a valid domain name or belong to the requester account. +// +// * DuplicateRequest +// The request is already in progress for the domain. +// +// * TLDRulesViolation +// The top-level domain does not support this operation. +// +// * OperationLimitExceeded +// The number of operations or jobs running exceeded the allowed threshold for +// the account. +// +// * UnsupportedTLD +// Amazon Route 53 does not support this top-level domain. +// func (c *Route53Domains) EnableDomainTransferLock(input *EnableDomainTransferLockInput) (*EnableDomainTransferLockOutput, error) { req, out := c.EnableDomainTransferLockRequest(input) err := req.Send() @@ -331,6 +484,8 @@ const opGetContactReachabilityStatus = "GetContactReachabilityStatus" // value can be used to capture response data after the request's "Send" method // is called. // +// See GetContactReachabilityStatus for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -365,12 +520,35 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Route 53 Domains's +// API operation GetContactReachabilityStatus for usage and error information. +// +// Returned Error Codes: +// * InvalidInput +// The requested item is not acceptable. For example, for an OperationId it +// may refer to the ID of an operation that is already completed. For a domain +// name, it may not be a valid domain name or belong to the requester account. +// +// * OperationLimitExceeded +// The number of operations or jobs running exceeded the allowed threshold for +// the account. +// +// * UnsupportedTLD +// Amazon Route 53 does not support this top-level domain. +// func (c *Route53Domains) GetContactReachabilityStatus(input *GetContactReachabilityStatusInput) (*GetContactReachabilityStatusOutput, error) { req, out := c.GetContactReachabilityStatusRequest(input) err := req.Send() @@ -384,6 +562,8 @@ const opGetDomainDetail = "GetDomainDetail" // value can be used to capture response data after the request's "Send" method // is called. // +// See GetDomainDetail for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -418,8 +598,27 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Route 53 Domains's +// API operation GetDomainDetail for usage and error information. +// +// Returned Error Codes: +// * InvalidInput +// The requested item is not acceptable. For example, for an OperationId it +// may refer to the ID of an operation that is already completed. For a domain +// name, it may not be a valid domain name or belong to the requester account. +// +// * UnsupportedTLD +// Amazon Route 53 does not support this top-level domain. +// func (c *Route53Domains) GetDomainDetail(input *GetDomainDetailInput) (*GetDomainDetailOutput, error) { req, out := c.GetDomainDetailRequest(input) err := req.Send() @@ -433,6 +632,8 @@ const opGetDomainSuggestions = "GetDomainSuggestions" // value can be used to capture response data after the request's "Send" method // is called. // +// See GetDomainSuggestions for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -467,6 +668,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 +682,23 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Route 53 Domains's +// API operation GetDomainSuggestions for usage and error information. +// +// Returned Error Codes: +// * InvalidInput +// The requested item is not acceptable. For example, for an OperationId it +// may refer to the ID of an operation that is already completed. For a domain +// name, it may not be a valid domain name or belong to the requester account. +// +// * UnsupportedTLD +// Amazon Route 53 does not support this top-level domain. +// func (c *Route53Domains) GetDomainSuggestions(input *GetDomainSuggestionsInput) (*GetDomainSuggestionsOutput, error) { req, out := c.GetDomainSuggestionsRequest(input) err := req.Send() @@ -492,6 +712,8 @@ const opGetOperationDetail = "GetOperationDetail" // value can be used to capture response data after the request's "Send" method // is called. // +// See GetOperationDetail for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -526,7 +748,23 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Route 53 Domains's +// API operation GetOperationDetail for usage and error information. +// +// Returned Error Codes: +// * InvalidInput +// The requested item is not acceptable. For example, for an OperationId it +// may refer to the ID of an operation that is already completed. For a domain +// name, it may not be a valid domain name or belong to the requester account. +// func (c *Route53Domains) GetOperationDetail(input *GetOperationDetailInput) (*GetOperationDetailOutput, error) { req, out := c.GetOperationDetailRequest(input) err := req.Send() @@ -540,6 +778,8 @@ const opListDomains = "ListDomains" // value can be used to capture response data after the request's "Send" method // is called. // +// See ListDomains for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -580,8 +820,24 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Route 53 Domains's +// API operation ListDomains for usage and error information. +// +// Returned Error Codes: +// * InvalidInput +// The requested item is not acceptable. For example, for an OperationId it +// may refer to the ID of an operation that is already completed. For a domain +// name, it may not be a valid domain name or belong to the requester account. +// func (c *Route53Domains) ListDomains(input *ListDomainsInput) (*ListDomainsOutput, error) { req, out := c.ListDomainsRequest(input) err := req.Send() @@ -620,6 +876,8 @@ const opListOperations = "ListOperations" // value can be used to capture response data after the request's "Send" method // is called. // +// See ListOperations for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -660,7 +918,23 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Route 53 Domains's +// API operation ListOperations for usage and error information. +// +// Returned Error Codes: +// * InvalidInput +// The requested item is not acceptable. For example, for an OperationId it +// may refer to the ID of an operation that is already completed. For a domain +// name, it may not be a valid domain name or belong to the requester account. +// func (c *Route53Domains) ListOperations(input *ListOperationsInput) (*ListOperationsOutput, error) { req, out := c.ListOperationsRequest(input) err := req.Send() @@ -699,6 +973,8 @@ const opListTagsForDomain = "ListTagsForDomain" // value can be used to capture response data after the request's "Send" method // is called. // +// See ListTagsForDomain for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -733,11 +1009,34 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Route 53 Domains's +// API operation ListTagsForDomain for usage and error information. +// +// Returned Error Codes: +// * InvalidInput +// The requested item is not acceptable. For example, for an OperationId it +// may refer to the ID of an operation that is already completed. For a domain +// name, it may not be a valid domain name or belong to the requester account. +// +// * OperationLimitExceeded +// The number of operations or jobs running exceeded the allowed threshold for +// the account. +// +// * UnsupportedTLD +// Amazon Route 53 does not support this top-level domain. +// func (c *Route53Domains) ListTagsForDomain(input *ListTagsForDomainInput) (*ListTagsForDomainOutput, error) { req, out := c.ListTagsForDomainRequest(input) err := req.Send() @@ -751,6 +1050,8 @@ const opRegisterDomain = "RegisterDomain" // value can be used to capture response data after the request's "Send" method // is called. // +// See RegisterDomain for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -785,6 +1086,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 +1107,36 @@ 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/). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Route 53 Domains's +// API operation RegisterDomain for usage and error information. +// +// Returned Error Codes: +// * InvalidInput +// The requested item is not acceptable. For example, for an OperationId it +// may refer to the ID of an operation that is already completed. For a domain +// name, it may not be a valid domain name or belong to the requester account. +// +// * UnsupportedTLD +// Amazon Route 53 does not support this top-level domain. +// +// * DuplicateRequest +// The request is already in progress for the domain. +// +// * TLDRulesViolation +// The top-level domain does not support this operation. +// +// * DomainLimitExceeded +// The number of domains has exceeded the allowed threshold for the account. +// +// * OperationLimitExceeded +// The number of operations or jobs running exceeded the allowed threshold for +// the account. +// func (c *Route53Domains) RegisterDomain(input *RegisterDomainInput) (*RegisterDomainOutput, error) { req, out := c.RegisterDomainRequest(input) err := req.Send() @@ -817,6 +1150,8 @@ const opRenewDomain = "RenewDomain" // value can be used to capture response data after the request's "Send" method // is called. // +// See RenewDomain for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -851,6 +1186,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 +1196,33 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Route 53 Domains's +// API operation RenewDomain for usage and error information. +// +// Returned Error Codes: +// * InvalidInput +// The requested item is not acceptable. For example, for an OperationId it +// may refer to the ID of an operation that is already completed. For a domain +// name, it may not be a valid domain name or belong to the requester account. +// +// * UnsupportedTLD +// Amazon Route 53 does not support this top-level domain. +// +// * DuplicateRequest +// The request is already in progress for the domain. +// +// * TLDRulesViolation +// The top-level domain does not support this operation. +// +// * OperationLimitExceeded +// The number of operations or jobs running exceeded the allowed threshold for +// the account. +// func (c *Route53Domains) RenewDomain(input *RenewDomainInput) (*RenewDomainOutput, error) { req, out := c.RenewDomainRequest(input) err := req.Send() @@ -872,6 +1236,8 @@ const opResendContactReachabilityEmail = "ResendContactReachabilityEmail" // value can be used to capture response data after the request's "Send" method // is called. // +// See ResendContactReachabilityEmail for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -906,9 +1272,32 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Route 53 Domains's +// API operation ResendContactReachabilityEmail for usage and error information. +// +// Returned Error Codes: +// * InvalidInput +// The requested item is not acceptable. For example, for an OperationId it +// may refer to the ID of an operation that is already completed. For a domain +// name, it may not be a valid domain name or belong to the requester account. +// +// * OperationLimitExceeded +// The number of operations or jobs running exceeded the allowed threshold for +// the account. +// +// * UnsupportedTLD +// Amazon Route 53 does not support this top-level domain. +// func (c *Route53Domains) ResendContactReachabilityEmail(input *ResendContactReachabilityEmailInput) (*ResendContactReachabilityEmailOutput, error) { req, out := c.ResendContactReachabilityEmailRequest(input) err := req.Send() @@ -922,6 +1311,8 @@ const opRetrieveDomainAuthCode = "RetrieveDomainAuthCode" // value can be used to capture response data after the request's "Send" method // is called. // +// See RetrieveDomainAuthCode for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -956,8 +1347,27 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Route 53 Domains's +// API operation RetrieveDomainAuthCode for usage and error information. +// +// Returned Error Codes: +// * InvalidInput +// The requested item is not acceptable. For example, for an OperationId it +// may refer to the ID of an operation that is already completed. For a domain +// name, it may not be a valid domain name or belong to the requester account. +// +// * UnsupportedTLD +// Amazon Route 53 does not support this top-level domain. +// func (c *Route53Domains) RetrieveDomainAuthCode(input *RetrieveDomainAuthCodeInput) (*RetrieveDomainAuthCodeOutput, error) { req, out := c.RetrieveDomainAuthCodeRequest(input) err := req.Send() @@ -971,6 +1381,8 @@ const opTransferDomain = "TransferDomain" // value can be used to capture response data after the request's "Send" method // is called. // +// See TransferDomain for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1005,6 +1417,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 +1443,36 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Route 53 Domains's +// API operation TransferDomain for usage and error information. +// +// Returned Error Codes: +// * InvalidInput +// The requested item is not acceptable. For example, for an OperationId it +// may refer to the ID of an operation that is already completed. For a domain +// name, it may not be a valid domain name or belong to the requester account. +// +// * UnsupportedTLD +// Amazon Route 53 does not support this top-level domain. +// +// * DuplicateRequest +// The request is already in progress for the domain. +// +// * TLDRulesViolation +// The top-level domain does not support this operation. +// +// * DomainLimitExceeded +// The number of domains has exceeded the allowed threshold for the account. +// +// * OperationLimitExceeded +// The number of operations or jobs running exceeded the allowed threshold for +// the account. +// func (c *Route53Domains) TransferDomain(input *TransferDomainInput) (*TransferDomainOutput, error) { req, out := c.TransferDomainRequest(input) err := req.Send() @@ -1042,6 +1486,8 @@ const opUpdateDomainContact = "UpdateDomainContact" // value can be used to capture response data after the request's "Send" method // is called. // +// See UpdateDomainContact for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1076,6 +1522,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 +1532,33 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Route 53 Domains's +// API operation UpdateDomainContact for usage and error information. +// +// Returned Error Codes: +// * InvalidInput +// The requested item is not acceptable. For example, for an OperationId it +// may refer to the ID of an operation that is already completed. For a domain +// name, it may not be a valid domain name or belong to the requester account. +// +// * DuplicateRequest +// The request is already in progress for the domain. +// +// * TLDRulesViolation +// The top-level domain does not support this operation. +// +// * OperationLimitExceeded +// The number of operations or jobs running exceeded the allowed threshold for +// the account. +// +// * UnsupportedTLD +// Amazon Route 53 does not support this top-level domain. +// func (c *Route53Domains) UpdateDomainContact(input *UpdateDomainContactInput) (*UpdateDomainContactOutput, error) { req, out := c.UpdateDomainContactRequest(input) err := req.Send() @@ -1097,6 +1572,8 @@ const opUpdateDomainContactPrivacy = "UpdateDomainContactPrivacy" // value can be used to capture response data after the request's "Send" method // is called. // +// See UpdateDomainContactPrivacy for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1131,6 +1608,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 +1621,33 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Route 53 Domains's +// API operation UpdateDomainContactPrivacy for usage and error information. +// +// Returned Error Codes: +// * InvalidInput +// The requested item is not acceptable. For example, for an OperationId it +// may refer to the ID of an operation that is already completed. For a domain +// name, it may not be a valid domain name or belong to the requester account. +// +// * DuplicateRequest +// The request is already in progress for the domain. +// +// * TLDRulesViolation +// The top-level domain does not support this operation. +// +// * OperationLimitExceeded +// The number of operations or jobs running exceeded the allowed threshold for +// the account. +// +// * UnsupportedTLD +// Amazon Route 53 does not support this top-level domain. +// func (c *Route53Domains) UpdateDomainContactPrivacy(input *UpdateDomainContactPrivacyInput) (*UpdateDomainContactPrivacyOutput, error) { req, out := c.UpdateDomainContactPrivacyRequest(input) err := req.Send() @@ -1155,6 +1661,8 @@ const opUpdateDomainNameservers = "UpdateDomainNameservers" // value can be used to capture response data after the request's "Send" method // is called. // +// See UpdateDomainNameservers for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1189,6 +1697,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 +1707,33 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Route 53 Domains's +// API operation UpdateDomainNameservers for usage and error information. +// +// Returned Error Codes: +// * InvalidInput +// The requested item is not acceptable. For example, for an OperationId it +// may refer to the ID of an operation that is already completed. For a domain +// name, it may not be a valid domain name or belong to the requester account. +// +// * DuplicateRequest +// The request is already in progress for the domain. +// +// * TLDRulesViolation +// The top-level domain does not support this operation. +// +// * OperationLimitExceeded +// The number of operations or jobs running exceeded the allowed threshold for +// the account. +// +// * UnsupportedTLD +// Amazon Route 53 does not support this top-level domain. +// func (c *Route53Domains) UpdateDomainNameservers(input *UpdateDomainNameserversInput) (*UpdateDomainNameserversOutput, error) { req, out := c.UpdateDomainNameserversRequest(input) err := req.Send() @@ -1210,6 +1747,8 @@ const opUpdateTagsForDomain = "UpdateTagsForDomain" // value can be used to capture response data after the request's "Send" method // is called. // +// See UpdateTagsForDomain for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1244,10 +1783,33 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Route 53 Domains's +// API operation UpdateTagsForDomain for usage and error information. +// +// Returned Error Codes: +// * InvalidInput +// The requested item is not acceptable. For example, for an OperationId it +// may refer to the ID of an operation that is already completed. For a domain +// name, it may not be a valid domain name or belong to the requester account. +// +// * OperationLimitExceeded +// The number of operations or jobs running exceeded the allowed threshold for +// the account. +// +// * UnsupportedTLD +// Amazon Route 53 does not support this top-level domain. +// func (c *Route53Domains) UpdateTagsForDomain(input *UpdateTagsForDomainInput) (*UpdateTagsForDomainOutput, error) { req, out := c.UpdateTagsForDomainRequest(input) err := req.Send() @@ -1261,6 +1823,8 @@ const opViewBilling = "ViewBilling" // value can be used to capture response data after the request's "Send" method // is called. // +// See ViewBilling for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1295,8 +1859,24 @@ 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 +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Route 53 Domains's +// API operation ViewBilling for usage and error information. +// +// Returned Error Codes: +// * InvalidInput +// The requested item is not acceptable. For example, for an OperationId it +// may refer to the ID of an operation that is already completed. For a domain +// name, it may not be a valid domain name or belong to the requester account. +// 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..3ac04372537 100644 --- a/service/s3/api.go +++ b/service/s3/api.go @@ -21,6 +21,8 @@ const opAbortMultipartUpload = "AbortMultipartUpload" // value can be used to capture response data after the request's "Send" method // is called. // +// See AbortMultipartUpload for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -55,11 +57,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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Storage Service's +// API operation AbortMultipartUpload for usage and error information. +// +// Returned Error Codes: +// * NoSuchUpload +// The specified multipart upload does not exist. +// func (c *S3) AbortMultipartUpload(input *AbortMultipartUploadInput) (*AbortMultipartUploadOutput, error) { req, out := c.AbortMultipartUploadRequest(input) err := req.Send() @@ -73,6 +89,8 @@ const opCompleteMultipartUpload = "CompleteMultipartUpload" // value can be used to capture response data after the request's "Send" method // is called. // +// See CompleteMultipartUpload for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -107,7 +125,16 @@ func (c *S3) CompleteMultipartUploadRequest(input *CompleteMultipartUploadInput) return } +// CompleteMultipartUpload API operation for Amazon Simple Storage Service. +// // Completes a multipart upload by assembling previously uploaded parts. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Storage Service's +// API operation CompleteMultipartUpload for usage and error information. func (c *S3) CompleteMultipartUpload(input *CompleteMultipartUploadInput) (*CompleteMultipartUploadOutput, error) { req, out := c.CompleteMultipartUploadRequest(input) err := req.Send() @@ -121,6 +148,8 @@ const opCopyObject = "CopyObject" // value can be used to capture response data after the request's "Send" method // is called. // +// See CopyObject for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -155,7 +184,22 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Storage Service's +// API operation CopyObject for usage and error information. +// +// Returned Error Codes: +// * ObjectNotInActiveTierError +// The source object of the COPY operation is not in the active tier and is +// only stored in Amazon Glacier. +// func (c *S3) CopyObject(input *CopyObjectInput) (*CopyObjectOutput, error) { req, out := c.CopyObjectRequest(input) err := req.Send() @@ -169,6 +213,8 @@ const opCreateBucket = "CreateBucket" // value can be used to capture response data after the request's "Send" method // is called. // +// See CreateBucket for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -203,7 +249,25 @@ func (c *S3) CreateBucketRequest(input *CreateBucketInput) (req *request.Request return } +// CreateBucket API operation for Amazon Simple Storage Service. +// // Creates a new bucket. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Storage Service's +// API operation CreateBucket for usage and error information. +// +// Returned Error Codes: +// * BucketAlreadyExists +// The requested bucket name is not available. The bucket namespace is shared +// by all users of the system. Please select a different name and try again. +// +// * BucketAlreadyOwnedByYou + +// func (c *S3) CreateBucket(input *CreateBucketInput) (*CreateBucketOutput, error) { req, out := c.CreateBucketRequest(input) err := req.Send() @@ -217,6 +281,8 @@ const opCreateMultipartUpload = "CreateMultipartUpload" // value can be used to capture response data after the request's "Send" method // is called. // +// See CreateMultipartUpload for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -251,6 +317,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 +326,13 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Storage Service's +// API operation CreateMultipartUpload for usage and error information. func (c *S3) CreateMultipartUpload(input *CreateMultipartUploadInput) (*CreateMultipartUploadOutput, error) { req, out := c.CreateMultipartUploadRequest(input) err := req.Send() @@ -271,6 +346,8 @@ const opDeleteBucket = "DeleteBucket" // value can be used to capture response data after the request's "Send" method // is called. // +// See DeleteBucket for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -307,8 +384,17 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Storage Service's +// API operation DeleteBucket for usage and error information. func (c *S3) DeleteBucket(input *DeleteBucketInput) (*DeleteBucketOutput, error) { req, out := c.DeleteBucketRequest(input) err := req.Send() @@ -322,6 +408,8 @@ const opDeleteBucketCors = "DeleteBucketCors" // value can be used to capture response data after the request's "Send" method // is called. // +// See DeleteBucketCors for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -358,7 +446,16 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Storage Service's +// API operation DeleteBucketCors for usage and error information. func (c *S3) DeleteBucketCors(input *DeleteBucketCorsInput) (*DeleteBucketCorsOutput, error) { req, out := c.DeleteBucketCorsRequest(input) err := req.Send() @@ -372,6 +469,8 @@ const opDeleteBucketLifecycle = "DeleteBucketLifecycle" // value can be used to capture response data after the request's "Send" method // is called. // +// See DeleteBucketLifecycle for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -408,7 +507,16 @@ func (c *S3) DeleteBucketLifecycleRequest(input *DeleteBucketLifecycleInput) (re return } +// DeleteBucketLifecycle API operation for Amazon Simple Storage Service. +// // Deletes the lifecycle configuration from the bucket. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Storage Service's +// API operation DeleteBucketLifecycle for usage and error information. func (c *S3) DeleteBucketLifecycle(input *DeleteBucketLifecycleInput) (*DeleteBucketLifecycleOutput, error) { req, out := c.DeleteBucketLifecycleRequest(input) err := req.Send() @@ -422,6 +530,8 @@ const opDeleteBucketPolicy = "DeleteBucketPolicy" // value can be used to capture response data after the request's "Send" method // is called. // +// See DeleteBucketPolicy for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -458,7 +568,16 @@ func (c *S3) DeleteBucketPolicyRequest(input *DeleteBucketPolicyInput) (req *req return } +// DeleteBucketPolicy API operation for Amazon Simple Storage Service. +// // Deletes the policy from the bucket. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Storage Service's +// API operation DeleteBucketPolicy for usage and error information. func (c *S3) DeleteBucketPolicy(input *DeleteBucketPolicyInput) (*DeleteBucketPolicyOutput, error) { req, out := c.DeleteBucketPolicyRequest(input) err := req.Send() @@ -472,6 +591,8 @@ const opDeleteBucketReplication = "DeleteBucketReplication" // value can be used to capture response data after the request's "Send" method // is called. // +// See DeleteBucketReplication for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -508,7 +629,16 @@ func (c *S3) DeleteBucketReplicationRequest(input *DeleteBucketReplicationInput) return } +// DeleteBucketReplication API operation for Amazon Simple Storage Service. +// // Deletes the replication configuration from the bucket. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Storage Service's +// API operation DeleteBucketReplication for usage and error information. func (c *S3) DeleteBucketReplication(input *DeleteBucketReplicationInput) (*DeleteBucketReplicationOutput, error) { req, out := c.DeleteBucketReplicationRequest(input) err := req.Send() @@ -522,6 +652,8 @@ const opDeleteBucketTagging = "DeleteBucketTagging" // value can be used to capture response data after the request's "Send" method // is called. // +// See DeleteBucketTagging for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -558,7 +690,16 @@ func (c *S3) DeleteBucketTaggingRequest(input *DeleteBucketTaggingInput) (req *r return } +// DeleteBucketTagging API operation for Amazon Simple Storage Service. +// // Deletes the tags from the bucket. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Storage Service's +// API operation DeleteBucketTagging for usage and error information. func (c *S3) DeleteBucketTagging(input *DeleteBucketTaggingInput) (*DeleteBucketTaggingOutput, error) { req, out := c.DeleteBucketTaggingRequest(input) err := req.Send() @@ -572,6 +713,8 @@ const opDeleteBucketWebsite = "DeleteBucketWebsite" // value can be used to capture response data after the request's "Send" method // is called. // +// See DeleteBucketWebsite for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -608,7 +751,16 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Storage Service's +// API operation DeleteBucketWebsite for usage and error information. func (c *S3) DeleteBucketWebsite(input *DeleteBucketWebsiteInput) (*DeleteBucketWebsiteOutput, error) { req, out := c.DeleteBucketWebsiteRequest(input) err := req.Send() @@ -622,6 +774,8 @@ const opDeleteObject = "DeleteObject" // value can be used to capture response data after the request's "Send" method // is called. // +// See DeleteObject for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -656,9 +810,18 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Storage Service's +// API operation DeleteObject for usage and error information. func (c *S3) DeleteObject(input *DeleteObjectInput) (*DeleteObjectOutput, error) { req, out := c.DeleteObjectRequest(input) err := req.Send() @@ -672,6 +835,8 @@ const opDeleteObjects = "DeleteObjects" // value can be used to capture response data after the request's "Send" method // is called. // +// See DeleteObjects for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -706,8 +871,17 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Storage Service's +// API operation DeleteObjects for usage and error information. func (c *S3) DeleteObjects(input *DeleteObjectsInput) (*DeleteObjectsOutput, error) { req, out := c.DeleteObjectsRequest(input) err := req.Send() @@ -721,6 +895,8 @@ const opGetBucketAccelerateConfiguration = "GetBucketAccelerateConfiguration" // value can be used to capture response data after the request's "Send" method // is called. // +// See GetBucketAccelerateConfiguration for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -755,7 +931,16 @@ func (c *S3) GetBucketAccelerateConfigurationRequest(input *GetBucketAccelerateC return } +// GetBucketAccelerateConfiguration API operation for Amazon Simple Storage Service. +// // Returns the accelerate configuration of a bucket. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Storage Service's +// API operation GetBucketAccelerateConfiguration for usage and error information. func (c *S3) GetBucketAccelerateConfiguration(input *GetBucketAccelerateConfigurationInput) (*GetBucketAccelerateConfigurationOutput, error) { req, out := c.GetBucketAccelerateConfigurationRequest(input) err := req.Send() @@ -769,6 +954,8 @@ const opGetBucketAcl = "GetBucketAcl" // value can be used to capture response data after the request's "Send" method // is called. // +// See GetBucketAcl for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -803,7 +990,16 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Storage Service's +// API operation GetBucketAcl for usage and error information. func (c *S3) GetBucketAcl(input *GetBucketAclInput) (*GetBucketAclOutput, error) { req, out := c.GetBucketAclRequest(input) err := req.Send() @@ -817,6 +1013,8 @@ const opGetBucketCors = "GetBucketCors" // value can be used to capture response data after the request's "Send" method // is called. // +// See GetBucketCors for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -851,7 +1049,16 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Storage Service's +// API operation GetBucketCors for usage and error information. func (c *S3) GetBucketCors(input *GetBucketCorsInput) (*GetBucketCorsOutput, error) { req, out := c.GetBucketCorsRequest(input) err := req.Send() @@ -865,6 +1072,8 @@ const opGetBucketLifecycle = "GetBucketLifecycle" // value can be used to capture response data after the request's "Send" method // is called. // +// See GetBucketLifecycle for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -902,7 +1111,16 @@ func (c *S3) GetBucketLifecycleRequest(input *GetBucketLifecycleInput) (req *req return } +// GetBucketLifecycle API operation for Amazon Simple Storage Service. +// // Deprecated, see the GetBucketLifecycleConfiguration operation. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Storage Service's +// API operation GetBucketLifecycle for usage and error information. func (c *S3) GetBucketLifecycle(input *GetBucketLifecycleInput) (*GetBucketLifecycleOutput, error) { req, out := c.GetBucketLifecycleRequest(input) err := req.Send() @@ -916,6 +1134,8 @@ const opGetBucketLifecycleConfiguration = "GetBucketLifecycleConfiguration" // value can be used to capture response data after the request's "Send" method // is called. // +// See GetBucketLifecycleConfiguration for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -950,7 +1170,16 @@ func (c *S3) GetBucketLifecycleConfigurationRequest(input *GetBucketLifecycleCon return } +// GetBucketLifecycleConfiguration API operation for Amazon Simple Storage Service. +// // Returns the lifecycle configuration information set on the bucket. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Storage Service's +// API operation GetBucketLifecycleConfiguration for usage and error information. func (c *S3) GetBucketLifecycleConfiguration(input *GetBucketLifecycleConfigurationInput) (*GetBucketLifecycleConfigurationOutput, error) { req, out := c.GetBucketLifecycleConfigurationRequest(input) err := req.Send() @@ -964,6 +1193,8 @@ const opGetBucketLocation = "GetBucketLocation" // value can be used to capture response data after the request's "Send" method // is called. // +// See GetBucketLocation for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -998,7 +1229,16 @@ func (c *S3) GetBucketLocationRequest(input *GetBucketLocationInput) (req *reque return } +// GetBucketLocation API operation for Amazon Simple Storage Service. +// // Returns the region the bucket resides in. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Storage Service's +// API operation GetBucketLocation for usage and error information. func (c *S3) GetBucketLocation(input *GetBucketLocationInput) (*GetBucketLocationOutput, error) { req, out := c.GetBucketLocationRequest(input) err := req.Send() @@ -1012,6 +1252,8 @@ const opGetBucketLogging = "GetBucketLogging" // value can be used to capture response data after the request's "Send" method // is called. // +// See GetBucketLogging for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1046,8 +1288,17 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Storage Service's +// API operation GetBucketLogging for usage and error information. func (c *S3) GetBucketLogging(input *GetBucketLoggingInput) (*GetBucketLoggingOutput, error) { req, out := c.GetBucketLoggingRequest(input) err := req.Send() @@ -1061,6 +1312,8 @@ const opGetBucketNotification = "GetBucketNotification" // value can be used to capture response data after the request's "Send" method // is called. // +// See GetBucketNotification for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1098,7 +1351,16 @@ func (c *S3) GetBucketNotificationRequest(input *GetBucketNotificationConfigurat return } +// GetBucketNotification API operation for Amazon Simple Storage Service. +// // Deprecated, see the GetBucketNotificationConfiguration operation. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Storage Service's +// API operation GetBucketNotification for usage and error information. func (c *S3) GetBucketNotification(input *GetBucketNotificationConfigurationRequest) (*NotificationConfigurationDeprecated, error) { req, out := c.GetBucketNotificationRequest(input) err := req.Send() @@ -1112,6 +1374,8 @@ const opGetBucketNotificationConfiguration = "GetBucketNotificationConfiguration // value can be used to capture response data after the request's "Send" method // is called. // +// See GetBucketNotificationConfiguration for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1146,7 +1410,16 @@ func (c *S3) GetBucketNotificationConfigurationRequest(input *GetBucketNotificat return } +// GetBucketNotificationConfiguration API operation for Amazon Simple Storage Service. +// // Returns the notification configuration of a bucket. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Storage Service's +// API operation GetBucketNotificationConfiguration for usage and error information. func (c *S3) GetBucketNotificationConfiguration(input *GetBucketNotificationConfigurationRequest) (*NotificationConfiguration, error) { req, out := c.GetBucketNotificationConfigurationRequest(input) err := req.Send() @@ -1160,6 +1433,8 @@ const opGetBucketPolicy = "GetBucketPolicy" // value can be used to capture response data after the request's "Send" method // is called. // +// See GetBucketPolicy for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1194,7 +1469,16 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Storage Service's +// API operation GetBucketPolicy for usage and error information. func (c *S3) GetBucketPolicy(input *GetBucketPolicyInput) (*GetBucketPolicyOutput, error) { req, out := c.GetBucketPolicyRequest(input) err := req.Send() @@ -1208,6 +1492,8 @@ const opGetBucketReplication = "GetBucketReplication" // value can be used to capture response data after the request's "Send" method // is called. // +// See GetBucketReplication for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1242,7 +1528,16 @@ func (c *S3) GetBucketReplicationRequest(input *GetBucketReplicationInput) (req return } +// GetBucketReplication API operation for Amazon Simple Storage Service. +// // Returns the replication configuration of a bucket. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Storage Service's +// API operation GetBucketReplication for usage and error information. func (c *S3) GetBucketReplication(input *GetBucketReplicationInput) (*GetBucketReplicationOutput, error) { req, out := c.GetBucketReplicationRequest(input) err := req.Send() @@ -1256,6 +1551,8 @@ const opGetBucketRequestPayment = "GetBucketRequestPayment" // value can be used to capture response data after the request's "Send" method // is called. // +// See GetBucketRequestPayment for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1290,7 +1587,16 @@ func (c *S3) GetBucketRequestPaymentRequest(input *GetBucketRequestPaymentInput) return } +// GetBucketRequestPayment API operation for Amazon Simple Storage Service. +// // Returns the request payment configuration of a bucket. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Storage Service's +// API operation GetBucketRequestPayment for usage and error information. func (c *S3) GetBucketRequestPayment(input *GetBucketRequestPaymentInput) (*GetBucketRequestPaymentOutput, error) { req, out := c.GetBucketRequestPaymentRequest(input) err := req.Send() @@ -1304,6 +1610,8 @@ const opGetBucketTagging = "GetBucketTagging" // value can be used to capture response data after the request's "Send" method // is called. // +// See GetBucketTagging for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1338,7 +1646,16 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Storage Service's +// API operation GetBucketTagging for usage and error information. func (c *S3) GetBucketTagging(input *GetBucketTaggingInput) (*GetBucketTaggingOutput, error) { req, out := c.GetBucketTaggingRequest(input) err := req.Send() @@ -1352,6 +1669,8 @@ const opGetBucketVersioning = "GetBucketVersioning" // value can be used to capture response data after the request's "Send" method // is called. // +// See GetBucketVersioning for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1386,7 +1705,16 @@ func (c *S3) GetBucketVersioningRequest(input *GetBucketVersioningInput) (req *r return } +// GetBucketVersioning API operation for Amazon Simple Storage Service. +// // Returns the versioning state of a bucket. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Storage Service's +// API operation GetBucketVersioning for usage and error information. func (c *S3) GetBucketVersioning(input *GetBucketVersioningInput) (*GetBucketVersioningOutput, error) { req, out := c.GetBucketVersioningRequest(input) err := req.Send() @@ -1400,6 +1728,8 @@ const opGetBucketWebsite = "GetBucketWebsite" // value can be used to capture response data after the request's "Send" method // is called. // +// See GetBucketWebsite for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1434,7 +1764,16 @@ func (c *S3) GetBucketWebsiteRequest(input *GetBucketWebsiteInput) (req *request return } +// GetBucketWebsite API operation for Amazon Simple Storage Service. +// // Returns the website configuration for a bucket. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Storage Service's +// API operation GetBucketWebsite for usage and error information. func (c *S3) GetBucketWebsite(input *GetBucketWebsiteInput) (*GetBucketWebsiteOutput, error) { req, out := c.GetBucketWebsiteRequest(input) err := req.Send() @@ -1448,6 +1787,8 @@ const opGetObject = "GetObject" // value can be used to capture response data after the request's "Send" method // is called. // +// See GetObject for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1482,7 +1823,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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Storage Service's +// API operation GetObject for usage and error information. +// +// Returned Error Codes: +// * NoSuchKey +// The specified key does not exist. +// func (c *S3) GetObject(input *GetObjectInput) (*GetObjectOutput, error) { req, out := c.GetObjectRequest(input) err := req.Send() @@ -1496,6 +1851,8 @@ const opGetObjectAcl = "GetObjectAcl" // value can be used to capture response data after the request's "Send" method // is called. // +// See GetObjectAcl for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1530,7 +1887,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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Storage Service's +// API operation GetObjectAcl for usage and error information. +// +// Returned Error Codes: +// * NoSuchKey +// The specified key does not exist. +// func (c *S3) GetObjectAcl(input *GetObjectAclInput) (*GetObjectAclOutput, error) { req, out := c.GetObjectAclRequest(input) err := req.Send() @@ -1544,6 +1915,8 @@ const opGetObjectTorrent = "GetObjectTorrent" // value can be used to capture response data after the request's "Send" method // is called. // +// See GetObjectTorrent for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1578,7 +1951,16 @@ func (c *S3) GetObjectTorrentRequest(input *GetObjectTorrentInput) (req *request return } +// GetObjectTorrent API operation for Amazon Simple Storage Service. +// // Return torrent files from a bucket. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Storage Service's +// API operation GetObjectTorrent for usage and error information. func (c *S3) GetObjectTorrent(input *GetObjectTorrentInput) (*GetObjectTorrentOutput, error) { req, out := c.GetObjectTorrentRequest(input) err := req.Send() @@ -1592,6 +1974,8 @@ const opHeadBucket = "HeadBucket" // value can be used to capture response data after the request's "Send" method // is called. // +// See HeadBucket for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1628,8 +2012,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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Storage Service's +// API operation HeadBucket for usage and error information. +// +// Returned Error Codes: +// * NoSuchBucket +// The specified bucket does not exist. +// func (c *S3) HeadBucket(input *HeadBucketInput) (*HeadBucketOutput, error) { req, out := c.HeadBucketRequest(input) err := req.Send() @@ -1643,6 +2041,8 @@ const opHeadObject = "HeadObject" // value can be used to capture response data after the request's "Send" method // is called. // +// See HeadObject for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1677,9 +2077,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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Storage Service's +// API operation HeadObject for usage and error information. +// +// Returned Error Codes: +// * NoSuchKey +// The specified key does not exist. +// func (c *S3) HeadObject(input *HeadObjectInput) (*HeadObjectOutput, error) { req, out := c.HeadObjectRequest(input) err := req.Send() @@ -1693,6 +2107,8 @@ const opListBuckets = "ListBuckets" // value can be used to capture response data after the request's "Send" method // is called. // +// See ListBuckets for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1727,7 +2143,16 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Storage Service's +// API operation ListBuckets for usage and error information. func (c *S3) ListBuckets(input *ListBucketsInput) (*ListBucketsOutput, error) { req, out := c.ListBucketsRequest(input) err := req.Send() @@ -1741,6 +2166,8 @@ const opListMultipartUploads = "ListMultipartUploads" // value can be used to capture response data after the request's "Send" method // is called. // +// See ListMultipartUploads for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1781,7 +2208,16 @@ func (c *S3) ListMultipartUploadsRequest(input *ListMultipartUploadsInput) (req return } +// ListMultipartUploads API operation for Amazon Simple Storage Service. +// // This operation lists in-progress multipart uploads. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Storage Service's +// API operation ListMultipartUploads for usage and error information. func (c *S3) ListMultipartUploads(input *ListMultipartUploadsInput) (*ListMultipartUploadsOutput, error) { req, out := c.ListMultipartUploadsRequest(input) err := req.Send() @@ -1820,6 +2256,8 @@ const opListObjectVersions = "ListObjectVersions" // value can be used to capture response data after the request's "Send" method // is called. // +// See ListObjectVersions for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1860,7 +2298,16 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Storage Service's +// API operation ListObjectVersions for usage and error information. func (c *S3) ListObjectVersions(input *ListObjectVersionsInput) (*ListObjectVersionsOutput, error) { req, out := c.ListObjectVersionsRequest(input) err := req.Send() @@ -1899,6 +2346,8 @@ const opListObjects = "ListObjects" // value can be used to capture response data after the request's "Send" method // is called. // +// See ListObjects for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1939,9 +2388,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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Storage Service's +// API operation ListObjects for usage and error information. +// +// Returned Error Codes: +// * NoSuchBucket +// The specified bucket does not exist. +// func (c *S3) ListObjects(input *ListObjectsInput) (*ListObjectsOutput, error) { req, out := c.ListObjectsRequest(input) err := req.Send() @@ -1980,6 +2443,8 @@ const opListObjectsV2 = "ListObjectsV2" // value can be used to capture response data after the request's "Send" method // is called. // +// See ListObjectsV2 for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -2020,10 +2485,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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Storage Service's +// API operation ListObjectsV2 for usage and error information. +// +// Returned Error Codes: +// * NoSuchBucket +// The specified bucket does not exist. +// func (c *S3) ListObjectsV2(input *ListObjectsV2Input) (*ListObjectsV2Output, error) { req, out := c.ListObjectsV2Request(input) err := req.Send() @@ -2062,6 +2541,8 @@ const opListParts = "ListParts" // value can be used to capture response data after the request's "Send" method // is called. // +// See ListParts for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -2102,7 +2583,16 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Storage Service's +// API operation ListParts for usage and error information. func (c *S3) ListParts(input *ListPartsInput) (*ListPartsOutput, error) { req, out := c.ListPartsRequest(input) err := req.Send() @@ -2141,6 +2631,8 @@ const opPutBucketAccelerateConfiguration = "PutBucketAccelerateConfiguration" // value can be used to capture response data after the request's "Send" method // is called. // +// See PutBucketAccelerateConfiguration for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -2177,7 +2669,16 @@ func (c *S3) PutBucketAccelerateConfigurationRequest(input *PutBucketAccelerateC return } +// PutBucketAccelerateConfiguration API operation for Amazon Simple Storage Service. +// // Sets the accelerate configuration of an existing bucket. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Storage Service's +// API operation PutBucketAccelerateConfiguration for usage and error information. func (c *S3) PutBucketAccelerateConfiguration(input *PutBucketAccelerateConfigurationInput) (*PutBucketAccelerateConfigurationOutput, error) { req, out := c.PutBucketAccelerateConfigurationRequest(input) err := req.Send() @@ -2191,6 +2692,8 @@ const opPutBucketAcl = "PutBucketAcl" // value can be used to capture response data after the request's "Send" method // is called. // +// See PutBucketAcl for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -2227,7 +2730,16 @@ 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). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Storage Service's +// API operation PutBucketAcl for usage and error information. func (c *S3) PutBucketAcl(input *PutBucketAclInput) (*PutBucketAclOutput, error) { req, out := c.PutBucketAclRequest(input) err := req.Send() @@ -2241,6 +2753,8 @@ const opPutBucketCors = "PutBucketCors" // value can be used to capture response data after the request's "Send" method // is called. // +// See PutBucketCors for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -2277,7 +2791,16 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Storage Service's +// API operation PutBucketCors for usage and error information. func (c *S3) PutBucketCors(input *PutBucketCorsInput) (*PutBucketCorsOutput, error) { req, out := c.PutBucketCorsRequest(input) err := req.Send() @@ -2291,6 +2814,8 @@ const opPutBucketLifecycle = "PutBucketLifecycle" // value can be used to capture response data after the request's "Send" method // is called. // +// See PutBucketLifecycle for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -2330,7 +2855,16 @@ func (c *S3) PutBucketLifecycleRequest(input *PutBucketLifecycleInput) (req *req return } +// PutBucketLifecycle API operation for Amazon Simple Storage Service. +// // Deprecated, see the PutBucketLifecycleConfiguration operation. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Storage Service's +// API operation PutBucketLifecycle for usage and error information. func (c *S3) PutBucketLifecycle(input *PutBucketLifecycleInput) (*PutBucketLifecycleOutput, error) { req, out := c.PutBucketLifecycleRequest(input) err := req.Send() @@ -2344,6 +2878,8 @@ const opPutBucketLifecycleConfiguration = "PutBucketLifecycleConfiguration" // value can be used to capture response data after the request's "Send" method // is called. // +// See PutBucketLifecycleConfiguration for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -2380,8 +2916,17 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Storage Service's +// API operation PutBucketLifecycleConfiguration for usage and error information. func (c *S3) PutBucketLifecycleConfiguration(input *PutBucketLifecycleConfigurationInput) (*PutBucketLifecycleConfigurationOutput, error) { req, out := c.PutBucketLifecycleConfigurationRequest(input) err := req.Send() @@ -2395,6 +2940,8 @@ const opPutBucketLogging = "PutBucketLogging" // value can be used to capture response data after the request's "Send" method // is called. // +// See PutBucketLogging for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -2431,9 +2978,18 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Storage Service's +// API operation PutBucketLogging for usage and error information. func (c *S3) PutBucketLogging(input *PutBucketLoggingInput) (*PutBucketLoggingOutput, error) { req, out := c.PutBucketLoggingRequest(input) err := req.Send() @@ -2447,6 +3003,8 @@ const opPutBucketNotification = "PutBucketNotification" // value can be used to capture response data after the request's "Send" method // is called. // +// See PutBucketNotification for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -2486,7 +3044,16 @@ func (c *S3) PutBucketNotificationRequest(input *PutBucketNotificationInput) (re return } +// PutBucketNotification API operation for Amazon Simple Storage Service. +// // Deprecated, see the PutBucketNotificationConfiguraiton operation. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Storage Service's +// API operation PutBucketNotification for usage and error information. func (c *S3) PutBucketNotification(input *PutBucketNotificationInput) (*PutBucketNotificationOutput, error) { req, out := c.PutBucketNotificationRequest(input) err := req.Send() @@ -2500,6 +3067,8 @@ const opPutBucketNotificationConfiguration = "PutBucketNotificationConfiguration // value can be used to capture response data after the request's "Send" method // is called. // +// See PutBucketNotificationConfiguration for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -2536,7 +3105,16 @@ func (c *S3) PutBucketNotificationConfigurationRequest(input *PutBucketNotificat return } +// PutBucketNotificationConfiguration API operation for Amazon Simple Storage Service. +// // Enables notifications of specified events for a bucket. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Storage Service's +// API operation PutBucketNotificationConfiguration for usage and error information. func (c *S3) PutBucketNotificationConfiguration(input *PutBucketNotificationConfigurationInput) (*PutBucketNotificationConfigurationOutput, error) { req, out := c.PutBucketNotificationConfigurationRequest(input) err := req.Send() @@ -2550,6 +3128,8 @@ const opPutBucketPolicy = "PutBucketPolicy" // value can be used to capture response data after the request's "Send" method // is called. // +// See PutBucketPolicy for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -2586,8 +3166,17 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Storage Service's +// API operation PutBucketPolicy for usage and error information. func (c *S3) PutBucketPolicy(input *PutBucketPolicyInput) (*PutBucketPolicyOutput, error) { req, out := c.PutBucketPolicyRequest(input) err := req.Send() @@ -2601,6 +3190,8 @@ const opPutBucketReplication = "PutBucketReplication" // value can be used to capture response data after the request's "Send" method // is called. // +// See PutBucketReplication for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -2637,8 +3228,17 @@ 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). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Storage Service's +// API operation PutBucketReplication for usage and error information. func (c *S3) PutBucketReplication(input *PutBucketReplicationInput) (*PutBucketReplicationOutput, error) { req, out := c.PutBucketReplicationRequest(input) err := req.Send() @@ -2652,6 +3252,8 @@ const opPutBucketRequestPayment = "PutBucketRequestPayment" // value can be used to capture response data after the request's "Send" method // is called. // +// See PutBucketRequestPayment for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -2688,11 +3290,20 @@ 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 +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Storage Service's +// API operation PutBucketRequestPayment for usage and error information. func (c *S3) PutBucketRequestPayment(input *PutBucketRequestPaymentInput) (*PutBucketRequestPaymentOutput, error) { req, out := c.PutBucketRequestPaymentRequest(input) err := req.Send() @@ -2706,6 +3317,8 @@ const opPutBucketTagging = "PutBucketTagging" // value can be used to capture response data after the request's "Send" method // is called. // +// See PutBucketTagging for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -2742,7 +3355,16 @@ func (c *S3) PutBucketTaggingRequest(input *PutBucketTaggingInput) (req *request return } +// PutBucketTagging API operation for Amazon Simple Storage Service. +// // Sets the tags for a bucket. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Storage Service's +// API operation PutBucketTagging for usage and error information. func (c *S3) PutBucketTagging(input *PutBucketTaggingInput) (*PutBucketTaggingOutput, error) { req, out := c.PutBucketTaggingRequest(input) err := req.Send() @@ -2756,6 +3378,8 @@ const opPutBucketVersioning = "PutBucketVersioning" // value can be used to capture response data after the request's "Send" method // is called. // +// See PutBucketVersioning for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -2792,8 +3416,17 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Storage Service's +// API operation PutBucketVersioning for usage and error information. func (c *S3) PutBucketVersioning(input *PutBucketVersioningInput) (*PutBucketVersioningOutput, error) { req, out := c.PutBucketVersioningRequest(input) err := req.Send() @@ -2807,6 +3440,8 @@ const opPutBucketWebsite = "PutBucketWebsite" // value can be used to capture response data after the request's "Send" method // is called. // +// See PutBucketWebsite for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -2843,7 +3478,16 @@ func (c *S3) PutBucketWebsiteRequest(input *PutBucketWebsiteInput) (req *request return } +// PutBucketWebsite API operation for Amazon Simple Storage Service. +// // Set the website configuration for a bucket. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Storage Service's +// API operation PutBucketWebsite for usage and error information. func (c *S3) PutBucketWebsite(input *PutBucketWebsiteInput) (*PutBucketWebsiteOutput, error) { req, out := c.PutBucketWebsiteRequest(input) err := req.Send() @@ -2857,6 +3501,8 @@ const opPutObject = "PutObject" // value can be used to capture response data after the request's "Send" method // is called. // +// See PutObject for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -2891,7 +3537,16 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Storage Service's +// API operation PutObject for usage and error information. func (c *S3) PutObject(input *PutObjectInput) (*PutObjectOutput, error) { req, out := c.PutObjectRequest(input) err := req.Send() @@ -2905,6 +3560,8 @@ const opPutObjectAcl = "PutObjectAcl" // value can be used to capture response data after the request's "Send" method // is called. // +// See PutObjectAcl for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -2939,8 +3596,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 +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Storage Service's +// API operation PutObjectAcl for usage and error information. +// +// Returned Error Codes: +// * NoSuchKey +// The specified key does not exist. +// func (c *S3) PutObjectAcl(input *PutObjectAclInput) (*PutObjectAclOutput, error) { req, out := c.PutObjectAclRequest(input) err := req.Send() @@ -2954,6 +3625,8 @@ const opRestoreObject = "RestoreObject" // value can be used to capture response data after the request's "Send" method // is called. // +// See RestoreObject for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -2988,7 +3661,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 +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Storage Service's +// API operation RestoreObject for usage and error information. +// +// Returned Error Codes: +// * ObjectAlreadyInActiveTierError +// This operation is not allowed against this storage tier +// func (c *S3) RestoreObject(input *RestoreObjectInput) (*RestoreObjectOutput, error) { req, out := c.RestoreObjectRequest(input) err := req.Send() @@ -3002,6 +3689,8 @@ const opUploadPart = "UploadPart" // value can be used to capture response data after the request's "Send" method // is called. // +// See UploadPart for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -3036,6 +3725,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 +3734,13 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Storage Service's +// API operation UploadPart for usage and error information. func (c *S3) UploadPart(input *UploadPartInput) (*UploadPartOutput, error) { req, out := c.UploadPartRequest(input) err := req.Send() @@ -3056,6 +3754,8 @@ const opUploadPartCopy = "UploadPartCopy" // value can be used to capture response data after the request's "Send" method // is called. // +// See UploadPartCopy for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -3090,7 +3790,16 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Storage Service's +// API operation UploadPartCopy for usage and error information. 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..c1c01027060 100644 --- a/service/servicecatalog/api.go +++ b/service/servicecatalog/api.go @@ -18,6 +18,8 @@ const opDescribeProduct = "DescribeProduct" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeProduct for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -52,10 +54,27 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Service Catalog's +// API operation DescribeProduct for usage and error information. +// +// Returned Error Codes: +// * ResourceNotFoundException +// The specified resource was not found. +// +// * InvalidParametersException +// One or more parameters provided to the operation are invalid. +// func (c *ServiceCatalog) DescribeProduct(input *DescribeProductInput) (*DescribeProductOutput, error) { req, out := c.DescribeProductRequest(input) err := req.Send() @@ -69,6 +88,8 @@ const opDescribeProductView = "DescribeProductView" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeProductView for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -103,10 +124,27 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Service Catalog's +// API operation DescribeProductView for usage and error information. +// +// Returned Error Codes: +// * ResourceNotFoundException +// The specified resource was not found. +// +// * InvalidParametersException +// One or more parameters provided to the operation are invalid. +// func (c *ServiceCatalog) DescribeProductView(input *DescribeProductViewInput) (*DescribeProductViewOutput, error) { req, out := c.DescribeProductViewRequest(input) err := req.Send() @@ -120,6 +158,8 @@ const opDescribeProvisioningParameters = "DescribeProvisioningParameters" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeProvisioningParameters for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -154,10 +194,27 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Service Catalog's +// API operation DescribeProvisioningParameters for usage and error information. +// +// Returned Error Codes: +// * InvalidParametersException +// One or more parameters provided to the operation are invalid. +// +// * ResourceNotFoundException +// The specified resource was not found. +// func (c *ServiceCatalog) DescribeProvisioningParameters(input *DescribeProvisioningParametersInput) (*DescribeProvisioningParametersOutput, error) { req, out := c.DescribeProvisioningParametersRequest(input) err := req.Send() @@ -171,6 +228,8 @@ const opDescribeRecord = "DescribeRecord" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeRecord for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -205,9 +264,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). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Service Catalog's +// API operation DescribeRecord for usage and error information. +// +// Returned Error Codes: +// * ResourceNotFoundException +// The specified resource was not found. +// func (c *ServiceCatalog) DescribeRecord(input *DescribeRecordInput) (*DescribeRecordOutput, error) { req, out := c.DescribeRecordRequest(input) err := req.Send() @@ -221,6 +294,8 @@ const opListLaunchPaths = "ListLaunchPaths" // value can be used to capture response data after the request's "Send" method // is called. // +// See ListLaunchPaths for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -255,9 +330,26 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Service Catalog's +// API operation ListLaunchPaths for usage and error information. +// +// Returned Error Codes: +// * InvalidParametersException +// One or more parameters provided to the operation are invalid. +// +// * ResourceNotFoundException +// The specified resource was not found. +// func (c *ServiceCatalog) ListLaunchPaths(input *ListLaunchPathsInput) (*ListLaunchPathsOutput, error) { req, out := c.ListLaunchPathsRequest(input) err := req.Send() @@ -271,6 +363,8 @@ const opListRecordHistory = "ListRecordHistory" // value can be used to capture response data after the request's "Send" method // is called. // +// See ListRecordHistory for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -305,8 +399,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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Service Catalog's +// API operation ListRecordHistory for usage and error information. +// +// Returned Error Codes: +// * InvalidParametersException +// One or more parameters provided to the operation are invalid. +// func (c *ServiceCatalog) ListRecordHistory(input *ListRecordHistoryInput) (*ListRecordHistoryOutput, error) { req, out := c.ListRecordHistoryRequest(input) err := req.Send() @@ -320,6 +428,8 @@ const opProvisionProduct = "ProvisionProduct" // value can be used to capture response data after the request's "Send" method // is called. // +// See ProvisionProduct for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -354,12 +464,32 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Service Catalog's +// API operation ProvisionProduct for usage and error information. +// +// Returned Error Codes: +// * InvalidParametersException +// One or more parameters provided to the operation are invalid. +// +// * ResourceNotFoundException +// The specified resource was not found. +// +// * DuplicateResourceException +// The specified resource is a duplicate. +// func (c *ServiceCatalog) ProvisionProduct(input *ProvisionProductInput) (*ProvisionProductOutput, error) { req, out := c.ProvisionProductRequest(input) err := req.Send() @@ -373,6 +503,8 @@ const opScanProvisionedProducts = "ScanProvisionedProducts" // value can be used to capture response data after the request's "Send" method // is called. // +// See ScanProvisionedProducts for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -407,8 +539,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). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Service Catalog's +// API operation ScanProvisionedProducts for usage and error information. +// +// Returned Error Codes: +// * InvalidParametersException +// One or more parameters provided to the operation are invalid. +// func (c *ServiceCatalog) ScanProvisionedProducts(input *ScanProvisionedProductsInput) (*ScanProvisionedProductsOutput, error) { req, out := c.ScanProvisionedProductsRequest(input) err := req.Send() @@ -422,6 +568,8 @@ const opSearchProducts = "SearchProducts" // value can be used to capture response data after the request's "Send" method // is called. // +// See SearchProducts for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -456,11 +604,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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Service Catalog's +// API operation SearchProducts for usage and error information. +// +// Returned Error Codes: +// * InvalidParametersException +// One or more parameters provided to the operation are invalid. +// func (c *ServiceCatalog) SearchProducts(input *SearchProductsInput) (*SearchProductsOutput, error) { req, out := c.SearchProductsRequest(input) err := req.Send() @@ -474,6 +636,8 @@ const opTerminateProvisionedProduct = "TerminateProvisionedProduct" // value can be used to capture response data after the request's "Send" method // is called. // +// See TerminateProvisionedProduct for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -508,6 +672,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 +682,18 @@ func (c *ServiceCatalog) TerminateProvisionedProductRequest(input *TerminateProv // object. // // You can check the status of this request using the DescribeRecord operation. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Service Catalog's +// API operation TerminateProvisionedProduct for usage and error information. +// +// Returned Error Codes: +// * ResourceNotFoundException +// The specified resource was not found. +// func (c *ServiceCatalog) TerminateProvisionedProduct(input *TerminateProvisionedProductInput) (*TerminateProvisionedProductOutput, error) { req, out := c.TerminateProvisionedProductRequest(input) err := req.Send() @@ -529,6 +707,8 @@ const opUpdateProvisionedProduct = "UpdateProvisionedProduct" // value can be used to capture response data after the request's "Send" method // is called. // +// See UpdateProvisionedProduct for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -563,6 +743,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 +752,21 @@ func (c *ServiceCatalog) UpdateProvisionedProductRequest(input *UpdateProvisione // object entirely. // // You can check the status of this request using the DescribeRecord operation. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Service Catalog's +// API operation UpdateProvisionedProduct for usage and error information. +// +// Returned Error Codes: +// * InvalidParametersException +// One or more parameters provided to the operation are invalid. +// +// * ResourceNotFoundException +// The specified resource was not found. +// 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..679af7f7eec 100644 --- a/service/ses/api.go +++ b/service/ses/api.go @@ -20,6 +20,8 @@ const opCloneReceiptRuleSet = "CloneReceiptRuleSet" // value can be used to capture response data after the request's "Send" method // is called. // +// See CloneReceiptRuleSet for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -54,6 +56,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 +66,25 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Email Service's +// API operation CloneReceiptRuleSet for usage and error information. +// +// Returned Error Codes: +// * RuleSetDoesNotExist +// Indicates that the provided receipt rule set does not exist. +// +// * AlreadyExists +// Indicates that a resource could not be created due to a naming conflict. +// +// * LimitExceeded +// Indicates that a resource could not be created due to service limits. For +// a list of Amazon SES limits, see the Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/limits.html). +// func (c *SES) CloneReceiptRuleSet(input *CloneReceiptRuleSetInput) (*CloneReceiptRuleSetOutput, error) { req, out := c.CloneReceiptRuleSetRequest(input) err := req.Send() @@ -75,6 +98,8 @@ const opCreateReceiptFilter = "CreateReceiptFilter" // value can be used to capture response data after the request's "Send" method // is called. // +// See CreateReceiptFilter for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -109,12 +134,30 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Email Service's +// API operation CreateReceiptFilter for usage and error information. +// +// Returned Error Codes: +// * LimitExceeded +// Indicates that a resource could not be created due to service limits. For +// a list of Amazon SES limits, see the Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/limits.html). +// +// * AlreadyExists +// Indicates that a resource could not be created due to a naming conflict. +// func (c *SES) CreateReceiptFilter(input *CreateReceiptFilterInput) (*CreateReceiptFilterOutput, error) { req, out := c.CreateReceiptFilterRequest(input) err := req.Send() @@ -128,6 +171,8 @@ const opCreateReceiptRule = "CreateReceiptRule" // value can be used to capture response data after the request's "Send" method // is called. // +// See CreateReceiptRule for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -162,12 +207,53 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Email Service's +// API operation CreateReceiptRule for usage and error information. +// +// Returned Error Codes: +// * InvalidSnsTopic +// Indicates that the provided Amazon SNS topic is invalid, or that Amazon SES +// could not publish to the topic, possibly due to permissions issues. For information +// about giving permissions, see the Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/receiving-email-permissions.html). +// +// * InvalidS3Configuration +// Indicates that the provided Amazon S3 bucket or AWS KMS encryption key is +// invalid, or that Amazon SES could not publish to the bucket, possibly due +// to permissions issues. For information about giving permissions, see the +// Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/receiving-email-permissions.html). +// +// * InvalidLambdaFunction +// Indicates that the provided AWS Lambda function is invalid, or that Amazon +// SES could not execute the provided function, possibly due to permissions +// issues. For information about giving permissions, see the Amazon SES Developer +// Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/receiving-email-permissions.html). +// +// * AlreadyExists +// Indicates that a resource could not be created due to a naming conflict. +// +// * RuleDoesNotExist +// Indicates that the provided receipt rule does not exist. +// +// * RuleSetDoesNotExist +// Indicates that the provided receipt rule set does not exist. +// +// * LimitExceeded +// Indicates that a resource could not be created due to service limits. For +// a list of Amazon SES limits, see the Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/limits.html). +// func (c *SES) CreateReceiptRule(input *CreateReceiptRuleInput) (*CreateReceiptRuleOutput, error) { req, out := c.CreateReceiptRuleRequest(input) err := req.Send() @@ -181,6 +267,8 @@ const opCreateReceiptRuleSet = "CreateReceiptRuleSet" // value can be used to capture response data after the request's "Send" method // is called. // +// See CreateReceiptRuleSet for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -215,12 +303,30 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Email Service's +// API operation CreateReceiptRuleSet for usage and error information. +// +// Returned Error Codes: +// * AlreadyExists +// Indicates that a resource could not be created due to a naming conflict. +// +// * LimitExceeded +// Indicates that a resource could not be created due to service limits. For +// a list of Amazon SES limits, see the Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/limits.html). +// func (c *SES) CreateReceiptRuleSet(input *CreateReceiptRuleSetInput) (*CreateReceiptRuleSetOutput, error) { req, out := c.CreateReceiptRuleSetRequest(input) err := req.Send() @@ -234,6 +340,8 @@ const opDeleteIdentity = "DeleteIdentity" // value can be used to capture response data after the request's "Send" method // is called. // +// See DeleteIdentity for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -268,10 +376,19 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Email Service's +// API operation DeleteIdentity for usage and error information. func (c *SES) DeleteIdentity(input *DeleteIdentityInput) (*DeleteIdentityOutput, error) { req, out := c.DeleteIdentityRequest(input) err := req.Send() @@ -285,6 +402,8 @@ const opDeleteIdentityPolicy = "DeleteIdentityPolicy" // value can be used to capture response data after the request's "Send" method // is called. // +// See DeleteIdentityPolicy for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -319,6 +438,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 +452,13 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Email Service's +// API operation DeleteIdentityPolicy for usage and error information. func (c *SES) DeleteIdentityPolicy(input *DeleteIdentityPolicyInput) (*DeleteIdentityPolicyOutput, error) { req, out := c.DeleteIdentityPolicyRequest(input) err := req.Send() @@ -344,6 +472,8 @@ const opDeleteReceiptFilter = "DeleteReceiptFilter" // value can be used to capture response data after the request's "Send" method // is called. // +// See DeleteReceiptFilter for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -378,12 +508,21 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Email Service's +// API operation DeleteReceiptFilter for usage and error information. func (c *SES) DeleteReceiptFilter(input *DeleteReceiptFilterInput) (*DeleteReceiptFilterOutput, error) { req, out := c.DeleteReceiptFilterRequest(input) err := req.Send() @@ -397,6 +536,8 @@ const opDeleteReceiptRule = "DeleteReceiptRule" // value can be used to capture response data after the request's "Send" method // is called. // +// See DeleteReceiptRule for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -431,12 +572,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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Email Service's +// API operation DeleteReceiptRule for usage and error information. +// +// Returned Error Codes: +// * RuleSetDoesNotExist +// Indicates that the provided receipt rule set does not exist. +// func (c *SES) DeleteReceiptRule(input *DeleteReceiptRuleInput) (*DeleteReceiptRuleOutput, error) { req, out := c.DeleteReceiptRuleRequest(input) err := req.Send() @@ -450,6 +605,8 @@ const opDeleteReceiptRuleSet = "DeleteReceiptRuleSet" // value can be used to capture response data after the request's "Send" method // is called. // +// See DeleteReceiptRuleSet for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -484,6 +641,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 +651,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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Email Service's +// API operation DeleteReceiptRuleSet for usage and error information. +// +// Returned Error Codes: +// * CannotDelete +// Indicates that the delete operation could not be completed. +// func (c *SES) DeleteReceiptRuleSet(input *DeleteReceiptRuleSetInput) (*DeleteReceiptRuleSetOutput, error) { req, out := c.DeleteReceiptRuleSetRequest(input) err := req.Send() @@ -505,6 +676,8 @@ const opDeleteVerifiedEmailAddress = "DeleteVerifiedEmailAddress" // value can be used to capture response data after the request's "Send" method // is called. // +// See DeleteVerifiedEmailAddress for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -541,12 +714,21 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Email Service's +// API operation DeleteVerifiedEmailAddress for usage and error information. func (c *SES) DeleteVerifiedEmailAddress(input *DeleteVerifiedEmailAddressInput) (*DeleteVerifiedEmailAddressOutput, error) { req, out := c.DeleteVerifiedEmailAddressRequest(input) err := req.Send() @@ -560,6 +742,8 @@ const opDescribeActiveReceiptRuleSet = "DescribeActiveReceiptRuleSet" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeActiveReceiptRuleSet for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -594,6 +778,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 +787,13 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Email Service's +// API operation DescribeActiveReceiptRuleSet for usage and error information. func (c *SES) DescribeActiveReceiptRuleSet(input *DescribeActiveReceiptRuleSetInput) (*DescribeActiveReceiptRuleSetOutput, error) { req, out := c.DescribeActiveReceiptRuleSetRequest(input) err := req.Send() @@ -614,6 +807,8 @@ const opDescribeReceiptRule = "DescribeReceiptRule" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeReceiptRule for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -648,12 +843,29 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Email Service's +// API operation DescribeReceiptRule for usage and error information. +// +// Returned Error Codes: +// * RuleDoesNotExist +// Indicates that the provided receipt rule does not exist. +// +// * RuleSetDoesNotExist +// Indicates that the provided receipt rule set does not exist. +// func (c *SES) DescribeReceiptRule(input *DescribeReceiptRuleInput) (*DescribeReceiptRuleOutput, error) { req, out := c.DescribeReceiptRuleRequest(input) err := req.Send() @@ -667,6 +879,8 @@ const opDescribeReceiptRuleSet = "DescribeReceiptRuleSet" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeReceiptRuleSet for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -701,12 +915,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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Email Service's +// API operation DescribeReceiptRuleSet for usage and error information. +// +// Returned Error Codes: +// * RuleSetDoesNotExist +// Indicates that the provided receipt rule set does not exist. +// func (c *SES) DescribeReceiptRuleSet(input *DescribeReceiptRuleSetInput) (*DescribeReceiptRuleSetOutput, error) { req, out := c.DescribeReceiptRuleSetRequest(input) err := req.Send() @@ -720,6 +948,8 @@ const opGetIdentityDkimAttributes = "GetIdentityDkimAttributes" // value can be used to capture response data after the request's "Send" method // is called. // +// See GetIdentityDkimAttributes for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -754,6 +984,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 +1008,13 @@ 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). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Email Service's +// API operation GetIdentityDkimAttributes for usage and error information. func (c *SES) GetIdentityDkimAttributes(input *GetIdentityDkimAttributesInput) (*GetIdentityDkimAttributesOutput, error) { req, out := c.GetIdentityDkimAttributesRequest(input) err := req.Send() @@ -789,6 +1028,8 @@ const opGetIdentityMailFromDomainAttributes = "GetIdentityMailFromDomainAttribut // value can be used to capture response data after the request's "Send" method // is called. // +// See GetIdentityMailFromDomainAttributes for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -823,11 +1064,20 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Email Service's +// API operation GetIdentityMailFromDomainAttributes for usage and error information. func (c *SES) GetIdentityMailFromDomainAttributes(input *GetIdentityMailFromDomainAttributesInput) (*GetIdentityMailFromDomainAttributesOutput, error) { req, out := c.GetIdentityMailFromDomainAttributesRequest(input) err := req.Send() @@ -841,6 +1091,8 @@ const opGetIdentityNotificationAttributes = "GetIdentityNotificationAttributes" // value can be used to capture response data after the request's "Send" method // is called. // +// See GetIdentityNotificationAttributes for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -875,6 +1127,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 +1137,13 @@ 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). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Email Service's +// API operation GetIdentityNotificationAttributes for usage and error information. func (c *SES) GetIdentityNotificationAttributes(input *GetIdentityNotificationAttributesInput) (*GetIdentityNotificationAttributesOutput, error) { req, out := c.GetIdentityNotificationAttributesRequest(input) err := req.Send() @@ -896,6 +1157,8 @@ const opGetIdentityPolicies = "GetIdentityPolicies" // value can be used to capture response data after the request's "Send" method // is called. // +// See GetIdentityPolicies for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -930,6 +1193,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 +1208,13 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Email Service's +// API operation GetIdentityPolicies for usage and error information. func (c *SES) GetIdentityPolicies(input *GetIdentityPoliciesInput) (*GetIdentityPoliciesOutput, error) { req, out := c.GetIdentityPoliciesRequest(input) err := req.Send() @@ -956,6 +1228,8 @@ const opGetIdentityVerificationAttributes = "GetIdentityVerificationAttributes" // value can be used to capture response data after the request's "Send" method // is called. // +// See GetIdentityVerificationAttributes for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -990,12 +1264,21 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Email Service's +// API operation GetIdentityVerificationAttributes for usage and error information. func (c *SES) GetIdentityVerificationAttributes(input *GetIdentityVerificationAttributesInput) (*GetIdentityVerificationAttributesOutput, error) { req, out := c.GetIdentityVerificationAttributesRequest(input) err := req.Send() @@ -1009,6 +1292,8 @@ const opGetSendQuota = "GetSendQuota" // value can be used to capture response data after the request's "Send" method // is called. // +// See GetSendQuota for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1043,9 +1328,18 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Email Service's +// API operation GetSendQuota for usage and error information. func (c *SES) GetSendQuota(input *GetSendQuotaInput) (*GetSendQuotaOutput, error) { req, out := c.GetSendQuotaRequest(input) err := req.Send() @@ -1059,6 +1353,8 @@ const opGetSendStatistics = "GetSendStatistics" // value can be used to capture response data after the request's "Send" method // is called. // +// See GetSendStatistics for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1093,12 +1389,21 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Email Service's +// API operation GetSendStatistics for usage and error information. func (c *SES) GetSendStatistics(input *GetSendStatisticsInput) (*GetSendStatisticsOutput, error) { req, out := c.GetSendStatisticsRequest(input) err := req.Send() @@ -1112,6 +1417,8 @@ const opListIdentities = "ListIdentities" // value can be used to capture response data after the request's "Send" method // is called. // +// See ListIdentities for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1152,10 +1459,19 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Email Service's +// API operation ListIdentities for usage and error information. func (c *SES) ListIdentities(input *ListIdentitiesInput) (*ListIdentitiesOutput, error) { req, out := c.ListIdentitiesRequest(input) err := req.Send() @@ -1194,6 +1510,8 @@ const opListIdentityPolicies = "ListIdentityPolicies" // value can be used to capture response data after the request's "Send" method // is called. // +// See ListIdentityPolicies for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1228,6 +1546,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 +1560,13 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Email Service's +// API operation ListIdentityPolicies for usage and error information. func (c *SES) ListIdentityPolicies(input *ListIdentityPoliciesInput) (*ListIdentityPoliciesOutput, error) { req, out := c.ListIdentityPoliciesRequest(input) err := req.Send() @@ -1253,6 +1580,8 @@ const opListReceiptFilters = "ListReceiptFilters" // value can be used to capture response data after the request's "Send" method // is called. // +// See ListReceiptFilters for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1287,12 +1616,21 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Email Service's +// API operation ListReceiptFilters for usage and error information. func (c *SES) ListReceiptFilters(input *ListReceiptFiltersInput) (*ListReceiptFiltersOutput, error) { req, out := c.ListReceiptFiltersRequest(input) err := req.Send() @@ -1306,6 +1644,8 @@ const opListReceiptRuleSets = "ListReceiptRuleSets" // value can be used to capture response data after the request's "Send" method // is called. // +// See ListReceiptRuleSets for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1340,6 +1680,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 +1691,13 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Email Service's +// API operation ListReceiptRuleSets for usage and error information. func (c *SES) ListReceiptRuleSets(input *ListReceiptRuleSetsInput) (*ListReceiptRuleSetsOutput, error) { req, out := c.ListReceiptRuleSetsRequest(input) err := req.Send() @@ -1362,6 +1711,8 @@ const opListVerifiedEmailAddresses = "ListVerifiedEmailAddresses" // value can be used to capture response data after the request's "Send" method // is called. // +// See ListVerifiedEmailAddresses for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1396,12 +1747,21 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Email Service's +// API operation ListVerifiedEmailAddresses for usage and error information. func (c *SES) ListVerifiedEmailAddresses(input *ListVerifiedEmailAddressesInput) (*ListVerifiedEmailAddressesOutput, error) { req, out := c.ListVerifiedEmailAddressesRequest(input) err := req.Send() @@ -1415,6 +1775,8 @@ const opPutIdentityPolicy = "PutIdentityPolicy" // value can be used to capture response data after the request's "Send" method // is called. // +// See PutIdentityPolicy for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1449,6 +1811,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 +1824,19 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Email Service's +// API operation PutIdentityPolicy for usage and error information. +// +// Returned Error Codes: +// * InvalidPolicy +// Indicates that the provided policy is invalid. Check the error stack for +// more information about what caused the error. +// func (c *SES) PutIdentityPolicy(input *PutIdentityPolicyInput) (*PutIdentityPolicyOutput, error) { req, out := c.PutIdentityPolicyRequest(input) err := req.Send() @@ -1473,6 +1850,8 @@ const opReorderReceiptRuleSet = "ReorderReceiptRuleSet" // value can be used to capture response data after the request's "Send" method // is called. // +// See ReorderReceiptRuleSet for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1507,6 +1886,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 +1898,21 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Email Service's +// API operation ReorderReceiptRuleSet for usage and error information. +// +// Returned Error Codes: +// * RuleSetDoesNotExist +// Indicates that the provided receipt rule set does not exist. +// +// * RuleDoesNotExist +// Indicates that the provided receipt rule does not exist. +// func (c *SES) ReorderReceiptRuleSet(input *ReorderReceiptRuleSetInput) (*ReorderReceiptRuleSetOutput, error) { req, out := c.ReorderReceiptRuleSetRequest(input) err := req.Send() @@ -1530,6 +1926,8 @@ const opSendBounce = "SendBounce" // value can be used to capture response data after the request's "Send" method // is called. // +// See SendBounce for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1564,6 +1962,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 +1975,19 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Email Service's +// API operation SendBounce for usage and error information. +// +// Returned Error Codes: +// * MessageRejected +// Indicates that the action failed, and the message could not be sent. Check +// the error stack for more information about what caused the error. +// func (c *SES) SendBounce(input *SendBounceInput) (*SendBounceOutput, error) { req, out := c.SendBounceRequest(input) err := req.Send() @@ -1588,6 +2001,8 @@ const opSendEmail = "SendEmail" // value can be used to capture response data after the request's "Send" method // is called. // +// See SendEmail for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1622,6 +2037,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 +2063,25 @@ 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). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Email Service's +// API operation SendEmail for usage and error information. +// +// Returned Error Codes: +// * MessageRejected +// Indicates that the action failed, and the message could not be sent. Check +// the error stack for more information about what caused the error. +// +// * MailFromDomainNotVerifiedException +// Indicates that the message could not be sent because Amazon SES could not +// read the MX record required to use the specified MAIL FROM domain. For information +// about editing the custom MAIL FROM domain settings for an identity, see the +// Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/mail-from-edit.html). +// func (c *SES) SendEmail(input *SendEmailInput) (*SendEmailOutput, error) { req, out := c.SendEmailRequest(input) err := req.Send() @@ -1659,6 +2095,8 @@ const opSendRawEmail = "SendRawEmail" // value can be used to capture response data after the request's "Send" method // is called. // +// See SendRawEmail for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1693,6 +2131,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 +2189,25 @@ 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). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Email Service's +// API operation SendRawEmail for usage and error information. +// +// Returned Error Codes: +// * MessageRejected +// Indicates that the action failed, and the message could not be sent. Check +// the error stack for more information about what caused the error. +// +// * MailFromDomainNotVerifiedException +// Indicates that the message could not be sent because Amazon SES could not +// read the MX record required to use the specified MAIL FROM domain. For information +// about editing the custom MAIL FROM domain settings for an identity, see the +// Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/mail-from-edit.html). +// func (c *SES) SendRawEmail(input *SendRawEmailInput) (*SendRawEmailOutput, error) { req, out := c.SendRawEmailRequest(input) err := req.Send() @@ -1762,6 +2221,8 @@ const opSetActiveReceiptRuleSet = "SetActiveReceiptRuleSet" // value can be used to capture response data after the request's "Send" method // is called. // +// See SetActiveReceiptRuleSet for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1796,6 +2257,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 +2268,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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Email Service's +// API operation SetActiveReceiptRuleSet for usage and error information. +// +// Returned Error Codes: +// * RuleSetDoesNotExist +// Indicates that the provided receipt rule set does not exist. +// func (c *SES) SetActiveReceiptRuleSet(input *SetActiveReceiptRuleSetInput) (*SetActiveReceiptRuleSetOutput, error) { req, out := c.SetActiveReceiptRuleSetRequest(input) err := req.Send() @@ -1818,6 +2293,8 @@ const opSetIdentityDkimEnabled = "SetIdentityDkimEnabled" // value can be used to capture response data after the request's "Send" method // is called. // +// See SetIdentityDkimEnabled for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1852,6 +2329,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 +2348,13 @@ 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). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Email Service's +// API operation SetIdentityDkimEnabled for usage and error information. func (c *SES) SetIdentityDkimEnabled(input *SetIdentityDkimEnabledInput) (*SetIdentityDkimEnabledOutput, error) { req, out := c.SetIdentityDkimEnabledRequest(input) err := req.Send() @@ -1882,6 +2368,8 @@ const opSetIdentityFeedbackForwardingEnabled = "SetIdentityFeedbackForwardingEna // value can be used to capture response data after the request's "Send" method // is called. // +// See SetIdentityFeedbackForwardingEnabled for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1916,6 +2404,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 +2418,13 @@ 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). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Email Service's +// API operation SetIdentityFeedbackForwardingEnabled for usage and error information. func (c *SES) SetIdentityFeedbackForwardingEnabled(input *SetIdentityFeedbackForwardingEnabledInput) (*SetIdentityFeedbackForwardingEnabledOutput, error) { req, out := c.SetIdentityFeedbackForwardingEnabledRequest(input) err := req.Send() @@ -1941,6 +2438,8 @@ const opSetIdentityHeadersInNotificationsEnabled = "SetIdentityHeadersInNotifica // value can be used to capture response data after the request's "Send" method // is called. // +// See SetIdentityHeadersInNotificationsEnabled for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1975,6 +2474,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 +2484,13 @@ 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). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Email Service's +// API operation SetIdentityHeadersInNotificationsEnabled for usage and error information. func (c *SES) SetIdentityHeadersInNotificationsEnabled(input *SetIdentityHeadersInNotificationsEnabledInput) (*SetIdentityHeadersInNotificationsEnabledOutput, error) { req, out := c.SetIdentityHeadersInNotificationsEnabledRequest(input) err := req.Send() @@ -1996,6 +2504,8 @@ const opSetIdentityMailFromDomain = "SetIdentityMailFromDomain" // value can be used to capture response data after the request's "Send" method // is called. // +// See SetIdentityMailFromDomain for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -2030,6 +2540,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 +2551,13 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Email Service's +// API operation SetIdentityMailFromDomain for usage and error information. func (c *SES) SetIdentityMailFromDomain(input *SetIdentityMailFromDomainInput) (*SetIdentityMailFromDomainOutput, error) { req, out := c.SetIdentityMailFromDomainRequest(input) err := req.Send() @@ -2052,6 +2571,8 @@ const opSetIdentityNotificationTopic = "SetIdentityNotificationTopic" // value can be used to capture response data after the request's "Send" method // is called. // +// See SetIdentityNotificationTopic for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -2086,6 +2607,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 +2621,13 @@ 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). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Email Service's +// API operation SetIdentityNotificationTopic for usage and error information. func (c *SES) SetIdentityNotificationTopic(input *SetIdentityNotificationTopicInput) (*SetIdentityNotificationTopicOutput, error) { req, out := c.SetIdentityNotificationTopicRequest(input) err := req.Send() @@ -2111,6 +2641,8 @@ const opSetReceiptRulePosition = "SetReceiptRulePosition" // value can be used to capture response data after the request's "Send" method // is called. // +// See SetReceiptRulePosition for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -2145,12 +2677,29 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Email Service's +// API operation SetReceiptRulePosition for usage and error information. +// +// Returned Error Codes: +// * RuleSetDoesNotExist +// Indicates that the provided receipt rule set does not exist. +// +// * RuleDoesNotExist +// Indicates that the provided receipt rule does not exist. +// func (c *SES) SetReceiptRulePosition(input *SetReceiptRulePositionInput) (*SetReceiptRulePositionOutput, error) { req, out := c.SetReceiptRulePositionRequest(input) err := req.Send() @@ -2164,6 +2713,8 @@ const opUpdateReceiptRule = "UpdateReceiptRule" // value can be used to capture response data after the request's "Send" method // is called. // +// See UpdateReceiptRule for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -2198,12 +2749,50 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Email Service's +// API operation UpdateReceiptRule for usage and error information. +// +// Returned Error Codes: +// * InvalidSnsTopic +// Indicates that the provided Amazon SNS topic is invalid, or that Amazon SES +// could not publish to the topic, possibly due to permissions issues. For information +// about giving permissions, see the Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/receiving-email-permissions.html). +// +// * InvalidS3Configuration +// Indicates that the provided Amazon S3 bucket or AWS KMS encryption key is +// invalid, or that Amazon SES could not publish to the bucket, possibly due +// to permissions issues. For information about giving permissions, see the +// Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/receiving-email-permissions.html). +// +// * InvalidLambdaFunction +// Indicates that the provided AWS Lambda function is invalid, or that Amazon +// SES could not execute the provided function, possibly due to permissions +// issues. For information about giving permissions, see the Amazon SES Developer +// Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/receiving-email-permissions.html). +// +// * RuleSetDoesNotExist +// Indicates that the provided receipt rule set does not exist. +// +// * RuleDoesNotExist +// Indicates that the provided receipt rule does not exist. +// +// * LimitExceeded +// Indicates that a resource could not be created due to service limits. For +// a list of Amazon SES limits, see the Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/limits.html). +// func (c *SES) UpdateReceiptRule(input *UpdateReceiptRuleInput) (*UpdateReceiptRuleOutput, error) { req, out := c.UpdateReceiptRuleRequest(input) err := req.Send() @@ -2217,6 +2806,8 @@ const opVerifyDomainDkim = "VerifyDomainDkim" // value can be used to capture response data after the request's "Send" method // is called. // +// See VerifyDomainDkim for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -2251,6 +2842,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 +2859,13 @@ 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). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Email Service's +// API operation VerifyDomainDkim for usage and error information. func (c *SES) VerifyDomainDkim(input *VerifyDomainDkimInput) (*VerifyDomainDkimOutput, error) { req, out := c.VerifyDomainDkimRequest(input) err := req.Send() @@ -2279,6 +2879,8 @@ const opVerifyDomainIdentity = "VerifyDomainIdentity" // value can be used to capture response data after the request's "Send" method // is called. // +// See VerifyDomainIdentity for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -2313,9 +2915,18 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Email Service's +// API operation VerifyDomainIdentity for usage and error information. func (c *SES) VerifyDomainIdentity(input *VerifyDomainIdentityInput) (*VerifyDomainIdentityOutput, error) { req, out := c.VerifyDomainIdentityRequest(input) err := req.Send() @@ -2329,6 +2940,8 @@ const opVerifyEmailAddress = "VerifyEmailAddress" // value can be used to capture response data after the request's "Send" method // is called. // +// See VerifyEmailAddress for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -2365,6 +2978,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 +2987,13 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Email Service's +// API operation VerifyEmailAddress for usage and error information. func (c *SES) VerifyEmailAddress(input *VerifyEmailAddressInput) (*VerifyEmailAddressOutput, error) { req, out := c.VerifyEmailAddressRequest(input) err := req.Send() @@ -2385,6 +3007,8 @@ const opVerifyEmailIdentity = "VerifyEmailIdentity" // value can be used to capture response data after the request's "Send" method // is called. // +// See VerifyEmailIdentity for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -2419,10 +3043,19 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Email Service's +// API operation VerifyEmailIdentity for usage and error information. 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..59524fe6fbd 100644 --- a/service/simpledb/api.go +++ b/service/simpledb/api.go @@ -19,6 +19,8 @@ const opBatchDeleteAttributes = "BatchDeleteAttributes" // value can be used to capture response data after the request's "Send" method // is called. // +// See BatchDeleteAttributes for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -55,6 +57,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 +82,13 @@ func (c *SimpleDB) BatchDeleteAttributesRequest(input *BatchDeleteAttributesInpu // // The following limitations are enforced for this operation: 1 MB request // size 25 item limit per BatchDeleteAttributes operation +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon SimpleDB's +// API operation BatchDeleteAttributes for usage and error information. func (c *SimpleDB) BatchDeleteAttributes(input *BatchDeleteAttributesInput) (*BatchDeleteAttributesOutput, error) { req, out := c.BatchDeleteAttributesRequest(input) err := req.Send() @@ -91,6 +102,8 @@ const opBatchPutAttributes = "BatchPutAttributes" // value can be used to capture response data after the request's "Send" method // is called. // +// See BatchPutAttributes for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -127,6 +140,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 +183,42 @@ 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 +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon SimpleDB's +// API operation BatchPutAttributes for usage and error information. +// +// Returned Error Codes: +// * DuplicateItemName +// The item name was specified more than once. +// +// * InvalidParameterValue +// The value for a parameter is invalid. +// +// * MissingParameter +// The request must contain the specified missing parameter. +// +// * NoSuchDomain +// The specified domain does not exist. +// +// * NumberItemAttributesExceeded +// Too many attributes in this item. +// +// * NumberDomainAttributesExceeded +// Too many attributes in this domain. +// +// * NumberDomainBytesExceeded +// Too many bytes in this domain. +// +// * NumberSubmittedItemsExceeded +// Too many items exist in a single call. +// +// * NumberSubmittedAttributesExceeded +// Too many attributes exist in a single call. +// func (c *SimpleDB) BatchPutAttributes(input *BatchPutAttributesInput) (*BatchPutAttributesOutput, error) { req, out := c.BatchPutAttributesRequest(input) err := req.Send() @@ -181,6 +232,8 @@ const opCreateDomain = "CreateDomain" // value can be used to capture response data after the request's "Send" method // is called. // +// See CreateDomain for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -217,6 +270,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 +282,24 @@ 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/). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon SimpleDB's +// API operation CreateDomain for usage and error information. +// +// Returned Error Codes: +// * InvalidParameterValue +// The value for a parameter is invalid. +// +// * MissingParameter +// The request must contain the specified missing parameter. +// +// * NumberDomainsExceeded +// Too many domains exist per this account. +// func (c *SimpleDB) CreateDomain(input *CreateDomainInput) (*CreateDomainOutput, error) { req, out := c.CreateDomainRequest(input) err := req.Send() @@ -240,6 +313,8 @@ const opDeleteAttributes = "DeleteAttributes" // value can be used to capture response data after the request's "Send" method // is called. // +// See DeleteAttributes for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -276,6 +351,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 +365,27 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon SimpleDB's +// API operation DeleteAttributes for usage and error information. +// +// Returned Error Codes: +// * InvalidParameterValue +// The value for a parameter is invalid. +// +// * MissingParameter +// The request must contain the specified missing parameter. +// +// * NoSuchDomain +// The specified domain does not exist. +// +// * AttributeDoesNotExist +// The specified attribute does not exist. +// func (c *SimpleDB) DeleteAttributes(input *DeleteAttributesInput) (*DeleteAttributesOutput, error) { req, out := c.DeleteAttributesRequest(input) err := req.Send() @@ -301,6 +399,8 @@ const opDeleteDomain = "DeleteDomain" // value can be used to capture response data after the request's "Send" method // is called. // +// See DeleteDomain for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -337,12 +437,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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon SimpleDB's +// API operation DeleteDomain for usage and error information. +// +// Returned Error Codes: +// * MissingParameter +// The request must contain the specified missing parameter. +// func (c *SimpleDB) DeleteDomain(input *DeleteDomainInput) (*DeleteDomainOutput, error) { req, out := c.DeleteDomainRequest(input) err := req.Send() @@ -356,6 +470,8 @@ const opDomainMetadata = "DomainMetadata" // value can be used to capture response data after the request's "Send" method // is called. // +// See DomainMetadata for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -390,9 +506,26 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon SimpleDB's +// API operation DomainMetadata for usage and error information. +// +// Returned Error Codes: +// * MissingParameter +// The request must contain the specified missing parameter. +// +// * NoSuchDomain +// The specified domain does not exist. +// func (c *SimpleDB) DomainMetadata(input *DomainMetadataInput) (*DomainMetadataOutput, error) { req, out := c.DomainMetadataRequest(input) err := req.Send() @@ -406,6 +539,8 @@ const opGetAttributes = "GetAttributes" // value can be used to capture response data after the request's "Send" method // is called. // +// See GetAttributes for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -440,6 +575,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 +587,24 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon SimpleDB's +// API operation GetAttributes for usage and error information. +// +// Returned Error Codes: +// * InvalidParameterValue +// The value for a parameter is invalid. +// +// * MissingParameter +// The request must contain the specified missing parameter. +// +// * NoSuchDomain +// The specified domain does not exist. +// func (c *SimpleDB) GetAttributes(input *GetAttributesInput) (*GetAttributesOutput, error) { req, out := c.GetAttributesRequest(input) err := req.Send() @@ -463,6 +618,8 @@ const opListDomains = "ListDomains" // value can be used to capture response data after the request's "Send" method // is called. // +// See ListDomains for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -503,12 +660,29 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon SimpleDB's +// API operation ListDomains for usage and error information. +// +// Returned Error Codes: +// * InvalidParameterValue +// The value for a parameter is invalid. +// +// * InvalidNextToken +// The specified NextToken is not valid. +// func (c *SimpleDB) ListDomains(input *ListDomainsInput) (*ListDomainsOutput, error) { req, out := c.ListDomainsRequest(input) err := req.Send() @@ -547,6 +721,8 @@ const opPutAttributes = "PutAttributes" // value can be used to capture response data after the request's "Send" method // is called. // +// See PutAttributes for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -583,6 +759,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 +792,36 @@ 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 +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon SimpleDB's +// API operation PutAttributes for usage and error information. +// +// Returned Error Codes: +// * InvalidParameterValue +// The value for a parameter is invalid. +// +// * MissingParameter +// The request must contain the specified missing parameter. +// +// * NoSuchDomain +// The specified domain does not exist. +// +// * NumberDomainAttributesExceeded +// Too many attributes in this domain. +// +// * NumberDomainBytesExceeded +// Too many bytes in this domain. +// +// * NumberItemAttributesExceeded +// Too many attributes in this item. +// +// * AttributeDoesNotExist +// The specified attribute does not exist. +// func (c *SimpleDB) PutAttributes(input *PutAttributesInput) (*PutAttributesOutput, error) { req, out := c.PutAttributesRequest(input) err := req.Send() @@ -627,6 +835,8 @@ const opSelect = "Select" // value can be used to capture response data after the request's "Send" method // is called. // +// See Select for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -667,6 +877,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 +890,43 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon SimpleDB's +// API operation Select for usage and error information. +// +// Returned Error Codes: +// * InvalidParameterValue +// The value for a parameter is invalid. +// +// * InvalidNextToken +// The specified NextToken is not valid. +// +// * InvalidNumberPredicates +// Too many predicates exist in the query expression. +// +// * InvalidNumberValueTests +// Too many predicates exist in the query expression. +// +// * InvalidQueryExpression +// The specified query expression syntax is not valid. +// +// * MissingParameter +// The request must contain the specified missing parameter. +// +// * NoSuchDomain +// The specified domain does not exist. +// +// * RequestTimeout +// A timeout occurred when attempting to query the specified domain with specified +// query expression. +// +// * TooManyRequestedAttributes +// Too many attributes requested. +// 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..06a1dd1d976 100644 --- a/service/snowball/api.go +++ b/service/snowball/api.go @@ -18,6 +18,8 @@ const opCancelJob = "CancelJob" // value can be used to capture response data after the request's "Send" method // is called. // +// See CancelJob for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -52,10 +54,33 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Import/Export Snowball's +// API operation CancelJob for usage and error information. +// +// Returned Error Codes: +// * InvalidResourceException +// The specified resource can't be found. Check the information you provided +// in your last request, and try again. +// +// * InvalidJobStateException +// The action can't be performed because the job's current state doesn't allow +// that action to be performed. +// +// * KMSRequestFailedException +// The provided AWS Key Management Service key lacks the permissions to perform +// the specified CreateJob or UpdateJob action. +// func (c *Snowball) CancelJob(input *CancelJobInput) (*CancelJobOutput, error) { req, out := c.CancelJobRequest(input) err := req.Send() @@ -69,6 +94,8 @@ const opCreateAddress = "CreateAddress" // value can be used to capture response data after the request's "Send" method // is called. // +// See CreateAddress for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -103,11 +130,31 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Import/Export Snowball's +// API operation CreateAddress for usage and error information. +// +// Returned Error Codes: +// * InvalidAddressException +// The address provided was invalid. Check the address with your region's carrier, +// and try again. +// +// * UnsupportedAddressException +// The address is either outside the serviceable area for your region, or an +// error occurred. Check the address with your region's carrier and try again. +// If the issue persists, contact AWS Support. +// func (c *Snowball) CreateAddress(input *CreateAddressInput) (*CreateAddressOutput, error) { req, out := c.CreateAddressRequest(input) err := req.Send() @@ -121,6 +168,8 @@ const opCreateJob = "CreateJob" // value can be used to capture response data after the request's "Send" method // is called. // +// See CreateJob for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -155,10 +204,29 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Import/Export Snowball's +// API operation CreateJob for usage and error information. +// +// Returned Error Codes: +// * InvalidResourceException +// The specified resource can't be found. Check the information you provided +// in your last request, and try again. +// +// * KMSRequestFailedException +// The provided AWS Key Management Service key lacks the permissions to perform +// the specified CreateJob or UpdateJob action. +// func (c *Snowball) CreateJob(input *CreateJobInput) (*CreateJobOutput, error) { req, out := c.CreateJobRequest(input) err := req.Send() @@ -172,6 +240,8 @@ const opDescribeAddress = "DescribeAddress" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeAddress for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -206,8 +276,23 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Import/Export Snowball's +// API operation DescribeAddress for usage and error information. +// +// Returned Error Codes: +// * InvalidResourceException +// The specified resource can't be found. Check the information you provided +// in your last request, and try again. +// func (c *Snowball) DescribeAddress(input *DescribeAddressInput) (*DescribeAddressOutput, error) { req, out := c.DescribeAddressRequest(input) err := req.Send() @@ -221,6 +306,8 @@ const opDescribeAddresses = "DescribeAddresses" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeAddresses for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -261,9 +348,24 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Import/Export Snowball's +// API operation DescribeAddresses for usage and error information. +// +// Returned Error Codes: +// * InvalidResourceException +// The specified resource can't be found. Check the information you provided +// in your last request, and try again. +// func (c *Snowball) DescribeAddresses(input *DescribeAddressesInput) (*DescribeAddressesOutput, error) { req, out := c.DescribeAddressesRequest(input) err := req.Send() @@ -302,6 +404,8 @@ const opDescribeJob = "DescribeJob" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeJob for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -336,8 +440,23 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Import/Export Snowball's +// API operation DescribeJob for usage and error information. +// +// Returned Error Codes: +// * InvalidResourceException +// The specified resource can't be found. Check the information you provided +// in your last request, and try again. +// func (c *Snowball) DescribeJob(input *DescribeJobInput) (*DescribeJobOutput, error) { req, out := c.DescribeJobRequest(input) err := req.Send() @@ -351,6 +470,8 @@ const opGetJobManifest = "GetJobManifest" // value can be used to capture response data after the request's "Send" method // is called. // +// See GetJobManifest for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -385,6 +506,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 +526,23 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Import/Export Snowball's +// API operation GetJobManifest for usage and error information. +// +// Returned Error Codes: +// * InvalidResourceException +// The specified resource can't be found. Check the information you provided +// in your last request, and try again. +// +// * InvalidJobStateException +// The action can't be performed because the job's current state doesn't allow +// that action to be performed. +// func (c *Snowball) GetJobManifest(input *GetJobManifestInput) (*GetJobManifestOutput, error) { req, out := c.GetJobManifestRequest(input) err := req.Send() @@ -416,6 +556,8 @@ const opGetJobUnlockCode = "GetJobUnlockCode" // value can be used to capture response data after the request's "Send" method // is called. // +// See GetJobUnlockCode for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -450,6 +592,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 +607,23 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Import/Export Snowball's +// API operation GetJobUnlockCode for usage and error information. +// +// Returned Error Codes: +// * InvalidResourceException +// The specified resource can't be found. Check the information you provided +// in your last request, and try again. +// +// * InvalidJobStateException +// The action can't be performed because the job's current state doesn't allow +// that action to be performed. +// func (c *Snowball) GetJobUnlockCode(input *GetJobUnlockCodeInput) (*GetJobUnlockCodeOutput, error) { req, out := c.GetJobUnlockCodeRequest(input) err := req.Send() @@ -476,6 +637,8 @@ const opGetSnowballUsage = "GetSnowballUsage" // value can be used to capture response data after the request's "Send" method // is called. // +// See GetSnowballUsage for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -510,12 +673,21 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Import/Export Snowball's +// API operation GetSnowballUsage for usage and error information. func (c *Snowball) GetSnowballUsage(input *GetSnowballUsageInput) (*GetSnowballUsageOutput, error) { req, out := c.GetSnowballUsageRequest(input) err := req.Send() @@ -529,6 +701,8 @@ const opListJobs = "ListJobs" // value can be used to capture response data after the request's "Send" method // is called. // +// See ListJobs for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -569,11 +743,20 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Import/Export Snowball's +// API operation ListJobs for usage and error information. func (c *Snowball) ListJobs(input *ListJobsInput) (*ListJobsOutput, error) { req, out := c.ListJobsRequest(input) err := req.Send() @@ -612,6 +795,8 @@ const opUpdateJob = "UpdateJob" // value can be used to capture response data after the request's "Send" method // is called. // +// See UpdateJob for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -646,9 +831,32 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Import/Export Snowball's +// API operation UpdateJob for usage and error information. +// +// Returned Error Codes: +// * InvalidResourceException +// The specified resource can't be found. Check the information you provided +// in your last request, and try again. +// +// * InvalidJobStateException +// The action can't be performed because the job's current state doesn't allow +// that action to be performed. +// +// * KMSRequestFailedException +// The provided AWS Key Management Service key lacks the permissions to perform +// the specified CreateJob or UpdateJob action. +// 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..8b2592f1bf0 100644 --- a/service/sns/api.go +++ b/service/sns/api.go @@ -19,6 +19,8 @@ const opAddPermission = "AddPermission" // value can be used to capture response data after the request's "Send" method // is called. // +// See AddPermission for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -55,8 +57,31 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Notification Service's +// API operation AddPermission for usage and error information. +// +// Returned Error Codes: +// * InvalidParameter +// Indicates that a request parameter does not comply with the associated constraints. +// +// * InternalError +// Indicates an internal service error. +// +// * AuthorizationError +// Indicates that the user has been denied access to the requested resource. +// +// * NotFound +// Indicates that the requested resource does not exist. +// func (c *SNS) AddPermission(input *AddPermissionInput) (*AddPermissionOutput, error) { req, out := c.AddPermissionRequest(input) err := req.Send() @@ -70,6 +95,8 @@ const opCheckIfPhoneNumberIsOptedOut = "CheckIfPhoneNumberIsOptedOut" // value can be used to capture response data after the request's "Send" method // is called. // +// See CheckIfPhoneNumberIsOptedOut for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -104,12 +131,36 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Notification Service's +// API operation CheckIfPhoneNumberIsOptedOut for usage and error information. +// +// Returned Error Codes: +// * Throttled +// Indicates that the rate at which requests have been submitted for this action +// exceeds the limit for your account. +// +// * InternalError +// Indicates an internal service error. +// +// * AuthorizationError +// Indicates that the user has been denied access to the requested resource. +// +// * InvalidParameter +// Indicates that a request parameter does not comply with the associated constraints. +// func (c *SNS) CheckIfPhoneNumberIsOptedOut(input *CheckIfPhoneNumberIsOptedOutInput) (*CheckIfPhoneNumberIsOptedOutOutput, error) { req, out := c.CheckIfPhoneNumberIsOptedOutRequest(input) err := req.Send() @@ -123,6 +174,8 @@ const opConfirmSubscription = "ConfirmSubscription" // value can be used to capture response data after the request's "Send" method // is called. // +// See ConfirmSubscription for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -157,11 +210,37 @@ 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". +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Notification Service's +// API operation ConfirmSubscription for usage and error information. +// +// Returned Error Codes: +// * SubscriptionLimitExceeded +// Indicates that the customer already owns the maximum allowed number of subscriptions. +// +// * InvalidParameter +// Indicates that a request parameter does not comply with the associated constraints. +// +// * NotFound +// Indicates that the requested resource does not exist. +// +// * InternalError +// Indicates an internal service error. +// +// * AuthorizationError +// Indicates that the user has been denied access to the requested resource. +// func (c *SNS) ConfirmSubscription(input *ConfirmSubscriptionInput) (*ConfirmSubscriptionOutput, error) { req, out := c.ConfirmSubscriptionRequest(input) err := req.Send() @@ -175,6 +254,8 @@ const opCreatePlatformApplication = "CreatePlatformApplication" // value can be used to capture response data after the request's "Send" method // is called. // +// See CreatePlatformApplication for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -209,6 +290,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 +318,24 @@ 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). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Notification Service's +// API operation CreatePlatformApplication for usage and error information. +// +// Returned Error Codes: +// * InvalidParameter +// Indicates that a request parameter does not comply with the associated constraints. +// +// * InternalError +// Indicates an internal service error. +// +// * AuthorizationError +// Indicates that the user has been denied access to the requested resource. +// func (c *SNS) CreatePlatformApplication(input *CreatePlatformApplicationInput) (*CreatePlatformApplicationOutput, error) { req, out := c.CreatePlatformApplicationRequest(input) err := req.Send() @@ -248,6 +349,8 @@ const opCreatePlatformEndpoint = "CreatePlatformEndpoint" // value can be used to capture response data after the request's "Send" method // is called. // +// See CreatePlatformEndpoint for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -282,6 +385,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 +401,27 @@ 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). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Notification Service's +// API operation CreatePlatformEndpoint for usage and error information. +// +// Returned Error Codes: +// * InvalidParameter +// Indicates that a request parameter does not comply with the associated constraints. +// +// * InternalError +// Indicates an internal service error. +// +// * AuthorizationError +// Indicates that the user has been denied access to the requested resource. +// +// * NotFound +// Indicates that the requested resource does not exist. +// func (c *SNS) CreatePlatformEndpoint(input *CreatePlatformEndpointInput) (*CreatePlatformEndpointOutput, error) { req, out := c.CreatePlatformEndpointRequest(input) err := req.Send() @@ -309,6 +435,8 @@ const opCreateTopic = "CreateTopic" // value can be used to capture response data after the request's "Send" method // is called. // +// See CreateTopic for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -343,11 +471,34 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Notification Service's +// API operation CreateTopic for usage and error information. +// +// Returned Error Codes: +// * InvalidParameter +// Indicates that a request parameter does not comply with the associated constraints. +// +// * TopicLimitExceeded +// Indicates that the customer already owns the maximum allowed number of topics. +// +// * InternalError +// Indicates an internal service error. +// +// * AuthorizationError +// Indicates that the user has been denied access to the requested resource. +// func (c *SNS) CreateTopic(input *CreateTopicInput) (*CreateTopicOutput, error) { req, out := c.CreateTopicRequest(input) err := req.Send() @@ -361,6 +512,8 @@ const opDeleteEndpoint = "DeleteEndpoint" // value can be used to capture response data after the request's "Send" method // is called. // +// See DeleteEndpoint for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -397,12 +550,32 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Notification Service's +// API operation DeleteEndpoint for usage and error information. +// +// Returned Error Codes: +// * InvalidParameter +// Indicates that a request parameter does not comply with the associated constraints. +// +// * InternalError +// Indicates an internal service error. +// +// * AuthorizationError +// Indicates that the user has been denied access to the requested resource. +// func (c *SNS) DeleteEndpoint(input *DeleteEndpointInput) (*DeleteEndpointOutput, error) { req, out := c.DeleteEndpointRequest(input) err := req.Send() @@ -416,6 +589,8 @@ const opDeletePlatformApplication = "DeletePlatformApplication" // value can be used to capture response data after the request's "Send" method // is called. // +// See DeletePlatformApplication for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -452,9 +627,29 @@ 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). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Notification Service's +// API operation DeletePlatformApplication for usage and error information. +// +// Returned Error Codes: +// * InvalidParameter +// Indicates that a request parameter does not comply with the associated constraints. +// +// * InternalError +// Indicates an internal service error. +// +// * AuthorizationError +// Indicates that the user has been denied access to the requested resource. +// func (c *SNS) DeletePlatformApplication(input *DeletePlatformApplicationInput) (*DeletePlatformApplicationOutput, error) { req, out := c.DeletePlatformApplicationRequest(input) err := req.Send() @@ -468,6 +663,8 @@ const opDeleteTopic = "DeleteTopic" // value can be used to capture response data after the request's "Send" method // is called. // +// See DeleteTopic for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -504,10 +701,33 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Notification Service's +// API operation DeleteTopic for usage and error information. +// +// Returned Error Codes: +// * InvalidParameter +// Indicates that a request parameter does not comply with the associated constraints. +// +// * InternalError +// Indicates an internal service error. +// +// * AuthorizationError +// Indicates that the user has been denied access to the requested resource. +// +// * NotFound +// Indicates that the requested resource does not exist. +// func (c *SNS) DeleteTopic(input *DeleteTopicInput) (*DeleteTopicOutput, error) { req, out := c.DeleteTopicRequest(input) err := req.Send() @@ -521,6 +741,8 @@ const opGetEndpointAttributes = "GetEndpointAttributes" // value can be used to capture response data after the request's "Send" method // is called. // +// See GetEndpointAttributes for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -555,9 +777,32 @@ 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). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Notification Service's +// API operation GetEndpointAttributes for usage and error information. +// +// Returned Error Codes: +// * InvalidParameter +// Indicates that a request parameter does not comply with the associated constraints. +// +// * InternalError +// Indicates an internal service error. +// +// * AuthorizationError +// Indicates that the user has been denied access to the requested resource. +// +// * NotFound +// Indicates that the requested resource does not exist. +// func (c *SNS) GetEndpointAttributes(input *GetEndpointAttributesInput) (*GetEndpointAttributesOutput, error) { req, out := c.GetEndpointAttributesRequest(input) err := req.Send() @@ -571,6 +816,8 @@ const opGetPlatformApplicationAttributes = "GetPlatformApplicationAttributes" // value can be used to capture response data after the request's "Send" method // is called. // +// See GetPlatformApplicationAttributes for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -605,9 +852,32 @@ 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). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Notification Service's +// API operation GetPlatformApplicationAttributes for usage and error information. +// +// Returned Error Codes: +// * InvalidParameter +// Indicates that a request parameter does not comply with the associated constraints. +// +// * InternalError +// Indicates an internal service error. +// +// * AuthorizationError +// Indicates that the user has been denied access to the requested resource. +// +// * NotFound +// Indicates that the requested resource does not exist. +// func (c *SNS) GetPlatformApplicationAttributes(input *GetPlatformApplicationAttributesInput) (*GetPlatformApplicationAttributesOutput, error) { req, out := c.GetPlatformApplicationAttributesRequest(input) err := req.Send() @@ -621,6 +891,8 @@ const opGetSMSAttributes = "GetSMSAttributes" // value can be used to capture response data after the request's "Send" method // is called. // +// See GetSMSAttributes for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -655,9 +927,33 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Notification Service's +// API operation GetSMSAttributes for usage and error information. +// +// Returned Error Codes: +// * Throttled +// Indicates that the rate at which requests have been submitted for this action +// exceeds the limit for your account. +// +// * InternalError +// Indicates an internal service error. +// +// * AuthorizationError +// Indicates that the user has been denied access to the requested resource. +// +// * InvalidParameter +// Indicates that a request parameter does not comply with the associated constraints. +// func (c *SNS) GetSMSAttributes(input *GetSMSAttributesInput) (*GetSMSAttributesOutput, error) { req, out := c.GetSMSAttributesRequest(input) err := req.Send() @@ -671,6 +967,8 @@ const opGetSubscriptionAttributes = "GetSubscriptionAttributes" // value can be used to capture response data after the request's "Send" method // is called. // +// See GetSubscriptionAttributes for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -705,7 +1003,30 @@ func (c *SNS) GetSubscriptionAttributesRequest(input *GetSubscriptionAttributesI return } +// GetSubscriptionAttributes API operation for Amazon Simple Notification Service. +// // Returns all of the properties of a subscription. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Notification Service's +// API operation GetSubscriptionAttributes for usage and error information. +// +// Returned Error Codes: +// * InvalidParameter +// Indicates that a request parameter does not comply with the associated constraints. +// +// * InternalError +// Indicates an internal service error. +// +// * NotFound +// Indicates that the requested resource does not exist. +// +// * AuthorizationError +// Indicates that the user has been denied access to the requested resource. +// func (c *SNS) GetSubscriptionAttributes(input *GetSubscriptionAttributesInput) (*GetSubscriptionAttributesOutput, error) { req, out := c.GetSubscriptionAttributesRequest(input) err := req.Send() @@ -719,6 +1040,8 @@ const opGetTopicAttributes = "GetTopicAttributes" // value can be used to capture response data after the request's "Send" method // is called. // +// See GetTopicAttributes for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -753,8 +1076,31 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Notification Service's +// API operation GetTopicAttributes for usage and error information. +// +// Returned Error Codes: +// * InvalidParameter +// Indicates that a request parameter does not comply with the associated constraints. +// +// * InternalError +// Indicates an internal service error. +// +// * NotFound +// Indicates that the requested resource does not exist. +// +// * AuthorizationError +// Indicates that the user has been denied access to the requested resource. +// func (c *SNS) GetTopicAttributes(input *GetTopicAttributesInput) (*GetTopicAttributesOutput, error) { req, out := c.GetTopicAttributesRequest(input) err := req.Send() @@ -768,6 +1114,8 @@ const opListEndpointsByPlatformApplication = "ListEndpointsByPlatformApplication // value can be used to capture response data after the request's "Send" method // is called. // +// See ListEndpointsByPlatformApplication for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -808,6 +1156,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 +1166,27 @@ 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). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Notification Service's +// API operation ListEndpointsByPlatformApplication for usage and error information. +// +// Returned Error Codes: +// * InvalidParameter +// Indicates that a request parameter does not comply with the associated constraints. +// +// * InternalError +// Indicates an internal service error. +// +// * AuthorizationError +// Indicates that the user has been denied access to the requested resource. +// +// * NotFound +// Indicates that the requested resource does not exist. +// func (c *SNS) ListEndpointsByPlatformApplication(input *ListEndpointsByPlatformApplicationInput) (*ListEndpointsByPlatformApplicationOutput, error) { req, out := c.ListEndpointsByPlatformApplicationRequest(input) err := req.Send() @@ -854,6 +1225,8 @@ const opListPhoneNumbersOptedOut = "ListPhoneNumbersOptedOut" // value can be used to capture response data after the request's "Send" method // is called. // +// See ListPhoneNumbersOptedOut for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -888,6 +1261,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 +1272,28 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Notification Service's +// API operation ListPhoneNumbersOptedOut for usage and error information. +// +// Returned Error Codes: +// * Throttled +// Indicates that the rate at which requests have been submitted for this action +// exceeds the limit for your account. +// +// * InternalError +// Indicates an internal service error. +// +// * AuthorizationError +// Indicates that the user has been denied access to the requested resource. +// +// * InvalidParameter +// Indicates that a request parameter does not comply with the associated constraints. +// func (c *SNS) ListPhoneNumbersOptedOut(input *ListPhoneNumbersOptedOutInput) (*ListPhoneNumbersOptedOutOutput, error) { req, out := c.ListPhoneNumbersOptedOutRequest(input) err := req.Send() @@ -910,6 +1307,8 @@ const opListPlatformApplications = "ListPlatformApplications" // value can be used to capture response data after the request's "Send" method // is called. // +// See ListPlatformApplications for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -950,6 +1349,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 +1359,24 @@ 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). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Notification Service's +// API operation ListPlatformApplications for usage and error information. +// +// Returned Error Codes: +// * InvalidParameter +// Indicates that a request parameter does not comply with the associated constraints. +// +// * InternalError +// Indicates an internal service error. +// +// * AuthorizationError +// Indicates that the user has been denied access to the requested resource. +// func (c *SNS) ListPlatformApplications(input *ListPlatformApplicationsInput) (*ListPlatformApplicationsOutput, error) { req, out := c.ListPlatformApplicationsRequest(input) err := req.Send() @@ -996,6 +1415,8 @@ const opListSubscriptions = "ListSubscriptions" // value can be used to capture response data after the request's "Send" method // is called. // +// See ListSubscriptions for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1036,10 +1457,30 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Notification Service's +// API operation ListSubscriptions for usage and error information. +// +// Returned Error Codes: +// * InvalidParameter +// Indicates that a request parameter does not comply with the associated constraints. +// +// * InternalError +// Indicates an internal service error. +// +// * AuthorizationError +// Indicates that the user has been denied access to the requested resource. +// func (c *SNS) ListSubscriptions(input *ListSubscriptionsInput) (*ListSubscriptionsOutput, error) { req, out := c.ListSubscriptionsRequest(input) err := req.Send() @@ -1078,6 +1519,8 @@ const opListSubscriptionsByTopic = "ListSubscriptionsByTopic" // value can be used to capture response data after the request's "Send" method // is called. // +// See ListSubscriptionsByTopic for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1118,10 +1561,33 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Notification Service's +// API operation ListSubscriptionsByTopic for usage and error information. +// +// Returned Error Codes: +// * InvalidParameter +// Indicates that a request parameter does not comply with the associated constraints. +// +// * InternalError +// Indicates an internal service error. +// +// * NotFound +// Indicates that the requested resource does not exist. +// +// * AuthorizationError +// Indicates that the user has been denied access to the requested resource. +// func (c *SNS) ListSubscriptionsByTopic(input *ListSubscriptionsByTopicInput) (*ListSubscriptionsByTopicOutput, error) { req, out := c.ListSubscriptionsByTopicRequest(input) err := req.Send() @@ -1160,6 +1626,8 @@ const opListTopics = "ListTopics" // value can be used to capture response data after the request's "Send" method // is called. // +// See ListTopics for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1200,9 +1668,29 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Notification Service's +// API operation ListTopics for usage and error information. +// +// Returned Error Codes: +// * InvalidParameter +// Indicates that a request parameter does not comply with the associated constraints. +// +// * InternalError +// Indicates an internal service error. +// +// * AuthorizationError +// Indicates that the user has been denied access to the requested resource. +// func (c *SNS) ListTopics(input *ListTopicsInput) (*ListTopicsOutput, error) { req, out := c.ListTopicsRequest(input) err := req.Send() @@ -1241,6 +1729,8 @@ const opOptInPhoneNumber = "OptInPhoneNumber" // value can be used to capture response data after the request's "Send" method // is called. // +// See OptInPhoneNumber for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1275,10 +1765,34 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Notification Service's +// API operation OptInPhoneNumber for usage and error information. +// +// Returned Error Codes: +// * Throttled +// Indicates that the rate at which requests have been submitted for this action +// exceeds the limit for your account. +// +// * InternalError +// Indicates an internal service error. +// +// * AuthorizationError +// Indicates that the user has been denied access to the requested resource. +// +// * InvalidParameter +// Indicates that a request parameter does not comply with the associated constraints. +// func (c *SNS) OptInPhoneNumber(input *OptInPhoneNumberInput) (*OptInPhoneNumberOutput, error) { req, out := c.OptInPhoneNumberRequest(input) err := req.Send() @@ -1292,6 +1806,8 @@ const opPublish = "Publish" // value can be used to capture response data after the request's "Send" method // is called. // +// See Publish for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1326,6 +1842,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 +1856,36 @@ 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). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Notification Service's +// API operation Publish for usage and error information. +// +// Returned Error Codes: +// * InvalidParameter +// Indicates that a request parameter does not comply with the associated constraints. +// +// * ParameterValueInvalid +// Indicates that a request parameter does not comply with the associated constraints. +// +// * InternalError +// Indicates an internal service error. +// +// * NotFound +// Indicates that the requested resource does not exist. +// +// * EndpointDisabled +// Exception error indicating endpoint disabled. +// +// * PlatformApplicationDisabled +// Exception error indicating platform application disabled. +// +// * AuthorizationError +// Indicates that the user has been denied access to the requested resource. +// func (c *SNS) Publish(input *PublishInput) (*PublishOutput, error) { req, out := c.PublishRequest(input) err := req.Send() @@ -1351,6 +1899,8 @@ const opRemovePermission = "RemovePermission" // value can be used to capture response data after the request's "Send" method // is called. // +// See RemovePermission for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1387,7 +1937,30 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Notification Service's +// API operation RemovePermission for usage and error information. +// +// Returned Error Codes: +// * InvalidParameter +// Indicates that a request parameter does not comply with the associated constraints. +// +// * InternalError +// Indicates an internal service error. +// +// * AuthorizationError +// Indicates that the user has been denied access to the requested resource. +// +// * NotFound +// Indicates that the requested resource does not exist. +// func (c *SNS) RemovePermission(input *RemovePermissionInput) (*RemovePermissionOutput, error) { req, out := c.RemovePermissionRequest(input) err := req.Send() @@ -1401,6 +1974,8 @@ const opSetEndpointAttributes = "SetEndpointAttributes" // value can be used to capture response data after the request's "Send" method // is called. // +// See SetEndpointAttributes for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1437,9 +2012,32 @@ 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). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Notification Service's +// API operation SetEndpointAttributes for usage and error information. +// +// Returned Error Codes: +// * InvalidParameter +// Indicates that a request parameter does not comply with the associated constraints. +// +// * InternalError +// Indicates an internal service error. +// +// * AuthorizationError +// Indicates that the user has been denied access to the requested resource. +// +// * NotFound +// Indicates that the requested resource does not exist. +// func (c *SNS) SetEndpointAttributes(input *SetEndpointAttributesInput) (*SetEndpointAttributesOutput, error) { req, out := c.SetEndpointAttributesRequest(input) err := req.Send() @@ -1453,6 +2051,8 @@ const opSetPlatformApplicationAttributes = "SetPlatformApplicationAttributes" // value can be used to capture response data after the request's "Send" method // is called. // +// See SetPlatformApplicationAttributes for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1489,11 +2089,34 @@ 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). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Notification Service's +// API operation SetPlatformApplicationAttributes for usage and error information. +// +// Returned Error Codes: +// * InvalidParameter +// Indicates that a request parameter does not comply with the associated constraints. +// +// * InternalError +// Indicates an internal service error. +// +// * AuthorizationError +// Indicates that the user has been denied access to the requested resource. +// +// * NotFound +// Indicates that the requested resource does not exist. +// func (c *SNS) SetPlatformApplicationAttributes(input *SetPlatformApplicationAttributesInput) (*SetPlatformApplicationAttributesOutput, error) { req, out := c.SetPlatformApplicationAttributesRequest(input) err := req.Send() @@ -1507,6 +2130,8 @@ const opSetSMSAttributes = "SetSMSAttributes" // value can be used to capture response data after the request's "Send" method // is called. // +// See SetSMSAttributes for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1541,6 +2166,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 +2175,28 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Notification Service's +// API operation SetSMSAttributes for usage and error information. +// +// Returned Error Codes: +// * InvalidParameter +// Indicates that a request parameter does not comply with the associated constraints. +// +// * Throttled +// Indicates that the rate at which requests have been submitted for this action +// exceeds the limit for your account. +// +// * InternalError +// Indicates an internal service error. +// +// * AuthorizationError +// Indicates that the user has been denied access to the requested resource. +// func (c *SNS) SetSMSAttributes(input *SetSMSAttributesInput) (*SetSMSAttributesOutput, error) { req, out := c.SetSMSAttributesRequest(input) err := req.Send() @@ -1561,6 +2210,8 @@ const opSetSubscriptionAttributes = "SetSubscriptionAttributes" // value can be used to capture response data after the request's "Send" method // is called. // +// See SetSubscriptionAttributes for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1597,7 +2248,30 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Notification Service's +// API operation SetSubscriptionAttributes for usage and error information. +// +// Returned Error Codes: +// * InvalidParameter +// Indicates that a request parameter does not comply with the associated constraints. +// +// * InternalError +// Indicates an internal service error. +// +// * NotFound +// Indicates that the requested resource does not exist. +// +// * AuthorizationError +// Indicates that the user has been denied access to the requested resource. +// func (c *SNS) SetSubscriptionAttributes(input *SetSubscriptionAttributesInput) (*SetSubscriptionAttributesOutput, error) { req, out := c.SetSubscriptionAttributesRequest(input) err := req.Send() @@ -1611,6 +2285,8 @@ const opSetTopicAttributes = "SetTopicAttributes" // value can be used to capture response data after the request's "Send" method // is called. // +// See SetTopicAttributes for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1647,7 +2323,30 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Notification Service's +// API operation SetTopicAttributes for usage and error information. +// +// Returned Error Codes: +// * InvalidParameter +// Indicates that a request parameter does not comply with the associated constraints. +// +// * InternalError +// Indicates an internal service error. +// +// * NotFound +// Indicates that the requested resource does not exist. +// +// * AuthorizationError +// Indicates that the user has been denied access to the requested resource. +// func (c *SNS) SetTopicAttributes(input *SetTopicAttributesInput) (*SetTopicAttributesOutput, error) { req, out := c.SetTopicAttributesRequest(input) err := req.Send() @@ -1661,6 +2360,8 @@ const opSubscribe = "Subscribe" // value can be used to capture response data after the request's "Send" method // is called. // +// See Subscribe for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1695,10 +2396,36 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Notification Service's +// API operation Subscribe for usage and error information. +// +// Returned Error Codes: +// * SubscriptionLimitExceeded +// Indicates that the customer already owns the maximum allowed number of subscriptions. +// +// * InvalidParameter +// Indicates that a request parameter does not comply with the associated constraints. +// +// * InternalError +// Indicates an internal service error. +// +// * NotFound +// Indicates that the requested resource does not exist. +// +// * AuthorizationError +// Indicates that the user has been denied access to the requested resource. +// func (c *SNS) Subscribe(input *SubscribeInput) (*SubscribeOutput, error) { req, out := c.SubscribeRequest(input) err := req.Send() @@ -1712,6 +2439,8 @@ const opUnsubscribe = "Unsubscribe" // value can be used to capture response data after the request's "Send" method // is called. // +// See Unsubscribe for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1748,12 +2477,35 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Notification Service's +// API operation Unsubscribe for usage and error information. +// +// Returned Error Codes: +// * InvalidParameter +// Indicates that a request parameter does not comply with the associated constraints. +// +// * InternalError +// Indicates an internal service error. +// +// * AuthorizationError +// Indicates that the user has been denied access to the requested resource. +// +// * NotFound +// Indicates that the requested resource does not exist. +// 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..78acaf7d9f9 100644 --- a/service/sqs/api.go +++ b/service/sqs/api.go @@ -19,6 +19,8 @@ const opAddPermission = "AddPermission" // value can be used to capture response data after the request's "Send" method // is called. // +// See AddPermission for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -55,6 +57,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 +75,21 @@ 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: +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Queue Service's +// API operation AddPermission for usage and error information. +// +// Returned Error Codes: +// * OverLimit +// The action that you requested would violate a limit. For example, ReceiveMessage +// returns this error if the maximum number of messages inflight has already +// been reached. AddPermission returns this error if the maximum number of permissions +// for the queue has already been reached. +// func (c *SQS) AddPermission(input *AddPermissionInput) (*AddPermissionOutput, error) { req, out := c.AddPermissionRequest(input) err := req.Send() @@ -84,6 +103,8 @@ const opChangeMessageVisibility = "ChangeMessageVisibility" // value can be used to capture response data after the request's "Send" method // is called. // +// See ChangeMessageVisibility for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -120,6 +141,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 +176,21 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Queue Service's +// API operation ChangeMessageVisibility for usage and error information. +// +// Returned Error Codes: +// * AWS.SimpleQueueService.MessageNotInflight +// The message referred to is not in flight. +// +// * ReceiptHandleIsInvalid +// The receipt handle provided is not valid. +// func (c *SQS) ChangeMessageVisibility(input *ChangeMessageVisibilityInput) (*ChangeMessageVisibilityOutput, error) { req, out := c.ChangeMessageVisibilityRequest(input) err := req.Send() @@ -166,6 +204,8 @@ const opChangeMessageVisibilityBatch = "ChangeMessageVisibilityBatch" // value can be used to capture response data after the request's "Send" method // is called. // +// See ChangeMessageVisibilityBatch for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -200,6 +240,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 +254,27 @@ 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: +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Queue Service's +// API operation ChangeMessageVisibilityBatch for usage and error information. +// +// Returned Error Codes: +// * AWS.SimpleQueueService.TooManyEntriesInBatchRequest +// Batch request contains more number of entries than permissible. +// +// * AWS.SimpleQueueService.EmptyBatchRequest +// Batch request does not contain an entry. +// +// * AWS.SimpleQueueService.BatchEntryIdsNotDistinct +// Two or more batch entries have the same Id in the request. +// +// * AWS.SimpleQueueService.InvalidBatchEntryId +// The Id of a batch entry in a batch request does not abide by the specification. +// func (c *SQS) ChangeMessageVisibilityBatch(input *ChangeMessageVisibilityBatchInput) (*ChangeMessageVisibilityBatchOutput, error) { req, out := c.ChangeMessageVisibilityBatchRequest(input) err := req.Send() @@ -225,6 +288,8 @@ const opCreateQueue = "CreateQueue" // value can be used to capture response data after the request's "Send" method // is called. // +// See CreateQueue for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -259,6 +324,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 +349,24 @@ 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: +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Queue Service's +// API operation CreateQueue for usage and error information. +// +// Returned Error Codes: +// * AWS.SimpleQueueService.QueueDeletedRecently +// You must wait 60 seconds after deleting a queue before you can create another +// with the same name. +// +// * QueueAlreadyExists +// A queue already exists with this name. Amazon SQS returns this error only +// if the request includes attributes whose values differ from those of the +// existing queue. +// func (c *SQS) CreateQueue(input *CreateQueueInput) (*CreateQueueOutput, error) { req, out := c.CreateQueueRequest(input) err := req.Send() @@ -295,6 +380,8 @@ const opDeleteMessage = "DeleteMessage" // value can be used to capture response data after the request's "Send" method // is called. // +// See DeleteMessage for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -331,6 +418,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 +440,21 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Queue Service's +// API operation DeleteMessage for usage and error information. +// +// Returned Error Codes: +// * InvalidIdFormat +// The receipt handle is not valid for the current version. +// +// * ReceiptHandleIsInvalid +// The receipt handle provided is not valid. +// func (c *SQS) DeleteMessage(input *DeleteMessageInput) (*DeleteMessageOutput, error) { req, out := c.DeleteMessageRequest(input) err := req.Send() @@ -364,6 +468,8 @@ const opDeleteMessageBatch = "DeleteMessageBatch" // value can be used to capture response data after the request's "Send" method // is called. // +// See DeleteMessageBatch for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -398,6 +504,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 +517,27 @@ 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: +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Queue Service's +// API operation DeleteMessageBatch for usage and error information. +// +// Returned Error Codes: +// * AWS.SimpleQueueService.TooManyEntriesInBatchRequest +// Batch request contains more number of entries than permissible. +// +// * AWS.SimpleQueueService.EmptyBatchRequest +// Batch request does not contain an entry. +// +// * AWS.SimpleQueueService.BatchEntryIdsNotDistinct +// Two or more batch entries have the same Id in the request. +// +// * AWS.SimpleQueueService.InvalidBatchEntryId +// The Id of a batch entry in a batch request does not abide by the specification. +// func (c *SQS) DeleteMessageBatch(input *DeleteMessageBatchInput) (*DeleteMessageBatchOutput, error) { req, out := c.DeleteMessageBatchRequest(input) err := req.Send() @@ -422,6 +551,8 @@ const opDeleteQueue = "DeleteQueue" // value can be used to capture response data after the request's "Send" method // is called. // +// See DeleteQueue for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -458,6 +589,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 +608,13 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Queue Service's +// API operation DeleteQueue for usage and error information. func (c *SQS) DeleteQueue(input *DeleteQueueInput) (*DeleteQueueOutput, error) { req, out := c.DeleteQueueRequest(input) err := req.Send() @@ -488,6 +628,8 @@ const opGetQueueAttributes = "GetQueueAttributes" // value can be used to capture response data after the request's "Send" method // is called. // +// See GetQueueAttributes for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -522,11 +664,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: +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Queue Service's +// API operation GetQueueAttributes for usage and error information. +// +// Returned Error Codes: +// * InvalidAttributeName +// The attribute referred to does not exist. +// func (c *SQS) GetQueueAttributes(input *GetQueueAttributesInput) (*GetQueueAttributesOutput, error) { req, out := c.GetQueueAttributesRequest(input) err := req.Send() @@ -540,6 +696,8 @@ const opGetQueueUrl = "GetQueueUrl" // value can be used to capture response data after the request's "Send" method // is called. // +// See GetQueueUrl for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -574,6 +732,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 +742,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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Queue Service's +// API operation GetQueueUrl for usage and error information. +// +// Returned Error Codes: +// * AWS.SimpleQueueService.NonExistentQueue +// The queue referred to does not exist. +// func (c *SQS) GetQueueUrl(input *GetQueueUrlInput) (*GetQueueUrlOutput, error) { req, out := c.GetQueueUrlRequest(input) err := req.Send() @@ -595,6 +767,8 @@ const opListDeadLetterSourceQueues = "ListDeadLetterSourceQueues" // value can be used to capture response data after the request's "Send" method // is called. // +// See ListDeadLetterSourceQueues for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -629,11 +803,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). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Queue Service's +// API operation ListDeadLetterSourceQueues for usage and error information. +// +// Returned Error Codes: +// * AWS.SimpleQueueService.NonExistentQueue +// The queue referred to does not exist. +// func (c *SQS) ListDeadLetterSourceQueues(input *ListDeadLetterSourceQueuesInput) (*ListDeadLetterSourceQueuesOutput, error) { req, out := c.ListDeadLetterSourceQueuesRequest(input) err := req.Send() @@ -647,6 +835,8 @@ const opListQueues = "ListQueues" // value can be used to capture response data after the request's "Send" method // is called. // +// See ListQueues for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -681,9 +871,18 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Queue Service's +// API operation ListQueues for usage and error information. func (c *SQS) ListQueues(input *ListQueuesInput) (*ListQueuesOutput, error) { req, out := c.ListQueuesRequest(input) err := req.Send() @@ -697,6 +896,8 @@ const opPurgeQueue = "PurgeQueue" // value can be used to capture response data after the request's "Send" method // is called. // +// See PurgeQueue for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -733,6 +934,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 +946,23 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Queue Service's +// API operation PurgeQueue for usage and error information. +// +// Returned Error Codes: +// * AWS.SimpleQueueService.NonExistentQueue +// The queue referred to does not exist. +// +// * AWS.SimpleQueueService.PurgeQueueInProgress +// Indicates that the specified queue previously received a PurgeQueue request +// within the last 60 seconds, the time it can take to delete the messages in +// the queue. +// func (c *SQS) PurgeQueue(input *PurgeQueueInput) (*PurgeQueueOutput, error) { req, out := c.PurgeQueueRequest(input) err := req.Send() @@ -756,6 +976,8 @@ const opReceiveMessage = "ReceiveMessage" // value can be used to capture response data after the request's "Send" method // is called. // +// See ReceiveMessage for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -790,6 +1012,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 +1056,21 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Queue Service's +// API operation ReceiveMessage for usage and error information. +// +// Returned Error Codes: +// * OverLimit +// The action that you requested would violate a limit. For example, ReceiveMessage +// returns this error if the maximum number of messages inflight has already +// been reached. AddPermission returns this error if the maximum number of permissions +// for the queue has already been reached. +// func (c *SQS) ReceiveMessage(input *ReceiveMessageInput) (*ReceiveMessageOutput, error) { req, out := c.ReceiveMessageRequest(input) err := req.Send() @@ -845,6 +1084,8 @@ const opRemovePermission = "RemovePermission" // value can be used to capture response data after the request's "Send" method // is called. // +// See RemovePermission for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -881,8 +1122,17 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Queue Service's +// API operation RemovePermission for usage and error information. func (c *SQS) RemovePermission(input *RemovePermissionInput) (*RemovePermissionOutput, error) { req, out := c.RemovePermissionRequest(input) err := req.Send() @@ -896,6 +1146,8 @@ const opSendMessage = "SendMessage" // value can be used to capture response data after the request's "Send" method // is called. // +// See SendMessage for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -930,6 +1182,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 +1196,21 @@ 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] +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Queue Service's +// API operation SendMessage for usage and error information. +// +// Returned Error Codes: +// * InvalidMessageContents +// The message contains characters outside the allowed set. +// +// * AWS.SimpleQueueService.UnsupportedOperation +// Error code 400. Unsupported operation. +// func (c *SQS) SendMessage(input *SendMessageInput) (*SendMessageOutput, error) { req, out := c.SendMessageRequest(input) err := req.Send() @@ -955,6 +1224,8 @@ const opSendMessageBatch = "SendMessageBatch" // value can be used to capture response data after the request's "Send" method // is called. // +// See SendMessageBatch for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -989,6 +1260,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 +1288,33 @@ 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: +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Queue Service's +// API operation SendMessageBatch for usage and error information. +// +// Returned Error Codes: +// * AWS.SimpleQueueService.TooManyEntriesInBatchRequest +// Batch request contains more number of entries than permissible. +// +// * AWS.SimpleQueueService.EmptyBatchRequest +// Batch request does not contain an entry. +// +// * AWS.SimpleQueueService.BatchEntryIdsNotDistinct +// Two or more batch entries have the same Id in the request. +// +// * AWS.SimpleQueueService.BatchRequestTooLong +// The length of all the messages put together is more than the limit. +// +// * AWS.SimpleQueueService.InvalidBatchEntryId +// The Id of a batch entry in a batch request does not abide by the specification. +// +// * AWS.SimpleQueueService.UnsupportedOperation +// Error code 400. Unsupported operation. +// func (c *SQS) SendMessageBatch(input *SendMessageBatchInput) (*SendMessageBatchOutput, error) { req, out := c.SendMessageBatchRequest(input) err := req.Send() @@ -1028,6 +1328,8 @@ const opSetQueueAttributes = "SetQueueAttributes" // value can be used to capture response data after the request's "Send" method // is called. // +// See SetQueueAttributes for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1064,6 +1366,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 +1376,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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Queue Service's +// API operation SetQueueAttributes for usage and error information. +// +// Returned Error Codes: +// * InvalidAttributeName +// The attribute referred to does not exist. +// 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..040b5d6135b 100644 --- a/service/ssm/api.go +++ b/service/ssm/api.go @@ -18,6 +18,8 @@ const opAddTagsToResource = "AddTagsToResource" // value can be used to capture response data after the request's "Send" method // is called. // +// See AddTagsToResource for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -52,6 +54,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 +74,26 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Systems Management Service's +// API operation AddTagsToResource for usage and error information. +// +// Returned Error Codes: +// * InvalidResourceType +// The resource type is not valid. If you are attempting to tag an instance, +// the instance must be a registered, managed instance. +// +// * InvalidResourceId +// The resource ID is not valid. Verify that you entered the correct ID and +// try again. +// +// * InternalServerError +// An error occurred on the server side. +// func (c *SSM) AddTagsToResource(input *AddTagsToResourceInput) (*AddTagsToResourceOutput, error) { req, out := c.AddTagsToResourceRequest(input) err := req.Send() @@ -83,6 +107,8 @@ const opCancelCommand = "CancelCommand" // value can be used to capture response data after the request's "Send" method // is called. // +// See CancelCommand for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -117,8 +143,32 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Systems Management Service's +// API operation CancelCommand for usage and error information. +// +// Returned Error Codes: +// * InternalServerError +// An error occurred on the server side. +// +// * InvalidCommandId + +// +// * InvalidInstanceId +// The instance is not in valid state. Valid states are: Running, Pending, Stopped, +// Stopping. Invalid states are: Shutting-down and Terminated. +// +// * DuplicateInstanceId +// You cannot specify an instance ID in more than one association. +// func (c *SSM) CancelCommand(input *CancelCommandInput) (*CancelCommandOutput, error) { req, out := c.CancelCommandRequest(input) err := req.Send() @@ -132,6 +182,8 @@ const opCreateActivation = "CreateActivation" // value can be used to capture response data after the request's "Send" method // is called. // +// See CreateActivation for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -166,6 +218,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 +227,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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Systems Management Service's +// API operation CreateActivation for usage and error information. +// +// Returned Error Codes: +// * InternalServerError +// An error occurred on the server side. +// func (c *SSM) CreateActivation(input *CreateActivationInput) (*CreateActivationOutput, error) { req, out := c.CreateActivationRequest(input) err := req.Send() @@ -186,6 +252,8 @@ const opCreateAssociation = "CreateAssociation" // value can be used to capture response data after the request's "Send" method // is called. // +// See CreateAssociation for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -220,6 +288,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 +298,39 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Systems Management Service's +// API operation CreateAssociation for usage and error information. +// +// Returned Error Codes: +// * AssociationAlreadyExists +// The specified association already exists. +// +// * AssociationLimitExceeded +// You can have at most 2,000 active associations. +// +// * InternalServerError +// An error occurred on the server side. +// +// * InvalidDocument +// The specified document does not exist. +// +// * InvalidInstanceId +// The instance is not in valid state. Valid states are: Running, Pending, Stopped, +// Stopping. Invalid states are: Shutting-down and Terminated. +// +// * UnsupportedPlatformType +// The document does not support the platform type of the given instance ID(s). +// For example, you sent an SSM document for a Windows instance to a Linux instance. +// +// * InvalidParameters +// You must specify values for all required parameters in the SSM document. +// You can only supply values to parameters defined in the SSM document. +// func (c *SSM) CreateAssociation(input *CreateAssociationInput) (*CreateAssociationOutput, error) { req, out := c.CreateAssociationRequest(input) err := req.Send() @@ -241,6 +344,8 @@ const opCreateAssociationBatch = "CreateAssociationBatch" // value can be used to capture response data after the request's "Send" method // is called. // +// See CreateAssociationBatch for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -275,6 +380,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 +390,39 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Systems Management Service's +// API operation CreateAssociationBatch for usage and error information. +// +// Returned Error Codes: +// * InternalServerError +// An error occurred on the server side. +// +// * InvalidDocument +// The specified document does not exist. +// +// * InvalidInstanceId +// The instance is not in valid state. Valid states are: Running, Pending, Stopped, +// Stopping. Invalid states are: Shutting-down and Terminated. +// +// * InvalidParameters +// You must specify values for all required parameters in the SSM document. +// You can only supply values to parameters defined in the SSM document. +// +// * DuplicateInstanceId +// You cannot specify an instance ID in more than one association. +// +// * AssociationLimitExceeded +// You can have at most 2,000 active associations. +// +// * UnsupportedPlatformType +// The document does not support the platform type of the given instance ID(s). +// For example, you sent an SSM document for a Windows instance to a Linux instance. +// func (c *SSM) CreateAssociationBatch(input *CreateAssociationBatchInput) (*CreateAssociationBatchOutput, error) { req, out := c.CreateAssociationBatchRequest(input) err := req.Send() @@ -296,6 +436,8 @@ const opCreateDocument = "CreateDocument" // value can be used to capture response data after the request's "Send" method // is called. // +// See CreateDocument for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -330,10 +472,36 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Systems Management Service's +// API operation CreateDocument for usage and error information. +// +// Returned Error Codes: +// * DocumentAlreadyExists +// The specified SSM document already exists. +// +// * MaxDocumentSizeExceeded +// The size limit of an SSM document is 64 KB. +// +// * InternalServerError +// An error occurred on the server side. +// +// * InvalidDocumentContent +// The content for the SSM document is not valid. +// +// * DocumentLimitExceeded +// You can have at most 200 active SSM documents. +// func (c *SSM) CreateDocument(input *CreateDocumentInput) (*CreateDocumentOutput, error) { req, out := c.CreateDocumentRequest(input) err := req.Send() @@ -347,6 +515,8 @@ const opDeleteActivation = "DeleteActivation" // value can be used to capture response data after the request's "Send" method // is called. // +// See DeleteActivation for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -381,10 +551,32 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Systems Management Service's +// API operation DeleteActivation for usage and error information. +// +// Returned Error Codes: +// * InvalidActivationId +// The activation ID is not valid. Verify the you entered the correct ActivationId +// or ActivationCode and try again. +// +// * InvalidActivation +// The activation is not valid. The activation might have been deleted, or the +// ActivationId and the ActivationCode do not match. +// +// * InternalServerError +// An error occurred on the server side. +// func (c *SSM) DeleteActivation(input *DeleteActivationInput) (*DeleteActivationOutput, error) { req, out := c.DeleteActivationRequest(input) err := req.Send() @@ -398,6 +590,8 @@ const opDeleteAssociation = "DeleteAssociation" // value can be used to capture response data after the request's "Send" method // is called. // +// See DeleteAssociation for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -432,12 +626,40 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Systems Management Service's +// API operation DeleteAssociation for usage and error information. +// +// Returned Error Codes: +// * AssociationDoesNotExist +// The specified association does not exist. +// +// * InternalServerError +// An error occurred on the server side. +// +// * InvalidDocument +// The specified document does not exist. +// +// * InvalidInstanceId +// The instance is not in valid state. Valid states are: Running, Pending, Stopped, +// Stopping. Invalid states are: Shutting-down and Terminated. +// +// * TooManyUpdates +// There are concurrent updates for a resource that supports one update at a +// time. +// func (c *SSM) DeleteAssociation(input *DeleteAssociationInput) (*DeleteAssociationOutput, error) { req, out := c.DeleteAssociationRequest(input) err := req.Send() @@ -451,6 +673,8 @@ const opDeleteDocument = "DeleteDocument" // value can be used to capture response data after the request's "Send" method // is called. // +// See DeleteDocument for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -485,10 +709,35 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Systems Management Service's +// API operation DeleteDocument for usage and error information. +// +// Returned Error Codes: +// * InternalServerError +// An error occurred on the server side. +// +// * InvalidDocument +// The specified document does not exist. +// +// * InvalidDocumentOperation +// You attempted to delete a document while it is still shared. You must stop +// sharing the document before you can delete it. +// +// * AssociatedInstances +// You must disassociate an SSM document from all instances before you can delete +// it. +// func (c *SSM) DeleteDocument(input *DeleteDocumentInput) (*DeleteDocumentOutput, error) { req, out := c.DeleteDocumentRequest(input) err := req.Send() @@ -502,6 +751,8 @@ const opDeregisterManagedInstance = "DeregisterManagedInstance" // value can be used to capture response data after the request's "Send" method // is called. // +// See DeregisterManagedInstance for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -536,9 +787,27 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Systems Management Service's +// API operation DeregisterManagedInstance for usage and error information. +// +// Returned Error Codes: +// * InvalidInstanceId +// The instance is not in valid state. Valid states are: Running, Pending, Stopped, +// Stopping. Invalid states are: Shutting-down and Terminated. +// +// * InternalServerError +// An error occurred on the server side. +// func (c *SSM) DeregisterManagedInstance(input *DeregisterManagedInstanceInput) (*DeregisterManagedInstanceOutput, error) { req, out := c.DeregisterManagedInstanceRequest(input) err := req.Send() @@ -552,6 +821,8 @@ const opDescribeActivations = "DescribeActivations" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeActivations for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -592,9 +863,30 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Systems Management Service's +// API operation DescribeActivations for usage and error information. +// +// Returned Error Codes: +// * InvalidFilter +// The filter name is not valid. Verify the you entered the correct name and +// try again. +// +// * InvalidNextToken +// The specified token is not valid. +// +// * InternalServerError +// An error occurred on the server side. +// func (c *SSM) DescribeActivations(input *DescribeActivationsInput) (*DescribeActivationsOutput, error) { req, out := c.DescribeActivationsRequest(input) err := req.Send() @@ -633,6 +925,8 @@ const opDescribeAssociation = "DescribeAssociation" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeAssociation for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -667,7 +961,31 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Systems Management Service's +// API operation DescribeAssociation for usage and error information. +// +// Returned Error Codes: +// * AssociationDoesNotExist +// The specified association does not exist. +// +// * InternalServerError +// An error occurred on the server side. +// +// * InvalidDocument +// The specified document does not exist. +// +// * InvalidInstanceId +// The instance is not in valid state. Valid states are: Running, Pending, Stopped, +// Stopping. Invalid states are: Shutting-down and Terminated. +// func (c *SSM) DescribeAssociation(input *DescribeAssociationInput) (*DescribeAssociationOutput, error) { req, out := c.DescribeAssociationRequest(input) err := req.Send() @@ -681,6 +999,8 @@ const opDescribeDocument = "DescribeDocument" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeDocument for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -715,7 +1035,24 @@ func (c *SSM) DescribeDocumentRequest(input *DescribeDocumentInput) (req *reques return } +// DescribeDocument API operation for Amazon Simple Systems Management Service. +// // Describes the specified SSM document. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Systems Management Service's +// API operation DescribeDocument for usage and error information. +// +// Returned Error Codes: +// * InternalServerError +// An error occurred on the server side. +// +// * InvalidDocument +// The specified document does not exist. +// func (c *SSM) DescribeDocument(input *DescribeDocumentInput) (*DescribeDocumentOutput, error) { req, out := c.DescribeDocumentRequest(input) err := req.Send() @@ -729,6 +1066,8 @@ const opDescribeDocumentPermission = "DescribeDocumentPermission" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeDocumentPermission for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -763,9 +1102,30 @@ 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). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Systems Management Service's +// API operation DescribeDocumentPermission for usage and error information. +// +// Returned Error Codes: +// * InternalServerError +// An error occurred on the server side. +// +// * InvalidDocument +// The specified document does not exist. +// +// * InvalidPermissionType +// The permission type is not supported. Share is the only supported permission +// type. +// func (c *SSM) DescribeDocumentPermission(input *DescribeDocumentPermissionInput) (*DescribeDocumentPermissionOutput, error) { req, out := c.DescribeDocumentPermissionRequest(input) err := req.Send() @@ -779,6 +1139,8 @@ const opDescribeInstanceInformation = "DescribeInstanceInformation" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeInstanceInformation for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -819,12 +1181,39 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Systems Management Service's +// API operation DescribeInstanceInformation for usage and error information. +// +// Returned Error Codes: +// * InternalServerError +// An error occurred on the server side. +// +// * InvalidInstanceId +// The instance is not in valid state. Valid states are: Running, Pending, Stopped, +// Stopping. Invalid states are: Shutting-down and Terminated. +// +// * InvalidNextToken +// The specified token is not valid. +// +// * InvalidInstanceInformationFilterValue +// The specified filter value is not valid. +// +// * InvalidFilterKey +// The specified key is not valid. +// func (c *SSM) DescribeInstanceInformation(input *DescribeInstanceInformationInput) (*DescribeInstanceInformationOutput, error) { req, out := c.DescribeInstanceInformationRequest(input) err := req.Send() @@ -863,6 +1252,8 @@ const opGetDocument = "GetDocument" // value can be used to capture response data after the request's "Send" method // is called. // +// See GetDocument for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -897,7 +1288,24 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Systems Management Service's +// API operation GetDocument for usage and error information. +// +// Returned Error Codes: +// * InternalServerError +// An error occurred on the server side. +// +// * InvalidDocument +// The specified document does not exist. +// func (c *SSM) GetDocument(input *GetDocumentInput) (*GetDocumentOutput, error) { req, out := c.GetDocumentRequest(input) err := req.Send() @@ -911,6 +1319,8 @@ const opListAssociations = "ListAssociations" // value can be used to capture response data after the request's "Send" method // is called. // +// See ListAssociations for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -951,7 +1361,24 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Systems Management Service's +// API operation ListAssociations for usage and error information. +// +// Returned Error Codes: +// * InternalServerError +// An error occurred on the server side. +// +// * InvalidNextToken +// The specified token is not valid. +// func (c *SSM) ListAssociations(input *ListAssociationsInput) (*ListAssociationsOutput, error) { req, out := c.ListAssociationsRequest(input) err := req.Send() @@ -990,6 +1417,8 @@ const opListCommandInvocations = "ListCommandInvocations" // value can be used to capture response data after the request's "Send" method // is called. // +// See ListCommandInvocations for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1030,11 +1459,38 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Systems Management Service's +// API operation ListCommandInvocations for usage and error information. +// +// Returned Error Codes: +// * InternalServerError +// An error occurred on the server side. +// +// * InvalidCommandId + +// +// * InvalidInstanceId +// The instance is not in valid state. Valid states are: Running, Pending, Stopped, +// Stopping. Invalid states are: Shutting-down and Terminated. +// +// * InvalidFilterKey +// The specified key is not valid. +// +// * InvalidNextToken +// The specified token is not valid. +// func (c *SSM) ListCommandInvocations(input *ListCommandInvocationsInput) (*ListCommandInvocationsOutput, error) { req, out := c.ListCommandInvocationsRequest(input) err := req.Send() @@ -1073,6 +1529,8 @@ const opListCommands = "ListCommands" // value can be used to capture response data after the request's "Send" method // is called. // +// See ListCommands for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1113,7 +1571,34 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Systems Management Service's +// API operation ListCommands for usage and error information. +// +// Returned Error Codes: +// * InternalServerError +// An error occurred on the server side. +// +// * InvalidCommandId + +// +// * InvalidInstanceId +// The instance is not in valid state. Valid states are: Running, Pending, Stopped, +// Stopping. Invalid states are: Shutting-down and Terminated. +// +// * InvalidFilterKey +// The specified key is not valid. +// +// * InvalidNextToken +// The specified token is not valid. +// func (c *SSM) ListCommands(input *ListCommandsInput) (*ListCommandsOutput, error) { req, out := c.ListCommandsRequest(input) err := req.Send() @@ -1152,6 +1637,8 @@ const opListDocuments = "ListDocuments" // value can be used to capture response data after the request's "Send" method // is called. // +// See ListDocuments for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1192,7 +1679,27 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Systems Management Service's +// API operation ListDocuments for usage and error information. +// +// Returned Error Codes: +// * InternalServerError +// An error occurred on the server side. +// +// * InvalidNextToken +// The specified token is not valid. +// +// * InvalidFilterKey +// The specified key is not valid. +// func (c *SSM) ListDocuments(input *ListDocumentsInput) (*ListDocumentsOutput, error) { req, out := c.ListDocumentsRequest(input) err := req.Send() @@ -1231,6 +1738,8 @@ const opListTagsForResource = "ListTagsForResource" // value can be used to capture response data after the request's "Send" method // is called. // +// See ListTagsForResource for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1265,7 +1774,29 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Systems Management Service's +// API operation ListTagsForResource for usage and error information. +// +// Returned Error Codes: +// * InvalidResourceType +// The resource type is not valid. If you are attempting to tag an instance, +// the instance must be a registered, managed instance. +// +// * InvalidResourceId +// The resource ID is not valid. Verify that you entered the correct ID and +// try again. +// +// * InternalServerError +// An error occurred on the server side. +// func (c *SSM) ListTagsForResource(input *ListTagsForResourceInput) (*ListTagsForResourceOutput, error) { req, out := c.ListTagsForResourceRequest(input) err := req.Send() @@ -1279,6 +1810,8 @@ const opModifyDocumentPermission = "ModifyDocumentPermission" // value can be used to capture response data after the request's "Send" method // is called. // +// See ModifyDocumentPermission for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1313,10 +1846,39 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Systems Management Service's +// API operation ModifyDocumentPermission for usage and error information. +// +// Returned Error Codes: +// * InternalServerError +// An error occurred on the server side. +// +// * InvalidDocument +// The specified document does not exist. +// +// * InvalidPermissionType +// The permission type is not supported. Share is the only supported permission +// type. +// +// * DocumentPermissionLimit +// The document cannot be shared with more AWS user accounts. You can share +// a document with a maximum of 20 accounts. You can publicly share up to five +// documents. If you need to increase this limit, contact AWS Support. +// +// * DocumentLimitExceeded +// You can have at most 200 active SSM documents. +// func (c *SSM) ModifyDocumentPermission(input *ModifyDocumentPermissionInput) (*ModifyDocumentPermissionOutput, error) { req, out := c.ModifyDocumentPermissionRequest(input) err := req.Send() @@ -1330,6 +1892,8 @@ const opRemoveTagsFromResource = "RemoveTagsFromResource" // value can be used to capture response data after the request's "Send" method // is called. // +// See RemoveTagsFromResource for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1364,7 +1928,29 @@ func (c *SSM) RemoveTagsFromResourceRequest(input *RemoveTagsFromResourceInput) return } +// RemoveTagsFromResource API operation for Amazon Simple Systems Management Service. +// // Removes all tags from the specified resource. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Systems Management Service's +// API operation RemoveTagsFromResource for usage and error information. +// +// Returned Error Codes: +// * InvalidResourceType +// The resource type is not valid. If you are attempting to tag an instance, +// the instance must be a registered, managed instance. +// +// * InvalidResourceId +// The resource ID is not valid. Verify that you entered the correct ID and +// try again. +// +// * InternalServerError +// An error occurred on the server side. +// func (c *SSM) RemoveTagsFromResource(input *RemoveTagsFromResourceInput) (*RemoveTagsFromResourceOutput, error) { req, out := c.RemoveTagsFromResourceRequest(input) err := req.Send() @@ -1378,6 +1964,8 @@ const opSendCommand = "SendCommand" // value can be used to capture response data after the request's "Send" method // is called. // +// See SendCommand for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1412,7 +2000,56 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Systems Management Service's +// API operation SendCommand for usage and error information. +// +// Returned Error Codes: +// * DuplicateInstanceId +// You cannot specify an instance ID in more than one association. +// +// * InternalServerError +// An error occurred on the server side. +// +// * InvalidInstanceId +// The instance is not in valid state. Valid states are: Running, Pending, Stopped, +// Stopping. Invalid states are: Shutting-down and Terminated. +// +// * InvalidDocument +// The specified document does not exist. +// +// * InvalidOutputFolder +// The S3 bucket does not exist. +// +// * InvalidParameters +// You must specify values for all required parameters in the SSM document. +// You can only supply values to parameters defined in the SSM document. +// +// * UnsupportedPlatformType +// The document does not support the platform type of the given instance ID(s). +// For example, you sent an SSM document for a Windows instance to a Linux instance. +// +// * MaxDocumentSizeExceeded +// The size limit of an SSM document is 64 KB. +// +// * InvalidRole +// The role name can't contain invalid characters. Also verify that you specified +// an IAM role for notifications that includes the required trust policy. For +// information about configuring the IAM role for SSM notifications, see Configuring +// SNS Notifications SSM (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/rc-sns.html) +// in the Amazon Elastic Compute Cloud User Guide . +// +// * InvalidNotificationConfig +// One or more configuration items is not valid. Verify that a valid Amazon +// Resource Name (ARN) was provided for an Amazon SNS topic. +// func (c *SSM) SendCommand(input *SendCommandInput) (*SendCommandOutput, error) { req, out := c.SendCommandRequest(input) err := req.Send() @@ -1426,6 +2063,8 @@ const opUpdateAssociationStatus = "UpdateAssociationStatus" // value can be used to capture response data after the request's "Send" method // is called. // +// See UpdateAssociationStatus for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1460,7 +2099,38 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Systems Management Service's +// API operation UpdateAssociationStatus for usage and error information. +// +// Returned Error Codes: +// * InternalServerError +// An error occurred on the server side. +// +// * InvalidInstanceId +// The instance is not in valid state. Valid states are: Running, Pending, Stopped, +// Stopping. Invalid states are: Shutting-down and Terminated. +// +// * InvalidDocument +// The specified document does not exist. +// +// * AssociationDoesNotExist +// The specified association does not exist. +// +// * StatusUnchanged +// The updated status is the same as the current status. +// +// * TooManyUpdates +// There are concurrent updates for a resource that supports one update at a +// time. +// func (c *SSM) UpdateAssociationStatus(input *UpdateAssociationStatusInput) (*UpdateAssociationStatusOutput, error) { req, out := c.UpdateAssociationStatusRequest(input) err := req.Send() @@ -1474,6 +2144,8 @@ const opUpdateManagedInstanceRole = "UpdateManagedInstanceRole" // value can be used to capture response data after the request's "Send" method // is called. // +// See UpdateManagedInstanceRole for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1508,8 +2180,26 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Systems Management Service's +// API operation UpdateManagedInstanceRole for usage and error information. +// +// Returned Error Codes: +// * InvalidInstanceId +// The instance is not in valid state. Valid states are: Running, Pending, Stopped, +// Stopping. Invalid states are: Shutting-down and Terminated. +// +// * InternalServerError +// An error occurred on the server side. +// 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..478be2396a2 100644 --- a/service/storagegateway/api.go +++ b/service/storagegateway/api.go @@ -18,6 +18,8 @@ const opActivateGateway = "ActivateGateway" // value can be used to capture response data after the request's "Send" method // is called. // +// See ActivateGateway for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -52,6 +54,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 +65,23 @@ func (c *StorageGateway) ActivateGatewayRequest(input *ActivateGatewayInput) (re // more information, see UpdateGatewayInformation. // // You must turn on the gateway VM before you can activate your gateway. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Storage Gateway's +// API operation ActivateGateway for usage and error information. +// +// Returned Error Codes: +// * InvalidGatewayRequestException +// An exception occurred because an invalid gateway request was issued to the +// service. For more information, see the error and message fields. +// +// * InternalServerError +// An internal server error has occurred during the request. For more information, +// see the error and message fields. +// func (c *StorageGateway) ActivateGateway(input *ActivateGatewayInput) (*ActivateGatewayOutput, error) { req, out := c.ActivateGatewayRequest(input) err := req.Send() @@ -74,6 +95,8 @@ const opAddCache = "AddCache" // value can be used to capture response data after the request's "Send" method // is called. // +// See AddCache for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -108,6 +131,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 +140,23 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Storage Gateway's +// API operation AddCache for usage and error information. +// +// Returned Error Codes: +// * InvalidGatewayRequestException +// An exception occurred because an invalid gateway request was issued to the +// service. For more information, see the error and message fields. +// +// * InternalServerError +// An internal server error has occurred during the request. For more information, +// see the error and message fields. +// func (c *StorageGateway) AddCache(input *AddCacheInput) (*AddCacheOutput, error) { req, out := c.AddCacheRequest(input) err := req.Send() @@ -128,6 +170,8 @@ const opAddTagsToResource = "AddTagsToResource" // value can be used to capture response data after the request's "Send" method // is called. // +// See AddTagsToResource for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -162,6 +206,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 +222,23 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Storage Gateway's +// API operation AddTagsToResource for usage and error information. +// +// Returned Error Codes: +// * InvalidGatewayRequestException +// An exception occurred because an invalid gateway request was issued to the +// service. For more information, see the error and message fields. +// +// * InternalServerError +// An internal server error has occurred during the request. For more information, +// see the error and message fields. +// func (c *StorageGateway) AddTagsToResource(input *AddTagsToResourceInput) (*AddTagsToResourceOutput, error) { req, out := c.AddTagsToResourceRequest(input) err := req.Send() @@ -189,6 +252,8 @@ const opAddUploadBuffer = "AddUploadBuffer" // value can be used to capture response data after the request's "Send" method // is called. // +// See AddUploadBuffer for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -223,6 +288,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 +297,23 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Storage Gateway's +// API operation AddUploadBuffer for usage and error information. +// +// Returned Error Codes: +// * InvalidGatewayRequestException +// An exception occurred because an invalid gateway request was issued to the +// service. For more information, see the error and message fields. +// +// * InternalServerError +// An internal server error has occurred during the request. For more information, +// see the error and message fields. +// func (c *StorageGateway) AddUploadBuffer(input *AddUploadBufferInput) (*AddUploadBufferOutput, error) { req, out := c.AddUploadBufferRequest(input) err := req.Send() @@ -243,6 +327,8 @@ const opAddWorkingStorage = "AddWorkingStorage" // value can be used to capture response data after the request's "Send" method // is called. // +// See AddWorkingStorage for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -277,6 +363,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 +376,23 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Storage Gateway's +// API operation AddWorkingStorage for usage and error information. +// +// Returned Error Codes: +// * InvalidGatewayRequestException +// An exception occurred because an invalid gateway request was issued to the +// service. For more information, see the error and message fields. +// +// * InternalServerError +// An internal server error has occurred during the request. For more information, +// see the error and message fields. +// func (c *StorageGateway) AddWorkingStorage(input *AddWorkingStorageInput) (*AddWorkingStorageOutput, error) { req, out := c.AddWorkingStorageRequest(input) err := req.Send() @@ -301,6 +406,8 @@ const opCancelArchival = "CancelArchival" // value can be used to capture response data after the request's "Send" method // is called. // +// See CancelArchival for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -335,8 +442,27 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Storage Gateway's +// API operation CancelArchival for usage and error information. +// +// Returned Error Codes: +// * InvalidGatewayRequestException +// An exception occurred because an invalid gateway request was issued to the +// service. For more information, see the error and message fields. +// +// * InternalServerError +// An internal server error has occurred during the request. For more information, +// see the error and message fields. +// func (c *StorageGateway) CancelArchival(input *CancelArchivalInput) (*CancelArchivalOutput, error) { req, out := c.CancelArchivalRequest(input) err := req.Send() @@ -350,6 +476,8 @@ const opCancelRetrieval = "CancelRetrieval" // value can be used to capture response data after the request's "Send" method // is called. // +// See CancelRetrieval for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -384,9 +512,28 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Storage Gateway's +// API operation CancelRetrieval for usage and error information. +// +// Returned Error Codes: +// * InvalidGatewayRequestException +// An exception occurred because an invalid gateway request was issued to the +// service. For more information, see the error and message fields. +// +// * InternalServerError +// An internal server error has occurred during the request. For more information, +// see the error and message fields. +// func (c *StorageGateway) CancelRetrieval(input *CancelRetrievalInput) (*CancelRetrievalOutput, error) { req, out := c.CancelRetrievalRequest(input) err := req.Send() @@ -400,6 +547,8 @@ const opCreateCachediSCSIVolume = "CreateCachediSCSIVolume" // value can be used to capture response data after the request's "Send" method // is called. // +// See CreateCachediSCSIVolume for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -434,6 +583,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 +597,23 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Storage Gateway's +// API operation CreateCachediSCSIVolume for usage and error information. +// +// Returned Error Codes: +// * InvalidGatewayRequestException +// An exception occurred because an invalid gateway request was issued to the +// service. For more information, see the error and message fields. +// +// * InternalServerError +// An internal server error has occurred during the request. For more information, +// see the error and message fields. +// func (c *StorageGateway) CreateCachediSCSIVolume(input *CreateCachediSCSIVolumeInput) (*CreateCachediSCSIVolumeOutput, error) { req, out := c.CreateCachediSCSIVolumeRequest(input) err := req.Send() @@ -459,6 +627,8 @@ const opCreateSnapshot = "CreateSnapshot" // value can be used to capture response data after the request's "Send" method // is called. // +// See CreateSnapshot for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -493,6 +663,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 +690,23 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Storage Gateway's +// API operation CreateSnapshot for usage and error information. +// +// Returned Error Codes: +// * InvalidGatewayRequestException +// An exception occurred because an invalid gateway request was issued to the +// service. For more information, see the error and message fields. +// +// * InternalServerError +// An internal server error has occurred during the request. For more information, +// see the error and message fields. +// func (c *StorageGateway) CreateSnapshot(input *CreateSnapshotInput) (*CreateSnapshotOutput, error) { req, out := c.CreateSnapshotRequest(input) err := req.Send() @@ -531,6 +720,8 @@ const opCreateSnapshotFromVolumeRecoveryPoint = "CreateSnapshotFromVolumeRecover // value can be used to capture response data after the request's "Send" method // is called. // +// See CreateSnapshotFromVolumeRecoveryPoint for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -565,6 +756,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 +775,23 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Storage Gateway's +// API operation CreateSnapshotFromVolumeRecoveryPoint for usage and error information. +// +// Returned Error Codes: +// * InvalidGatewayRequestException +// An exception occurred because an invalid gateway request was issued to the +// service. For more information, see the error and message fields. +// +// * InternalServerError +// An internal server error has occurred during the request. For more information, +// see the error and message fields. +// func (c *StorageGateway) CreateSnapshotFromVolumeRecoveryPoint(input *CreateSnapshotFromVolumeRecoveryPointInput) (*CreateSnapshotFromVolumeRecoveryPointOutput, error) { req, out := c.CreateSnapshotFromVolumeRecoveryPointRequest(input) err := req.Send() @@ -595,6 +805,8 @@ const opCreateStorediSCSIVolume = "CreateStorediSCSIVolume" // value can be used to capture response data after the request's "Send" method // is called. // +// See CreateStorediSCSIVolume for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -629,6 +841,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 +856,23 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Storage Gateway's +// API operation CreateStorediSCSIVolume for usage and error information. +// +// Returned Error Codes: +// * InvalidGatewayRequestException +// An exception occurred because an invalid gateway request was issued to the +// service. For more information, see the error and message fields. +// +// * InternalServerError +// An internal server error has occurred during the request. For more information, +// see the error and message fields. +// func (c *StorageGateway) CreateStorediSCSIVolume(input *CreateStorediSCSIVolumeInput) (*CreateStorediSCSIVolumeOutput, error) { req, out := c.CreateStorediSCSIVolumeRequest(input) err := req.Send() @@ -655,6 +886,8 @@ const opCreateTapeWithBarcode = "CreateTapeWithBarcode" // value can be used to capture response data after the request's "Send" method // is called. // +// See CreateTapeWithBarcode for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -689,11 +922,30 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Storage Gateway's +// API operation CreateTapeWithBarcode for usage and error information. +// +// Returned Error Codes: +// * InvalidGatewayRequestException +// An exception occurred because an invalid gateway request was issued to the +// service. For more information, see the error and message fields. +// +// * InternalServerError +// An internal server error has occurred during the request. For more information, +// see the error and message fields. +// func (c *StorageGateway) CreateTapeWithBarcode(input *CreateTapeWithBarcodeInput) (*CreateTapeWithBarcodeOutput, error) { req, out := c.CreateTapeWithBarcodeRequest(input) err := req.Send() @@ -707,6 +959,8 @@ const opCreateTapes = "CreateTapes" // value can be used to capture response data after the request's "Send" method // is called. // +// See CreateTapes for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -741,11 +995,30 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Storage Gateway's +// API operation CreateTapes for usage and error information. +// +// Returned Error Codes: +// * InvalidGatewayRequestException +// An exception occurred because an invalid gateway request was issued to the +// service. For more information, see the error and message fields. +// +// * InternalServerError +// An internal server error has occurred during the request. For more information, +// see the error and message fields. +// func (c *StorageGateway) CreateTapes(input *CreateTapesInput) (*CreateTapesOutput, error) { req, out := c.CreateTapesRequest(input) err := req.Send() @@ -759,6 +1032,8 @@ const opDeleteBandwidthRateLimit = "DeleteBandwidthRateLimit" // value can be used to capture response data after the request's "Send" method // is called. // +// See DeleteBandwidthRateLimit for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -793,11 +1068,30 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Storage Gateway's +// API operation DeleteBandwidthRateLimit for usage and error information. +// +// Returned Error Codes: +// * InvalidGatewayRequestException +// An exception occurred because an invalid gateway request was issued to the +// service. For more information, see the error and message fields. +// +// * InternalServerError +// An internal server error has occurred during the request. For more information, +// see the error and message fields. +// func (c *StorageGateway) DeleteBandwidthRateLimit(input *DeleteBandwidthRateLimitInput) (*DeleteBandwidthRateLimitOutput, error) { req, out := c.DeleteBandwidthRateLimitRequest(input) err := req.Send() @@ -811,6 +1105,8 @@ const opDeleteChapCredentials = "DeleteChapCredentials" // value can be used to capture response data after the request's "Send" method // is called. // +// See DeleteChapCredentials for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -845,8 +1141,27 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Storage Gateway's +// API operation DeleteChapCredentials for usage and error information. +// +// Returned Error Codes: +// * InvalidGatewayRequestException +// An exception occurred because an invalid gateway request was issued to the +// service. For more information, see the error and message fields. +// +// * InternalServerError +// An internal server error has occurred during the request. For more information, +// see the error and message fields. +// func (c *StorageGateway) DeleteChapCredentials(input *DeleteChapCredentialsInput) (*DeleteChapCredentialsOutput, error) { req, out := c.DeleteChapCredentialsRequest(input) err := req.Send() @@ -860,6 +1175,8 @@ const opDeleteGateway = "DeleteGateway" // value can be used to capture response data after the request's "Send" method // is called. // +// See DeleteGateway for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -894,6 +1211,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 +1229,23 @@ 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). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Storage Gateway's +// API operation DeleteGateway for usage and error information. +// +// Returned Error Codes: +// * InvalidGatewayRequestException +// An exception occurred because an invalid gateway request was issued to the +// service. For more information, see the error and message fields. +// +// * InternalServerError +// An internal server error has occurred during the request. For more information, +// see the error and message fields. +// func (c *StorageGateway) DeleteGateway(input *DeleteGatewayInput) (*DeleteGatewayOutput, error) { req, out := c.DeleteGatewayRequest(input) err := req.Send() @@ -923,6 +1259,8 @@ const opDeleteSnapshotSchedule = "DeleteSnapshotSchedule" // value can be used to capture response data after the request's "Send" method // is called. // +// See DeleteSnapshotSchedule for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -957,6 +1295,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 +1307,23 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Storage Gateway's +// API operation DeleteSnapshotSchedule for usage and error information. +// +// Returned Error Codes: +// * InvalidGatewayRequestException +// An exception occurred because an invalid gateway request was issued to the +// service. For more information, see the error and message fields. +// +// * InternalServerError +// An internal server error has occurred during the request. For more information, +// see the error and message fields. +// func (c *StorageGateway) DeleteSnapshotSchedule(input *DeleteSnapshotScheduleInput) (*DeleteSnapshotScheduleOutput, error) { req, out := c.DeleteSnapshotScheduleRequest(input) err := req.Send() @@ -980,6 +1337,8 @@ const opDeleteTape = "DeleteTape" // value can be used to capture response data after the request's "Send" method // is called. // +// See DeleteTape for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1014,7 +1373,26 @@ func (c *StorageGateway) DeleteTapeRequest(input *DeleteTapeInput) (req *request return } +// DeleteTape API operation for AWS Storage Gateway. +// // Deletes the specified virtual tape. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Storage Gateway's +// API operation DeleteTape for usage and error information. +// +// Returned Error Codes: +// * InvalidGatewayRequestException +// An exception occurred because an invalid gateway request was issued to the +// service. For more information, see the error and message fields. +// +// * InternalServerError +// An internal server error has occurred during the request. For more information, +// see the error and message fields. +// func (c *StorageGateway) DeleteTape(input *DeleteTapeInput) (*DeleteTapeOutput, error) { req, out := c.DeleteTapeRequest(input) err := req.Send() @@ -1028,6 +1406,8 @@ const opDeleteTapeArchive = "DeleteTapeArchive" // value can be used to capture response data after the request's "Send" method // is called. // +// See DeleteTapeArchive for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1062,7 +1442,26 @@ 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). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Storage Gateway's +// API operation DeleteTapeArchive for usage and error information. +// +// Returned Error Codes: +// * InvalidGatewayRequestException +// An exception occurred because an invalid gateway request was issued to the +// service. For more information, see the error and message fields. +// +// * InternalServerError +// An internal server error has occurred during the request. For more information, +// see the error and message fields. +// func (c *StorageGateway) DeleteTapeArchive(input *DeleteTapeArchiveInput) (*DeleteTapeArchiveOutput, error) { req, out := c.DeleteTapeArchiveRequest(input) err := req.Send() @@ -1076,6 +1475,8 @@ const opDeleteVolume = "DeleteVolume" // value can be used to capture response data after the request's "Send" method // is called. // +// See DeleteVolume for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1110,6 +1511,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 +1527,23 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Storage Gateway's +// API operation DeleteVolume for usage and error information. +// +// Returned Error Codes: +// * InvalidGatewayRequestException +// An exception occurred because an invalid gateway request was issued to the +// service. For more information, see the error and message fields. +// +// * InternalServerError +// An internal server error has occurred during the request. For more information, +// see the error and message fields. +// func (c *StorageGateway) DeleteVolume(input *DeleteVolumeInput) (*DeleteVolumeOutput, error) { req, out := c.DeleteVolumeRequest(input) err := req.Send() @@ -1137,6 +1557,8 @@ const opDescribeBandwidthRateLimit = "DescribeBandwidthRateLimit" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeBandwidthRateLimit for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1171,6 +1593,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 +1602,23 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Storage Gateway's +// API operation DescribeBandwidthRateLimit for usage and error information. +// +// Returned Error Codes: +// * InvalidGatewayRequestException +// An exception occurred because an invalid gateway request was issued to the +// service. For more information, see the error and message fields. +// +// * InternalServerError +// An internal server error has occurred during the request. For more information, +// see the error and message fields. +// func (c *StorageGateway) DescribeBandwidthRateLimit(input *DescribeBandwidthRateLimitInput) (*DescribeBandwidthRateLimitOutput, error) { req, out := c.DescribeBandwidthRateLimitRequest(input) err := req.Send() @@ -1191,6 +1632,8 @@ const opDescribeCache = "DescribeCache" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeCache for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1225,11 +1668,30 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Storage Gateway's +// API operation DescribeCache for usage and error information. +// +// Returned Error Codes: +// * InvalidGatewayRequestException +// An exception occurred because an invalid gateway request was issued to the +// service. For more information, see the error and message fields. +// +// * InternalServerError +// An internal server error has occurred during the request. For more information, +// see the error and message fields. +// func (c *StorageGateway) DescribeCache(input *DescribeCacheInput) (*DescribeCacheOutput, error) { req, out := c.DescribeCacheRequest(input) err := req.Send() @@ -1243,6 +1705,8 @@ const opDescribeCachediSCSIVolumes = "DescribeCachediSCSIVolumes" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeCachediSCSIVolumes for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1277,12 +1741,31 @@ 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). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Storage Gateway's +// API operation DescribeCachediSCSIVolumes for usage and error information. +// +// Returned Error Codes: +// * InvalidGatewayRequestException +// An exception occurred because an invalid gateway request was issued to the +// service. For more information, see the error and message fields. +// +// * InternalServerError +// An internal server error has occurred during the request. For more information, +// see the error and message fields. +// func (c *StorageGateway) DescribeCachediSCSIVolumes(input *DescribeCachediSCSIVolumesInput) (*DescribeCachediSCSIVolumesOutput, error) { req, out := c.DescribeCachediSCSIVolumesRequest(input) err := req.Send() @@ -1296,6 +1779,8 @@ const opDescribeChapCredentials = "DescribeChapCredentials" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeChapCredentials for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1330,8 +1815,27 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Storage Gateway's +// API operation DescribeChapCredentials for usage and error information. +// +// Returned Error Codes: +// * InvalidGatewayRequestException +// An exception occurred because an invalid gateway request was issued to the +// service. For more information, see the error and message fields. +// +// * InternalServerError +// An internal server error has occurred during the request. For more information, +// see the error and message fields. +// func (c *StorageGateway) DescribeChapCredentials(input *DescribeChapCredentialsInput) (*DescribeChapCredentialsOutput, error) { req, out := c.DescribeChapCredentialsRequest(input) err := req.Send() @@ -1345,6 +1849,8 @@ const opDescribeGatewayInformation = "DescribeGatewayInformation" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeGatewayInformation for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1379,10 +1885,29 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Storage Gateway's +// API operation DescribeGatewayInformation for usage and error information. +// +// Returned Error Codes: +// * InvalidGatewayRequestException +// An exception occurred because an invalid gateway request was issued to the +// service. For more information, see the error and message fields. +// +// * InternalServerError +// An internal server error has occurred during the request. For more information, +// see the error and message fields. +// func (c *StorageGateway) DescribeGatewayInformation(input *DescribeGatewayInformationInput) (*DescribeGatewayInformationOutput, error) { req, out := c.DescribeGatewayInformationRequest(input) err := req.Send() @@ -1396,6 +1921,8 @@ const opDescribeMaintenanceStartTime = "DescribeMaintenanceStartTime" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeMaintenanceStartTime for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1430,8 +1957,27 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Storage Gateway's +// API operation DescribeMaintenanceStartTime for usage and error information. +// +// Returned Error Codes: +// * InvalidGatewayRequestException +// An exception occurred because an invalid gateway request was issued to the +// service. For more information, see the error and message fields. +// +// * InternalServerError +// An internal server error has occurred during the request. For more information, +// see the error and message fields. +// func (c *StorageGateway) DescribeMaintenanceStartTime(input *DescribeMaintenanceStartTimeInput) (*DescribeMaintenanceStartTimeOutput, error) { req, out := c.DescribeMaintenanceStartTimeRequest(input) err := req.Send() @@ -1445,6 +1991,8 @@ const opDescribeSnapshotSchedule = "DescribeSnapshotSchedule" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeSnapshotSchedule for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1479,9 +2027,28 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Storage Gateway's +// API operation DescribeSnapshotSchedule for usage and error information. +// +// Returned Error Codes: +// * InvalidGatewayRequestException +// An exception occurred because an invalid gateway request was issued to the +// service. For more information, see the error and message fields. +// +// * InternalServerError +// An internal server error has occurred during the request. For more information, +// see the error and message fields. +// func (c *StorageGateway) DescribeSnapshotSchedule(input *DescribeSnapshotScheduleInput) (*DescribeSnapshotScheduleOutput, error) { req, out := c.DescribeSnapshotScheduleRequest(input) err := req.Send() @@ -1495,6 +2062,8 @@ const opDescribeStorediSCSIVolumes = "DescribeStorediSCSIVolumes" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeStorediSCSIVolumes for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1529,10 +2098,29 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Storage Gateway's +// API operation DescribeStorediSCSIVolumes for usage and error information. +// +// Returned Error Codes: +// * InvalidGatewayRequestException +// An exception occurred because an invalid gateway request was issued to the +// service. For more information, see the error and message fields. +// +// * InternalServerError +// An internal server error has occurred during the request. For more information, +// see the error and message fields. +// func (c *StorageGateway) DescribeStorediSCSIVolumes(input *DescribeStorediSCSIVolumesInput) (*DescribeStorediSCSIVolumesOutput, error) { req, out := c.DescribeStorediSCSIVolumesRequest(input) err := req.Send() @@ -1546,6 +2134,8 @@ const opDescribeTapeArchives = "DescribeTapeArchives" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeTapeArchives for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1586,11 +2176,30 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Storage Gateway's +// API operation DescribeTapeArchives for usage and error information. +// +// Returned Error Codes: +// * InvalidGatewayRequestException +// An exception occurred because an invalid gateway request was issued to the +// service. For more information, see the error and message fields. +// +// * InternalServerError +// An internal server error has occurred during the request. For more information, +// see the error and message fields. +// func (c *StorageGateway) DescribeTapeArchives(input *DescribeTapeArchivesInput) (*DescribeTapeArchivesOutput, error) { req, out := c.DescribeTapeArchivesRequest(input) err := req.Send() @@ -1629,6 +2238,8 @@ const opDescribeTapeRecoveryPoints = "DescribeTapeRecoveryPoints" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeTapeRecoveryPoints for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1669,12 +2280,31 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Storage Gateway's +// API operation DescribeTapeRecoveryPoints for usage and error information. +// +// Returned Error Codes: +// * InvalidGatewayRequestException +// An exception occurred because an invalid gateway request was issued to the +// service. For more information, see the error and message fields. +// +// * InternalServerError +// An internal server error has occurred during the request. For more information, +// see the error and message fields. +// func (c *StorageGateway) DescribeTapeRecoveryPoints(input *DescribeTapeRecoveryPointsInput) (*DescribeTapeRecoveryPointsOutput, error) { req, out := c.DescribeTapeRecoveryPointsRequest(input) err := req.Send() @@ -1713,6 +2343,8 @@ const opDescribeTapes = "DescribeTapes" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeTapes for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1753,9 +2385,28 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Storage Gateway's +// API operation DescribeTapes for usage and error information. +// +// Returned Error Codes: +// * InvalidGatewayRequestException +// An exception occurred because an invalid gateway request was issued to the +// service. For more information, see the error and message fields. +// +// * InternalServerError +// An internal server error has occurred during the request. For more information, +// see the error and message fields. +// func (c *StorageGateway) DescribeTapes(input *DescribeTapesInput) (*DescribeTapesOutput, error) { req, out := c.DescribeTapesRequest(input) err := req.Send() @@ -1794,6 +2445,8 @@ const opDescribeUploadBuffer = "DescribeUploadBuffer" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeUploadBuffer for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1828,11 +2481,30 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Storage Gateway's +// API operation DescribeUploadBuffer for usage and error information. +// +// Returned Error Codes: +// * InvalidGatewayRequestException +// An exception occurred because an invalid gateway request was issued to the +// service. For more information, see the error and message fields. +// +// * InternalServerError +// An internal server error has occurred during the request. For more information, +// see the error and message fields. +// func (c *StorageGateway) DescribeUploadBuffer(input *DescribeUploadBufferInput) (*DescribeUploadBufferOutput, error) { req, out := c.DescribeUploadBufferRequest(input) err := req.Send() @@ -1846,6 +2518,8 @@ const opDescribeVTLDevices = "DescribeVTLDevices" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeVTLDevices for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1886,10 +2560,29 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Storage Gateway's +// API operation DescribeVTLDevices for usage and error information. +// +// Returned Error Codes: +// * InvalidGatewayRequestException +// An exception occurred because an invalid gateway request was issued to the +// service. For more information, see the error and message fields. +// +// * InternalServerError +// An internal server error has occurred during the request. For more information, +// see the error and message fields. +// func (c *StorageGateway) DescribeVTLDevices(input *DescribeVTLDevicesInput) (*DescribeVTLDevicesOutput, error) { req, out := c.DescribeVTLDevicesRequest(input) err := req.Send() @@ -1928,6 +2621,8 @@ const opDescribeWorkingStorage = "DescribeWorkingStorage" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeWorkingStorage for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1962,6 +2657,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 +2670,23 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Storage Gateway's +// API operation DescribeWorkingStorage for usage and error information. +// +// Returned Error Codes: +// * InvalidGatewayRequestException +// An exception occurred because an invalid gateway request was issued to the +// service. For more information, see the error and message fields. +// +// * InternalServerError +// An internal server error has occurred during the request. For more information, +// see the error and message fields. +// func (c *StorageGateway) DescribeWorkingStorage(input *DescribeWorkingStorageInput) (*DescribeWorkingStorageOutput, error) { req, out := c.DescribeWorkingStorageRequest(input) err := req.Send() @@ -1986,6 +2700,8 @@ const opDisableGateway = "DisableGateway" // value can be used to capture response data after the request's "Send" method // is called. // +// See DisableGateway for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -2020,6 +2736,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 +2745,23 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Storage Gateway's +// API operation DisableGateway for usage and error information. +// +// Returned Error Codes: +// * InvalidGatewayRequestException +// An exception occurred because an invalid gateway request was issued to the +// service. For more information, see the error and message fields. +// +// * InternalServerError +// An internal server error has occurred during the request. For more information, +// see the error and message fields. +// func (c *StorageGateway) DisableGateway(input *DisableGatewayInput) (*DisableGatewayOutput, error) { req, out := c.DisableGatewayRequest(input) err := req.Send() @@ -2040,6 +2775,8 @@ const opListGateways = "ListGateways" // value can be used to capture response data after the request's "Send" method // is called. // +// See ListGateways for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -2080,6 +2817,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 +2830,23 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Storage Gateway's +// API operation ListGateways for usage and error information. +// +// Returned Error Codes: +// * InvalidGatewayRequestException +// An exception occurred because an invalid gateway request was issued to the +// service. For more information, see the error and message fields. +// +// * InternalServerError +// An internal server error has occurred during the request. For more information, +// see the error and message fields. +// func (c *StorageGateway) ListGateways(input *ListGatewaysInput) (*ListGatewaysOutput, error) { req, out := c.ListGatewaysRequest(input) err := req.Send() @@ -2129,6 +2885,8 @@ const opListLocalDisks = "ListLocalDisks" // value can be used to capture response data after the request's "Send" method // is called. // +// See ListLocalDisks for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -2163,6 +2921,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 +2933,23 @@ 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). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Storage Gateway's +// API operation ListLocalDisks for usage and error information. +// +// Returned Error Codes: +// * InvalidGatewayRequestException +// An exception occurred because an invalid gateway request was issued to the +// service. For more information, see the error and message fields. +// +// * InternalServerError +// An internal server error has occurred during the request. For more information, +// see the error and message fields. +// func (c *StorageGateway) ListLocalDisks(input *ListLocalDisksInput) (*ListLocalDisksOutput, error) { req, out := c.ListLocalDisksRequest(input) err := req.Send() @@ -2186,6 +2963,8 @@ const opListTagsForResource = "ListTagsForResource" // value can be used to capture response data after the request's "Send" method // is called. // +// See ListTagsForResource for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -2220,7 +2999,26 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Storage Gateway's +// API operation ListTagsForResource for usage and error information. +// +// Returned Error Codes: +// * InvalidGatewayRequestException +// An exception occurred because an invalid gateway request was issued to the +// service. For more information, see the error and message fields. +// +// * InternalServerError +// An internal server error has occurred during the request. For more information, +// see the error and message fields. +// func (c *StorageGateway) ListTagsForResource(input *ListTagsForResourceInput) (*ListTagsForResourceOutput, error) { req, out := c.ListTagsForResourceRequest(input) err := req.Send() @@ -2234,6 +3032,8 @@ const opListTapes = "ListTapes" // value can be used to capture response data after the request's "Send" method // is called. // +// See ListTapes for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -2268,6 +3068,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 +3081,23 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Storage Gateway's +// API operation ListTapes for usage and error information. +// +// Returned Error Codes: +// * InvalidGatewayRequestException +// An exception occurred because an invalid gateway request was issued to the +// service. For more information, see the error and message fields. +// +// * InternalServerError +// An internal server error has occurred during the request. For more information, +// see the error and message fields. +// func (c *StorageGateway) ListTapes(input *ListTapesInput) (*ListTapesOutput, error) { req, out := c.ListTapesRequest(input) err := req.Send() @@ -2292,6 +3111,8 @@ const opListVolumeInitiators = "ListVolumeInitiators" // value can be used to capture response data after the request's "Send" method // is called. // +// See ListVolumeInitiators for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -2326,8 +3147,27 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Storage Gateway's +// API operation ListVolumeInitiators for usage and error information. +// +// Returned Error Codes: +// * InvalidGatewayRequestException +// An exception occurred because an invalid gateway request was issued to the +// service. For more information, see the error and message fields. +// +// * InternalServerError +// An internal server error has occurred during the request. For more information, +// see the error and message fields. +// func (c *StorageGateway) ListVolumeInitiators(input *ListVolumeInitiatorsInput) (*ListVolumeInitiatorsOutput, error) { req, out := c.ListVolumeInitiatorsRequest(input) err := req.Send() @@ -2341,6 +3181,8 @@ const opListVolumeRecoveryPoints = "ListVolumeRecoveryPoints" // value can be used to capture response data after the request's "Send" method // is called. // +// See ListVolumeRecoveryPoints for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -2375,6 +3217,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 +3226,23 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Storage Gateway's +// API operation ListVolumeRecoveryPoints for usage and error information. +// +// Returned Error Codes: +// * InvalidGatewayRequestException +// An exception occurred because an invalid gateway request was issued to the +// service. For more information, see the error and message fields. +// +// * InternalServerError +// An internal server error has occurred during the request. For more information, +// see the error and message fields. +// func (c *StorageGateway) ListVolumeRecoveryPoints(input *ListVolumeRecoveryPointsInput) (*ListVolumeRecoveryPointsOutput, error) { req, out := c.ListVolumeRecoveryPointsRequest(input) err := req.Send() @@ -2395,6 +3256,8 @@ const opListVolumes = "ListVolumes" // value can be used to capture response data after the request's "Send" method // is called. // +// See ListVolumes for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -2435,6 +3298,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 +3310,23 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Storage Gateway's +// API operation ListVolumes for usage and error information. +// +// Returned Error Codes: +// * InvalidGatewayRequestException +// An exception occurred because an invalid gateway request was issued to the +// service. For more information, see the error and message fields. +// +// * InternalServerError +// An internal server error has occurred during the request. For more information, +// see the error and message fields. +// func (c *StorageGateway) ListVolumes(input *ListVolumesInput) (*ListVolumesOutput, error) { req, out := c.ListVolumesRequest(input) err := req.Send() @@ -2483,6 +3365,8 @@ const opRemoveTagsFromResource = "RemoveTagsFromResource" // value can be used to capture response data after the request's "Send" method // is called. // +// See RemoveTagsFromResource for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -2517,7 +3401,26 @@ func (c *StorageGateway) RemoveTagsFromResourceRequest(input *RemoveTagsFromReso return } +// RemoveTagsFromResource API operation for AWS Storage Gateway. +// // Removes one or more tags from the specified resource. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Storage Gateway's +// API operation RemoveTagsFromResource for usage and error information. +// +// Returned Error Codes: +// * InvalidGatewayRequestException +// An exception occurred because an invalid gateway request was issued to the +// service. For more information, see the error and message fields. +// +// * InternalServerError +// An internal server error has occurred during the request. For more information, +// see the error and message fields. +// func (c *StorageGateway) RemoveTagsFromResource(input *RemoveTagsFromResourceInput) (*RemoveTagsFromResourceOutput, error) { req, out := c.RemoveTagsFromResourceRequest(input) err := req.Send() @@ -2531,6 +3434,8 @@ const opResetCache = "ResetCache" // value can be used to capture response data after the request's "Send" method // is called. // +// See ResetCache for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -2565,6 +3470,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 +3483,23 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Storage Gateway's +// API operation ResetCache for usage and error information. +// +// Returned Error Codes: +// * InvalidGatewayRequestException +// An exception occurred because an invalid gateway request was issued to the +// service. For more information, see the error and message fields. +// +// * InternalServerError +// An internal server error has occurred during the request. For more information, +// see the error and message fields. +// func (c *StorageGateway) ResetCache(input *ResetCacheInput) (*ResetCacheOutput, error) { req, out := c.ResetCacheRequest(input) err := req.Send() @@ -2589,6 +3513,8 @@ const opRetrieveTapeArchive = "RetrieveTapeArchive" // value can be used to capture response data after the request's "Send" method // is called. // +// See RetrieveTapeArchive for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -2623,6 +3549,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 +3559,23 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Storage Gateway's +// API operation RetrieveTapeArchive for usage and error information. +// +// Returned Error Codes: +// * InvalidGatewayRequestException +// An exception occurred because an invalid gateway request was issued to the +// service. For more information, see the error and message fields. +// +// * InternalServerError +// An internal server error has occurred during the request. For more information, +// see the error and message fields. +// func (c *StorageGateway) RetrieveTapeArchive(input *RetrieveTapeArchiveInput) (*RetrieveTapeArchiveOutput, error) { req, out := c.RetrieveTapeArchiveRequest(input) err := req.Send() @@ -2644,6 +3589,8 @@ const opRetrieveTapeRecoveryPoint = "RetrieveTapeRecoveryPoint" // value can be used to capture response data after the request's "Send" method // is called. // +// See RetrieveTapeRecoveryPoint for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -2678,6 +3625,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 +3636,23 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Storage Gateway's +// API operation RetrieveTapeRecoveryPoint for usage and error information. +// +// Returned Error Codes: +// * InvalidGatewayRequestException +// An exception occurred because an invalid gateway request was issued to the +// service. For more information, see the error and message fields. +// +// * InternalServerError +// An internal server error has occurred during the request. For more information, +// see the error and message fields. +// func (c *StorageGateway) RetrieveTapeRecoveryPoint(input *RetrieveTapeRecoveryPointInput) (*RetrieveTapeRecoveryPointOutput, error) { req, out := c.RetrieveTapeRecoveryPointRequest(input) err := req.Send() @@ -2700,6 +3666,8 @@ const opSetLocalConsolePassword = "SetLocalConsolePassword" // value can be used to capture response data after the request's "Send" method // is called. // +// See SetLocalConsolePassword for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -2734,10 +3702,29 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Storage Gateway's +// API operation SetLocalConsolePassword for usage and error information. +// +// Returned Error Codes: +// * InvalidGatewayRequestException +// An exception occurred because an invalid gateway request was issued to the +// service. For more information, see the error and message fields. +// +// * InternalServerError +// An internal server error has occurred during the request. For more information, +// see the error and message fields. +// func (c *StorageGateway) SetLocalConsolePassword(input *SetLocalConsolePasswordInput) (*SetLocalConsolePasswordOutput, error) { req, out := c.SetLocalConsolePasswordRequest(input) err := req.Send() @@ -2751,6 +3738,8 @@ const opShutdownGateway = "ShutdownGateway" // value can be used to capture response data after the request's "Send" method // is called. // +// See ShutdownGateway for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -2785,6 +3774,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 +3798,23 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Storage Gateway's +// API operation ShutdownGateway for usage and error information. +// +// Returned Error Codes: +// * InvalidGatewayRequestException +// An exception occurred because an invalid gateway request was issued to the +// service. For more information, see the error and message fields. +// +// * InternalServerError +// An internal server error has occurred during the request. For more information, +// see the error and message fields. +// func (c *StorageGateway) ShutdownGateway(input *ShutdownGatewayInput) (*ShutdownGatewayOutput, error) { req, out := c.ShutdownGatewayRequest(input) err := req.Send() @@ -2820,6 +3828,8 @@ const opStartGateway = "StartGateway" // value can be used to capture response data after the request's "Send" method // is called. // +// See StartGateway for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -2854,6 +3864,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 +3878,23 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Storage Gateway's +// API operation StartGateway for usage and error information. +// +// Returned Error Codes: +// * InvalidGatewayRequestException +// An exception occurred because an invalid gateway request was issued to the +// service. For more information, see the error and message fields. +// +// * InternalServerError +// An internal server error has occurred during the request. For more information, +// see the error and message fields. +// func (c *StorageGateway) StartGateway(input *StartGatewayInput) (*StartGatewayOutput, error) { req, out := c.StartGatewayRequest(input) err := req.Send() @@ -2879,6 +3908,8 @@ const opUpdateBandwidthRateLimit = "UpdateBandwidthRateLimit" // value can be used to capture response data after the request's "Send" method // is called. // +// See UpdateBandwidthRateLimit for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -2913,6 +3944,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 +3956,23 @@ func (c *StorageGateway) UpdateBandwidthRateLimitRequest(input *UpdateBandwidthR // // To specify which gateway to update, use the Amazon Resource Name (ARN) of // the gateway in your request. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Storage Gateway's +// API operation UpdateBandwidthRateLimit for usage and error information. +// +// Returned Error Codes: +// * InvalidGatewayRequestException +// An exception occurred because an invalid gateway request was issued to the +// service. For more information, see the error and message fields. +// +// * InternalServerError +// An internal server error has occurred during the request. For more information, +// see the error and message fields. +// func (c *StorageGateway) UpdateBandwidthRateLimit(input *UpdateBandwidthRateLimitInput) (*UpdateBandwidthRateLimitOutput, error) { req, out := c.UpdateBandwidthRateLimitRequest(input) err := req.Send() @@ -2936,6 +3986,8 @@ const opUpdateChapCredentials = "UpdateChapCredentials" // value can be used to capture response data after the request's "Send" method // is called. // +// See UpdateChapCredentials for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -2970,12 +4022,31 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Storage Gateway's +// API operation UpdateChapCredentials for usage and error information. +// +// Returned Error Codes: +// * InvalidGatewayRequestException +// An exception occurred because an invalid gateway request was issued to the +// service. For more information, see the error and message fields. +// +// * InternalServerError +// An internal server error has occurred during the request. For more information, +// see the error and message fields. +// func (c *StorageGateway) UpdateChapCredentials(input *UpdateChapCredentialsInput) (*UpdateChapCredentialsOutput, error) { req, out := c.UpdateChapCredentialsRequest(input) err := req.Send() @@ -2989,6 +4060,8 @@ const opUpdateGatewayInformation = "UpdateGatewayInformation" // value can be used to capture response data after the request's "Send" method // is called. // +// See UpdateGatewayInformation for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -3023,6 +4096,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 +4105,23 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Storage Gateway's +// API operation UpdateGatewayInformation for usage and error information. +// +// Returned Error Codes: +// * InvalidGatewayRequestException +// An exception occurred because an invalid gateway request was issued to the +// service. For more information, see the error and message fields. +// +// * InternalServerError +// An internal server error has occurred during the request. For more information, +// see the error and message fields. +// func (c *StorageGateway) UpdateGatewayInformation(input *UpdateGatewayInformationInput) (*UpdateGatewayInformationOutput, error) { req, out := c.UpdateGatewayInformationRequest(input) err := req.Send() @@ -3043,6 +4135,8 @@ const opUpdateGatewaySoftwareNow = "UpdateGatewaySoftwareNow" // value can be used to capture response data after the request's "Send" method // is called. // +// See UpdateGatewaySoftwareNow for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -3077,6 +4171,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 +4188,23 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Storage Gateway's +// API operation UpdateGatewaySoftwareNow for usage and error information. +// +// Returned Error Codes: +// * InvalidGatewayRequestException +// An exception occurred because an invalid gateway request was issued to the +// service. For more information, see the error and message fields. +// +// * InternalServerError +// An internal server error has occurred during the request. For more information, +// see the error and message fields. +// func (c *StorageGateway) UpdateGatewaySoftwareNow(input *UpdateGatewaySoftwareNowInput) (*UpdateGatewaySoftwareNowOutput, error) { req, out := c.UpdateGatewaySoftwareNowRequest(input) err := req.Send() @@ -3105,6 +4218,8 @@ const opUpdateMaintenanceStartTime = "UpdateMaintenanceStartTime" // value can be used to capture response data after the request's "Send" method // is called. // +// See UpdateMaintenanceStartTime for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -3139,9 +4254,28 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Storage Gateway's +// API operation UpdateMaintenanceStartTime for usage and error information. +// +// Returned Error Codes: +// * InvalidGatewayRequestException +// An exception occurred because an invalid gateway request was issued to the +// service. For more information, see the error and message fields. +// +// * InternalServerError +// An internal server error has occurred during the request. For more information, +// see the error and message fields. +// func (c *StorageGateway) UpdateMaintenanceStartTime(input *UpdateMaintenanceStartTimeInput) (*UpdateMaintenanceStartTimeOutput, error) { req, out := c.UpdateMaintenanceStartTimeRequest(input) err := req.Send() @@ -3155,6 +4289,8 @@ const opUpdateSnapshotSchedule = "UpdateSnapshotSchedule" // value can be used to capture response data after the request's "Send" method // is called. // +// See UpdateSnapshotSchedule for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -3189,6 +4325,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 +4336,23 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Storage Gateway's +// API operation UpdateSnapshotSchedule for usage and error information. +// +// Returned Error Codes: +// * InvalidGatewayRequestException +// An exception occurred because an invalid gateway request was issued to the +// service. For more information, see the error and message fields. +// +// * InternalServerError +// An internal server error has occurred during the request. For more information, +// see the error and message fields. +// func (c *StorageGateway) UpdateSnapshotSchedule(input *UpdateSnapshotScheduleInput) (*UpdateSnapshotScheduleOutput, error) { req, out := c.UpdateSnapshotScheduleRequest(input) err := req.Send() @@ -3211,6 +4366,8 @@ const opUpdateVTLDeviceType = "UpdateVTLDeviceType" // value can be used to capture response data after the request's "Send" method // is called. // +// See UpdateVTLDeviceType for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -3245,10 +4402,29 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Storage Gateway's +// API operation UpdateVTLDeviceType for usage and error information. +// +// Returned Error Codes: +// * InvalidGatewayRequestException +// An exception occurred because an invalid gateway request was issued to the +// service. For more information, see the error and message fields. +// +// * InternalServerError +// An internal server error has occurred during the request. For more information, +// see the error and message fields. +// 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..17c7365e60d 100644 --- a/service/sts/api.go +++ b/service/sts/api.go @@ -17,6 +17,8 @@ const opAssumeRole = "AssumeRole" // value can be used to capture response data after the request's "Send" method // is called. // +// See AssumeRole for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -51,6 +53,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 +144,31 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Security Token Service's +// API operation AssumeRole for usage and error information. +// +// Returned Error Codes: +// * MalformedPolicyDocument +// The request was rejected because the policy document was malformed. The error +// message describes the specific error. +// +// * PackedPolicyTooLarge +// The request was rejected because the policy document was too large. The error +// message describes how big the policy document is, in packed form, as a percentage +// of what the API allows. +// +// * RegionDisabledException +// STS is not activated in the requested region for the account that is being +// asked to generate credentials. The account administrator must use the IAM +// console to activate STS in that region. For more information, see Activating +// and Deactivating AWS STS in an AWS Region (http://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_enable-regions.html) +// in the IAM User Guide. +// func (c *STS) AssumeRole(input *AssumeRoleInput) (*AssumeRoleOutput, error) { req, out := c.AssumeRoleRequest(input) err := req.Send() @@ -153,6 +182,8 @@ const opAssumeRoleWithSAML = "AssumeRoleWithSAML" // value can be used to capture response data after the request's "Send" method // is called. // +// See AssumeRoleWithSAML for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -187,6 +218,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 +287,46 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Security Token Service's +// API operation AssumeRoleWithSAML for usage and error information. +// +// Returned Error Codes: +// * MalformedPolicyDocument +// The request was rejected because the policy document was malformed. The error +// message describes the specific error. +// +// * PackedPolicyTooLarge +// The request was rejected because the policy document was too large. The error +// message describes how big the policy document is, in packed form, as a percentage +// of what the API allows. +// +// * IDPRejectedClaim +// The identity provider (IdP) reported that authentication failed. This might +// be because the claim is invalid. +// +// If this error is returned for the AssumeRoleWithWebIdentity operation, it +// can also mean that the claim has expired or has been explicitly revoked. +// +// * InvalidIdentityToken +// The web identity token that was passed could not be validated by AWS. Get +// a new identity token from the identity provider and then retry the request. +// +// * ExpiredTokenException +// The web identity token that was passed is expired or is not valid. Get a +// new identity token from the identity provider and then retry the request. +// +// * RegionDisabledException +// STS is not activated in the requested region for the account that is being +// asked to generate credentials. The account administrator must use the IAM +// console to activate STS in that region. For more information, see Activating +// and Deactivating AWS STS in an AWS Region (http://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_enable-regions.html) +// in the IAM User Guide. +// func (c *STS) AssumeRoleWithSAML(input *AssumeRoleWithSAMLInput) (*AssumeRoleWithSAMLOutput, error) { req, out := c.AssumeRoleWithSAMLRequest(input) err := req.Send() @@ -267,6 +340,8 @@ const opAssumeRoleWithWebIdentity = "AssumeRoleWithWebIdentity" // value can be used to capture response data after the request's "Send" method // is called. // +// See AssumeRoleWithWebIdentity for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -301,6 +376,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 +463,53 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Security Token Service's +// API operation AssumeRoleWithWebIdentity for usage and error information. +// +// Returned Error Codes: +// * MalformedPolicyDocument +// The request was rejected because the policy document was malformed. The error +// message describes the specific error. +// +// * PackedPolicyTooLarge +// The request was rejected because the policy document was too large. The error +// message describes how big the policy document is, in packed form, as a percentage +// of what the API allows. +// +// * IDPRejectedClaim +// The identity provider (IdP) reported that authentication failed. This might +// be because the claim is invalid. +// +// If this error is returned for the AssumeRoleWithWebIdentity operation, it +// can also mean that the claim has expired or has been explicitly revoked. +// +// * IDPCommunicationError +// The request could not be fulfilled because the non-AWS identity provider +// (IDP) that was asked to verify the incoming identity token could not be reached. +// This is often a transient error caused by network conditions. Retry the request +// a limited number of times so that you don't exceed the request rate. If the +// error persists, the non-AWS identity provider might be down or not responding. +// +// * InvalidIdentityToken +// The web identity token that was passed could not be validated by AWS. Get +// a new identity token from the identity provider and then retry the request. +// +// * ExpiredTokenException +// The web identity token that was passed is expired or is not valid. Get a +// new identity token from the identity provider and then retry the request. +// +// * RegionDisabledException +// STS is not activated in the requested region for the account that is being +// asked to generate credentials. The account administrator must use the IAM +// console to activate STS in that region. For more information, see Activating +// and Deactivating AWS STS in an AWS Region (http://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_enable-regions.html) +// in the IAM User Guide. +// func (c *STS) AssumeRoleWithWebIdentity(input *AssumeRoleWithWebIdentityInput) (*AssumeRoleWithWebIdentityOutput, error) { req, out := c.AssumeRoleWithWebIdentityRequest(input) err := req.Send() @@ -399,6 +523,8 @@ const opDecodeAuthorizationMessage = "DecodeAuthorizationMessage" // value can be used to capture response data after the request's "Send" method // is called. // +// See DecodeAuthorizationMessage for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -433,6 +559,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 +593,20 @@ func (c *STS) DecodeAuthorizationMessageRequest(input *DecodeAuthorizationMessag // The requested resource. // // The values of condition keys in the context of the user's request. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Security Token Service's +// API operation DecodeAuthorizationMessage for usage and error information. +// +// Returned Error Codes: +// * InvalidAuthorizationMessageException +// The error returned if the message passed to DecodeAuthorizationMessage was +// invalid. This can happen if the token contains invalid characters, such as +// linebreaks. +// func (c *STS) DecodeAuthorizationMessage(input *DecodeAuthorizationMessageInput) (*DecodeAuthorizationMessageOutput, error) { req, out := c.DecodeAuthorizationMessageRequest(input) err := req.Send() @@ -478,6 +620,8 @@ const opGetCallerIdentity = "GetCallerIdentity" // value can be used to capture response data after the request's "Send" method // is called. // +// See GetCallerIdentity for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -512,8 +656,17 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Security Token Service's +// API operation GetCallerIdentity for usage and error information. func (c *STS) GetCallerIdentity(input *GetCallerIdentityInput) (*GetCallerIdentityOutput, error) { req, out := c.GetCallerIdentityRequest(input) err := req.Send() @@ -527,6 +680,8 @@ const opGetFederationToken = "GetFederationToken" // value can be used to capture response data after the request's "Send" method // is called. // +// See GetFederationToken for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -561,6 +716,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 +796,31 @@ 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). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Security Token Service's +// API operation GetFederationToken for usage and error information. +// +// Returned Error Codes: +// * MalformedPolicyDocument +// The request was rejected because the policy document was malformed. The error +// message describes the specific error. +// +// * PackedPolicyTooLarge +// The request was rejected because the policy document was too large. The error +// message describes how big the policy document is, in packed form, as a percentage +// of what the API allows. +// +// * RegionDisabledException +// STS is not activated in the requested region for the account that is being +// asked to generate credentials. The account administrator must use the IAM +// console to activate STS in that region. For more information, see Activating +// and Deactivating AWS STS in an AWS Region (http://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_enable-regions.html) +// in the IAM User Guide. +// func (c *STS) GetFederationToken(input *GetFederationTokenInput) (*GetFederationTokenOutput, error) { req, out := c.GetFederationTokenRequest(input) err := req.Send() @@ -652,6 +834,8 @@ const opGetSessionToken = "GetSessionToken" // value can be used to capture response data after the request's "Send" method // is called. // +// See GetSessionToken for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -686,6 +870,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 +918,22 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Security Token Service's +// API operation GetSessionToken for usage and error information. +// +// Returned Error Codes: +// * RegionDisabledException +// STS is not activated in the requested region for the account that is being +// asked to generate credentials. The account administrator must use the IAM +// console to activate STS in that region. For more information, see Activating +// and Deactivating AWS STS in an AWS Region (http://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_enable-regions.html) +// in the IAM User Guide. +// 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..ff80233b4b1 100644 --- a/service/support/api.go +++ b/service/support/api.go @@ -15,6 +15,8 @@ const opAddAttachmentsToSet = "AddAttachmentsToSet" // value can be used to capture response data after the request's "Send" method // is called. // +// See AddAttachmentsToSet for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -49,6 +51,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 +63,33 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Support's +// API operation AddAttachmentsToSet for usage and error information. +// +// Returned Error Codes: +// * InternalServerError +// An internal server error occurred. +// +// * AttachmentSetIdNotFound +// An attachment set with the specified ID could not be found. +// +// * AttachmentSetExpired +// The expiration time of the attachment set has passed. The set expires 1 hour +// after it is created. +// +// * AttachmentSetSizeLimitExceeded +// A limit for the size of an attachment set has been exceeded. The limits are +// 3 attachments and 5 MB per attachment. +// +// * AttachmentLimitExceeded +// The limit for the number of attachment sets created in a short period of +// time has been exceeded. +// func (c *Support) AddAttachmentsToSet(input *AddAttachmentsToSetInput) (*AddAttachmentsToSetOutput, error) { req, out := c.AddAttachmentsToSetRequest(input) err := req.Send() @@ -72,6 +103,8 @@ const opAddCommunicationToCase = "AddCommunicationToCase" // value can be used to capture response data after the request's "Send" method // is called. // +// See AddCommunicationToCase for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -106,6 +139,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 +149,28 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Support's +// API operation AddCommunicationToCase for usage and error information. +// +// Returned Error Codes: +// * InternalServerError +// An internal server error occurred. +// +// * CaseIdNotFound +// The requested caseId could not be located. +// +// * AttachmentSetIdNotFound +// An attachment set with the specified ID could not be found. +// +// * AttachmentSetExpired +// The expiration time of the attachment set has passed. The set expires 1 hour +// after it is created. +// func (c *Support) AddCommunicationToCase(input *AddCommunicationToCaseInput) (*AddCommunicationToCaseOutput, error) { req, out := c.AddCommunicationToCaseRequest(input) err := req.Send() @@ -127,6 +184,8 @@ const opCreateCase = "CreateCase" // value can be used to capture response data after the request's "Send" method // is called. // +// See CreateCase for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -161,6 +220,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 +265,28 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Support's +// API operation CreateCase for usage and error information. +// +// Returned Error Codes: +// * InternalServerError +// An internal server error occurred. +// +// * CaseCreationLimitExceeded +// The case creation limit for the account has been exceeded. +// +// * AttachmentSetIdNotFound +// An attachment set with the specified ID could not be found. +// +// * AttachmentSetExpired +// The expiration time of the attachment set has passed. The set expires 1 hour +// after it is created. +// func (c *Support) CreateCase(input *CreateCaseInput) (*CreateCaseOutput, error) { req, out := c.CreateCaseRequest(input) err := req.Send() @@ -217,6 +300,8 @@ const opDescribeAttachment = "DescribeAttachment" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeAttachment for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -251,10 +336,31 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Support's +// API operation DescribeAttachment for usage and error information. +// +// Returned Error Codes: +// * InternalServerError +// An internal server error occurred. +// +// * DescribeAttachmentLimitExceeded +// The limit for the number of DescribeAttachment requests in a short period +// of time has been exceeded. +// +// * AttachmentIdNotFound +// An attachment with the specified ID could not be found. +// func (c *Support) DescribeAttachment(input *DescribeAttachmentInput) (*DescribeAttachmentOutput, error) { req, out := c.DescribeAttachmentRequest(input) err := req.Send() @@ -268,6 +374,8 @@ const opDescribeCases = "DescribeCases" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeCases for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -308,6 +416,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 +433,21 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Support's +// API operation DescribeCases for usage and error information. +// +// Returned Error Codes: +// * InternalServerError +// An internal server error occurred. +// +// * CaseIdNotFound +// The requested caseId could not be located. +// func (c *Support) DescribeCases(input *DescribeCasesInput) (*DescribeCasesOutput, error) { req, out := c.DescribeCasesRequest(input) err := req.Send() @@ -361,6 +486,8 @@ const opDescribeCommunications = "DescribeCommunications" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeCommunications for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -401,6 +528,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 +540,21 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Support's +// API operation DescribeCommunications for usage and error information. +// +// Returned Error Codes: +// * InternalServerError +// An internal server error occurred. +// +// * CaseIdNotFound +// The requested caseId could not be located. +// func (c *Support) DescribeCommunications(input *DescribeCommunicationsInput) (*DescribeCommunicationsOutput, error) { req, out := c.DescribeCommunicationsRequest(input) err := req.Send() @@ -449,6 +593,8 @@ const opDescribeServices = "DescribeServices" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeServices for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -483,6 +629,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 +642,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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Support's +// API operation DescribeServices for usage and error information. +// +// Returned Error Codes: +// * InternalServerError +// An internal server error occurred. +// func (c *Support) DescribeServices(input *DescribeServicesInput) (*DescribeServicesOutput, error) { req, out := c.DescribeServicesRequest(input) err := req.Send() @@ -507,6 +667,8 @@ const opDescribeSeverityLevels = "DescribeSeverityLevels" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeSeverityLevels for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -541,9 +703,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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Support's +// API operation DescribeSeverityLevels for usage and error information. +// +// Returned Error Codes: +// * InternalServerError +// An internal server error occurred. +// func (c *Support) DescribeSeverityLevels(input *DescribeSeverityLevelsInput) (*DescribeSeverityLevelsOutput, error) { req, out := c.DescribeSeverityLevelsRequest(input) err := req.Send() @@ -557,6 +733,8 @@ const opDescribeTrustedAdvisorCheckRefreshStatuses = "DescribeTrustedAdvisorChec // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeTrustedAdvisorCheckRefreshStatuses for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -591,12 +769,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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Support's +// API operation DescribeTrustedAdvisorCheckRefreshStatuses for usage and error information. +// +// Returned Error Codes: +// * InternalServerError +// An internal server error occurred. +// func (c *Support) DescribeTrustedAdvisorCheckRefreshStatuses(input *DescribeTrustedAdvisorCheckRefreshStatusesInput) (*DescribeTrustedAdvisorCheckRefreshStatusesOutput, error) { req, out := c.DescribeTrustedAdvisorCheckRefreshStatusesRequest(input) err := req.Send() @@ -610,6 +802,8 @@ const opDescribeTrustedAdvisorCheckResult = "DescribeTrustedAdvisorCheckResult" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeTrustedAdvisorCheckResult for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -644,6 +838,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 +860,18 @@ func (c *Support) DescribeTrustedAdvisorCheckResultRequest(input *DescribeTruste // timestamp. The time of the last refresh of the check. // // checkId. The unique identifier for the check. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Support's +// API operation DescribeTrustedAdvisorCheckResult for usage and error information. +// +// Returned Error Codes: +// * InternalServerError +// An internal server error occurred. +// func (c *Support) DescribeTrustedAdvisorCheckResult(input *DescribeTrustedAdvisorCheckResultInput) (*DescribeTrustedAdvisorCheckResultOutput, error) { req, out := c.DescribeTrustedAdvisorCheckResultRequest(input) err := req.Send() @@ -677,6 +885,8 @@ const opDescribeTrustedAdvisorCheckSummaries = "DescribeTrustedAdvisorCheckSumma // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeTrustedAdvisorCheckSummaries for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -711,10 +921,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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Support's +// API operation DescribeTrustedAdvisorCheckSummaries for usage and error information. +// +// Returned Error Codes: +// * InternalServerError +// An internal server error occurred. +// func (c *Support) DescribeTrustedAdvisorCheckSummaries(input *DescribeTrustedAdvisorCheckSummariesInput) (*DescribeTrustedAdvisorCheckSummariesOutput, error) { req, out := c.DescribeTrustedAdvisorCheckSummariesRequest(input) err := req.Send() @@ -728,6 +952,8 @@ const opDescribeTrustedAdvisorChecks = "DescribeTrustedAdvisorChecks" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeTrustedAdvisorChecks for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -762,10 +988,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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Support's +// API operation DescribeTrustedAdvisorChecks for usage and error information. +// +// Returned Error Codes: +// * InternalServerError +// An internal server error occurred. +// func (c *Support) DescribeTrustedAdvisorChecks(input *DescribeTrustedAdvisorChecksInput) (*DescribeTrustedAdvisorChecksOutput, error) { req, out := c.DescribeTrustedAdvisorChecksRequest(input) err := req.Send() @@ -779,6 +1019,8 @@ const opRefreshTrustedAdvisorCheck = "RefreshTrustedAdvisorCheck" // value can be used to capture response data after the request's "Send" method // is called. // +// See RefreshTrustedAdvisorCheck for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -813,6 +1055,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 +1074,18 @@ func (c *Support) RefreshTrustedAdvisorCheckRequest(input *RefreshTrustedAdvisor // the check is eligible for refresh. // // checkId. The unique identifier for the check. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Support's +// API operation RefreshTrustedAdvisorCheck for usage and error information. +// +// Returned Error Codes: +// * InternalServerError +// An internal server error occurred. +// func (c *Support) RefreshTrustedAdvisorCheck(input *RefreshTrustedAdvisorCheckInput) (*RefreshTrustedAdvisorCheckOutput, error) { req, out := c.RefreshTrustedAdvisorCheckRequest(input) err := req.Send() @@ -843,6 +1099,8 @@ const opResolveCase = "ResolveCase" // value can be used to capture response data after the request's "Send" method // is called. // +// See ResolveCase for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -877,8 +1135,25 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Support's +// API operation ResolveCase for usage and error information. +// +// Returned Error Codes: +// * InternalServerError +// An internal server error occurred. +// +// * CaseIdNotFound +// The requested caseId could not be located. +// 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..07eb2913a0f 100644 --- a/service/swf/api.go +++ b/service/swf/api.go @@ -20,6 +20,8 @@ const opCountClosedWorkflowExecutions = "CountClosedWorkflowExecutions" // value can be used to capture response data after the request's "Send" method // is called. // +// See CountClosedWorkflowExecutions for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -54,6 +56,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 +78,24 @@ 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). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Workflow Service's +// API operation CountClosedWorkflowExecutions for usage and error information. +// +// Returned Error Codes: +// * UnknownResourceFault +// Returned when the named resource cannot be found with in the scope of this +// operation (region or domain). This could happen if the named resource was +// never created or is no longer available for this operation. +// +// * OperationNotPermittedFault +// Returned when the caller does not have sufficient permissions to invoke the +// action. +// func (c *SWF) CountClosedWorkflowExecutions(input *CountClosedWorkflowExecutionsInput) (*WorkflowExecutionCount, error) { req, out := c.CountClosedWorkflowExecutionsRequest(input) err := req.Send() @@ -87,6 +109,8 @@ const opCountOpenWorkflowExecutions = "CountOpenWorkflowExecutions" // value can be used to capture response data after the request's "Send" method // is called. // +// See CountOpenWorkflowExecutions for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -121,6 +145,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 +167,24 @@ 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). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Workflow Service's +// API operation CountOpenWorkflowExecutions for usage and error information. +// +// Returned Error Codes: +// * UnknownResourceFault +// Returned when the named resource cannot be found with in the scope of this +// operation (region or domain). This could happen if the named resource was +// never created or is no longer available for this operation. +// +// * OperationNotPermittedFault +// Returned when the caller does not have sufficient permissions to invoke the +// action. +// func (c *SWF) CountOpenWorkflowExecutions(input *CountOpenWorkflowExecutionsInput) (*WorkflowExecutionCount, error) { req, out := c.CountOpenWorkflowExecutionsRequest(input) err := req.Send() @@ -154,6 +198,8 @@ const opCountPendingActivityTasks = "CountPendingActivityTasks" // value can be used to capture response data after the request's "Send" method // is called. // +// See CountPendingActivityTasks for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -188,6 +234,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 +255,24 @@ 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). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Workflow Service's +// API operation CountPendingActivityTasks for usage and error information. +// +// Returned Error Codes: +// * UnknownResourceFault +// Returned when the named resource cannot be found with in the scope of this +// operation (region or domain). This could happen if the named resource was +// never created or is no longer available for this operation. +// +// * OperationNotPermittedFault +// Returned when the caller does not have sufficient permissions to invoke the +// action. +// func (c *SWF) CountPendingActivityTasks(input *CountPendingActivityTasksInput) (*PendingTaskCount, error) { req, out := c.CountPendingActivityTasksRequest(input) err := req.Send() @@ -220,6 +286,8 @@ const opCountPendingDecisionTasks = "CountPendingDecisionTasks" // value can be used to capture response data after the request's "Send" method // is called. // +// See CountPendingDecisionTasks for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -254,6 +322,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 +343,24 @@ 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). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Workflow Service's +// API operation CountPendingDecisionTasks for usage and error information. +// +// Returned Error Codes: +// * UnknownResourceFault +// Returned when the named resource cannot be found with in the scope of this +// operation (region or domain). This could happen if the named resource was +// never created or is no longer available for this operation. +// +// * OperationNotPermittedFault +// Returned when the caller does not have sufficient permissions to invoke the +// action. +// func (c *SWF) CountPendingDecisionTasks(input *CountPendingDecisionTasksInput) (*PendingTaskCount, error) { req, out := c.CountPendingDecisionTasksRequest(input) err := req.Send() @@ -286,6 +374,8 @@ const opDeprecateActivityType = "DeprecateActivityType" // value can be used to capture response data after the request's "Send" method // is called. // +// See DeprecateActivityType for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -322,6 +412,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 +434,27 @@ 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). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Workflow Service's +// API operation DeprecateActivityType for usage and error information. +// +// Returned Error Codes: +// * UnknownResourceFault +// Returned when the named resource cannot be found with in the scope of this +// operation (region or domain). This could happen if the named resource was +// never created or is no longer available for this operation. +// +// * TypeDeprecatedFault +// Returned when the specified activity or workflow type was already deprecated. +// +// * OperationNotPermittedFault +// Returned when the caller does not have sufficient permissions to invoke the +// action. +// func (c *SWF) DeprecateActivityType(input *DeprecateActivityTypeInput) (*DeprecateActivityTypeOutput, error) { req, out := c.DeprecateActivityTypeRequest(input) err := req.Send() @@ -355,6 +468,8 @@ const opDeprecateDomain = "DeprecateDomain" // value can be used to capture response data after the request's "Send" method // is called. // +// See DeprecateDomain for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -391,6 +506,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 +529,27 @@ 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). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Workflow Service's +// API operation DeprecateDomain for usage and error information. +// +// Returned Error Codes: +// * UnknownResourceFault +// Returned when the named resource cannot be found with in the scope of this +// operation (region or domain). This could happen if the named resource was +// never created or is no longer available for this operation. +// +// * DomainDeprecatedFault +// Returned when the specified domain has been deprecated. +// +// * OperationNotPermittedFault +// Returned when the caller does not have sufficient permissions to invoke the +// action. +// func (c *SWF) DeprecateDomain(input *DeprecateDomainInput) (*DeprecateDomainOutput, error) { req, out := c.DeprecateDomainRequest(input) err := req.Send() @@ -425,6 +563,8 @@ const opDeprecateWorkflowType = "DeprecateWorkflowType" // value can be used to capture response data after the request's "Send" method // is called. // +// See DeprecateWorkflowType for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -461,6 +601,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 +624,27 @@ 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). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Workflow Service's +// API operation DeprecateWorkflowType for usage and error information. +// +// Returned Error Codes: +// * UnknownResourceFault +// Returned when the named resource cannot be found with in the scope of this +// operation (region or domain). This could happen if the named resource was +// never created or is no longer available for this operation. +// +// * TypeDeprecatedFault +// Returned when the specified activity or workflow type was already deprecated. +// +// * OperationNotPermittedFault +// Returned when the caller does not have sufficient permissions to invoke the +// action. +// func (c *SWF) DeprecateWorkflowType(input *DeprecateWorkflowTypeInput) (*DeprecateWorkflowTypeOutput, error) { req, out := c.DeprecateWorkflowTypeRequest(input) err := req.Send() @@ -495,6 +658,8 @@ const opDescribeActivityType = "DescribeActivityType" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeActivityType for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -529,6 +694,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 +715,24 @@ 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). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Workflow Service's +// API operation DescribeActivityType for usage and error information. +// +// Returned Error Codes: +// * UnknownResourceFault +// Returned when the named resource cannot be found with in the scope of this +// operation (region or domain). This could happen if the named resource was +// never created or is no longer available for this operation. +// +// * OperationNotPermittedFault +// Returned when the caller does not have sufficient permissions to invoke the +// action. +// func (c *SWF) DescribeActivityType(input *DescribeActivityTypeInput) (*DescribeActivityTypeOutput, error) { req, out := c.DescribeActivityTypeRequest(input) err := req.Send() @@ -561,6 +746,8 @@ const opDescribeDomain = "DescribeDomain" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeDomain for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -595,6 +782,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 +800,24 @@ 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). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Workflow Service's +// API operation DescribeDomain for usage and error information. +// +// Returned Error Codes: +// * UnknownResourceFault +// Returned when the named resource cannot be found with in the scope of this +// operation (region or domain). This could happen if the named resource was +// never created or is no longer available for this operation. +// +// * OperationNotPermittedFault +// Returned when the caller does not have sufficient permissions to invoke the +// action. +// func (c *SWF) DescribeDomain(input *DescribeDomainInput) (*DescribeDomainOutput, error) { req, out := c.DescribeDomainRequest(input) err := req.Send() @@ -624,6 +831,8 @@ const opDescribeWorkflowExecution = "DescribeWorkflowExecution" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeWorkflowExecution for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -658,6 +867,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 +886,24 @@ 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). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Workflow Service's +// API operation DescribeWorkflowExecution for usage and error information. +// +// Returned Error Codes: +// * UnknownResourceFault +// Returned when the named resource cannot be found with in the scope of this +// operation (region or domain). This could happen if the named resource was +// never created or is no longer available for this operation. +// +// * OperationNotPermittedFault +// Returned when the caller does not have sufficient permissions to invoke the +// action. +// func (c *SWF) DescribeWorkflowExecution(input *DescribeWorkflowExecutionInput) (*DescribeWorkflowExecutionOutput, error) { req, out := c.DescribeWorkflowExecutionRequest(input) err := req.Send() @@ -688,6 +917,8 @@ const opDescribeWorkflowType = "DescribeWorkflowType" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeWorkflowType for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -722,6 +953,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 +974,24 @@ 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). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Workflow Service's +// API operation DescribeWorkflowType for usage and error information. +// +// Returned Error Codes: +// * UnknownResourceFault +// Returned when the named resource cannot be found with in the scope of this +// operation (region or domain). This could happen if the named resource was +// never created or is no longer available for this operation. +// +// * OperationNotPermittedFault +// Returned when the caller does not have sufficient permissions to invoke the +// action. +// func (c *SWF) DescribeWorkflowType(input *DescribeWorkflowTypeInput) (*DescribeWorkflowTypeOutput, error) { req, out := c.DescribeWorkflowTypeRequest(input) err := req.Send() @@ -754,6 +1005,8 @@ const opGetWorkflowExecutionHistory = "GetWorkflowExecutionHistory" // value can be used to capture response data after the request's "Send" method // is called. // +// See GetWorkflowExecutionHistory for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -794,6 +1047,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 +1067,24 @@ 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). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Workflow Service's +// API operation GetWorkflowExecutionHistory for usage and error information. +// +// Returned Error Codes: +// * UnknownResourceFault +// Returned when the named resource cannot be found with in the scope of this +// operation (region or domain). This could happen if the named resource was +// never created or is no longer available for this operation. +// +// * OperationNotPermittedFault +// Returned when the caller does not have sufficient permissions to invoke the +// action. +// func (c *SWF) GetWorkflowExecutionHistory(input *GetWorkflowExecutionHistoryInput) (*GetWorkflowExecutionHistoryOutput, error) { req, out := c.GetWorkflowExecutionHistoryRequest(input) err := req.Send() @@ -850,6 +1123,8 @@ const opListActivityTypes = "ListActivityTypes" // value can be used to capture response data after the request's "Send" method // is called. // +// See ListActivityTypes for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -890,6 +1165,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 +1186,24 @@ 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). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Workflow Service's +// API operation ListActivityTypes for usage and error information. +// +// Returned Error Codes: +// * OperationNotPermittedFault +// Returned when the caller does not have sufficient permissions to invoke the +// action. +// +// * UnknownResourceFault +// Returned when the named resource cannot be found with in the scope of this +// operation (region or domain). This could happen if the named resource was +// never created or is no longer available for this operation. +// func (c *SWF) ListActivityTypes(input *ListActivityTypesInput) (*ListActivityTypesOutput, error) { req, out := c.ListActivityTypesRequest(input) err := req.Send() @@ -947,6 +1242,8 @@ const opListClosedWorkflowExecutions = "ListClosedWorkflowExecutions" // value can be used to capture response data after the request's "Send" method // is called. // +// See ListClosedWorkflowExecutions for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -987,6 +1284,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 +1308,24 @@ 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). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Workflow Service's +// API operation ListClosedWorkflowExecutions for usage and error information. +// +// Returned Error Codes: +// * UnknownResourceFault +// Returned when the named resource cannot be found with in the scope of this +// operation (region or domain). This could happen if the named resource was +// never created or is no longer available for this operation. +// +// * OperationNotPermittedFault +// Returned when the caller does not have sufficient permissions to invoke the +// action. +// func (c *SWF) ListClosedWorkflowExecutions(input *ListClosedWorkflowExecutionsInput) (*WorkflowExecutionInfos, error) { req, out := c.ListClosedWorkflowExecutionsRequest(input) err := req.Send() @@ -1047,6 +1364,8 @@ const opListDomains = "ListDomains" // value can be used to capture response data after the request's "Send" method // is called. // +// See ListDomains for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1087,6 +1406,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 +1427,19 @@ 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). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Workflow Service's +// API operation ListDomains for usage and error information. +// +// Returned Error Codes: +// * OperationNotPermittedFault +// Returned when the caller does not have sufficient permissions to invoke the +// action. +// func (c *SWF) ListDomains(input *ListDomainsInput) (*ListDomainsOutput, error) { req, out := c.ListDomainsRequest(input) err := req.Send() @@ -1144,6 +1478,8 @@ const opListOpenWorkflowExecutions = "ListOpenWorkflowExecutions" // value can be used to capture response data after the request's "Send" method // is called. // +// See ListOpenWorkflowExecutions for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1184,6 +1520,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 +1544,24 @@ 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). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Workflow Service's +// API operation ListOpenWorkflowExecutions for usage and error information. +// +// Returned Error Codes: +// * UnknownResourceFault +// Returned when the named resource cannot be found with in the scope of this +// operation (region or domain). This could happen if the named resource was +// never created or is no longer available for this operation. +// +// * OperationNotPermittedFault +// Returned when the caller does not have sufficient permissions to invoke the +// action. +// func (c *SWF) ListOpenWorkflowExecutions(input *ListOpenWorkflowExecutionsInput) (*WorkflowExecutionInfos, error) { req, out := c.ListOpenWorkflowExecutionsRequest(input) err := req.Send() @@ -1244,6 +1600,8 @@ const opListWorkflowTypes = "ListWorkflowTypes" // value can be used to capture response data after the request's "Send" method // is called. // +// See ListWorkflowTypes for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1284,6 +1642,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 +1661,24 @@ 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). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Workflow Service's +// API operation ListWorkflowTypes for usage and error information. +// +// Returned Error Codes: +// * OperationNotPermittedFault +// Returned when the caller does not have sufficient permissions to invoke the +// action. +// +// * UnknownResourceFault +// Returned when the named resource cannot be found with in the scope of this +// operation (region or domain). This could happen if the named resource was +// never created or is no longer available for this operation. +// func (c *SWF) ListWorkflowTypes(input *ListWorkflowTypesInput) (*ListWorkflowTypesOutput, error) { req, out := c.ListWorkflowTypesRequest(input) err := req.Send() @@ -1339,6 +1717,8 @@ const opPollForActivityTask = "PollForActivityTask" // value can be used to capture response data after the request's "Send" method // is called. // +// See PollForActivityTask for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1373,6 +1753,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 +1780,29 @@ 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). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Workflow Service's +// API operation PollForActivityTask for usage and error information. +// +// Returned Error Codes: +// * UnknownResourceFault +// Returned when the named resource cannot be found with in the scope of this +// operation (region or domain). This could happen if the named resource was +// never created or is no longer available for this operation. +// +// * OperationNotPermittedFault +// Returned when the caller does not have sufficient permissions to invoke the +// action. +// +// * LimitExceededFault +// Returned by any operation if a system imposed limitation has been reached. +// To address this fault you should either clean up unused resources or increase +// the limit by contacting AWS. +// func (c *SWF) PollForActivityTask(input *PollForActivityTaskInput) (*PollForActivityTaskOutput, error) { req, out := c.PollForActivityTaskRequest(input) err := req.Send() @@ -1411,6 +1816,8 @@ const opPollForDecisionTask = "PollForDecisionTask" // value can be used to capture response data after the request's "Send" method // is called. // +// See PollForDecisionTask for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1451,6 +1858,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 +1893,29 @@ 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). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Workflow Service's +// API operation PollForDecisionTask for usage and error information. +// +// Returned Error Codes: +// * UnknownResourceFault +// Returned when the named resource cannot be found with in the scope of this +// operation (region or domain). This could happen if the named resource was +// never created or is no longer available for this operation. +// +// * OperationNotPermittedFault +// Returned when the caller does not have sufficient permissions to invoke the +// action. +// +// * LimitExceededFault +// Returned by any operation if a system imposed limitation has been reached. +// To address this fault you should either clean up unused resources or increase +// the limit by contacting AWS. +// func (c *SWF) PollForDecisionTask(input *PollForDecisionTaskInput) (*PollForDecisionTaskOutput, error) { req, out := c.PollForDecisionTaskRequest(input) err := req.Send() @@ -1522,6 +1954,8 @@ const opRecordActivityTaskHeartbeat = "RecordActivityTaskHeartbeat" // value can be used to capture response data after the request's "Send" method // is called. // +// See RecordActivityTaskHeartbeat for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1556,6 +1990,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 +2028,24 @@ 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). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Workflow Service's +// API operation RecordActivityTaskHeartbeat for usage and error information. +// +// Returned Error Codes: +// * UnknownResourceFault +// Returned when the named resource cannot be found with in the scope of this +// operation (region or domain). This could happen if the named resource was +// never created or is no longer available for this operation. +// +// * OperationNotPermittedFault +// Returned when the caller does not have sufficient permissions to invoke the +// action. +// func (c *SWF) RecordActivityTaskHeartbeat(input *RecordActivityTaskHeartbeatInput) (*RecordActivityTaskHeartbeatOutput, error) { req, out := c.RecordActivityTaskHeartbeatRequest(input) err := req.Send() @@ -1605,6 +2059,8 @@ const opRegisterActivityType = "RegisterActivityType" // value can be used to capture response data after the request's "Send" method // is called. // +// See RegisterActivityType for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1641,6 +2097,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 +2120,35 @@ 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). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Workflow Service's +// API operation RegisterActivityType for usage and error information. +// +// Returned Error Codes: +// * TypeAlreadyExistsFault +// Returned if the type already exists in the specified domain. You will get +// this fault even if the existing type is in deprecated status. You can specify +// another version if the intent is to create a new distinct version of the +// type. +// +// * LimitExceededFault +// Returned by any operation if a system imposed limitation has been reached. +// To address this fault you should either clean up unused resources or increase +// the limit by contacting AWS. +// +// * UnknownResourceFault +// Returned when the named resource cannot be found with in the scope of this +// operation (region or domain). This could happen if the named resource was +// never created or is no longer available for this operation. +// +// * OperationNotPermittedFault +// Returned when the caller does not have sufficient permissions to invoke the +// action. +// func (c *SWF) RegisterActivityType(input *RegisterActivityTypeInput) (*RegisterActivityTypeOutput, error) { req, out := c.RegisterActivityTypeRequest(input) err := req.Send() @@ -1675,6 +2162,8 @@ const opRegisterDomain = "RegisterDomain" // value can be used to capture response data after the request's "Send" method // is called. // +// See RegisterDomain for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1711,6 +2200,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 +2218,28 @@ 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). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Workflow Service's +// API operation RegisterDomain for usage and error information. +// +// Returned Error Codes: +// * DomainAlreadyExistsFault +// Returned if the specified domain already exists. You will get this fault +// even if the existing domain is in deprecated status. +// +// * LimitExceededFault +// Returned by any operation if a system imposed limitation has been reached. +// To address this fault you should either clean up unused resources or increase +// the limit by contacting AWS. +// +// * OperationNotPermittedFault +// Returned when the caller does not have sufficient permissions to invoke the +// action. +// func (c *SWF) RegisterDomain(input *RegisterDomainInput) (*RegisterDomainOutput, error) { req, out := c.RegisterDomainRequest(input) err := req.Send() @@ -1740,6 +2253,8 @@ const opRegisterWorkflowType = "RegisterWorkflowType" // value can be used to capture response data after the request's "Send" method // is called. // +// See RegisterWorkflowType for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1776,6 +2291,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 +2317,35 @@ 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). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Workflow Service's +// API operation RegisterWorkflowType for usage and error information. +// +// Returned Error Codes: +// * TypeAlreadyExistsFault +// Returned if the type already exists in the specified domain. You will get +// this fault even if the existing type is in deprecated status. You can specify +// another version if the intent is to create a new distinct version of the +// type. +// +// * LimitExceededFault +// Returned by any operation if a system imposed limitation has been reached. +// To address this fault you should either clean up unused resources or increase +// the limit by contacting AWS. +// +// * UnknownResourceFault +// Returned when the named resource cannot be found with in the scope of this +// operation (region or domain). This could happen if the named resource was +// never created or is no longer available for this operation. +// +// * OperationNotPermittedFault +// Returned when the caller does not have sufficient permissions to invoke the +// action. +// func (c *SWF) RegisterWorkflowType(input *RegisterWorkflowTypeInput) (*RegisterWorkflowTypeOutput, error) { req, out := c.RegisterWorkflowTypeRequest(input) err := req.Send() @@ -1813,6 +2359,8 @@ const opRequestCancelWorkflowExecution = "RequestCancelWorkflowExecution" // value can be used to capture response data after the request's "Send" method // is called. // +// See RequestCancelWorkflowExecution for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1849,6 +2397,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 +2422,24 @@ 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). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Workflow Service's +// API operation RequestCancelWorkflowExecution for usage and error information. +// +// Returned Error Codes: +// * UnknownResourceFault +// Returned when the named resource cannot be found with in the scope of this +// operation (region or domain). This could happen if the named resource was +// never created or is no longer available for this operation. +// +// * OperationNotPermittedFault +// Returned when the caller does not have sufficient permissions to invoke the +// action. +// func (c *SWF) RequestCancelWorkflowExecution(input *RequestCancelWorkflowExecutionInput) (*RequestCancelWorkflowExecutionOutput, error) { req, out := c.RequestCancelWorkflowExecutionRequest(input) err := req.Send() @@ -1885,6 +2453,8 @@ const opRespondActivityTaskCanceled = "RespondActivityTaskCanceled" // value can be used to capture response data after the request's "Send" method // is called. // +// See RespondActivityTaskCanceled for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1921,6 +2491,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 +2521,24 @@ 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). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Workflow Service's +// API operation RespondActivityTaskCanceled for usage and error information. +// +// Returned Error Codes: +// * UnknownResourceFault +// Returned when the named resource cannot be found with in the scope of this +// operation (region or domain). This could happen if the named resource was +// never created or is no longer available for this operation. +// +// * OperationNotPermittedFault +// Returned when the caller does not have sufficient permissions to invoke the +// action. +// func (c *SWF) RespondActivityTaskCanceled(input *RespondActivityTaskCanceledInput) (*RespondActivityTaskCanceledOutput, error) { req, out := c.RespondActivityTaskCanceledRequest(input) err := req.Send() @@ -1962,6 +2552,8 @@ const opRespondActivityTaskCompleted = "RespondActivityTaskCompleted" // value can be used to capture response data after the request's "Send" method // is called. // +// See RespondActivityTaskCompleted for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1998,6 +2590,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 +2618,24 @@ 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). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Workflow Service's +// API operation RespondActivityTaskCompleted for usage and error information. +// +// Returned Error Codes: +// * UnknownResourceFault +// Returned when the named resource cannot be found with in the scope of this +// operation (region or domain). This could happen if the named resource was +// never created or is no longer available for this operation. +// +// * OperationNotPermittedFault +// Returned when the caller does not have sufficient permissions to invoke the +// action. +// func (c *SWF) RespondActivityTaskCompleted(input *RespondActivityTaskCompletedInput) (*RespondActivityTaskCompletedOutput, error) { req, out := c.RespondActivityTaskCompletedRequest(input) err := req.Send() @@ -2037,6 +2649,8 @@ const opRespondActivityTaskFailed = "RespondActivityTaskFailed" // value can be used to capture response data after the request's "Send" method // is called. // +// See RespondActivityTaskFailed for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -2073,6 +2687,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 +2712,24 @@ 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). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Workflow Service's +// API operation RespondActivityTaskFailed for usage and error information. +// +// Returned Error Codes: +// * UnknownResourceFault +// Returned when the named resource cannot be found with in the scope of this +// operation (region or domain). This could happen if the named resource was +// never created or is no longer available for this operation. +// +// * OperationNotPermittedFault +// Returned when the caller does not have sufficient permissions to invoke the +// action. +// func (c *SWF) RespondActivityTaskFailed(input *RespondActivityTaskFailedInput) (*RespondActivityTaskFailedOutput, error) { req, out := c.RespondActivityTaskFailedRequest(input) err := req.Send() @@ -2109,6 +2743,8 @@ const opRespondDecisionTaskCompleted = "RespondDecisionTaskCompleted" // value can be used to capture response data after the request's "Send" method // is called. // +// See RespondDecisionTaskCompleted for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -2145,6 +2781,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 +2799,24 @@ 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). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Workflow Service's +// API operation RespondDecisionTaskCompleted for usage and error information. +// +// Returned Error Codes: +// * UnknownResourceFault +// Returned when the named resource cannot be found with in the scope of this +// operation (region or domain). This could happen if the named resource was +// never created or is no longer available for this operation. +// +// * OperationNotPermittedFault +// Returned when the caller does not have sufficient permissions to invoke the +// action. +// func (c *SWF) RespondDecisionTaskCompleted(input *RespondDecisionTaskCompletedInput) (*RespondDecisionTaskCompletedOutput, error) { req, out := c.RespondDecisionTaskCompletedRequest(input) err := req.Send() @@ -2174,6 +2830,8 @@ const opSignalWorkflowExecution = "SignalWorkflowExecution" // value can be used to capture response data after the request's "Send" method // is called. // +// See SignalWorkflowExecution for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -2210,6 +2868,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 +2891,24 @@ 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). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Workflow Service's +// API operation SignalWorkflowExecution for usage and error information. +// +// Returned Error Codes: +// * UnknownResourceFault +// Returned when the named resource cannot be found with in the scope of this +// operation (region or domain). This could happen if the named resource was +// never created or is no longer available for this operation. +// +// * OperationNotPermittedFault +// Returned when the caller does not have sufficient permissions to invoke the +// action. +// func (c *SWF) SignalWorkflowExecution(input *SignalWorkflowExecutionInput) (*SignalWorkflowExecutionOutput, error) { req, out := c.SignalWorkflowExecutionRequest(input) err := req.Send() @@ -2244,6 +2922,8 @@ const opStartWorkflowExecution = "StartWorkflowExecution" // value can be used to capture response data after the request's "Send" method // is called. // +// See StartWorkflowExecution for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -2278,6 +2958,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 +2984,39 @@ 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). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Workflow Service's +// API operation StartWorkflowExecution for usage and error information. +// +// Returned Error Codes: +// * UnknownResourceFault +// Returned when the named resource cannot be found with in the scope of this +// operation (region or domain). This could happen if the named resource was +// never created or is no longer available for this operation. +// +// * TypeDeprecatedFault +// Returned when the specified activity or workflow type was already deprecated. +// +// * WorkflowExecutionAlreadyStartedFault +// Returned by StartWorkflowExecution when an open execution with the same workflowId +// is already running in the specified domain. +// +// * LimitExceededFault +// Returned by any operation if a system imposed limitation has been reached. +// To address this fault you should either clean up unused resources or increase +// the limit by contacting AWS. +// +// * OperationNotPermittedFault +// Returned when the caller does not have sufficient permissions to invoke the +// action. +// +// * DefaultUndefinedFault + +// func (c *SWF) StartWorkflowExecution(input *StartWorkflowExecutionInput) (*StartWorkflowExecutionOutput, error) { req, out := c.StartWorkflowExecutionRequest(input) err := req.Send() @@ -2315,6 +3030,8 @@ const opTerminateWorkflowExecution = "TerminateWorkflowExecution" // value can be used to capture response data after the request's "Send" method // is called. // +// See TerminateWorkflowExecution for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -2351,6 +3068,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 +3094,24 @@ 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). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Simple Workflow Service's +// API operation TerminateWorkflowExecution for usage and error information. +// +// Returned Error Codes: +// * UnknownResourceFault +// Returned when the named resource cannot be found with in the scope of this +// operation (region or domain). This could happen if the named resource was +// never created or is no longer available for this operation. +// +// * OperationNotPermittedFault +// Returned when the caller does not have sufficient permissions to invoke the +// action. +// 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..47c081ff63b 100644 --- a/service/waf/api.go +++ b/service/waf/api.go @@ -18,6 +18,8 @@ const opCreateByteMatchSet = "CreateByteMatchSet" // value can be used to capture response data after the request's "Send" method // is called. // +// See CreateByteMatchSet for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -52,6 +54,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 +78,59 @@ 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/). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS WAF's +// API operation CreateByteMatchSet for usage and error information. +// +// Returned Error Codes: +// * DisallowedNameException +// The name specified is invalid. +// +// * InternalErrorException +// The operation failed because of a system problem, even though the request +// was valid. Retry your request. +// +// * InvalidAccountException +// The operation failed because you tried to create, update, or delete an object +// by using an invalid account identifier. +// +// * InvalidParameterException +// The operation failed because AWS WAF didn't recognize a parameter in the +// request. For example: +// +// You specified an invalid parameter name. +// +// You specified an invalid value. +// +// You tried to update an object (ByteMatchSet, IPSet, Rule, or WebACL) using +// an action other than INSERT or DELETE. +// +// You tried to create a WebACL with a DefaultAction Type other than ALLOW, +// BLOCK, or COUNT. +// +// You tried to update a WebACL with a WafAction Type other than ALLOW, BLOCK, +// or COUNT. +// +// You tried to update a ByteMatchSet with a FieldToMatch Type other than +// HEADER, QUERY_STRING, or URI. +// +// You tried to update a ByteMatchSet with a Field of HEADER but no value +// for Data. +// +// * StaleDataException +// The operation failed because you tried to create, update, or delete an object +// by using a change token that has already been used. +// +// * LimitsExceededException +// The operation exceeds a resource limit, for example, the maximum number of +// WebACL objects that you can create for an AWS account. For more information, +// see Limits (http://docs.aws.amazon.com/waf/latest/developerguide/limits.html) +// in the AWS WAF Developer Guide. +// func (c *WAF) CreateByteMatchSet(input *CreateByteMatchSetInput) (*CreateByteMatchSetOutput, error) { req, out := c.CreateByteMatchSetRequest(input) err := req.Send() @@ -87,6 +144,8 @@ const opCreateIPSet = "CreateIPSet" // value can be used to capture response data after the request's "Send" method // is called. // +// See CreateIPSet for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -121,6 +180,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 +204,59 @@ 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/). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS WAF's +// API operation CreateIPSet for usage and error information. +// +// Returned Error Codes: +// * StaleDataException +// The operation failed because you tried to create, update, or delete an object +// by using a change token that has already been used. +// +// * InternalErrorException +// The operation failed because of a system problem, even though the request +// was valid. Retry your request. +// +// * InvalidAccountException +// The operation failed because you tried to create, update, or delete an object +// by using an invalid account identifier. +// +// * DisallowedNameException +// The name specified is invalid. +// +// * InvalidParameterException +// The operation failed because AWS WAF didn't recognize a parameter in the +// request. For example: +// +// You specified an invalid parameter name. +// +// You specified an invalid value. +// +// You tried to update an object (ByteMatchSet, IPSet, Rule, or WebACL) using +// an action other than INSERT or DELETE. +// +// You tried to create a WebACL with a DefaultAction Type other than ALLOW, +// BLOCK, or COUNT. +// +// You tried to update a WebACL with a WafAction Type other than ALLOW, BLOCK, +// or COUNT. +// +// You tried to update a ByteMatchSet with a FieldToMatch Type other than +// HEADER, QUERY_STRING, or URI. +// +// You tried to update a ByteMatchSet with a Field of HEADER but no value +// for Data. +// +// * LimitsExceededException +// The operation exceeds a resource limit, for example, the maximum number of +// WebACL objects that you can create for an AWS account. For more information, +// see Limits (http://docs.aws.amazon.com/waf/latest/developerguide/limits.html) +// in the AWS WAF Developer Guide. +// func (c *WAF) CreateIPSet(input *CreateIPSetInput) (*CreateIPSetOutput, error) { req, out := c.CreateIPSetRequest(input) err := req.Send() @@ -156,6 +270,8 @@ const opCreateRule = "CreateRule" // value can be used to capture response data after the request's "Send" method // is called. // +// See CreateRule for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -190,6 +306,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 +344,55 @@ 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/). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS WAF's +// API operation CreateRule for usage and error information. +// +// Returned Error Codes: +// * StaleDataException +// The operation failed because you tried to create, update, or delete an object +// by using a change token that has already been used. +// +// * InternalErrorException +// The operation failed because of a system problem, even though the request +// was valid. Retry your request. +// +// * DisallowedNameException +// The name specified is invalid. +// +// * InvalidParameterException +// The operation failed because AWS WAF didn't recognize a parameter in the +// request. For example: +// +// You specified an invalid parameter name. +// +// You specified an invalid value. +// +// You tried to update an object (ByteMatchSet, IPSet, Rule, or WebACL) using +// an action other than INSERT or DELETE. +// +// You tried to create a WebACL with a DefaultAction Type other than ALLOW, +// BLOCK, or COUNT. +// +// You tried to update a WebACL with a WafAction Type other than ALLOW, BLOCK, +// or COUNT. +// +// You tried to update a ByteMatchSet with a FieldToMatch Type other than +// HEADER, QUERY_STRING, or URI. +// +// You tried to update a ByteMatchSet with a Field of HEADER but no value +// for Data. +// +// * LimitsExceededException +// The operation exceeds a resource limit, for example, the maximum number of +// WebACL objects that you can create for an AWS account. For more information, +// see Limits (http://docs.aws.amazon.com/waf/latest/developerguide/limits.html) +// in the AWS WAF Developer Guide. +// func (c *WAF) CreateRule(input *CreateRuleInput) (*CreateRuleOutput, error) { req, out := c.CreateRuleRequest(input) err := req.Send() @@ -239,6 +406,8 @@ const opCreateSizeConstraintSet = "CreateSizeConstraintSet" // value can be used to capture response data after the request's "Send" method // is called. // +// See CreateSizeConstraintSet for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -273,6 +442,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 +467,59 @@ 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/). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS WAF's +// API operation CreateSizeConstraintSet for usage and error information. +// +// Returned Error Codes: +// * StaleDataException +// The operation failed because you tried to create, update, or delete an object +// by using a change token that has already been used. +// +// * InternalErrorException +// The operation failed because of a system problem, even though the request +// was valid. Retry your request. +// +// * InvalidAccountException +// The operation failed because you tried to create, update, or delete an object +// by using an invalid account identifier. +// +// * DisallowedNameException +// The name specified is invalid. +// +// * InvalidParameterException +// The operation failed because AWS WAF didn't recognize a parameter in the +// request. For example: +// +// You specified an invalid parameter name. +// +// You specified an invalid value. +// +// You tried to update an object (ByteMatchSet, IPSet, Rule, or WebACL) using +// an action other than INSERT or DELETE. +// +// You tried to create a WebACL with a DefaultAction Type other than ALLOW, +// BLOCK, or COUNT. +// +// You tried to update a WebACL with a WafAction Type other than ALLOW, BLOCK, +// or COUNT. +// +// You tried to update a ByteMatchSet with a FieldToMatch Type other than +// HEADER, QUERY_STRING, or URI. +// +// You tried to update a ByteMatchSet with a Field of HEADER but no value +// for Data. +// +// * LimitsExceededException +// The operation exceeds a resource limit, for example, the maximum number of +// WebACL objects that you can create for an AWS account. For more information, +// see Limits (http://docs.aws.amazon.com/waf/latest/developerguide/limits.html) +// in the AWS WAF Developer Guide. +// func (c *WAF) CreateSizeConstraintSet(input *CreateSizeConstraintSetInput) (*CreateSizeConstraintSetOutput, error) { req, out := c.CreateSizeConstraintSetRequest(input) err := req.Send() @@ -309,6 +533,8 @@ const opCreateSqlInjectionMatchSet = "CreateSqlInjectionMatchSet" // value can be used to capture response data after the request's "Send" method // is called. // +// See CreateSqlInjectionMatchSet for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -343,6 +569,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 +590,59 @@ 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/). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS WAF's +// API operation CreateSqlInjectionMatchSet for usage and error information. +// +// Returned Error Codes: +// * DisallowedNameException +// The name specified is invalid. +// +// * InternalErrorException +// The operation failed because of a system problem, even though the request +// was valid. Retry your request. +// +// * InvalidAccountException +// The operation failed because you tried to create, update, or delete an object +// by using an invalid account identifier. +// +// * InvalidParameterException +// The operation failed because AWS WAF didn't recognize a parameter in the +// request. For example: +// +// You specified an invalid parameter name. +// +// You specified an invalid value. +// +// You tried to update an object (ByteMatchSet, IPSet, Rule, or WebACL) using +// an action other than INSERT or DELETE. +// +// You tried to create a WebACL with a DefaultAction Type other than ALLOW, +// BLOCK, or COUNT. +// +// You tried to update a WebACL with a WafAction Type other than ALLOW, BLOCK, +// or COUNT. +// +// You tried to update a ByteMatchSet with a FieldToMatch Type other than +// HEADER, QUERY_STRING, or URI. +// +// You tried to update a ByteMatchSet with a Field of HEADER but no value +// for Data. +// +// * StaleDataException +// The operation failed because you tried to create, update, or delete an object +// by using a change token that has already been used. +// +// * LimitsExceededException +// The operation exceeds a resource limit, for example, the maximum number of +// WebACL objects that you can create for an AWS account. For more information, +// see Limits (http://docs.aws.amazon.com/waf/latest/developerguide/limits.html) +// in the AWS WAF Developer Guide. +// func (c *WAF) CreateSqlInjectionMatchSet(input *CreateSqlInjectionMatchSetInput) (*CreateSqlInjectionMatchSetOutput, error) { req, out := c.CreateSqlInjectionMatchSetRequest(input) err := req.Send() @@ -375,6 +656,8 @@ const opCreateWebACL = "CreateWebACL" // value can be used to capture response data after the request's "Send" method // is called. // +// See CreateWebACL for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -409,6 +692,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 +725,59 @@ 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/). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS WAF's +// API operation CreateWebACL for usage and error information. +// +// Returned Error Codes: +// * StaleDataException +// The operation failed because you tried to create, update, or delete an object +// by using a change token that has already been used. +// +// * InternalErrorException +// The operation failed because of a system problem, even though the request +// was valid. Retry your request. +// +// * InvalidAccountException +// The operation failed because you tried to create, update, or delete an object +// by using an invalid account identifier. +// +// * DisallowedNameException +// The name specified is invalid. +// +// * InvalidParameterException +// The operation failed because AWS WAF didn't recognize a parameter in the +// request. For example: +// +// You specified an invalid parameter name. +// +// You specified an invalid value. +// +// You tried to update an object (ByteMatchSet, IPSet, Rule, or WebACL) using +// an action other than INSERT or DELETE. +// +// You tried to create a WebACL with a DefaultAction Type other than ALLOW, +// BLOCK, or COUNT. +// +// You tried to update a WebACL with a WafAction Type other than ALLOW, BLOCK, +// or COUNT. +// +// You tried to update a ByteMatchSet with a FieldToMatch Type other than +// HEADER, QUERY_STRING, or URI. +// +// You tried to update a ByteMatchSet with a Field of HEADER but no value +// for Data. +// +// * LimitsExceededException +// The operation exceeds a resource limit, for example, the maximum number of +// WebACL objects that you can create for an AWS account. For more information, +// see Limits (http://docs.aws.amazon.com/waf/latest/developerguide/limits.html) +// in the AWS WAF Developer Guide. +// func (c *WAF) CreateWebACL(input *CreateWebACLInput) (*CreateWebACLOutput, error) { req, out := c.CreateWebACLRequest(input) err := req.Send() @@ -453,6 +791,8 @@ const opCreateXssMatchSet = "CreateXssMatchSet" // value can be used to capture response data after the request's "Send" method // is called. // +// See CreateXssMatchSet for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -487,6 +827,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 +849,59 @@ 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/). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS WAF's +// API operation CreateXssMatchSet for usage and error information. +// +// Returned Error Codes: +// * DisallowedNameException +// The name specified is invalid. +// +// * InternalErrorException +// The operation failed because of a system problem, even though the request +// was valid. Retry your request. +// +// * InvalidAccountException +// The operation failed because you tried to create, update, or delete an object +// by using an invalid account identifier. +// +// * InvalidParameterException +// The operation failed because AWS WAF didn't recognize a parameter in the +// request. For example: +// +// You specified an invalid parameter name. +// +// You specified an invalid value. +// +// You tried to update an object (ByteMatchSet, IPSet, Rule, or WebACL) using +// an action other than INSERT or DELETE. +// +// You tried to create a WebACL with a DefaultAction Type other than ALLOW, +// BLOCK, or COUNT. +// +// You tried to update a WebACL with a WafAction Type other than ALLOW, BLOCK, +// or COUNT. +// +// You tried to update a ByteMatchSet with a FieldToMatch Type other than +// HEADER, QUERY_STRING, or URI. +// +// You tried to update a ByteMatchSet with a Field of HEADER but no value +// for Data. +// +// * StaleDataException +// The operation failed because you tried to create, update, or delete an object +// by using a change token that has already been used. +// +// * LimitsExceededException +// The operation exceeds a resource limit, for example, the maximum number of +// WebACL objects that you can create for an AWS account. For more information, +// see Limits (http://docs.aws.amazon.com/waf/latest/developerguide/limits.html) +// in the AWS WAF Developer Guide. +// func (c *WAF) CreateXssMatchSet(input *CreateXssMatchSetInput) (*CreateXssMatchSetOutput, error) { req, out := c.CreateXssMatchSetRequest(input) err := req.Send() @@ -520,6 +915,8 @@ const opDeleteByteMatchSet = "DeleteByteMatchSet" // value can be used to capture response data after the request's "Send" method // is called. // +// See DeleteByteMatchSet for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -554,6 +951,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 +968,52 @@ func (c *WAF) DeleteByteMatchSetRequest(input *DeleteByteMatchSetInput) (req *re // parameter of a DeleteByteMatchSet request. // // Submit a DeleteByteMatchSet request. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS WAF's +// API operation DeleteByteMatchSet for usage and error information. +// +// Returned Error Codes: +// * InternalErrorException +// The operation failed because of a system problem, even though the request +// was valid. Retry your request. +// +// * InvalidAccountException +// The operation failed because you tried to create, update, or delete an object +// by using an invalid account identifier. +// +// * NonexistentItemException +// The operation failed because the referenced object doesn't exist. +// +// * ReferencedItemException +// The operation failed because you tried to delete an object that is still +// in use. For example: +// +// You tried to delete a ByteMatchSet that is still referenced by a Rule. +// +// You tried to delete a Rule that is still referenced by a WebACL. +// +// * StaleDataException +// The operation failed because you tried to create, update, or delete an object +// by using a change token that has already been used. +// +// * NonEmptyEntityException +// The operation failed because you tried to delete an object that isn't empty. +// For example: +// +// You tried to delete a WebACL that still contains one or more Rule objects. +// +// You tried to delete a Rule that still contains one or more ByteMatchSet +// objects or other predicates. +// +// You tried to delete a ByteMatchSet that contains one or more ByteMatchTuple +// objects. +// +// You tried to delete an IPSet that references one or more IP addresses. +// func (c *WAF) DeleteByteMatchSet(input *DeleteByteMatchSetInput) (*DeleteByteMatchSetOutput, error) { req, out := c.DeleteByteMatchSetRequest(input) err := req.Send() @@ -582,6 +1027,8 @@ const opDeleteIPSet = "DeleteIPSet" // value can be used to capture response data after the request's "Send" method // is called. // +// See DeleteIPSet for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -616,6 +1063,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 +1079,52 @@ func (c *WAF) DeleteIPSetRequest(input *DeleteIPSetInput) (req *request.Request, // parameter of a DeleteIPSet request. // // Submit a DeleteIPSet request. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS WAF's +// API operation DeleteIPSet for usage and error information. +// +// Returned Error Codes: +// * StaleDataException +// The operation failed because you tried to create, update, or delete an object +// by using a change token that has already been used. +// +// * InternalErrorException +// The operation failed because of a system problem, even though the request +// was valid. Retry your request. +// +// * InvalidAccountException +// The operation failed because you tried to create, update, or delete an object +// by using an invalid account identifier. +// +// * NonexistentItemException +// The operation failed because the referenced object doesn't exist. +// +// * ReferencedItemException +// The operation failed because you tried to delete an object that is still +// in use. For example: +// +// You tried to delete a ByteMatchSet that is still referenced by a Rule. +// +// You tried to delete a Rule that is still referenced by a WebACL. +// +// * NonEmptyEntityException +// The operation failed because you tried to delete an object that isn't empty. +// For example: +// +// You tried to delete a WebACL that still contains one or more Rule objects. +// +// You tried to delete a Rule that still contains one or more ByteMatchSet +// objects or other predicates. +// +// You tried to delete a ByteMatchSet that contains one or more ByteMatchTuple +// objects. +// +// You tried to delete an IPSet that references one or more IP addresses. +// func (c *WAF) DeleteIPSet(input *DeleteIPSetInput) (*DeleteIPSetOutput, error) { req, out := c.DeleteIPSetRequest(input) err := req.Send() @@ -643,6 +1138,8 @@ const opDeleteRule = "DeleteRule" // value can be used to capture response data after the request's "Send" method // is called. // +// See DeleteRule for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -677,6 +1174,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 +1191,52 @@ func (c *WAF) DeleteRuleRequest(input *DeleteRuleInput) (req *request.Request, o // parameter of a DeleteRule request. // // Submit a DeleteRule request. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS WAF's +// API operation DeleteRule for usage and error information. +// +// Returned Error Codes: +// * StaleDataException +// The operation failed because you tried to create, update, or delete an object +// by using a change token that has already been used. +// +// * InternalErrorException +// The operation failed because of a system problem, even though the request +// was valid. Retry your request. +// +// * InvalidAccountException +// The operation failed because you tried to create, update, or delete an object +// by using an invalid account identifier. +// +// * NonexistentItemException +// The operation failed because the referenced object doesn't exist. +// +// * ReferencedItemException +// The operation failed because you tried to delete an object that is still +// in use. For example: +// +// You tried to delete a ByteMatchSet that is still referenced by a Rule. +// +// You tried to delete a Rule that is still referenced by a WebACL. +// +// * NonEmptyEntityException +// The operation failed because you tried to delete an object that isn't empty. +// For example: +// +// You tried to delete a WebACL that still contains one or more Rule objects. +// +// You tried to delete a Rule that still contains one or more ByteMatchSet +// objects or other predicates. +// +// You tried to delete a ByteMatchSet that contains one or more ByteMatchTuple +// objects. +// +// You tried to delete an IPSet that references one or more IP addresses. +// func (c *WAF) DeleteRule(input *DeleteRuleInput) (*DeleteRuleOutput, error) { req, out := c.DeleteRuleRequest(input) err := req.Send() @@ -705,6 +1250,8 @@ const opDeleteSizeConstraintSet = "DeleteSizeConstraintSet" // value can be used to capture response data after the request's "Send" method // is called. // +// See DeleteSizeConstraintSet for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -739,6 +1286,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 +1303,52 @@ func (c *WAF) DeleteSizeConstraintSetRequest(input *DeleteSizeConstraintSetInput // parameter of a DeleteSizeConstraintSet request. // // Submit a DeleteSizeConstraintSet request. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS WAF's +// API operation DeleteSizeConstraintSet for usage and error information. +// +// Returned Error Codes: +// * StaleDataException +// The operation failed because you tried to create, update, or delete an object +// by using a change token that has already been used. +// +// * InternalErrorException +// The operation failed because of a system problem, even though the request +// was valid. Retry your request. +// +// * InvalidAccountException +// The operation failed because you tried to create, update, or delete an object +// by using an invalid account identifier. +// +// * NonexistentItemException +// The operation failed because the referenced object doesn't exist. +// +// * ReferencedItemException +// The operation failed because you tried to delete an object that is still +// in use. For example: +// +// You tried to delete a ByteMatchSet that is still referenced by a Rule. +// +// You tried to delete a Rule that is still referenced by a WebACL. +// +// * NonEmptyEntityException +// The operation failed because you tried to delete an object that isn't empty. +// For example: +// +// You tried to delete a WebACL that still contains one or more Rule objects. +// +// You tried to delete a Rule that still contains one or more ByteMatchSet +// objects or other predicates. +// +// You tried to delete a ByteMatchSet that contains one or more ByteMatchTuple +// objects. +// +// You tried to delete an IPSet that references one or more IP addresses. +// func (c *WAF) DeleteSizeConstraintSet(input *DeleteSizeConstraintSetInput) (*DeleteSizeConstraintSetOutput, error) { req, out := c.DeleteSizeConstraintSetRequest(input) err := req.Send() @@ -767,6 +1362,8 @@ const opDeleteSqlInjectionMatchSet = "DeleteSqlInjectionMatchSet" // value can be used to capture response data after the request's "Send" method // is called. // +// See DeleteSqlInjectionMatchSet for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -801,6 +1398,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 +1416,52 @@ func (c *WAF) DeleteSqlInjectionMatchSetRequest(input *DeleteSqlInjectionMatchSe // parameter of a DeleteSqlInjectionMatchSet request. // // Submit a DeleteSqlInjectionMatchSet request. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS WAF's +// API operation DeleteSqlInjectionMatchSet for usage and error information. +// +// Returned Error Codes: +// * InternalErrorException +// The operation failed because of a system problem, even though the request +// was valid. Retry your request. +// +// * InvalidAccountException +// The operation failed because you tried to create, update, or delete an object +// by using an invalid account identifier. +// +// * NonexistentItemException +// The operation failed because the referenced object doesn't exist. +// +// * ReferencedItemException +// The operation failed because you tried to delete an object that is still +// in use. For example: +// +// You tried to delete a ByteMatchSet that is still referenced by a Rule. +// +// You tried to delete a Rule that is still referenced by a WebACL. +// +// * StaleDataException +// The operation failed because you tried to create, update, or delete an object +// by using a change token that has already been used. +// +// * NonEmptyEntityException +// The operation failed because you tried to delete an object that isn't empty. +// For example: +// +// You tried to delete a WebACL that still contains one or more Rule objects. +// +// You tried to delete a Rule that still contains one or more ByteMatchSet +// objects or other predicates. +// +// You tried to delete a ByteMatchSet that contains one or more ByteMatchTuple +// objects. +// +// You tried to delete an IPSet that references one or more IP addresses. +// func (c *WAF) DeleteSqlInjectionMatchSet(input *DeleteSqlInjectionMatchSetInput) (*DeleteSqlInjectionMatchSetOutput, error) { req, out := c.DeleteSqlInjectionMatchSetRequest(input) err := req.Send() @@ -830,6 +1475,8 @@ const opDeleteWebACL = "DeleteWebACL" // value can be used to capture response data after the request's "Send" method // is called. // +// See DeleteWebACL for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -864,6 +1511,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 +1524,52 @@ func (c *WAF) DeleteWebACLRequest(input *DeleteWebACLInput) (req *request.Reques // parameter of a DeleteWebACL request. // // Submit a DeleteWebACL request. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS WAF's +// API operation DeleteWebACL for usage and error information. +// +// Returned Error Codes: +// * StaleDataException +// The operation failed because you tried to create, update, or delete an object +// by using a change token that has already been used. +// +// * InternalErrorException +// The operation failed because of a system problem, even though the request +// was valid. Retry your request. +// +// * InvalidAccountException +// The operation failed because you tried to create, update, or delete an object +// by using an invalid account identifier. +// +// * NonexistentItemException +// The operation failed because the referenced object doesn't exist. +// +// * ReferencedItemException +// The operation failed because you tried to delete an object that is still +// in use. For example: +// +// You tried to delete a ByteMatchSet that is still referenced by a Rule. +// +// You tried to delete a Rule that is still referenced by a WebACL. +// +// * NonEmptyEntityException +// The operation failed because you tried to delete an object that isn't empty. +// For example: +// +// You tried to delete a WebACL that still contains one or more Rule objects. +// +// You tried to delete a Rule that still contains one or more ByteMatchSet +// objects or other predicates. +// +// You tried to delete a ByteMatchSet that contains one or more ByteMatchTuple +// objects. +// +// You tried to delete an IPSet that references one or more IP addresses. +// func (c *WAF) DeleteWebACL(input *DeleteWebACLInput) (*DeleteWebACLOutput, error) { req, out := c.DeleteWebACLRequest(input) err := req.Send() @@ -888,6 +1583,8 @@ const opDeleteXssMatchSet = "DeleteXssMatchSet" // value can be used to capture response data after the request's "Send" method // is called. // +// See DeleteXssMatchSet for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -922,6 +1619,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 +1636,52 @@ func (c *WAF) DeleteXssMatchSetRequest(input *DeleteXssMatchSetInput) (req *requ // parameter of a DeleteXssMatchSet request. // // Submit a DeleteXssMatchSet request. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS WAF's +// API operation DeleteXssMatchSet for usage and error information. +// +// Returned Error Codes: +// * InternalErrorException +// The operation failed because of a system problem, even though the request +// was valid. Retry your request. +// +// * InvalidAccountException +// The operation failed because you tried to create, update, or delete an object +// by using an invalid account identifier. +// +// * NonexistentItemException +// The operation failed because the referenced object doesn't exist. +// +// * ReferencedItemException +// The operation failed because you tried to delete an object that is still +// in use. For example: +// +// You tried to delete a ByteMatchSet that is still referenced by a Rule. +// +// You tried to delete a Rule that is still referenced by a WebACL. +// +// * StaleDataException +// The operation failed because you tried to create, update, or delete an object +// by using a change token that has already been used. +// +// * NonEmptyEntityException +// The operation failed because you tried to delete an object that isn't empty. +// For example: +// +// You tried to delete a WebACL that still contains one or more Rule objects. +// +// You tried to delete a Rule that still contains one or more ByteMatchSet +// objects or other predicates. +// +// You tried to delete a ByteMatchSet that contains one or more ByteMatchTuple +// objects. +// +// You tried to delete an IPSet that references one or more IP addresses. +// func (c *WAF) DeleteXssMatchSet(input *DeleteXssMatchSetInput) (*DeleteXssMatchSetOutput, error) { req, out := c.DeleteXssMatchSetRequest(input) err := req.Send() @@ -950,6 +1695,8 @@ const opGetByteMatchSet = "GetByteMatchSet" // value can be used to capture response data after the request's "Send" method // is called. // +// See GetByteMatchSet for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -984,7 +1731,29 @@ func (c *WAF) GetByteMatchSetRequest(input *GetByteMatchSetInput) (req *request. return } +// GetByteMatchSet API operation for AWS WAF. +// // Returns the ByteMatchSet specified by ByteMatchSetId. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS WAF's +// API operation GetByteMatchSet for usage and error information. +// +// Returned Error Codes: +// * InternalErrorException +// The operation failed because of a system problem, even though the request +// was valid. Retry your request. +// +// * InvalidAccountException +// The operation failed because you tried to create, update, or delete an object +// by using an invalid account identifier. +// +// * NonexistentItemException +// The operation failed because the referenced object doesn't exist. +// func (c *WAF) GetByteMatchSet(input *GetByteMatchSetInput) (*GetByteMatchSetOutput, error) { req, out := c.GetByteMatchSetRequest(input) err := req.Send() @@ -998,6 +1767,8 @@ const opGetChangeToken = "GetChangeToken" // value can be used to capture response data after the request's "Send" method // is called. // +// See GetChangeToken for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1032,6 +1803,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,8 +1820,21 @@ 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. -func (c *WAF) GetChangeToken(input *GetChangeTokenInput) (*GetChangeTokenOutput, error) { - req, out := c.GetChangeTokenRequest(input) +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS WAF's +// API operation GetChangeToken for usage and error information. +// +// Returned Error Codes: +// * InternalErrorException +// The operation failed because of a system problem, even though the request +// was valid. Retry your request. +// +func (c *WAF) GetChangeToken(input *GetChangeTokenInput) (*GetChangeTokenOutput, error) { + req, out := c.GetChangeTokenRequest(input) err := req.Send() return out, err } @@ -1060,6 +1846,8 @@ const opGetChangeTokenStatus = "GetChangeTokenStatus" // value can be used to capture response data after the request's "Send" method // is called. // +// See GetChangeTokenStatus for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1094,6 +1882,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 +1895,22 @@ func (c *WAF) GetChangeTokenStatusRequest(input *GetChangeTokenStatusInput) (req // to all AWS WAF servers. // // IN_SYNC: Propagation is complete. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS WAF's +// API operation GetChangeTokenStatus for usage and error information. +// +// Returned Error Codes: +// * NonexistentItemException +// The operation failed because the referenced object doesn't exist. +// +// * InternalErrorException +// The operation failed because of a system problem, even though the request +// was valid. Retry your request. +// func (c *WAF) GetChangeTokenStatus(input *GetChangeTokenStatusInput) (*GetChangeTokenStatusOutput, error) { req, out := c.GetChangeTokenStatusRequest(input) err := req.Send() @@ -1118,6 +1924,8 @@ const opGetIPSet = "GetIPSet" // value can be used to capture response data after the request's "Send" method // is called. // +// See GetIPSet for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1152,7 +1960,29 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS WAF's +// API operation GetIPSet for usage and error information. +// +// Returned Error Codes: +// * InternalErrorException +// The operation failed because of a system problem, even though the request +// was valid. Retry your request. +// +// * InvalidAccountException +// The operation failed because you tried to create, update, or delete an object +// by using an invalid account identifier. +// +// * NonexistentItemException +// The operation failed because the referenced object doesn't exist. +// func (c *WAF) GetIPSet(input *GetIPSetInput) (*GetIPSetOutput, error) { req, out := c.GetIPSetRequest(input) err := req.Send() @@ -1166,6 +1996,8 @@ const opGetRule = "GetRule" // value can be used to capture response data after the request's "Send" method // is called. // +// See GetRule for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1200,8 +2032,30 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS WAF's +// API operation GetRule for usage and error information. +// +// Returned Error Codes: +// * InternalErrorException +// The operation failed because of a system problem, even though the request +// was valid. Retry your request. +// +// * InvalidAccountException +// The operation failed because you tried to create, update, or delete an object +// by using an invalid account identifier. +// +// * NonexistentItemException +// The operation failed because the referenced object doesn't exist. +// func (c *WAF) GetRule(input *GetRuleInput) (*GetRuleOutput, error) { req, out := c.GetRuleRequest(input) err := req.Send() @@ -1215,6 +2069,8 @@ const opGetSampledRequests = "GetSampledRequests" // value can be used to capture response data after the request's "Send" method // is called. // +// See GetSampledRequests for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1249,6 +2105,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 +2118,22 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS WAF's +// API operation GetSampledRequests for usage and error information. +// +// Returned Error Codes: +// * NonexistentItemException +// The operation failed because the referenced object doesn't exist. +// +// * InternalErrorException +// The operation failed because of a system problem, even though the request +// was valid. Retry your request. +// func (c *WAF) GetSampledRequests(input *GetSampledRequestsInput) (*GetSampledRequestsOutput, error) { req, out := c.GetSampledRequestsRequest(input) err := req.Send() @@ -1273,6 +2147,8 @@ const opGetSizeConstraintSet = "GetSizeConstraintSet" // value can be used to capture response data after the request's "Send" method // is called. // +// See GetSizeConstraintSet for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1307,7 +2183,29 @@ func (c *WAF) GetSizeConstraintSetRequest(input *GetSizeConstraintSetInput) (req return } +// GetSizeConstraintSet API operation for AWS WAF. +// // Returns the SizeConstraintSet specified by SizeConstraintSetId. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS WAF's +// API operation GetSizeConstraintSet for usage and error information. +// +// Returned Error Codes: +// * InternalErrorException +// The operation failed because of a system problem, even though the request +// was valid. Retry your request. +// +// * InvalidAccountException +// The operation failed because you tried to create, update, or delete an object +// by using an invalid account identifier. +// +// * NonexistentItemException +// The operation failed because the referenced object doesn't exist. +// func (c *WAF) GetSizeConstraintSet(input *GetSizeConstraintSetInput) (*GetSizeConstraintSetOutput, error) { req, out := c.GetSizeConstraintSetRequest(input) err := req.Send() @@ -1321,6 +2219,8 @@ const opGetSqlInjectionMatchSet = "GetSqlInjectionMatchSet" // value can be used to capture response data after the request's "Send" method // is called. // +// See GetSqlInjectionMatchSet for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1355,7 +2255,29 @@ func (c *WAF) GetSqlInjectionMatchSetRequest(input *GetSqlInjectionMatchSetInput return } +// GetSqlInjectionMatchSet API operation for AWS WAF. +// // Returns the SqlInjectionMatchSet that is specified by SqlInjectionMatchSetId. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS WAF's +// API operation GetSqlInjectionMatchSet for usage and error information. +// +// Returned Error Codes: +// * InternalErrorException +// The operation failed because of a system problem, even though the request +// was valid. Retry your request. +// +// * InvalidAccountException +// The operation failed because you tried to create, update, or delete an object +// by using an invalid account identifier. +// +// * NonexistentItemException +// The operation failed because the referenced object doesn't exist. +// func (c *WAF) GetSqlInjectionMatchSet(input *GetSqlInjectionMatchSetInput) (*GetSqlInjectionMatchSetOutput, error) { req, out := c.GetSqlInjectionMatchSetRequest(input) err := req.Send() @@ -1369,6 +2291,8 @@ const opGetWebACL = "GetWebACL" // value can be used to capture response data after the request's "Send" method // is called. // +// See GetWebACL for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1403,7 +2327,29 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS WAF's +// API operation GetWebACL for usage and error information. +// +// Returned Error Codes: +// * InternalErrorException +// The operation failed because of a system problem, even though the request +// was valid. Retry your request. +// +// * InvalidAccountException +// The operation failed because you tried to create, update, or delete an object +// by using an invalid account identifier. +// +// * NonexistentItemException +// The operation failed because the referenced object doesn't exist. +// func (c *WAF) GetWebACL(input *GetWebACLInput) (*GetWebACLOutput, error) { req, out := c.GetWebACLRequest(input) err := req.Send() @@ -1417,6 +2363,8 @@ const opGetXssMatchSet = "GetXssMatchSet" // value can be used to capture response data after the request's "Send" method // is called. // +// See GetXssMatchSet for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1451,7 +2399,29 @@ func (c *WAF) GetXssMatchSetRequest(input *GetXssMatchSetInput) (req *request.Re return } +// GetXssMatchSet API operation for AWS WAF. +// // Returns the XssMatchSet that is specified by XssMatchSetId. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS WAF's +// API operation GetXssMatchSet for usage and error information. +// +// Returned Error Codes: +// * InternalErrorException +// The operation failed because of a system problem, even though the request +// was valid. Retry your request. +// +// * InvalidAccountException +// The operation failed because you tried to create, update, or delete an object +// by using an invalid account identifier. +// +// * NonexistentItemException +// The operation failed because the referenced object doesn't exist. +// func (c *WAF) GetXssMatchSet(input *GetXssMatchSetInput) (*GetXssMatchSetOutput, error) { req, out := c.GetXssMatchSetRequest(input) err := req.Send() @@ -1465,6 +2435,8 @@ const opListByteMatchSets = "ListByteMatchSets" // value can be used to capture response data after the request's "Send" method // is called. // +// See ListByteMatchSets for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1499,7 +2471,26 @@ func (c *WAF) ListByteMatchSetsRequest(input *ListByteMatchSetsInput) (req *requ return } +// ListByteMatchSets API operation for AWS WAF. +// // Returns an array of ByteMatchSetSummary objects. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS WAF's +// API operation ListByteMatchSets for usage and error information. +// +// Returned Error Codes: +// * InternalErrorException +// The operation failed because of a system problem, even though the request +// was valid. Retry your request. +// +// * InvalidAccountException +// The operation failed because you tried to create, update, or delete an object +// by using an invalid account identifier. +// func (c *WAF) ListByteMatchSets(input *ListByteMatchSetsInput) (*ListByteMatchSetsOutput, error) { req, out := c.ListByteMatchSetsRequest(input) err := req.Send() @@ -1513,6 +2504,8 @@ const opListIPSets = "ListIPSets" // value can be used to capture response data after the request's "Send" method // is called. // +// See ListIPSets for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1547,7 +2540,26 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS WAF's +// API operation ListIPSets for usage and error information. +// +// Returned Error Codes: +// * InternalErrorException +// The operation failed because of a system problem, even though the request +// was valid. Retry your request. +// +// * InvalidAccountException +// The operation failed because you tried to create, update, or delete an object +// by using an invalid account identifier. +// func (c *WAF) ListIPSets(input *ListIPSetsInput) (*ListIPSetsOutput, error) { req, out := c.ListIPSetsRequest(input) err := req.Send() @@ -1561,6 +2573,8 @@ const opListRules = "ListRules" // value can be used to capture response data after the request's "Send" method // is called. // +// See ListRules for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1595,7 +2609,26 @@ func (c *WAF) ListRulesRequest(input *ListRulesInput) (req *request.Request, out return } +// ListRules API operation for AWS WAF. +// // Returns an array of RuleSummary objects. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS WAF's +// API operation ListRules for usage and error information. +// +// Returned Error Codes: +// * InternalErrorException +// The operation failed because of a system problem, even though the request +// was valid. Retry your request. +// +// * InvalidAccountException +// The operation failed because you tried to create, update, or delete an object +// by using an invalid account identifier. +// func (c *WAF) ListRules(input *ListRulesInput) (*ListRulesOutput, error) { req, out := c.ListRulesRequest(input) err := req.Send() @@ -1609,6 +2642,8 @@ const opListSizeConstraintSets = "ListSizeConstraintSets" // value can be used to capture response data after the request's "Send" method // is called. // +// See ListSizeConstraintSets for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1643,7 +2678,26 @@ func (c *WAF) ListSizeConstraintSetsRequest(input *ListSizeConstraintSetsInput) return } +// ListSizeConstraintSets API operation for AWS WAF. +// // Returns an array of SizeConstraintSetSummary objects. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS WAF's +// API operation ListSizeConstraintSets for usage and error information. +// +// Returned Error Codes: +// * InternalErrorException +// The operation failed because of a system problem, even though the request +// was valid. Retry your request. +// +// * InvalidAccountException +// The operation failed because you tried to create, update, or delete an object +// by using an invalid account identifier. +// func (c *WAF) ListSizeConstraintSets(input *ListSizeConstraintSetsInput) (*ListSizeConstraintSetsOutput, error) { req, out := c.ListSizeConstraintSetsRequest(input) err := req.Send() @@ -1657,6 +2711,8 @@ const opListSqlInjectionMatchSets = "ListSqlInjectionMatchSets" // value can be used to capture response data after the request's "Send" method // is called. // +// See ListSqlInjectionMatchSets for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1691,7 +2747,26 @@ func (c *WAF) ListSqlInjectionMatchSetsRequest(input *ListSqlInjectionMatchSetsI return } +// ListSqlInjectionMatchSets API operation for AWS WAF. +// // Returns an array of SqlInjectionMatchSet objects. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS WAF's +// API operation ListSqlInjectionMatchSets for usage and error information. +// +// Returned Error Codes: +// * InternalErrorException +// The operation failed because of a system problem, even though the request +// was valid. Retry your request. +// +// * InvalidAccountException +// The operation failed because you tried to create, update, or delete an object +// by using an invalid account identifier. +// func (c *WAF) ListSqlInjectionMatchSets(input *ListSqlInjectionMatchSetsInput) (*ListSqlInjectionMatchSetsOutput, error) { req, out := c.ListSqlInjectionMatchSetsRequest(input) err := req.Send() @@ -1705,6 +2780,8 @@ const opListWebACLs = "ListWebACLs" // value can be used to capture response data after the request's "Send" method // is called. // +// See ListWebACLs for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1739,7 +2816,26 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS WAF's +// API operation ListWebACLs for usage and error information. +// +// Returned Error Codes: +// * InternalErrorException +// The operation failed because of a system problem, even though the request +// was valid. Retry your request. +// +// * InvalidAccountException +// The operation failed because you tried to create, update, or delete an object +// by using an invalid account identifier. +// func (c *WAF) ListWebACLs(input *ListWebACLsInput) (*ListWebACLsOutput, error) { req, out := c.ListWebACLsRequest(input) err := req.Send() @@ -1753,6 +2849,8 @@ const opListXssMatchSets = "ListXssMatchSets" // value can be used to capture response data after the request's "Send" method // is called. // +// See ListXssMatchSets for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1787,7 +2885,26 @@ func (c *WAF) ListXssMatchSetsRequest(input *ListXssMatchSetsInput) (req *reques return } +// ListXssMatchSets API operation for AWS WAF. +// // Returns an array of XssMatchSet objects. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS WAF's +// API operation ListXssMatchSets for usage and error information. +// +// Returned Error Codes: +// * InternalErrorException +// The operation failed because of a system problem, even though the request +// was valid. Retry your request. +// +// * InvalidAccountException +// The operation failed because you tried to create, update, or delete an object +// by using an invalid account identifier. +// func (c *WAF) ListXssMatchSets(input *ListXssMatchSetsInput) (*ListXssMatchSetsOutput, error) { req, out := c.ListXssMatchSetsRequest(input) err := req.Send() @@ -1801,6 +2918,8 @@ const opUpdateByteMatchSet = "UpdateByteMatchSet" // value can be used to capture response data after the request's "Send" method // is called. // +// See UpdateByteMatchSet for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1835,6 +2954,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 +2993,96 @@ 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/). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS WAF's +// API operation UpdateByteMatchSet for usage and error information. +// +// Returned Error Codes: +// * InternalErrorException +// The operation failed because of a system problem, even though the request +// was valid. Retry your request. +// +// * InvalidAccountException +// The operation failed because you tried to create, update, or delete an object +// by using an invalid account identifier. +// +// * InvalidOperationException +// The operation failed because there was nothing to do. For example: +// +// You tried to remove a Rule from a WebACL, but the Rule isn't in the specified +// WebACL. +// +// You tried to remove an IP address from an IPSet, but the IP address isn't +// in the specified IPSet. +// +// You tried to remove a ByteMatchTuple from a ByteMatchSet, but the ByteMatchTuple +// isn't in the specified WebACL. +// +// You tried to add a Rule to a WebACL, but the Rule already exists in the +// specified WebACL. +// +// You tried to add an IP address to an IPSet, but the IP address already +// exists in the specified IPSet. +// +// You tried to add a ByteMatchTuple to a ByteMatchSet, but the ByteMatchTuple +// already exists in the specified WebACL. +// +// * InvalidParameterException +// The operation failed because AWS WAF didn't recognize a parameter in the +// request. For example: +// +// You specified an invalid parameter name. +// +// You specified an invalid value. +// +// You tried to update an object (ByteMatchSet, IPSet, Rule, or WebACL) using +// an action other than INSERT or DELETE. +// +// You tried to create a WebACL with a DefaultAction Type other than ALLOW, +// BLOCK, or COUNT. +// +// You tried to update a WebACL with a WafAction Type other than ALLOW, BLOCK, +// or COUNT. +// +// You tried to update a ByteMatchSet with a FieldToMatch Type other than +// HEADER, QUERY_STRING, or URI. +// +// You tried to update a ByteMatchSet with a Field of HEADER but no value +// for Data. +// +// * NonexistentContainerException +// The operation failed because you tried to add an object to or delete an object +// from another object that doesn't exist. For example: +// +// You tried to add a Rule to or delete a Rule from a WebACL that doesn't +// exist. +// +// You tried to add a ByteMatchSet to or delete a ByteMatchSet from a Rule +// that doesn't exist. +// +// You tried to add an IP address to or delete an IP address from an IPSet +// that doesn't exist. +// +// You tried to add a ByteMatchTuple to or delete a ByteMatchTuple from a +// ByteMatchSet that doesn't exist. +// +// * NonexistentItemException +// The operation failed because the referenced object doesn't exist. +// +// * StaleDataException +// The operation failed because you tried to create, update, or delete an object +// by using a change token that has already been used. +// +// * LimitsExceededException +// The operation exceeds a resource limit, for example, the maximum number of +// WebACL objects that you can create for an AWS account. For more information, +// see Limits (http://docs.aws.amazon.com/waf/latest/developerguide/limits.html) +// in the AWS WAF Developer Guide. +// func (c *WAF) UpdateByteMatchSet(input *UpdateByteMatchSetInput) (*UpdateByteMatchSetOutput, error) { req, out := c.UpdateByteMatchSetRequest(input) err := req.Send() @@ -1885,6 +3096,8 @@ const opUpdateIPSet = "UpdateIPSet" // value can be used to capture response data after the request's "Send" method // is called. // +// See UpdateIPSet for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -1919,6 +3132,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 +3183,104 @@ 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/). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS WAF's +// API operation UpdateIPSet for usage and error information. +// +// Returned Error Codes: +// * StaleDataException +// The operation failed because you tried to create, update, or delete an object +// by using a change token that has already been used. +// +// * InternalErrorException +// The operation failed because of a system problem, even though the request +// was valid. Retry your request. +// +// * InvalidAccountException +// The operation failed because you tried to create, update, or delete an object +// by using an invalid account identifier. +// +// * InvalidOperationException +// The operation failed because there was nothing to do. For example: +// +// You tried to remove a Rule from a WebACL, but the Rule isn't in the specified +// WebACL. +// +// You tried to remove an IP address from an IPSet, but the IP address isn't +// in the specified IPSet. +// +// You tried to remove a ByteMatchTuple from a ByteMatchSet, but the ByteMatchTuple +// isn't in the specified WebACL. +// +// You tried to add a Rule to a WebACL, but the Rule already exists in the +// specified WebACL. +// +// You tried to add an IP address to an IPSet, but the IP address already +// exists in the specified IPSet. +// +// You tried to add a ByteMatchTuple to a ByteMatchSet, but the ByteMatchTuple +// already exists in the specified WebACL. +// +// * InvalidParameterException +// The operation failed because AWS WAF didn't recognize a parameter in the +// request. For example: +// +// You specified an invalid parameter name. +// +// You specified an invalid value. +// +// You tried to update an object (ByteMatchSet, IPSet, Rule, or WebACL) using +// an action other than INSERT or DELETE. +// +// You tried to create a WebACL with a DefaultAction Type other than ALLOW, +// BLOCK, or COUNT. +// +// You tried to update a WebACL with a WafAction Type other than ALLOW, BLOCK, +// or COUNT. +// +// You tried to update a ByteMatchSet with a FieldToMatch Type other than +// HEADER, QUERY_STRING, or URI. +// +// You tried to update a ByteMatchSet with a Field of HEADER but no value +// for Data. +// +// * NonexistentContainerException +// The operation failed because you tried to add an object to or delete an object +// from another object that doesn't exist. For example: +// +// You tried to add a Rule to or delete a Rule from a WebACL that doesn't +// exist. +// +// You tried to add a ByteMatchSet to or delete a ByteMatchSet from a Rule +// that doesn't exist. +// +// You tried to add an IP address to or delete an IP address from an IPSet +// that doesn't exist. +// +// You tried to add a ByteMatchTuple to or delete a ByteMatchTuple from a +// ByteMatchSet that doesn't exist. +// +// * NonexistentItemException +// The operation failed because the referenced object doesn't exist. +// +// * ReferencedItemException +// The operation failed because you tried to delete an object that is still +// in use. For example: +// +// You tried to delete a ByteMatchSet that is still referenced by a Rule. +// +// You tried to delete a Rule that is still referenced by a WebACL. +// +// * LimitsExceededException +// The operation exceeds a resource limit, for example, the maximum number of +// WebACL objects that you can create for an AWS account. For more information, +// see Limits (http://docs.aws.amazon.com/waf/latest/developerguide/limits.html) +// in the AWS WAF Developer Guide. +// func (c *WAF) UpdateIPSet(input *UpdateIPSetInput) (*UpdateIPSetOutput, error) { req, out := c.UpdateIPSetRequest(input) err := req.Send() @@ -1981,6 +3294,8 @@ const opUpdateRule = "UpdateRule" // value can be used to capture response data after the request's "Send" method // is called. // +// See UpdateRule for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -2015,6 +3330,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 +3365,104 @@ 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/). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS WAF's +// API operation UpdateRule for usage and error information. +// +// Returned Error Codes: +// * StaleDataException +// The operation failed because you tried to create, update, or delete an object +// by using a change token that has already been used. +// +// * InternalErrorException +// The operation failed because of a system problem, even though the request +// was valid. Retry your request. +// +// * InvalidAccountException +// The operation failed because you tried to create, update, or delete an object +// by using an invalid account identifier. +// +// * InvalidOperationException +// The operation failed because there was nothing to do. For example: +// +// You tried to remove a Rule from a WebACL, but the Rule isn't in the specified +// WebACL. +// +// You tried to remove an IP address from an IPSet, but the IP address isn't +// in the specified IPSet. +// +// You tried to remove a ByteMatchTuple from a ByteMatchSet, but the ByteMatchTuple +// isn't in the specified WebACL. +// +// You tried to add a Rule to a WebACL, but the Rule already exists in the +// specified WebACL. +// +// You tried to add an IP address to an IPSet, but the IP address already +// exists in the specified IPSet. +// +// You tried to add a ByteMatchTuple to a ByteMatchSet, but the ByteMatchTuple +// already exists in the specified WebACL. +// +// * InvalidParameterException +// The operation failed because AWS WAF didn't recognize a parameter in the +// request. For example: +// +// You specified an invalid parameter name. +// +// You specified an invalid value. +// +// You tried to update an object (ByteMatchSet, IPSet, Rule, or WebACL) using +// an action other than INSERT or DELETE. +// +// You tried to create a WebACL with a DefaultAction Type other than ALLOW, +// BLOCK, or COUNT. +// +// You tried to update a WebACL with a WafAction Type other than ALLOW, BLOCK, +// or COUNT. +// +// You tried to update a ByteMatchSet with a FieldToMatch Type other than +// HEADER, QUERY_STRING, or URI. +// +// You tried to update a ByteMatchSet with a Field of HEADER but no value +// for Data. +// +// * NonexistentContainerException +// The operation failed because you tried to add an object to or delete an object +// from another object that doesn't exist. For example: +// +// You tried to add a Rule to or delete a Rule from a WebACL that doesn't +// exist. +// +// You tried to add a ByteMatchSet to or delete a ByteMatchSet from a Rule +// that doesn't exist. +// +// You tried to add an IP address to or delete an IP address from an IPSet +// that doesn't exist. +// +// You tried to add a ByteMatchTuple to or delete a ByteMatchTuple from a +// ByteMatchSet that doesn't exist. +// +// * NonexistentItemException +// The operation failed because the referenced object doesn't exist. +// +// * ReferencedItemException +// The operation failed because you tried to delete an object that is still +// in use. For example: +// +// You tried to delete a ByteMatchSet that is still referenced by a Rule. +// +// You tried to delete a Rule that is still referenced by a WebACL. +// +// * LimitsExceededException +// The operation exceeds a resource limit, for example, the maximum number of +// WebACL objects that you can create for an AWS account. For more information, +// see Limits (http://docs.aws.amazon.com/waf/latest/developerguide/limits.html) +// in the AWS WAF Developer Guide. +// func (c *WAF) UpdateRule(input *UpdateRuleInput) (*UpdateRuleOutput, error) { req, out := c.UpdateRuleRequest(input) err := req.Send() @@ -2061,6 +3476,8 @@ const opUpdateSizeConstraintSet = "UpdateSizeConstraintSet" // value can be used to capture response data after the request's "Send" method // is called. // +// See UpdateSizeConstraintSet for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -2095,6 +3512,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 +3553,104 @@ 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/). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS WAF's +// API operation UpdateSizeConstraintSet for usage and error information. +// +// Returned Error Codes: +// * StaleDataException +// The operation failed because you tried to create, update, or delete an object +// by using a change token that has already been used. +// +// * InternalErrorException +// The operation failed because of a system problem, even though the request +// was valid. Retry your request. +// +// * InvalidAccountException +// The operation failed because you tried to create, update, or delete an object +// by using an invalid account identifier. +// +// * InvalidOperationException +// The operation failed because there was nothing to do. For example: +// +// You tried to remove a Rule from a WebACL, but the Rule isn't in the specified +// WebACL. +// +// You tried to remove an IP address from an IPSet, but the IP address isn't +// in the specified IPSet. +// +// You tried to remove a ByteMatchTuple from a ByteMatchSet, but the ByteMatchTuple +// isn't in the specified WebACL. +// +// You tried to add a Rule to a WebACL, but the Rule already exists in the +// specified WebACL. +// +// You tried to add an IP address to an IPSet, but the IP address already +// exists in the specified IPSet. +// +// You tried to add a ByteMatchTuple to a ByteMatchSet, but the ByteMatchTuple +// already exists in the specified WebACL. +// +// * InvalidParameterException +// The operation failed because AWS WAF didn't recognize a parameter in the +// request. For example: +// +// You specified an invalid parameter name. +// +// You specified an invalid value. +// +// You tried to update an object (ByteMatchSet, IPSet, Rule, or WebACL) using +// an action other than INSERT or DELETE. +// +// You tried to create a WebACL with a DefaultAction Type other than ALLOW, +// BLOCK, or COUNT. +// +// You tried to update a WebACL with a WafAction Type other than ALLOW, BLOCK, +// or COUNT. +// +// You tried to update a ByteMatchSet with a FieldToMatch Type other than +// HEADER, QUERY_STRING, or URI. +// +// You tried to update a ByteMatchSet with a Field of HEADER but no value +// for Data. +// +// * NonexistentContainerException +// The operation failed because you tried to add an object to or delete an object +// from another object that doesn't exist. For example: +// +// You tried to add a Rule to or delete a Rule from a WebACL that doesn't +// exist. +// +// You tried to add a ByteMatchSet to or delete a ByteMatchSet from a Rule +// that doesn't exist. +// +// You tried to add an IP address to or delete an IP address from an IPSet +// that doesn't exist. +// +// You tried to add a ByteMatchTuple to or delete a ByteMatchTuple from a +// ByteMatchSet that doesn't exist. +// +// * NonexistentItemException +// The operation failed because the referenced object doesn't exist. +// +// * ReferencedItemException +// The operation failed because you tried to delete an object that is still +// in use. For example: +// +// You tried to delete a ByteMatchSet that is still referenced by a Rule. +// +// You tried to delete a Rule that is still referenced by a WebACL. +// +// * LimitsExceededException +// The operation exceeds a resource limit, for example, the maximum number of +// WebACL objects that you can create for an AWS account. For more information, +// see Limits (http://docs.aws.amazon.com/waf/latest/developerguide/limits.html) +// in the AWS WAF Developer Guide. +// func (c *WAF) UpdateSizeConstraintSet(input *UpdateSizeConstraintSetInput) (*UpdateSizeConstraintSetOutput, error) { req, out := c.UpdateSizeConstraintSetRequest(input) err := req.Send() @@ -2147,6 +3664,8 @@ const opUpdateSqlInjectionMatchSet = "UpdateSqlInjectionMatchSet" // value can be used to capture response data after the request's "Send" method // is called. // +// See UpdateSqlInjectionMatchSet for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -2181,6 +3700,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 +3734,96 @@ 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/). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS WAF's +// API operation UpdateSqlInjectionMatchSet for usage and error information. +// +// Returned Error Codes: +// * InternalErrorException +// The operation failed because of a system problem, even though the request +// was valid. Retry your request. +// +// * InvalidAccountException +// The operation failed because you tried to create, update, or delete an object +// by using an invalid account identifier. +// +// * InvalidOperationException +// The operation failed because there was nothing to do. For example: +// +// You tried to remove a Rule from a WebACL, but the Rule isn't in the specified +// WebACL. +// +// You tried to remove an IP address from an IPSet, but the IP address isn't +// in the specified IPSet. +// +// You tried to remove a ByteMatchTuple from a ByteMatchSet, but the ByteMatchTuple +// isn't in the specified WebACL. +// +// You tried to add a Rule to a WebACL, but the Rule already exists in the +// specified WebACL. +// +// You tried to add an IP address to an IPSet, but the IP address already +// exists in the specified IPSet. +// +// You tried to add a ByteMatchTuple to a ByteMatchSet, but the ByteMatchTuple +// already exists in the specified WebACL. +// +// * InvalidParameterException +// The operation failed because AWS WAF didn't recognize a parameter in the +// request. For example: +// +// You specified an invalid parameter name. +// +// You specified an invalid value. +// +// You tried to update an object (ByteMatchSet, IPSet, Rule, or WebACL) using +// an action other than INSERT or DELETE. +// +// You tried to create a WebACL with a DefaultAction Type other than ALLOW, +// BLOCK, or COUNT. +// +// You tried to update a WebACL with a WafAction Type other than ALLOW, BLOCK, +// or COUNT. +// +// You tried to update a ByteMatchSet with a FieldToMatch Type other than +// HEADER, QUERY_STRING, or URI. +// +// You tried to update a ByteMatchSet with a Field of HEADER but no value +// for Data. +// +// * NonexistentContainerException +// The operation failed because you tried to add an object to or delete an object +// from another object that doesn't exist. For example: +// +// You tried to add a Rule to or delete a Rule from a WebACL that doesn't +// exist. +// +// You tried to add a ByteMatchSet to or delete a ByteMatchSet from a Rule +// that doesn't exist. +// +// You tried to add an IP address to or delete an IP address from an IPSet +// that doesn't exist. +// +// You tried to add a ByteMatchTuple to or delete a ByteMatchTuple from a +// ByteMatchSet that doesn't exist. +// +// * NonexistentItemException +// The operation failed because the referenced object doesn't exist. +// +// * StaleDataException +// The operation failed because you tried to create, update, or delete an object +// by using a change token that has already been used. +// +// * LimitsExceededException +// The operation exceeds a resource limit, for example, the maximum number of +// WebACL objects that you can create for an AWS account. For more information, +// see Limits (http://docs.aws.amazon.com/waf/latest/developerguide/limits.html) +// in the AWS WAF Developer Guide. +// func (c *WAF) UpdateSqlInjectionMatchSet(input *UpdateSqlInjectionMatchSetInput) (*UpdateSqlInjectionMatchSetOutput, error) { req, out := c.UpdateSqlInjectionMatchSetRequest(input) err := req.Send() @@ -2226,6 +3837,8 @@ const opUpdateWebACL = "UpdateWebACL" // value can be used to capture response data after the request's "Send" method // is called. // +// See UpdateWebACL for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -2260,6 +3873,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 +3919,104 @@ 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/). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS WAF's +// API operation UpdateWebACL for usage and error information. +// +// Returned Error Codes: +// * StaleDataException +// The operation failed because you tried to create, update, or delete an object +// by using a change token that has already been used. +// +// * InternalErrorException +// The operation failed because of a system problem, even though the request +// was valid. Retry your request. +// +// * InvalidAccountException +// The operation failed because you tried to create, update, or delete an object +// by using an invalid account identifier. +// +// * InvalidOperationException +// The operation failed because there was nothing to do. For example: +// +// You tried to remove a Rule from a WebACL, but the Rule isn't in the specified +// WebACL. +// +// You tried to remove an IP address from an IPSet, but the IP address isn't +// in the specified IPSet. +// +// You tried to remove a ByteMatchTuple from a ByteMatchSet, but the ByteMatchTuple +// isn't in the specified WebACL. +// +// You tried to add a Rule to a WebACL, but the Rule already exists in the +// specified WebACL. +// +// You tried to add an IP address to an IPSet, but the IP address already +// exists in the specified IPSet. +// +// You tried to add a ByteMatchTuple to a ByteMatchSet, but the ByteMatchTuple +// already exists in the specified WebACL. +// +// * InvalidParameterException +// The operation failed because AWS WAF didn't recognize a parameter in the +// request. For example: +// +// You specified an invalid parameter name. +// +// You specified an invalid value. +// +// You tried to update an object (ByteMatchSet, IPSet, Rule, or WebACL) using +// an action other than INSERT or DELETE. +// +// You tried to create a WebACL with a DefaultAction Type other than ALLOW, +// BLOCK, or COUNT. +// +// You tried to update a WebACL with a WafAction Type other than ALLOW, BLOCK, +// or COUNT. +// +// You tried to update a ByteMatchSet with a FieldToMatch Type other than +// HEADER, QUERY_STRING, or URI. +// +// You tried to update a ByteMatchSet with a Field of HEADER but no value +// for Data. +// +// * NonexistentContainerException +// The operation failed because you tried to add an object to or delete an object +// from another object that doesn't exist. For example: +// +// You tried to add a Rule to or delete a Rule from a WebACL that doesn't +// exist. +// +// You tried to add a ByteMatchSet to or delete a ByteMatchSet from a Rule +// that doesn't exist. +// +// You tried to add an IP address to or delete an IP address from an IPSet +// that doesn't exist. +// +// You tried to add a ByteMatchTuple to or delete a ByteMatchTuple from a +// ByteMatchSet that doesn't exist. +// +// * NonexistentItemException +// The operation failed because the referenced object doesn't exist. +// +// * ReferencedItemException +// The operation failed because you tried to delete an object that is still +// in use. For example: +// +// You tried to delete a ByteMatchSet that is still referenced by a Rule. +// +// You tried to delete a Rule that is still referenced by a WebACL. +// +// * LimitsExceededException +// The operation exceeds a resource limit, for example, the maximum number of +// WebACL objects that you can create for an AWS account. For more information, +// see Limits (http://docs.aws.amazon.com/waf/latest/developerguide/limits.html) +// in the AWS WAF Developer Guide. +// func (c *WAF) UpdateWebACL(input *UpdateWebACLInput) (*UpdateWebACLOutput, error) { req, out := c.UpdateWebACLRequest(input) err := req.Send() @@ -2317,6 +4030,8 @@ const opUpdateXssMatchSet = "UpdateXssMatchSet" // value can be used to capture response data after the request's "Send" method // is called. // +// See UpdateXssMatchSet for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -2351,6 +4066,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 +4099,96 @@ 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/). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS WAF's +// API operation UpdateXssMatchSet for usage and error information. +// +// Returned Error Codes: +// * InternalErrorException +// The operation failed because of a system problem, even though the request +// was valid. Retry your request. +// +// * InvalidAccountException +// The operation failed because you tried to create, update, or delete an object +// by using an invalid account identifier. +// +// * InvalidOperationException +// The operation failed because there was nothing to do. For example: +// +// You tried to remove a Rule from a WebACL, but the Rule isn't in the specified +// WebACL. +// +// You tried to remove an IP address from an IPSet, but the IP address isn't +// in the specified IPSet. +// +// You tried to remove a ByteMatchTuple from a ByteMatchSet, but the ByteMatchTuple +// isn't in the specified WebACL. +// +// You tried to add a Rule to a WebACL, but the Rule already exists in the +// specified WebACL. +// +// You tried to add an IP address to an IPSet, but the IP address already +// exists in the specified IPSet. +// +// You tried to add a ByteMatchTuple to a ByteMatchSet, but the ByteMatchTuple +// already exists in the specified WebACL. +// +// * InvalidParameterException +// The operation failed because AWS WAF didn't recognize a parameter in the +// request. For example: +// +// You specified an invalid parameter name. +// +// You specified an invalid value. +// +// You tried to update an object (ByteMatchSet, IPSet, Rule, or WebACL) using +// an action other than INSERT or DELETE. +// +// You tried to create a WebACL with a DefaultAction Type other than ALLOW, +// BLOCK, or COUNT. +// +// You tried to update a WebACL with a WafAction Type other than ALLOW, BLOCK, +// or COUNT. +// +// You tried to update a ByteMatchSet with a FieldToMatch Type other than +// HEADER, QUERY_STRING, or URI. +// +// You tried to update a ByteMatchSet with a Field of HEADER but no value +// for Data. +// +// * NonexistentContainerException +// The operation failed because you tried to add an object to or delete an object +// from another object that doesn't exist. For example: +// +// You tried to add a Rule to or delete a Rule from a WebACL that doesn't +// exist. +// +// You tried to add a ByteMatchSet to or delete a ByteMatchSet from a Rule +// that doesn't exist. +// +// You tried to add an IP address to or delete an IP address from an IPSet +// that doesn't exist. +// +// You tried to add a ByteMatchTuple to or delete a ByteMatchTuple from a +// ByteMatchSet that doesn't exist. +// +// * NonexistentItemException +// The operation failed because the referenced object doesn't exist. +// +// * StaleDataException +// The operation failed because you tried to create, update, or delete an object +// by using a change token that has already been used. +// +// * LimitsExceededException +// The operation exceeds a resource limit, for example, the maximum number of +// WebACL objects that you can create for an AWS account. For more information, +// see Limits (http://docs.aws.amazon.com/waf/latest/developerguide/limits.html) +// in the AWS WAF Developer Guide. +// 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..817ec9d3cd2 100644 --- a/service/workspaces/api.go +++ b/service/workspaces/api.go @@ -18,6 +18,8 @@ const opCreateTags = "CreateTags" // value can be used to capture response data after the request's "Send" method // is called. // +// See CreateTags for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -52,7 +54,27 @@ func (c *WorkSpaces) CreateTagsRequest(input *CreateTagsInput) (req *request.Req return } +// CreateTags API operation for Amazon WorkSpaces. +// // Creates tags for a WorkSpace. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon WorkSpaces's +// API operation CreateTags for usage and error information. +// +// Returned Error Codes: +// * ResourceNotFoundException +// The resource could not be found. +// +// * InvalidParameterValuesException +// One or more parameter values are not valid. +// +// * ResourceLimitExceededException +// Your resource limits have been exceeded. +// func (c *WorkSpaces) CreateTags(input *CreateTagsInput) (*CreateTagsOutput, error) { req, out := c.CreateTagsRequest(input) err := req.Send() @@ -66,6 +88,8 @@ const opCreateWorkspaces = "CreateWorkspaces" // value can be used to capture response data after the request's "Send" method // is called. // +// See CreateWorkspaces for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -100,9 +124,26 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon WorkSpaces's +// API operation CreateWorkspaces for usage and error information. +// +// Returned Error Codes: +// * ResourceLimitExceededException +// Your resource limits have been exceeded. +// +// * InvalidParameterValuesException +// One or more parameter values are not valid. +// func (c *WorkSpaces) CreateWorkspaces(input *CreateWorkspacesInput) (*CreateWorkspacesOutput, error) { req, out := c.CreateWorkspacesRequest(input) err := req.Send() @@ -116,6 +157,8 @@ const opDeleteTags = "DeleteTags" // value can be used to capture response data after the request's "Send" method // is called. // +// See DeleteTags for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -150,7 +193,24 @@ func (c *WorkSpaces) DeleteTagsRequest(input *DeleteTagsInput) (req *request.Req return } +// DeleteTags API operation for Amazon WorkSpaces. +// // Deletes tags from a WorkSpace. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon WorkSpaces's +// API operation DeleteTags for usage and error information. +// +// Returned Error Codes: +// * ResourceNotFoundException +// The resource could not be found. +// +// * InvalidParameterValuesException +// One or more parameter values are not valid. +// func (c *WorkSpaces) DeleteTags(input *DeleteTagsInput) (*DeleteTagsOutput, error) { req, out := c.DeleteTagsRequest(input) err := req.Send() @@ -164,6 +224,8 @@ const opDescribeTags = "DescribeTags" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeTags for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -198,7 +260,21 @@ func (c *WorkSpaces) DescribeTagsRequest(input *DescribeTagsInput) (req *request return } +// DescribeTags API operation for Amazon WorkSpaces. +// // Describes tags for a WorkSpace. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon WorkSpaces's +// API operation DescribeTags for usage and error information. +// +// Returned Error Codes: +// * ResourceNotFoundException +// The resource could not be found. +// func (c *WorkSpaces) DescribeTags(input *DescribeTagsInput) (*DescribeTagsOutput, error) { req, out := c.DescribeTagsRequest(input) err := req.Send() @@ -212,6 +288,8 @@ const opDescribeWorkspaceBundles = "DescribeWorkspaceBundles" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeWorkspaceBundles for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -252,6 +330,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 +342,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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon WorkSpaces's +// API operation DescribeWorkspaceBundles for usage and error information. +// +// Returned Error Codes: +// * InvalidParameterValuesException +// One or more parameter values are not valid. +// func (c *WorkSpaces) DescribeWorkspaceBundles(input *DescribeWorkspaceBundlesInput) (*DescribeWorkspaceBundlesOutput, error) { req, out := c.DescribeWorkspaceBundlesRequest(input) err := req.Send() @@ -300,6 +392,8 @@ const opDescribeWorkspaceDirectories = "DescribeWorkspaceDirectories" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeWorkspaceDirectories for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -340,6 +434,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 +444,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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon WorkSpaces's +// API operation DescribeWorkspaceDirectories for usage and error information. +// +// Returned Error Codes: +// * InvalidParameterValuesException +// One or more parameter values are not valid. +// func (c *WorkSpaces) DescribeWorkspaceDirectories(input *DescribeWorkspaceDirectoriesInput) (*DescribeWorkspaceDirectoriesOutput, error) { req, out := c.DescribeWorkspaceDirectoriesRequest(input) err := req.Send() @@ -386,6 +494,8 @@ const opDescribeWorkspaces = "DescribeWorkspaces" // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeWorkspaces for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -426,6 +536,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 +547,21 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon WorkSpaces's +// API operation DescribeWorkspaces for usage and error information. +// +// Returned Error Codes: +// * InvalidParameterValuesException +// One or more parameter values are not valid. +// +// * ResourceUnavailableException +// The specified resource is not available. +// func (c *WorkSpaces) DescribeWorkspaces(input *DescribeWorkspacesInput) (*DescribeWorkspacesOutput, error) { req, out := c.DescribeWorkspacesRequest(input) err := req.Send() @@ -473,6 +600,8 @@ const opDescribeWorkspacesConnectionStatus = "DescribeWorkspacesConnectionStatus // value can be used to capture response data after the request's "Send" method // is called. // +// See DescribeWorkspacesConnectionStatus for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -507,7 +636,21 @@ func (c *WorkSpaces) DescribeWorkspacesConnectionStatusRequest(input *DescribeWo return } +// DescribeWorkspacesConnectionStatus API operation for Amazon WorkSpaces. +// // Describes the connection status of a specified WorkSpace. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon WorkSpaces's +// API operation DescribeWorkspacesConnectionStatus for usage and error information. +// +// Returned Error Codes: +// * InvalidParameterValuesException +// One or more parameter values are not valid. +// func (c *WorkSpaces) DescribeWorkspacesConnectionStatus(input *DescribeWorkspacesConnectionStatusInput) (*DescribeWorkspacesConnectionStatusOutput, error) { req, out := c.DescribeWorkspacesConnectionStatusRequest(input) err := req.Send() @@ -521,6 +664,8 @@ const opModifyWorkspaceProperties = "ModifyWorkspaceProperties" // value can be used to capture response data after the request's "Send" method // is called. // +// See ModifyWorkspaceProperties for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -555,8 +700,42 @@ func (c *WorkSpaces) ModifyWorkspacePropertiesRequest(input *ModifyWorkspaceProp return } +// ModifyWorkspaceProperties API operation for Amazon WorkSpaces. +// // Modifies the WorkSpace properties, including the RunningMode and AutoStop // time. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon WorkSpaces's +// API operation ModifyWorkspaceProperties for usage and error information. +// +// Returned Error Codes: +// * InvalidParameterValuesException +// One or more parameter values are not valid. +// +// * InvalidResourceStateException +// The specified WorkSpace has an invalid state for this operation. +// +// * OperationInProgressException +// The properties of this WorkSpace are currently being modified. Try again +// in a moment. +// +// * UnsupportedWorkspaceConfigurationException +// The WorkSpace does not have the supported configuration for this operation. +// For more information, see the Amazon WorkSpaces Administration Guide (http://docs.aws.amazon.com/workspaces/latest/adminguide). +// +// * ResourceNotFoundException +// The resource could not be found. +// +// * AccessDeniedException + +// +// * ResourceUnavailableException +// The specified resource is not available. +// func (c *WorkSpaces) ModifyWorkspaceProperties(input *ModifyWorkspacePropertiesInput) (*ModifyWorkspacePropertiesOutput, error) { req, out := c.ModifyWorkspacePropertiesRequest(input) err := req.Send() @@ -570,6 +749,8 @@ const opRebootWorkspaces = "RebootWorkspaces" // value can be used to capture response data after the request's "Send" method // is called. // +// See RebootWorkspaces for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -604,12 +785,21 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon WorkSpaces's +// API operation RebootWorkspaces for usage and error information. func (c *WorkSpaces) RebootWorkspaces(input *RebootWorkspacesInput) (*RebootWorkspacesOutput, error) { req, out := c.RebootWorkspacesRequest(input) err := req.Send() @@ -623,6 +813,8 @@ const opRebuildWorkspaces = "RebuildWorkspaces" // value can be used to capture response data after the request's "Send" method // is called. // +// See RebuildWorkspaces for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -657,6 +849,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 +870,13 @@ func (c *WorkSpaces) RebuildWorkspacesRequest(input *RebuildWorkspacesInput) (re // // This operation is asynchronous and returns before the WorkSpaces have been // completely rebuilt. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon WorkSpaces's +// API operation RebuildWorkspaces for usage and error information. func (c *WorkSpaces) RebuildWorkspaces(input *RebuildWorkspacesInput) (*RebuildWorkspacesOutput, error) { req, out := c.RebuildWorkspacesRequest(input) err := req.Send() @@ -689,6 +890,8 @@ const opStartWorkspaces = "StartWorkspaces" // value can be used to capture response data after the request's "Send" method // is called. // +// See StartWorkspaces for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -723,8 +926,17 @@ 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.” +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon WorkSpaces's +// API operation StartWorkspaces for usage and error information. func (c *WorkSpaces) StartWorkspaces(input *StartWorkspacesInput) (*StartWorkspacesOutput, error) { req, out := c.StartWorkspacesRequest(input) err := req.Send() @@ -738,6 +950,8 @@ const opStopWorkspaces = "StopWorkspaces" // value can be used to capture response data after the request's "Send" method // is called. // +// See StopWorkspaces for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -772,9 +986,18 @@ 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon WorkSpaces's +// API operation StopWorkspaces for usage and error information. func (c *WorkSpaces) StopWorkspaces(input *StopWorkspacesInput) (*StopWorkspacesOutput, error) { req, out := c.StopWorkspacesRequest(input) err := req.Send() @@ -788,6 +1011,8 @@ const opTerminateWorkspaces = "TerminateWorkspaces" // value can be used to capture response data after the request's "Send" method // is called. // +// See TerminateWorkspaces for usage and error information. +// // Creating a request object using this method should be used when you want to inject // custom logic into the request's lifecycle using a custom handler, or if you want to // access properties on the request object before or after sending the request. If @@ -822,6 +1047,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 +1059,13 @@ func (c *WorkSpaces) TerminateWorkspacesRequest(input *TerminateWorkspacesInput) // // This operation is asynchronous and returns before the WorkSpaces have been // completely terminated. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon WorkSpaces's +// API operation TerminateWorkspaces for usage and error information. func (c *WorkSpaces) TerminateWorkspaces(input *TerminateWorkspacesInput) (*TerminateWorkspacesOutput, error) { req, out := c.TerminateWorkspacesRequest(input) err := req.Send()