// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. package iotanalytics import ( "fmt" "time" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/awsutil" "github.com/aws/aws-sdk-go/aws/request" "github.com/aws/aws-sdk-go/private/protocol" "github.com/aws/aws-sdk-go/private/protocol/restjson" ) const opBatchPutMessage = "BatchPutMessage" // BatchPutMessageRequest generates a "aws/request.Request" representing the // client's request for the BatchPutMessage operation. The "output" return // value will be populated with the request's response once the request completes // successfuly. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See BatchPutMessage for more information on using the BatchPutMessage // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the BatchPutMessageRequest method. // req, resp := client.BatchPutMessageRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/iotanalytics-2017-11-27/BatchPutMessage func (c *IoTAnalytics) BatchPutMessageRequest(input *BatchPutMessageInput) (req *request.Request, output *BatchPutMessageOutput) { op := &request.Operation{ Name: opBatchPutMessage, HTTPMethod: "POST", HTTPPath: "/messages/batch", } if input == nil { input = &BatchPutMessageInput{} } output = &BatchPutMessageOutput{} req = c.newRequest(op, input, output) return } // BatchPutMessage API operation for AWS IoT Analytics. // // Sends messages to a channel. // // Returns awserr.Error for service API and SDK errors. Use runtime type 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 Analytics's // API operation BatchPutMessage for usage and error information. // // Returned Error Codes: // * ErrCodeResourceNotFoundException "ResourceNotFoundException" // A resource with the specified name could not be found. // // * ErrCodeInvalidRequestException "InvalidRequestException" // The request was not valid. // // * ErrCodeInternalFailureException "InternalFailureException" // There was an internal failure. // // * ErrCodeServiceUnavailableException "ServiceUnavailableException" // The service is temporarily unavailable. // // * ErrCodeThrottlingException "ThrottlingException" // The request was denied due to request throttling. // // See also, https://docs.aws.amazon.com/goto/WebAPI/iotanalytics-2017-11-27/BatchPutMessage func (c *IoTAnalytics) BatchPutMessage(input *BatchPutMessageInput) (*BatchPutMessageOutput, error) { req, out := c.BatchPutMessageRequest(input) return out, req.Send() } // BatchPutMessageWithContext is the same as BatchPutMessage with the addition of // the ability to pass a context and additional request options. // // See BatchPutMessage for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *IoTAnalytics) BatchPutMessageWithContext(ctx aws.Context, input *BatchPutMessageInput, opts ...request.Option) (*BatchPutMessageOutput, error) { req, out := c.BatchPutMessageRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opCancelPipelineReprocessing = "CancelPipelineReprocessing" // CancelPipelineReprocessingRequest generates a "aws/request.Request" representing the // client's request for the CancelPipelineReprocessing operation. The "output" return // value will be populated with the request's response once the request completes // successfuly. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See CancelPipelineReprocessing for more information on using the CancelPipelineReprocessing // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the CancelPipelineReprocessingRequest method. // req, resp := client.CancelPipelineReprocessingRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/iotanalytics-2017-11-27/CancelPipelineReprocessing func (c *IoTAnalytics) CancelPipelineReprocessingRequest(input *CancelPipelineReprocessingInput) (req *request.Request, output *CancelPipelineReprocessingOutput) { op := &request.Operation{ Name: opCancelPipelineReprocessing, HTTPMethod: "DELETE", HTTPPath: "/pipelines/{pipelineName}/reprocessing/{reprocessingId}", } if input == nil { input = &CancelPipelineReprocessingInput{} } output = &CancelPipelineReprocessingOutput{} req = c.newRequest(op, input, output) return } // CancelPipelineReprocessing API operation for AWS IoT Analytics. // // Cancels the reprocessing of data through 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 IoT Analytics's // API operation CancelPipelineReprocessing for usage and error information. // // Returned Error Codes: // * ErrCodeResourceNotFoundException "ResourceNotFoundException" // A resource with the specified name could not be found. // // * ErrCodeInvalidRequestException "InvalidRequestException" // The request was not valid. // // * ErrCodeInternalFailureException "InternalFailureException" // There was an internal failure. // // * ErrCodeServiceUnavailableException "ServiceUnavailableException" // The service is temporarily unavailable. // // * ErrCodeThrottlingException "ThrottlingException" // The request was denied due to request throttling. // // See also, https://docs.aws.amazon.com/goto/WebAPI/iotanalytics-2017-11-27/CancelPipelineReprocessing func (c *IoTAnalytics) CancelPipelineReprocessing(input *CancelPipelineReprocessingInput) (*CancelPipelineReprocessingOutput, error) { req, out := c.CancelPipelineReprocessingRequest(input) return out, req.Send() } // CancelPipelineReprocessingWithContext is the same as CancelPipelineReprocessing with the addition of // the ability to pass a context and additional request options. // // See CancelPipelineReprocessing for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *IoTAnalytics) CancelPipelineReprocessingWithContext(ctx aws.Context, input *CancelPipelineReprocessingInput, opts ...request.Option) (*CancelPipelineReprocessingOutput, error) { req, out := c.CancelPipelineReprocessingRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opCreateChannel = "CreateChannel" // CreateChannelRequest generates a "aws/request.Request" representing the // client's request for the CreateChannel operation. The "output" return // value will be populated with the request's response once the request completes // successfuly. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See CreateChannel for more information on using the CreateChannel // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the CreateChannelRequest method. // req, resp := client.CreateChannelRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/iotanalytics-2017-11-27/CreateChannel func (c *IoTAnalytics) CreateChannelRequest(input *CreateChannelInput) (req *request.Request, output *CreateChannelOutput) { op := &request.Operation{ Name: opCreateChannel, HTTPMethod: "POST", HTTPPath: "/channels", } if input == nil { input = &CreateChannelInput{} } output = &CreateChannelOutput{} req = c.newRequest(op, input, output) return } // CreateChannel API operation for AWS IoT Analytics. // // Creates a channel. A channel collects data from an MQTT topic and archives // the raw, unprocessed messages before publishing the data to 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 IoT Analytics's // API operation CreateChannel for usage and error information. // // Returned Error Codes: // * ErrCodeInvalidRequestException "InvalidRequestException" // The request was not valid. // // * ErrCodeResourceAlreadyExistsException "ResourceAlreadyExistsException" // A resource with the same name already exists. // // * ErrCodeInternalFailureException "InternalFailureException" // There was an internal failure. // // * ErrCodeServiceUnavailableException "ServiceUnavailableException" // The service is temporarily unavailable. // // * ErrCodeThrottlingException "ThrottlingException" // The request was denied due to request throttling. // // * ErrCodeLimitExceededException "LimitExceededException" // The command caused an internal limit to be exceeded. // // See also, https://docs.aws.amazon.com/goto/WebAPI/iotanalytics-2017-11-27/CreateChannel func (c *IoTAnalytics) CreateChannel(input *CreateChannelInput) (*CreateChannelOutput, error) { req, out := c.CreateChannelRequest(input) return out, req.Send() } // CreateChannelWithContext is the same as CreateChannel with the addition of // the ability to pass a context and additional request options. // // See CreateChannel for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *IoTAnalytics) CreateChannelWithContext(ctx aws.Context, input *CreateChannelInput, opts ...request.Option) (*CreateChannelOutput, error) { req, out := c.CreateChannelRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opCreateDataset = "CreateDataset" // CreateDatasetRequest generates a "aws/request.Request" representing the // client's request for the CreateDataset operation. The "output" return // value will be populated with the request's response once the request completes // successfuly. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See CreateDataset for more information on using the CreateDataset // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the CreateDatasetRequest method. // req, resp := client.CreateDatasetRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/iotanalytics-2017-11-27/CreateDataset func (c *IoTAnalytics) CreateDatasetRequest(input *CreateDatasetInput) (req *request.Request, output *CreateDatasetOutput) { op := &request.Operation{ Name: opCreateDataset, HTTPMethod: "POST", HTTPPath: "/datasets", } if input == nil { input = &CreateDatasetInput{} } output = &CreateDatasetOutput{} req = c.newRequest(op, input, output) return } // CreateDataset API operation for AWS IoT Analytics. // // Creates a data set. A data set stores data retrieved from a data store by // applying an SQL action. // // This operation creates the skeleton of a data set. To populate the data set, // call "CreateDatasetContent". // // Returns awserr.Error for service API and SDK errors. Use runtime type 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 Analytics's // API operation CreateDataset for usage and error information. // // Returned Error Codes: // * ErrCodeInvalidRequestException "InvalidRequestException" // The request was not valid. // // * ErrCodeResourceAlreadyExistsException "ResourceAlreadyExistsException" // A resource with the same name already exists. // // * ErrCodeInternalFailureException "InternalFailureException" // There was an internal failure. // // * ErrCodeServiceUnavailableException "ServiceUnavailableException" // The service is temporarily unavailable. // // * ErrCodeThrottlingException "ThrottlingException" // The request was denied due to request throttling. // // * ErrCodeLimitExceededException "LimitExceededException" // The command caused an internal limit to be exceeded. // // See also, https://docs.aws.amazon.com/goto/WebAPI/iotanalytics-2017-11-27/CreateDataset func (c *IoTAnalytics) CreateDataset(input *CreateDatasetInput) (*CreateDatasetOutput, error) { req, out := c.CreateDatasetRequest(input) return out, req.Send() } // CreateDatasetWithContext is the same as CreateDataset with the addition of // the ability to pass a context and additional request options. // // See CreateDataset for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *IoTAnalytics) CreateDatasetWithContext(ctx aws.Context, input *CreateDatasetInput, opts ...request.Option) (*CreateDatasetOutput, error) { req, out := c.CreateDatasetRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opCreateDatasetContent = "CreateDatasetContent" // CreateDatasetContentRequest generates a "aws/request.Request" representing the // client's request for the CreateDatasetContent operation. The "output" return // value will be populated with the request's response once the request completes // successfuly. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See CreateDatasetContent for more information on using the CreateDatasetContent // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the CreateDatasetContentRequest method. // req, resp := client.CreateDatasetContentRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/iotanalytics-2017-11-27/CreateDatasetContent func (c *IoTAnalytics) CreateDatasetContentRequest(input *CreateDatasetContentInput) (req *request.Request, output *CreateDatasetContentOutput) { op := &request.Operation{ Name: opCreateDatasetContent, HTTPMethod: "POST", HTTPPath: "/datasets/{datasetName}/content", } if input == nil { input = &CreateDatasetContentInput{} } output = &CreateDatasetContentOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) return } // CreateDatasetContent API operation for AWS IoT Analytics. // // Creates the content of a data set by applying an SQL 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 IoT Analytics's // API operation CreateDatasetContent for usage and error information. // // Returned Error Codes: // * ErrCodeInvalidRequestException "InvalidRequestException" // The request was not valid. // // * ErrCodeResourceNotFoundException "ResourceNotFoundException" // A resource with the specified name could not be found. // // * ErrCodeInternalFailureException "InternalFailureException" // There was an internal failure. // // * ErrCodeServiceUnavailableException "ServiceUnavailableException" // The service is temporarily unavailable. // // * ErrCodeThrottlingException "ThrottlingException" // The request was denied due to request throttling. // // See also, https://docs.aws.amazon.com/goto/WebAPI/iotanalytics-2017-11-27/CreateDatasetContent func (c *IoTAnalytics) CreateDatasetContent(input *CreateDatasetContentInput) (*CreateDatasetContentOutput, error) { req, out := c.CreateDatasetContentRequest(input) return out, req.Send() } // CreateDatasetContentWithContext is the same as CreateDatasetContent with the addition of // the ability to pass a context and additional request options. // // See CreateDatasetContent for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *IoTAnalytics) CreateDatasetContentWithContext(ctx aws.Context, input *CreateDatasetContentInput, opts ...request.Option) (*CreateDatasetContentOutput, error) { req, out := c.CreateDatasetContentRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opCreateDatastore = "CreateDatastore" // CreateDatastoreRequest generates a "aws/request.Request" representing the // client's request for the CreateDatastore operation. The "output" return // value will be populated with the request's response once the request completes // successfuly. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See CreateDatastore for more information on using the CreateDatastore // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the CreateDatastoreRequest method. // req, resp := client.CreateDatastoreRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/iotanalytics-2017-11-27/CreateDatastore func (c *IoTAnalytics) CreateDatastoreRequest(input *CreateDatastoreInput) (req *request.Request, output *CreateDatastoreOutput) { op := &request.Operation{ Name: opCreateDatastore, HTTPMethod: "POST", HTTPPath: "/datastores", } if input == nil { input = &CreateDatastoreInput{} } output = &CreateDatastoreOutput{} req = c.newRequest(op, input, output) return } // CreateDatastore API operation for AWS IoT Analytics. // // Creates a data store, which is a repository for messages. // // Returns awserr.Error for service API and SDK errors. Use runtime type 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 Analytics's // API operation CreateDatastore for usage and error information. // // Returned Error Codes: // * ErrCodeInvalidRequestException "InvalidRequestException" // The request was not valid. // // * ErrCodeResourceAlreadyExistsException "ResourceAlreadyExistsException" // A resource with the same name already exists. // // * ErrCodeInternalFailureException "InternalFailureException" // There was an internal failure. // // * ErrCodeServiceUnavailableException "ServiceUnavailableException" // The service is temporarily unavailable. // // * ErrCodeThrottlingException "ThrottlingException" // The request was denied due to request throttling. // // * ErrCodeLimitExceededException "LimitExceededException" // The command caused an internal limit to be exceeded. // // See also, https://docs.aws.amazon.com/goto/WebAPI/iotanalytics-2017-11-27/CreateDatastore func (c *IoTAnalytics) CreateDatastore(input *CreateDatastoreInput) (*CreateDatastoreOutput, error) { req, out := c.CreateDatastoreRequest(input) return out, req.Send() } // CreateDatastoreWithContext is the same as CreateDatastore with the addition of // the ability to pass a context and additional request options. // // See CreateDatastore for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *IoTAnalytics) CreateDatastoreWithContext(ctx aws.Context, input *CreateDatastoreInput, opts ...request.Option) (*CreateDatastoreOutput, error) { req, out := c.CreateDatastoreRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opCreatePipeline = "CreatePipeline" // CreatePipelineRequest generates a "aws/request.Request" representing the // client's request for the CreatePipeline operation. The "output" return // value will be populated with the request's response once the request completes // successfuly. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See CreatePipeline for more information on using the CreatePipeline // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the CreatePipelineRequest method. // req, resp := client.CreatePipelineRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/iotanalytics-2017-11-27/CreatePipeline func (c *IoTAnalytics) CreatePipelineRequest(input *CreatePipelineInput) (req *request.Request, output *CreatePipelineOutput) { op := &request.Operation{ Name: opCreatePipeline, HTTPMethod: "POST", HTTPPath: "/pipelines", } if input == nil { input = &CreatePipelineInput{} } output = &CreatePipelineOutput{} req = c.newRequest(op, input, output) return } // CreatePipeline API operation for AWS IoT Analytics. // // Creates a pipeline. A pipeline consumes messages from one or more channels // and allows you to process the messages before storing them in a data store. // // Returns awserr.Error for service API and SDK errors. Use runtime type 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 Analytics's // API operation CreatePipeline for usage and error information. // // Returned Error Codes: // * ErrCodeInvalidRequestException "InvalidRequestException" // The request was not valid. // // * ErrCodeResourceAlreadyExistsException "ResourceAlreadyExistsException" // A resource with the same name already exists. // // * ErrCodeInternalFailureException "InternalFailureException" // There was an internal failure. // // * ErrCodeServiceUnavailableException "ServiceUnavailableException" // The service is temporarily unavailable. // // * ErrCodeThrottlingException "ThrottlingException" // The request was denied due to request throttling. // // * ErrCodeLimitExceededException "LimitExceededException" // The command caused an internal limit to be exceeded. // // See also, https://docs.aws.amazon.com/goto/WebAPI/iotanalytics-2017-11-27/CreatePipeline func (c *IoTAnalytics) CreatePipeline(input *CreatePipelineInput) (*CreatePipelineOutput, error) { req, out := c.CreatePipelineRequest(input) return out, req.Send() } // CreatePipelineWithContext is the same as CreatePipeline with the addition of // the ability to pass a context and additional request options. // // See CreatePipeline for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *IoTAnalytics) CreatePipelineWithContext(ctx aws.Context, input *CreatePipelineInput, opts ...request.Option) (*CreatePipelineOutput, error) { req, out := c.CreatePipelineRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opDeleteChannel = "DeleteChannel" // DeleteChannelRequest generates a "aws/request.Request" representing the // client's request for the DeleteChannel operation. The "output" return // value will be populated with the request's response once the request completes // successfuly. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See DeleteChannel for more information on using the DeleteChannel // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the DeleteChannelRequest method. // req, resp := client.DeleteChannelRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/iotanalytics-2017-11-27/DeleteChannel func (c *IoTAnalytics) DeleteChannelRequest(input *DeleteChannelInput) (req *request.Request, output *DeleteChannelOutput) { op := &request.Operation{ Name: opDeleteChannel, HTTPMethod: "DELETE", HTTPPath: "/channels/{channelName}", } if input == nil { input = &DeleteChannelInput{} } output = &DeleteChannelOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) return } // DeleteChannel API operation for AWS IoT Analytics. // // Deletes the specified channel. // // Returns awserr.Error for service API and SDK errors. Use runtime type 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 Analytics's // API operation DeleteChannel for usage and error information. // // Returned Error Codes: // * ErrCodeInvalidRequestException "InvalidRequestException" // The request was not valid. // // * ErrCodeResourceNotFoundException "ResourceNotFoundException" // A resource with the specified name could not be found. // // * ErrCodeInternalFailureException "InternalFailureException" // There was an internal failure. // // * ErrCodeServiceUnavailableException "ServiceUnavailableException" // The service is temporarily unavailable. // // * ErrCodeThrottlingException "ThrottlingException" // The request was denied due to request throttling. // // See also, https://docs.aws.amazon.com/goto/WebAPI/iotanalytics-2017-11-27/DeleteChannel func (c *IoTAnalytics) DeleteChannel(input *DeleteChannelInput) (*DeleteChannelOutput, error) { req, out := c.DeleteChannelRequest(input) return out, req.Send() } // DeleteChannelWithContext is the same as DeleteChannel with the addition of // the ability to pass a context and additional request options. // // See DeleteChannel for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *IoTAnalytics) DeleteChannelWithContext(ctx aws.Context, input *DeleteChannelInput, opts ...request.Option) (*DeleteChannelOutput, error) { req, out := c.DeleteChannelRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opDeleteDataset = "DeleteDataset" // DeleteDatasetRequest generates a "aws/request.Request" representing the // client's request for the DeleteDataset operation. The "output" return // value will be populated with the request's response once the request completes // successfuly. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See DeleteDataset for more information on using the DeleteDataset // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the DeleteDatasetRequest method. // req, resp := client.DeleteDatasetRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/iotanalytics-2017-11-27/DeleteDataset func (c *IoTAnalytics) DeleteDatasetRequest(input *DeleteDatasetInput) (req *request.Request, output *DeleteDatasetOutput) { op := &request.Operation{ Name: opDeleteDataset, HTTPMethod: "DELETE", HTTPPath: "/datasets/{datasetName}", } if input == nil { input = &DeleteDatasetInput{} } output = &DeleteDatasetOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) return } // DeleteDataset API operation for AWS IoT Analytics. // // Deletes the specified data set. // // You do not have to delete the content of the data set before you perform // 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 IoT Analytics's // API operation DeleteDataset for usage and error information. // // Returned Error Codes: // * ErrCodeInvalidRequestException "InvalidRequestException" // The request was not valid. // // * ErrCodeResourceNotFoundException "ResourceNotFoundException" // A resource with the specified name could not be found. // // * ErrCodeInternalFailureException "InternalFailureException" // There was an internal failure. // // * ErrCodeServiceUnavailableException "ServiceUnavailableException" // The service is temporarily unavailable. // // * ErrCodeThrottlingException "ThrottlingException" // The request was denied due to request throttling. // // See also, https://docs.aws.amazon.com/goto/WebAPI/iotanalytics-2017-11-27/DeleteDataset func (c *IoTAnalytics) DeleteDataset(input *DeleteDatasetInput) (*DeleteDatasetOutput, error) { req, out := c.DeleteDatasetRequest(input) return out, req.Send() } // DeleteDatasetWithContext is the same as DeleteDataset with the addition of // the ability to pass a context and additional request options. // // See DeleteDataset for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *IoTAnalytics) DeleteDatasetWithContext(ctx aws.Context, input *DeleteDatasetInput, opts ...request.Option) (*DeleteDatasetOutput, error) { req, out := c.DeleteDatasetRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opDeleteDatasetContent = "DeleteDatasetContent" // DeleteDatasetContentRequest generates a "aws/request.Request" representing the // client's request for the DeleteDatasetContent operation. The "output" return // value will be populated with the request's response once the request completes // successfuly. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See DeleteDatasetContent for more information on using the DeleteDatasetContent // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the DeleteDatasetContentRequest method. // req, resp := client.DeleteDatasetContentRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/iotanalytics-2017-11-27/DeleteDatasetContent func (c *IoTAnalytics) DeleteDatasetContentRequest(input *DeleteDatasetContentInput) (req *request.Request, output *DeleteDatasetContentOutput) { op := &request.Operation{ Name: opDeleteDatasetContent, HTTPMethod: "DELETE", HTTPPath: "/datasets/{datasetName}/content", } if input == nil { input = &DeleteDatasetContentInput{} } output = &DeleteDatasetContentOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) return } // DeleteDatasetContent API operation for AWS IoT Analytics. // // Deletes the content of the specified data 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 IoT Analytics's // API operation DeleteDatasetContent for usage and error information. // // Returned Error Codes: // * ErrCodeInvalidRequestException "InvalidRequestException" // The request was not valid. // // * ErrCodeResourceNotFoundException "ResourceNotFoundException" // A resource with the specified name could not be found. // // * ErrCodeInternalFailureException "InternalFailureException" // There was an internal failure. // // * ErrCodeServiceUnavailableException "ServiceUnavailableException" // The service is temporarily unavailable. // // * ErrCodeThrottlingException "ThrottlingException" // The request was denied due to request throttling. // // See also, https://docs.aws.amazon.com/goto/WebAPI/iotanalytics-2017-11-27/DeleteDatasetContent func (c *IoTAnalytics) DeleteDatasetContent(input *DeleteDatasetContentInput) (*DeleteDatasetContentOutput, error) { req, out := c.DeleteDatasetContentRequest(input) return out, req.Send() } // DeleteDatasetContentWithContext is the same as DeleteDatasetContent with the addition of // the ability to pass a context and additional request options. // // See DeleteDatasetContent for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *IoTAnalytics) DeleteDatasetContentWithContext(ctx aws.Context, input *DeleteDatasetContentInput, opts ...request.Option) (*DeleteDatasetContentOutput, error) { req, out := c.DeleteDatasetContentRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opDeleteDatastore = "DeleteDatastore" // DeleteDatastoreRequest generates a "aws/request.Request" representing the // client's request for the DeleteDatastore operation. The "output" return // value will be populated with the request's response once the request completes // successfuly. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See DeleteDatastore for more information on using the DeleteDatastore // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the DeleteDatastoreRequest method. // req, resp := client.DeleteDatastoreRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/iotanalytics-2017-11-27/DeleteDatastore func (c *IoTAnalytics) DeleteDatastoreRequest(input *DeleteDatastoreInput) (req *request.Request, output *DeleteDatastoreOutput) { op := &request.Operation{ Name: opDeleteDatastore, HTTPMethod: "DELETE", HTTPPath: "/datastores/{datastoreName}", } if input == nil { input = &DeleteDatastoreInput{} } output = &DeleteDatastoreOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) return } // DeleteDatastore API operation for AWS IoT Analytics. // // Deletes the specified data store. // // Returns awserr.Error for service API and SDK errors. Use runtime type 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 Analytics's // API operation DeleteDatastore for usage and error information. // // Returned Error Codes: // * ErrCodeInvalidRequestException "InvalidRequestException" // The request was not valid. // // * ErrCodeResourceNotFoundException "ResourceNotFoundException" // A resource with the specified name could not be found. // // * ErrCodeInternalFailureException "InternalFailureException" // There was an internal failure. // // * ErrCodeServiceUnavailableException "ServiceUnavailableException" // The service is temporarily unavailable. // // * ErrCodeThrottlingException "ThrottlingException" // The request was denied due to request throttling. // // See also, https://docs.aws.amazon.com/goto/WebAPI/iotanalytics-2017-11-27/DeleteDatastore func (c *IoTAnalytics) DeleteDatastore(input *DeleteDatastoreInput) (*DeleteDatastoreOutput, error) { req, out := c.DeleteDatastoreRequest(input) return out, req.Send() } // DeleteDatastoreWithContext is the same as DeleteDatastore with the addition of // the ability to pass a context and additional request options. // // See DeleteDatastore for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *IoTAnalytics) DeleteDatastoreWithContext(ctx aws.Context, input *DeleteDatastoreInput, opts ...request.Option) (*DeleteDatastoreOutput, error) { req, out := c.DeleteDatastoreRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opDeletePipeline = "DeletePipeline" // DeletePipelineRequest generates a "aws/request.Request" representing the // client's request for the DeletePipeline operation. The "output" return // value will be populated with the request's response once the request completes // successfuly. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See DeletePipeline for more information on using the DeletePipeline // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the DeletePipelineRequest method. // req, resp := client.DeletePipelineRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/iotanalytics-2017-11-27/DeletePipeline func (c *IoTAnalytics) DeletePipelineRequest(input *DeletePipelineInput) (req *request.Request, output *DeletePipelineOutput) { op := &request.Operation{ Name: opDeletePipeline, HTTPMethod: "DELETE", HTTPPath: "/pipelines/{pipelineName}", } if input == nil { input = &DeletePipelineInput{} } output = &DeletePipelineOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) return } // DeletePipeline API operation for AWS IoT Analytics. // // 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 IoT Analytics's // API operation DeletePipeline for usage and error information. // // Returned Error Codes: // * ErrCodeInvalidRequestException "InvalidRequestException" // The request was not valid. // // * ErrCodeResourceNotFoundException "ResourceNotFoundException" // A resource with the specified name could not be found. // // * ErrCodeInternalFailureException "InternalFailureException" // There was an internal failure. // // * ErrCodeServiceUnavailableException "ServiceUnavailableException" // The service is temporarily unavailable. // // * ErrCodeThrottlingException "ThrottlingException" // The request was denied due to request throttling. // // See also, https://docs.aws.amazon.com/goto/WebAPI/iotanalytics-2017-11-27/DeletePipeline func (c *IoTAnalytics) DeletePipeline(input *DeletePipelineInput) (*DeletePipelineOutput, error) { req, out := c.DeletePipelineRequest(input) return out, req.Send() } // DeletePipelineWithContext is the same as DeletePipeline with the addition of // the ability to pass a context and additional request options. // // See DeletePipeline for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *IoTAnalytics) DeletePipelineWithContext(ctx aws.Context, input *DeletePipelineInput, opts ...request.Option) (*DeletePipelineOutput, error) { req, out := c.DeletePipelineRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opDescribeChannel = "DescribeChannel" // DescribeChannelRequest generates a "aws/request.Request" representing the // client's request for the DescribeChannel operation. The "output" return // value will be populated with the request's response once the request completes // successfuly. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See DescribeChannel for more information on using the DescribeChannel // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the DescribeChannelRequest method. // req, resp := client.DescribeChannelRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/iotanalytics-2017-11-27/DescribeChannel func (c *IoTAnalytics) DescribeChannelRequest(input *DescribeChannelInput) (req *request.Request, output *DescribeChannelOutput) { op := &request.Operation{ Name: opDescribeChannel, HTTPMethod: "GET", HTTPPath: "/channels/{channelName}", } if input == nil { input = &DescribeChannelInput{} } output = &DescribeChannelOutput{} req = c.newRequest(op, input, output) return } // DescribeChannel API operation for AWS IoT Analytics. // // Retrieves information about a channel. // // Returns awserr.Error for service API and SDK errors. Use runtime type 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 Analytics's // API operation DescribeChannel for usage and error information. // // Returned Error Codes: // * ErrCodeInvalidRequestException "InvalidRequestException" // The request was not valid. // // * ErrCodeResourceNotFoundException "ResourceNotFoundException" // A resource with the specified name could not be found. // // * ErrCodeInternalFailureException "InternalFailureException" // There was an internal failure. // // * ErrCodeServiceUnavailableException "ServiceUnavailableException" // The service is temporarily unavailable. // // * ErrCodeThrottlingException "ThrottlingException" // The request was denied due to request throttling. // // See also, https://docs.aws.amazon.com/goto/WebAPI/iotanalytics-2017-11-27/DescribeChannel func (c *IoTAnalytics) DescribeChannel(input *DescribeChannelInput) (*DescribeChannelOutput, error) { req, out := c.DescribeChannelRequest(input) return out, req.Send() } // DescribeChannelWithContext is the same as DescribeChannel with the addition of // the ability to pass a context and additional request options. // // See DescribeChannel for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *IoTAnalytics) DescribeChannelWithContext(ctx aws.Context, input *DescribeChannelInput, opts ...request.Option) (*DescribeChannelOutput, error) { req, out := c.DescribeChannelRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opDescribeDataset = "DescribeDataset" // DescribeDatasetRequest generates a "aws/request.Request" representing the // client's request for the DescribeDataset operation. The "output" return // value will be populated with the request's response once the request completes // successfuly. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See DescribeDataset for more information on using the DescribeDataset // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the DescribeDatasetRequest method. // req, resp := client.DescribeDatasetRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/iotanalytics-2017-11-27/DescribeDataset func (c *IoTAnalytics) DescribeDatasetRequest(input *DescribeDatasetInput) (req *request.Request, output *DescribeDatasetOutput) { op := &request.Operation{ Name: opDescribeDataset, HTTPMethod: "GET", HTTPPath: "/datasets/{datasetName}", } if input == nil { input = &DescribeDatasetInput{} } output = &DescribeDatasetOutput{} req = c.newRequest(op, input, output) return } // DescribeDataset API operation for AWS IoT Analytics. // // Retrieves information about a data 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 IoT Analytics's // API operation DescribeDataset for usage and error information. // // Returned Error Codes: // * ErrCodeInvalidRequestException "InvalidRequestException" // The request was not valid. // // * ErrCodeResourceNotFoundException "ResourceNotFoundException" // A resource with the specified name could not be found. // // * ErrCodeInternalFailureException "InternalFailureException" // There was an internal failure. // // * ErrCodeServiceUnavailableException "ServiceUnavailableException" // The service is temporarily unavailable. // // * ErrCodeThrottlingException "ThrottlingException" // The request was denied due to request throttling. // // See also, https://docs.aws.amazon.com/goto/WebAPI/iotanalytics-2017-11-27/DescribeDataset func (c *IoTAnalytics) DescribeDataset(input *DescribeDatasetInput) (*DescribeDatasetOutput, error) { req, out := c.DescribeDatasetRequest(input) return out, req.Send() } // DescribeDatasetWithContext is the same as DescribeDataset with the addition of // the ability to pass a context and additional request options. // // See DescribeDataset for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *IoTAnalytics) DescribeDatasetWithContext(ctx aws.Context, input *DescribeDatasetInput, opts ...request.Option) (*DescribeDatasetOutput, error) { req, out := c.DescribeDatasetRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opDescribeDatastore = "DescribeDatastore" // DescribeDatastoreRequest generates a "aws/request.Request" representing the // client's request for the DescribeDatastore operation. The "output" return // value will be populated with the request's response once the request completes // successfuly. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See DescribeDatastore for more information on using the DescribeDatastore // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the DescribeDatastoreRequest method. // req, resp := client.DescribeDatastoreRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/iotanalytics-2017-11-27/DescribeDatastore func (c *IoTAnalytics) DescribeDatastoreRequest(input *DescribeDatastoreInput) (req *request.Request, output *DescribeDatastoreOutput) { op := &request.Operation{ Name: opDescribeDatastore, HTTPMethod: "GET", HTTPPath: "/datastores/{datastoreName}", } if input == nil { input = &DescribeDatastoreInput{} } output = &DescribeDatastoreOutput{} req = c.newRequest(op, input, output) return } // DescribeDatastore API operation for AWS IoT Analytics. // // Retrieves information about a data store. // // Returns awserr.Error for service API and SDK errors. Use runtime type 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 Analytics's // API operation DescribeDatastore for usage and error information. // // Returned Error Codes: // * ErrCodeInvalidRequestException "InvalidRequestException" // The request was not valid. // // * ErrCodeResourceNotFoundException "ResourceNotFoundException" // A resource with the specified name could not be found. // // * ErrCodeInternalFailureException "InternalFailureException" // There was an internal failure. // // * ErrCodeServiceUnavailableException "ServiceUnavailableException" // The service is temporarily unavailable. // // * ErrCodeThrottlingException "ThrottlingException" // The request was denied due to request throttling. // // See also, https://docs.aws.amazon.com/goto/WebAPI/iotanalytics-2017-11-27/DescribeDatastore func (c *IoTAnalytics) DescribeDatastore(input *DescribeDatastoreInput) (*DescribeDatastoreOutput, error) { req, out := c.DescribeDatastoreRequest(input) return out, req.Send() } // DescribeDatastoreWithContext is the same as DescribeDatastore with the addition of // the ability to pass a context and additional request options. // // See DescribeDatastore for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *IoTAnalytics) DescribeDatastoreWithContext(ctx aws.Context, input *DescribeDatastoreInput, opts ...request.Option) (*DescribeDatastoreOutput, error) { req, out := c.DescribeDatastoreRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opDescribeLoggingOptions = "DescribeLoggingOptions" // DescribeLoggingOptionsRequest generates a "aws/request.Request" representing the // client's request for the DescribeLoggingOptions operation. The "output" return // value will be populated with the request's response once the request completes // successfuly. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See DescribeLoggingOptions for more information on using the DescribeLoggingOptions // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the DescribeLoggingOptionsRequest method. // req, resp := client.DescribeLoggingOptionsRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/iotanalytics-2017-11-27/DescribeLoggingOptions func (c *IoTAnalytics) DescribeLoggingOptionsRequest(input *DescribeLoggingOptionsInput) (req *request.Request, output *DescribeLoggingOptionsOutput) { op := &request.Operation{ Name: opDescribeLoggingOptions, HTTPMethod: "GET", HTTPPath: "/logging", } if input == nil { input = &DescribeLoggingOptionsInput{} } output = &DescribeLoggingOptionsOutput{} req = c.newRequest(op, input, output) return } // DescribeLoggingOptions API operation for AWS IoT Analytics. // // Retrieves the current settings of the AWS IoT Analytics 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 Analytics's // API operation DescribeLoggingOptions for usage and error information. // // Returned Error Codes: // * ErrCodeInvalidRequestException "InvalidRequestException" // The request was not valid. // // * ErrCodeResourceNotFoundException "ResourceNotFoundException" // A resource with the specified name could not be found. // // * ErrCodeInternalFailureException "InternalFailureException" // There was an internal failure. // // * ErrCodeServiceUnavailableException "ServiceUnavailableException" // The service is temporarily unavailable. // // * ErrCodeThrottlingException "ThrottlingException" // The request was denied due to request throttling. // // See also, https://docs.aws.amazon.com/goto/WebAPI/iotanalytics-2017-11-27/DescribeLoggingOptions func (c *IoTAnalytics) DescribeLoggingOptions(input *DescribeLoggingOptionsInput) (*DescribeLoggingOptionsOutput, error) { req, out := c.DescribeLoggingOptionsRequest(input) return out, req.Send() } // DescribeLoggingOptionsWithContext is the same as DescribeLoggingOptions with the addition of // the ability to pass a context and additional request options. // // See DescribeLoggingOptions for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *IoTAnalytics) DescribeLoggingOptionsWithContext(ctx aws.Context, input *DescribeLoggingOptionsInput, opts ...request.Option) (*DescribeLoggingOptionsOutput, error) { req, out := c.DescribeLoggingOptionsRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opDescribePipeline = "DescribePipeline" // DescribePipelineRequest generates a "aws/request.Request" representing the // client's request for the DescribePipeline operation. The "output" return // value will be populated with the request's response once the request completes // successfuly. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See DescribePipeline for more information on using the DescribePipeline // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the DescribePipelineRequest method. // req, resp := client.DescribePipelineRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/iotanalytics-2017-11-27/DescribePipeline func (c *IoTAnalytics) DescribePipelineRequest(input *DescribePipelineInput) (req *request.Request, output *DescribePipelineOutput) { op := &request.Operation{ Name: opDescribePipeline, HTTPMethod: "GET", HTTPPath: "/pipelines/{pipelineName}", } if input == nil { input = &DescribePipelineInput{} } output = &DescribePipelineOutput{} req = c.newRequest(op, input, output) return } // DescribePipeline API operation for AWS IoT Analytics. // // Retrieves 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 AWS IoT Analytics's // API operation DescribePipeline for usage and error information. // // Returned Error Codes: // * ErrCodeInvalidRequestException "InvalidRequestException" // The request was not valid. // // * ErrCodeResourceNotFoundException "ResourceNotFoundException" // A resource with the specified name could not be found. // // * ErrCodeInternalFailureException "InternalFailureException" // There was an internal failure. // // * ErrCodeServiceUnavailableException "ServiceUnavailableException" // The service is temporarily unavailable. // // * ErrCodeThrottlingException "ThrottlingException" // The request was denied due to request throttling. // // See also, https://docs.aws.amazon.com/goto/WebAPI/iotanalytics-2017-11-27/DescribePipeline func (c *IoTAnalytics) DescribePipeline(input *DescribePipelineInput) (*DescribePipelineOutput, error) { req, out := c.DescribePipelineRequest(input) return out, req.Send() } // DescribePipelineWithContext is the same as DescribePipeline with the addition of // the ability to pass a context and additional request options. // // See DescribePipeline for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *IoTAnalytics) DescribePipelineWithContext(ctx aws.Context, input *DescribePipelineInput, opts ...request.Option) (*DescribePipelineOutput, error) { req, out := c.DescribePipelineRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opGetDatasetContent = "GetDatasetContent" // GetDatasetContentRequest generates a "aws/request.Request" representing the // client's request for the GetDatasetContent operation. The "output" return // value will be populated with the request's response once the request completes // successfuly. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See GetDatasetContent for more information on using the GetDatasetContent // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the GetDatasetContentRequest method. // req, resp := client.GetDatasetContentRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/iotanalytics-2017-11-27/GetDatasetContent func (c *IoTAnalytics) GetDatasetContentRequest(input *GetDatasetContentInput) (req *request.Request, output *GetDatasetContentOutput) { op := &request.Operation{ Name: opGetDatasetContent, HTTPMethod: "GET", HTTPPath: "/datasets/{datasetName}/content", } if input == nil { input = &GetDatasetContentInput{} } output = &GetDatasetContentOutput{} req = c.newRequest(op, input, output) return } // GetDatasetContent API operation for AWS IoT Analytics. // // Retrieves the contents of a data set as pre-signed URIs. // // Returns awserr.Error for service API and SDK errors. Use runtime type 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 Analytics's // API operation GetDatasetContent for usage and error information. // // Returned Error Codes: // * ErrCodeInvalidRequestException "InvalidRequestException" // The request was not valid. // // * ErrCodeResourceNotFoundException "ResourceNotFoundException" // A resource with the specified name could not be found. // // * ErrCodeInternalFailureException "InternalFailureException" // There was an internal failure. // // * ErrCodeServiceUnavailableException "ServiceUnavailableException" // The service is temporarily unavailable. // // * ErrCodeThrottlingException "ThrottlingException" // The request was denied due to request throttling. // // See also, https://docs.aws.amazon.com/goto/WebAPI/iotanalytics-2017-11-27/GetDatasetContent func (c *IoTAnalytics) GetDatasetContent(input *GetDatasetContentInput) (*GetDatasetContentOutput, error) { req, out := c.GetDatasetContentRequest(input) return out, req.Send() } // GetDatasetContentWithContext is the same as GetDatasetContent with the addition of // the ability to pass a context and additional request options. // // See GetDatasetContent for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *IoTAnalytics) GetDatasetContentWithContext(ctx aws.Context, input *GetDatasetContentInput, opts ...request.Option) (*GetDatasetContentOutput, error) { req, out := c.GetDatasetContentRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opListChannels = "ListChannels" // ListChannelsRequest generates a "aws/request.Request" representing the // client's request for the ListChannels operation. The "output" return // value will be populated with the request's response once the request completes // successfuly. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See ListChannels for more information on using the ListChannels // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the ListChannelsRequest method. // req, resp := client.ListChannelsRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/iotanalytics-2017-11-27/ListChannels func (c *IoTAnalytics) ListChannelsRequest(input *ListChannelsInput) (req *request.Request, output *ListChannelsOutput) { op := &request.Operation{ Name: opListChannels, HTTPMethod: "GET", HTTPPath: "/channels", Paginator: &request.Paginator{ InputTokens: []string{"nextToken"}, OutputTokens: []string{"nextToken"}, LimitToken: "maxResults", TruncationToken: "", }, } if input == nil { input = &ListChannelsInput{} } output = &ListChannelsOutput{} req = c.newRequest(op, input, output) return } // ListChannels API operation for AWS IoT Analytics. // // Retrieves a list of channels. // // Returns awserr.Error for service API and SDK errors. Use runtime type 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 Analytics's // API operation ListChannels for usage and error information. // // Returned Error Codes: // * ErrCodeInvalidRequestException "InvalidRequestException" // The request was not valid. // // * ErrCodeInternalFailureException "InternalFailureException" // There was an internal failure. // // * ErrCodeServiceUnavailableException "ServiceUnavailableException" // The service is temporarily unavailable. // // * ErrCodeThrottlingException "ThrottlingException" // The request was denied due to request throttling. // // See also, https://docs.aws.amazon.com/goto/WebAPI/iotanalytics-2017-11-27/ListChannels func (c *IoTAnalytics) ListChannels(input *ListChannelsInput) (*ListChannelsOutput, error) { req, out := c.ListChannelsRequest(input) return out, req.Send() } // ListChannelsWithContext is the same as ListChannels with the addition of // the ability to pass a context and additional request options. // // See ListChannels for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *IoTAnalytics) ListChannelsWithContext(ctx aws.Context, input *ListChannelsInput, opts ...request.Option) (*ListChannelsOutput, error) { req, out := c.ListChannelsRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } // ListChannelsPages iterates over the pages of a ListChannels operation, // calling the "fn" function with the response data for each page. To stop // iterating, return false from the fn function. // // See ListChannels method for more information on how to use this operation. // // Note: This operation can generate multiple requests to a service. // // // Example iterating over at most 3 pages of a ListChannels operation. // pageNum := 0 // err := client.ListChannelsPages(params, // func(page *ListChannelsOutput, lastPage bool) bool { // pageNum++ // fmt.Println(page) // return pageNum <= 3 // }) // func (c *IoTAnalytics) ListChannelsPages(input *ListChannelsInput, fn func(*ListChannelsOutput, bool) bool) error { return c.ListChannelsPagesWithContext(aws.BackgroundContext(), input, fn) } // ListChannelsPagesWithContext same as ListChannelsPages except // it takes a Context and allows setting request options on the pages. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *IoTAnalytics) ListChannelsPagesWithContext(ctx aws.Context, input *ListChannelsInput, fn func(*ListChannelsOutput, bool) bool, opts ...request.Option) error { p := request.Pagination{ NewRequest: func() (*request.Request, error) { var inCpy *ListChannelsInput if input != nil { tmp := *input inCpy = &tmp } req, _ := c.ListChannelsRequest(inCpy) req.SetContext(ctx) req.ApplyOptions(opts...) return req, nil }, } cont := true for p.Next() && cont { cont = fn(p.Page().(*ListChannelsOutput), !p.HasNextPage()) } return p.Err() } const opListDatasets = "ListDatasets" // ListDatasetsRequest generates a "aws/request.Request" representing the // client's request for the ListDatasets operation. The "output" return // value will be populated with the request's response once the request completes // successfuly. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See ListDatasets for more information on using the ListDatasets // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the ListDatasetsRequest method. // req, resp := client.ListDatasetsRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/iotanalytics-2017-11-27/ListDatasets func (c *IoTAnalytics) ListDatasetsRequest(input *ListDatasetsInput) (req *request.Request, output *ListDatasetsOutput) { op := &request.Operation{ Name: opListDatasets, HTTPMethod: "GET", HTTPPath: "/datasets", Paginator: &request.Paginator{ InputTokens: []string{"nextToken"}, OutputTokens: []string{"nextToken"}, LimitToken: "maxResults", TruncationToken: "", }, } if input == nil { input = &ListDatasetsInput{} } output = &ListDatasetsOutput{} req = c.newRequest(op, input, output) return } // ListDatasets API operation for AWS IoT Analytics. // // Retrieves information about data sets. // // Returns awserr.Error for service API and SDK errors. Use runtime type 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 Analytics's // API operation ListDatasets for usage and error information. // // Returned Error Codes: // * ErrCodeInvalidRequestException "InvalidRequestException" // The request was not valid. // // * ErrCodeInternalFailureException "InternalFailureException" // There was an internal failure. // // * ErrCodeServiceUnavailableException "ServiceUnavailableException" // The service is temporarily unavailable. // // * ErrCodeThrottlingException "ThrottlingException" // The request was denied due to request throttling. // // See also, https://docs.aws.amazon.com/goto/WebAPI/iotanalytics-2017-11-27/ListDatasets func (c *IoTAnalytics) ListDatasets(input *ListDatasetsInput) (*ListDatasetsOutput, error) { req, out := c.ListDatasetsRequest(input) return out, req.Send() } // ListDatasetsWithContext is the same as ListDatasets with the addition of // the ability to pass a context and additional request options. // // See ListDatasets for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *IoTAnalytics) ListDatasetsWithContext(ctx aws.Context, input *ListDatasetsInput, opts ...request.Option) (*ListDatasetsOutput, error) { req, out := c.ListDatasetsRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } // ListDatasetsPages iterates over the pages of a ListDatasets operation, // calling the "fn" function with the response data for each page. To stop // iterating, return false from the fn function. // // See ListDatasets method for more information on how to use this operation. // // Note: This operation can generate multiple requests to a service. // // // Example iterating over at most 3 pages of a ListDatasets operation. // pageNum := 0 // err := client.ListDatasetsPages(params, // func(page *ListDatasetsOutput, lastPage bool) bool { // pageNum++ // fmt.Println(page) // return pageNum <= 3 // }) // func (c *IoTAnalytics) ListDatasetsPages(input *ListDatasetsInput, fn func(*ListDatasetsOutput, bool) bool) error { return c.ListDatasetsPagesWithContext(aws.BackgroundContext(), input, fn) } // ListDatasetsPagesWithContext same as ListDatasetsPages except // it takes a Context and allows setting request options on the pages. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *IoTAnalytics) ListDatasetsPagesWithContext(ctx aws.Context, input *ListDatasetsInput, fn func(*ListDatasetsOutput, bool) bool, opts ...request.Option) error { p := request.Pagination{ NewRequest: func() (*request.Request, error) { var inCpy *ListDatasetsInput if input != nil { tmp := *input inCpy = &tmp } req, _ := c.ListDatasetsRequest(inCpy) req.SetContext(ctx) req.ApplyOptions(opts...) return req, nil }, } cont := true for p.Next() && cont { cont = fn(p.Page().(*ListDatasetsOutput), !p.HasNextPage()) } return p.Err() } const opListDatastores = "ListDatastores" // ListDatastoresRequest generates a "aws/request.Request" representing the // client's request for the ListDatastores operation. The "output" return // value will be populated with the request's response once the request completes // successfuly. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See ListDatastores for more information on using the ListDatastores // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the ListDatastoresRequest method. // req, resp := client.ListDatastoresRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/iotanalytics-2017-11-27/ListDatastores func (c *IoTAnalytics) ListDatastoresRequest(input *ListDatastoresInput) (req *request.Request, output *ListDatastoresOutput) { op := &request.Operation{ Name: opListDatastores, HTTPMethod: "GET", HTTPPath: "/datastores", Paginator: &request.Paginator{ InputTokens: []string{"nextToken"}, OutputTokens: []string{"nextToken"}, LimitToken: "maxResults", TruncationToken: "", }, } if input == nil { input = &ListDatastoresInput{} } output = &ListDatastoresOutput{} req = c.newRequest(op, input, output) return } // ListDatastores API operation for AWS IoT Analytics. // // Retrieves a list of data stores. // // Returns awserr.Error for service API and SDK errors. Use runtime type 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 Analytics's // API operation ListDatastores for usage and error information. // // Returned Error Codes: // * ErrCodeInvalidRequestException "InvalidRequestException" // The request was not valid. // // * ErrCodeInternalFailureException "InternalFailureException" // There was an internal failure. // // * ErrCodeServiceUnavailableException "ServiceUnavailableException" // The service is temporarily unavailable. // // * ErrCodeThrottlingException "ThrottlingException" // The request was denied due to request throttling. // // See also, https://docs.aws.amazon.com/goto/WebAPI/iotanalytics-2017-11-27/ListDatastores func (c *IoTAnalytics) ListDatastores(input *ListDatastoresInput) (*ListDatastoresOutput, error) { req, out := c.ListDatastoresRequest(input) return out, req.Send() } // ListDatastoresWithContext is the same as ListDatastores with the addition of // the ability to pass a context and additional request options. // // See ListDatastores for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *IoTAnalytics) ListDatastoresWithContext(ctx aws.Context, input *ListDatastoresInput, opts ...request.Option) (*ListDatastoresOutput, error) { req, out := c.ListDatastoresRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } // ListDatastoresPages iterates over the pages of a ListDatastores operation, // calling the "fn" function with the response data for each page. To stop // iterating, return false from the fn function. // // See ListDatastores method for more information on how to use this operation. // // Note: This operation can generate multiple requests to a service. // // // Example iterating over at most 3 pages of a ListDatastores operation. // pageNum := 0 // err := client.ListDatastoresPages(params, // func(page *ListDatastoresOutput, lastPage bool) bool { // pageNum++ // fmt.Println(page) // return pageNum <= 3 // }) // func (c *IoTAnalytics) ListDatastoresPages(input *ListDatastoresInput, fn func(*ListDatastoresOutput, bool) bool) error { return c.ListDatastoresPagesWithContext(aws.BackgroundContext(), input, fn) } // ListDatastoresPagesWithContext same as ListDatastoresPages except // it takes a Context and allows setting request options on the pages. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *IoTAnalytics) ListDatastoresPagesWithContext(ctx aws.Context, input *ListDatastoresInput, fn func(*ListDatastoresOutput, bool) bool, opts ...request.Option) error { p := request.Pagination{ NewRequest: func() (*request.Request, error) { var inCpy *ListDatastoresInput if input != nil { tmp := *input inCpy = &tmp } req, _ := c.ListDatastoresRequest(inCpy) req.SetContext(ctx) req.ApplyOptions(opts...) return req, nil }, } cont := true for p.Next() && cont { cont = fn(p.Page().(*ListDatastoresOutput), !p.HasNextPage()) } return p.Err() } const opListPipelines = "ListPipelines" // ListPipelinesRequest generates a "aws/request.Request" representing the // client's request for the ListPipelines operation. The "output" return // value will be populated with the request's response once the request completes // successfuly. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See ListPipelines for more information on using the ListPipelines // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the ListPipelinesRequest method. // req, resp := client.ListPipelinesRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/iotanalytics-2017-11-27/ListPipelines func (c *IoTAnalytics) ListPipelinesRequest(input *ListPipelinesInput) (req *request.Request, output *ListPipelinesOutput) { op := &request.Operation{ Name: opListPipelines, HTTPMethod: "GET", HTTPPath: "/pipelines", Paginator: &request.Paginator{ InputTokens: []string{"nextToken"}, OutputTokens: []string{"nextToken"}, LimitToken: "maxResults", TruncationToken: "", }, } if input == nil { input = &ListPipelinesInput{} } output = &ListPipelinesOutput{} req = c.newRequest(op, input, output) return } // ListPipelines API operation for AWS IoT Analytics. // // Retrieves a list of pipelines. // // Returns awserr.Error for service API and SDK errors. Use runtime type 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 Analytics's // API operation ListPipelines for usage and error information. // // Returned Error Codes: // * ErrCodeInvalidRequestException "InvalidRequestException" // The request was not valid. // // * ErrCodeInternalFailureException "InternalFailureException" // There was an internal failure. // // * ErrCodeServiceUnavailableException "ServiceUnavailableException" // The service is temporarily unavailable. // // * ErrCodeThrottlingException "ThrottlingException" // The request was denied due to request throttling. // // See also, https://docs.aws.amazon.com/goto/WebAPI/iotanalytics-2017-11-27/ListPipelines func (c *IoTAnalytics) ListPipelines(input *ListPipelinesInput) (*ListPipelinesOutput, error) { req, out := c.ListPipelinesRequest(input) return out, req.Send() } // ListPipelinesWithContext is the same as ListPipelines with the addition of // the ability to pass a context and additional request options. // // See ListPipelines for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *IoTAnalytics) ListPipelinesWithContext(ctx aws.Context, input *ListPipelinesInput, opts ...request.Option) (*ListPipelinesOutput, error) { req, out := c.ListPipelinesRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } // ListPipelinesPages iterates over the pages of a ListPipelines operation, // calling the "fn" function with the response data for each page. To stop // iterating, return false from the fn function. // // See ListPipelines method for more information on how to use this operation. // // Note: This operation can generate multiple requests to a service. // // // Example iterating over at most 3 pages of a ListPipelines operation. // pageNum := 0 // err := client.ListPipelinesPages(params, // func(page *ListPipelinesOutput, lastPage bool) bool { // pageNum++ // fmt.Println(page) // return pageNum <= 3 // }) // func (c *IoTAnalytics) ListPipelinesPages(input *ListPipelinesInput, fn func(*ListPipelinesOutput, bool) bool) error { return c.ListPipelinesPagesWithContext(aws.BackgroundContext(), input, fn) } // ListPipelinesPagesWithContext same as ListPipelinesPages except // it takes a Context and allows setting request options on the pages. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *IoTAnalytics) ListPipelinesPagesWithContext(ctx aws.Context, input *ListPipelinesInput, fn func(*ListPipelinesOutput, bool) bool, opts ...request.Option) error { p := request.Pagination{ NewRequest: func() (*request.Request, error) { var inCpy *ListPipelinesInput if input != nil { tmp := *input inCpy = &tmp } req, _ := c.ListPipelinesRequest(inCpy) req.SetContext(ctx) req.ApplyOptions(opts...) return req, nil }, } cont := true for p.Next() && cont { cont = fn(p.Page().(*ListPipelinesOutput), !p.HasNextPage()) } return p.Err() } const opPutLoggingOptions = "PutLoggingOptions" // PutLoggingOptionsRequest generates a "aws/request.Request" representing the // client's request for the PutLoggingOptions operation. The "output" return // value will be populated with the request's response once the request completes // successfuly. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See PutLoggingOptions for more information on using the PutLoggingOptions // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the PutLoggingOptionsRequest method. // req, resp := client.PutLoggingOptionsRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/iotanalytics-2017-11-27/PutLoggingOptions func (c *IoTAnalytics) PutLoggingOptionsRequest(input *PutLoggingOptionsInput) (req *request.Request, output *PutLoggingOptionsOutput) { op := &request.Operation{ Name: opPutLoggingOptions, HTTPMethod: "PUT", HTTPPath: "/logging", } if input == nil { input = &PutLoggingOptionsInput{} } output = &PutLoggingOptionsOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) return } // PutLoggingOptions API operation for AWS IoT Analytics. // // Sets or updates the AWS IoT Analytics 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 Analytics's // API operation PutLoggingOptions for usage and error information. // // Returned Error Codes: // * ErrCodeInvalidRequestException "InvalidRequestException" // The request was not valid. // // * ErrCodeInternalFailureException "InternalFailureException" // There was an internal failure. // // * ErrCodeServiceUnavailableException "ServiceUnavailableException" // The service is temporarily unavailable. // // * ErrCodeThrottlingException "ThrottlingException" // The request was denied due to request throttling. // // See also, https://docs.aws.amazon.com/goto/WebAPI/iotanalytics-2017-11-27/PutLoggingOptions func (c *IoTAnalytics) PutLoggingOptions(input *PutLoggingOptionsInput) (*PutLoggingOptionsOutput, error) { req, out := c.PutLoggingOptionsRequest(input) return out, req.Send() } // PutLoggingOptionsWithContext is the same as PutLoggingOptions with the addition of // the ability to pass a context and additional request options. // // See PutLoggingOptions for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *IoTAnalytics) PutLoggingOptionsWithContext(ctx aws.Context, input *PutLoggingOptionsInput, opts ...request.Option) (*PutLoggingOptionsOutput, error) { req, out := c.PutLoggingOptionsRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opRunPipelineActivity = "RunPipelineActivity" // RunPipelineActivityRequest generates a "aws/request.Request" representing the // client's request for the RunPipelineActivity operation. The "output" return // value will be populated with the request's response once the request completes // successfuly. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See RunPipelineActivity for more information on using the RunPipelineActivity // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the RunPipelineActivityRequest method. // req, resp := client.RunPipelineActivityRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/iotanalytics-2017-11-27/RunPipelineActivity func (c *IoTAnalytics) RunPipelineActivityRequest(input *RunPipelineActivityInput) (req *request.Request, output *RunPipelineActivityOutput) { op := &request.Operation{ Name: opRunPipelineActivity, HTTPMethod: "POST", HTTPPath: "/pipelineactivities/run", } if input == nil { input = &RunPipelineActivityInput{} } output = &RunPipelineActivityOutput{} req = c.newRequest(op, input, output) return } // RunPipelineActivity API operation for AWS IoT Analytics. // // Simulates the results of running a pipeline activity on a message 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 AWS IoT Analytics's // API operation RunPipelineActivity for usage and error information. // // Returned Error Codes: // * ErrCodeInvalidRequestException "InvalidRequestException" // The request was not valid. // // * ErrCodeInternalFailureException "InternalFailureException" // There was an internal failure. // // * ErrCodeServiceUnavailableException "ServiceUnavailableException" // The service is temporarily unavailable. // // * ErrCodeThrottlingException "ThrottlingException" // The request was denied due to request throttling. // // See also, https://docs.aws.amazon.com/goto/WebAPI/iotanalytics-2017-11-27/RunPipelineActivity func (c *IoTAnalytics) RunPipelineActivity(input *RunPipelineActivityInput) (*RunPipelineActivityOutput, error) { req, out := c.RunPipelineActivityRequest(input) return out, req.Send() } // RunPipelineActivityWithContext is the same as RunPipelineActivity with the addition of // the ability to pass a context and additional request options. // // See RunPipelineActivity for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *IoTAnalytics) RunPipelineActivityWithContext(ctx aws.Context, input *RunPipelineActivityInput, opts ...request.Option) (*RunPipelineActivityOutput, error) { req, out := c.RunPipelineActivityRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opSampleChannelData = "SampleChannelData" // SampleChannelDataRequest generates a "aws/request.Request" representing the // client's request for the SampleChannelData operation. The "output" return // value will be populated with the request's response once the request completes // successfuly. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See SampleChannelData for more information on using the SampleChannelData // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the SampleChannelDataRequest method. // req, resp := client.SampleChannelDataRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/iotanalytics-2017-11-27/SampleChannelData func (c *IoTAnalytics) SampleChannelDataRequest(input *SampleChannelDataInput) (req *request.Request, output *SampleChannelDataOutput) { op := &request.Operation{ Name: opSampleChannelData, HTTPMethod: "GET", HTTPPath: "/channels/{channelName}/sample", } if input == nil { input = &SampleChannelDataInput{} } output = &SampleChannelDataOutput{} req = c.newRequest(op, input, output) return } // SampleChannelData API operation for AWS IoT Analytics. // // Retrieves a sample of messages from the specified channel ingested during // the specified timeframe. Up to 10 messages can be retrieved. // // Returns awserr.Error for service API and SDK errors. Use runtime type 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 Analytics's // API operation SampleChannelData for usage and error information. // // Returned Error Codes: // * ErrCodeInvalidRequestException "InvalidRequestException" // The request was not valid. // // * ErrCodeResourceNotFoundException "ResourceNotFoundException" // A resource with the specified name could not be found. // // * ErrCodeInternalFailureException "InternalFailureException" // There was an internal failure. // // * ErrCodeServiceUnavailableException "ServiceUnavailableException" // The service is temporarily unavailable. // // * ErrCodeThrottlingException "ThrottlingException" // The request was denied due to request throttling. // // See also, https://docs.aws.amazon.com/goto/WebAPI/iotanalytics-2017-11-27/SampleChannelData func (c *IoTAnalytics) SampleChannelData(input *SampleChannelDataInput) (*SampleChannelDataOutput, error) { req, out := c.SampleChannelDataRequest(input) return out, req.Send() } // SampleChannelDataWithContext is the same as SampleChannelData with the addition of // the ability to pass a context and additional request options. // // See SampleChannelData for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *IoTAnalytics) SampleChannelDataWithContext(ctx aws.Context, input *SampleChannelDataInput, opts ...request.Option) (*SampleChannelDataOutput, error) { req, out := c.SampleChannelDataRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opStartPipelineReprocessing = "StartPipelineReprocessing" // StartPipelineReprocessingRequest generates a "aws/request.Request" representing the // client's request for the StartPipelineReprocessing operation. The "output" return // value will be populated with the request's response once the request completes // successfuly. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See StartPipelineReprocessing for more information on using the StartPipelineReprocessing // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the StartPipelineReprocessingRequest method. // req, resp := client.StartPipelineReprocessingRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/iotanalytics-2017-11-27/StartPipelineReprocessing func (c *IoTAnalytics) StartPipelineReprocessingRequest(input *StartPipelineReprocessingInput) (req *request.Request, output *StartPipelineReprocessingOutput) { op := &request.Operation{ Name: opStartPipelineReprocessing, HTTPMethod: "POST", HTTPPath: "/pipelines/{pipelineName}/reprocessing", } if input == nil { input = &StartPipelineReprocessingInput{} } output = &StartPipelineReprocessingOutput{} req = c.newRequest(op, input, output) return } // StartPipelineReprocessing API operation for AWS IoT Analytics. // // Starts the reprocessing of raw message data through 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 IoT Analytics's // API operation StartPipelineReprocessing for usage and error information. // // Returned Error Codes: // * ErrCodeResourceNotFoundException "ResourceNotFoundException" // A resource with the specified name could not be found. // // * ErrCodeResourceAlreadyExistsException "ResourceAlreadyExistsException" // A resource with the same name already exists. // // * ErrCodeInvalidRequestException "InvalidRequestException" // The request was not valid. // // * ErrCodeInternalFailureException "InternalFailureException" // There was an internal failure. // // * ErrCodeServiceUnavailableException "ServiceUnavailableException" // The service is temporarily unavailable. // // * ErrCodeThrottlingException "ThrottlingException" // The request was denied due to request throttling. // // See also, https://docs.aws.amazon.com/goto/WebAPI/iotanalytics-2017-11-27/StartPipelineReprocessing func (c *IoTAnalytics) StartPipelineReprocessing(input *StartPipelineReprocessingInput) (*StartPipelineReprocessingOutput, error) { req, out := c.StartPipelineReprocessingRequest(input) return out, req.Send() } // StartPipelineReprocessingWithContext is the same as StartPipelineReprocessing with the addition of // the ability to pass a context and additional request options. // // See StartPipelineReprocessing for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *IoTAnalytics) StartPipelineReprocessingWithContext(ctx aws.Context, input *StartPipelineReprocessingInput, opts ...request.Option) (*StartPipelineReprocessingOutput, error) { req, out := c.StartPipelineReprocessingRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opUpdateChannel = "UpdateChannel" // UpdateChannelRequest generates a "aws/request.Request" representing the // client's request for the UpdateChannel operation. The "output" return // value will be populated with the request's response once the request completes // successfuly. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See UpdateChannel for more information on using the UpdateChannel // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the UpdateChannelRequest method. // req, resp := client.UpdateChannelRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/iotanalytics-2017-11-27/UpdateChannel func (c *IoTAnalytics) UpdateChannelRequest(input *UpdateChannelInput) (req *request.Request, output *UpdateChannelOutput) { op := &request.Operation{ Name: opUpdateChannel, HTTPMethod: "PUT", HTTPPath: "/channels/{channelName}", } if input == nil { input = &UpdateChannelInput{} } output = &UpdateChannelOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) return } // UpdateChannel API operation for AWS IoT Analytics. // // Updates the settings of a channel. // // Returns awserr.Error for service API and SDK errors. Use runtime type 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 Analytics's // API operation UpdateChannel for usage and error information. // // Returned Error Codes: // * ErrCodeInvalidRequestException "InvalidRequestException" // The request was not valid. // // * ErrCodeResourceNotFoundException "ResourceNotFoundException" // A resource with the specified name could not be found. // // * ErrCodeInternalFailureException "InternalFailureException" // There was an internal failure. // // * ErrCodeServiceUnavailableException "ServiceUnavailableException" // The service is temporarily unavailable. // // * ErrCodeThrottlingException "ThrottlingException" // The request was denied due to request throttling. // // See also, https://docs.aws.amazon.com/goto/WebAPI/iotanalytics-2017-11-27/UpdateChannel func (c *IoTAnalytics) UpdateChannel(input *UpdateChannelInput) (*UpdateChannelOutput, error) { req, out := c.UpdateChannelRequest(input) return out, req.Send() } // UpdateChannelWithContext is the same as UpdateChannel with the addition of // the ability to pass a context and additional request options. // // See UpdateChannel for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *IoTAnalytics) UpdateChannelWithContext(ctx aws.Context, input *UpdateChannelInput, opts ...request.Option) (*UpdateChannelOutput, error) { req, out := c.UpdateChannelRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opUpdateDataset = "UpdateDataset" // UpdateDatasetRequest generates a "aws/request.Request" representing the // client's request for the UpdateDataset operation. The "output" return // value will be populated with the request's response once the request completes // successfuly. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See UpdateDataset for more information on using the UpdateDataset // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the UpdateDatasetRequest method. // req, resp := client.UpdateDatasetRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/iotanalytics-2017-11-27/UpdateDataset func (c *IoTAnalytics) UpdateDatasetRequest(input *UpdateDatasetInput) (req *request.Request, output *UpdateDatasetOutput) { op := &request.Operation{ Name: opUpdateDataset, HTTPMethod: "PUT", HTTPPath: "/datasets/{datasetName}", } if input == nil { input = &UpdateDatasetInput{} } output = &UpdateDatasetOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) return } // UpdateDataset API operation for AWS IoT Analytics. // // Updates the settings of a data 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 IoT Analytics's // API operation UpdateDataset for usage and error information. // // Returned Error Codes: // * ErrCodeInvalidRequestException "InvalidRequestException" // The request was not valid. // // * ErrCodeResourceNotFoundException "ResourceNotFoundException" // A resource with the specified name could not be found. // // * ErrCodeInternalFailureException "InternalFailureException" // There was an internal failure. // // * ErrCodeServiceUnavailableException "ServiceUnavailableException" // The service is temporarily unavailable. // // * ErrCodeThrottlingException "ThrottlingException" // The request was denied due to request throttling. // // See also, https://docs.aws.amazon.com/goto/WebAPI/iotanalytics-2017-11-27/UpdateDataset func (c *IoTAnalytics) UpdateDataset(input *UpdateDatasetInput) (*UpdateDatasetOutput, error) { req, out := c.UpdateDatasetRequest(input) return out, req.Send() } // UpdateDatasetWithContext is the same as UpdateDataset with the addition of // the ability to pass a context and additional request options. // // See UpdateDataset for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *IoTAnalytics) UpdateDatasetWithContext(ctx aws.Context, input *UpdateDatasetInput, opts ...request.Option) (*UpdateDatasetOutput, error) { req, out := c.UpdateDatasetRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opUpdateDatastore = "UpdateDatastore" // UpdateDatastoreRequest generates a "aws/request.Request" representing the // client's request for the UpdateDatastore operation. The "output" return // value will be populated with the request's response once the request completes // successfuly. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See UpdateDatastore for more information on using the UpdateDatastore // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the UpdateDatastoreRequest method. // req, resp := client.UpdateDatastoreRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/iotanalytics-2017-11-27/UpdateDatastore func (c *IoTAnalytics) UpdateDatastoreRequest(input *UpdateDatastoreInput) (req *request.Request, output *UpdateDatastoreOutput) { op := &request.Operation{ Name: opUpdateDatastore, HTTPMethod: "PUT", HTTPPath: "/datastores/{datastoreName}", } if input == nil { input = &UpdateDatastoreInput{} } output = &UpdateDatastoreOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) return } // UpdateDatastore API operation for AWS IoT Analytics. // // Updates the settings of a data store. // // Returns awserr.Error for service API and SDK errors. Use runtime type 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 Analytics's // API operation UpdateDatastore for usage and error information. // // Returned Error Codes: // * ErrCodeInvalidRequestException "InvalidRequestException" // The request was not valid. // // * ErrCodeResourceNotFoundException "ResourceNotFoundException" // A resource with the specified name could not be found. // // * ErrCodeInternalFailureException "InternalFailureException" // There was an internal failure. // // * ErrCodeServiceUnavailableException "ServiceUnavailableException" // The service is temporarily unavailable. // // * ErrCodeThrottlingException "ThrottlingException" // The request was denied due to request throttling. // // See also, https://docs.aws.amazon.com/goto/WebAPI/iotanalytics-2017-11-27/UpdateDatastore func (c *IoTAnalytics) UpdateDatastore(input *UpdateDatastoreInput) (*UpdateDatastoreOutput, error) { req, out := c.UpdateDatastoreRequest(input) return out, req.Send() } // UpdateDatastoreWithContext is the same as UpdateDatastore with the addition of // the ability to pass a context and additional request options. // // See UpdateDatastore for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *IoTAnalytics) UpdateDatastoreWithContext(ctx aws.Context, input *UpdateDatastoreInput, opts ...request.Option) (*UpdateDatastoreOutput, error) { req, out := c.UpdateDatastoreRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opUpdatePipeline = "UpdatePipeline" // UpdatePipelineRequest generates a "aws/request.Request" representing the // client's request for the UpdatePipeline operation. The "output" return // value will be populated with the request's response once the request completes // successfuly. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See UpdatePipeline for more information on using the UpdatePipeline // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the UpdatePipelineRequest method. // req, resp := client.UpdatePipelineRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/iotanalytics-2017-11-27/UpdatePipeline func (c *IoTAnalytics) UpdatePipelineRequest(input *UpdatePipelineInput) (req *request.Request, output *UpdatePipelineOutput) { op := &request.Operation{ Name: opUpdatePipeline, HTTPMethod: "PUT", HTTPPath: "/pipelines/{pipelineName}", } if input == nil { input = &UpdatePipelineInput{} } output = &UpdatePipelineOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) return } // UpdatePipeline API operation for AWS IoT Analytics. // // Updates the settings of 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 IoT Analytics's // API operation UpdatePipeline for usage and error information. // // Returned Error Codes: // * ErrCodeInvalidRequestException "InvalidRequestException" // The request was not valid. // // * ErrCodeResourceNotFoundException "ResourceNotFoundException" // A resource with the specified name could not be found. // // * ErrCodeInternalFailureException "InternalFailureException" // There was an internal failure. // // * ErrCodeServiceUnavailableException "ServiceUnavailableException" // The service is temporarily unavailable. // // * ErrCodeThrottlingException "ThrottlingException" // The request was denied due to request throttling. // // * ErrCodeLimitExceededException "LimitExceededException" // The command caused an internal limit to be exceeded. // // See also, https://docs.aws.amazon.com/goto/WebAPI/iotanalytics-2017-11-27/UpdatePipeline func (c *IoTAnalytics) UpdatePipeline(input *UpdatePipelineInput) (*UpdatePipelineOutput, error) { req, out := c.UpdatePipelineRequest(input) return out, req.Send() } // UpdatePipelineWithContext is the same as UpdatePipeline with the addition of // the ability to pass a context and additional request options. // // See UpdatePipeline for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *IoTAnalytics) UpdatePipelineWithContext(ctx aws.Context, input *UpdatePipelineInput, opts ...request.Option) (*UpdatePipelineOutput, error) { req, out := c.UpdatePipelineRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } // An activity that adds other attributes based on existing attributes in the // message. type AddAttributesActivity struct { _ struct{} `type:"structure"` // A list of 1-50 "AttributeNameMapping" objects that map an existing attribute // to a new attribute. // // The existing attributes remain in the message, so if you want to remove the // originals, use "RemoveAttributeActivity". // // Attributes is a required field Attributes map[string]*string `locationName:"attributes" min:"1" type:"map" required:"true"` // The name of the 'addAttributes' activity. // // Name is a required field Name *string `locationName:"name" min:"1" type:"string" required:"true"` // The next activity in the pipeline. Next *string `locationName:"next" min:"1" type:"string"` } // String returns the string representation func (s AddAttributesActivity) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s AddAttributesActivity) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *AddAttributesActivity) Validate() error { invalidParams := request.ErrInvalidParams{Context: "AddAttributesActivity"} if s.Attributes == nil { invalidParams.Add(request.NewErrParamRequired("Attributes")) } if s.Attributes != nil && len(s.Attributes) < 1 { invalidParams.Add(request.NewErrParamMinLen("Attributes", 1)) } if s.Name == nil { invalidParams.Add(request.NewErrParamRequired("Name")) } if s.Name != nil && len(*s.Name) < 1 { invalidParams.Add(request.NewErrParamMinLen("Name", 1)) } if s.Next != nil && len(*s.Next) < 1 { invalidParams.Add(request.NewErrParamMinLen("Next", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetAttributes sets the Attributes field's value. func (s *AddAttributesActivity) SetAttributes(v map[string]*string) *AddAttributesActivity { s.Attributes = v return s } // SetName sets the Name field's value. func (s *AddAttributesActivity) SetName(v string) *AddAttributesActivity { s.Name = &v return s } // SetNext sets the Next field's value. func (s *AddAttributesActivity) SetNext(v string) *AddAttributesActivity { s.Next = &v return s } // Contains informations about errors. type BatchPutMessageErrorEntry struct { _ struct{} `type:"structure"` // The code associated with the error. ErrorCode *string `locationName:"errorCode" type:"string"` // The message associated with the error. ErrorMessage *string `locationName:"errorMessage" type:"string"` // The ID of the message that caused the error. (See the value corresponding // to the "messageId" key in the message object.) MessageId *string `locationName:"messageId" min:"1" type:"string"` } // String returns the string representation func (s BatchPutMessageErrorEntry) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s BatchPutMessageErrorEntry) GoString() string { return s.String() } // SetErrorCode sets the ErrorCode field's value. func (s *BatchPutMessageErrorEntry) SetErrorCode(v string) *BatchPutMessageErrorEntry { s.ErrorCode = &v return s } // SetErrorMessage sets the ErrorMessage field's value. func (s *BatchPutMessageErrorEntry) SetErrorMessage(v string) *BatchPutMessageErrorEntry { s.ErrorMessage = &v return s } // SetMessageId sets the MessageId field's value. func (s *BatchPutMessageErrorEntry) SetMessageId(v string) *BatchPutMessageErrorEntry { s.MessageId = &v return s } type BatchPutMessageInput struct { _ struct{} `type:"structure"` // The name of the channel where the messages are sent. // // ChannelName is a required field ChannelName *string `locationName:"channelName" min:"1" type:"string" required:"true"` // The list of messages to be sent. Each message has format: '{ "messageId": // "string", "payload": "string"}'. // // Messages is a required field Messages []*Message `locationName:"messages" type:"list" required:"true"` } // String returns the string representation func (s BatchPutMessageInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s BatchPutMessageInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *BatchPutMessageInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "BatchPutMessageInput"} if s.ChannelName == nil { invalidParams.Add(request.NewErrParamRequired("ChannelName")) } if s.ChannelName != nil && len(*s.ChannelName) < 1 { invalidParams.Add(request.NewErrParamMinLen("ChannelName", 1)) } if s.Messages == nil { invalidParams.Add(request.NewErrParamRequired("Messages")) } if s.Messages != nil { for i, v := range s.Messages { if v == nil { continue } if err := v.Validate(); err != nil { invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Messages", i), err.(request.ErrInvalidParams)) } } } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetChannelName sets the ChannelName field's value. func (s *BatchPutMessageInput) SetChannelName(v string) *BatchPutMessageInput { s.ChannelName = &v return s } // SetMessages sets the Messages field's value. func (s *BatchPutMessageInput) SetMessages(v []*Message) *BatchPutMessageInput { s.Messages = v return s } type BatchPutMessageOutput struct { _ struct{} `type:"structure"` // A list of any errors encountered when sending the messages to the channel. BatchPutMessageErrorEntries []*BatchPutMessageErrorEntry `locationName:"batchPutMessageErrorEntries" type:"list"` } // String returns the string representation func (s BatchPutMessageOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s BatchPutMessageOutput) GoString() string { return s.String() } // SetBatchPutMessageErrorEntries sets the BatchPutMessageErrorEntries field's value. func (s *BatchPutMessageOutput) SetBatchPutMessageErrorEntries(v []*BatchPutMessageErrorEntry) *BatchPutMessageOutput { s.BatchPutMessageErrorEntries = v return s } type CancelPipelineReprocessingInput struct { _ struct{} `type:"structure"` // The name of pipeline for which data reprocessing is canceled. // // PipelineName is a required field PipelineName *string `location:"uri" locationName:"pipelineName" min:"1" type:"string" required:"true"` // The ID of the reprocessing task (returned by "StartPipelineReprocessing"). // // ReprocessingId is a required field ReprocessingId *string `location:"uri" locationName:"reprocessingId" type:"string" required:"true"` } // String returns the string representation func (s CancelPipelineReprocessingInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s CancelPipelineReprocessingInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *CancelPipelineReprocessingInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "CancelPipelineReprocessingInput"} if s.PipelineName == nil { invalidParams.Add(request.NewErrParamRequired("PipelineName")) } if s.PipelineName != nil && len(*s.PipelineName) < 1 { invalidParams.Add(request.NewErrParamMinLen("PipelineName", 1)) } if s.ReprocessingId == nil { invalidParams.Add(request.NewErrParamRequired("ReprocessingId")) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetPipelineName sets the PipelineName field's value. func (s *CancelPipelineReprocessingInput) SetPipelineName(v string) *CancelPipelineReprocessingInput { s.PipelineName = &v return s } // SetReprocessingId sets the ReprocessingId field's value. func (s *CancelPipelineReprocessingInput) SetReprocessingId(v string) *CancelPipelineReprocessingInput { s.ReprocessingId = &v return s } type CancelPipelineReprocessingOutput struct { _ struct{} `type:"structure"` } // String returns the string representation func (s CancelPipelineReprocessingOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s CancelPipelineReprocessingOutput) GoString() string { return s.String() } // A collection of data from an MQTT topic. Channels archive the raw, unprocessed // messages before publishing the data to a pipeline. type Channel struct { _ struct{} `type:"structure"` // The ARN of the channel. Arn *string `locationName:"arn" type:"string"` // When the channel was created. CreationTime *time.Time `locationName:"creationTime" type:"timestamp" timestampFormat:"unix"` // When the channel was last updated. LastUpdateTime *time.Time `locationName:"lastUpdateTime" type:"timestamp" timestampFormat:"unix"` // The name of the channel. Name *string `locationName:"name" min:"1" type:"string"` // How long, in days, message data is kept for the channel. RetentionPeriod *RetentionPeriod `locationName:"retentionPeriod" type:"structure"` // The status of the channel. Status *string `locationName:"status" type:"string" enum:"ChannelStatus"` } // String returns the string representation func (s Channel) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s Channel) GoString() string { return s.String() } // SetArn sets the Arn field's value. func (s *Channel) SetArn(v string) *Channel { s.Arn = &v return s } // SetCreationTime sets the CreationTime field's value. func (s *Channel) SetCreationTime(v time.Time) *Channel { s.CreationTime = &v return s } // SetLastUpdateTime sets the LastUpdateTime field's value. func (s *Channel) SetLastUpdateTime(v time.Time) *Channel { s.LastUpdateTime = &v return s } // SetName sets the Name field's value. func (s *Channel) SetName(v string) *Channel { s.Name = &v return s } // SetRetentionPeriod sets the RetentionPeriod field's value. func (s *Channel) SetRetentionPeriod(v *RetentionPeriod) *Channel { s.RetentionPeriod = v return s } // SetStatus sets the Status field's value. func (s *Channel) SetStatus(v string) *Channel { s.Status = &v return s } // The activity that determines the source of the messages to be processed. type ChannelActivity struct { _ struct{} `type:"structure"` // The name of the channel from which the messages are processed. // // ChannelName is a required field ChannelName *string `locationName:"channelName" min:"1" type:"string" required:"true"` // The name of the 'channel' activity. // // Name is a required field Name *string `locationName:"name" min:"1" type:"string" required:"true"` // The next activity in the pipeline. Next *string `locationName:"next" min:"1" type:"string"` } // String returns the string representation func (s ChannelActivity) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ChannelActivity) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *ChannelActivity) Validate() error { invalidParams := request.ErrInvalidParams{Context: "ChannelActivity"} if s.ChannelName == nil { invalidParams.Add(request.NewErrParamRequired("ChannelName")) } if s.ChannelName != nil && len(*s.ChannelName) < 1 { invalidParams.Add(request.NewErrParamMinLen("ChannelName", 1)) } if s.Name == nil { invalidParams.Add(request.NewErrParamRequired("Name")) } if s.Name != nil && len(*s.Name) < 1 { invalidParams.Add(request.NewErrParamMinLen("Name", 1)) } if s.Next != nil && len(*s.Next) < 1 { invalidParams.Add(request.NewErrParamMinLen("Next", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetChannelName sets the ChannelName field's value. func (s *ChannelActivity) SetChannelName(v string) *ChannelActivity { s.ChannelName = &v return s } // SetName sets the Name field's value. func (s *ChannelActivity) SetName(v string) *ChannelActivity { s.Name = &v return s } // SetNext sets the Next field's value. func (s *ChannelActivity) SetNext(v string) *ChannelActivity { s.Next = &v return s } // A summary of information about a channel. type ChannelSummary struct { _ struct{} `type:"structure"` // The name of the channel. ChannelName *string `locationName:"channelName" min:"1" type:"string"` // When the channel was created. CreationTime *time.Time `locationName:"creationTime" type:"timestamp" timestampFormat:"unix"` // The last time the channel was updated. LastUpdateTime *time.Time `locationName:"lastUpdateTime" type:"timestamp" timestampFormat:"unix"` // The status of the channel. Status *string `locationName:"status" type:"string" enum:"ChannelStatus"` } // String returns the string representation func (s ChannelSummary) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ChannelSummary) GoString() string { return s.String() } // SetChannelName sets the ChannelName field's value. func (s *ChannelSummary) SetChannelName(v string) *ChannelSummary { s.ChannelName = &v return s } // SetCreationTime sets the CreationTime field's value. func (s *ChannelSummary) SetCreationTime(v time.Time) *ChannelSummary { s.CreationTime = &v return s } // SetLastUpdateTime sets the LastUpdateTime field's value. func (s *ChannelSummary) SetLastUpdateTime(v time.Time) *ChannelSummary { s.LastUpdateTime = &v return s } // SetStatus sets the Status field's value. func (s *ChannelSummary) SetStatus(v string) *ChannelSummary { s.Status = &v return s } type CreateChannelInput struct { _ struct{} `type:"structure"` // The name of the channel. // // ChannelName is a required field ChannelName *string `locationName:"channelName" min:"1" type:"string" required:"true"` // How long, in days, message data is kept for the channel. RetentionPeriod *RetentionPeriod `locationName:"retentionPeriod" type:"structure"` } // String returns the string representation func (s CreateChannelInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s CreateChannelInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *CreateChannelInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "CreateChannelInput"} if s.ChannelName == nil { invalidParams.Add(request.NewErrParamRequired("ChannelName")) } if s.ChannelName != nil && len(*s.ChannelName) < 1 { invalidParams.Add(request.NewErrParamMinLen("ChannelName", 1)) } if s.RetentionPeriod != nil { if err := s.RetentionPeriod.Validate(); err != nil { invalidParams.AddNested("RetentionPeriod", err.(request.ErrInvalidParams)) } } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetChannelName sets the ChannelName field's value. func (s *CreateChannelInput) SetChannelName(v string) *CreateChannelInput { s.ChannelName = &v return s } // SetRetentionPeriod sets the RetentionPeriod field's value. func (s *CreateChannelInput) SetRetentionPeriod(v *RetentionPeriod) *CreateChannelInput { s.RetentionPeriod = v return s } type CreateChannelOutput struct { _ struct{} `type:"structure"` // The ARN of the channel. ChannelArn *string `locationName:"channelArn" type:"string"` // The name of the channel. ChannelName *string `locationName:"channelName" min:"1" type:"string"` // How long, in days, message data is kept for the channel. RetentionPeriod *RetentionPeriod `locationName:"retentionPeriod" type:"structure"` } // String returns the string representation func (s CreateChannelOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s CreateChannelOutput) GoString() string { return s.String() } // SetChannelArn sets the ChannelArn field's value. func (s *CreateChannelOutput) SetChannelArn(v string) *CreateChannelOutput { s.ChannelArn = &v return s } // SetChannelName sets the ChannelName field's value. func (s *CreateChannelOutput) SetChannelName(v string) *CreateChannelOutput { s.ChannelName = &v return s } // SetRetentionPeriod sets the RetentionPeriod field's value. func (s *CreateChannelOutput) SetRetentionPeriod(v *RetentionPeriod) *CreateChannelOutput { s.RetentionPeriod = v return s } type CreateDatasetContentInput struct { _ struct{} `type:"structure"` // The name of the data set. // // DatasetName is a required field DatasetName *string `location:"uri" locationName:"datasetName" min:"1" type:"string" required:"true"` } // String returns the string representation func (s CreateDatasetContentInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s CreateDatasetContentInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *CreateDatasetContentInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "CreateDatasetContentInput"} if s.DatasetName == nil { invalidParams.Add(request.NewErrParamRequired("DatasetName")) } if s.DatasetName != nil && len(*s.DatasetName) < 1 { invalidParams.Add(request.NewErrParamMinLen("DatasetName", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetDatasetName sets the DatasetName field's value. func (s *CreateDatasetContentInput) SetDatasetName(v string) *CreateDatasetContentInput { s.DatasetName = &v return s } type CreateDatasetContentOutput struct { _ struct{} `type:"structure"` } // String returns the string representation func (s CreateDatasetContentOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s CreateDatasetContentOutput) GoString() string { return s.String() } type CreateDatasetInput struct { _ struct{} `type:"structure"` // A list of actions that create the data set. Only one action is supported // at this time. // // Actions is a required field Actions []*DatasetAction `locationName:"actions" min:"1" type:"list" required:"true"` // The name of the data set. // // DatasetName is a required field DatasetName *string `locationName:"datasetName" min:"1" type:"string" required:"true"` // A list of triggers. A trigger causes data set content to be populated at // a specified time or time interval. The list of triggers can be empty or contain // up to five DataSetTrigger objects. Triggers []*DatasetTrigger `locationName:"triggers" type:"list"` } // String returns the string representation func (s CreateDatasetInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s CreateDatasetInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *CreateDatasetInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "CreateDatasetInput"} if s.Actions == nil { invalidParams.Add(request.NewErrParamRequired("Actions")) } if s.Actions != nil && len(s.Actions) < 1 { invalidParams.Add(request.NewErrParamMinLen("Actions", 1)) } if s.DatasetName == nil { invalidParams.Add(request.NewErrParamRequired("DatasetName")) } if s.DatasetName != nil && len(*s.DatasetName) < 1 { invalidParams.Add(request.NewErrParamMinLen("DatasetName", 1)) } if s.Actions != nil { for i, v := range s.Actions { if v == nil { continue } if err := v.Validate(); err != nil { invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Actions", i), err.(request.ErrInvalidParams)) } } } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetActions sets the Actions field's value. func (s *CreateDatasetInput) SetActions(v []*DatasetAction) *CreateDatasetInput { s.Actions = v return s } // SetDatasetName sets the DatasetName field's value. func (s *CreateDatasetInput) SetDatasetName(v string) *CreateDatasetInput { s.DatasetName = &v return s } // SetTriggers sets the Triggers field's value. func (s *CreateDatasetInput) SetTriggers(v []*DatasetTrigger) *CreateDatasetInput { s.Triggers = v return s } type CreateDatasetOutput struct { _ struct{} `type:"structure"` // The ARN of the data set. DatasetArn *string `locationName:"datasetArn" type:"string"` // The name of the data set. DatasetName *string `locationName:"datasetName" min:"1" type:"string"` } // String returns the string representation func (s CreateDatasetOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s CreateDatasetOutput) GoString() string { return s.String() } // SetDatasetArn sets the DatasetArn field's value. func (s *CreateDatasetOutput) SetDatasetArn(v string) *CreateDatasetOutput { s.DatasetArn = &v return s } // SetDatasetName sets the DatasetName field's value. func (s *CreateDatasetOutput) SetDatasetName(v string) *CreateDatasetOutput { s.DatasetName = &v return s } type CreateDatastoreInput struct { _ struct{} `type:"structure"` // The name of the data store. // // DatastoreName is a required field DatastoreName *string `locationName:"datastoreName" min:"1" type:"string" required:"true"` // How long, in days, message data is kept for the data store. RetentionPeriod *RetentionPeriod `locationName:"retentionPeriod" type:"structure"` } // String returns the string representation func (s CreateDatastoreInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s CreateDatastoreInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *CreateDatastoreInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "CreateDatastoreInput"} if s.DatastoreName == nil { invalidParams.Add(request.NewErrParamRequired("DatastoreName")) } if s.DatastoreName != nil && len(*s.DatastoreName) < 1 { invalidParams.Add(request.NewErrParamMinLen("DatastoreName", 1)) } if s.RetentionPeriod != nil { if err := s.RetentionPeriod.Validate(); err != nil { invalidParams.AddNested("RetentionPeriod", err.(request.ErrInvalidParams)) } } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetDatastoreName sets the DatastoreName field's value. func (s *CreateDatastoreInput) SetDatastoreName(v string) *CreateDatastoreInput { s.DatastoreName = &v return s } // SetRetentionPeriod sets the RetentionPeriod field's value. func (s *CreateDatastoreInput) SetRetentionPeriod(v *RetentionPeriod) *CreateDatastoreInput { s.RetentionPeriod = v return s } type CreateDatastoreOutput struct { _ struct{} `type:"structure"` // The ARN of the data store. DatastoreArn *string `locationName:"datastoreArn" type:"string"` // The name of the data store. DatastoreName *string `locationName:"datastoreName" min:"1" type:"string"` // How long, in days, message data is kept for the data store. RetentionPeriod *RetentionPeriod `locationName:"retentionPeriod" type:"structure"` } // String returns the string representation func (s CreateDatastoreOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s CreateDatastoreOutput) GoString() string { return s.String() } // SetDatastoreArn sets the DatastoreArn field's value. func (s *CreateDatastoreOutput) SetDatastoreArn(v string) *CreateDatastoreOutput { s.DatastoreArn = &v return s } // SetDatastoreName sets the DatastoreName field's value. func (s *CreateDatastoreOutput) SetDatastoreName(v string) *CreateDatastoreOutput { s.DatastoreName = &v return s } // SetRetentionPeriod sets the RetentionPeriod field's value. func (s *CreateDatastoreOutput) SetRetentionPeriod(v *RetentionPeriod) *CreateDatastoreOutput { s.RetentionPeriod = v return s } type CreatePipelineInput struct { _ struct{} `type:"structure"` // A list of pipeline activities. // // The list can be 1-25 PipelineActivity objects. Activities perform transformations // on your messages, such as removing, renaming, or adding message attributes; // filtering messages based on attribute values; invoking your Lambda functions // on messages for advanced processing; or performing mathematical transformations // to normalize device data. // // PipelineActivities is a required field PipelineActivities []*PipelineActivity `locationName:"pipelineActivities" min:"1" type:"list" required:"true"` // The name of the pipeline. // // PipelineName is a required field PipelineName *string `locationName:"pipelineName" min:"1" type:"string" required:"true"` } // String returns the string representation func (s CreatePipelineInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s CreatePipelineInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *CreatePipelineInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "CreatePipelineInput"} if s.PipelineActivities == nil { invalidParams.Add(request.NewErrParamRequired("PipelineActivities")) } if s.PipelineActivities != nil && len(s.PipelineActivities) < 1 { invalidParams.Add(request.NewErrParamMinLen("PipelineActivities", 1)) } if s.PipelineName == nil { invalidParams.Add(request.NewErrParamRequired("PipelineName")) } if s.PipelineName != nil && len(*s.PipelineName) < 1 { invalidParams.Add(request.NewErrParamMinLen("PipelineName", 1)) } if s.PipelineActivities != nil { for i, v := range s.PipelineActivities { if v == nil { continue } if err := v.Validate(); err != nil { invalidParams.AddNested(fmt.Sprintf("%s[%v]", "PipelineActivities", i), err.(request.ErrInvalidParams)) } } } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetPipelineActivities sets the PipelineActivities field's value. func (s *CreatePipelineInput) SetPipelineActivities(v []*PipelineActivity) *CreatePipelineInput { s.PipelineActivities = v return s } // SetPipelineName sets the PipelineName field's value. func (s *CreatePipelineInput) SetPipelineName(v string) *CreatePipelineInput { s.PipelineName = &v return s } type CreatePipelineOutput struct { _ struct{} `type:"structure"` // The ARN of the pipeline. PipelineArn *string `locationName:"pipelineArn" type:"string"` // The name of the pipeline. PipelineName *string `locationName:"pipelineName" min:"1" type:"string"` } // String returns the string representation func (s CreatePipelineOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s CreatePipelineOutput) GoString() string { return s.String() } // SetPipelineArn sets the PipelineArn field's value. func (s *CreatePipelineOutput) SetPipelineArn(v string) *CreatePipelineOutput { s.PipelineArn = &v return s } // SetPipelineName sets the PipelineName field's value. func (s *CreatePipelineOutput) SetPipelineName(v string) *CreatePipelineOutput { s.PipelineName = &v return s } // Information about a data set. type Dataset struct { _ struct{} `type:"structure"` // The "DatasetAction" objects that create the data set. Actions []*DatasetAction `locationName:"actions" min:"1" type:"list"` // The ARN of the data set. Arn *string `locationName:"arn" type:"string"` // When the data set was created. CreationTime *time.Time `locationName:"creationTime" type:"timestamp" timestampFormat:"unix"` // The last time the data set was updated. LastUpdateTime *time.Time `locationName:"lastUpdateTime" type:"timestamp" timestampFormat:"unix"` // The name of the data set. Name *string `locationName:"name" min:"1" type:"string"` // The status of the data set. Status *string `locationName:"status" type:"string" enum:"DatasetStatus"` // The "DatasetTrigger" objects that specify when the data set is automatically // updated. Triggers []*DatasetTrigger `locationName:"triggers" type:"list"` } // String returns the string representation func (s Dataset) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s Dataset) GoString() string { return s.String() } // SetActions sets the Actions field's value. func (s *Dataset) SetActions(v []*DatasetAction) *Dataset { s.Actions = v return s } // SetArn sets the Arn field's value. func (s *Dataset) SetArn(v string) *Dataset { s.Arn = &v return s } // SetCreationTime sets the CreationTime field's value. func (s *Dataset) SetCreationTime(v time.Time) *Dataset { s.CreationTime = &v return s } // SetLastUpdateTime sets the LastUpdateTime field's value. func (s *Dataset) SetLastUpdateTime(v time.Time) *Dataset { s.LastUpdateTime = &v return s } // SetName sets the Name field's value. func (s *Dataset) SetName(v string) *Dataset { s.Name = &v return s } // SetStatus sets the Status field's value. func (s *Dataset) SetStatus(v string) *Dataset { s.Status = &v return s } // SetTriggers sets the Triggers field's value. func (s *Dataset) SetTriggers(v []*DatasetTrigger) *Dataset { s.Triggers = v return s } // A "DatasetAction" object specifying the query that creates the data set content. type DatasetAction struct { _ struct{} `type:"structure"` // The name of the data set action. ActionName *string `locationName:"actionName" min:"1" type:"string"` // An "SqlQueryDatasetAction" object that contains the SQL query to modify the // message. QueryAction *SqlQueryDatasetAction `locationName:"queryAction" type:"structure"` } // String returns the string representation func (s DatasetAction) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DatasetAction) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *DatasetAction) Validate() error { invalidParams := request.ErrInvalidParams{Context: "DatasetAction"} if s.ActionName != nil && len(*s.ActionName) < 1 { invalidParams.Add(request.NewErrParamMinLen("ActionName", 1)) } if s.QueryAction != nil { if err := s.QueryAction.Validate(); err != nil { invalidParams.AddNested("QueryAction", err.(request.ErrInvalidParams)) } } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetActionName sets the ActionName field's value. func (s *DatasetAction) SetActionName(v string) *DatasetAction { s.ActionName = &v return s } // SetQueryAction sets the QueryAction field's value. func (s *DatasetAction) SetQueryAction(v *SqlQueryDatasetAction) *DatasetAction { s.QueryAction = v return s } // The state of the data set and the reason it is in this state. type DatasetContentStatus struct { _ struct{} `type:"structure"` // The reason the data set is in this state. Reason *string `locationName:"reason" type:"string"` // The state of the data set. Can be one of "CREATING", "SUCCEEDED" or "FAILED". State *string `locationName:"state" type:"string" enum:"DatasetContentState"` } // String returns the string representation func (s DatasetContentStatus) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DatasetContentStatus) GoString() string { return s.String() } // SetReason sets the Reason field's value. func (s *DatasetContentStatus) SetReason(v string) *DatasetContentStatus { s.Reason = &v return s } // SetState sets the State field's value. func (s *DatasetContentStatus) SetState(v string) *DatasetContentStatus { s.State = &v return s } // The reference to a data set entry. type DatasetEntry struct { _ struct{} `type:"structure"` // The pre-signed URI of the data set item. DataURI *string `locationName:"dataURI" type:"string"` // The name of the data set item. EntryName *string `locationName:"entryName" type:"string"` } // String returns the string representation func (s DatasetEntry) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DatasetEntry) GoString() string { return s.String() } // SetDataURI sets the DataURI field's value. func (s *DatasetEntry) SetDataURI(v string) *DatasetEntry { s.DataURI = &v return s } // SetEntryName sets the EntryName field's value. func (s *DatasetEntry) SetEntryName(v string) *DatasetEntry { s.EntryName = &v return s } // A summary of information about a data set. type DatasetSummary struct { _ struct{} `type:"structure"` // The time the data set was created. CreationTime *time.Time `locationName:"creationTime" type:"timestamp" timestampFormat:"unix"` // The name of the data set. DatasetName *string `locationName:"datasetName" min:"1" type:"string"` // The last time the data set was updated. LastUpdateTime *time.Time `locationName:"lastUpdateTime" type:"timestamp" timestampFormat:"unix"` // The status of the data set. Status *string `locationName:"status" type:"string" enum:"DatasetStatus"` } // String returns the string representation func (s DatasetSummary) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DatasetSummary) GoString() string { return s.String() } // SetCreationTime sets the CreationTime field's value. func (s *DatasetSummary) SetCreationTime(v time.Time) *DatasetSummary { s.CreationTime = &v return s } // SetDatasetName sets the DatasetName field's value. func (s *DatasetSummary) SetDatasetName(v string) *DatasetSummary { s.DatasetName = &v return s } // SetLastUpdateTime sets the LastUpdateTime field's value. func (s *DatasetSummary) SetLastUpdateTime(v time.Time) *DatasetSummary { s.LastUpdateTime = &v return s } // SetStatus sets the Status field's value. func (s *DatasetSummary) SetStatus(v string) *DatasetSummary { s.Status = &v return s } // The "DatasetTrigger" that specifies when the data set is automatically updated. type DatasetTrigger struct { _ struct{} `type:"structure"` // The "Schedule" when the trigger is initiated. Schedule *Schedule `locationName:"schedule" type:"structure"` } // String returns the string representation func (s DatasetTrigger) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DatasetTrigger) GoString() string { return s.String() } // SetSchedule sets the Schedule field's value. func (s *DatasetTrigger) SetSchedule(v *Schedule) *DatasetTrigger { s.Schedule = v return s } // Information about a data store. type Datastore struct { _ struct{} `type:"structure"` // The ARN of the data store. Arn *string `locationName:"arn" type:"string"` // When the data store was created. CreationTime *time.Time `locationName:"creationTime" type:"timestamp" timestampFormat:"unix"` // The last time the data store was updated. LastUpdateTime *time.Time `locationName:"lastUpdateTime" type:"timestamp" timestampFormat:"unix"` // The name of the data store. Name *string `locationName:"name" min:"1" type:"string"` // How long, in days, message data is kept for the data store. RetentionPeriod *RetentionPeriod `locationName:"retentionPeriod" type:"structure"` // The status of a data store: // // CREATINGThe data store is being created. // // ACTIVEThe data store has been created and can be used. // // DELETINGThe data store is being deleted. Status *string `locationName:"status" type:"string" enum:"DatastoreStatus"` } // String returns the string representation func (s Datastore) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s Datastore) GoString() string { return s.String() } // SetArn sets the Arn field's value. func (s *Datastore) SetArn(v string) *Datastore { s.Arn = &v return s } // SetCreationTime sets the CreationTime field's value. func (s *Datastore) SetCreationTime(v time.Time) *Datastore { s.CreationTime = &v return s } // SetLastUpdateTime sets the LastUpdateTime field's value. func (s *Datastore) SetLastUpdateTime(v time.Time) *Datastore { s.LastUpdateTime = &v return s } // SetName sets the Name field's value. func (s *Datastore) SetName(v string) *Datastore { s.Name = &v return s } // SetRetentionPeriod sets the RetentionPeriod field's value. func (s *Datastore) SetRetentionPeriod(v *RetentionPeriod) *Datastore { s.RetentionPeriod = v return s } // SetStatus sets the Status field's value. func (s *Datastore) SetStatus(v string) *Datastore { s.Status = &v return s } // The 'datastore' activity that specifies where to store the processed data. type DatastoreActivity struct { _ struct{} `type:"structure"` // The name of the data store where processed messages are stored. // // DatastoreName is a required field DatastoreName *string `locationName:"datastoreName" min:"1" type:"string" required:"true"` // The name of the 'datastore' activity. // // Name is a required field Name *string `locationName:"name" min:"1" type:"string" required:"true"` } // String returns the string representation func (s DatastoreActivity) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DatastoreActivity) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *DatastoreActivity) Validate() error { invalidParams := request.ErrInvalidParams{Context: "DatastoreActivity"} if s.DatastoreName == nil { invalidParams.Add(request.NewErrParamRequired("DatastoreName")) } if s.DatastoreName != nil && len(*s.DatastoreName) < 1 { invalidParams.Add(request.NewErrParamMinLen("DatastoreName", 1)) } if s.Name == nil { invalidParams.Add(request.NewErrParamRequired("Name")) } if s.Name != nil && len(*s.Name) < 1 { invalidParams.Add(request.NewErrParamMinLen("Name", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetDatastoreName sets the DatastoreName field's value. func (s *DatastoreActivity) SetDatastoreName(v string) *DatastoreActivity { s.DatastoreName = &v return s } // SetName sets the Name field's value. func (s *DatastoreActivity) SetName(v string) *DatastoreActivity { s.Name = &v return s } // A summary of information about a data store. type DatastoreSummary struct { _ struct{} `type:"structure"` // When the data store was created. CreationTime *time.Time `locationName:"creationTime" type:"timestamp" timestampFormat:"unix"` // The name of the data store. DatastoreName *string `locationName:"datastoreName" min:"1" type:"string"` // The last time the data store was updated. LastUpdateTime *time.Time `locationName:"lastUpdateTime" type:"timestamp" timestampFormat:"unix"` // The status of the data store. Status *string `locationName:"status" type:"string" enum:"DatastoreStatus"` } // String returns the string representation func (s DatastoreSummary) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DatastoreSummary) GoString() string { return s.String() } // SetCreationTime sets the CreationTime field's value. func (s *DatastoreSummary) SetCreationTime(v time.Time) *DatastoreSummary { s.CreationTime = &v return s } // SetDatastoreName sets the DatastoreName field's value. func (s *DatastoreSummary) SetDatastoreName(v string) *DatastoreSummary { s.DatastoreName = &v return s } // SetLastUpdateTime sets the LastUpdateTime field's value. func (s *DatastoreSummary) SetLastUpdateTime(v time.Time) *DatastoreSummary { s.LastUpdateTime = &v return s } // SetStatus sets the Status field's value. func (s *DatastoreSummary) SetStatus(v string) *DatastoreSummary { s.Status = &v return s } type DeleteChannelInput struct { _ struct{} `type:"structure"` // The name of the channel to delete. // // ChannelName is a required field ChannelName *string `location:"uri" locationName:"channelName" min:"1" type:"string" required:"true"` } // String returns the string representation func (s DeleteChannelInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DeleteChannelInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *DeleteChannelInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "DeleteChannelInput"} if s.ChannelName == nil { invalidParams.Add(request.NewErrParamRequired("ChannelName")) } if s.ChannelName != nil && len(*s.ChannelName) < 1 { invalidParams.Add(request.NewErrParamMinLen("ChannelName", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetChannelName sets the ChannelName field's value. func (s *DeleteChannelInput) SetChannelName(v string) *DeleteChannelInput { s.ChannelName = &v return s } type DeleteChannelOutput struct { _ struct{} `type:"structure"` } // String returns the string representation func (s DeleteChannelOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DeleteChannelOutput) GoString() string { return s.String() } type DeleteDatasetContentInput struct { _ struct{} `type:"structure"` // The name of the data set whose content is deleted. // // DatasetName is a required field DatasetName *string `location:"uri" locationName:"datasetName" min:"1" type:"string" required:"true"` // The version of the data set whose content is deleted. You can also use the // strings "$LATEST" or "$LATEST_SUCCEEDED" to delete the latest or latest successfully // completed data set. If not specified, "$LATEST_SUCCEEDED" is the default. VersionId *string `location:"querystring" locationName:"versionId" type:"string"` } // String returns the string representation func (s DeleteDatasetContentInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DeleteDatasetContentInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *DeleteDatasetContentInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "DeleteDatasetContentInput"} if s.DatasetName == nil { invalidParams.Add(request.NewErrParamRequired("DatasetName")) } if s.DatasetName != nil && len(*s.DatasetName) < 1 { invalidParams.Add(request.NewErrParamMinLen("DatasetName", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetDatasetName sets the DatasetName field's value. func (s *DeleteDatasetContentInput) SetDatasetName(v string) *DeleteDatasetContentInput { s.DatasetName = &v return s } // SetVersionId sets the VersionId field's value. func (s *DeleteDatasetContentInput) SetVersionId(v string) *DeleteDatasetContentInput { s.VersionId = &v return s } type DeleteDatasetContentOutput struct { _ struct{} `type:"structure"` } // String returns the string representation func (s DeleteDatasetContentOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DeleteDatasetContentOutput) GoString() string { return s.String() } type DeleteDatasetInput struct { _ struct{} `type:"structure"` // The name of the data set to delete. // // DatasetName is a required field DatasetName *string `location:"uri" locationName:"datasetName" min:"1" type:"string" required:"true"` } // String returns the string representation func (s DeleteDatasetInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DeleteDatasetInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *DeleteDatasetInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "DeleteDatasetInput"} if s.DatasetName == nil { invalidParams.Add(request.NewErrParamRequired("DatasetName")) } if s.DatasetName != nil && len(*s.DatasetName) < 1 { invalidParams.Add(request.NewErrParamMinLen("DatasetName", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetDatasetName sets the DatasetName field's value. func (s *DeleteDatasetInput) SetDatasetName(v string) *DeleteDatasetInput { s.DatasetName = &v return s } type DeleteDatasetOutput struct { _ struct{} `type:"structure"` } // String returns the string representation func (s DeleteDatasetOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DeleteDatasetOutput) GoString() string { return s.String() } type DeleteDatastoreInput struct { _ struct{} `type:"structure"` // The name of the data store to delete. // // DatastoreName is a required field DatastoreName *string `location:"uri" locationName:"datastoreName" min:"1" type:"string" required:"true"` } // String returns the string representation func (s DeleteDatastoreInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DeleteDatastoreInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *DeleteDatastoreInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "DeleteDatastoreInput"} if s.DatastoreName == nil { invalidParams.Add(request.NewErrParamRequired("DatastoreName")) } if s.DatastoreName != nil && len(*s.DatastoreName) < 1 { invalidParams.Add(request.NewErrParamMinLen("DatastoreName", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetDatastoreName sets the DatastoreName field's value. func (s *DeleteDatastoreInput) SetDatastoreName(v string) *DeleteDatastoreInput { s.DatastoreName = &v return s } type DeleteDatastoreOutput struct { _ struct{} `type:"structure"` } // String returns the string representation func (s DeleteDatastoreOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DeleteDatastoreOutput) GoString() string { return s.String() } type DeletePipelineInput struct { _ struct{} `type:"structure"` // The name of the pipeline to delete. // // PipelineName is a required field PipelineName *string `location:"uri" locationName:"pipelineName" min:"1" type:"string" required:"true"` } // String returns the string representation func (s DeletePipelineInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DeletePipelineInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *DeletePipelineInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "DeletePipelineInput"} if s.PipelineName == nil { invalidParams.Add(request.NewErrParamRequired("PipelineName")) } if s.PipelineName != nil && len(*s.PipelineName) < 1 { invalidParams.Add(request.NewErrParamMinLen("PipelineName", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetPipelineName sets the PipelineName field's value. func (s *DeletePipelineInput) SetPipelineName(v string) *DeletePipelineInput { s.PipelineName = &v return s } type DeletePipelineOutput struct { _ struct{} `type:"structure"` } // String returns the string representation func (s DeletePipelineOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DeletePipelineOutput) GoString() string { return s.String() } type DescribeChannelInput struct { _ struct{} `type:"structure"` // The name of the channel whose information is retrieved. // // ChannelName is a required field ChannelName *string `location:"uri" locationName:"channelName" min:"1" type:"string" required:"true"` } // String returns the string representation func (s DescribeChannelInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DescribeChannelInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *DescribeChannelInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "DescribeChannelInput"} if s.ChannelName == nil { invalidParams.Add(request.NewErrParamRequired("ChannelName")) } if s.ChannelName != nil && len(*s.ChannelName) < 1 { invalidParams.Add(request.NewErrParamMinLen("ChannelName", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetChannelName sets the ChannelName field's value. func (s *DescribeChannelInput) SetChannelName(v string) *DescribeChannelInput { s.ChannelName = &v return s } type DescribeChannelOutput struct { _ struct{} `type:"structure"` // An object that contains information about the channel. Channel *Channel `locationName:"channel" type:"structure"` } // String returns the string representation func (s DescribeChannelOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DescribeChannelOutput) GoString() string { return s.String() } // SetChannel sets the Channel field's value. func (s *DescribeChannelOutput) SetChannel(v *Channel) *DescribeChannelOutput { s.Channel = v return s } type DescribeDatasetInput struct { _ struct{} `type:"structure"` // The name of the data set whose information is retrieved. // // DatasetName is a required field DatasetName *string `location:"uri" locationName:"datasetName" min:"1" type:"string" required:"true"` } // String returns the string representation func (s DescribeDatasetInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DescribeDatasetInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *DescribeDatasetInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "DescribeDatasetInput"} if s.DatasetName == nil { invalidParams.Add(request.NewErrParamRequired("DatasetName")) } if s.DatasetName != nil && len(*s.DatasetName) < 1 { invalidParams.Add(request.NewErrParamMinLen("DatasetName", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetDatasetName sets the DatasetName field's value. func (s *DescribeDatasetInput) SetDatasetName(v string) *DescribeDatasetInput { s.DatasetName = &v return s } type DescribeDatasetOutput struct { _ struct{} `type:"structure"` // An object that contains information about the data set. Dataset *Dataset `locationName:"dataset" type:"structure"` } // String returns the string representation func (s DescribeDatasetOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DescribeDatasetOutput) GoString() string { return s.String() } // SetDataset sets the Dataset field's value. func (s *DescribeDatasetOutput) SetDataset(v *Dataset) *DescribeDatasetOutput { s.Dataset = v return s } type DescribeDatastoreInput struct { _ struct{} `type:"structure"` // The name of the data store // // DatastoreName is a required field DatastoreName *string `location:"uri" locationName:"datastoreName" min:"1" type:"string" required:"true"` } // String returns the string representation func (s DescribeDatastoreInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DescribeDatastoreInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *DescribeDatastoreInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "DescribeDatastoreInput"} if s.DatastoreName == nil { invalidParams.Add(request.NewErrParamRequired("DatastoreName")) } if s.DatastoreName != nil && len(*s.DatastoreName) < 1 { invalidParams.Add(request.NewErrParamMinLen("DatastoreName", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetDatastoreName sets the DatastoreName field's value. func (s *DescribeDatastoreInput) SetDatastoreName(v string) *DescribeDatastoreInput { s.DatastoreName = &v return s } type DescribeDatastoreOutput struct { _ struct{} `type:"structure"` // Information about the data store. Datastore *Datastore `locationName:"datastore" type:"structure"` } // String returns the string representation func (s DescribeDatastoreOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DescribeDatastoreOutput) GoString() string { return s.String() } // SetDatastore sets the Datastore field's value. func (s *DescribeDatastoreOutput) SetDatastore(v *Datastore) *DescribeDatastoreOutput { s.Datastore = v return s } type DescribeLoggingOptionsInput struct { _ struct{} `type:"structure"` } // String returns the string representation func (s DescribeLoggingOptionsInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DescribeLoggingOptionsInput) GoString() string { return s.String() } type DescribeLoggingOptionsOutput struct { _ struct{} `type:"structure"` // The current settings of the AWS IoT Analytics logging options. LoggingOptions *LoggingOptions `locationName:"loggingOptions" type:"structure"` } // String returns the string representation func (s DescribeLoggingOptionsOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DescribeLoggingOptionsOutput) GoString() string { return s.String() } // SetLoggingOptions sets the LoggingOptions field's value. func (s *DescribeLoggingOptionsOutput) SetLoggingOptions(v *LoggingOptions) *DescribeLoggingOptionsOutput { s.LoggingOptions = v return s } type DescribePipelineInput struct { _ struct{} `type:"structure"` // The name of the pipeline whose information is retrieved. // // PipelineName is a required field PipelineName *string `location:"uri" locationName:"pipelineName" min:"1" type:"string" required:"true"` } // String returns the string representation func (s DescribePipelineInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DescribePipelineInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *DescribePipelineInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "DescribePipelineInput"} if s.PipelineName == nil { invalidParams.Add(request.NewErrParamRequired("PipelineName")) } if s.PipelineName != nil && len(*s.PipelineName) < 1 { invalidParams.Add(request.NewErrParamMinLen("PipelineName", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetPipelineName sets the PipelineName field's value. func (s *DescribePipelineInput) SetPipelineName(v string) *DescribePipelineInput { s.PipelineName = &v return s } type DescribePipelineOutput struct { _ struct{} `type:"structure"` // A "Pipeline" object that contains information about the pipeline. Pipeline *Pipeline `locationName:"pipeline" type:"structure"` } // String returns the string representation func (s DescribePipelineOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DescribePipelineOutput) GoString() string { return s.String() } // SetPipeline sets the Pipeline field's value. func (s *DescribePipelineOutput) SetPipeline(v *Pipeline) *DescribePipelineOutput { s.Pipeline = v return s } // An activity that adds data from the AWS IoT device registry to your message. type DeviceRegistryEnrichActivity struct { _ struct{} `type:"structure"` // The name of the attribute that is added to the message. // // Attribute is a required field Attribute *string `locationName:"attribute" min:"1" type:"string" required:"true"` // The name of the 'deviceRegistryEnrich' activity. // // Name is a required field Name *string `locationName:"name" min:"1" type:"string" required:"true"` // The next activity in the pipeline. Next *string `locationName:"next" min:"1" type:"string"` // The ARN of the role that allows access to the device's registry information. // // RoleArn is a required field RoleArn *string `locationName:"roleArn" min:"20" type:"string" required:"true"` // The name of the IoT device whose registry information is added to the message. // // ThingName is a required field ThingName *string `locationName:"thingName" min:"1" type:"string" required:"true"` } // String returns the string representation func (s DeviceRegistryEnrichActivity) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DeviceRegistryEnrichActivity) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *DeviceRegistryEnrichActivity) Validate() error { invalidParams := request.ErrInvalidParams{Context: "DeviceRegistryEnrichActivity"} if s.Attribute == nil { invalidParams.Add(request.NewErrParamRequired("Attribute")) } if s.Attribute != nil && len(*s.Attribute) < 1 { invalidParams.Add(request.NewErrParamMinLen("Attribute", 1)) } if s.Name == nil { invalidParams.Add(request.NewErrParamRequired("Name")) } if s.Name != nil && len(*s.Name) < 1 { invalidParams.Add(request.NewErrParamMinLen("Name", 1)) } if s.Next != nil && len(*s.Next) < 1 { invalidParams.Add(request.NewErrParamMinLen("Next", 1)) } if s.RoleArn == nil { invalidParams.Add(request.NewErrParamRequired("RoleArn")) } if s.RoleArn != nil && len(*s.RoleArn) < 20 { invalidParams.Add(request.NewErrParamMinLen("RoleArn", 20)) } if s.ThingName == nil { invalidParams.Add(request.NewErrParamRequired("ThingName")) } if s.ThingName != nil && len(*s.ThingName) < 1 { invalidParams.Add(request.NewErrParamMinLen("ThingName", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetAttribute sets the Attribute field's value. func (s *DeviceRegistryEnrichActivity) SetAttribute(v string) *DeviceRegistryEnrichActivity { s.Attribute = &v return s } // SetName sets the Name field's value. func (s *DeviceRegistryEnrichActivity) SetName(v string) *DeviceRegistryEnrichActivity { s.Name = &v return s } // SetNext sets the Next field's value. func (s *DeviceRegistryEnrichActivity) SetNext(v string) *DeviceRegistryEnrichActivity { s.Next = &v return s } // SetRoleArn sets the RoleArn field's value. func (s *DeviceRegistryEnrichActivity) SetRoleArn(v string) *DeviceRegistryEnrichActivity { s.RoleArn = &v return s } // SetThingName sets the ThingName field's value. func (s *DeviceRegistryEnrichActivity) SetThingName(v string) *DeviceRegistryEnrichActivity { s.ThingName = &v return s } // An activity that adds information from the AWS IoT Device Shadows service // to a message. type DeviceShadowEnrichActivity struct { _ struct{} `type:"structure"` // The name of the attribute that is added to the message. // // Attribute is a required field Attribute *string `locationName:"attribute" min:"1" type:"string" required:"true"` // The name of the 'deviceShadowEnrich' activity. // // Name is a required field Name *string `locationName:"name" min:"1" type:"string" required:"true"` // The next activity in the pipeline. Next *string `locationName:"next" min:"1" type:"string"` // The ARN of the role that allows access to the device's shadow. // // RoleArn is a required field RoleArn *string `locationName:"roleArn" min:"20" type:"string" required:"true"` // The name of the IoT device whose shadow information is added to the message. // // ThingName is a required field ThingName *string `locationName:"thingName" min:"1" type:"string" required:"true"` } // String returns the string representation func (s DeviceShadowEnrichActivity) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s DeviceShadowEnrichActivity) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *DeviceShadowEnrichActivity) Validate() error { invalidParams := request.ErrInvalidParams{Context: "DeviceShadowEnrichActivity"} if s.Attribute == nil { invalidParams.Add(request.NewErrParamRequired("Attribute")) } if s.Attribute != nil && len(*s.Attribute) < 1 { invalidParams.Add(request.NewErrParamMinLen("Attribute", 1)) } if s.Name == nil { invalidParams.Add(request.NewErrParamRequired("Name")) } if s.Name != nil && len(*s.Name) < 1 { invalidParams.Add(request.NewErrParamMinLen("Name", 1)) } if s.Next != nil && len(*s.Next) < 1 { invalidParams.Add(request.NewErrParamMinLen("Next", 1)) } if s.RoleArn == nil { invalidParams.Add(request.NewErrParamRequired("RoleArn")) } if s.RoleArn != nil && len(*s.RoleArn) < 20 { invalidParams.Add(request.NewErrParamMinLen("RoleArn", 20)) } if s.ThingName == nil { invalidParams.Add(request.NewErrParamRequired("ThingName")) } if s.ThingName != nil && len(*s.ThingName) < 1 { invalidParams.Add(request.NewErrParamMinLen("ThingName", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetAttribute sets the Attribute field's value. func (s *DeviceShadowEnrichActivity) SetAttribute(v string) *DeviceShadowEnrichActivity { s.Attribute = &v return s } // SetName sets the Name field's value. func (s *DeviceShadowEnrichActivity) SetName(v string) *DeviceShadowEnrichActivity { s.Name = &v return s } // SetNext sets the Next field's value. func (s *DeviceShadowEnrichActivity) SetNext(v string) *DeviceShadowEnrichActivity { s.Next = &v return s } // SetRoleArn sets the RoleArn field's value. func (s *DeviceShadowEnrichActivity) SetRoleArn(v string) *DeviceShadowEnrichActivity { s.RoleArn = &v return s } // SetThingName sets the ThingName field's value. func (s *DeviceShadowEnrichActivity) SetThingName(v string) *DeviceShadowEnrichActivity { s.ThingName = &v return s } // An activity that filters a message based on its attributes. type FilterActivity struct { _ struct{} `type:"structure"` // An expression that looks like an SQL WHERE clause that must return a Boolean // value. // // Filter is a required field Filter *string `locationName:"filter" min:"1" type:"string" required:"true"` // The name of the 'filter' activity. // // Name is a required field Name *string `locationName:"name" min:"1" type:"string" required:"true"` // The next activity in the pipeline. Next *string `locationName:"next" min:"1" type:"string"` } // String returns the string representation func (s FilterActivity) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s FilterActivity) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *FilterActivity) Validate() error { invalidParams := request.ErrInvalidParams{Context: "FilterActivity"} if s.Filter == nil { invalidParams.Add(request.NewErrParamRequired("Filter")) } if s.Filter != nil && len(*s.Filter) < 1 { invalidParams.Add(request.NewErrParamMinLen("Filter", 1)) } if s.Name == nil { invalidParams.Add(request.NewErrParamRequired("Name")) } if s.Name != nil && len(*s.Name) < 1 { invalidParams.Add(request.NewErrParamMinLen("Name", 1)) } if s.Next != nil && len(*s.Next) < 1 { invalidParams.Add(request.NewErrParamMinLen("Next", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetFilter sets the Filter field's value. func (s *FilterActivity) SetFilter(v string) *FilterActivity { s.Filter = &v return s } // SetName sets the Name field's value. func (s *FilterActivity) SetName(v string) *FilterActivity { s.Name = &v return s } // SetNext sets the Next field's value. func (s *FilterActivity) SetNext(v string) *FilterActivity { s.Next = &v return s } type GetDatasetContentInput struct { _ struct{} `type:"structure"` // The name of the data set whose contents are retrieved. // // DatasetName is a required field DatasetName *string `location:"uri" locationName:"datasetName" min:"1" type:"string" required:"true"` // The version of the data set whose contents are retrieved. You can also use // the strings "$LATEST" or "$LATEST_SUCCEEDED" to retrieve the contents of // the latest or latest successfully completed data set. If not specified, "$LATEST_SUCCEEDED" // is the default. VersionId *string `location:"querystring" locationName:"versionId" type:"string"` } // String returns the string representation func (s GetDatasetContentInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s GetDatasetContentInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *GetDatasetContentInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "GetDatasetContentInput"} if s.DatasetName == nil { invalidParams.Add(request.NewErrParamRequired("DatasetName")) } if s.DatasetName != nil && len(*s.DatasetName) < 1 { invalidParams.Add(request.NewErrParamMinLen("DatasetName", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetDatasetName sets the DatasetName field's value. func (s *GetDatasetContentInput) SetDatasetName(v string) *GetDatasetContentInput { s.DatasetName = &v return s } // SetVersionId sets the VersionId field's value. func (s *GetDatasetContentInput) SetVersionId(v string) *GetDatasetContentInput { s.VersionId = &v return s } type GetDatasetContentOutput struct { _ struct{} `type:"structure"` // A list of "DatasetEntry" objects. Entries []*DatasetEntry `locationName:"entries" type:"list"` // The status of the data set content. Status *DatasetContentStatus `locationName:"status" type:"structure"` // The time when the request was made. Timestamp *time.Time `locationName:"timestamp" type:"timestamp" timestampFormat:"unix"` } // String returns the string representation func (s GetDatasetContentOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s GetDatasetContentOutput) GoString() string { return s.String() } // SetEntries sets the Entries field's value. func (s *GetDatasetContentOutput) SetEntries(v []*DatasetEntry) *GetDatasetContentOutput { s.Entries = v return s } // SetStatus sets the Status field's value. func (s *GetDatasetContentOutput) SetStatus(v *DatasetContentStatus) *GetDatasetContentOutput { s.Status = v return s } // SetTimestamp sets the Timestamp field's value. func (s *GetDatasetContentOutput) SetTimestamp(v time.Time) *GetDatasetContentOutput { s.Timestamp = &v return s } // An activity that runs a Lambda function to modify the message. type LambdaActivity struct { _ struct{} `type:"structure"` // The number of messages passed to the Lambda function for processing. // // The AWS Lambda function must be able to process all of these messages within // five minutes, which is the maximum timeout duration for Lambda functions. // // BatchSize is a required field BatchSize *int64 `locationName:"batchSize" min:"1" type:"integer" required:"true"` // The name of the Lambda function that is run on the message. // // LambdaName is a required field LambdaName *string `locationName:"lambdaName" min:"1" type:"string" required:"true"` // The name of the 'lambda' activity. // // Name is a required field Name *string `locationName:"name" min:"1" type:"string" required:"true"` // The next activity in the pipeline. Next *string `locationName:"next" min:"1" type:"string"` } // String returns the string representation func (s LambdaActivity) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s LambdaActivity) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *LambdaActivity) Validate() error { invalidParams := request.ErrInvalidParams{Context: "LambdaActivity"} if s.BatchSize == nil { invalidParams.Add(request.NewErrParamRequired("BatchSize")) } if s.BatchSize != nil && *s.BatchSize < 1 { invalidParams.Add(request.NewErrParamMinValue("BatchSize", 1)) } if s.LambdaName == nil { invalidParams.Add(request.NewErrParamRequired("LambdaName")) } if s.LambdaName != nil && len(*s.LambdaName) < 1 { invalidParams.Add(request.NewErrParamMinLen("LambdaName", 1)) } if s.Name == nil { invalidParams.Add(request.NewErrParamRequired("Name")) } if s.Name != nil && len(*s.Name) < 1 { invalidParams.Add(request.NewErrParamMinLen("Name", 1)) } if s.Next != nil && len(*s.Next) < 1 { invalidParams.Add(request.NewErrParamMinLen("Next", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetBatchSize sets the BatchSize field's value. func (s *LambdaActivity) SetBatchSize(v int64) *LambdaActivity { s.BatchSize = &v return s } // SetLambdaName sets the LambdaName field's value. func (s *LambdaActivity) SetLambdaName(v string) *LambdaActivity { s.LambdaName = &v return s } // SetName sets the Name field's value. func (s *LambdaActivity) SetName(v string) *LambdaActivity { s.Name = &v return s } // SetNext sets the Next field's value. func (s *LambdaActivity) SetNext(v string) *LambdaActivity { s.Next = &v return s } type ListChannelsInput struct { _ struct{} `type:"structure"` // The maximum number of results to return in this request. // // The default value is 100. MaxResults *int64 `location:"querystring" locationName:"maxResults" min:"1" type:"integer"` // The token for the next set of results. NextToken *string `location:"querystring" locationName:"nextToken" type:"string"` } // String returns the string representation func (s ListChannelsInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ListChannelsInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *ListChannelsInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "ListChannelsInput"} if s.MaxResults != nil && *s.MaxResults < 1 { invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetMaxResults sets the MaxResults field's value. func (s *ListChannelsInput) SetMaxResults(v int64) *ListChannelsInput { s.MaxResults = &v return s } // SetNextToken sets the NextToken field's value. func (s *ListChannelsInput) SetNextToken(v string) *ListChannelsInput { s.NextToken = &v return s } type ListChannelsOutput struct { _ struct{} `type:"structure"` // A list of "ChannelSummary" objects. ChannelSummaries []*ChannelSummary `locationName:"channelSummaries" type:"list"` // The token to retrieve the next set of results, or null if there are no more // results. NextToken *string `locationName:"nextToken" type:"string"` } // String returns the string representation func (s ListChannelsOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ListChannelsOutput) GoString() string { return s.String() } // SetChannelSummaries sets the ChannelSummaries field's value. func (s *ListChannelsOutput) SetChannelSummaries(v []*ChannelSummary) *ListChannelsOutput { s.ChannelSummaries = v return s } // SetNextToken sets the NextToken field's value. func (s *ListChannelsOutput) SetNextToken(v string) *ListChannelsOutput { s.NextToken = &v return s } type ListDatasetsInput struct { _ struct{} `type:"structure"` // The maximum number of results to return in this request. // // The default value is 100. MaxResults *int64 `location:"querystring" locationName:"maxResults" min:"1" type:"integer"` // The token for the next set of results. NextToken *string `location:"querystring" locationName:"nextToken" type:"string"` } // String returns the string representation func (s ListDatasetsInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ListDatasetsInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *ListDatasetsInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "ListDatasetsInput"} if s.MaxResults != nil && *s.MaxResults < 1 { invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetMaxResults sets the MaxResults field's value. func (s *ListDatasetsInput) SetMaxResults(v int64) *ListDatasetsInput { s.MaxResults = &v return s } // SetNextToken sets the NextToken field's value. func (s *ListDatasetsInput) SetNextToken(v string) *ListDatasetsInput { s.NextToken = &v return s } type ListDatasetsOutput struct { _ struct{} `type:"structure"` // A list of "DatasetSummary" objects. DatasetSummaries []*DatasetSummary `locationName:"datasetSummaries" type:"list"` // The token to retrieve the next set of results, or null if there are no more // results. NextToken *string `locationName:"nextToken" type:"string"` } // String returns the string representation func (s ListDatasetsOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ListDatasetsOutput) GoString() string { return s.String() } // SetDatasetSummaries sets the DatasetSummaries field's value. func (s *ListDatasetsOutput) SetDatasetSummaries(v []*DatasetSummary) *ListDatasetsOutput { s.DatasetSummaries = v return s } // SetNextToken sets the NextToken field's value. func (s *ListDatasetsOutput) SetNextToken(v string) *ListDatasetsOutput { s.NextToken = &v return s } type ListDatastoresInput struct { _ struct{} `type:"structure"` // The maximum number of results to return in this request. // // The default value is 100. MaxResults *int64 `location:"querystring" locationName:"maxResults" min:"1" type:"integer"` // The token for the next set of results. NextToken *string `location:"querystring" locationName:"nextToken" type:"string"` } // String returns the string representation func (s ListDatastoresInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ListDatastoresInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *ListDatastoresInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "ListDatastoresInput"} if s.MaxResults != nil && *s.MaxResults < 1 { invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetMaxResults sets the MaxResults field's value. func (s *ListDatastoresInput) SetMaxResults(v int64) *ListDatastoresInput { s.MaxResults = &v return s } // SetNextToken sets the NextToken field's value. func (s *ListDatastoresInput) SetNextToken(v string) *ListDatastoresInput { s.NextToken = &v return s } type ListDatastoresOutput struct { _ struct{} `type:"structure"` // A list of "DatastoreSummary" objects. DatastoreSummaries []*DatastoreSummary `locationName:"datastoreSummaries" type:"list"` // The token to retrieve the next set of results, or null if there are no more // results. NextToken *string `locationName:"nextToken" type:"string"` } // String returns the string representation func (s ListDatastoresOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ListDatastoresOutput) GoString() string { return s.String() } // SetDatastoreSummaries sets the DatastoreSummaries field's value. func (s *ListDatastoresOutput) SetDatastoreSummaries(v []*DatastoreSummary) *ListDatastoresOutput { s.DatastoreSummaries = v return s } // SetNextToken sets the NextToken field's value. func (s *ListDatastoresOutput) SetNextToken(v string) *ListDatastoresOutput { s.NextToken = &v return s } type ListPipelinesInput struct { _ struct{} `type:"structure"` // The maximum number of results to return in this request. // // The default value is 100. MaxResults *int64 `location:"querystring" locationName:"maxResults" min:"1" type:"integer"` // The token for the next set of results. NextToken *string `location:"querystring" locationName:"nextToken" type:"string"` } // String returns the string representation func (s ListPipelinesInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ListPipelinesInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *ListPipelinesInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "ListPipelinesInput"} if s.MaxResults != nil && *s.MaxResults < 1 { invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetMaxResults sets the MaxResults field's value. func (s *ListPipelinesInput) SetMaxResults(v int64) *ListPipelinesInput { s.MaxResults = &v return s } // SetNextToken sets the NextToken field's value. func (s *ListPipelinesInput) SetNextToken(v string) *ListPipelinesInput { s.NextToken = &v return s } type ListPipelinesOutput struct { _ struct{} `type:"structure"` // The token to retrieve the next set of results, or null if there are no more // results. NextToken *string `locationName:"nextToken" type:"string"` // A list of "PipelineSummary" objects. PipelineSummaries []*PipelineSummary `locationName:"pipelineSummaries" type:"list"` } // String returns the string representation func (s ListPipelinesOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ListPipelinesOutput) GoString() string { return s.String() } // SetNextToken sets the NextToken field's value. func (s *ListPipelinesOutput) SetNextToken(v string) *ListPipelinesOutput { s.NextToken = &v return s } // SetPipelineSummaries sets the PipelineSummaries field's value. func (s *ListPipelinesOutput) SetPipelineSummaries(v []*PipelineSummary) *ListPipelinesOutput { s.PipelineSummaries = v return s } // Information about logging options. type LoggingOptions struct { _ struct{} `type:"structure"` // If true, logging is enabled for AWS IoT Analytics. // // Enabled is a required field Enabled *bool `locationName:"enabled" type:"boolean" required:"true"` // The logging level. Currently, only "ERROR" is supported. // // Level is a required field Level *string `locationName:"level" type:"string" required:"true" enum:"LoggingLevel"` // The ARN of the role that grants permission to AWS IoT Analytics to perform // logging. // // RoleArn is a required field RoleArn *string `locationName:"roleArn" min:"20" type:"string" required:"true"` } // String returns the string representation func (s LoggingOptions) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s LoggingOptions) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *LoggingOptions) Validate() error { invalidParams := request.ErrInvalidParams{Context: "LoggingOptions"} if s.Enabled == nil { invalidParams.Add(request.NewErrParamRequired("Enabled")) } if s.Level == nil { invalidParams.Add(request.NewErrParamRequired("Level")) } if s.RoleArn == nil { invalidParams.Add(request.NewErrParamRequired("RoleArn")) } if s.RoleArn != nil && len(*s.RoleArn) < 20 { invalidParams.Add(request.NewErrParamMinLen("RoleArn", 20)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetEnabled sets the Enabled field's value. func (s *LoggingOptions) SetEnabled(v bool) *LoggingOptions { s.Enabled = &v return s } // SetLevel sets the Level field's value. func (s *LoggingOptions) SetLevel(v string) *LoggingOptions { s.Level = &v return s } // SetRoleArn sets the RoleArn field's value. func (s *LoggingOptions) SetRoleArn(v string) *LoggingOptions { s.RoleArn = &v return s } // An activity that computes an arithmetic expression using the message's attributes. type MathActivity struct { _ struct{} `type:"structure"` // The name of the attribute that will contain the result of the math operation. // // Attribute is a required field Attribute *string `locationName:"attribute" min:"1" type:"string" required:"true"` // An expression that uses one or more existing attributes and must return an // integer value. // // Math is a required field Math *string `locationName:"math" min:"1" type:"string" required:"true"` // The name of the 'math' activity. // // Name is a required field Name *string `locationName:"name" min:"1" type:"string" required:"true"` // The next activity in the pipeline. Next *string `locationName:"next" min:"1" type:"string"` } // String returns the string representation func (s MathActivity) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s MathActivity) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *MathActivity) Validate() error { invalidParams := request.ErrInvalidParams{Context: "MathActivity"} if s.Attribute == nil { invalidParams.Add(request.NewErrParamRequired("Attribute")) } if s.Attribute != nil && len(*s.Attribute) < 1 { invalidParams.Add(request.NewErrParamMinLen("Attribute", 1)) } if s.Math == nil { invalidParams.Add(request.NewErrParamRequired("Math")) } if s.Math != nil && len(*s.Math) < 1 { invalidParams.Add(request.NewErrParamMinLen("Math", 1)) } if s.Name == nil { invalidParams.Add(request.NewErrParamRequired("Name")) } if s.Name != nil && len(*s.Name) < 1 { invalidParams.Add(request.NewErrParamMinLen("Name", 1)) } if s.Next != nil && len(*s.Next) < 1 { invalidParams.Add(request.NewErrParamMinLen("Next", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetAttribute sets the Attribute field's value. func (s *MathActivity) SetAttribute(v string) *MathActivity { s.Attribute = &v return s } // SetMath sets the Math field's value. func (s *MathActivity) SetMath(v string) *MathActivity { s.Math = &v return s } // SetName sets the Name field's value. func (s *MathActivity) SetName(v string) *MathActivity { s.Name = &v return s } // SetNext sets the Next field's value. func (s *MathActivity) SetNext(v string) *MathActivity { s.Next = &v return s } // Information about a message. type Message struct { _ struct{} `type:"structure"` // The ID you wish to assign to the message. // // MessageId is a required field MessageId *string `locationName:"messageId" min:"1" type:"string" required:"true"` // The payload of the message. // // Payload is automatically base64 encoded/decoded by the SDK. // // Payload is a required field Payload []byte `locationName:"payload" type:"blob" required:"true"` } // String returns the string representation func (s Message) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s Message) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *Message) Validate() error { invalidParams := request.ErrInvalidParams{Context: "Message"} if s.MessageId == nil { invalidParams.Add(request.NewErrParamRequired("MessageId")) } if s.MessageId != nil && len(*s.MessageId) < 1 { invalidParams.Add(request.NewErrParamMinLen("MessageId", 1)) } if s.Payload == nil { invalidParams.Add(request.NewErrParamRequired("Payload")) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetMessageId sets the MessageId field's value. func (s *Message) SetMessageId(v string) *Message { s.MessageId = &v return s } // SetPayload sets the Payload field's value. func (s *Message) SetPayload(v []byte) *Message { s.Payload = v return s } // Contains information about a pipeline. type Pipeline struct { _ struct{} `type:"structure"` // The activities that perform transformations on the messages. Activities []*PipelineActivity `locationName:"activities" min:"1" type:"list"` // The ARN of the pipeline. Arn *string `locationName:"arn" type:"string"` // When the pipeline was created. CreationTime *time.Time `locationName:"creationTime" type:"timestamp" timestampFormat:"unix"` // The last time the pipeline was updated. LastUpdateTime *time.Time `locationName:"lastUpdateTime" type:"timestamp" timestampFormat:"unix"` // The name of the pipeline. Name *string `locationName:"name" min:"1" type:"string"` // A summary of information about the pipeline reprocessing. ReprocessingSummaries []*ReprocessingSummary `locationName:"reprocessingSummaries" type:"list"` } // String returns the string representation func (s Pipeline) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s Pipeline) GoString() string { return s.String() } // SetActivities sets the Activities field's value. func (s *Pipeline) SetActivities(v []*PipelineActivity) *Pipeline { s.Activities = v return s } // SetArn sets the Arn field's value. func (s *Pipeline) SetArn(v string) *Pipeline { s.Arn = &v return s } // SetCreationTime sets the CreationTime field's value. func (s *Pipeline) SetCreationTime(v time.Time) *Pipeline { s.CreationTime = &v return s } // SetLastUpdateTime sets the LastUpdateTime field's value. func (s *Pipeline) SetLastUpdateTime(v time.Time) *Pipeline { s.LastUpdateTime = &v return s } // SetName sets the Name field's value. func (s *Pipeline) SetName(v string) *Pipeline { s.Name = &v return s } // SetReprocessingSummaries sets the ReprocessingSummaries field's value. func (s *Pipeline) SetReprocessingSummaries(v []*ReprocessingSummary) *Pipeline { s.ReprocessingSummaries = v return s } // An activity that performs a transformation on a message. type PipelineActivity struct { _ struct{} `type:"structure"` // Adds other attributes based on existing attributes in the message. AddAttributes *AddAttributesActivity `locationName:"addAttributes" type:"structure"` // Determines the source of the messages to be processed. Channel *ChannelActivity `locationName:"channel" type:"structure"` // Specifies where to store the processed message data. Datastore *DatastoreActivity `locationName:"datastore" type:"structure"` // Adds data from the AWS IoT device registry to your message. DeviceRegistryEnrich *DeviceRegistryEnrichActivity `locationName:"deviceRegistryEnrich" type:"structure"` // Adds information from the AWS IoT Device Shadows service to a message. DeviceShadowEnrich *DeviceShadowEnrichActivity `locationName:"deviceShadowEnrich" type:"structure"` // Filters a message based on its attributes. Filter *FilterActivity `locationName:"filter" type:"structure"` // Runs a Lambda function to modify the message. Lambda *LambdaActivity `locationName:"lambda" type:"structure"` // Computes an arithmetic expression using the message's attributes and adds // it to the message. Math *MathActivity `locationName:"math" type:"structure"` // Removes attributes from a message. RemoveAttributes *RemoveAttributesActivity `locationName:"removeAttributes" type:"structure"` // Creates a new message using only the specified attributes from the original // message. SelectAttributes *SelectAttributesActivity `locationName:"selectAttributes" type:"structure"` } // String returns the string representation func (s PipelineActivity) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s PipelineActivity) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *PipelineActivity) Validate() error { invalidParams := request.ErrInvalidParams{Context: "PipelineActivity"} if s.AddAttributes != nil { if err := s.AddAttributes.Validate(); err != nil { invalidParams.AddNested("AddAttributes", err.(request.ErrInvalidParams)) } } if s.Channel != nil { if err := s.Channel.Validate(); err != nil { invalidParams.AddNested("Channel", err.(request.ErrInvalidParams)) } } if s.Datastore != nil { if err := s.Datastore.Validate(); err != nil { invalidParams.AddNested("Datastore", err.(request.ErrInvalidParams)) } } if s.DeviceRegistryEnrich != nil { if err := s.DeviceRegistryEnrich.Validate(); err != nil { invalidParams.AddNested("DeviceRegistryEnrich", err.(request.ErrInvalidParams)) } } if s.DeviceShadowEnrich != nil { if err := s.DeviceShadowEnrich.Validate(); err != nil { invalidParams.AddNested("DeviceShadowEnrich", err.(request.ErrInvalidParams)) } } if s.Filter != nil { if err := s.Filter.Validate(); err != nil { invalidParams.AddNested("Filter", err.(request.ErrInvalidParams)) } } if s.Lambda != nil { if err := s.Lambda.Validate(); err != nil { invalidParams.AddNested("Lambda", err.(request.ErrInvalidParams)) } } if s.Math != nil { if err := s.Math.Validate(); err != nil { invalidParams.AddNested("Math", err.(request.ErrInvalidParams)) } } if s.RemoveAttributes != nil { if err := s.RemoveAttributes.Validate(); err != nil { invalidParams.AddNested("RemoveAttributes", err.(request.ErrInvalidParams)) } } if s.SelectAttributes != nil { if err := s.SelectAttributes.Validate(); err != nil { invalidParams.AddNested("SelectAttributes", err.(request.ErrInvalidParams)) } } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetAddAttributes sets the AddAttributes field's value. func (s *PipelineActivity) SetAddAttributes(v *AddAttributesActivity) *PipelineActivity { s.AddAttributes = v return s } // SetChannel sets the Channel field's value. func (s *PipelineActivity) SetChannel(v *ChannelActivity) *PipelineActivity { s.Channel = v return s } // SetDatastore sets the Datastore field's value. func (s *PipelineActivity) SetDatastore(v *DatastoreActivity) *PipelineActivity { s.Datastore = v return s } // SetDeviceRegistryEnrich sets the DeviceRegistryEnrich field's value. func (s *PipelineActivity) SetDeviceRegistryEnrich(v *DeviceRegistryEnrichActivity) *PipelineActivity { s.DeviceRegistryEnrich = v return s } // SetDeviceShadowEnrich sets the DeviceShadowEnrich field's value. func (s *PipelineActivity) SetDeviceShadowEnrich(v *DeviceShadowEnrichActivity) *PipelineActivity { s.DeviceShadowEnrich = v return s } // SetFilter sets the Filter field's value. func (s *PipelineActivity) SetFilter(v *FilterActivity) *PipelineActivity { s.Filter = v return s } // SetLambda sets the Lambda field's value. func (s *PipelineActivity) SetLambda(v *LambdaActivity) *PipelineActivity { s.Lambda = v return s } // SetMath sets the Math field's value. func (s *PipelineActivity) SetMath(v *MathActivity) *PipelineActivity { s.Math = v return s } // SetRemoveAttributes sets the RemoveAttributes field's value. func (s *PipelineActivity) SetRemoveAttributes(v *RemoveAttributesActivity) *PipelineActivity { s.RemoveAttributes = v return s } // SetSelectAttributes sets the SelectAttributes field's value. func (s *PipelineActivity) SetSelectAttributes(v *SelectAttributesActivity) *PipelineActivity { s.SelectAttributes = v return s } // A summary of information about a pipeline. type PipelineSummary struct { _ struct{} `type:"structure"` // When the pipeline was created. CreationTime *time.Time `locationName:"creationTime" type:"timestamp" timestampFormat:"unix"` // When the pipeline was last updated. LastUpdateTime *time.Time `locationName:"lastUpdateTime" type:"timestamp" timestampFormat:"unix"` // The name of the pipeline. PipelineName *string `locationName:"pipelineName" min:"1" type:"string"` // A summary of information about the pipeline reprocessing. ReprocessingSummaries []*ReprocessingSummary `locationName:"reprocessingSummaries" type:"list"` } // String returns the string representation func (s PipelineSummary) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s PipelineSummary) GoString() string { return s.String() } // SetCreationTime sets the CreationTime field's value. func (s *PipelineSummary) SetCreationTime(v time.Time) *PipelineSummary { s.CreationTime = &v return s } // SetLastUpdateTime sets the LastUpdateTime field's value. func (s *PipelineSummary) SetLastUpdateTime(v time.Time) *PipelineSummary { s.LastUpdateTime = &v return s } // SetPipelineName sets the PipelineName field's value. func (s *PipelineSummary) SetPipelineName(v string) *PipelineSummary { s.PipelineName = &v return s } // SetReprocessingSummaries sets the ReprocessingSummaries field's value. func (s *PipelineSummary) SetReprocessingSummaries(v []*ReprocessingSummary) *PipelineSummary { s.ReprocessingSummaries = v return s } type PutLoggingOptionsInput struct { _ struct{} `type:"structure"` // The new values of the AWS IoT Analytics logging options. // // LoggingOptions is a required field LoggingOptions *LoggingOptions `locationName:"loggingOptions" type:"structure" required:"true"` } // String returns the string representation func (s PutLoggingOptionsInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s PutLoggingOptionsInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *PutLoggingOptionsInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "PutLoggingOptionsInput"} if s.LoggingOptions == nil { invalidParams.Add(request.NewErrParamRequired("LoggingOptions")) } if s.LoggingOptions != nil { if err := s.LoggingOptions.Validate(); err != nil { invalidParams.AddNested("LoggingOptions", err.(request.ErrInvalidParams)) } } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetLoggingOptions sets the LoggingOptions field's value. func (s *PutLoggingOptionsInput) SetLoggingOptions(v *LoggingOptions) *PutLoggingOptionsInput { s.LoggingOptions = v return s } type PutLoggingOptionsOutput struct { _ struct{} `type:"structure"` } // String returns the string representation func (s PutLoggingOptionsOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s PutLoggingOptionsOutput) GoString() string { return s.String() } // An activity that removes attributes from a message. type RemoveAttributesActivity struct { _ struct{} `type:"structure"` // A list of 1-50 attributes to remove from the message. // // Attributes is a required field Attributes []*string `locationName:"attributes" min:"1" type:"list" required:"true"` // The name of the 'removeAttributes' activity. // // Name is a required field Name *string `locationName:"name" min:"1" type:"string" required:"true"` // The next activity in the pipeline. Next *string `locationName:"next" min:"1" type:"string"` } // String returns the string representation func (s RemoveAttributesActivity) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s RemoveAttributesActivity) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *RemoveAttributesActivity) Validate() error { invalidParams := request.ErrInvalidParams{Context: "RemoveAttributesActivity"} if s.Attributes == nil { invalidParams.Add(request.NewErrParamRequired("Attributes")) } if s.Attributes != nil && len(s.Attributes) < 1 { invalidParams.Add(request.NewErrParamMinLen("Attributes", 1)) } if s.Name == nil { invalidParams.Add(request.NewErrParamRequired("Name")) } if s.Name != nil && len(*s.Name) < 1 { invalidParams.Add(request.NewErrParamMinLen("Name", 1)) } if s.Next != nil && len(*s.Next) < 1 { invalidParams.Add(request.NewErrParamMinLen("Next", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetAttributes sets the Attributes field's value. func (s *RemoveAttributesActivity) SetAttributes(v []*string) *RemoveAttributesActivity { s.Attributes = v return s } // SetName sets the Name field's value. func (s *RemoveAttributesActivity) SetName(v string) *RemoveAttributesActivity { s.Name = &v return s } // SetNext sets the Next field's value. func (s *RemoveAttributesActivity) SetNext(v string) *RemoveAttributesActivity { s.Next = &v return s } // Information about pipeline reprocessing. type ReprocessingSummary struct { _ struct{} `type:"structure"` // The time the pipeline reprocessing was created. CreationTime *time.Time `locationName:"creationTime" type:"timestamp" timestampFormat:"unix"` // The 'reprocessingId' returned by "StartPipelineReprocessing". Id *string `locationName:"id" type:"string"` // The status of the pipeline reprocessing. Status *string `locationName:"status" type:"string" enum:"ReprocessingStatus"` } // String returns the string representation func (s ReprocessingSummary) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s ReprocessingSummary) GoString() string { return s.String() } // SetCreationTime sets the CreationTime field's value. func (s *ReprocessingSummary) SetCreationTime(v time.Time) *ReprocessingSummary { s.CreationTime = &v return s } // SetId sets the Id field's value. func (s *ReprocessingSummary) SetId(v string) *ReprocessingSummary { s.Id = &v return s } // SetStatus sets the Status field's value. func (s *ReprocessingSummary) SetStatus(v string) *ReprocessingSummary { s.Status = &v return s } // How long, in days, message data is kept. type RetentionPeriod struct { _ struct{} `type:"structure"` // The number of days that message data is kept. The "unlimited" parameter must // be false. NumberOfDays *int64 `locationName:"numberOfDays" min:"1" type:"integer"` // If true, message data is kept indefinitely. Unlimited *bool `locationName:"unlimited" type:"boolean"` } // String returns the string representation func (s RetentionPeriod) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s RetentionPeriod) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *RetentionPeriod) Validate() error { invalidParams := request.ErrInvalidParams{Context: "RetentionPeriod"} if s.NumberOfDays != nil && *s.NumberOfDays < 1 { invalidParams.Add(request.NewErrParamMinValue("NumberOfDays", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetNumberOfDays sets the NumberOfDays field's value. func (s *RetentionPeriod) SetNumberOfDays(v int64) *RetentionPeriod { s.NumberOfDays = &v return s } // SetUnlimited sets the Unlimited field's value. func (s *RetentionPeriod) SetUnlimited(v bool) *RetentionPeriod { s.Unlimited = &v return s } type RunPipelineActivityInput struct { _ struct{} `type:"structure"` // The sample message payloads on which the pipeline activity is run. // // Payloads is a required field Payloads [][]byte `locationName:"payloads" min:"1" type:"list" required:"true"` // The pipeline activity that is run. This must not be a 'channel' activity // or a 'datastore' activity because these activities are used in a pipeline // only to load the original message and to store the (possibly) transformed // message. If a 'lambda' activity is specified, only short-running Lambda functions // (those with a timeout of less than 30 seconds or less) can be used. // // PipelineActivity is a required field PipelineActivity *PipelineActivity `locationName:"pipelineActivity" type:"structure" required:"true"` } // String returns the string representation func (s RunPipelineActivityInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s RunPipelineActivityInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *RunPipelineActivityInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "RunPipelineActivityInput"} if s.Payloads == nil { invalidParams.Add(request.NewErrParamRequired("Payloads")) } if s.Payloads != nil && len(s.Payloads) < 1 { invalidParams.Add(request.NewErrParamMinLen("Payloads", 1)) } if s.PipelineActivity == nil { invalidParams.Add(request.NewErrParamRequired("PipelineActivity")) } if s.PipelineActivity != nil { if err := s.PipelineActivity.Validate(); err != nil { invalidParams.AddNested("PipelineActivity", err.(request.ErrInvalidParams)) } } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetPayloads sets the Payloads field's value. func (s *RunPipelineActivityInput) SetPayloads(v [][]byte) *RunPipelineActivityInput { s.Payloads = v return s } // SetPipelineActivity sets the PipelineActivity field's value. func (s *RunPipelineActivityInput) SetPipelineActivity(v *PipelineActivity) *RunPipelineActivityInput { s.PipelineActivity = v return s } type RunPipelineActivityOutput struct { _ struct{} `type:"structure"` // In case the pipeline activity fails, the log message that is generated. LogResult *string `locationName:"logResult" type:"string"` // The enriched or transformed sample message payloads as base64-encoded strings. // (The results of running the pipeline activity on each input sample message // payload, encoded in base64.) Payloads [][]byte `locationName:"payloads" min:"1" type:"list"` } // String returns the string representation func (s RunPipelineActivityOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s RunPipelineActivityOutput) GoString() string { return s.String() } // SetLogResult sets the LogResult field's value. func (s *RunPipelineActivityOutput) SetLogResult(v string) *RunPipelineActivityOutput { s.LogResult = &v return s } // SetPayloads sets the Payloads field's value. func (s *RunPipelineActivityOutput) SetPayloads(v [][]byte) *RunPipelineActivityOutput { s.Payloads = v return s } type SampleChannelDataInput struct { _ struct{} `type:"structure"` // The name of the channel whose message samples are retrieved. // // ChannelName is a required field ChannelName *string `location:"uri" locationName:"channelName" min:"1" type:"string" required:"true"` // The end of the time window from which sample messages are retrieved. EndTime *time.Time `location:"querystring" locationName:"endTime" type:"timestamp" timestampFormat:"unix"` // The number of sample messages to be retrieved. The limit is 10, the default // is also 10. MaxMessages *int64 `location:"querystring" locationName:"maxMessages" min:"1" type:"integer"` // The start of the time window from which sample messages are retrieved. StartTime *time.Time `location:"querystring" locationName:"startTime" type:"timestamp" timestampFormat:"unix"` } // String returns the string representation func (s SampleChannelDataInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s SampleChannelDataInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *SampleChannelDataInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "SampleChannelDataInput"} if s.ChannelName == nil { invalidParams.Add(request.NewErrParamRequired("ChannelName")) } if s.ChannelName != nil && len(*s.ChannelName) < 1 { invalidParams.Add(request.NewErrParamMinLen("ChannelName", 1)) } if s.MaxMessages != nil && *s.MaxMessages < 1 { invalidParams.Add(request.NewErrParamMinValue("MaxMessages", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetChannelName sets the ChannelName field's value. func (s *SampleChannelDataInput) SetChannelName(v string) *SampleChannelDataInput { s.ChannelName = &v return s } // SetEndTime sets the EndTime field's value. func (s *SampleChannelDataInput) SetEndTime(v time.Time) *SampleChannelDataInput { s.EndTime = &v return s } // SetMaxMessages sets the MaxMessages field's value. func (s *SampleChannelDataInput) SetMaxMessages(v int64) *SampleChannelDataInput { s.MaxMessages = &v return s } // SetStartTime sets the StartTime field's value. func (s *SampleChannelDataInput) SetStartTime(v time.Time) *SampleChannelDataInput { s.StartTime = &v return s } type SampleChannelDataOutput struct { _ struct{} `type:"structure"` // The list of message samples. Each sample message is returned as a base64-encoded // string. Payloads [][]byte `locationName:"payloads" min:"1" type:"list"` } // String returns the string representation func (s SampleChannelDataOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s SampleChannelDataOutput) GoString() string { return s.String() } // SetPayloads sets the Payloads field's value. func (s *SampleChannelDataOutput) SetPayloads(v [][]byte) *SampleChannelDataOutput { s.Payloads = v return s } // The schedule for when to trigger an update. type Schedule struct { _ struct{} `type:"structure"` // The expression that defines when to trigger an update. For more information, // see Schedule Expressions for Rules (https://docs.aws.amazon.com/AmazonCloudWatch/latest/events/ScheduledEvents.html) // in the Amazon CloudWatch documentation. Expression *string `locationName:"expression" type:"string"` } // String returns the string representation func (s Schedule) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s Schedule) GoString() string { return s.String() } // SetExpression sets the Expression field's value. func (s *Schedule) SetExpression(v string) *Schedule { s.Expression = &v return s } // Creates a new message using only the specified attributes from the original // message. type SelectAttributesActivity struct { _ struct{} `type:"structure"` // A list of the attributes to select from the message. // // Attributes is a required field Attributes []*string `locationName:"attributes" min:"1" type:"list" required:"true"` // The name of the 'selectAttributes' activity. // // Name is a required field Name *string `locationName:"name" min:"1" type:"string" required:"true"` // The next activity in the pipeline. Next *string `locationName:"next" min:"1" type:"string"` } // String returns the string representation func (s SelectAttributesActivity) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s SelectAttributesActivity) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *SelectAttributesActivity) Validate() error { invalidParams := request.ErrInvalidParams{Context: "SelectAttributesActivity"} if s.Attributes == nil { invalidParams.Add(request.NewErrParamRequired("Attributes")) } if s.Attributes != nil && len(s.Attributes) < 1 { invalidParams.Add(request.NewErrParamMinLen("Attributes", 1)) } if s.Name == nil { invalidParams.Add(request.NewErrParamRequired("Name")) } if s.Name != nil && len(*s.Name) < 1 { invalidParams.Add(request.NewErrParamMinLen("Name", 1)) } if s.Next != nil && len(*s.Next) < 1 { invalidParams.Add(request.NewErrParamMinLen("Next", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetAttributes sets the Attributes field's value. func (s *SelectAttributesActivity) SetAttributes(v []*string) *SelectAttributesActivity { s.Attributes = v return s } // SetName sets the Name field's value. func (s *SelectAttributesActivity) SetName(v string) *SelectAttributesActivity { s.Name = &v return s } // SetNext sets the Next field's value. func (s *SelectAttributesActivity) SetNext(v string) *SelectAttributesActivity { s.Next = &v return s } // The SQL query to modify the message. type SqlQueryDatasetAction struct { _ struct{} `type:"structure"` // An SQL query string. // // SqlQuery is a required field SqlQuery *string `locationName:"sqlQuery" type:"string" required:"true"` } // String returns the string representation func (s SqlQueryDatasetAction) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s SqlQueryDatasetAction) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *SqlQueryDatasetAction) Validate() error { invalidParams := request.ErrInvalidParams{Context: "SqlQueryDatasetAction"} if s.SqlQuery == nil { invalidParams.Add(request.NewErrParamRequired("SqlQuery")) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetSqlQuery sets the SqlQuery field's value. func (s *SqlQueryDatasetAction) SetSqlQuery(v string) *SqlQueryDatasetAction { s.SqlQuery = &v return s } type StartPipelineReprocessingInput struct { _ struct{} `type:"structure"` // The end time (exclusive) of raw message data that is reprocessed. EndTime *time.Time `locationName:"endTime" type:"timestamp" timestampFormat:"unix"` // The name of the pipeline on which to start reprocessing. // // PipelineName is a required field PipelineName *string `location:"uri" locationName:"pipelineName" min:"1" type:"string" required:"true"` // The start time (inclusive) of raw message data that is reprocessed. StartTime *time.Time `locationName:"startTime" type:"timestamp" timestampFormat:"unix"` } // String returns the string representation func (s StartPipelineReprocessingInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s StartPipelineReprocessingInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *StartPipelineReprocessingInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "StartPipelineReprocessingInput"} if s.PipelineName == nil { invalidParams.Add(request.NewErrParamRequired("PipelineName")) } if s.PipelineName != nil && len(*s.PipelineName) < 1 { invalidParams.Add(request.NewErrParamMinLen("PipelineName", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetEndTime sets the EndTime field's value. func (s *StartPipelineReprocessingInput) SetEndTime(v time.Time) *StartPipelineReprocessingInput { s.EndTime = &v return s } // SetPipelineName sets the PipelineName field's value. func (s *StartPipelineReprocessingInput) SetPipelineName(v string) *StartPipelineReprocessingInput { s.PipelineName = &v return s } // SetStartTime sets the StartTime field's value. func (s *StartPipelineReprocessingInput) SetStartTime(v time.Time) *StartPipelineReprocessingInput { s.StartTime = &v return s } type StartPipelineReprocessingOutput struct { _ struct{} `type:"structure"` // The ID of the pipeline reprocessing activity that was started. ReprocessingId *string `locationName:"reprocessingId" type:"string"` } // String returns the string representation func (s StartPipelineReprocessingOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s StartPipelineReprocessingOutput) GoString() string { return s.String() } // SetReprocessingId sets the ReprocessingId field's value. func (s *StartPipelineReprocessingOutput) SetReprocessingId(v string) *StartPipelineReprocessingOutput { s.ReprocessingId = &v return s } type UpdateChannelInput struct { _ struct{} `type:"structure"` // The name of the channel to be updated. // // ChannelName is a required field ChannelName *string `location:"uri" locationName:"channelName" min:"1" type:"string" required:"true"` // How long, in days, message data is kept for the channel. RetentionPeriod *RetentionPeriod `locationName:"retentionPeriod" type:"structure"` } // String returns the string representation func (s UpdateChannelInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s UpdateChannelInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *UpdateChannelInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "UpdateChannelInput"} if s.ChannelName == nil { invalidParams.Add(request.NewErrParamRequired("ChannelName")) } if s.ChannelName != nil && len(*s.ChannelName) < 1 { invalidParams.Add(request.NewErrParamMinLen("ChannelName", 1)) } if s.RetentionPeriod != nil { if err := s.RetentionPeriod.Validate(); err != nil { invalidParams.AddNested("RetentionPeriod", err.(request.ErrInvalidParams)) } } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetChannelName sets the ChannelName field's value. func (s *UpdateChannelInput) SetChannelName(v string) *UpdateChannelInput { s.ChannelName = &v return s } // SetRetentionPeriod sets the RetentionPeriod field's value. func (s *UpdateChannelInput) SetRetentionPeriod(v *RetentionPeriod) *UpdateChannelInput { s.RetentionPeriod = v return s } type UpdateChannelOutput struct { _ struct{} `type:"structure"` } // String returns the string representation func (s UpdateChannelOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s UpdateChannelOutput) GoString() string { return s.String() } type UpdateDatasetInput struct { _ struct{} `type:"structure"` // A list of "DatasetAction" objects. Only one action is supported at this time. // // Actions is a required field Actions []*DatasetAction `locationName:"actions" min:"1" type:"list" required:"true"` // The name of the data set to update. // // DatasetName is a required field DatasetName *string `location:"uri" locationName:"datasetName" min:"1" type:"string" required:"true"` // A list of "DatasetTrigger" objects. The list can be empty or can contain // up to five DataSetTrigger objects. Triggers []*DatasetTrigger `locationName:"triggers" type:"list"` } // String returns the string representation func (s UpdateDatasetInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s UpdateDatasetInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *UpdateDatasetInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "UpdateDatasetInput"} if s.Actions == nil { invalidParams.Add(request.NewErrParamRequired("Actions")) } if s.Actions != nil && len(s.Actions) < 1 { invalidParams.Add(request.NewErrParamMinLen("Actions", 1)) } if s.DatasetName == nil { invalidParams.Add(request.NewErrParamRequired("DatasetName")) } if s.DatasetName != nil && len(*s.DatasetName) < 1 { invalidParams.Add(request.NewErrParamMinLen("DatasetName", 1)) } if s.Actions != nil { for i, v := range s.Actions { if v == nil { continue } if err := v.Validate(); err != nil { invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Actions", i), err.(request.ErrInvalidParams)) } } } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetActions sets the Actions field's value. func (s *UpdateDatasetInput) SetActions(v []*DatasetAction) *UpdateDatasetInput { s.Actions = v return s } // SetDatasetName sets the DatasetName field's value. func (s *UpdateDatasetInput) SetDatasetName(v string) *UpdateDatasetInput { s.DatasetName = &v return s } // SetTriggers sets the Triggers field's value. func (s *UpdateDatasetInput) SetTriggers(v []*DatasetTrigger) *UpdateDatasetInput { s.Triggers = v return s } type UpdateDatasetOutput struct { _ struct{} `type:"structure"` } // String returns the string representation func (s UpdateDatasetOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s UpdateDatasetOutput) GoString() string { return s.String() } type UpdateDatastoreInput struct { _ struct{} `type:"structure"` // The name of the data store to be updated. // // DatastoreName is a required field DatastoreName *string `location:"uri" locationName:"datastoreName" min:"1" type:"string" required:"true"` // How long, in days, message data is kept for the data store. RetentionPeriod *RetentionPeriod `locationName:"retentionPeriod" type:"structure"` } // String returns the string representation func (s UpdateDatastoreInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s UpdateDatastoreInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *UpdateDatastoreInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "UpdateDatastoreInput"} if s.DatastoreName == nil { invalidParams.Add(request.NewErrParamRequired("DatastoreName")) } if s.DatastoreName != nil && len(*s.DatastoreName) < 1 { invalidParams.Add(request.NewErrParamMinLen("DatastoreName", 1)) } if s.RetentionPeriod != nil { if err := s.RetentionPeriod.Validate(); err != nil { invalidParams.AddNested("RetentionPeriod", err.(request.ErrInvalidParams)) } } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetDatastoreName sets the DatastoreName field's value. func (s *UpdateDatastoreInput) SetDatastoreName(v string) *UpdateDatastoreInput { s.DatastoreName = &v return s } // SetRetentionPeriod sets the RetentionPeriod field's value. func (s *UpdateDatastoreInput) SetRetentionPeriod(v *RetentionPeriod) *UpdateDatastoreInput { s.RetentionPeriod = v return s } type UpdateDatastoreOutput struct { _ struct{} `type:"structure"` } // String returns the string representation func (s UpdateDatastoreOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s UpdateDatastoreOutput) GoString() string { return s.String() } type UpdatePipelineInput struct { _ struct{} `type:"structure"` // A list of "PipelineActivity" objects. // // The list can be 1-25 PipelineActivity objects. Activities perform transformations // on your messages, such as removing, renaming or adding message attributes; // filtering messages based on attribute values; invoking your Lambda functions // on messages for advanced processing; or performing mathematical transformations // to normalize device data. // // PipelineActivities is a required field PipelineActivities []*PipelineActivity `locationName:"pipelineActivities" min:"1" type:"list" required:"true"` // The name of the pipeline to update. // // PipelineName is a required field PipelineName *string `location:"uri" locationName:"pipelineName" min:"1" type:"string" required:"true"` } // String returns the string representation func (s UpdatePipelineInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s UpdatePipelineInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *UpdatePipelineInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "UpdatePipelineInput"} if s.PipelineActivities == nil { invalidParams.Add(request.NewErrParamRequired("PipelineActivities")) } if s.PipelineActivities != nil && len(s.PipelineActivities) < 1 { invalidParams.Add(request.NewErrParamMinLen("PipelineActivities", 1)) } if s.PipelineName == nil { invalidParams.Add(request.NewErrParamRequired("PipelineName")) } if s.PipelineName != nil && len(*s.PipelineName) < 1 { invalidParams.Add(request.NewErrParamMinLen("PipelineName", 1)) } if s.PipelineActivities != nil { for i, v := range s.PipelineActivities { if v == nil { continue } if err := v.Validate(); err != nil { invalidParams.AddNested(fmt.Sprintf("%s[%v]", "PipelineActivities", i), err.(request.ErrInvalidParams)) } } } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetPipelineActivities sets the PipelineActivities field's value. func (s *UpdatePipelineInput) SetPipelineActivities(v []*PipelineActivity) *UpdatePipelineInput { s.PipelineActivities = v return s } // SetPipelineName sets the PipelineName field's value. func (s *UpdatePipelineInput) SetPipelineName(v string) *UpdatePipelineInput { s.PipelineName = &v return s } type UpdatePipelineOutput struct { _ struct{} `type:"structure"` } // String returns the string representation func (s UpdatePipelineOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation func (s UpdatePipelineOutput) GoString() string { return s.String() } const ( // ChannelStatusCreating is a ChannelStatus enum value ChannelStatusCreating = "CREATING" // ChannelStatusActive is a ChannelStatus enum value ChannelStatusActive = "ACTIVE" // ChannelStatusDeleting is a ChannelStatus enum value ChannelStatusDeleting = "DELETING" ) const ( // DatasetContentStateCreating is a DatasetContentState enum value DatasetContentStateCreating = "CREATING" // DatasetContentStateSucceeded is a DatasetContentState enum value DatasetContentStateSucceeded = "SUCCEEDED" // DatasetContentStateFailed is a DatasetContentState enum value DatasetContentStateFailed = "FAILED" ) const ( // DatasetStatusCreating is a DatasetStatus enum value DatasetStatusCreating = "CREATING" // DatasetStatusActive is a DatasetStatus enum value DatasetStatusActive = "ACTIVE" // DatasetStatusDeleting is a DatasetStatus enum value DatasetStatusDeleting = "DELETING" ) const ( // DatastoreStatusCreating is a DatastoreStatus enum value DatastoreStatusCreating = "CREATING" // DatastoreStatusActive is a DatastoreStatus enum value DatastoreStatusActive = "ACTIVE" // DatastoreStatusDeleting is a DatastoreStatus enum value DatastoreStatusDeleting = "DELETING" ) const ( // LoggingLevelError is a LoggingLevel enum value LoggingLevelError = "ERROR" ) const ( // ReprocessingStatusRunning is a ReprocessingStatus enum value ReprocessingStatusRunning = "RUNNING" // ReprocessingStatusSucceeded is a ReprocessingStatus enum value ReprocessingStatusSucceeded = "SUCCEEDED" // ReprocessingStatusCancelled is a ReprocessingStatus enum value ReprocessingStatusCancelled = "CANCELLED" // ReprocessingStatusFailed is a ReprocessingStatus enum value ReprocessingStatusFailed = "FAILED" )