// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.

package cloudwatchlogs

import (
	"bytes"
	"fmt"
	"io"
	"sync"
	"time"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/awserr"
	"github.com/aws/aws-sdk-go/aws/awsutil"
	"github.com/aws/aws-sdk-go/aws/client"
	"github.com/aws/aws-sdk-go/aws/request"
	"github.com/aws/aws-sdk-go/private/protocol"
	"github.com/aws/aws-sdk-go/private/protocol/eventstream"
	"github.com/aws/aws-sdk-go/private/protocol/eventstream/eventstreamapi"
	"github.com/aws/aws-sdk-go/private/protocol/jsonrpc"
	"github.com/aws/aws-sdk-go/private/protocol/rest"
)

const opAssociateKmsKey = "AssociateKmsKey"

// AssociateKmsKeyRequest generates a "aws/request.Request" representing the
// client's request for the AssociateKmsKey operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// 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 AssociateKmsKey for more information on using the AssociateKmsKey
// 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 AssociateKmsKeyRequest method.
//	req, resp := client.AssociateKmsKeyRequest(params)
//
//	err := req.Send()
//	if err == nil { // resp is now filled
//	    fmt.Println(resp)
//	}
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/AssociateKmsKey
func (c *CloudWatchLogs) AssociateKmsKeyRequest(input *AssociateKmsKeyInput) (req *request.Request, output *AssociateKmsKeyOutput) {
	op := &request.Operation{
		Name:       opAssociateKmsKey,
		HTTPMethod: "POST",
		HTTPPath:   "/",
	}

	if input == nil {
		input = &AssociateKmsKeyInput{}
	}

	output = &AssociateKmsKeyOutput{}
	req = c.newRequest(op, input, output)
	req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
	return
}

// AssociateKmsKey API operation for Amazon CloudWatch Logs.
//
// Associates the specified KMS key with either one log group in the account,
// or with all stored CloudWatch Logs query insights results in the account.
//
// When you use AssociateKmsKey, you specify either the logGroupName parameter
// or the resourceIdentifier parameter. You can't specify both of those parameters
// in the same operation.
//
//   - Specify the logGroupName parameter to cause log events ingested into
//     that log group to be encrypted with that key. Only the log events ingested
//     after the key is associated are encrypted with that key. Associating a
//     KMS key with a log group overrides any existing associations between the
//     log group and a KMS key. After a KMS key is associated with a log group,
//     all newly ingested data for the log group is encrypted using the KMS key.
//     This association is stored as long as the data encrypted with the KMS
//     key is still within CloudWatch Logs. This enables CloudWatch Logs to decrypt
//     this data whenever it is requested. Associating a key with a log group
//     does not cause the results of queries of that log group to be encrypted
//     with that key. To have query results encrypted with a KMS key, you must
//     use an AssociateKmsKey operation with the resourceIdentifier parameter
//     that specifies a query-result resource.
//
//   - Specify the resourceIdentifier parameter with a query-result resource,
//     to use that key to encrypt the stored results of all future StartQuery
//     (https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_StartQuery.html)
//     operations in the account. The response from a GetQueryResults (https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_GetQueryResults.html)
//     operation will still return the query results in plain text. Even if you
//     have not associated a key with your query results, the query results are
//     encrypted when stored, using the default CloudWatch Logs method. If you
//     run a query from a monitoring account that queries logs in a source account,
//     the query results key from the monitoring account, if any, is used.
//
// If you delete the key that is used to encrypt log events or log group query
// results, then all the associated stored log events or query results that
// were encrypted with that key will be unencryptable and unusable.
//
// CloudWatch Logs supports only symmetric KMS keys. Do not associate an asymmetric
// KMS key with your log group or query results. For more information, see Using
// Symmetric and Asymmetric Keys (https://docs.aws.amazon.com/kms/latest/developerguide/symmetric-asymmetric.html).
//
// It can take up to 5 minutes for this operation to take effect.
//
// If you attempt to associate a KMS key with a log group but the KMS key does
// not exist or the KMS key is disabled, you receive an InvalidParameterException
// error.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon CloudWatch Logs's
// API operation AssociateKmsKey for usage and error information.
//
// Returned Error Types:
//
//   - InvalidParameterException
//     A parameter is specified incorrectly.
//
//   - ResourceNotFoundException
//     The specified resource does not exist.
//
//   - OperationAbortedException
//     Multiple concurrent requests to update the same resource were in conflict.
//
//   - ServiceUnavailableException
//     The service cannot complete the request.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/AssociateKmsKey
func (c *CloudWatchLogs) AssociateKmsKey(input *AssociateKmsKeyInput) (*AssociateKmsKeyOutput, error) {
	req, out := c.AssociateKmsKeyRequest(input)
	return out, req.Send()
}

// AssociateKmsKeyWithContext is the same as AssociateKmsKey with the addition of
// the ability to pass a context and additional request options.
//
// See AssociateKmsKey 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 *CloudWatchLogs) AssociateKmsKeyWithContext(ctx aws.Context, input *AssociateKmsKeyInput, opts ...request.Option) (*AssociateKmsKeyOutput, error) {
	req, out := c.AssociateKmsKeyRequest(input)
	req.SetContext(ctx)
	req.ApplyOptions(opts...)
	return out, req.Send()
}

const opCancelExportTask = "CancelExportTask"

// CancelExportTaskRequest generates a "aws/request.Request" representing the
// client's request for the CancelExportTask operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// 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 CancelExportTask for more information on using the CancelExportTask
// 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 CancelExportTaskRequest method.
//	req, resp := client.CancelExportTaskRequest(params)
//
//	err := req.Send()
//	if err == nil { // resp is now filled
//	    fmt.Println(resp)
//	}
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/CancelExportTask
func (c *CloudWatchLogs) CancelExportTaskRequest(input *CancelExportTaskInput) (req *request.Request, output *CancelExportTaskOutput) {
	op := &request.Operation{
		Name:       opCancelExportTask,
		HTTPMethod: "POST",
		HTTPPath:   "/",
	}

	if input == nil {
		input = &CancelExportTaskInput{}
	}

	output = &CancelExportTaskOutput{}
	req = c.newRequest(op, input, output)
	req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
	return
}

// CancelExportTask API operation for Amazon CloudWatch Logs.
//
// Cancels the specified export task.
//
// The task must be in the PENDING or RUNNING state.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon CloudWatch Logs's
// API operation CancelExportTask for usage and error information.
//
// Returned Error Types:
//
//   - InvalidParameterException
//     A parameter is specified incorrectly.
//
//   - ResourceNotFoundException
//     The specified resource does not exist.
//
//   - InvalidOperationException
//     The operation is not valid on the specified resource.
//
//   - ServiceUnavailableException
//     The service cannot complete the request.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/CancelExportTask
func (c *CloudWatchLogs) CancelExportTask(input *CancelExportTaskInput) (*CancelExportTaskOutput, error) {
	req, out := c.CancelExportTaskRequest(input)
	return out, req.Send()
}

// CancelExportTaskWithContext is the same as CancelExportTask with the addition of
// the ability to pass a context and additional request options.
//
// See CancelExportTask 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 *CloudWatchLogs) CancelExportTaskWithContext(ctx aws.Context, input *CancelExportTaskInput, opts ...request.Option) (*CancelExportTaskOutput, error) {
	req, out := c.CancelExportTaskRequest(input)
	req.SetContext(ctx)
	req.ApplyOptions(opts...)
	return out, req.Send()
}

const opCreateDelivery = "CreateDelivery"

// CreateDeliveryRequest generates a "aws/request.Request" representing the
// client's request for the CreateDelivery operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// 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 CreateDelivery for more information on using the CreateDelivery
// 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 CreateDeliveryRequest method.
//	req, resp := client.CreateDeliveryRequest(params)
//
//	err := req.Send()
//	if err == nil { // resp is now filled
//	    fmt.Println(resp)
//	}
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/CreateDelivery
func (c *CloudWatchLogs) CreateDeliveryRequest(input *CreateDeliveryInput) (req *request.Request, output *CreateDeliveryOutput) {
	op := &request.Operation{
		Name:       opCreateDelivery,
		HTTPMethod: "POST",
		HTTPPath:   "/",
	}

	if input == nil {
		input = &CreateDeliveryInput{}
	}

	output = &CreateDeliveryOutput{}
	req = c.newRequest(op, input, output)
	return
}

// CreateDelivery API operation for Amazon CloudWatch Logs.
//
// Creates a delivery. A delivery is a connection between a logical delivery
// source and a logical delivery destination that you have already created.
//
// Only some Amazon Web Services services support being configured as a delivery
// source using this operation. These services are listed as Supported [V2 Permissions]
// in the table at Enabling logging from Amazon Web Services services. (https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/AWS-logs-and-resource-policy.html)
//
// A delivery destination can represent a log group in CloudWatch Logs, an Amazon
// S3 bucket, or a delivery stream in Firehose.
//
// To configure logs delivery between a supported Amazon Web Services service
// and a destination, you must do the following:
//
//   - Create a delivery source, which is a logical object that represents
//     the resource that is actually sending the logs. For more information,
//     see PutDeliverySource (https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_PutDeliverySource.html).
//
//   - Create a delivery destination, which is a logical object that represents
//     the actual delivery destination. For more information, see PutDeliveryDestination
//     (https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_PutDeliveryDestination.html).
//
//   - If you are delivering logs cross-account, you must use PutDeliveryDestinationPolicy
//     (https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_PutDeliveryDestinationPolicy.html)
//     in the destination account to assign an IAM policy to the destination.
//     This policy allows delivery to that destination.
//
//   - Use CreateDelivery to create a delivery by pairing exactly one delivery
//     source and one delivery destination.
//
// You can configure a single delivery source to send logs to multiple destinations
// by creating multiple deliveries. You can also create multiple deliveries
// to configure multiple delivery sources to send logs to the same delivery
// destination.
//
// To update an existing delivery configuration, use UpdateDeliveryConfiguration
// (https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_UpdateDeliveryConfiguration.html).
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon CloudWatch Logs's
// API operation CreateDelivery for usage and error information.
//
// Returned Error Types:
//
//   - ServiceUnavailableException
//     The service cannot complete the request.
//
//   - ConflictException
//     This operation attempted to create a resource that already exists.
//
//   - ResourceNotFoundException
//     The specified resource does not exist.
//
//   - ValidationException
//     One of the parameters for the request is not valid.
//
//   - AccessDeniedException
//     You don't have sufficient permissions to perform this action.
//
//   - ServiceQuotaExceededException
//     This request exceeds a service quota.
//
//   - ThrottlingException
//     The request was throttled because of quota limits.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/CreateDelivery
func (c *CloudWatchLogs) CreateDelivery(input *CreateDeliveryInput) (*CreateDeliveryOutput, error) {
	req, out := c.CreateDeliveryRequest(input)
	return out, req.Send()
}

// CreateDeliveryWithContext is the same as CreateDelivery with the addition of
// the ability to pass a context and additional request options.
//
// See CreateDelivery 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 *CloudWatchLogs) CreateDeliveryWithContext(ctx aws.Context, input *CreateDeliveryInput, opts ...request.Option) (*CreateDeliveryOutput, error) {
	req, out := c.CreateDeliveryRequest(input)
	req.SetContext(ctx)
	req.ApplyOptions(opts...)
	return out, req.Send()
}

const opCreateExportTask = "CreateExportTask"

// CreateExportTaskRequest generates a "aws/request.Request" representing the
// client's request for the CreateExportTask operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// 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 CreateExportTask for more information on using the CreateExportTask
// 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 CreateExportTaskRequest method.
//	req, resp := client.CreateExportTaskRequest(params)
//
//	err := req.Send()
//	if err == nil { // resp is now filled
//	    fmt.Println(resp)
//	}
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/CreateExportTask
func (c *CloudWatchLogs) CreateExportTaskRequest(input *CreateExportTaskInput) (req *request.Request, output *CreateExportTaskOutput) {
	op := &request.Operation{
		Name:       opCreateExportTask,
		HTTPMethod: "POST",
		HTTPPath:   "/",
	}

	if input == nil {
		input = &CreateExportTaskInput{}
	}

	output = &CreateExportTaskOutput{}
	req = c.newRequest(op, input, output)
	return
}

// CreateExportTask API operation for Amazon CloudWatch Logs.
//
// Creates an export task so that you can efficiently export data from a log
// group to an Amazon S3 bucket. When you perform a CreateExportTask operation,
// you must use credentials that have permission to write to the S3 bucket that
// you specify as the destination.
//
// Exporting log data to S3 buckets that are encrypted by KMS is supported.
// Exporting log data to Amazon S3 buckets that have S3 Object Lock enabled
// with a retention period is also supported.
//
// Exporting to S3 buckets that are encrypted with AES-256 is supported.
//
// This is an asynchronous call. If all the required information is provided,
// this operation initiates an export task and responds with the ID of the task.
// After the task has started, you can use DescribeExportTasks (https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_DescribeExportTasks.html)
// to get the status of the export task. Each account can only have one active
// (RUNNING or PENDING) export task at a time. To cancel an export task, use
// CancelExportTask (https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_CancelExportTask.html).
//
// You can export logs from multiple log groups or multiple time ranges to the
// same S3 bucket. To separate log data for each export task, specify a prefix
// to be used as the Amazon S3 key prefix for all exported objects.
//
// We recommend that you don't regularly export to Amazon S3 as a way to continuously
// archive your logs. For that use case, we instead recommend that you use subscriptions.
// For more information about subscriptions, see Real-time processing of log
// data with subscriptions (https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/Subscriptions.html).
//
// Time-based sorting on chunks of log data inside an exported file is not guaranteed.
// You can sort the exported log field data by using Linux utilities.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon CloudWatch Logs's
// API operation CreateExportTask for usage and error information.
//
// Returned Error Types:
//
//   - InvalidParameterException
//     A parameter is specified incorrectly.
//
//   - LimitExceededException
//     You have reached the maximum number of resources that can be created.
//
//   - OperationAbortedException
//     Multiple concurrent requests to update the same resource were in conflict.
//
//   - ServiceUnavailableException
//     The service cannot complete the request.
//
//   - ResourceNotFoundException
//     The specified resource does not exist.
//
//   - ResourceAlreadyExistsException
//     The specified resource already exists.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/CreateExportTask
func (c *CloudWatchLogs) CreateExportTask(input *CreateExportTaskInput) (*CreateExportTaskOutput, error) {
	req, out := c.CreateExportTaskRequest(input)
	return out, req.Send()
}

// CreateExportTaskWithContext is the same as CreateExportTask with the addition of
// the ability to pass a context and additional request options.
//
// See CreateExportTask 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 *CloudWatchLogs) CreateExportTaskWithContext(ctx aws.Context, input *CreateExportTaskInput, opts ...request.Option) (*CreateExportTaskOutput, error) {
	req, out := c.CreateExportTaskRequest(input)
	req.SetContext(ctx)
	req.ApplyOptions(opts...)
	return out, req.Send()
}

const opCreateLogAnomalyDetector = "CreateLogAnomalyDetector"

// CreateLogAnomalyDetectorRequest generates a "aws/request.Request" representing the
// client's request for the CreateLogAnomalyDetector operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// 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 CreateLogAnomalyDetector for more information on using the CreateLogAnomalyDetector
// 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 CreateLogAnomalyDetectorRequest method.
//	req, resp := client.CreateLogAnomalyDetectorRequest(params)
//
//	err := req.Send()
//	if err == nil { // resp is now filled
//	    fmt.Println(resp)
//	}
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/CreateLogAnomalyDetector
func (c *CloudWatchLogs) CreateLogAnomalyDetectorRequest(input *CreateLogAnomalyDetectorInput) (req *request.Request, output *CreateLogAnomalyDetectorOutput) {
	op := &request.Operation{
		Name:       opCreateLogAnomalyDetector,
		HTTPMethod: "POST",
		HTTPPath:   "/",
	}

	if input == nil {
		input = &CreateLogAnomalyDetectorInput{}
	}

	output = &CreateLogAnomalyDetectorOutput{}
	req = c.newRequest(op, input, output)
	return
}

// CreateLogAnomalyDetector API operation for Amazon CloudWatch Logs.
//
// Creates an anomaly detector that regularly scans one or more log groups and
// look for patterns and anomalies in the logs.
//
// An anomaly detector can help surface issues by automatically discovering
// anomalies in your log event traffic. An anomaly detector uses machine learning
// algorithms to scan log events and find patterns. A pattern is a shared text
// structure that recurs among your log fields. Patterns provide a useful tool
// for analyzing large sets of logs because a large number of log events can
// often be compressed into a few patterns.
//
// The anomaly detector uses pattern recognition to find anomalies, which are
// unusual log events. It uses the evaluationFrequency to compare current log
// events and patterns with trained baselines.
//
// Fields within a pattern are called tokens. Fields that vary within a pattern,
// such as a request ID or timestamp, are referred to as dynamic tokens and
// represented by <*>.
//
// The following is an example of a pattern:
//
// [INFO] Request time: <*> ms
//
// This pattern represents log events like [INFO] Request time: 327 ms and other
// similar log events that differ only by the number, in this csse 327. When
// the pattern is displayed, the different numbers are replaced by <*>
//
// Any parts of log events that are masked as sensitive data are not scanned
// for anomalies. For more information about masking sensitive data, see Help
// protect sensitive log data with masking (https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/mask-sensitive-log-data.html).
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon CloudWatch Logs's
// API operation CreateLogAnomalyDetector for usage and error information.
//
// Returned Error Types:
//
//   - InvalidParameterException
//     A parameter is specified incorrectly.
//
//   - ResourceNotFoundException
//     The specified resource does not exist.
//
//   - ServiceUnavailableException
//     The service cannot complete the request.
//
//   - OperationAbortedException
//     Multiple concurrent requests to update the same resource were in conflict.
//
//   - LimitExceededException
//     You have reached the maximum number of resources that can be created.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/CreateLogAnomalyDetector
func (c *CloudWatchLogs) CreateLogAnomalyDetector(input *CreateLogAnomalyDetectorInput) (*CreateLogAnomalyDetectorOutput, error) {
	req, out := c.CreateLogAnomalyDetectorRequest(input)
	return out, req.Send()
}

// CreateLogAnomalyDetectorWithContext is the same as CreateLogAnomalyDetector with the addition of
// the ability to pass a context and additional request options.
//
// See CreateLogAnomalyDetector 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 *CloudWatchLogs) CreateLogAnomalyDetectorWithContext(ctx aws.Context, input *CreateLogAnomalyDetectorInput, opts ...request.Option) (*CreateLogAnomalyDetectorOutput, error) {
	req, out := c.CreateLogAnomalyDetectorRequest(input)
	req.SetContext(ctx)
	req.ApplyOptions(opts...)
	return out, req.Send()
}

const opCreateLogGroup = "CreateLogGroup"

// CreateLogGroupRequest generates a "aws/request.Request" representing the
// client's request for the CreateLogGroup operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// 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 CreateLogGroup for more information on using the CreateLogGroup
// 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 CreateLogGroupRequest method.
//	req, resp := client.CreateLogGroupRequest(params)
//
//	err := req.Send()
//	if err == nil { // resp is now filled
//	    fmt.Println(resp)
//	}
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/CreateLogGroup
func (c *CloudWatchLogs) CreateLogGroupRequest(input *CreateLogGroupInput) (req *request.Request, output *CreateLogGroupOutput) {
	op := &request.Operation{
		Name:       opCreateLogGroup,
		HTTPMethod: "POST",
		HTTPPath:   "/",
	}

	if input == nil {
		input = &CreateLogGroupInput{}
	}

	output = &CreateLogGroupOutput{}
	req = c.newRequest(op, input, output)
	req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
	return
}

// CreateLogGroup API operation for Amazon CloudWatch Logs.
//
// Creates a log group with the specified name. You can create up to 1,000,000
// log groups per Region per account.
//
// You must use the following guidelines when naming a log group:
//
//   - Log group names must be unique within a Region for an Amazon Web Services
//     account.
//
//   - Log group names can be between 1 and 512 characters long.
//
//   - Log group names consist of the following characters: a-z, A-Z, 0-9,
//     '_' (underscore), '-' (hyphen), '/' (forward slash), '.' (period), and
//     '#' (number sign)
//
//   - Log group names can't start with the string aws/
//
// When you create a log group, by default the log events in the log group do
// not expire. To set a retention policy so that events expire and are deleted
// after a specified time, use PutRetentionPolicy (https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_PutRetentionPolicy.html).
//
// If you associate an KMS key with the log group, ingested data is encrypted
// using the KMS key. This association is stored as long as the data encrypted
// with the KMS key is still within CloudWatch Logs. This enables CloudWatch
// Logs to decrypt this data whenever it is requested.
//
// If you attempt to associate a KMS key with the log group but the KMS key
// does not exist or the KMS key is disabled, you receive an InvalidParameterException
// error.
//
// CloudWatch Logs supports only symmetric KMS keys. Do not associate an asymmetric
// KMS key with your log group. For more information, see Using Symmetric and
// Asymmetric Keys (https://docs.aws.amazon.com/kms/latest/developerguide/symmetric-asymmetric.html).
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon CloudWatch Logs's
// API operation CreateLogGroup for usage and error information.
//
// Returned Error Types:
//
//   - InvalidParameterException
//     A parameter is specified incorrectly.
//
//   - ResourceAlreadyExistsException
//     The specified resource already exists.
//
//   - LimitExceededException
//     You have reached the maximum number of resources that can be created.
//
//   - OperationAbortedException
//     Multiple concurrent requests to update the same resource were in conflict.
//
//   - ServiceUnavailableException
//     The service cannot complete the request.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/CreateLogGroup
func (c *CloudWatchLogs) CreateLogGroup(input *CreateLogGroupInput) (*CreateLogGroupOutput, error) {
	req, out := c.CreateLogGroupRequest(input)
	return out, req.Send()
}

// CreateLogGroupWithContext is the same as CreateLogGroup with the addition of
// the ability to pass a context and additional request options.
//
// See CreateLogGroup 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 *CloudWatchLogs) CreateLogGroupWithContext(ctx aws.Context, input *CreateLogGroupInput, opts ...request.Option) (*CreateLogGroupOutput, error) {
	req, out := c.CreateLogGroupRequest(input)
	req.SetContext(ctx)
	req.ApplyOptions(opts...)
	return out, req.Send()
}

const opCreateLogStream = "CreateLogStream"

// CreateLogStreamRequest generates a "aws/request.Request" representing the
// client's request for the CreateLogStream operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// 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 CreateLogStream for more information on using the CreateLogStream
// 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 CreateLogStreamRequest method.
//	req, resp := client.CreateLogStreamRequest(params)
//
//	err := req.Send()
//	if err == nil { // resp is now filled
//	    fmt.Println(resp)
//	}
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/CreateLogStream
func (c *CloudWatchLogs) CreateLogStreamRequest(input *CreateLogStreamInput) (req *request.Request, output *CreateLogStreamOutput) {
	op := &request.Operation{
		Name:       opCreateLogStream,
		HTTPMethod: "POST",
		HTTPPath:   "/",
	}

	if input == nil {
		input = &CreateLogStreamInput{}
	}

	output = &CreateLogStreamOutput{}
	req = c.newRequest(op, input, output)
	req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
	return
}

// CreateLogStream API operation for Amazon CloudWatch Logs.
//
// Creates a log stream for the specified log group. A log stream is a sequence
// of log events that originate from a single source, such as an application
// instance or a resource that is being monitored.
//
// There is no limit on the number of log streams that you can create for a
// log group. There is a limit of 50 TPS on CreateLogStream operations, after
// which transactions are throttled.
//
// You must use the following guidelines when naming a log stream:
//
//   - Log stream names must be unique within the log group.
//
//   - Log stream names can be between 1 and 512 characters long.
//
//   - Don't use ':' (colon) or '*' (asterisk) characters.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon CloudWatch Logs's
// API operation CreateLogStream for usage and error information.
//
// Returned Error Types:
//
//   - InvalidParameterException
//     A parameter is specified incorrectly.
//
//   - ResourceAlreadyExistsException
//     The specified resource already exists.
//
//   - ResourceNotFoundException
//     The specified resource does not exist.
//
//   - ServiceUnavailableException
//     The service cannot complete the request.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/CreateLogStream
func (c *CloudWatchLogs) CreateLogStream(input *CreateLogStreamInput) (*CreateLogStreamOutput, error) {
	req, out := c.CreateLogStreamRequest(input)
	return out, req.Send()
}

// CreateLogStreamWithContext is the same as CreateLogStream with the addition of
// the ability to pass a context and additional request options.
//
// See CreateLogStream 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 *CloudWatchLogs) CreateLogStreamWithContext(ctx aws.Context, input *CreateLogStreamInput, opts ...request.Option) (*CreateLogStreamOutput, error) {
	req, out := c.CreateLogStreamRequest(input)
	req.SetContext(ctx)
	req.ApplyOptions(opts...)
	return out, req.Send()
}

const opDeleteAccountPolicy = "DeleteAccountPolicy"

// DeleteAccountPolicyRequest generates a "aws/request.Request" representing the
// client's request for the DeleteAccountPolicy operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// 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 DeleteAccountPolicy for more information on using the DeleteAccountPolicy
// 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 DeleteAccountPolicyRequest method.
//	req, resp := client.DeleteAccountPolicyRequest(params)
//
//	err := req.Send()
//	if err == nil { // resp is now filled
//	    fmt.Println(resp)
//	}
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DeleteAccountPolicy
func (c *CloudWatchLogs) DeleteAccountPolicyRequest(input *DeleteAccountPolicyInput) (req *request.Request, output *DeleteAccountPolicyOutput) {
	op := &request.Operation{
		Name:       opDeleteAccountPolicy,
		HTTPMethod: "POST",
		HTTPPath:   "/",
	}

	if input == nil {
		input = &DeleteAccountPolicyInput{}
	}

	output = &DeleteAccountPolicyOutput{}
	req = c.newRequest(op, input, output)
	req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
	return
}

// DeleteAccountPolicy API operation for Amazon CloudWatch Logs.
//
// Deletes a CloudWatch Logs account policy. This stops the account-wide policy
// from applying to log groups in the account. If you delete a data protection
// policy or subscription filter policy, any log-group level policies of those
// types remain in effect.
//
// To use this operation, you must be signed on with the correct permissions
// depending on the type of policy that you are deleting.
//
//   - To delete a data protection policy, you must have the logs:DeleteDataProtectionPolicy
//     and logs:DeleteAccountPolicy permissions.
//
//   - To delete a subscription filter policy, you must have the logs:DeleteSubscriptionFilter
//     and logs:DeleteAccountPolicy permissions.
//
//   - To delete a transformer policy, you must have the logs:DeleteTransformer
//     and logs:DeleteAccountPolicy permissions.
//
//   - To delete a field index policy, you must have the logs:DeleteIndexPolicy
//     and logs:DeleteAccountPolicy permissions.
//
// If you delete a field index policy, the indexing of the log events that happened
// before you deleted the policy will still be used for up to 30 days to improve
// CloudWatch Logs Insights queries.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon CloudWatch Logs's
// API operation DeleteAccountPolicy for usage and error information.
//
// Returned Error Types:
//
//   - InvalidParameterException
//     A parameter is specified incorrectly.
//
//   - ResourceNotFoundException
//     The specified resource does not exist.
//
//   - ServiceUnavailableException
//     The service cannot complete the request.
//
//   - OperationAbortedException
//     Multiple concurrent requests to update the same resource were in conflict.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DeleteAccountPolicy
func (c *CloudWatchLogs) DeleteAccountPolicy(input *DeleteAccountPolicyInput) (*DeleteAccountPolicyOutput, error) {
	req, out := c.DeleteAccountPolicyRequest(input)
	return out, req.Send()
}

// DeleteAccountPolicyWithContext is the same as DeleteAccountPolicy with the addition of
// the ability to pass a context and additional request options.
//
// See DeleteAccountPolicy 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 *CloudWatchLogs) DeleteAccountPolicyWithContext(ctx aws.Context, input *DeleteAccountPolicyInput, opts ...request.Option) (*DeleteAccountPolicyOutput, error) {
	req, out := c.DeleteAccountPolicyRequest(input)
	req.SetContext(ctx)
	req.ApplyOptions(opts...)
	return out, req.Send()
}

const opDeleteDataProtectionPolicy = "DeleteDataProtectionPolicy"

// DeleteDataProtectionPolicyRequest generates a "aws/request.Request" representing the
// client's request for the DeleteDataProtectionPolicy operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// 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 DeleteDataProtectionPolicy for more information on using the DeleteDataProtectionPolicy
// 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 DeleteDataProtectionPolicyRequest method.
//	req, resp := client.DeleteDataProtectionPolicyRequest(params)
//
//	err := req.Send()
//	if err == nil { // resp is now filled
//	    fmt.Println(resp)
//	}
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DeleteDataProtectionPolicy
func (c *CloudWatchLogs) DeleteDataProtectionPolicyRequest(input *DeleteDataProtectionPolicyInput) (req *request.Request, output *DeleteDataProtectionPolicyOutput) {
	op := &request.Operation{
		Name:       opDeleteDataProtectionPolicy,
		HTTPMethod: "POST",
		HTTPPath:   "/",
	}

	if input == nil {
		input = &DeleteDataProtectionPolicyInput{}
	}

	output = &DeleteDataProtectionPolicyOutput{}
	req = c.newRequest(op, input, output)
	req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
	return
}

// DeleteDataProtectionPolicy API operation for Amazon CloudWatch Logs.
//
// Deletes the data protection policy from the specified log group.
//
// For more information about data protection policies, see PutDataProtectionPolicy
// (https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_PutDataProtectionPolicy.html).
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon CloudWatch Logs's
// API operation DeleteDataProtectionPolicy for usage and error information.
//
// Returned Error Types:
//
//   - InvalidParameterException
//     A parameter is specified incorrectly.
//
//   - OperationAbortedException
//     Multiple concurrent requests to update the same resource were in conflict.
//
//   - ResourceNotFoundException
//     The specified resource does not exist.
//
//   - ServiceUnavailableException
//     The service cannot complete the request.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DeleteDataProtectionPolicy
func (c *CloudWatchLogs) DeleteDataProtectionPolicy(input *DeleteDataProtectionPolicyInput) (*DeleteDataProtectionPolicyOutput, error) {
	req, out := c.DeleteDataProtectionPolicyRequest(input)
	return out, req.Send()
}

// DeleteDataProtectionPolicyWithContext is the same as DeleteDataProtectionPolicy with the addition of
// the ability to pass a context and additional request options.
//
// See DeleteDataProtectionPolicy 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 *CloudWatchLogs) DeleteDataProtectionPolicyWithContext(ctx aws.Context, input *DeleteDataProtectionPolicyInput, opts ...request.Option) (*DeleteDataProtectionPolicyOutput, error) {
	req, out := c.DeleteDataProtectionPolicyRequest(input)
	req.SetContext(ctx)
	req.ApplyOptions(opts...)
	return out, req.Send()
}

const opDeleteDelivery = "DeleteDelivery"

// DeleteDeliveryRequest generates a "aws/request.Request" representing the
// client's request for the DeleteDelivery operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// 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 DeleteDelivery for more information on using the DeleteDelivery
// 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 DeleteDeliveryRequest method.
//	req, resp := client.DeleteDeliveryRequest(params)
//
//	err := req.Send()
//	if err == nil { // resp is now filled
//	    fmt.Println(resp)
//	}
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DeleteDelivery
func (c *CloudWatchLogs) DeleteDeliveryRequest(input *DeleteDeliveryInput) (req *request.Request, output *DeleteDeliveryOutput) {
	op := &request.Operation{
		Name:       opDeleteDelivery,
		HTTPMethod: "POST",
		HTTPPath:   "/",
	}

	if input == nil {
		input = &DeleteDeliveryInput{}
	}

	output = &DeleteDeliveryOutput{}
	req = c.newRequest(op, input, output)
	req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
	return
}

// DeleteDelivery API operation for Amazon CloudWatch Logs.
//
// Deletes a delivery. A delivery is a connection between a logical delivery
// source and a logical delivery destination. Deleting a delivery only deletes
// the connection between the delivery source and delivery destination. It does
// not delete the delivery destination or the delivery source.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon CloudWatch Logs's
// API operation DeleteDelivery for usage and error information.
//
// Returned Error Types:
//
//   - ResourceNotFoundException
//     The specified resource does not exist.
//
//   - ServiceUnavailableException
//     The service cannot complete the request.
//
//   - ConflictException
//     This operation attempted to create a resource that already exists.
//
//   - ValidationException
//     One of the parameters for the request is not valid.
//
//   - ServiceQuotaExceededException
//     This request exceeds a service quota.
//
//   - ThrottlingException
//     The request was throttled because of quota limits.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DeleteDelivery
func (c *CloudWatchLogs) DeleteDelivery(input *DeleteDeliveryInput) (*DeleteDeliveryOutput, error) {
	req, out := c.DeleteDeliveryRequest(input)
	return out, req.Send()
}

// DeleteDeliveryWithContext is the same as DeleteDelivery with the addition of
// the ability to pass a context and additional request options.
//
// See DeleteDelivery 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 *CloudWatchLogs) DeleteDeliveryWithContext(ctx aws.Context, input *DeleteDeliveryInput, opts ...request.Option) (*DeleteDeliveryOutput, error) {
	req, out := c.DeleteDeliveryRequest(input)
	req.SetContext(ctx)
	req.ApplyOptions(opts...)
	return out, req.Send()
}

const opDeleteDeliveryDestination = "DeleteDeliveryDestination"

// DeleteDeliveryDestinationRequest generates a "aws/request.Request" representing the
// client's request for the DeleteDeliveryDestination operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// 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 DeleteDeliveryDestination for more information on using the DeleteDeliveryDestination
// 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 DeleteDeliveryDestinationRequest method.
//	req, resp := client.DeleteDeliveryDestinationRequest(params)
//
//	err := req.Send()
//	if err == nil { // resp is now filled
//	    fmt.Println(resp)
//	}
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DeleteDeliveryDestination
func (c *CloudWatchLogs) DeleteDeliveryDestinationRequest(input *DeleteDeliveryDestinationInput) (req *request.Request, output *DeleteDeliveryDestinationOutput) {
	op := &request.Operation{
		Name:       opDeleteDeliveryDestination,
		HTTPMethod: "POST",
		HTTPPath:   "/",
	}

	if input == nil {
		input = &DeleteDeliveryDestinationInput{}
	}

	output = &DeleteDeliveryDestinationOutput{}
	req = c.newRequest(op, input, output)
	req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
	return
}

// DeleteDeliveryDestination API operation for Amazon CloudWatch Logs.
//
// Deletes a delivery destination. A delivery is a connection between a logical
// delivery source and a logical delivery destination.
//
// You can't delete a delivery destination if any current deliveries are associated
// with it. To find whether any deliveries are associated with this delivery
// destination, use the DescribeDeliveries (https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_DescribeDeliveries.html)
// operation and check the deliveryDestinationArn field in the results.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon CloudWatch Logs's
// API operation DeleteDeliveryDestination for usage and error information.
//
// Returned Error Types:
//
//   - ResourceNotFoundException
//     The specified resource does not exist.
//
//   - ServiceUnavailableException
//     The service cannot complete the request.
//
//   - ConflictException
//     This operation attempted to create a resource that already exists.
//
//   - ValidationException
//     One of the parameters for the request is not valid.
//
//   - ServiceQuotaExceededException
//     This request exceeds a service quota.
//
//   - ThrottlingException
//     The request was throttled because of quota limits.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DeleteDeliveryDestination
func (c *CloudWatchLogs) DeleteDeliveryDestination(input *DeleteDeliveryDestinationInput) (*DeleteDeliveryDestinationOutput, error) {
	req, out := c.DeleteDeliveryDestinationRequest(input)
	return out, req.Send()
}

// DeleteDeliveryDestinationWithContext is the same as DeleteDeliveryDestination with the addition of
// the ability to pass a context and additional request options.
//
// See DeleteDeliveryDestination 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 *CloudWatchLogs) DeleteDeliveryDestinationWithContext(ctx aws.Context, input *DeleteDeliveryDestinationInput, opts ...request.Option) (*DeleteDeliveryDestinationOutput, error) {
	req, out := c.DeleteDeliveryDestinationRequest(input)
	req.SetContext(ctx)
	req.ApplyOptions(opts...)
	return out, req.Send()
}

const opDeleteDeliveryDestinationPolicy = "DeleteDeliveryDestinationPolicy"

// DeleteDeliveryDestinationPolicyRequest generates a "aws/request.Request" representing the
// client's request for the DeleteDeliveryDestinationPolicy operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// 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 DeleteDeliveryDestinationPolicy for more information on using the DeleteDeliveryDestinationPolicy
// 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 DeleteDeliveryDestinationPolicyRequest method.
//	req, resp := client.DeleteDeliveryDestinationPolicyRequest(params)
//
//	err := req.Send()
//	if err == nil { // resp is now filled
//	    fmt.Println(resp)
//	}
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DeleteDeliveryDestinationPolicy
func (c *CloudWatchLogs) DeleteDeliveryDestinationPolicyRequest(input *DeleteDeliveryDestinationPolicyInput) (req *request.Request, output *DeleteDeliveryDestinationPolicyOutput) {
	op := &request.Operation{
		Name:       opDeleteDeliveryDestinationPolicy,
		HTTPMethod: "POST",
		HTTPPath:   "/",
	}

	if input == nil {
		input = &DeleteDeliveryDestinationPolicyInput{}
	}

	output = &DeleteDeliveryDestinationPolicyOutput{}
	req = c.newRequest(op, input, output)
	req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
	return
}

// DeleteDeliveryDestinationPolicy API operation for Amazon CloudWatch Logs.
//
// Deletes a delivery destination policy. For more information about these policies,
// see PutDeliveryDestinationPolicy (https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_PutDeliveryDestinationPolicy.html).
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon CloudWatch Logs's
// API operation DeleteDeliveryDestinationPolicy for usage and error information.
//
// Returned Error Types:
//
//   - ServiceUnavailableException
//     The service cannot complete the request.
//
//   - ValidationException
//     One of the parameters for the request is not valid.
//
//   - ResourceNotFoundException
//     The specified resource does not exist.
//
//   - ConflictException
//     This operation attempted to create a resource that already exists.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DeleteDeliveryDestinationPolicy
func (c *CloudWatchLogs) DeleteDeliveryDestinationPolicy(input *DeleteDeliveryDestinationPolicyInput) (*DeleteDeliveryDestinationPolicyOutput, error) {
	req, out := c.DeleteDeliveryDestinationPolicyRequest(input)
	return out, req.Send()
}

// DeleteDeliveryDestinationPolicyWithContext is the same as DeleteDeliveryDestinationPolicy with the addition of
// the ability to pass a context and additional request options.
//
// See DeleteDeliveryDestinationPolicy 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 *CloudWatchLogs) DeleteDeliveryDestinationPolicyWithContext(ctx aws.Context, input *DeleteDeliveryDestinationPolicyInput, opts ...request.Option) (*DeleteDeliveryDestinationPolicyOutput, error) {
	req, out := c.DeleteDeliveryDestinationPolicyRequest(input)
	req.SetContext(ctx)
	req.ApplyOptions(opts...)
	return out, req.Send()
}

const opDeleteDeliverySource = "DeleteDeliverySource"

// DeleteDeliverySourceRequest generates a "aws/request.Request" representing the
// client's request for the DeleteDeliverySource operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// 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 DeleteDeliverySource for more information on using the DeleteDeliverySource
// 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 DeleteDeliverySourceRequest method.
//	req, resp := client.DeleteDeliverySourceRequest(params)
//
//	err := req.Send()
//	if err == nil { // resp is now filled
//	    fmt.Println(resp)
//	}
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DeleteDeliverySource
func (c *CloudWatchLogs) DeleteDeliverySourceRequest(input *DeleteDeliverySourceInput) (req *request.Request, output *DeleteDeliverySourceOutput) {
	op := &request.Operation{
		Name:       opDeleteDeliverySource,
		HTTPMethod: "POST",
		HTTPPath:   "/",
	}

	if input == nil {
		input = &DeleteDeliverySourceInput{}
	}

	output = &DeleteDeliverySourceOutput{}
	req = c.newRequest(op, input, output)
	req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
	return
}

// DeleteDeliverySource API operation for Amazon CloudWatch Logs.
//
// Deletes a delivery source. A delivery is a connection between a logical delivery
// source and a logical delivery destination.
//
// You can't delete a delivery source if any current deliveries are associated
// with it. To find whether any deliveries are associated with this delivery
// source, use the DescribeDeliveries (https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_DescribeDeliveries.html)
// operation and check the deliverySourceName field in the results.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon CloudWatch Logs's
// API operation DeleteDeliverySource for usage and error information.
//
// Returned Error Types:
//
//   - ResourceNotFoundException
//     The specified resource does not exist.
//
//   - ServiceUnavailableException
//     The service cannot complete the request.
//
//   - ConflictException
//     This operation attempted to create a resource that already exists.
//
//   - ValidationException
//     One of the parameters for the request is not valid.
//
//   - ServiceQuotaExceededException
//     This request exceeds a service quota.
//
//   - ThrottlingException
//     The request was throttled because of quota limits.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DeleteDeliverySource
func (c *CloudWatchLogs) DeleteDeliverySource(input *DeleteDeliverySourceInput) (*DeleteDeliverySourceOutput, error) {
	req, out := c.DeleteDeliverySourceRequest(input)
	return out, req.Send()
}

// DeleteDeliverySourceWithContext is the same as DeleteDeliverySource with the addition of
// the ability to pass a context and additional request options.
//
// See DeleteDeliverySource 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 *CloudWatchLogs) DeleteDeliverySourceWithContext(ctx aws.Context, input *DeleteDeliverySourceInput, opts ...request.Option) (*DeleteDeliverySourceOutput, error) {
	req, out := c.DeleteDeliverySourceRequest(input)
	req.SetContext(ctx)
	req.ApplyOptions(opts...)
	return out, req.Send()
}

const opDeleteDestination = "DeleteDestination"

// DeleteDestinationRequest generates a "aws/request.Request" representing the
// client's request for the DeleteDestination operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// 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 DeleteDestination for more information on using the DeleteDestination
// 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 DeleteDestinationRequest method.
//	req, resp := client.DeleteDestinationRequest(params)
//
//	err := req.Send()
//	if err == nil { // resp is now filled
//	    fmt.Println(resp)
//	}
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DeleteDestination
func (c *CloudWatchLogs) DeleteDestinationRequest(input *DeleteDestinationInput) (req *request.Request, output *DeleteDestinationOutput) {
	op := &request.Operation{
		Name:       opDeleteDestination,
		HTTPMethod: "POST",
		HTTPPath:   "/",
	}

	if input == nil {
		input = &DeleteDestinationInput{}
	}

	output = &DeleteDestinationOutput{}
	req = c.newRequest(op, input, output)
	req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
	return
}

// DeleteDestination API operation for Amazon CloudWatch Logs.
//
// Deletes the specified destination, and eventually disables all the subscription
// filters that publish to it. This operation does not delete the physical resource
// encapsulated by the destination.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon CloudWatch Logs's
// API operation DeleteDestination for usage and error information.
//
// Returned Error Types:
//
//   - InvalidParameterException
//     A parameter is specified incorrectly.
//
//   - ResourceNotFoundException
//     The specified resource does not exist.
//
//   - OperationAbortedException
//     Multiple concurrent requests to update the same resource were in conflict.
//
//   - ServiceUnavailableException
//     The service cannot complete the request.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DeleteDestination
func (c *CloudWatchLogs) DeleteDestination(input *DeleteDestinationInput) (*DeleteDestinationOutput, error) {
	req, out := c.DeleteDestinationRequest(input)
	return out, req.Send()
}

// DeleteDestinationWithContext is the same as DeleteDestination with the addition of
// the ability to pass a context and additional request options.
//
// See DeleteDestination 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 *CloudWatchLogs) DeleteDestinationWithContext(ctx aws.Context, input *DeleteDestinationInput, opts ...request.Option) (*DeleteDestinationOutput, error) {
	req, out := c.DeleteDestinationRequest(input)
	req.SetContext(ctx)
	req.ApplyOptions(opts...)
	return out, req.Send()
}

const opDeleteIndexPolicy = "DeleteIndexPolicy"

// DeleteIndexPolicyRequest generates a "aws/request.Request" representing the
// client's request for the DeleteIndexPolicy operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// 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 DeleteIndexPolicy for more information on using the DeleteIndexPolicy
// 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 DeleteIndexPolicyRequest method.
//	req, resp := client.DeleteIndexPolicyRequest(params)
//
//	err := req.Send()
//	if err == nil { // resp is now filled
//	    fmt.Println(resp)
//	}
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DeleteIndexPolicy
func (c *CloudWatchLogs) DeleteIndexPolicyRequest(input *DeleteIndexPolicyInput) (req *request.Request, output *DeleteIndexPolicyOutput) {
	op := &request.Operation{
		Name:       opDeleteIndexPolicy,
		HTTPMethod: "POST",
		HTTPPath:   "/",
	}

	if input == nil {
		input = &DeleteIndexPolicyInput{}
	}

	output = &DeleteIndexPolicyOutput{}
	req = c.newRequest(op, input, output)
	req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
	return
}

// DeleteIndexPolicy API operation for Amazon CloudWatch Logs.
//
// Deletes a log-group level field index policy that was applied to a single
// log group. The indexing of the log events that happened before you delete
// the policy will still be used for as many as 30 days to improve CloudWatch
// Logs Insights queries.
//
// You can't use this operation to delete an account-level index policy. Instead,
// use DeletAccountPolicy (https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_DeleteAccountPolicy.html).
//
// If you delete a log-group level field index policy and there is an account-level
// field index policy, in a few minutes the log group begins using that account-wide
// policy to index new incoming log events.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon CloudWatch Logs's
// API operation DeleteIndexPolicy for usage and error information.
//
// Returned Error Types:
//
//   - InvalidParameterException
//     A parameter is specified incorrectly.
//
//   - ResourceNotFoundException
//     The specified resource does not exist.
//
//   - LimitExceededException
//     You have reached the maximum number of resources that can be created.
//
//   - OperationAbortedException
//     Multiple concurrent requests to update the same resource were in conflict.
//
//   - ServiceUnavailableException
//     The service cannot complete the request.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DeleteIndexPolicy
func (c *CloudWatchLogs) DeleteIndexPolicy(input *DeleteIndexPolicyInput) (*DeleteIndexPolicyOutput, error) {
	req, out := c.DeleteIndexPolicyRequest(input)
	return out, req.Send()
}

// DeleteIndexPolicyWithContext is the same as DeleteIndexPolicy with the addition of
// the ability to pass a context and additional request options.
//
// See DeleteIndexPolicy 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 *CloudWatchLogs) DeleteIndexPolicyWithContext(ctx aws.Context, input *DeleteIndexPolicyInput, opts ...request.Option) (*DeleteIndexPolicyOutput, error) {
	req, out := c.DeleteIndexPolicyRequest(input)
	req.SetContext(ctx)
	req.ApplyOptions(opts...)
	return out, req.Send()
}

const opDeleteIntegration = "DeleteIntegration"

// DeleteIntegrationRequest generates a "aws/request.Request" representing the
// client's request for the DeleteIntegration operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// 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 DeleteIntegration for more information on using the DeleteIntegration
// 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 DeleteIntegrationRequest method.
//	req, resp := client.DeleteIntegrationRequest(params)
//
//	err := req.Send()
//	if err == nil { // resp is now filled
//	    fmt.Println(resp)
//	}
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DeleteIntegration
func (c *CloudWatchLogs) DeleteIntegrationRequest(input *DeleteIntegrationInput) (req *request.Request, output *DeleteIntegrationOutput) {
	op := &request.Operation{
		Name:       opDeleteIntegration,
		HTTPMethod: "POST",
		HTTPPath:   "/",
	}

	if input == nil {
		input = &DeleteIntegrationInput{}
	}

	output = &DeleteIntegrationOutput{}
	req = c.newRequest(op, input, output)
	req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
	return
}

// DeleteIntegration API operation for Amazon CloudWatch Logs.
//
// Deletes the integration between CloudWatch Logs and OpenSearch Service. If
// your integration has active vended logs dashboards, you must specify true
// for the force parameter, otherwise the operation will fail. If you delete
// the integration by setting force to true, all your vended logs dashboards
// powered by OpenSearch Service will be deleted and the data that was on them
// will no longer be accessible.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon CloudWatch Logs's
// API operation DeleteIntegration for usage and error information.
//
// Returned Error Types:
//
//   - InvalidParameterException
//     A parameter is specified incorrectly.
//
//   - ResourceNotFoundException
//     The specified resource does not exist.
//
//   - ServiceUnavailableException
//     The service cannot complete the request.
//
//   - ValidationException
//     One of the parameters for the request is not valid.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DeleteIntegration
func (c *CloudWatchLogs) DeleteIntegration(input *DeleteIntegrationInput) (*DeleteIntegrationOutput, error) {
	req, out := c.DeleteIntegrationRequest(input)
	return out, req.Send()
}

// DeleteIntegrationWithContext is the same as DeleteIntegration with the addition of
// the ability to pass a context and additional request options.
//
// See DeleteIntegration 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 *CloudWatchLogs) DeleteIntegrationWithContext(ctx aws.Context, input *DeleteIntegrationInput, opts ...request.Option) (*DeleteIntegrationOutput, error) {
	req, out := c.DeleteIntegrationRequest(input)
	req.SetContext(ctx)
	req.ApplyOptions(opts...)
	return out, req.Send()
}

const opDeleteLogAnomalyDetector = "DeleteLogAnomalyDetector"

// DeleteLogAnomalyDetectorRequest generates a "aws/request.Request" representing the
// client's request for the DeleteLogAnomalyDetector operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// 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 DeleteLogAnomalyDetector for more information on using the DeleteLogAnomalyDetector
// 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 DeleteLogAnomalyDetectorRequest method.
//	req, resp := client.DeleteLogAnomalyDetectorRequest(params)
//
//	err := req.Send()
//	if err == nil { // resp is now filled
//	    fmt.Println(resp)
//	}
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DeleteLogAnomalyDetector
func (c *CloudWatchLogs) DeleteLogAnomalyDetectorRequest(input *DeleteLogAnomalyDetectorInput) (req *request.Request, output *DeleteLogAnomalyDetectorOutput) {
	op := &request.Operation{
		Name:       opDeleteLogAnomalyDetector,
		HTTPMethod: "POST",
		HTTPPath:   "/",
	}

	if input == nil {
		input = &DeleteLogAnomalyDetectorInput{}
	}

	output = &DeleteLogAnomalyDetectorOutput{}
	req = c.newRequest(op, input, output)
	req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
	return
}

// DeleteLogAnomalyDetector API operation for Amazon CloudWatch Logs.
//
// Deletes the specified CloudWatch Logs anomaly detector.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon CloudWatch Logs's
// API operation DeleteLogAnomalyDetector for usage and error information.
//
// Returned Error Types:
//
//   - InvalidParameterException
//     A parameter is specified incorrectly.
//
//   - ResourceNotFoundException
//     The specified resource does not exist.
//
//   - ServiceUnavailableException
//     The service cannot complete the request.
//
//   - OperationAbortedException
//     Multiple concurrent requests to update the same resource were in conflict.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DeleteLogAnomalyDetector
func (c *CloudWatchLogs) DeleteLogAnomalyDetector(input *DeleteLogAnomalyDetectorInput) (*DeleteLogAnomalyDetectorOutput, error) {
	req, out := c.DeleteLogAnomalyDetectorRequest(input)
	return out, req.Send()
}

// DeleteLogAnomalyDetectorWithContext is the same as DeleteLogAnomalyDetector with the addition of
// the ability to pass a context and additional request options.
//
// See DeleteLogAnomalyDetector 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 *CloudWatchLogs) DeleteLogAnomalyDetectorWithContext(ctx aws.Context, input *DeleteLogAnomalyDetectorInput, opts ...request.Option) (*DeleteLogAnomalyDetectorOutput, error) {
	req, out := c.DeleteLogAnomalyDetectorRequest(input)
	req.SetContext(ctx)
	req.ApplyOptions(opts...)
	return out, req.Send()
}

const opDeleteLogGroup = "DeleteLogGroup"

// DeleteLogGroupRequest generates a "aws/request.Request" representing the
// client's request for the DeleteLogGroup operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// 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 DeleteLogGroup for more information on using the DeleteLogGroup
// 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 DeleteLogGroupRequest method.
//	req, resp := client.DeleteLogGroupRequest(params)
//
//	err := req.Send()
//	if err == nil { // resp is now filled
//	    fmt.Println(resp)
//	}
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DeleteLogGroup
func (c *CloudWatchLogs) DeleteLogGroupRequest(input *DeleteLogGroupInput) (req *request.Request, output *DeleteLogGroupOutput) {
	op := &request.Operation{
		Name:       opDeleteLogGroup,
		HTTPMethod: "POST",
		HTTPPath:   "/",
	}

	if input == nil {
		input = &DeleteLogGroupInput{}
	}

	output = &DeleteLogGroupOutput{}
	req = c.newRequest(op, input, output)
	req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
	return
}

// DeleteLogGroup API operation for Amazon CloudWatch Logs.
//
// Deletes the specified log group and permanently deletes all the archived
// log events associated with the log group.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon CloudWatch Logs's
// API operation DeleteLogGroup for usage and error information.
//
// Returned Error Types:
//
//   - InvalidParameterException
//     A parameter is specified incorrectly.
//
//   - ResourceNotFoundException
//     The specified resource does not exist.
//
//   - OperationAbortedException
//     Multiple concurrent requests to update the same resource were in conflict.
//
//   - ServiceUnavailableException
//     The service cannot complete the request.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DeleteLogGroup
func (c *CloudWatchLogs) DeleteLogGroup(input *DeleteLogGroupInput) (*DeleteLogGroupOutput, error) {
	req, out := c.DeleteLogGroupRequest(input)
	return out, req.Send()
}

// DeleteLogGroupWithContext is the same as DeleteLogGroup with the addition of
// the ability to pass a context and additional request options.
//
// See DeleteLogGroup 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 *CloudWatchLogs) DeleteLogGroupWithContext(ctx aws.Context, input *DeleteLogGroupInput, opts ...request.Option) (*DeleteLogGroupOutput, error) {
	req, out := c.DeleteLogGroupRequest(input)
	req.SetContext(ctx)
	req.ApplyOptions(opts...)
	return out, req.Send()
}

const opDeleteLogStream = "DeleteLogStream"

// DeleteLogStreamRequest generates a "aws/request.Request" representing the
// client's request for the DeleteLogStream operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// 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 DeleteLogStream for more information on using the DeleteLogStream
// 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 DeleteLogStreamRequest method.
//	req, resp := client.DeleteLogStreamRequest(params)
//
//	err := req.Send()
//	if err == nil { // resp is now filled
//	    fmt.Println(resp)
//	}
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DeleteLogStream
func (c *CloudWatchLogs) DeleteLogStreamRequest(input *DeleteLogStreamInput) (req *request.Request, output *DeleteLogStreamOutput) {
	op := &request.Operation{
		Name:       opDeleteLogStream,
		HTTPMethod: "POST",
		HTTPPath:   "/",
	}

	if input == nil {
		input = &DeleteLogStreamInput{}
	}

	output = &DeleteLogStreamOutput{}
	req = c.newRequest(op, input, output)
	req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
	return
}

// DeleteLogStream API operation for Amazon CloudWatch Logs.
//
// Deletes the specified log stream and permanently deletes all the archived
// log events associated with the log stream.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon CloudWatch Logs's
// API operation DeleteLogStream for usage and error information.
//
// Returned Error Types:
//
//   - InvalidParameterException
//     A parameter is specified incorrectly.
//
//   - ResourceNotFoundException
//     The specified resource does not exist.
//
//   - OperationAbortedException
//     Multiple concurrent requests to update the same resource were in conflict.
//
//   - ServiceUnavailableException
//     The service cannot complete the request.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DeleteLogStream
func (c *CloudWatchLogs) DeleteLogStream(input *DeleteLogStreamInput) (*DeleteLogStreamOutput, error) {
	req, out := c.DeleteLogStreamRequest(input)
	return out, req.Send()
}

// DeleteLogStreamWithContext is the same as DeleteLogStream with the addition of
// the ability to pass a context and additional request options.
//
// See DeleteLogStream 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 *CloudWatchLogs) DeleteLogStreamWithContext(ctx aws.Context, input *DeleteLogStreamInput, opts ...request.Option) (*DeleteLogStreamOutput, error) {
	req, out := c.DeleteLogStreamRequest(input)
	req.SetContext(ctx)
	req.ApplyOptions(opts...)
	return out, req.Send()
}

const opDeleteMetricFilter = "DeleteMetricFilter"

// DeleteMetricFilterRequest generates a "aws/request.Request" representing the
// client's request for the DeleteMetricFilter operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// 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 DeleteMetricFilter for more information on using the DeleteMetricFilter
// 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 DeleteMetricFilterRequest method.
//	req, resp := client.DeleteMetricFilterRequest(params)
//
//	err := req.Send()
//	if err == nil { // resp is now filled
//	    fmt.Println(resp)
//	}
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DeleteMetricFilter
func (c *CloudWatchLogs) DeleteMetricFilterRequest(input *DeleteMetricFilterInput) (req *request.Request, output *DeleteMetricFilterOutput) {
	op := &request.Operation{
		Name:       opDeleteMetricFilter,
		HTTPMethod: "POST",
		HTTPPath:   "/",
	}

	if input == nil {
		input = &DeleteMetricFilterInput{}
	}

	output = &DeleteMetricFilterOutput{}
	req = c.newRequest(op, input, output)
	req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
	return
}

// DeleteMetricFilter API operation for Amazon CloudWatch Logs.
//
// Deletes the specified metric filter.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon CloudWatch Logs's
// API operation DeleteMetricFilter for usage and error information.
//
// Returned Error Types:
//
//   - InvalidParameterException
//     A parameter is specified incorrectly.
//
//   - ResourceNotFoundException
//     The specified resource does not exist.
//
//   - OperationAbortedException
//     Multiple concurrent requests to update the same resource were in conflict.
//
//   - ServiceUnavailableException
//     The service cannot complete the request.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DeleteMetricFilter
func (c *CloudWatchLogs) DeleteMetricFilter(input *DeleteMetricFilterInput) (*DeleteMetricFilterOutput, error) {
	req, out := c.DeleteMetricFilterRequest(input)
	return out, req.Send()
}

// DeleteMetricFilterWithContext is the same as DeleteMetricFilter with the addition of
// the ability to pass a context and additional request options.
//
// See DeleteMetricFilter 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 *CloudWatchLogs) DeleteMetricFilterWithContext(ctx aws.Context, input *DeleteMetricFilterInput, opts ...request.Option) (*DeleteMetricFilterOutput, error) {
	req, out := c.DeleteMetricFilterRequest(input)
	req.SetContext(ctx)
	req.ApplyOptions(opts...)
	return out, req.Send()
}

const opDeleteQueryDefinition = "DeleteQueryDefinition"

// DeleteQueryDefinitionRequest generates a "aws/request.Request" representing the
// client's request for the DeleteQueryDefinition operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// 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 DeleteQueryDefinition for more information on using the DeleteQueryDefinition
// 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 DeleteQueryDefinitionRequest method.
//	req, resp := client.DeleteQueryDefinitionRequest(params)
//
//	err := req.Send()
//	if err == nil { // resp is now filled
//	    fmt.Println(resp)
//	}
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DeleteQueryDefinition
func (c *CloudWatchLogs) DeleteQueryDefinitionRequest(input *DeleteQueryDefinitionInput) (req *request.Request, output *DeleteQueryDefinitionOutput) {
	op := &request.Operation{
		Name:       opDeleteQueryDefinition,
		HTTPMethod: "POST",
		HTTPPath:   "/",
	}

	if input == nil {
		input = &DeleteQueryDefinitionInput{}
	}

	output = &DeleteQueryDefinitionOutput{}
	req = c.newRequest(op, input, output)
	return
}

// DeleteQueryDefinition API operation for Amazon CloudWatch Logs.
//
// Deletes a saved CloudWatch Logs Insights query definition. A query definition
// contains details about a saved CloudWatch Logs Insights query.
//
// Each DeleteQueryDefinition operation can delete one query definition.
//
// You must have the logs:DeleteQueryDefinition permission to be able to 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 Amazon CloudWatch Logs's
// API operation DeleteQueryDefinition for usage and error information.
//
// Returned Error Types:
//
//   - InvalidParameterException
//     A parameter is specified incorrectly.
//
//   - ResourceNotFoundException
//     The specified resource does not exist.
//
//   - ServiceUnavailableException
//     The service cannot complete the request.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DeleteQueryDefinition
func (c *CloudWatchLogs) DeleteQueryDefinition(input *DeleteQueryDefinitionInput) (*DeleteQueryDefinitionOutput, error) {
	req, out := c.DeleteQueryDefinitionRequest(input)
	return out, req.Send()
}

// DeleteQueryDefinitionWithContext is the same as DeleteQueryDefinition with the addition of
// the ability to pass a context and additional request options.
//
// See DeleteQueryDefinition 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 *CloudWatchLogs) DeleteQueryDefinitionWithContext(ctx aws.Context, input *DeleteQueryDefinitionInput, opts ...request.Option) (*DeleteQueryDefinitionOutput, error) {
	req, out := c.DeleteQueryDefinitionRequest(input)
	req.SetContext(ctx)
	req.ApplyOptions(opts...)
	return out, req.Send()
}

const opDeleteResourcePolicy = "DeleteResourcePolicy"

// DeleteResourcePolicyRequest generates a "aws/request.Request" representing the
// client's request for the DeleteResourcePolicy operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// 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 DeleteResourcePolicy for more information on using the DeleteResourcePolicy
// 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 DeleteResourcePolicyRequest method.
//	req, resp := client.DeleteResourcePolicyRequest(params)
//
//	err := req.Send()
//	if err == nil { // resp is now filled
//	    fmt.Println(resp)
//	}
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DeleteResourcePolicy
func (c *CloudWatchLogs) DeleteResourcePolicyRequest(input *DeleteResourcePolicyInput) (req *request.Request, output *DeleteResourcePolicyOutput) {
	op := &request.Operation{
		Name:       opDeleteResourcePolicy,
		HTTPMethod: "POST",
		HTTPPath:   "/",
	}

	if input == nil {
		input = &DeleteResourcePolicyInput{}
	}

	output = &DeleteResourcePolicyOutput{}
	req = c.newRequest(op, input, output)
	req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
	return
}

// DeleteResourcePolicy API operation for Amazon CloudWatch Logs.
//
// Deletes a resource policy from this account. This revokes the access of the
// identities in that policy to put log events to this account.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon CloudWatch Logs's
// API operation DeleteResourcePolicy for usage and error information.
//
// Returned Error Types:
//
//   - InvalidParameterException
//     A parameter is specified incorrectly.
//
//   - ResourceNotFoundException
//     The specified resource does not exist.
//
//   - ServiceUnavailableException
//     The service cannot complete the request.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DeleteResourcePolicy
func (c *CloudWatchLogs) DeleteResourcePolicy(input *DeleteResourcePolicyInput) (*DeleteResourcePolicyOutput, error) {
	req, out := c.DeleteResourcePolicyRequest(input)
	return out, req.Send()
}

// DeleteResourcePolicyWithContext is the same as DeleteResourcePolicy with the addition of
// the ability to pass a context and additional request options.
//
// See DeleteResourcePolicy 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 *CloudWatchLogs) DeleteResourcePolicyWithContext(ctx aws.Context, input *DeleteResourcePolicyInput, opts ...request.Option) (*DeleteResourcePolicyOutput, error) {
	req, out := c.DeleteResourcePolicyRequest(input)
	req.SetContext(ctx)
	req.ApplyOptions(opts...)
	return out, req.Send()
}

const opDeleteRetentionPolicy = "DeleteRetentionPolicy"

// DeleteRetentionPolicyRequest generates a "aws/request.Request" representing the
// client's request for the DeleteRetentionPolicy operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// 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 DeleteRetentionPolicy for more information on using the DeleteRetentionPolicy
// 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 DeleteRetentionPolicyRequest method.
//	req, resp := client.DeleteRetentionPolicyRequest(params)
//
//	err := req.Send()
//	if err == nil { // resp is now filled
//	    fmt.Println(resp)
//	}
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DeleteRetentionPolicy
func (c *CloudWatchLogs) DeleteRetentionPolicyRequest(input *DeleteRetentionPolicyInput) (req *request.Request, output *DeleteRetentionPolicyOutput) {
	op := &request.Operation{
		Name:       opDeleteRetentionPolicy,
		HTTPMethod: "POST",
		HTTPPath:   "/",
	}

	if input == nil {
		input = &DeleteRetentionPolicyInput{}
	}

	output = &DeleteRetentionPolicyOutput{}
	req = c.newRequest(op, input, output)
	req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
	return
}

// DeleteRetentionPolicy API operation for Amazon CloudWatch Logs.
//
// Deletes the specified retention policy.
//
// Log events do not expire if they belong to log groups without a retention
// policy.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon CloudWatch Logs's
// API operation DeleteRetentionPolicy for usage and error information.
//
// Returned Error Types:
//
//   - InvalidParameterException
//     A parameter is specified incorrectly.
//
//   - ResourceNotFoundException
//     The specified resource does not exist.
//
//   - OperationAbortedException
//     Multiple concurrent requests to update the same resource were in conflict.
//
//   - ServiceUnavailableException
//     The service cannot complete the request.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DeleteRetentionPolicy
func (c *CloudWatchLogs) DeleteRetentionPolicy(input *DeleteRetentionPolicyInput) (*DeleteRetentionPolicyOutput, error) {
	req, out := c.DeleteRetentionPolicyRequest(input)
	return out, req.Send()
}

// DeleteRetentionPolicyWithContext is the same as DeleteRetentionPolicy with the addition of
// the ability to pass a context and additional request options.
//
// See DeleteRetentionPolicy 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 *CloudWatchLogs) DeleteRetentionPolicyWithContext(ctx aws.Context, input *DeleteRetentionPolicyInput, opts ...request.Option) (*DeleteRetentionPolicyOutput, error) {
	req, out := c.DeleteRetentionPolicyRequest(input)
	req.SetContext(ctx)
	req.ApplyOptions(opts...)
	return out, req.Send()
}

const opDeleteSubscriptionFilter = "DeleteSubscriptionFilter"

// DeleteSubscriptionFilterRequest generates a "aws/request.Request" representing the
// client's request for the DeleteSubscriptionFilter operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// 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 DeleteSubscriptionFilter for more information on using the DeleteSubscriptionFilter
// 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 DeleteSubscriptionFilterRequest method.
//	req, resp := client.DeleteSubscriptionFilterRequest(params)
//
//	err := req.Send()
//	if err == nil { // resp is now filled
//	    fmt.Println(resp)
//	}
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DeleteSubscriptionFilter
func (c *CloudWatchLogs) DeleteSubscriptionFilterRequest(input *DeleteSubscriptionFilterInput) (req *request.Request, output *DeleteSubscriptionFilterOutput) {
	op := &request.Operation{
		Name:       opDeleteSubscriptionFilter,
		HTTPMethod: "POST",
		HTTPPath:   "/",
	}

	if input == nil {
		input = &DeleteSubscriptionFilterInput{}
	}

	output = &DeleteSubscriptionFilterOutput{}
	req = c.newRequest(op, input, output)
	req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
	return
}

// DeleteSubscriptionFilter API operation for Amazon CloudWatch Logs.
//
// Deletes the specified subscription filter.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon CloudWatch Logs's
// API operation DeleteSubscriptionFilter for usage and error information.
//
// Returned Error Types:
//
//   - InvalidParameterException
//     A parameter is specified incorrectly.
//
//   - ResourceNotFoundException
//     The specified resource does not exist.
//
//   - OperationAbortedException
//     Multiple concurrent requests to update the same resource were in conflict.
//
//   - ServiceUnavailableException
//     The service cannot complete the request.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DeleteSubscriptionFilter
func (c *CloudWatchLogs) DeleteSubscriptionFilter(input *DeleteSubscriptionFilterInput) (*DeleteSubscriptionFilterOutput, error) {
	req, out := c.DeleteSubscriptionFilterRequest(input)
	return out, req.Send()
}

// DeleteSubscriptionFilterWithContext is the same as DeleteSubscriptionFilter with the addition of
// the ability to pass a context and additional request options.
//
// See DeleteSubscriptionFilter 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 *CloudWatchLogs) DeleteSubscriptionFilterWithContext(ctx aws.Context, input *DeleteSubscriptionFilterInput, opts ...request.Option) (*DeleteSubscriptionFilterOutput, error) {
	req, out := c.DeleteSubscriptionFilterRequest(input)
	req.SetContext(ctx)
	req.ApplyOptions(opts...)
	return out, req.Send()
}

const opDeleteTransformer = "DeleteTransformer"

// DeleteTransformerRequest generates a "aws/request.Request" representing the
// client's request for the DeleteTransformer operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// 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 DeleteTransformer for more information on using the DeleteTransformer
// 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 DeleteTransformerRequest method.
//	req, resp := client.DeleteTransformerRequest(params)
//
//	err := req.Send()
//	if err == nil { // resp is now filled
//	    fmt.Println(resp)
//	}
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DeleteTransformer
func (c *CloudWatchLogs) DeleteTransformerRequest(input *DeleteTransformerInput) (req *request.Request, output *DeleteTransformerOutput) {
	op := &request.Operation{
		Name:       opDeleteTransformer,
		HTTPMethod: "POST",
		HTTPPath:   "/",
	}

	if input == nil {
		input = &DeleteTransformerInput{}
	}

	output = &DeleteTransformerOutput{}
	req = c.newRequest(op, input, output)
	req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
	return
}

// DeleteTransformer API operation for Amazon CloudWatch Logs.
//
// Deletes the log transformer for the specified log group. As soon as you do
// this, the transformation of incoming log events according to that transformer
// stops. If this account has an account-level transformer that applies to this
// log group, the log group begins using that account-level transformer when
// this log-group level transformer is deleted.
//
// After you delete a transformer, be sure to edit any metric filters or subscription
// filters that relied on the transformed versions of the log events.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon CloudWatch Logs's
// API operation DeleteTransformer for usage and error information.
//
// Returned Error Types:
//
//   - InvalidParameterException
//     A parameter is specified incorrectly.
//
//   - ResourceNotFoundException
//     The specified resource does not exist.
//
//   - ServiceUnavailableException
//     The service cannot complete the request.
//
//   - OperationAbortedException
//     Multiple concurrent requests to update the same resource were in conflict.
//
//   - InvalidOperationException
//     The operation is not valid on the specified resource.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DeleteTransformer
func (c *CloudWatchLogs) DeleteTransformer(input *DeleteTransformerInput) (*DeleteTransformerOutput, error) {
	req, out := c.DeleteTransformerRequest(input)
	return out, req.Send()
}

// DeleteTransformerWithContext is the same as DeleteTransformer with the addition of
// the ability to pass a context and additional request options.
//
// See DeleteTransformer 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 *CloudWatchLogs) DeleteTransformerWithContext(ctx aws.Context, input *DeleteTransformerInput, opts ...request.Option) (*DeleteTransformerOutput, error) {
	req, out := c.DeleteTransformerRequest(input)
	req.SetContext(ctx)
	req.ApplyOptions(opts...)
	return out, req.Send()
}

const opDescribeAccountPolicies = "DescribeAccountPolicies"

// DescribeAccountPoliciesRequest generates a "aws/request.Request" representing the
// client's request for the DescribeAccountPolicies operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// 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 DescribeAccountPolicies for more information on using the DescribeAccountPolicies
// 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 DescribeAccountPoliciesRequest method.
//	req, resp := client.DescribeAccountPoliciesRequest(params)
//
//	err := req.Send()
//	if err == nil { // resp is now filled
//	    fmt.Println(resp)
//	}
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DescribeAccountPolicies
func (c *CloudWatchLogs) DescribeAccountPoliciesRequest(input *DescribeAccountPoliciesInput) (req *request.Request, output *DescribeAccountPoliciesOutput) {
	op := &request.Operation{
		Name:       opDescribeAccountPolicies,
		HTTPMethod: "POST",
		HTTPPath:   "/",
	}

	if input == nil {
		input = &DescribeAccountPoliciesInput{}
	}

	output = &DescribeAccountPoliciesOutput{}
	req = c.newRequest(op, input, output)
	return
}

// DescribeAccountPolicies API operation for Amazon CloudWatch Logs.
//
// Returns a list of all CloudWatch Logs account policies in the account.
//
// To use this operation, you must be signed on with the correct permissions
// depending on the type of policy that you are retrieving information for.
//
//   - To see data protection policies, you must have the logs:GetDataProtectionPolicy
//     and logs:DescribeAccountPolicies permissions.
//
//   - To see subscription filter policies, you must have the logs:DescribeSubscriptionFilters
//     and logs:DescribeAccountPolicies permissions.
//
//   - To see transformer policies, you must have the logs:GetTransformer and
//     logs:DescribeAccountPolicies permissions.
//
//   - To see field index policies, you must have the logs:DescribeIndexPolicies
//     and logs:DescribeAccountPolicies permissions.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon CloudWatch Logs's
// API operation DescribeAccountPolicies for usage and error information.
//
// Returned Error Types:
//
//   - InvalidParameterException
//     A parameter is specified incorrectly.
//
//   - OperationAbortedException
//     Multiple concurrent requests to update the same resource were in conflict.
//
//   - ResourceNotFoundException
//     The specified resource does not exist.
//
//   - ServiceUnavailableException
//     The service cannot complete the request.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DescribeAccountPolicies
func (c *CloudWatchLogs) DescribeAccountPolicies(input *DescribeAccountPoliciesInput) (*DescribeAccountPoliciesOutput, error) {
	req, out := c.DescribeAccountPoliciesRequest(input)
	return out, req.Send()
}

// DescribeAccountPoliciesWithContext is the same as DescribeAccountPolicies with the addition of
// the ability to pass a context and additional request options.
//
// See DescribeAccountPolicies 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 *CloudWatchLogs) DescribeAccountPoliciesWithContext(ctx aws.Context, input *DescribeAccountPoliciesInput, opts ...request.Option) (*DescribeAccountPoliciesOutput, error) {
	req, out := c.DescribeAccountPoliciesRequest(input)
	req.SetContext(ctx)
	req.ApplyOptions(opts...)
	return out, req.Send()
}

const opDescribeConfigurationTemplates = "DescribeConfigurationTemplates"

// DescribeConfigurationTemplatesRequest generates a "aws/request.Request" representing the
// client's request for the DescribeConfigurationTemplates operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// 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 DescribeConfigurationTemplates for more information on using the DescribeConfigurationTemplates
// 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 DescribeConfigurationTemplatesRequest method.
//	req, resp := client.DescribeConfigurationTemplatesRequest(params)
//
//	err := req.Send()
//	if err == nil { // resp is now filled
//	    fmt.Println(resp)
//	}
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DescribeConfigurationTemplates
func (c *CloudWatchLogs) DescribeConfigurationTemplatesRequest(input *DescribeConfigurationTemplatesInput) (req *request.Request, output *DescribeConfigurationTemplatesOutput) {
	op := &request.Operation{
		Name:       opDescribeConfigurationTemplates,
		HTTPMethod: "POST",
		HTTPPath:   "/",
		Paginator: &request.Paginator{
			InputTokens:     []string{"nextToken"},
			OutputTokens:    []string{"nextToken"},
			LimitToken:      "limit",
			TruncationToken: "",
		},
	}

	if input == nil {
		input = &DescribeConfigurationTemplatesInput{}
	}

	output = &DescribeConfigurationTemplatesOutput{}
	req = c.newRequest(op, input, output)
	return
}

// DescribeConfigurationTemplates API operation for Amazon CloudWatch Logs.
//
// Use this operation to return the valid and default values that are used when
// creating delivery sources, delivery destinations, and deliveries. For more
// information about deliveries, see CreateDelivery (https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_CreateDelivery.html).
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon CloudWatch Logs's
// API operation DescribeConfigurationTemplates for usage and error information.
//
// Returned Error Types:
//
//   - ServiceUnavailableException
//     The service cannot complete the request.
//
//   - ValidationException
//     One of the parameters for the request is not valid.
//
//   - ResourceNotFoundException
//     The specified resource does not exist.
//
//   - ThrottlingException
//     The request was throttled because of quota limits.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DescribeConfigurationTemplates
func (c *CloudWatchLogs) DescribeConfigurationTemplates(input *DescribeConfigurationTemplatesInput) (*DescribeConfigurationTemplatesOutput, error) {
	req, out := c.DescribeConfigurationTemplatesRequest(input)
	return out, req.Send()
}

// DescribeConfigurationTemplatesWithContext is the same as DescribeConfigurationTemplates with the addition of
// the ability to pass a context and additional request options.
//
// See DescribeConfigurationTemplates 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 *CloudWatchLogs) DescribeConfigurationTemplatesWithContext(ctx aws.Context, input *DescribeConfigurationTemplatesInput, opts ...request.Option) (*DescribeConfigurationTemplatesOutput, error) {
	req, out := c.DescribeConfigurationTemplatesRequest(input)
	req.SetContext(ctx)
	req.ApplyOptions(opts...)
	return out, req.Send()
}

// DescribeConfigurationTemplatesPages iterates over the pages of a DescribeConfigurationTemplates operation,
// calling the "fn" function with the response data for each page. To stop
// iterating, return false from the fn function.
//
// See DescribeConfigurationTemplates 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 DescribeConfigurationTemplates operation.
//	pageNum := 0
//	err := client.DescribeConfigurationTemplatesPages(params,
//	    func(page *cloudwatchlogs.DescribeConfigurationTemplatesOutput, lastPage bool) bool {
//	        pageNum++
//	        fmt.Println(page)
//	        return pageNum <= 3
//	    })
func (c *CloudWatchLogs) DescribeConfigurationTemplatesPages(input *DescribeConfigurationTemplatesInput, fn func(*DescribeConfigurationTemplatesOutput, bool) bool) error {
	return c.DescribeConfigurationTemplatesPagesWithContext(aws.BackgroundContext(), input, fn)
}

// DescribeConfigurationTemplatesPagesWithContext same as DescribeConfigurationTemplatesPages 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 *CloudWatchLogs) DescribeConfigurationTemplatesPagesWithContext(ctx aws.Context, input *DescribeConfigurationTemplatesInput, fn func(*DescribeConfigurationTemplatesOutput, bool) bool, opts ...request.Option) error {
	p := request.Pagination{
		EndPageOnSameToken: true,
		NewRequest: func() (*request.Request, error) {
			var inCpy *DescribeConfigurationTemplatesInput
			if input != nil {
				tmp := *input
				inCpy = &tmp
			}
			req, _ := c.DescribeConfigurationTemplatesRequest(inCpy)
			req.SetContext(ctx)
			req.ApplyOptions(opts...)
			return req, nil
		},
	}

	for p.Next() {
		if !fn(p.Page().(*DescribeConfigurationTemplatesOutput), !p.HasNextPage()) {
			break
		}
	}

	return p.Err()
}

const opDescribeDeliveries = "DescribeDeliveries"

// DescribeDeliveriesRequest generates a "aws/request.Request" representing the
// client's request for the DescribeDeliveries operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// 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 DescribeDeliveries for more information on using the DescribeDeliveries
// 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 DescribeDeliveriesRequest method.
//	req, resp := client.DescribeDeliveriesRequest(params)
//
//	err := req.Send()
//	if err == nil { // resp is now filled
//	    fmt.Println(resp)
//	}
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DescribeDeliveries
func (c *CloudWatchLogs) DescribeDeliveriesRequest(input *DescribeDeliveriesInput) (req *request.Request, output *DescribeDeliveriesOutput) {
	op := &request.Operation{
		Name:       opDescribeDeliveries,
		HTTPMethod: "POST",
		HTTPPath:   "/",
		Paginator: &request.Paginator{
			InputTokens:     []string{"nextToken"},
			OutputTokens:    []string{"nextToken"},
			LimitToken:      "limit",
			TruncationToken: "",
		},
	}

	if input == nil {
		input = &DescribeDeliveriesInput{}
	}

	output = &DescribeDeliveriesOutput{}
	req = c.newRequest(op, input, output)
	return
}

// DescribeDeliveries API operation for Amazon CloudWatch Logs.
//
// Retrieves a list of the deliveries that have been created in the account.
//
// A delivery is a connection between a delivery source (https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_PutDeliverySource.html)
// and a delivery destination (https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_PutDeliveryDestination.html).
//
// A delivery source represents an Amazon Web Services resource that sends logs
// to an logs delivery destination. The destination can be CloudWatch Logs,
// Amazon S3, or Firehose. Only some Amazon Web Services services support being
// configured as a delivery source. These services are listed in Enable logging
// from Amazon Web Services services. (https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/AWS-logs-and-resource-policy.html)
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon CloudWatch Logs's
// API operation DescribeDeliveries for usage and error information.
//
// Returned Error Types:
//
//   - ServiceUnavailableException
//     The service cannot complete the request.
//
//   - ServiceQuotaExceededException
//     This request exceeds a service quota.
//
//   - ValidationException
//     One of the parameters for the request is not valid.
//
//   - ThrottlingException
//     The request was throttled because of quota limits.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DescribeDeliveries
func (c *CloudWatchLogs) DescribeDeliveries(input *DescribeDeliveriesInput) (*DescribeDeliveriesOutput, error) {
	req, out := c.DescribeDeliveriesRequest(input)
	return out, req.Send()
}

// DescribeDeliveriesWithContext is the same as DescribeDeliveries with the addition of
// the ability to pass a context and additional request options.
//
// See DescribeDeliveries 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 *CloudWatchLogs) DescribeDeliveriesWithContext(ctx aws.Context, input *DescribeDeliveriesInput, opts ...request.Option) (*DescribeDeliveriesOutput, error) {
	req, out := c.DescribeDeliveriesRequest(input)
	req.SetContext(ctx)
	req.ApplyOptions(opts...)
	return out, req.Send()
}

// DescribeDeliveriesPages iterates over the pages of a DescribeDeliveries operation,
// calling the "fn" function with the response data for each page. To stop
// iterating, return false from the fn function.
//
// See DescribeDeliveries 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 DescribeDeliveries operation.
//	pageNum := 0
//	err := client.DescribeDeliveriesPages(params,
//	    func(page *cloudwatchlogs.DescribeDeliveriesOutput, lastPage bool) bool {
//	        pageNum++
//	        fmt.Println(page)
//	        return pageNum <= 3
//	    })
func (c *CloudWatchLogs) DescribeDeliveriesPages(input *DescribeDeliveriesInput, fn func(*DescribeDeliveriesOutput, bool) bool) error {
	return c.DescribeDeliveriesPagesWithContext(aws.BackgroundContext(), input, fn)
}

// DescribeDeliveriesPagesWithContext same as DescribeDeliveriesPages 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 *CloudWatchLogs) DescribeDeliveriesPagesWithContext(ctx aws.Context, input *DescribeDeliveriesInput, fn func(*DescribeDeliveriesOutput, bool) bool, opts ...request.Option) error {
	p := request.Pagination{
		EndPageOnSameToken: true,
		NewRequest: func() (*request.Request, error) {
			var inCpy *DescribeDeliveriesInput
			if input != nil {
				tmp := *input
				inCpy = &tmp
			}
			req, _ := c.DescribeDeliveriesRequest(inCpy)
			req.SetContext(ctx)
			req.ApplyOptions(opts...)
			return req, nil
		},
	}

	for p.Next() {
		if !fn(p.Page().(*DescribeDeliveriesOutput), !p.HasNextPage()) {
			break
		}
	}

	return p.Err()
}

const opDescribeDeliveryDestinations = "DescribeDeliveryDestinations"

// DescribeDeliveryDestinationsRequest generates a "aws/request.Request" representing the
// client's request for the DescribeDeliveryDestinations operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// 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 DescribeDeliveryDestinations for more information on using the DescribeDeliveryDestinations
// 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 DescribeDeliveryDestinationsRequest method.
//	req, resp := client.DescribeDeliveryDestinationsRequest(params)
//
//	err := req.Send()
//	if err == nil { // resp is now filled
//	    fmt.Println(resp)
//	}
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DescribeDeliveryDestinations
func (c *CloudWatchLogs) DescribeDeliveryDestinationsRequest(input *DescribeDeliveryDestinationsInput) (req *request.Request, output *DescribeDeliveryDestinationsOutput) {
	op := &request.Operation{
		Name:       opDescribeDeliveryDestinations,
		HTTPMethod: "POST",
		HTTPPath:   "/",
		Paginator: &request.Paginator{
			InputTokens:     []string{"nextToken"},
			OutputTokens:    []string{"nextToken"},
			LimitToken:      "limit",
			TruncationToken: "",
		},
	}

	if input == nil {
		input = &DescribeDeliveryDestinationsInput{}
	}

	output = &DescribeDeliveryDestinationsOutput{}
	req = c.newRequest(op, input, output)
	return
}

// DescribeDeliveryDestinations API operation for Amazon CloudWatch Logs.
//
// Retrieves a list of the delivery destinations that have been created in the
// account.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon CloudWatch Logs's
// API operation DescribeDeliveryDestinations for usage and error information.
//
// Returned Error Types:
//
//   - ServiceUnavailableException
//     The service cannot complete the request.
//
//   - ServiceQuotaExceededException
//     This request exceeds a service quota.
//
//   - ValidationException
//     One of the parameters for the request is not valid.
//
//   - ThrottlingException
//     The request was throttled because of quota limits.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DescribeDeliveryDestinations
func (c *CloudWatchLogs) DescribeDeliveryDestinations(input *DescribeDeliveryDestinationsInput) (*DescribeDeliveryDestinationsOutput, error) {
	req, out := c.DescribeDeliveryDestinationsRequest(input)
	return out, req.Send()
}

// DescribeDeliveryDestinationsWithContext is the same as DescribeDeliveryDestinations with the addition of
// the ability to pass a context and additional request options.
//
// See DescribeDeliveryDestinations 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 *CloudWatchLogs) DescribeDeliveryDestinationsWithContext(ctx aws.Context, input *DescribeDeliveryDestinationsInput, opts ...request.Option) (*DescribeDeliveryDestinationsOutput, error) {
	req, out := c.DescribeDeliveryDestinationsRequest(input)
	req.SetContext(ctx)
	req.ApplyOptions(opts...)
	return out, req.Send()
}

// DescribeDeliveryDestinationsPages iterates over the pages of a DescribeDeliveryDestinations operation,
// calling the "fn" function with the response data for each page. To stop
// iterating, return false from the fn function.
//
// See DescribeDeliveryDestinations 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 DescribeDeliveryDestinations operation.
//	pageNum := 0
//	err := client.DescribeDeliveryDestinationsPages(params,
//	    func(page *cloudwatchlogs.DescribeDeliveryDestinationsOutput, lastPage bool) bool {
//	        pageNum++
//	        fmt.Println(page)
//	        return pageNum <= 3
//	    })
func (c *CloudWatchLogs) DescribeDeliveryDestinationsPages(input *DescribeDeliveryDestinationsInput, fn func(*DescribeDeliveryDestinationsOutput, bool) bool) error {
	return c.DescribeDeliveryDestinationsPagesWithContext(aws.BackgroundContext(), input, fn)
}

// DescribeDeliveryDestinationsPagesWithContext same as DescribeDeliveryDestinationsPages 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 *CloudWatchLogs) DescribeDeliveryDestinationsPagesWithContext(ctx aws.Context, input *DescribeDeliveryDestinationsInput, fn func(*DescribeDeliveryDestinationsOutput, bool) bool, opts ...request.Option) error {
	p := request.Pagination{
		EndPageOnSameToken: true,
		NewRequest: func() (*request.Request, error) {
			var inCpy *DescribeDeliveryDestinationsInput
			if input != nil {
				tmp := *input
				inCpy = &tmp
			}
			req, _ := c.DescribeDeliveryDestinationsRequest(inCpy)
			req.SetContext(ctx)
			req.ApplyOptions(opts...)
			return req, nil
		},
	}

	for p.Next() {
		if !fn(p.Page().(*DescribeDeliveryDestinationsOutput), !p.HasNextPage()) {
			break
		}
	}

	return p.Err()
}

const opDescribeDeliverySources = "DescribeDeliverySources"

// DescribeDeliverySourcesRequest generates a "aws/request.Request" representing the
// client's request for the DescribeDeliverySources operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// 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 DescribeDeliverySources for more information on using the DescribeDeliverySources
// 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 DescribeDeliverySourcesRequest method.
//	req, resp := client.DescribeDeliverySourcesRequest(params)
//
//	err := req.Send()
//	if err == nil { // resp is now filled
//	    fmt.Println(resp)
//	}
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DescribeDeliverySources
func (c *CloudWatchLogs) DescribeDeliverySourcesRequest(input *DescribeDeliverySourcesInput) (req *request.Request, output *DescribeDeliverySourcesOutput) {
	op := &request.Operation{
		Name:       opDescribeDeliverySources,
		HTTPMethod: "POST",
		HTTPPath:   "/",
		Paginator: &request.Paginator{
			InputTokens:     []string{"nextToken"},
			OutputTokens:    []string{"nextToken"},
			LimitToken:      "limit",
			TruncationToken: "",
		},
	}

	if input == nil {
		input = &DescribeDeliverySourcesInput{}
	}

	output = &DescribeDeliverySourcesOutput{}
	req = c.newRequest(op, input, output)
	return
}

// DescribeDeliverySources API operation for Amazon CloudWatch Logs.
//
// Retrieves a list of the delivery sources that have been created in the account.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon CloudWatch Logs's
// API operation DescribeDeliverySources for usage and error information.
//
// Returned Error Types:
//
//   - ServiceUnavailableException
//     The service cannot complete the request.
//
//   - ServiceQuotaExceededException
//     This request exceeds a service quota.
//
//   - ValidationException
//     One of the parameters for the request is not valid.
//
//   - ThrottlingException
//     The request was throttled because of quota limits.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DescribeDeliverySources
func (c *CloudWatchLogs) DescribeDeliverySources(input *DescribeDeliverySourcesInput) (*DescribeDeliverySourcesOutput, error) {
	req, out := c.DescribeDeliverySourcesRequest(input)
	return out, req.Send()
}

// DescribeDeliverySourcesWithContext is the same as DescribeDeliverySources with the addition of
// the ability to pass a context and additional request options.
//
// See DescribeDeliverySources 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 *CloudWatchLogs) DescribeDeliverySourcesWithContext(ctx aws.Context, input *DescribeDeliverySourcesInput, opts ...request.Option) (*DescribeDeliverySourcesOutput, error) {
	req, out := c.DescribeDeliverySourcesRequest(input)
	req.SetContext(ctx)
	req.ApplyOptions(opts...)
	return out, req.Send()
}

// DescribeDeliverySourcesPages iterates over the pages of a DescribeDeliverySources operation,
// calling the "fn" function with the response data for each page. To stop
// iterating, return false from the fn function.
//
// See DescribeDeliverySources 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 DescribeDeliverySources operation.
//	pageNum := 0
//	err := client.DescribeDeliverySourcesPages(params,
//	    func(page *cloudwatchlogs.DescribeDeliverySourcesOutput, lastPage bool) bool {
//	        pageNum++
//	        fmt.Println(page)
//	        return pageNum <= 3
//	    })
func (c *CloudWatchLogs) DescribeDeliverySourcesPages(input *DescribeDeliverySourcesInput, fn func(*DescribeDeliverySourcesOutput, bool) bool) error {
	return c.DescribeDeliverySourcesPagesWithContext(aws.BackgroundContext(), input, fn)
}

// DescribeDeliverySourcesPagesWithContext same as DescribeDeliverySourcesPages 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 *CloudWatchLogs) DescribeDeliverySourcesPagesWithContext(ctx aws.Context, input *DescribeDeliverySourcesInput, fn func(*DescribeDeliverySourcesOutput, bool) bool, opts ...request.Option) error {
	p := request.Pagination{
		EndPageOnSameToken: true,
		NewRequest: func() (*request.Request, error) {
			var inCpy *DescribeDeliverySourcesInput
			if input != nil {
				tmp := *input
				inCpy = &tmp
			}
			req, _ := c.DescribeDeliverySourcesRequest(inCpy)
			req.SetContext(ctx)
			req.ApplyOptions(opts...)
			return req, nil
		},
	}

	for p.Next() {
		if !fn(p.Page().(*DescribeDeliverySourcesOutput), !p.HasNextPage()) {
			break
		}
	}

	return p.Err()
}

const opDescribeDestinations = "DescribeDestinations"

// DescribeDestinationsRequest generates a "aws/request.Request" representing the
// client's request for the DescribeDestinations operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// 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 DescribeDestinations for more information on using the DescribeDestinations
// 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 DescribeDestinationsRequest method.
//	req, resp := client.DescribeDestinationsRequest(params)
//
//	err := req.Send()
//	if err == nil { // resp is now filled
//	    fmt.Println(resp)
//	}
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DescribeDestinations
func (c *CloudWatchLogs) DescribeDestinationsRequest(input *DescribeDestinationsInput) (req *request.Request, output *DescribeDestinationsOutput) {
	op := &request.Operation{
		Name:       opDescribeDestinations,
		HTTPMethod: "POST",
		HTTPPath:   "/",
		Paginator: &request.Paginator{
			InputTokens:     []string{"nextToken"},
			OutputTokens:    []string{"nextToken"},
			LimitToken:      "limit",
			TruncationToken: "",
		},
	}

	if input == nil {
		input = &DescribeDestinationsInput{}
	}

	output = &DescribeDestinationsOutput{}
	req = c.newRequest(op, input, output)
	return
}

// DescribeDestinations API operation for Amazon CloudWatch Logs.
//
// Lists all your destinations. The results are ASCII-sorted by destination
// name.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon CloudWatch Logs's
// API operation DescribeDestinations for usage and error information.
//
// Returned Error Types:
//
//   - InvalidParameterException
//     A parameter is specified incorrectly.
//
//   - ServiceUnavailableException
//     The service cannot complete the request.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DescribeDestinations
func (c *CloudWatchLogs) DescribeDestinations(input *DescribeDestinationsInput) (*DescribeDestinationsOutput, error) {
	req, out := c.DescribeDestinationsRequest(input)
	return out, req.Send()
}

// DescribeDestinationsWithContext is the same as DescribeDestinations with the addition of
// the ability to pass a context and additional request options.
//
// See DescribeDestinations 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 *CloudWatchLogs) DescribeDestinationsWithContext(ctx aws.Context, input *DescribeDestinationsInput, opts ...request.Option) (*DescribeDestinationsOutput, error) {
	req, out := c.DescribeDestinationsRequest(input)
	req.SetContext(ctx)
	req.ApplyOptions(opts...)
	return out, req.Send()
}

// DescribeDestinationsPages iterates over the pages of a DescribeDestinations operation,
// calling the "fn" function with the response data for each page. To stop
// iterating, return false from the fn function.
//
// See DescribeDestinations 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 DescribeDestinations operation.
//	pageNum := 0
//	err := client.DescribeDestinationsPages(params,
//	    func(page *cloudwatchlogs.DescribeDestinationsOutput, lastPage bool) bool {
//	        pageNum++
//	        fmt.Println(page)
//	        return pageNum <= 3
//	    })
func (c *CloudWatchLogs) DescribeDestinationsPages(input *DescribeDestinationsInput, fn func(*DescribeDestinationsOutput, bool) bool) error {
	return c.DescribeDestinationsPagesWithContext(aws.BackgroundContext(), input, fn)
}

// DescribeDestinationsPagesWithContext same as DescribeDestinationsPages 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 *CloudWatchLogs) DescribeDestinationsPagesWithContext(ctx aws.Context, input *DescribeDestinationsInput, fn func(*DescribeDestinationsOutput, bool) bool, opts ...request.Option) error {
	p := request.Pagination{
		EndPageOnSameToken: true,
		NewRequest: func() (*request.Request, error) {
			var inCpy *DescribeDestinationsInput
			if input != nil {
				tmp := *input
				inCpy = &tmp
			}
			req, _ := c.DescribeDestinationsRequest(inCpy)
			req.SetContext(ctx)
			req.ApplyOptions(opts...)
			return req, nil
		},
	}

	for p.Next() {
		if !fn(p.Page().(*DescribeDestinationsOutput), !p.HasNextPage()) {
			break
		}
	}

	return p.Err()
}

const opDescribeExportTasks = "DescribeExportTasks"

// DescribeExportTasksRequest generates a "aws/request.Request" representing the
// client's request for the DescribeExportTasks operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// 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 DescribeExportTasks for more information on using the DescribeExportTasks
// 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 DescribeExportTasksRequest method.
//	req, resp := client.DescribeExportTasksRequest(params)
//
//	err := req.Send()
//	if err == nil { // resp is now filled
//	    fmt.Println(resp)
//	}
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DescribeExportTasks
func (c *CloudWatchLogs) DescribeExportTasksRequest(input *DescribeExportTasksInput) (req *request.Request, output *DescribeExportTasksOutput) {
	op := &request.Operation{
		Name:       opDescribeExportTasks,
		HTTPMethod: "POST",
		HTTPPath:   "/",
	}

	if input == nil {
		input = &DescribeExportTasksInput{}
	}

	output = &DescribeExportTasksOutput{}
	req = c.newRequest(op, input, output)
	return
}

// DescribeExportTasks API operation for Amazon CloudWatch Logs.
//
// Lists the specified export tasks. You can list all your export tasks or filter
// the results based on task ID or task status.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon CloudWatch Logs's
// API operation DescribeExportTasks for usage and error information.
//
// Returned Error Types:
//
//   - InvalidParameterException
//     A parameter is specified incorrectly.
//
//   - ServiceUnavailableException
//     The service cannot complete the request.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DescribeExportTasks
func (c *CloudWatchLogs) DescribeExportTasks(input *DescribeExportTasksInput) (*DescribeExportTasksOutput, error) {
	req, out := c.DescribeExportTasksRequest(input)
	return out, req.Send()
}

// DescribeExportTasksWithContext is the same as DescribeExportTasks with the addition of
// the ability to pass a context and additional request options.
//
// See DescribeExportTasks 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 *CloudWatchLogs) DescribeExportTasksWithContext(ctx aws.Context, input *DescribeExportTasksInput, opts ...request.Option) (*DescribeExportTasksOutput, error) {
	req, out := c.DescribeExportTasksRequest(input)
	req.SetContext(ctx)
	req.ApplyOptions(opts...)
	return out, req.Send()
}

const opDescribeFieldIndexes = "DescribeFieldIndexes"

// DescribeFieldIndexesRequest generates a "aws/request.Request" representing the
// client's request for the DescribeFieldIndexes operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// 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 DescribeFieldIndexes for more information on using the DescribeFieldIndexes
// 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 DescribeFieldIndexesRequest method.
//	req, resp := client.DescribeFieldIndexesRequest(params)
//
//	err := req.Send()
//	if err == nil { // resp is now filled
//	    fmt.Println(resp)
//	}
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DescribeFieldIndexes
func (c *CloudWatchLogs) DescribeFieldIndexesRequest(input *DescribeFieldIndexesInput) (req *request.Request, output *DescribeFieldIndexesOutput) {
	op := &request.Operation{
		Name:       opDescribeFieldIndexes,
		HTTPMethod: "POST",
		HTTPPath:   "/",
	}

	if input == nil {
		input = &DescribeFieldIndexesInput{}
	}

	output = &DescribeFieldIndexesOutput{}
	req = c.newRequest(op, input, output)
	return
}

// DescribeFieldIndexes API operation for Amazon CloudWatch Logs.
//
// Returns a list of field indexes listed in the field index policies of one
// or more log groups. For more information about field index policies, see
// PutIndexPolicy (https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_PutIndexPolicy.html).
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon CloudWatch Logs's
// API operation DescribeFieldIndexes for usage and error information.
//
// Returned Error Types:
//
//   - InvalidParameterException
//     A parameter is specified incorrectly.
//
//   - ResourceNotFoundException
//     The specified resource does not exist.
//
//   - LimitExceededException
//     You have reached the maximum number of resources that can be created.
//
//   - OperationAbortedException
//     Multiple concurrent requests to update the same resource were in conflict.
//
//   - ServiceUnavailableException
//     The service cannot complete the request.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DescribeFieldIndexes
func (c *CloudWatchLogs) DescribeFieldIndexes(input *DescribeFieldIndexesInput) (*DescribeFieldIndexesOutput, error) {
	req, out := c.DescribeFieldIndexesRequest(input)
	return out, req.Send()
}

// DescribeFieldIndexesWithContext is the same as DescribeFieldIndexes with the addition of
// the ability to pass a context and additional request options.
//
// See DescribeFieldIndexes 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 *CloudWatchLogs) DescribeFieldIndexesWithContext(ctx aws.Context, input *DescribeFieldIndexesInput, opts ...request.Option) (*DescribeFieldIndexesOutput, error) {
	req, out := c.DescribeFieldIndexesRequest(input)
	req.SetContext(ctx)
	req.ApplyOptions(opts...)
	return out, req.Send()
}

const opDescribeIndexPolicies = "DescribeIndexPolicies"

// DescribeIndexPoliciesRequest generates a "aws/request.Request" representing the
// client's request for the DescribeIndexPolicies operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// 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 DescribeIndexPolicies for more information on using the DescribeIndexPolicies
// 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 DescribeIndexPoliciesRequest method.
//	req, resp := client.DescribeIndexPoliciesRequest(params)
//
//	err := req.Send()
//	if err == nil { // resp is now filled
//	    fmt.Println(resp)
//	}
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DescribeIndexPolicies
func (c *CloudWatchLogs) DescribeIndexPoliciesRequest(input *DescribeIndexPoliciesInput) (req *request.Request, output *DescribeIndexPoliciesOutput) {
	op := &request.Operation{
		Name:       opDescribeIndexPolicies,
		HTTPMethod: "POST",
		HTTPPath:   "/",
	}

	if input == nil {
		input = &DescribeIndexPoliciesInput{}
	}

	output = &DescribeIndexPoliciesOutput{}
	req = c.newRequest(op, input, output)
	return
}

// DescribeIndexPolicies API operation for Amazon CloudWatch Logs.
//
// Returns the field index policies of one or more log groups. For more information
// about field index policies, see PutIndexPolicy (https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_PutIndexPolicy.html).
//
// If a specified log group has a log-group level index policy, that policy
// is returned by this operation.
//
// If a specified log group doesn't have a log-group level index policy, but
// an account-wide index policy applies to it, that account-wide policy is returned
// by this operation.
//
// To find information about only account-level policies, use DescribeAccountPolicies
// (https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_DescribeAccountPolicies.html)
// instead.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon CloudWatch Logs's
// API operation DescribeIndexPolicies for usage and error information.
//
// Returned Error Types:
//
//   - InvalidParameterException
//     A parameter is specified incorrectly.
//
//   - ResourceNotFoundException
//     The specified resource does not exist.
//
//   - LimitExceededException
//     You have reached the maximum number of resources that can be created.
//
//   - OperationAbortedException
//     Multiple concurrent requests to update the same resource were in conflict.
//
//   - ServiceUnavailableException
//     The service cannot complete the request.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DescribeIndexPolicies
func (c *CloudWatchLogs) DescribeIndexPolicies(input *DescribeIndexPoliciesInput) (*DescribeIndexPoliciesOutput, error) {
	req, out := c.DescribeIndexPoliciesRequest(input)
	return out, req.Send()
}

// DescribeIndexPoliciesWithContext is the same as DescribeIndexPolicies with the addition of
// the ability to pass a context and additional request options.
//
// See DescribeIndexPolicies 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 *CloudWatchLogs) DescribeIndexPoliciesWithContext(ctx aws.Context, input *DescribeIndexPoliciesInput, opts ...request.Option) (*DescribeIndexPoliciesOutput, error) {
	req, out := c.DescribeIndexPoliciesRequest(input)
	req.SetContext(ctx)
	req.ApplyOptions(opts...)
	return out, req.Send()
}

const opDescribeLogGroups = "DescribeLogGroups"

// DescribeLogGroupsRequest generates a "aws/request.Request" representing the
// client's request for the DescribeLogGroups operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// 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 DescribeLogGroups for more information on using the DescribeLogGroups
// 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 DescribeLogGroupsRequest method.
//	req, resp := client.DescribeLogGroupsRequest(params)
//
//	err := req.Send()
//	if err == nil { // resp is now filled
//	    fmt.Println(resp)
//	}
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DescribeLogGroups
func (c *CloudWatchLogs) DescribeLogGroupsRequest(input *DescribeLogGroupsInput) (req *request.Request, output *DescribeLogGroupsOutput) {
	op := &request.Operation{
		Name:       opDescribeLogGroups,
		HTTPMethod: "POST",
		HTTPPath:   "/",
		Paginator: &request.Paginator{
			InputTokens:     []string{"nextToken"},
			OutputTokens:    []string{"nextToken"},
			LimitToken:      "limit",
			TruncationToken: "",
		},
	}

	if input == nil {
		input = &DescribeLogGroupsInput{}
	}

	output = &DescribeLogGroupsOutput{}
	req = c.newRequest(op, input, output)
	return
}

// DescribeLogGroups API operation for Amazon CloudWatch Logs.
//
// Returns information about log groups. You can return all your log groups
// or filter the results by prefix. The results are ASCII-sorted by log group
// name.
//
// CloudWatch Logs doesn't support IAM policies that control access to the DescribeLogGroups
// action by using the aws:ResourceTag/key-name condition key. Other CloudWatch
// Logs actions do support the use of the aws:ResourceTag/key-name condition
// key to control access. For more information about using tags to control access,
// see Controlling access to Amazon Web Services resources using tags (https://docs.aws.amazon.com/IAM/latest/UserGuide/access_tags.html).
//
// If you are using CloudWatch cross-account observability, you can use this
// operation in a monitoring account and view data from the linked source accounts.
// For more information, see CloudWatch cross-account observability (https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-Unified-Cross-Account.html).
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon CloudWatch Logs's
// API operation DescribeLogGroups for usage and error information.
//
// Returned Error Types:
//
//   - InvalidParameterException
//     A parameter is specified incorrectly.
//
//   - ServiceUnavailableException
//     The service cannot complete the request.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DescribeLogGroups
func (c *CloudWatchLogs) DescribeLogGroups(input *DescribeLogGroupsInput) (*DescribeLogGroupsOutput, error) {
	req, out := c.DescribeLogGroupsRequest(input)
	return out, req.Send()
}

// DescribeLogGroupsWithContext is the same as DescribeLogGroups with the addition of
// the ability to pass a context and additional request options.
//
// See DescribeLogGroups 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 *CloudWatchLogs) DescribeLogGroupsWithContext(ctx aws.Context, input *DescribeLogGroupsInput, opts ...request.Option) (*DescribeLogGroupsOutput, error) {
	req, out := c.DescribeLogGroupsRequest(input)
	req.SetContext(ctx)
	req.ApplyOptions(opts...)
	return out, req.Send()
}

// DescribeLogGroupsPages iterates over the pages of a DescribeLogGroups operation,
// calling the "fn" function with the response data for each page. To stop
// iterating, return false from the fn function.
//
// See DescribeLogGroups 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 DescribeLogGroups operation.
//	pageNum := 0
//	err := client.DescribeLogGroupsPages(params,
//	    func(page *cloudwatchlogs.DescribeLogGroupsOutput, lastPage bool) bool {
//	        pageNum++
//	        fmt.Println(page)
//	        return pageNum <= 3
//	    })
func (c *CloudWatchLogs) DescribeLogGroupsPages(input *DescribeLogGroupsInput, fn func(*DescribeLogGroupsOutput, bool) bool) error {
	return c.DescribeLogGroupsPagesWithContext(aws.BackgroundContext(), input, fn)
}

// DescribeLogGroupsPagesWithContext same as DescribeLogGroupsPages 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 *CloudWatchLogs) DescribeLogGroupsPagesWithContext(ctx aws.Context, input *DescribeLogGroupsInput, fn func(*DescribeLogGroupsOutput, bool) bool, opts ...request.Option) error {
	p := request.Pagination{
		EndPageOnSameToken: true,
		NewRequest: func() (*request.Request, error) {
			var inCpy *DescribeLogGroupsInput
			if input != nil {
				tmp := *input
				inCpy = &tmp
			}
			req, _ := c.DescribeLogGroupsRequest(inCpy)
			req.SetContext(ctx)
			req.ApplyOptions(opts...)
			return req, nil
		},
	}

	for p.Next() {
		if !fn(p.Page().(*DescribeLogGroupsOutput), !p.HasNextPage()) {
			break
		}
	}

	return p.Err()
}

const opDescribeLogStreams = "DescribeLogStreams"

// DescribeLogStreamsRequest generates a "aws/request.Request" representing the
// client's request for the DescribeLogStreams operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// 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 DescribeLogStreams for more information on using the DescribeLogStreams
// 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 DescribeLogStreamsRequest method.
//	req, resp := client.DescribeLogStreamsRequest(params)
//
//	err := req.Send()
//	if err == nil { // resp is now filled
//	    fmt.Println(resp)
//	}
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DescribeLogStreams
func (c *CloudWatchLogs) DescribeLogStreamsRequest(input *DescribeLogStreamsInput) (req *request.Request, output *DescribeLogStreamsOutput) {
	op := &request.Operation{
		Name:       opDescribeLogStreams,
		HTTPMethod: "POST",
		HTTPPath:   "/",
		Paginator: &request.Paginator{
			InputTokens:     []string{"nextToken"},
			OutputTokens:    []string{"nextToken"},
			LimitToken:      "limit",
			TruncationToken: "",
		},
	}

	if input == nil {
		input = &DescribeLogStreamsInput{}
	}

	output = &DescribeLogStreamsOutput{}
	req = c.newRequest(op, input, output)
	return
}

// DescribeLogStreams API operation for Amazon CloudWatch Logs.
//
// Lists the log streams for the specified log group. You can list all the log
// streams or filter the results by prefix. You can also control how the results
// are ordered.
//
// You can specify the log group to search by using either logGroupIdentifier
// or logGroupName. You must include one of these two parameters, but you can't
// include both.
//
// This operation has a limit of 25 transactions per second, after which transactions
// are throttled.
//
// If you are using CloudWatch cross-account observability, you can use this
// operation in a monitoring account and view data from the linked source accounts.
// For more information, see CloudWatch cross-account observability (https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-Unified-Cross-Account.html).
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon CloudWatch Logs's
// API operation DescribeLogStreams for usage and error information.
//
// Returned Error Types:
//
//   - InvalidParameterException
//     A parameter is specified incorrectly.
//
//   - ResourceNotFoundException
//     The specified resource does not exist.
//
//   - ServiceUnavailableException
//     The service cannot complete the request.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DescribeLogStreams
func (c *CloudWatchLogs) DescribeLogStreams(input *DescribeLogStreamsInput) (*DescribeLogStreamsOutput, error) {
	req, out := c.DescribeLogStreamsRequest(input)
	return out, req.Send()
}

// DescribeLogStreamsWithContext is the same as DescribeLogStreams with the addition of
// the ability to pass a context and additional request options.
//
// See DescribeLogStreams 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 *CloudWatchLogs) DescribeLogStreamsWithContext(ctx aws.Context, input *DescribeLogStreamsInput, opts ...request.Option) (*DescribeLogStreamsOutput, error) {
	req, out := c.DescribeLogStreamsRequest(input)
	req.SetContext(ctx)
	req.ApplyOptions(opts...)
	return out, req.Send()
}

// DescribeLogStreamsPages iterates over the pages of a DescribeLogStreams operation,
// calling the "fn" function with the response data for each page. To stop
// iterating, return false from the fn function.
//
// See DescribeLogStreams 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 DescribeLogStreams operation.
//	pageNum := 0
//	err := client.DescribeLogStreamsPages(params,
//	    func(page *cloudwatchlogs.DescribeLogStreamsOutput, lastPage bool) bool {
//	        pageNum++
//	        fmt.Println(page)
//	        return pageNum <= 3
//	    })
func (c *CloudWatchLogs) DescribeLogStreamsPages(input *DescribeLogStreamsInput, fn func(*DescribeLogStreamsOutput, bool) bool) error {
	return c.DescribeLogStreamsPagesWithContext(aws.BackgroundContext(), input, fn)
}

// DescribeLogStreamsPagesWithContext same as DescribeLogStreamsPages 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 *CloudWatchLogs) DescribeLogStreamsPagesWithContext(ctx aws.Context, input *DescribeLogStreamsInput, fn func(*DescribeLogStreamsOutput, bool) bool, opts ...request.Option) error {
	p := request.Pagination{
		EndPageOnSameToken: true,
		NewRequest: func() (*request.Request, error) {
			var inCpy *DescribeLogStreamsInput
			if input != nil {
				tmp := *input
				inCpy = &tmp
			}
			req, _ := c.DescribeLogStreamsRequest(inCpy)
			req.SetContext(ctx)
			req.ApplyOptions(opts...)
			return req, nil
		},
	}

	for p.Next() {
		if !fn(p.Page().(*DescribeLogStreamsOutput), !p.HasNextPage()) {
			break
		}
	}

	return p.Err()
}

const opDescribeMetricFilters = "DescribeMetricFilters"

// DescribeMetricFiltersRequest generates a "aws/request.Request" representing the
// client's request for the DescribeMetricFilters operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// 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 DescribeMetricFilters for more information on using the DescribeMetricFilters
// 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 DescribeMetricFiltersRequest method.
//	req, resp := client.DescribeMetricFiltersRequest(params)
//
//	err := req.Send()
//	if err == nil { // resp is now filled
//	    fmt.Println(resp)
//	}
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DescribeMetricFilters
func (c *CloudWatchLogs) DescribeMetricFiltersRequest(input *DescribeMetricFiltersInput) (req *request.Request, output *DescribeMetricFiltersOutput) {
	op := &request.Operation{
		Name:       opDescribeMetricFilters,
		HTTPMethod: "POST",
		HTTPPath:   "/",
		Paginator: &request.Paginator{
			InputTokens:     []string{"nextToken"},
			OutputTokens:    []string{"nextToken"},
			LimitToken:      "limit",
			TruncationToken: "",
		},
	}

	if input == nil {
		input = &DescribeMetricFiltersInput{}
	}

	output = &DescribeMetricFiltersOutput{}
	req = c.newRequest(op, input, output)
	return
}

// DescribeMetricFilters API operation for Amazon CloudWatch Logs.
//
// Lists the specified metric filters. You can list all of the metric filters
// or filter the results by log name, prefix, metric name, or metric namespace.
// The results are ASCII-sorted by filter name.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon CloudWatch Logs's
// API operation DescribeMetricFilters for usage and error information.
//
// Returned Error Types:
//
//   - InvalidParameterException
//     A parameter is specified incorrectly.
//
//   - ResourceNotFoundException
//     The specified resource does not exist.
//
//   - ServiceUnavailableException
//     The service cannot complete the request.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DescribeMetricFilters
func (c *CloudWatchLogs) DescribeMetricFilters(input *DescribeMetricFiltersInput) (*DescribeMetricFiltersOutput, error) {
	req, out := c.DescribeMetricFiltersRequest(input)
	return out, req.Send()
}

// DescribeMetricFiltersWithContext is the same as DescribeMetricFilters with the addition of
// the ability to pass a context and additional request options.
//
// See DescribeMetricFilters 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 *CloudWatchLogs) DescribeMetricFiltersWithContext(ctx aws.Context, input *DescribeMetricFiltersInput, opts ...request.Option) (*DescribeMetricFiltersOutput, error) {
	req, out := c.DescribeMetricFiltersRequest(input)
	req.SetContext(ctx)
	req.ApplyOptions(opts...)
	return out, req.Send()
}

// DescribeMetricFiltersPages iterates over the pages of a DescribeMetricFilters operation,
// calling the "fn" function with the response data for each page. To stop
// iterating, return false from the fn function.
//
// See DescribeMetricFilters 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 DescribeMetricFilters operation.
//	pageNum := 0
//	err := client.DescribeMetricFiltersPages(params,
//	    func(page *cloudwatchlogs.DescribeMetricFiltersOutput, lastPage bool) bool {
//	        pageNum++
//	        fmt.Println(page)
//	        return pageNum <= 3
//	    })
func (c *CloudWatchLogs) DescribeMetricFiltersPages(input *DescribeMetricFiltersInput, fn func(*DescribeMetricFiltersOutput, bool) bool) error {
	return c.DescribeMetricFiltersPagesWithContext(aws.BackgroundContext(), input, fn)
}

// DescribeMetricFiltersPagesWithContext same as DescribeMetricFiltersPages 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 *CloudWatchLogs) DescribeMetricFiltersPagesWithContext(ctx aws.Context, input *DescribeMetricFiltersInput, fn func(*DescribeMetricFiltersOutput, bool) bool, opts ...request.Option) error {
	p := request.Pagination{
		EndPageOnSameToken: true,
		NewRequest: func() (*request.Request, error) {
			var inCpy *DescribeMetricFiltersInput
			if input != nil {
				tmp := *input
				inCpy = &tmp
			}
			req, _ := c.DescribeMetricFiltersRequest(inCpy)
			req.SetContext(ctx)
			req.ApplyOptions(opts...)
			return req, nil
		},
	}

	for p.Next() {
		if !fn(p.Page().(*DescribeMetricFiltersOutput), !p.HasNextPage()) {
			break
		}
	}

	return p.Err()
}

const opDescribeQueries = "DescribeQueries"

// DescribeQueriesRequest generates a "aws/request.Request" representing the
// client's request for the DescribeQueries operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// 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 DescribeQueries for more information on using the DescribeQueries
// 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 DescribeQueriesRequest method.
//	req, resp := client.DescribeQueriesRequest(params)
//
//	err := req.Send()
//	if err == nil { // resp is now filled
//	    fmt.Println(resp)
//	}
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DescribeQueries
func (c *CloudWatchLogs) DescribeQueriesRequest(input *DescribeQueriesInput) (req *request.Request, output *DescribeQueriesOutput) {
	op := &request.Operation{
		Name:       opDescribeQueries,
		HTTPMethod: "POST",
		HTTPPath:   "/",
	}

	if input == nil {
		input = &DescribeQueriesInput{}
	}

	output = &DescribeQueriesOutput{}
	req = c.newRequest(op, input, output)
	return
}

// DescribeQueries API operation for Amazon CloudWatch Logs.
//
// Returns a list of CloudWatch Logs Insights queries that are scheduled, running,
// or have been run recently in this account. You can request all queries or
// limit it to queries of a specific log group or queries with a certain status.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon CloudWatch Logs's
// API operation DescribeQueries for usage and error information.
//
// Returned Error Types:
//
//   - InvalidParameterException
//     A parameter is specified incorrectly.
//
//   - ResourceNotFoundException
//     The specified resource does not exist.
//
//   - ServiceUnavailableException
//     The service cannot complete the request.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DescribeQueries
func (c *CloudWatchLogs) DescribeQueries(input *DescribeQueriesInput) (*DescribeQueriesOutput, error) {
	req, out := c.DescribeQueriesRequest(input)
	return out, req.Send()
}

// DescribeQueriesWithContext is the same as DescribeQueries with the addition of
// the ability to pass a context and additional request options.
//
// See DescribeQueries 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 *CloudWatchLogs) DescribeQueriesWithContext(ctx aws.Context, input *DescribeQueriesInput, opts ...request.Option) (*DescribeQueriesOutput, error) {
	req, out := c.DescribeQueriesRequest(input)
	req.SetContext(ctx)
	req.ApplyOptions(opts...)
	return out, req.Send()
}

const opDescribeQueryDefinitions = "DescribeQueryDefinitions"

// DescribeQueryDefinitionsRequest generates a "aws/request.Request" representing the
// client's request for the DescribeQueryDefinitions operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// 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 DescribeQueryDefinitions for more information on using the DescribeQueryDefinitions
// 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 DescribeQueryDefinitionsRequest method.
//	req, resp := client.DescribeQueryDefinitionsRequest(params)
//
//	err := req.Send()
//	if err == nil { // resp is now filled
//	    fmt.Println(resp)
//	}
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DescribeQueryDefinitions
func (c *CloudWatchLogs) DescribeQueryDefinitionsRequest(input *DescribeQueryDefinitionsInput) (req *request.Request, output *DescribeQueryDefinitionsOutput) {
	op := &request.Operation{
		Name:       opDescribeQueryDefinitions,
		HTTPMethod: "POST",
		HTTPPath:   "/",
	}

	if input == nil {
		input = &DescribeQueryDefinitionsInput{}
	}

	output = &DescribeQueryDefinitionsOutput{}
	req = c.newRequest(op, input, output)
	return
}

// DescribeQueryDefinitions API operation for Amazon CloudWatch Logs.
//
// This operation returns a paginated list of your saved CloudWatch Logs Insights
// query definitions. You can retrieve query definitions from the current account
// or from a source account that is linked to the current account.
//
// You can use the queryDefinitionNamePrefix parameter to limit the results
// to only the query definitions that have names that start with a certain string.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon CloudWatch Logs's
// API operation DescribeQueryDefinitions for usage and error information.
//
// Returned Error Types:
//
//   - InvalidParameterException
//     A parameter is specified incorrectly.
//
//   - ServiceUnavailableException
//     The service cannot complete the request.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DescribeQueryDefinitions
func (c *CloudWatchLogs) DescribeQueryDefinitions(input *DescribeQueryDefinitionsInput) (*DescribeQueryDefinitionsOutput, error) {
	req, out := c.DescribeQueryDefinitionsRequest(input)
	return out, req.Send()
}

// DescribeQueryDefinitionsWithContext is the same as DescribeQueryDefinitions with the addition of
// the ability to pass a context and additional request options.
//
// See DescribeQueryDefinitions 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 *CloudWatchLogs) DescribeQueryDefinitionsWithContext(ctx aws.Context, input *DescribeQueryDefinitionsInput, opts ...request.Option) (*DescribeQueryDefinitionsOutput, error) {
	req, out := c.DescribeQueryDefinitionsRequest(input)
	req.SetContext(ctx)
	req.ApplyOptions(opts...)
	return out, req.Send()
}

const opDescribeResourcePolicies = "DescribeResourcePolicies"

// DescribeResourcePoliciesRequest generates a "aws/request.Request" representing the
// client's request for the DescribeResourcePolicies operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// 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 DescribeResourcePolicies for more information on using the DescribeResourcePolicies
// 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 DescribeResourcePoliciesRequest method.
//	req, resp := client.DescribeResourcePoliciesRequest(params)
//
//	err := req.Send()
//	if err == nil { // resp is now filled
//	    fmt.Println(resp)
//	}
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DescribeResourcePolicies
func (c *CloudWatchLogs) DescribeResourcePoliciesRequest(input *DescribeResourcePoliciesInput) (req *request.Request, output *DescribeResourcePoliciesOutput) {
	op := &request.Operation{
		Name:       opDescribeResourcePolicies,
		HTTPMethod: "POST",
		HTTPPath:   "/",
	}

	if input == nil {
		input = &DescribeResourcePoliciesInput{}
	}

	output = &DescribeResourcePoliciesOutput{}
	req = c.newRequest(op, input, output)
	return
}

// DescribeResourcePolicies API operation for Amazon CloudWatch Logs.
//
// Lists the resource policies in this account.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon CloudWatch Logs's
// API operation DescribeResourcePolicies for usage and error information.
//
// Returned Error Types:
//
//   - InvalidParameterException
//     A parameter is specified incorrectly.
//
//   - ServiceUnavailableException
//     The service cannot complete the request.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DescribeResourcePolicies
func (c *CloudWatchLogs) DescribeResourcePolicies(input *DescribeResourcePoliciesInput) (*DescribeResourcePoliciesOutput, error) {
	req, out := c.DescribeResourcePoliciesRequest(input)
	return out, req.Send()
}

// DescribeResourcePoliciesWithContext is the same as DescribeResourcePolicies with the addition of
// the ability to pass a context and additional request options.
//
// See DescribeResourcePolicies 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 *CloudWatchLogs) DescribeResourcePoliciesWithContext(ctx aws.Context, input *DescribeResourcePoliciesInput, opts ...request.Option) (*DescribeResourcePoliciesOutput, error) {
	req, out := c.DescribeResourcePoliciesRequest(input)
	req.SetContext(ctx)
	req.ApplyOptions(opts...)
	return out, req.Send()
}

const opDescribeSubscriptionFilters = "DescribeSubscriptionFilters"

// DescribeSubscriptionFiltersRequest generates a "aws/request.Request" representing the
// client's request for the DescribeSubscriptionFilters operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// 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 DescribeSubscriptionFilters for more information on using the DescribeSubscriptionFilters
// 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 DescribeSubscriptionFiltersRequest method.
//	req, resp := client.DescribeSubscriptionFiltersRequest(params)
//
//	err := req.Send()
//	if err == nil { // resp is now filled
//	    fmt.Println(resp)
//	}
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DescribeSubscriptionFilters
func (c *CloudWatchLogs) DescribeSubscriptionFiltersRequest(input *DescribeSubscriptionFiltersInput) (req *request.Request, output *DescribeSubscriptionFiltersOutput) {
	op := &request.Operation{
		Name:       opDescribeSubscriptionFilters,
		HTTPMethod: "POST",
		HTTPPath:   "/",
		Paginator: &request.Paginator{
			InputTokens:     []string{"nextToken"},
			OutputTokens:    []string{"nextToken"},
			LimitToken:      "limit",
			TruncationToken: "",
		},
	}

	if input == nil {
		input = &DescribeSubscriptionFiltersInput{}
	}

	output = &DescribeSubscriptionFiltersOutput{}
	req = c.newRequest(op, input, output)
	return
}

// DescribeSubscriptionFilters API operation for Amazon CloudWatch Logs.
//
// Lists the subscription filters for the specified log group. You can list
// all the subscription filters or filter the results by prefix. The results
// are ASCII-sorted by filter name.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon CloudWatch Logs's
// API operation DescribeSubscriptionFilters for usage and error information.
//
// Returned Error Types:
//
//   - InvalidParameterException
//     A parameter is specified incorrectly.
//
//   - ResourceNotFoundException
//     The specified resource does not exist.
//
//   - ServiceUnavailableException
//     The service cannot complete the request.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DescribeSubscriptionFilters
func (c *CloudWatchLogs) DescribeSubscriptionFilters(input *DescribeSubscriptionFiltersInput) (*DescribeSubscriptionFiltersOutput, error) {
	req, out := c.DescribeSubscriptionFiltersRequest(input)
	return out, req.Send()
}

// DescribeSubscriptionFiltersWithContext is the same as DescribeSubscriptionFilters with the addition of
// the ability to pass a context and additional request options.
//
// See DescribeSubscriptionFilters 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 *CloudWatchLogs) DescribeSubscriptionFiltersWithContext(ctx aws.Context, input *DescribeSubscriptionFiltersInput, opts ...request.Option) (*DescribeSubscriptionFiltersOutput, error) {
	req, out := c.DescribeSubscriptionFiltersRequest(input)
	req.SetContext(ctx)
	req.ApplyOptions(opts...)
	return out, req.Send()
}

// DescribeSubscriptionFiltersPages iterates over the pages of a DescribeSubscriptionFilters operation,
// calling the "fn" function with the response data for each page. To stop
// iterating, return false from the fn function.
//
// See DescribeSubscriptionFilters 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 DescribeSubscriptionFilters operation.
//	pageNum := 0
//	err := client.DescribeSubscriptionFiltersPages(params,
//	    func(page *cloudwatchlogs.DescribeSubscriptionFiltersOutput, lastPage bool) bool {
//	        pageNum++
//	        fmt.Println(page)
//	        return pageNum <= 3
//	    })
func (c *CloudWatchLogs) DescribeSubscriptionFiltersPages(input *DescribeSubscriptionFiltersInput, fn func(*DescribeSubscriptionFiltersOutput, bool) bool) error {
	return c.DescribeSubscriptionFiltersPagesWithContext(aws.BackgroundContext(), input, fn)
}

// DescribeSubscriptionFiltersPagesWithContext same as DescribeSubscriptionFiltersPages 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 *CloudWatchLogs) DescribeSubscriptionFiltersPagesWithContext(ctx aws.Context, input *DescribeSubscriptionFiltersInput, fn func(*DescribeSubscriptionFiltersOutput, bool) bool, opts ...request.Option) error {
	p := request.Pagination{
		EndPageOnSameToken: true,
		NewRequest: func() (*request.Request, error) {
			var inCpy *DescribeSubscriptionFiltersInput
			if input != nil {
				tmp := *input
				inCpy = &tmp
			}
			req, _ := c.DescribeSubscriptionFiltersRequest(inCpy)
			req.SetContext(ctx)
			req.ApplyOptions(opts...)
			return req, nil
		},
	}

	for p.Next() {
		if !fn(p.Page().(*DescribeSubscriptionFiltersOutput), !p.HasNextPage()) {
			break
		}
	}

	return p.Err()
}

const opDisassociateKmsKey = "DisassociateKmsKey"

// DisassociateKmsKeyRequest generates a "aws/request.Request" representing the
// client's request for the DisassociateKmsKey operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// 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 DisassociateKmsKey for more information on using the DisassociateKmsKey
// 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 DisassociateKmsKeyRequest method.
//	req, resp := client.DisassociateKmsKeyRequest(params)
//
//	err := req.Send()
//	if err == nil { // resp is now filled
//	    fmt.Println(resp)
//	}
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DisassociateKmsKey
func (c *CloudWatchLogs) DisassociateKmsKeyRequest(input *DisassociateKmsKeyInput) (req *request.Request, output *DisassociateKmsKeyOutput) {
	op := &request.Operation{
		Name:       opDisassociateKmsKey,
		HTTPMethod: "POST",
		HTTPPath:   "/",
	}

	if input == nil {
		input = &DisassociateKmsKeyInput{}
	}

	output = &DisassociateKmsKeyOutput{}
	req = c.newRequest(op, input, output)
	req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
	return
}

// DisassociateKmsKey API operation for Amazon CloudWatch Logs.
//
// Disassociates the specified KMS key from the specified log group or from
// all CloudWatch Logs Insights query results in the account.
//
// When you use DisassociateKmsKey, you specify either the logGroupName parameter
// or the resourceIdentifier parameter. You can't specify both of those parameters
// in the same operation.
//
//   - Specify the logGroupName parameter to stop using the KMS key to encrypt
//     future log events ingested and stored in the log group. Instead, they
//     will be encrypted with the default CloudWatch Logs method. The log events
//     that were ingested while the key was associated with the log group are
//     still encrypted with that key. Therefore, CloudWatch Logs will need permissions
//     for the key whenever that data is accessed.
//
//   - Specify the resourceIdentifier parameter with the query-result resource
//     to stop using the KMS key to encrypt the results of all future StartQuery
//     (https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_StartQuery.html)
//     operations in the account. They will instead be encrypted with the default
//     CloudWatch Logs method. The results from queries that ran while the key
//     was associated with the account are still encrypted with that key. Therefore,
//     CloudWatch Logs will need permissions for the key whenever that data is
//     accessed.
//
// It can take up to 5 minutes for this operation to take effect.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon CloudWatch Logs's
// API operation DisassociateKmsKey for usage and error information.
//
// Returned Error Types:
//
//   - InvalidParameterException
//     A parameter is specified incorrectly.
//
//   - ResourceNotFoundException
//     The specified resource does not exist.
//
//   - OperationAbortedException
//     Multiple concurrent requests to update the same resource were in conflict.
//
//   - ServiceUnavailableException
//     The service cannot complete the request.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DisassociateKmsKey
func (c *CloudWatchLogs) DisassociateKmsKey(input *DisassociateKmsKeyInput) (*DisassociateKmsKeyOutput, error) {
	req, out := c.DisassociateKmsKeyRequest(input)
	return out, req.Send()
}

// DisassociateKmsKeyWithContext is the same as DisassociateKmsKey with the addition of
// the ability to pass a context and additional request options.
//
// See DisassociateKmsKey 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 *CloudWatchLogs) DisassociateKmsKeyWithContext(ctx aws.Context, input *DisassociateKmsKeyInput, opts ...request.Option) (*DisassociateKmsKeyOutput, error) {
	req, out := c.DisassociateKmsKeyRequest(input)
	req.SetContext(ctx)
	req.ApplyOptions(opts...)
	return out, req.Send()
}

const opFilterLogEvents = "FilterLogEvents"

// FilterLogEventsRequest generates a "aws/request.Request" representing the
// client's request for the FilterLogEvents operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// 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 FilterLogEvents for more information on using the FilterLogEvents
// 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 FilterLogEventsRequest method.
//	req, resp := client.FilterLogEventsRequest(params)
//
//	err := req.Send()
//	if err == nil { // resp is now filled
//	    fmt.Println(resp)
//	}
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/FilterLogEvents
func (c *CloudWatchLogs) FilterLogEventsRequest(input *FilterLogEventsInput) (req *request.Request, output *FilterLogEventsOutput) {
	op := &request.Operation{
		Name:       opFilterLogEvents,
		HTTPMethod: "POST",
		HTTPPath:   "/",
		Paginator: &request.Paginator{
			InputTokens:     []string{"nextToken"},
			OutputTokens:    []string{"nextToken"},
			LimitToken:      "limit",
			TruncationToken: "",
		},
	}

	if input == nil {
		input = &FilterLogEventsInput{}
	}

	output = &FilterLogEventsOutput{}
	req = c.newRequest(op, input, output)
	return
}

// FilterLogEvents API operation for Amazon CloudWatch Logs.
//
// Lists log events from the specified log group. You can list all the log events
// or filter the results using one or more of the following:
//
//   - A filter pattern
//
//   - A time range
//
//   - The log stream name, or a log stream name prefix that matches mutltiple
//     log streams
//
// You must have the logs:FilterLogEvents permission to perform this operation.
//
// You can specify the log group to search by using either logGroupIdentifier
// or logGroupName. You must include one of these two parameters, but you can't
// include both.
//
// FilterLogEvents is a paginated operation. Each page returned can contain
// up to 1 MB of log events or up to 10,000 log events. A returned page might
// only be partially full, or even empty. For example, if the result of a query
// would return 15,000 log events, the first page isn't guaranteed to have 10,000
// log events even if they all fit into 1 MB.
//
// Partially full or empty pages don't necessarily mean that pagination is finished.
// If the results include a nextToken, there might be more log events available.
// You can return these additional log events by providing the nextToken in
// a subsequent FilterLogEvents operation. If the results don't include a nextToken,
// then pagination is finished.
//
// Specifying the limit parameter only guarantees that a single page doesn't
// return more log events than the specified limit, but it might return fewer
// events than the limit. This is the expected API behavior.
//
// The returned log events are sorted by event timestamp, the timestamp when
// the event was ingested by CloudWatch Logs, and the ID of the PutLogEvents
// request.
//
// If you are using CloudWatch cross-account observability, you can use this
// operation in a monitoring account and view data from the linked source accounts.
// For more information, see CloudWatch cross-account observability (https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-Unified-Cross-Account.html).
//
// If you are using log transformation (https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/CloudWatch-Logs-Transformation.html),
// the FilterLogEvents operation returns only the original versions of log events,
// before they were transformed. To view the transformed versions, you must
// use a CloudWatch Logs query. (https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/AnalyzingLogData.html)
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon CloudWatch Logs's
// API operation FilterLogEvents for usage and error information.
//
// Returned Error Types:
//
//   - InvalidParameterException
//     A parameter is specified incorrectly.
//
//   - ResourceNotFoundException
//     The specified resource does not exist.
//
//   - ServiceUnavailableException
//     The service cannot complete the request.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/FilterLogEvents
func (c *CloudWatchLogs) FilterLogEvents(input *FilterLogEventsInput) (*FilterLogEventsOutput, error) {
	req, out := c.FilterLogEventsRequest(input)
	return out, req.Send()
}

// FilterLogEventsWithContext is the same as FilterLogEvents with the addition of
// the ability to pass a context and additional request options.
//
// See FilterLogEvents 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 *CloudWatchLogs) FilterLogEventsWithContext(ctx aws.Context, input *FilterLogEventsInput, opts ...request.Option) (*FilterLogEventsOutput, error) {
	req, out := c.FilterLogEventsRequest(input)
	req.SetContext(ctx)
	req.ApplyOptions(opts...)
	return out, req.Send()
}

// FilterLogEventsPages iterates over the pages of a FilterLogEvents operation,
// calling the "fn" function with the response data for each page. To stop
// iterating, return false from the fn function.
//
// See FilterLogEvents 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 FilterLogEvents operation.
//	pageNum := 0
//	err := client.FilterLogEventsPages(params,
//	    func(page *cloudwatchlogs.FilterLogEventsOutput, lastPage bool) bool {
//	        pageNum++
//	        fmt.Println(page)
//	        return pageNum <= 3
//	    })
func (c *CloudWatchLogs) FilterLogEventsPages(input *FilterLogEventsInput, fn func(*FilterLogEventsOutput, bool) bool) error {
	return c.FilterLogEventsPagesWithContext(aws.BackgroundContext(), input, fn)
}

// FilterLogEventsPagesWithContext same as FilterLogEventsPages 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 *CloudWatchLogs) FilterLogEventsPagesWithContext(ctx aws.Context, input *FilterLogEventsInput, fn func(*FilterLogEventsOutput, bool) bool, opts ...request.Option) error {
	p := request.Pagination{
		EndPageOnSameToken: true,
		NewRequest: func() (*request.Request, error) {
			var inCpy *FilterLogEventsInput
			if input != nil {
				tmp := *input
				inCpy = &tmp
			}
			req, _ := c.FilterLogEventsRequest(inCpy)
			req.SetContext(ctx)
			req.ApplyOptions(opts...)
			return req, nil
		},
	}

	for p.Next() {
		if !fn(p.Page().(*FilterLogEventsOutput), !p.HasNextPage()) {
			break
		}
	}

	return p.Err()
}

const opGetDataProtectionPolicy = "GetDataProtectionPolicy"

// GetDataProtectionPolicyRequest generates a "aws/request.Request" representing the
// client's request for the GetDataProtectionPolicy operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// 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 GetDataProtectionPolicy for more information on using the GetDataProtectionPolicy
// 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 GetDataProtectionPolicyRequest method.
//	req, resp := client.GetDataProtectionPolicyRequest(params)
//
//	err := req.Send()
//	if err == nil { // resp is now filled
//	    fmt.Println(resp)
//	}
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/GetDataProtectionPolicy
func (c *CloudWatchLogs) GetDataProtectionPolicyRequest(input *GetDataProtectionPolicyInput) (req *request.Request, output *GetDataProtectionPolicyOutput) {
	op := &request.Operation{
		Name:       opGetDataProtectionPolicy,
		HTTPMethod: "POST",
		HTTPPath:   "/",
	}

	if input == nil {
		input = &GetDataProtectionPolicyInput{}
	}

	output = &GetDataProtectionPolicyOutput{}
	req = c.newRequest(op, input, output)
	return
}

// GetDataProtectionPolicy API operation for Amazon CloudWatch Logs.
//
// Returns information about a log group data protection policy.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon CloudWatch Logs's
// API operation GetDataProtectionPolicy for usage and error information.
//
// Returned Error Types:
//
//   - InvalidParameterException
//     A parameter is specified incorrectly.
//
//   - OperationAbortedException
//     Multiple concurrent requests to update the same resource were in conflict.
//
//   - ResourceNotFoundException
//     The specified resource does not exist.
//
//   - ServiceUnavailableException
//     The service cannot complete the request.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/GetDataProtectionPolicy
func (c *CloudWatchLogs) GetDataProtectionPolicy(input *GetDataProtectionPolicyInput) (*GetDataProtectionPolicyOutput, error) {
	req, out := c.GetDataProtectionPolicyRequest(input)
	return out, req.Send()
}

// GetDataProtectionPolicyWithContext is the same as GetDataProtectionPolicy with the addition of
// the ability to pass a context and additional request options.
//
// See GetDataProtectionPolicy 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 *CloudWatchLogs) GetDataProtectionPolicyWithContext(ctx aws.Context, input *GetDataProtectionPolicyInput, opts ...request.Option) (*GetDataProtectionPolicyOutput, error) {
	req, out := c.GetDataProtectionPolicyRequest(input)
	req.SetContext(ctx)
	req.ApplyOptions(opts...)
	return out, req.Send()
}

const opGetDelivery = "GetDelivery"

// GetDeliveryRequest generates a "aws/request.Request" representing the
// client's request for the GetDelivery operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// 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 GetDelivery for more information on using the GetDelivery
// 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 GetDeliveryRequest method.
//	req, resp := client.GetDeliveryRequest(params)
//
//	err := req.Send()
//	if err == nil { // resp is now filled
//	    fmt.Println(resp)
//	}
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/GetDelivery
func (c *CloudWatchLogs) GetDeliveryRequest(input *GetDeliveryInput) (req *request.Request, output *GetDeliveryOutput) {
	op := &request.Operation{
		Name:       opGetDelivery,
		HTTPMethod: "POST",
		HTTPPath:   "/",
	}

	if input == nil {
		input = &GetDeliveryInput{}
	}

	output = &GetDeliveryOutput{}
	req = c.newRequest(op, input, output)
	return
}

// GetDelivery API operation for Amazon CloudWatch Logs.
//
// Returns complete information about one logical delivery. A delivery is a
// connection between a delivery source (https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_PutDeliverySource.html)
// and a delivery destination (https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_PutDeliveryDestination.html).
//
// A delivery source represents an Amazon Web Services resource that sends logs
// to an logs delivery destination. The destination can be CloudWatch Logs,
// Amazon S3, or Firehose. Only some Amazon Web Services services support being
// configured as a delivery source. These services are listed in Enable logging
// from Amazon Web Services services. (https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/AWS-logs-and-resource-policy.html)
//
// You need to specify the delivery id in this operation. You can find the IDs
// of the deliveries in your account with the DescribeDeliveries (https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_DescribeDeliveries.html)
// operation.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon CloudWatch Logs's
// API operation GetDelivery for usage and error information.
//
// Returned Error Types:
//
//   - ResourceNotFoundException
//     The specified resource does not exist.
//
//   - ServiceUnavailableException
//     The service cannot complete the request.
//
//   - ValidationException
//     One of the parameters for the request is not valid.
//
//   - ServiceQuotaExceededException
//     This request exceeds a service quota.
//
//   - ThrottlingException
//     The request was throttled because of quota limits.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/GetDelivery
func (c *CloudWatchLogs) GetDelivery(input *GetDeliveryInput) (*GetDeliveryOutput, error) {
	req, out := c.GetDeliveryRequest(input)
	return out, req.Send()
}

// GetDeliveryWithContext is the same as GetDelivery with the addition of
// the ability to pass a context and additional request options.
//
// See GetDelivery 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 *CloudWatchLogs) GetDeliveryWithContext(ctx aws.Context, input *GetDeliveryInput, opts ...request.Option) (*GetDeliveryOutput, error) {
	req, out := c.GetDeliveryRequest(input)
	req.SetContext(ctx)
	req.ApplyOptions(opts...)
	return out, req.Send()
}

const opGetDeliveryDestination = "GetDeliveryDestination"

// GetDeliveryDestinationRequest generates a "aws/request.Request" representing the
// client's request for the GetDeliveryDestination operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// 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 GetDeliveryDestination for more information on using the GetDeliveryDestination
// 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 GetDeliveryDestinationRequest method.
//	req, resp := client.GetDeliveryDestinationRequest(params)
//
//	err := req.Send()
//	if err == nil { // resp is now filled
//	    fmt.Println(resp)
//	}
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/GetDeliveryDestination
func (c *CloudWatchLogs) GetDeliveryDestinationRequest(input *GetDeliveryDestinationInput) (req *request.Request, output *GetDeliveryDestinationOutput) {
	op := &request.Operation{
		Name:       opGetDeliveryDestination,
		HTTPMethod: "POST",
		HTTPPath:   "/",
	}

	if input == nil {
		input = &GetDeliveryDestinationInput{}
	}

	output = &GetDeliveryDestinationOutput{}
	req = c.newRequest(op, input, output)
	return
}

// GetDeliveryDestination API operation for Amazon CloudWatch Logs.
//
// Retrieves complete information about one delivery destination.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon CloudWatch Logs's
// API operation GetDeliveryDestination for usage and error information.
//
// Returned Error Types:
//
//   - ResourceNotFoundException
//     The specified resource does not exist.
//
//   - ServiceUnavailableException
//     The service cannot complete the request.
//
//   - ValidationException
//     One of the parameters for the request is not valid.
//
//   - ServiceQuotaExceededException
//     This request exceeds a service quota.
//
//   - ThrottlingException
//     The request was throttled because of quota limits.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/GetDeliveryDestination
func (c *CloudWatchLogs) GetDeliveryDestination(input *GetDeliveryDestinationInput) (*GetDeliveryDestinationOutput, error) {
	req, out := c.GetDeliveryDestinationRequest(input)
	return out, req.Send()
}

// GetDeliveryDestinationWithContext is the same as GetDeliveryDestination with the addition of
// the ability to pass a context and additional request options.
//
// See GetDeliveryDestination 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 *CloudWatchLogs) GetDeliveryDestinationWithContext(ctx aws.Context, input *GetDeliveryDestinationInput, opts ...request.Option) (*GetDeliveryDestinationOutput, error) {
	req, out := c.GetDeliveryDestinationRequest(input)
	req.SetContext(ctx)
	req.ApplyOptions(opts...)
	return out, req.Send()
}

const opGetDeliveryDestinationPolicy = "GetDeliveryDestinationPolicy"

// GetDeliveryDestinationPolicyRequest generates a "aws/request.Request" representing the
// client's request for the GetDeliveryDestinationPolicy operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// 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 GetDeliveryDestinationPolicy for more information on using the GetDeliveryDestinationPolicy
// 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 GetDeliveryDestinationPolicyRequest method.
//	req, resp := client.GetDeliveryDestinationPolicyRequest(params)
//
//	err := req.Send()
//	if err == nil { // resp is now filled
//	    fmt.Println(resp)
//	}
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/GetDeliveryDestinationPolicy
func (c *CloudWatchLogs) GetDeliveryDestinationPolicyRequest(input *GetDeliveryDestinationPolicyInput) (req *request.Request, output *GetDeliveryDestinationPolicyOutput) {
	op := &request.Operation{
		Name:       opGetDeliveryDestinationPolicy,
		HTTPMethod: "POST",
		HTTPPath:   "/",
	}

	if input == nil {
		input = &GetDeliveryDestinationPolicyInput{}
	}

	output = &GetDeliveryDestinationPolicyOutput{}
	req = c.newRequest(op, input, output)
	return
}

// GetDeliveryDestinationPolicy API operation for Amazon CloudWatch Logs.
//
// Retrieves the delivery destination policy assigned to the delivery destination
// that you specify. For more information about delivery destinations and their
// policies, see PutDeliveryDestinationPolicy (https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_PutDeliveryDestinationPolicy.html).
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon CloudWatch Logs's
// API operation GetDeliveryDestinationPolicy for usage and error information.
//
// Returned Error Types:
//
//   - ServiceUnavailableException
//     The service cannot complete the request.
//
//   - ValidationException
//     One of the parameters for the request is not valid.
//
//   - ResourceNotFoundException
//     The specified resource does not exist.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/GetDeliveryDestinationPolicy
func (c *CloudWatchLogs) GetDeliveryDestinationPolicy(input *GetDeliveryDestinationPolicyInput) (*GetDeliveryDestinationPolicyOutput, error) {
	req, out := c.GetDeliveryDestinationPolicyRequest(input)
	return out, req.Send()
}

// GetDeliveryDestinationPolicyWithContext is the same as GetDeliveryDestinationPolicy with the addition of
// the ability to pass a context and additional request options.
//
// See GetDeliveryDestinationPolicy 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 *CloudWatchLogs) GetDeliveryDestinationPolicyWithContext(ctx aws.Context, input *GetDeliveryDestinationPolicyInput, opts ...request.Option) (*GetDeliveryDestinationPolicyOutput, error) {
	req, out := c.GetDeliveryDestinationPolicyRequest(input)
	req.SetContext(ctx)
	req.ApplyOptions(opts...)
	return out, req.Send()
}

const opGetDeliverySource = "GetDeliverySource"

// GetDeliverySourceRequest generates a "aws/request.Request" representing the
// client's request for the GetDeliverySource operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// 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 GetDeliverySource for more information on using the GetDeliverySource
// 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 GetDeliverySourceRequest method.
//	req, resp := client.GetDeliverySourceRequest(params)
//
//	err := req.Send()
//	if err == nil { // resp is now filled
//	    fmt.Println(resp)
//	}
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/GetDeliverySource
func (c *CloudWatchLogs) GetDeliverySourceRequest(input *GetDeliverySourceInput) (req *request.Request, output *GetDeliverySourceOutput) {
	op := &request.Operation{
		Name:       opGetDeliverySource,
		HTTPMethod: "POST",
		HTTPPath:   "/",
	}

	if input == nil {
		input = &GetDeliverySourceInput{}
	}

	output = &GetDeliverySourceOutput{}
	req = c.newRequest(op, input, output)
	return
}

// GetDeliverySource API operation for Amazon CloudWatch Logs.
//
// Retrieves complete information about one delivery source.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon CloudWatch Logs's
// API operation GetDeliverySource for usage and error information.
//
// Returned Error Types:
//
//   - ResourceNotFoundException
//     The specified resource does not exist.
//
//   - ServiceUnavailableException
//     The service cannot complete the request.
//
//   - ValidationException
//     One of the parameters for the request is not valid.
//
//   - ServiceQuotaExceededException
//     This request exceeds a service quota.
//
//   - ThrottlingException
//     The request was throttled because of quota limits.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/GetDeliverySource
func (c *CloudWatchLogs) GetDeliverySource(input *GetDeliverySourceInput) (*GetDeliverySourceOutput, error) {
	req, out := c.GetDeliverySourceRequest(input)
	return out, req.Send()
}

// GetDeliverySourceWithContext is the same as GetDeliverySource with the addition of
// the ability to pass a context and additional request options.
//
// See GetDeliverySource 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 *CloudWatchLogs) GetDeliverySourceWithContext(ctx aws.Context, input *GetDeliverySourceInput, opts ...request.Option) (*GetDeliverySourceOutput, error) {
	req, out := c.GetDeliverySourceRequest(input)
	req.SetContext(ctx)
	req.ApplyOptions(opts...)
	return out, req.Send()
}

const opGetIntegration = "GetIntegration"

// GetIntegrationRequest generates a "aws/request.Request" representing the
// client's request for the GetIntegration operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// 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 GetIntegration for more information on using the GetIntegration
// 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 GetIntegrationRequest method.
//	req, resp := client.GetIntegrationRequest(params)
//
//	err := req.Send()
//	if err == nil { // resp is now filled
//	    fmt.Println(resp)
//	}
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/GetIntegration
func (c *CloudWatchLogs) GetIntegrationRequest(input *GetIntegrationInput) (req *request.Request, output *GetIntegrationOutput) {
	op := &request.Operation{
		Name:       opGetIntegration,
		HTTPMethod: "POST",
		HTTPPath:   "/",
	}

	if input == nil {
		input = &GetIntegrationInput{}
	}

	output = &GetIntegrationOutput{}
	req = c.newRequest(op, input, output)
	return
}

// GetIntegration API operation for Amazon CloudWatch Logs.
//
// Returns information about one integration between CloudWatch Logs and OpenSearch
// Service.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon CloudWatch Logs's
// API operation GetIntegration for usage and error information.
//
// Returned Error Types:
//
//   - InvalidParameterException
//     A parameter is specified incorrectly.
//
//   - ServiceUnavailableException
//     The service cannot complete the request.
//
//   - ResourceNotFoundException
//     The specified resource does not exist.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/GetIntegration
func (c *CloudWatchLogs) GetIntegration(input *GetIntegrationInput) (*GetIntegrationOutput, error) {
	req, out := c.GetIntegrationRequest(input)
	return out, req.Send()
}

// GetIntegrationWithContext is the same as GetIntegration with the addition of
// the ability to pass a context and additional request options.
//
// See GetIntegration 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 *CloudWatchLogs) GetIntegrationWithContext(ctx aws.Context, input *GetIntegrationInput, opts ...request.Option) (*GetIntegrationOutput, error) {
	req, out := c.GetIntegrationRequest(input)
	req.SetContext(ctx)
	req.ApplyOptions(opts...)
	return out, req.Send()
}

const opGetLogAnomalyDetector = "GetLogAnomalyDetector"

// GetLogAnomalyDetectorRequest generates a "aws/request.Request" representing the
// client's request for the GetLogAnomalyDetector operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// 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 GetLogAnomalyDetector for more information on using the GetLogAnomalyDetector
// 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 GetLogAnomalyDetectorRequest method.
//	req, resp := client.GetLogAnomalyDetectorRequest(params)
//
//	err := req.Send()
//	if err == nil { // resp is now filled
//	    fmt.Println(resp)
//	}
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/GetLogAnomalyDetector
func (c *CloudWatchLogs) GetLogAnomalyDetectorRequest(input *GetLogAnomalyDetectorInput) (req *request.Request, output *GetLogAnomalyDetectorOutput) {
	op := &request.Operation{
		Name:       opGetLogAnomalyDetector,
		HTTPMethod: "POST",
		HTTPPath:   "/",
	}

	if input == nil {
		input = &GetLogAnomalyDetectorInput{}
	}

	output = &GetLogAnomalyDetectorOutput{}
	req = c.newRequest(op, input, output)
	return
}

// GetLogAnomalyDetector API operation for Amazon CloudWatch Logs.
//
// Retrieves information about the log anomaly detector that you specify. The
// KMS key ARN detected is valid.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon CloudWatch Logs's
// API operation GetLogAnomalyDetector for usage and error information.
//
// Returned Error Types:
//
//   - InvalidParameterException
//     A parameter is specified incorrectly.
//
//   - ResourceNotFoundException
//     The specified resource does not exist.
//
//   - ServiceUnavailableException
//     The service cannot complete the request.
//
//   - OperationAbortedException
//     Multiple concurrent requests to update the same resource were in conflict.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/GetLogAnomalyDetector
func (c *CloudWatchLogs) GetLogAnomalyDetector(input *GetLogAnomalyDetectorInput) (*GetLogAnomalyDetectorOutput, error) {
	req, out := c.GetLogAnomalyDetectorRequest(input)
	return out, req.Send()
}

// GetLogAnomalyDetectorWithContext is the same as GetLogAnomalyDetector with the addition of
// the ability to pass a context and additional request options.
//
// See GetLogAnomalyDetector 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 *CloudWatchLogs) GetLogAnomalyDetectorWithContext(ctx aws.Context, input *GetLogAnomalyDetectorInput, opts ...request.Option) (*GetLogAnomalyDetectorOutput, error) {
	req, out := c.GetLogAnomalyDetectorRequest(input)
	req.SetContext(ctx)
	req.ApplyOptions(opts...)
	return out, req.Send()
}

const opGetLogEvents = "GetLogEvents"

// GetLogEventsRequest generates a "aws/request.Request" representing the
// client's request for the GetLogEvents operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// 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 GetLogEvents for more information on using the GetLogEvents
// 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 GetLogEventsRequest method.
//	req, resp := client.GetLogEventsRequest(params)
//
//	err := req.Send()
//	if err == nil { // resp is now filled
//	    fmt.Println(resp)
//	}
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/GetLogEvents
func (c *CloudWatchLogs) GetLogEventsRequest(input *GetLogEventsInput) (req *request.Request, output *GetLogEventsOutput) {
	op := &request.Operation{
		Name:       opGetLogEvents,
		HTTPMethod: "POST",
		HTTPPath:   "/",
		Paginator: &request.Paginator{
			InputTokens:     []string{"nextToken"},
			OutputTokens:    []string{"nextForwardToken"},
			LimitToken:      "limit",
			TruncationToken: "",
		},
	}

	if input == nil {
		input = &GetLogEventsInput{}
	}

	output = &GetLogEventsOutput{}
	req = c.newRequest(op, input, output)
	return
}

// GetLogEvents API operation for Amazon CloudWatch Logs.
//
// Lists log events from the specified log stream. You can list all of the log
// events or filter using a time range.
//
// GetLogEvents is a paginated operation. Each page returned can contain up
// to 1 MB of log events or up to 10,000 log events. A returned page might only
// be partially full, or even empty. For example, if the result of a query would
// return 15,000 log events, the first page isn't guaranteed to have 10,000
// log events even if they all fit into 1 MB.
//
// Partially full or empty pages don't necessarily mean that pagination is finished.
// As long as the nextBackwardToken or nextForwardToken returned is NOT equal
// to the nextToken that you passed into the API call, there might be more log
// events available. The token that you use depends on the direction you want
// to move in along the log stream. The returned tokens are never null.
//
// If you set startFromHead to true and you don’t include endTime in your
// request, you can end up in a situation where the pagination doesn't terminate.
// This can happen when the new log events are being added to the target log
// streams faster than they are being read. This situation is a good use case
// for the CloudWatch Logs Live Tail (https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/CloudWatchLogs_LiveTail.html)
// feature.
//
// If you are using CloudWatch cross-account observability, you can use this
// operation in a monitoring account and view data from the linked source accounts.
// For more information, see CloudWatch cross-account observability (https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-Unified-Cross-Account.html).
//
// You can specify the log group to search by using either logGroupIdentifier
// or logGroupName. You must include one of these two parameters, but you can't
// include both.
//
// If you are using log transformation (https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/CloudWatch-Logs-Transformation.html),
// the GetLogEvents operation returns only the original versions of log events,
// before they were transformed. To view the transformed versions, you must
// use a CloudWatch Logs query. (https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/AnalyzingLogData.html)
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon CloudWatch Logs's
// API operation GetLogEvents for usage and error information.
//
// Returned Error Types:
//
//   - InvalidParameterException
//     A parameter is specified incorrectly.
//
//   - ResourceNotFoundException
//     The specified resource does not exist.
//
//   - ServiceUnavailableException
//     The service cannot complete the request.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/GetLogEvents
func (c *CloudWatchLogs) GetLogEvents(input *GetLogEventsInput) (*GetLogEventsOutput, error) {
	req, out := c.GetLogEventsRequest(input)
	return out, req.Send()
}

// GetLogEventsWithContext is the same as GetLogEvents with the addition of
// the ability to pass a context and additional request options.
//
// See GetLogEvents 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 *CloudWatchLogs) GetLogEventsWithContext(ctx aws.Context, input *GetLogEventsInput, opts ...request.Option) (*GetLogEventsOutput, error) {
	req, out := c.GetLogEventsRequest(input)
	req.SetContext(ctx)
	req.ApplyOptions(opts...)
	return out, req.Send()
}

// GetLogEventsPages iterates over the pages of a GetLogEvents operation,
// calling the "fn" function with the response data for each page. To stop
// iterating, return false from the fn function.
//
// See GetLogEvents 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 GetLogEvents operation.
//	pageNum := 0
//	err := client.GetLogEventsPages(params,
//	    func(page *cloudwatchlogs.GetLogEventsOutput, lastPage bool) bool {
//	        pageNum++
//	        fmt.Println(page)
//	        return pageNum <= 3
//	    })
func (c *CloudWatchLogs) GetLogEventsPages(input *GetLogEventsInput, fn func(*GetLogEventsOutput, bool) bool) error {
	return c.GetLogEventsPagesWithContext(aws.BackgroundContext(), input, fn)
}

// GetLogEventsPagesWithContext same as GetLogEventsPages 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 *CloudWatchLogs) GetLogEventsPagesWithContext(ctx aws.Context, input *GetLogEventsInput, fn func(*GetLogEventsOutput, bool) bool, opts ...request.Option) error {
	p := request.Pagination{
		EndPageOnSameToken: true,
		NewRequest: func() (*request.Request, error) {
			var inCpy *GetLogEventsInput
			if input != nil {
				tmp := *input
				inCpy = &tmp
			}
			req, _ := c.GetLogEventsRequest(inCpy)
			req.SetContext(ctx)
			req.ApplyOptions(opts...)
			return req, nil
		},
	}

	for p.Next() {
		if !fn(p.Page().(*GetLogEventsOutput), !p.HasNextPage()) {
			break
		}
	}

	return p.Err()
}

const opGetLogGroupFields = "GetLogGroupFields"

// GetLogGroupFieldsRequest generates a "aws/request.Request" representing the
// client's request for the GetLogGroupFields operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// 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 GetLogGroupFields for more information on using the GetLogGroupFields
// 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 GetLogGroupFieldsRequest method.
//	req, resp := client.GetLogGroupFieldsRequest(params)
//
//	err := req.Send()
//	if err == nil { // resp is now filled
//	    fmt.Println(resp)
//	}
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/GetLogGroupFields
func (c *CloudWatchLogs) GetLogGroupFieldsRequest(input *GetLogGroupFieldsInput) (req *request.Request, output *GetLogGroupFieldsOutput) {
	op := &request.Operation{
		Name:       opGetLogGroupFields,
		HTTPMethod: "POST",
		HTTPPath:   "/",
	}

	if input == nil {
		input = &GetLogGroupFieldsInput{}
	}

	output = &GetLogGroupFieldsOutput{}
	req = c.newRequest(op, input, output)
	return
}

// GetLogGroupFields API operation for Amazon CloudWatch Logs.
//
// Returns a list of the fields that are included in log events in the specified
// log group. Includes the percentage of log events that contain each field.
// The search is limited to a time period that you specify.
//
// You can specify the log group to search by using either logGroupIdentifier
// or logGroupName. You must specify one of these parameters, but you can't
// specify both.
//
// In the results, fields that start with @ are fields generated by CloudWatch
// Logs. For example, @timestamp is the timestamp of each log event. For more
// information about the fields that are generated by CloudWatch logs, see Supported
// Logs and Discovered Fields (https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/CWL_AnalyzeLogData-discoverable-fields.html).
//
// The response results are sorted by the frequency percentage, starting with
// the highest percentage.
//
// If you are using CloudWatch cross-account observability, you can use this
// operation in a monitoring account and view data from the linked source accounts.
// For more information, see CloudWatch cross-account observability (https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-Unified-Cross-Account.html).
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon CloudWatch Logs's
// API operation GetLogGroupFields for usage and error information.
//
// Returned Error Types:
//
//   - InvalidParameterException
//     A parameter is specified incorrectly.
//
//   - LimitExceededException
//     You have reached the maximum number of resources that can be created.
//
//   - ResourceNotFoundException
//     The specified resource does not exist.
//
//   - ServiceUnavailableException
//     The service cannot complete the request.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/GetLogGroupFields
func (c *CloudWatchLogs) GetLogGroupFields(input *GetLogGroupFieldsInput) (*GetLogGroupFieldsOutput, error) {
	req, out := c.GetLogGroupFieldsRequest(input)
	return out, req.Send()
}

// GetLogGroupFieldsWithContext is the same as GetLogGroupFields with the addition of
// the ability to pass a context and additional request options.
//
// See GetLogGroupFields 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 *CloudWatchLogs) GetLogGroupFieldsWithContext(ctx aws.Context, input *GetLogGroupFieldsInput, opts ...request.Option) (*GetLogGroupFieldsOutput, error) {
	req, out := c.GetLogGroupFieldsRequest(input)
	req.SetContext(ctx)
	req.ApplyOptions(opts...)
	return out, req.Send()
}

const opGetLogRecord = "GetLogRecord"

// GetLogRecordRequest generates a "aws/request.Request" representing the
// client's request for the GetLogRecord operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// 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 GetLogRecord for more information on using the GetLogRecord
// 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 GetLogRecordRequest method.
//	req, resp := client.GetLogRecordRequest(params)
//
//	err := req.Send()
//	if err == nil { // resp is now filled
//	    fmt.Println(resp)
//	}
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/GetLogRecord
func (c *CloudWatchLogs) GetLogRecordRequest(input *GetLogRecordInput) (req *request.Request, output *GetLogRecordOutput) {
	op := &request.Operation{
		Name:       opGetLogRecord,
		HTTPMethod: "POST",
		HTTPPath:   "/",
	}

	if input == nil {
		input = &GetLogRecordInput{}
	}

	output = &GetLogRecordOutput{}
	req = c.newRequest(op, input, output)
	return
}

// GetLogRecord API operation for Amazon CloudWatch Logs.
//
// Retrieves all of the fields and values of a single log event. All fields
// are retrieved, even if the original query that produced the logRecordPointer
// retrieved only a subset of fields. Fields are returned as field name/field
// value pairs.
//
// The full unparsed log event is returned within @message.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon CloudWatch Logs's
// API operation GetLogRecord for usage and error information.
//
// Returned Error Types:
//
//   - InvalidParameterException
//     A parameter is specified incorrectly.
//
//   - LimitExceededException
//     You have reached the maximum number of resources that can be created.
//
//   - ResourceNotFoundException
//     The specified resource does not exist.
//
//   - ServiceUnavailableException
//     The service cannot complete the request.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/GetLogRecord
func (c *CloudWatchLogs) GetLogRecord(input *GetLogRecordInput) (*GetLogRecordOutput, error) {
	req, out := c.GetLogRecordRequest(input)
	return out, req.Send()
}

// GetLogRecordWithContext is the same as GetLogRecord with the addition of
// the ability to pass a context and additional request options.
//
// See GetLogRecord 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 *CloudWatchLogs) GetLogRecordWithContext(ctx aws.Context, input *GetLogRecordInput, opts ...request.Option) (*GetLogRecordOutput, error) {
	req, out := c.GetLogRecordRequest(input)
	req.SetContext(ctx)
	req.ApplyOptions(opts...)
	return out, req.Send()
}

const opGetQueryResults = "GetQueryResults"

// GetQueryResultsRequest generates a "aws/request.Request" representing the
// client's request for the GetQueryResults operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// 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 GetQueryResults for more information on using the GetQueryResults
// 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 GetQueryResultsRequest method.
//	req, resp := client.GetQueryResultsRequest(params)
//
//	err := req.Send()
//	if err == nil { // resp is now filled
//	    fmt.Println(resp)
//	}
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/GetQueryResults
func (c *CloudWatchLogs) GetQueryResultsRequest(input *GetQueryResultsInput) (req *request.Request, output *GetQueryResultsOutput) {
	op := &request.Operation{
		Name:       opGetQueryResults,
		HTTPMethod: "POST",
		HTTPPath:   "/",
	}

	if input == nil {
		input = &GetQueryResultsInput{}
	}

	output = &GetQueryResultsOutput{}
	req = c.newRequest(op, input, output)
	return
}

// GetQueryResults API operation for Amazon CloudWatch Logs.
//
// Returns the results from the specified query.
//
// Only the fields requested in the query are returned, along with a @ptr field,
// which is the identifier for the log record. You can use the value of @ptr
// in a GetLogRecord (https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_GetLogRecord.html)
// operation to get the full log record.
//
// GetQueryResults does not start running a query. To run a query, use StartQuery
// (https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_StartQuery.html).
// For more information about how long results of previous queries are available,
// see CloudWatch Logs quotas (https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/cloudwatch_limits_cwl.html).
//
// If the value of the Status field in the output is Running, this operation
// returns only partial results. If you see a value of Scheduled or Running
// for the status, you can retry the operation later to see the final results.
//
// If you are using CloudWatch cross-account observability, you can use this
// operation in a monitoring account to start queries in linked source accounts.
// For more information, see CloudWatch cross-account observability (https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-Unified-Cross-Account.html).
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon CloudWatch Logs's
// API operation GetQueryResults for usage and error information.
//
// Returned Error Types:
//
//   - InvalidParameterException
//     A parameter is specified incorrectly.
//
//   - ResourceNotFoundException
//     The specified resource does not exist.
//
//   - ServiceUnavailableException
//     The service cannot complete the request.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/GetQueryResults
func (c *CloudWatchLogs) GetQueryResults(input *GetQueryResultsInput) (*GetQueryResultsOutput, error) {
	req, out := c.GetQueryResultsRequest(input)
	return out, req.Send()
}

// GetQueryResultsWithContext is the same as GetQueryResults with the addition of
// the ability to pass a context and additional request options.
//
// See GetQueryResults 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 *CloudWatchLogs) GetQueryResultsWithContext(ctx aws.Context, input *GetQueryResultsInput, opts ...request.Option) (*GetQueryResultsOutput, error) {
	req, out := c.GetQueryResultsRequest(input)
	req.SetContext(ctx)
	req.ApplyOptions(opts...)
	return out, req.Send()
}

const opGetTransformer = "GetTransformer"

// GetTransformerRequest generates a "aws/request.Request" representing the
// client's request for the GetTransformer operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// 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 GetTransformer for more information on using the GetTransformer
// 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 GetTransformerRequest method.
//	req, resp := client.GetTransformerRequest(params)
//
//	err := req.Send()
//	if err == nil { // resp is now filled
//	    fmt.Println(resp)
//	}
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/GetTransformer
func (c *CloudWatchLogs) GetTransformerRequest(input *GetTransformerInput) (req *request.Request, output *GetTransformerOutput) {
	op := &request.Operation{
		Name:       opGetTransformer,
		HTTPMethod: "POST",
		HTTPPath:   "/",
	}

	if input == nil {
		input = &GetTransformerInput{}
	}

	output = &GetTransformerOutput{}
	req = c.newRequest(op, input, output)
	return
}

// GetTransformer API operation for Amazon CloudWatch Logs.
//
// Returns the information about the log transformer associated with this log
// group.
//
// This operation returns data only for transformers created at the log group
// level. To get information for an account-level transformer, use DescribeAccountPolicies
// (https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_DescribeAccountPolicies.html).
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon CloudWatch Logs's
// API operation GetTransformer for usage and error information.
//
// Returned Error Types:
//
//   - InvalidParameterException
//     A parameter is specified incorrectly.
//
//   - ResourceNotFoundException
//     The specified resource does not exist.
//
//   - ServiceUnavailableException
//     The service cannot complete the request.
//
//   - InvalidOperationException
//     The operation is not valid on the specified resource.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/GetTransformer
func (c *CloudWatchLogs) GetTransformer(input *GetTransformerInput) (*GetTransformerOutput, error) {
	req, out := c.GetTransformerRequest(input)
	return out, req.Send()
}

// GetTransformerWithContext is the same as GetTransformer with the addition of
// the ability to pass a context and additional request options.
//
// See GetTransformer 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 *CloudWatchLogs) GetTransformerWithContext(ctx aws.Context, input *GetTransformerInput, opts ...request.Option) (*GetTransformerOutput, error) {
	req, out := c.GetTransformerRequest(input)
	req.SetContext(ctx)
	req.ApplyOptions(opts...)
	return out, req.Send()
}

const opListAnomalies = "ListAnomalies"

// ListAnomaliesRequest generates a "aws/request.Request" representing the
// client's request for the ListAnomalies operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// 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 ListAnomalies for more information on using the ListAnomalies
// 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 ListAnomaliesRequest method.
//	req, resp := client.ListAnomaliesRequest(params)
//
//	err := req.Send()
//	if err == nil { // resp is now filled
//	    fmt.Println(resp)
//	}
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/ListAnomalies
func (c *CloudWatchLogs) ListAnomaliesRequest(input *ListAnomaliesInput) (req *request.Request, output *ListAnomaliesOutput) {
	op := &request.Operation{
		Name:       opListAnomalies,
		HTTPMethod: "POST",
		HTTPPath:   "/",
		Paginator: &request.Paginator{
			InputTokens:     []string{"nextToken"},
			OutputTokens:    []string{"nextToken"},
			LimitToken:      "limit",
			TruncationToken: "",
		},
	}

	if input == nil {
		input = &ListAnomaliesInput{}
	}

	output = &ListAnomaliesOutput{}
	req = c.newRequest(op, input, output)
	return
}

// ListAnomalies API operation for Amazon CloudWatch Logs.
//
// Returns a list of anomalies that log anomaly detectors have found. For details
// about the structure format of each anomaly object that is returned, see the
// example in this section.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon CloudWatch Logs's
// API operation ListAnomalies for usage and error information.
//
// Returned Error Types:
//
//   - InvalidParameterException
//     A parameter is specified incorrectly.
//
//   - ResourceNotFoundException
//     The specified resource does not exist.
//
//   - ServiceUnavailableException
//     The service cannot complete the request.
//
//   - OperationAbortedException
//     Multiple concurrent requests to update the same resource were in conflict.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/ListAnomalies
func (c *CloudWatchLogs) ListAnomalies(input *ListAnomaliesInput) (*ListAnomaliesOutput, error) {
	req, out := c.ListAnomaliesRequest(input)
	return out, req.Send()
}

// ListAnomaliesWithContext is the same as ListAnomalies with the addition of
// the ability to pass a context and additional request options.
//
// See ListAnomalies 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 *CloudWatchLogs) ListAnomaliesWithContext(ctx aws.Context, input *ListAnomaliesInput, opts ...request.Option) (*ListAnomaliesOutput, error) {
	req, out := c.ListAnomaliesRequest(input)
	req.SetContext(ctx)
	req.ApplyOptions(opts...)
	return out, req.Send()
}

// ListAnomaliesPages iterates over the pages of a ListAnomalies operation,
// calling the "fn" function with the response data for each page. To stop
// iterating, return false from the fn function.
//
// See ListAnomalies 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 ListAnomalies operation.
//	pageNum := 0
//	err := client.ListAnomaliesPages(params,
//	    func(page *cloudwatchlogs.ListAnomaliesOutput, lastPage bool) bool {
//	        pageNum++
//	        fmt.Println(page)
//	        return pageNum <= 3
//	    })
func (c *CloudWatchLogs) ListAnomaliesPages(input *ListAnomaliesInput, fn func(*ListAnomaliesOutput, bool) bool) error {
	return c.ListAnomaliesPagesWithContext(aws.BackgroundContext(), input, fn)
}

// ListAnomaliesPagesWithContext same as ListAnomaliesPages 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 *CloudWatchLogs) ListAnomaliesPagesWithContext(ctx aws.Context, input *ListAnomaliesInput, fn func(*ListAnomaliesOutput, bool) bool, opts ...request.Option) error {
	p := request.Pagination{
		EndPageOnSameToken: true,
		NewRequest: func() (*request.Request, error) {
			var inCpy *ListAnomaliesInput
			if input != nil {
				tmp := *input
				inCpy = &tmp
			}
			req, _ := c.ListAnomaliesRequest(inCpy)
			req.SetContext(ctx)
			req.ApplyOptions(opts...)
			return req, nil
		},
	}

	for p.Next() {
		if !fn(p.Page().(*ListAnomaliesOutput), !p.HasNextPage()) {
			break
		}
	}

	return p.Err()
}

const opListIntegrations = "ListIntegrations"

// ListIntegrationsRequest generates a "aws/request.Request" representing the
// client's request for the ListIntegrations operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// 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 ListIntegrations for more information on using the ListIntegrations
// 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 ListIntegrationsRequest method.
//	req, resp := client.ListIntegrationsRequest(params)
//
//	err := req.Send()
//	if err == nil { // resp is now filled
//	    fmt.Println(resp)
//	}
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/ListIntegrations
func (c *CloudWatchLogs) ListIntegrationsRequest(input *ListIntegrationsInput) (req *request.Request, output *ListIntegrationsOutput) {
	op := &request.Operation{
		Name:       opListIntegrations,
		HTTPMethod: "POST",
		HTTPPath:   "/",
	}

	if input == nil {
		input = &ListIntegrationsInput{}
	}

	output = &ListIntegrationsOutput{}
	req = c.newRequest(op, input, output)
	return
}

// ListIntegrations API operation for Amazon CloudWatch Logs.
//
// Returns a list of integrations between CloudWatch Logs and other services
// in this account. Currently, only one integration can be created in an account,
// and this integration must be with OpenSearch Service.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon CloudWatch Logs's
// API operation ListIntegrations for usage and error information.
//
// Returned Error Types:
//
//   - InvalidParameterException
//     A parameter is specified incorrectly.
//
//   - ServiceUnavailableException
//     The service cannot complete the request.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/ListIntegrations
func (c *CloudWatchLogs) ListIntegrations(input *ListIntegrationsInput) (*ListIntegrationsOutput, error) {
	req, out := c.ListIntegrationsRequest(input)
	return out, req.Send()
}

// ListIntegrationsWithContext is the same as ListIntegrations with the addition of
// the ability to pass a context and additional request options.
//
// See ListIntegrations 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 *CloudWatchLogs) ListIntegrationsWithContext(ctx aws.Context, input *ListIntegrationsInput, opts ...request.Option) (*ListIntegrationsOutput, error) {
	req, out := c.ListIntegrationsRequest(input)
	req.SetContext(ctx)
	req.ApplyOptions(opts...)
	return out, req.Send()
}

const opListLogAnomalyDetectors = "ListLogAnomalyDetectors"

// ListLogAnomalyDetectorsRequest generates a "aws/request.Request" representing the
// client's request for the ListLogAnomalyDetectors operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// 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 ListLogAnomalyDetectors for more information on using the ListLogAnomalyDetectors
// 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 ListLogAnomalyDetectorsRequest method.
//	req, resp := client.ListLogAnomalyDetectorsRequest(params)
//
//	err := req.Send()
//	if err == nil { // resp is now filled
//	    fmt.Println(resp)
//	}
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/ListLogAnomalyDetectors
func (c *CloudWatchLogs) ListLogAnomalyDetectorsRequest(input *ListLogAnomalyDetectorsInput) (req *request.Request, output *ListLogAnomalyDetectorsOutput) {
	op := &request.Operation{
		Name:       opListLogAnomalyDetectors,
		HTTPMethod: "POST",
		HTTPPath:   "/",
		Paginator: &request.Paginator{
			InputTokens:     []string{"nextToken"},
			OutputTokens:    []string{"nextToken"},
			LimitToken:      "limit",
			TruncationToken: "",
		},
	}

	if input == nil {
		input = &ListLogAnomalyDetectorsInput{}
	}

	output = &ListLogAnomalyDetectorsOutput{}
	req = c.newRequest(op, input, output)
	return
}

// ListLogAnomalyDetectors API operation for Amazon CloudWatch Logs.
//
// Retrieves a list of the log anomaly detectors in the account.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon CloudWatch Logs's
// API operation ListLogAnomalyDetectors for usage and error information.
//
// Returned Error Types:
//
//   - InvalidParameterException
//     A parameter is specified incorrectly.
//
//   - ResourceNotFoundException
//     The specified resource does not exist.
//
//   - ServiceUnavailableException
//     The service cannot complete the request.
//
//   - OperationAbortedException
//     Multiple concurrent requests to update the same resource were in conflict.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/ListLogAnomalyDetectors
func (c *CloudWatchLogs) ListLogAnomalyDetectors(input *ListLogAnomalyDetectorsInput) (*ListLogAnomalyDetectorsOutput, error) {
	req, out := c.ListLogAnomalyDetectorsRequest(input)
	return out, req.Send()
}

// ListLogAnomalyDetectorsWithContext is the same as ListLogAnomalyDetectors with the addition of
// the ability to pass a context and additional request options.
//
// See ListLogAnomalyDetectors 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 *CloudWatchLogs) ListLogAnomalyDetectorsWithContext(ctx aws.Context, input *ListLogAnomalyDetectorsInput, opts ...request.Option) (*ListLogAnomalyDetectorsOutput, error) {
	req, out := c.ListLogAnomalyDetectorsRequest(input)
	req.SetContext(ctx)
	req.ApplyOptions(opts...)
	return out, req.Send()
}

// ListLogAnomalyDetectorsPages iterates over the pages of a ListLogAnomalyDetectors operation,
// calling the "fn" function with the response data for each page. To stop
// iterating, return false from the fn function.
//
// See ListLogAnomalyDetectors 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 ListLogAnomalyDetectors operation.
//	pageNum := 0
//	err := client.ListLogAnomalyDetectorsPages(params,
//	    func(page *cloudwatchlogs.ListLogAnomalyDetectorsOutput, lastPage bool) bool {
//	        pageNum++
//	        fmt.Println(page)
//	        return pageNum <= 3
//	    })
func (c *CloudWatchLogs) ListLogAnomalyDetectorsPages(input *ListLogAnomalyDetectorsInput, fn func(*ListLogAnomalyDetectorsOutput, bool) bool) error {
	return c.ListLogAnomalyDetectorsPagesWithContext(aws.BackgroundContext(), input, fn)
}

// ListLogAnomalyDetectorsPagesWithContext same as ListLogAnomalyDetectorsPages 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 *CloudWatchLogs) ListLogAnomalyDetectorsPagesWithContext(ctx aws.Context, input *ListLogAnomalyDetectorsInput, fn func(*ListLogAnomalyDetectorsOutput, bool) bool, opts ...request.Option) error {
	p := request.Pagination{
		EndPageOnSameToken: true,
		NewRequest: func() (*request.Request, error) {
			var inCpy *ListLogAnomalyDetectorsInput
			if input != nil {
				tmp := *input
				inCpy = &tmp
			}
			req, _ := c.ListLogAnomalyDetectorsRequest(inCpy)
			req.SetContext(ctx)
			req.ApplyOptions(opts...)
			return req, nil
		},
	}

	for p.Next() {
		if !fn(p.Page().(*ListLogAnomalyDetectorsOutput), !p.HasNextPage()) {
			break
		}
	}

	return p.Err()
}

const opListLogGroups = "ListLogGroups"

// ListLogGroupsRequest generates a "aws/request.Request" representing the
// client's request for the ListLogGroups operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// 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 ListLogGroups for more information on using the ListLogGroups
// 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 ListLogGroupsRequest method.
//	req, resp := client.ListLogGroupsRequest(params)
//
//	err := req.Send()
//	if err == nil { // resp is now filled
//	    fmt.Println(resp)
//	}
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/ListLogGroups
func (c *CloudWatchLogs) ListLogGroupsRequest(input *ListLogGroupsInput) (req *request.Request, output *ListLogGroupsOutput) {
	op := &request.Operation{
		Name:       opListLogGroups,
		HTTPMethod: "POST",
		HTTPPath:   "/",
	}

	if input == nil {
		input = &ListLogGroupsInput{}
	}

	output = &ListLogGroupsOutput{}
	req = c.newRequest(op, input, output)
	return
}

// ListLogGroups API operation for Amazon CloudWatch Logs.
//
// Returns a list of log groups in the Region in your account. If you are performing
// this action in a monitoring account, you can choose to also return log groups
// from source accounts that are linked to the monitoring account. For more
// information about using cross-account observability to set up monitoring
// accounts and source accounts, see CloudWatch cross-account observability
// (https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-Unified-Cross-Account.html).
//
// You can optionally filter the list by log group class and by using regular
// expressions in your request to match strings in the log group names.
//
// This operation is paginated. By default, your first use of this operation
// returns 50 results, and includes a token to use in a subsequent operation
// to return more results.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon CloudWatch Logs's
// API operation ListLogGroups for usage and error information.
//
// Returned Error Types:
//
//   - InvalidParameterException
//     A parameter is specified incorrectly.
//
//   - ServiceUnavailableException
//     The service cannot complete the request.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/ListLogGroups
func (c *CloudWatchLogs) ListLogGroups(input *ListLogGroupsInput) (*ListLogGroupsOutput, error) {
	req, out := c.ListLogGroupsRequest(input)
	return out, req.Send()
}

// ListLogGroupsWithContext is the same as ListLogGroups with the addition of
// the ability to pass a context and additional request options.
//
// See ListLogGroups 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 *CloudWatchLogs) ListLogGroupsWithContext(ctx aws.Context, input *ListLogGroupsInput, opts ...request.Option) (*ListLogGroupsOutput, error) {
	req, out := c.ListLogGroupsRequest(input)
	req.SetContext(ctx)
	req.ApplyOptions(opts...)
	return out, req.Send()
}

const opListLogGroupsForQuery = "ListLogGroupsForQuery"

// ListLogGroupsForQueryRequest generates a "aws/request.Request" representing the
// client's request for the ListLogGroupsForQuery operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// 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 ListLogGroupsForQuery for more information on using the ListLogGroupsForQuery
// 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 ListLogGroupsForQueryRequest method.
//	req, resp := client.ListLogGroupsForQueryRequest(params)
//
//	err := req.Send()
//	if err == nil { // resp is now filled
//	    fmt.Println(resp)
//	}
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/ListLogGroupsForQuery
func (c *CloudWatchLogs) ListLogGroupsForQueryRequest(input *ListLogGroupsForQueryInput) (req *request.Request, output *ListLogGroupsForQueryOutput) {
	op := &request.Operation{
		Name:       opListLogGroupsForQuery,
		HTTPMethod: "POST",
		HTTPPath:   "/",
		Paginator: &request.Paginator{
			InputTokens:     []string{"nextToken"},
			OutputTokens:    []string{"nextToken"},
			LimitToken:      "maxResults",
			TruncationToken: "",
		},
	}

	if input == nil {
		input = &ListLogGroupsForQueryInput{}
	}

	output = &ListLogGroupsForQueryOutput{}
	req = c.newRequest(op, input, output)
	return
}

// ListLogGroupsForQuery API operation for Amazon CloudWatch Logs.
//
// Returns a list of the log groups that were analyzed during a single CloudWatch
// Logs Insights query. This can be useful for queries that use log group name
// prefixes or the filterIndex command, because the log groups are dynamically
// selected in these cases.
//
// For more information about field indexes, see Create field indexes to improve
// query performance and reduce costs (https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/CloudWatchLogs-Field-Indexing.html).
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon CloudWatch Logs's
// API operation ListLogGroupsForQuery for usage and error information.
//
// Returned Error Types:
//
//   - InvalidParameterException
//     A parameter is specified incorrectly.
//
//   - AccessDeniedException
//     You don't have sufficient permissions to perform this action.
//
//   - ResourceNotFoundException
//     The specified resource does not exist.
//
//   - ServiceUnavailableException
//     The service cannot complete the request.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/ListLogGroupsForQuery
func (c *CloudWatchLogs) ListLogGroupsForQuery(input *ListLogGroupsForQueryInput) (*ListLogGroupsForQueryOutput, error) {
	req, out := c.ListLogGroupsForQueryRequest(input)
	return out, req.Send()
}

// ListLogGroupsForQueryWithContext is the same as ListLogGroupsForQuery with the addition of
// the ability to pass a context and additional request options.
//
// See ListLogGroupsForQuery 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 *CloudWatchLogs) ListLogGroupsForQueryWithContext(ctx aws.Context, input *ListLogGroupsForQueryInput, opts ...request.Option) (*ListLogGroupsForQueryOutput, error) {
	req, out := c.ListLogGroupsForQueryRequest(input)
	req.SetContext(ctx)
	req.ApplyOptions(opts...)
	return out, req.Send()
}

// ListLogGroupsForQueryPages iterates over the pages of a ListLogGroupsForQuery operation,
// calling the "fn" function with the response data for each page. To stop
// iterating, return false from the fn function.
//
// See ListLogGroupsForQuery 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 ListLogGroupsForQuery operation.
//	pageNum := 0
//	err := client.ListLogGroupsForQueryPages(params,
//	    func(page *cloudwatchlogs.ListLogGroupsForQueryOutput, lastPage bool) bool {
//	        pageNum++
//	        fmt.Println(page)
//	        return pageNum <= 3
//	    })
func (c *CloudWatchLogs) ListLogGroupsForQueryPages(input *ListLogGroupsForQueryInput, fn func(*ListLogGroupsForQueryOutput, bool) bool) error {
	return c.ListLogGroupsForQueryPagesWithContext(aws.BackgroundContext(), input, fn)
}

// ListLogGroupsForQueryPagesWithContext same as ListLogGroupsForQueryPages 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 *CloudWatchLogs) ListLogGroupsForQueryPagesWithContext(ctx aws.Context, input *ListLogGroupsForQueryInput, fn func(*ListLogGroupsForQueryOutput, bool) bool, opts ...request.Option) error {
	p := request.Pagination{
		EndPageOnSameToken: true,
		NewRequest: func() (*request.Request, error) {
			var inCpy *ListLogGroupsForQueryInput
			if input != nil {
				tmp := *input
				inCpy = &tmp
			}
			req, _ := c.ListLogGroupsForQueryRequest(inCpy)
			req.SetContext(ctx)
			req.ApplyOptions(opts...)
			return req, nil
		},
	}

	for p.Next() {
		if !fn(p.Page().(*ListLogGroupsForQueryOutput), !p.HasNextPage()) {
			break
		}
	}

	return p.Err()
}

const opListTagsForResource = "ListTagsForResource"

// ListTagsForResourceRequest generates a "aws/request.Request" representing the
// client's request for the ListTagsForResource operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// 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 ListTagsForResource for more information on using the ListTagsForResource
// 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 ListTagsForResourceRequest method.
//	req, resp := client.ListTagsForResourceRequest(params)
//
//	err := req.Send()
//	if err == nil { // resp is now filled
//	    fmt.Println(resp)
//	}
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/ListTagsForResource
func (c *CloudWatchLogs) ListTagsForResourceRequest(input *ListTagsForResourceInput) (req *request.Request, output *ListTagsForResourceOutput) {
	op := &request.Operation{
		Name:       opListTagsForResource,
		HTTPMethod: "POST",
		HTTPPath:   "/",
	}

	if input == nil {
		input = &ListTagsForResourceInput{}
	}

	output = &ListTagsForResourceOutput{}
	req = c.newRequest(op, input, output)
	return
}

// ListTagsForResource API operation for Amazon CloudWatch Logs.
//
// Displays the tags associated with a CloudWatch Logs resource. Currently,
// log groups and destinations support tagging.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon CloudWatch Logs's
// API operation ListTagsForResource for usage and error information.
//
// Returned Error Types:
//
//   - InvalidParameterException
//     A parameter is specified incorrectly.
//
//   - ResourceNotFoundException
//     The specified resource does not exist.
//
//   - ServiceUnavailableException
//     The service cannot complete the request.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/ListTagsForResource
func (c *CloudWatchLogs) ListTagsForResource(input *ListTagsForResourceInput) (*ListTagsForResourceOutput, error) {
	req, out := c.ListTagsForResourceRequest(input)
	return out, req.Send()
}

// ListTagsForResourceWithContext is the same as ListTagsForResource with the addition of
// the ability to pass a context and additional request options.
//
// See ListTagsForResource 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 *CloudWatchLogs) ListTagsForResourceWithContext(ctx aws.Context, input *ListTagsForResourceInput, opts ...request.Option) (*ListTagsForResourceOutput, error) {
	req, out := c.ListTagsForResourceRequest(input)
	req.SetContext(ctx)
	req.ApplyOptions(opts...)
	return out, req.Send()
}

const opListTagsLogGroup = "ListTagsLogGroup"

// ListTagsLogGroupRequest generates a "aws/request.Request" representing the
// client's request for the ListTagsLogGroup operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// 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 ListTagsLogGroup for more information on using the ListTagsLogGroup
// 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 ListTagsLogGroupRequest method.
//	req, resp := client.ListTagsLogGroupRequest(params)
//
//	err := req.Send()
//	if err == nil { // resp is now filled
//	    fmt.Println(resp)
//	}
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/ListTagsLogGroup
//
// Deprecated: Please use the generic tagging API ListTagsForResource
func (c *CloudWatchLogs) ListTagsLogGroupRequest(input *ListTagsLogGroupInput) (req *request.Request, output *ListTagsLogGroupOutput) {
	if c.Client.Config.Logger != nil {
		c.Client.Config.Logger.Log("This operation, ListTagsLogGroup, has been deprecated")
	}
	op := &request.Operation{
		Name:       opListTagsLogGroup,
		HTTPMethod: "POST",
		HTTPPath:   "/",
	}

	if input == nil {
		input = &ListTagsLogGroupInput{}
	}

	output = &ListTagsLogGroupOutput{}
	req = c.newRequest(op, input, output)
	return
}

// ListTagsLogGroup API operation for Amazon CloudWatch Logs.
//
// The ListTagsLogGroup operation is on the path to deprecation. We recommend
// that you use ListTagsForResource (https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_ListTagsForResource.html)
// instead.
//
// Lists the tags for the specified log group.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon CloudWatch Logs's
// API operation ListTagsLogGroup for usage and error information.
//
// Returned Error Types:
//
//   - ResourceNotFoundException
//     The specified resource does not exist.
//
//   - ServiceUnavailableException
//     The service cannot complete the request.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/ListTagsLogGroup
//
// Deprecated: Please use the generic tagging API ListTagsForResource
func (c *CloudWatchLogs) ListTagsLogGroup(input *ListTagsLogGroupInput) (*ListTagsLogGroupOutput, error) {
	req, out := c.ListTagsLogGroupRequest(input)
	return out, req.Send()
}

// ListTagsLogGroupWithContext is the same as ListTagsLogGroup with the addition of
// the ability to pass a context and additional request options.
//
// See ListTagsLogGroup 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.
//
// Deprecated: Please use the generic tagging API ListTagsForResource
func (c *CloudWatchLogs) ListTagsLogGroupWithContext(ctx aws.Context, input *ListTagsLogGroupInput, opts ...request.Option) (*ListTagsLogGroupOutput, error) {
	req, out := c.ListTagsLogGroupRequest(input)
	req.SetContext(ctx)
	req.ApplyOptions(opts...)
	return out, req.Send()
}

const opPutAccountPolicy = "PutAccountPolicy"

// PutAccountPolicyRequest generates a "aws/request.Request" representing the
// client's request for the PutAccountPolicy operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// 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 PutAccountPolicy for more information on using the PutAccountPolicy
// 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 PutAccountPolicyRequest method.
//	req, resp := client.PutAccountPolicyRequest(params)
//
//	err := req.Send()
//	if err == nil { // resp is now filled
//	    fmt.Println(resp)
//	}
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/PutAccountPolicy
func (c *CloudWatchLogs) PutAccountPolicyRequest(input *PutAccountPolicyInput) (req *request.Request, output *PutAccountPolicyOutput) {
	op := &request.Operation{
		Name:       opPutAccountPolicy,
		HTTPMethod: "POST",
		HTTPPath:   "/",
	}

	if input == nil {
		input = &PutAccountPolicyInput{}
	}

	output = &PutAccountPolicyOutput{}
	req = c.newRequest(op, input, output)
	return
}

// PutAccountPolicy API operation for Amazon CloudWatch Logs.
//
// Creates an account-level data protection policy, subscription filter policy,
// or field index policy that applies to all log groups or a subset of log groups
// in the account.
//
// To use this operation, you must be signed on with the correct permissions
// depending on the type of policy that you are creating.
//
//   - To create a data protection policy, you must have the logs:PutDataProtectionPolicy
//     and logs:PutAccountPolicy permissions.
//
//   - To create a subscription filter policy, you must have the logs:PutSubscriptionFilter
//     and logs:PutccountPolicy permissions.
//
//   - To create a transformer policy, you must have the logs:PutTransformer
//     and logs:PutAccountPolicy permissions.
//
//   - To create a field index policy, you must have the logs:PutIndexPolicy
//     and logs:PutAccountPolicy permissions.
//
// # Data protection policy
//
// A data protection policy can help safeguard sensitive data that's ingested
// by your log groups by auditing and masking the sensitive log data. Each account
// can have only one account-level data protection policy.
//
// Sensitive data is detected and masked when it is ingested into a log group.
// When you set a data protection policy, log events ingested into the log groups
// before that time are not masked.
//
// If you use PutAccountPolicy to create a data protection policy for your whole
// account, it applies to both existing log groups and all log groups that are
// created later in this account. The account-level policy is applied to existing
// log groups with eventual consistency. It might take up to 5 minutes before
// sensitive data in existing log groups begins to be masked.
//
// By default, when a user views a log event that includes masked data, the
// sensitive data is replaced by asterisks. A user who has the logs:Unmask permission
// can use a GetLogEvents (https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_GetLogEvents.html)
// or FilterLogEvents (https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_FilterLogEvents.html)
// operation with the unmask parameter set to true to view the unmasked log
// events. Users with the logs:Unmask can also view unmasked data in the CloudWatch
// Logs console by running a CloudWatch Logs Insights query with the unmask
// query command.
//
// For more information, including a list of types of data that can be audited
// and masked, see Protect sensitive log data with masking (https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/mask-sensitive-log-data.html).
//
// To use the PutAccountPolicy operation for a data protection policy, you must
// be signed on with the logs:PutDataProtectionPolicy and logs:PutAccountPolicy
// permissions.
//
// The PutAccountPolicy operation applies to all log groups in the account.
// You can use PutDataProtectionPolicy (https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_PutDataProtectionPolicy.html)
// to create a data protection policy that applies to just one log group. If
// a log group has its own data protection policy and the account also has an
// account-level data protection policy, then the two policies are cumulative.
// Any sensitive term specified in either policy is masked.
//
// # Subscription filter policy
//
// A subscription filter policy sets up a real-time feed of log events from
// CloudWatch Logs to other Amazon Web Services services. Account-level subscription
// filter policies apply to both existing log groups and log groups that are
// created later in this account. Supported destinations are Kinesis Data Streams,
// Firehose, and Lambda. When log events are sent to the receiving service,
// they are Base64 encoded and compressed with the GZIP format.
//
// The following destinations are supported for subscription filters:
//
//   - An Kinesis Data Streams data stream in the same account as the subscription
//     policy, for same-account delivery.
//
//   - An Firehose data stream in the same account as the subscription policy,
//     for same-account delivery.
//
//   - A Lambda function in the same account as the subscription policy, for
//     same-account delivery.
//
//   - A logical destination in a different account created with PutDestination
//     (https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_PutDestination.html),
//     for cross-account delivery. Kinesis Data Streams and Firehose are supported
//     as logical destinations.
//
// Each account can have one account-level subscription filter policy per Region.
// If you are updating an existing filter, you must specify the correct name
// in PolicyName. To perform a PutAccountPolicy subscription filter operation
// for any destination except a Lambda function, you must also have the iam:PassRole
// permission.
//
// # Transformer policy
//
// Creates or updates a log transformer policy for your account. You use log
// transformers to transform log events into a different format, making them
// easier for you to process and analyze. You can also transform logs from different
// sources into standardized formats that contain relevant, source-specific
// information. After you have created a transformer, CloudWatch Logs performs
// this transformation at the time of log ingestion. You can then refer to the
// transformed versions of the logs during operations such as querying with
// CloudWatch Logs Insights or creating metric filters or subscription filters.
//
// You can also use a transformer to copy metadata from metadata keys into the
// log events themselves. This metadata can include log group name, log stream
// name, account ID and Region.
//
// A transformer for a log group is a series of processors, where each processor
// applies one type of transformation to the log events ingested into this log
// group. For more information about the available processors to use in a transformer,
// see Processors that you can use (https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/CloudWatch-Logs-Transformation.html#CloudWatch-Logs-Transformation-Processors).
//
// Having log events in standardized format enables visibility across your applications
// for your log analysis, reporting, and alarming needs. CloudWatch Logs provides
// transformation for common log types with out-of-the-box transformation templates
// for major Amazon Web Services log sources such as VPC flow logs, Lambda,
// and Amazon RDS. You can use pre-built transformation templates or create
// custom transformation policies.
//
// You can create transformers only for the log groups in the Standard log class.
//
// You can have one account-level transformer policy that applies to all log
// groups in the account. Or you can create as many as 20 account-level transformer
// policies that are each scoped to a subset of log groups with the selectionCriteria
// parameter. If you have multiple account-level transformer policies with selection
// criteria, no two of them can use the same or overlapping log group name prefixes.
// For example, if you have one policy filtered to log groups that start with
// my-log, you can't have another field index policy filtered to my-logpprod
// or my-logging.
//
// You can also set up a transformer at the log-group level. For more information,
// see PutTransformer (https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_PutTransformer.html).
// If there is both a log-group level transformer created with PutTransformer
// and an account-level transformer that could apply to the same log group,
// the log group uses only the log-group level transformer. It ignores the account-level
// transformer.
//
// # Field index policy
//
// You can use field index policies to create indexes on fields found in log
// events in the log group. Creating field indexes can help lower the scan volume
// for CloudWatch Logs Insights queries that reference those fields, because
// these queries attempt to skip the processing of log events that are known
// to not match the indexed field. Good fields to index are fields that you
// often need to query for and fields or values that match only a small fraction
// of the total log events. Common examples of indexes include request ID, session
// ID, user IDs, or instance IDs. For more information, see Create field indexes
// to improve query performance and reduce costs (https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/CloudWatchLogs-Field-Indexing.html)
//
// To find the fields that are in your log group events, use the GetLogGroupFields
// (https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_GetLogGroupFields.html)
// operation.
//
// For example, suppose you have created a field index for requestId. Then,
// any CloudWatch Logs Insights query on that log group that includes requestId
// = value or requestId in [value, value, ...] will attempt to process only
// the log events where the indexed field matches the specified value.
//
// Matches of log events to the names of indexed fields are case-sensitive.
// For example, an indexed field of RequestId won't match a log event containing
// requestId.
//
// You can have one account-level field index policy that applies to all log
// groups in the account. Or you can create as many as 20 account-level field
// index policies that are each scoped to a subset of log groups with the selectionCriteria
// parameter. If you have multiple account-level index policies with selection
// criteria, no two of them can use the same or overlapping log group name prefixes.
// For example, if you have one policy filtered to log groups that start with
// my-log, you can't have another field index policy filtered to my-logpprod
// or my-logging.
//
// If you create an account-level field index policy in a monitoring account
// in cross-account observability, the policy is applied only to the monitoring
// account and not to any source accounts.
//
// If you want to create a field index policy for a single log group, you can
// use PutIndexPolicy (https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_PutIndexPolicy.html)
// instead of PutAccountPolicy. If you do so, that log group will use only that
// log-group level policy, and will ignore the account-level policy that you
// create with PutAccountPolicy (https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_PutAccountPolicy.html).
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon CloudWatch Logs's
// API operation PutAccountPolicy for usage and error information.
//
// Returned Error Types:
//
//   - InvalidParameterException
//     A parameter is specified incorrectly.
//
//   - OperationAbortedException
//     Multiple concurrent requests to update the same resource were in conflict.
//
//   - ServiceUnavailableException
//     The service cannot complete the request.
//
//   - LimitExceededException
//     You have reached the maximum number of resources that can be created.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/PutAccountPolicy
func (c *CloudWatchLogs) PutAccountPolicy(input *PutAccountPolicyInput) (*PutAccountPolicyOutput, error) {
	req, out := c.PutAccountPolicyRequest(input)
	return out, req.Send()
}

// PutAccountPolicyWithContext is the same as PutAccountPolicy with the addition of
// the ability to pass a context and additional request options.
//
// See PutAccountPolicy 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 *CloudWatchLogs) PutAccountPolicyWithContext(ctx aws.Context, input *PutAccountPolicyInput, opts ...request.Option) (*PutAccountPolicyOutput, error) {
	req, out := c.PutAccountPolicyRequest(input)
	req.SetContext(ctx)
	req.ApplyOptions(opts...)
	return out, req.Send()
}

const opPutDataProtectionPolicy = "PutDataProtectionPolicy"

// PutDataProtectionPolicyRequest generates a "aws/request.Request" representing the
// client's request for the PutDataProtectionPolicy operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// 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 PutDataProtectionPolicy for more information on using the PutDataProtectionPolicy
// 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 PutDataProtectionPolicyRequest method.
//	req, resp := client.PutDataProtectionPolicyRequest(params)
//
//	err := req.Send()
//	if err == nil { // resp is now filled
//	    fmt.Println(resp)
//	}
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/PutDataProtectionPolicy
func (c *CloudWatchLogs) PutDataProtectionPolicyRequest(input *PutDataProtectionPolicyInput) (req *request.Request, output *PutDataProtectionPolicyOutput) {
	op := &request.Operation{
		Name:       opPutDataProtectionPolicy,
		HTTPMethod: "POST",
		HTTPPath:   "/",
	}

	if input == nil {
		input = &PutDataProtectionPolicyInput{}
	}

	output = &PutDataProtectionPolicyOutput{}
	req = c.newRequest(op, input, output)
	return
}

// PutDataProtectionPolicy API operation for Amazon CloudWatch Logs.
//
// Creates a data protection policy for the specified log group. A data protection
// policy can help safeguard sensitive data that's ingested by the log group
// by auditing and masking the sensitive log data.
//
// Sensitive data is detected and masked when it is ingested into the log group.
// When you set a data protection policy, log events ingested into the log group
// before that time are not masked.
//
// By default, when a user views a log event that includes masked data, the
// sensitive data is replaced by asterisks. A user who has the logs:Unmask permission
// can use a GetLogEvents (https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_GetLogEvents.html)
// or FilterLogEvents (https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_FilterLogEvents.html)
// operation with the unmask parameter set to true to view the unmasked log
// events. Users with the logs:Unmask can also view unmasked data in the CloudWatch
// Logs console by running a CloudWatch Logs Insights query with the unmask
// query command.
//
// For more information, including a list of types of data that can be audited
// and masked, see Protect sensitive log data with masking (https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/mask-sensitive-log-data.html).
//
// The PutDataProtectionPolicy operation applies to only the specified log group.
// You can also use PutAccountPolicy (https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_PutAccountPolicy.html)
// to create an account-level data protection policy that applies to all log
// groups in the account, including both existing log groups and log groups
// that are created level. If a log group has its own data protection policy
// and the account also has an account-level data protection policy, then the
// two policies are cumulative. Any sensitive term specified in either policy
// is masked.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon CloudWatch Logs's
// API operation PutDataProtectionPolicy for usage and error information.
//
// Returned Error Types:
//
//   - InvalidParameterException
//     A parameter is specified incorrectly.
//
//   - LimitExceededException
//     You have reached the maximum number of resources that can be created.
//
//   - OperationAbortedException
//     Multiple concurrent requests to update the same resource were in conflict.
//
//   - ResourceNotFoundException
//     The specified resource does not exist.
//
//   - ServiceUnavailableException
//     The service cannot complete the request.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/PutDataProtectionPolicy
func (c *CloudWatchLogs) PutDataProtectionPolicy(input *PutDataProtectionPolicyInput) (*PutDataProtectionPolicyOutput, error) {
	req, out := c.PutDataProtectionPolicyRequest(input)
	return out, req.Send()
}

// PutDataProtectionPolicyWithContext is the same as PutDataProtectionPolicy with the addition of
// the ability to pass a context and additional request options.
//
// See PutDataProtectionPolicy 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 *CloudWatchLogs) PutDataProtectionPolicyWithContext(ctx aws.Context, input *PutDataProtectionPolicyInput, opts ...request.Option) (*PutDataProtectionPolicyOutput, error) {
	req, out := c.PutDataProtectionPolicyRequest(input)
	req.SetContext(ctx)
	req.ApplyOptions(opts...)
	return out, req.Send()
}

const opPutDeliveryDestination = "PutDeliveryDestination"

// PutDeliveryDestinationRequest generates a "aws/request.Request" representing the
// client's request for the PutDeliveryDestination operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// 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 PutDeliveryDestination for more information on using the PutDeliveryDestination
// 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 PutDeliveryDestinationRequest method.
//	req, resp := client.PutDeliveryDestinationRequest(params)
//
//	err := req.Send()
//	if err == nil { // resp is now filled
//	    fmt.Println(resp)
//	}
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/PutDeliveryDestination
func (c *CloudWatchLogs) PutDeliveryDestinationRequest(input *PutDeliveryDestinationInput) (req *request.Request, output *PutDeliveryDestinationOutput) {
	op := &request.Operation{
		Name:       opPutDeliveryDestination,
		HTTPMethod: "POST",
		HTTPPath:   "/",
	}

	if input == nil {
		input = &PutDeliveryDestinationInput{}
	}

	output = &PutDeliveryDestinationOutput{}
	req = c.newRequest(op, input, output)
	return
}

// PutDeliveryDestination API operation for Amazon CloudWatch Logs.
//
// Creates or updates a logical delivery destination. A delivery destination
// is an Amazon Web Services resource that represents an Amazon Web Services
// service that logs can be sent to. CloudWatch Logs, Amazon S3, and Firehose
// are supported as logs delivery destinations.
//
// To configure logs delivery between a supported Amazon Web Services service
// and a destination, you must do the following:
//
//   - Create a delivery source, which is a logical object that represents
//     the resource that is actually sending the logs. For more information,
//     see PutDeliverySource (https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_PutDeliverySource.html).
//
//   - Use PutDeliveryDestination to create a delivery destination in the same
//     account of the actual delivery destination. The delivery destination that
//     you create is a logical object that represents the actual delivery destination.
//
//   - If you are delivering logs cross-account, you must use PutDeliveryDestinationPolicy
//     (https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_PutDeliveryDestinationPolicy.html)
//     in the destination account to assign an IAM policy to the destination.
//     This policy allows delivery to that destination.
//
//   - Use CreateDelivery to create a delivery by pairing exactly one delivery
//     source and one delivery destination. For more information, see CreateDelivery
//     (https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_CreateDelivery.html).
//
// You can configure a single delivery source to send logs to multiple destinations
// by creating multiple deliveries. You can also create multiple deliveries
// to configure multiple delivery sources to send logs to the same delivery
// destination.
//
// Only some Amazon Web Services services support being configured as a delivery
// source. These services are listed as Supported [V2 Permissions] in the table
// at Enabling logging from Amazon Web Services services. (https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/AWS-logs-and-resource-policy.html)
//
// If you use this operation to update an existing delivery destination, all
// the current delivery destination parameters are overwritten with the new
// parameter values that you specify.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon CloudWatch Logs's
// API operation PutDeliveryDestination for usage and error information.
//
// Returned Error Types:
//
//   - ServiceUnavailableException
//     The service cannot complete the request.
//
//   - ConflictException
//     This operation attempted to create a resource that already exists.
//
//   - ValidationException
//     One of the parameters for the request is not valid.
//
//   - ServiceQuotaExceededException
//     This request exceeds a service quota.
//
//   - ThrottlingException
//     The request was throttled because of quota limits.
//
//   - ResourceNotFoundException
//     The specified resource does not exist.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/PutDeliveryDestination
func (c *CloudWatchLogs) PutDeliveryDestination(input *PutDeliveryDestinationInput) (*PutDeliveryDestinationOutput, error) {
	req, out := c.PutDeliveryDestinationRequest(input)
	return out, req.Send()
}

// PutDeliveryDestinationWithContext is the same as PutDeliveryDestination with the addition of
// the ability to pass a context and additional request options.
//
// See PutDeliveryDestination 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 *CloudWatchLogs) PutDeliveryDestinationWithContext(ctx aws.Context, input *PutDeliveryDestinationInput, opts ...request.Option) (*PutDeliveryDestinationOutput, error) {
	req, out := c.PutDeliveryDestinationRequest(input)
	req.SetContext(ctx)
	req.ApplyOptions(opts...)
	return out, req.Send()
}

const opPutDeliveryDestinationPolicy = "PutDeliveryDestinationPolicy"

// PutDeliveryDestinationPolicyRequest generates a "aws/request.Request" representing the
// client's request for the PutDeliveryDestinationPolicy operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// 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 PutDeliveryDestinationPolicy for more information on using the PutDeliveryDestinationPolicy
// 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 PutDeliveryDestinationPolicyRequest method.
//	req, resp := client.PutDeliveryDestinationPolicyRequest(params)
//
//	err := req.Send()
//	if err == nil { // resp is now filled
//	    fmt.Println(resp)
//	}
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/PutDeliveryDestinationPolicy
func (c *CloudWatchLogs) PutDeliveryDestinationPolicyRequest(input *PutDeliveryDestinationPolicyInput) (req *request.Request, output *PutDeliveryDestinationPolicyOutput) {
	op := &request.Operation{
		Name:       opPutDeliveryDestinationPolicy,
		HTTPMethod: "POST",
		HTTPPath:   "/",
	}

	if input == nil {
		input = &PutDeliveryDestinationPolicyInput{}
	}

	output = &PutDeliveryDestinationPolicyOutput{}
	req = c.newRequest(op, input, output)
	return
}

// PutDeliveryDestinationPolicy API operation for Amazon CloudWatch Logs.
//
// Creates and assigns an IAM policy that grants permissions to CloudWatch Logs
// to deliver logs cross-account to a specified destination in this account.
// To configure the delivery of logs from an Amazon Web Services service in
// another account to a logs delivery destination in the current account, you
// must do the following:
//
//   - Create a delivery source, which is a logical object that represents
//     the resource that is actually sending the logs. For more information,
//     see PutDeliverySource (https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_PutDeliverySource.html).
//
//   - Create a delivery destination, which is a logical object that represents
//     the actual delivery destination. For more information, see PutDeliveryDestination
//     (https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_PutDeliveryDestination.html).
//
//   - Use this operation in the destination account to assign an IAM policy
//     to the destination. This policy allows delivery to that destination.
//
//   - Create a delivery by pairing exactly one delivery source and one delivery
//     destination. For more information, see CreateDelivery (https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_CreateDelivery.html).
//
// Only some Amazon Web Services services support being configured as a delivery
// source. These services are listed as Supported [V2 Permissions] in the table
// at Enabling logging from Amazon Web Services services. (https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/AWS-logs-and-resource-policy.html)
//
// The contents of the policy must include two statements. One statement enables
// general logs delivery, and the other allows delivery to the chosen destination.
// See the examples for the needed policies.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon CloudWatch Logs's
// API operation PutDeliveryDestinationPolicy for usage and error information.
//
// Returned Error Types:
//
//   - ServiceUnavailableException
//     The service cannot complete the request.
//
//   - ValidationException
//     One of the parameters for the request is not valid.
//
//   - ResourceNotFoundException
//     The specified resource does not exist.
//
//   - ConflictException
//     This operation attempted to create a resource that already exists.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/PutDeliveryDestinationPolicy
func (c *CloudWatchLogs) PutDeliveryDestinationPolicy(input *PutDeliveryDestinationPolicyInput) (*PutDeliveryDestinationPolicyOutput, error) {
	req, out := c.PutDeliveryDestinationPolicyRequest(input)
	return out, req.Send()
}

// PutDeliveryDestinationPolicyWithContext is the same as PutDeliveryDestinationPolicy with the addition of
// the ability to pass a context and additional request options.
//
// See PutDeliveryDestinationPolicy 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 *CloudWatchLogs) PutDeliveryDestinationPolicyWithContext(ctx aws.Context, input *PutDeliveryDestinationPolicyInput, opts ...request.Option) (*PutDeliveryDestinationPolicyOutput, error) {
	req, out := c.PutDeliveryDestinationPolicyRequest(input)
	req.SetContext(ctx)
	req.ApplyOptions(opts...)
	return out, req.Send()
}

const opPutDeliverySource = "PutDeliverySource"

// PutDeliverySourceRequest generates a "aws/request.Request" representing the
// client's request for the PutDeliverySource operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// 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 PutDeliverySource for more information on using the PutDeliverySource
// 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 PutDeliverySourceRequest method.
//	req, resp := client.PutDeliverySourceRequest(params)
//
//	err := req.Send()
//	if err == nil { // resp is now filled
//	    fmt.Println(resp)
//	}
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/PutDeliverySource
func (c *CloudWatchLogs) PutDeliverySourceRequest(input *PutDeliverySourceInput) (req *request.Request, output *PutDeliverySourceOutput) {
	op := &request.Operation{
		Name:       opPutDeliverySource,
		HTTPMethod: "POST",
		HTTPPath:   "/",
	}

	if input == nil {
		input = &PutDeliverySourceInput{}
	}

	output = &PutDeliverySourceOutput{}
	req = c.newRequest(op, input, output)
	return
}

// PutDeliverySource API operation for Amazon CloudWatch Logs.
//
// Creates or updates a logical delivery source. A delivery source represents
// an Amazon Web Services resource that sends logs to an logs delivery destination.
// The destination can be CloudWatch Logs, Amazon S3, or Firehose.
//
// To configure logs delivery between a delivery destination and an Amazon Web
// Services service that is supported as a delivery source, you must do the
// following:
//
//   - Use PutDeliverySource to create a delivery source, which is a logical
//     object that represents the resource that is actually sending the logs.
//
//   - Use PutDeliveryDestination to create a delivery destination, which is
//     a logical object that represents the actual delivery destination. For
//     more information, see PutDeliveryDestination (https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_PutDeliveryDestination.html).
//
//   - If you are delivering logs cross-account, you must use PutDeliveryDestinationPolicy
//     (https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_PutDeliveryDestinationPolicy.html)
//     in the destination account to assign an IAM policy to the destination.
//     This policy allows delivery to that destination.
//
//   - Use CreateDelivery to create a delivery by pairing exactly one delivery
//     source and one delivery destination. For more information, see CreateDelivery
//     (https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_CreateDelivery.html).
//
// You can configure a single delivery source to send logs to multiple destinations
// by creating multiple deliveries. You can also create multiple deliveries
// to configure multiple delivery sources to send logs to the same delivery
// destination.
//
// Only some Amazon Web Services services support being configured as a delivery
// source. These services are listed as Supported [V2 Permissions] in the table
// at Enabling logging from Amazon Web Services services. (https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/AWS-logs-and-resource-policy.html)
//
// If you use this operation to update an existing delivery source, all the
// current delivery source parameters are overwritten with the new parameter
// values that you specify.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon CloudWatch Logs's
// API operation PutDeliverySource for usage and error information.
//
// Returned Error Types:
//
//   - ServiceUnavailableException
//     The service cannot complete the request.
//
//   - ConflictException
//     This operation attempted to create a resource that already exists.
//
//   - ValidationException
//     One of the parameters for the request is not valid.
//
//   - ServiceQuotaExceededException
//     This request exceeds a service quota.
//
//   - ResourceNotFoundException
//     The specified resource does not exist.
//
//   - ThrottlingException
//     The request was throttled because of quota limits.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/PutDeliverySource
func (c *CloudWatchLogs) PutDeliverySource(input *PutDeliverySourceInput) (*PutDeliverySourceOutput, error) {
	req, out := c.PutDeliverySourceRequest(input)
	return out, req.Send()
}

// PutDeliverySourceWithContext is the same as PutDeliverySource with the addition of
// the ability to pass a context and additional request options.
//
// See PutDeliverySource 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 *CloudWatchLogs) PutDeliverySourceWithContext(ctx aws.Context, input *PutDeliverySourceInput, opts ...request.Option) (*PutDeliverySourceOutput, error) {
	req, out := c.PutDeliverySourceRequest(input)
	req.SetContext(ctx)
	req.ApplyOptions(opts...)
	return out, req.Send()
}

const opPutDestination = "PutDestination"

// PutDestinationRequest generates a "aws/request.Request" representing the
// client's request for the PutDestination operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// 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 PutDestination for more information on using the PutDestination
// 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 PutDestinationRequest method.
//	req, resp := client.PutDestinationRequest(params)
//
//	err := req.Send()
//	if err == nil { // resp is now filled
//	    fmt.Println(resp)
//	}
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/PutDestination
func (c *CloudWatchLogs) PutDestinationRequest(input *PutDestinationInput) (req *request.Request, output *PutDestinationOutput) {
	op := &request.Operation{
		Name:       opPutDestination,
		HTTPMethod: "POST",
		HTTPPath:   "/",
	}

	if input == nil {
		input = &PutDestinationInput{}
	}

	output = &PutDestinationOutput{}
	req = c.newRequest(op, input, output)
	return
}

// PutDestination API operation for Amazon CloudWatch Logs.
//
// Creates or updates a destination. This operation is used only to create destinations
// for cross-account subscriptions.
//
// A destination encapsulates a physical resource (such as an Amazon Kinesis
// stream). With a destination, you can subscribe to a real-time stream of log
// events for a different account, ingested using PutLogEvents (https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_PutLogEvents.html).
//
// Through an access policy, a destination controls what is written to it. By
// default, PutDestination does not set any access policy with the destination,
// which means a cross-account user cannot call PutSubscriptionFilter (https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_PutSubscriptionFilter.html)
// against this destination. To enable this, the destination owner must call
// PutDestinationPolicy (https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_PutDestinationPolicy.html)
// after PutDestination.
//
// To perform a PutDestination operation, you must also have the iam:PassRole
// permission.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon CloudWatch Logs's
// API operation PutDestination for usage and error information.
//
// Returned Error Types:
//
//   - InvalidParameterException
//     A parameter is specified incorrectly.
//
//   - OperationAbortedException
//     Multiple concurrent requests to update the same resource were in conflict.
//
//   - ServiceUnavailableException
//     The service cannot complete the request.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/PutDestination
func (c *CloudWatchLogs) PutDestination(input *PutDestinationInput) (*PutDestinationOutput, error) {
	req, out := c.PutDestinationRequest(input)
	return out, req.Send()
}

// PutDestinationWithContext is the same as PutDestination with the addition of
// the ability to pass a context and additional request options.
//
// See PutDestination 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 *CloudWatchLogs) PutDestinationWithContext(ctx aws.Context, input *PutDestinationInput, opts ...request.Option) (*PutDestinationOutput, error) {
	req, out := c.PutDestinationRequest(input)
	req.SetContext(ctx)
	req.ApplyOptions(opts...)
	return out, req.Send()
}

const opPutDestinationPolicy = "PutDestinationPolicy"

// PutDestinationPolicyRequest generates a "aws/request.Request" representing the
// client's request for the PutDestinationPolicy operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// 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 PutDestinationPolicy for more information on using the PutDestinationPolicy
// 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 PutDestinationPolicyRequest method.
//	req, resp := client.PutDestinationPolicyRequest(params)
//
//	err := req.Send()
//	if err == nil { // resp is now filled
//	    fmt.Println(resp)
//	}
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/PutDestinationPolicy
func (c *CloudWatchLogs) PutDestinationPolicyRequest(input *PutDestinationPolicyInput) (req *request.Request, output *PutDestinationPolicyOutput) {
	op := &request.Operation{
		Name:       opPutDestinationPolicy,
		HTTPMethod: "POST",
		HTTPPath:   "/",
	}

	if input == nil {
		input = &PutDestinationPolicyInput{}
	}

	output = &PutDestinationPolicyOutput{}
	req = c.newRequest(op, input, output)
	req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
	return
}

// PutDestinationPolicy API operation for Amazon CloudWatch Logs.
//
// Creates or updates an access policy associated with an existing destination.
// An access policy is an IAM policy document (https://docs.aws.amazon.com/IAM/latest/UserGuide/policies_overview.html)
// that is used to authorize claims to register a subscription filter against
// a given destination.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon CloudWatch Logs's
// API operation PutDestinationPolicy for usage and error information.
//
// Returned Error Types:
//
//   - InvalidParameterException
//     A parameter is specified incorrectly.
//
//   - OperationAbortedException
//     Multiple concurrent requests to update the same resource were in conflict.
//
//   - ServiceUnavailableException
//     The service cannot complete the request.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/PutDestinationPolicy
func (c *CloudWatchLogs) PutDestinationPolicy(input *PutDestinationPolicyInput) (*PutDestinationPolicyOutput, error) {
	req, out := c.PutDestinationPolicyRequest(input)
	return out, req.Send()
}

// PutDestinationPolicyWithContext is the same as PutDestinationPolicy with the addition of
// the ability to pass a context and additional request options.
//
// See PutDestinationPolicy 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 *CloudWatchLogs) PutDestinationPolicyWithContext(ctx aws.Context, input *PutDestinationPolicyInput, opts ...request.Option) (*PutDestinationPolicyOutput, error) {
	req, out := c.PutDestinationPolicyRequest(input)
	req.SetContext(ctx)
	req.ApplyOptions(opts...)
	return out, req.Send()
}

const opPutIndexPolicy = "PutIndexPolicy"

// PutIndexPolicyRequest generates a "aws/request.Request" representing the
// client's request for the PutIndexPolicy operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// 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 PutIndexPolicy for more information on using the PutIndexPolicy
// 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 PutIndexPolicyRequest method.
//	req, resp := client.PutIndexPolicyRequest(params)
//
//	err := req.Send()
//	if err == nil { // resp is now filled
//	    fmt.Println(resp)
//	}
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/PutIndexPolicy
func (c *CloudWatchLogs) PutIndexPolicyRequest(input *PutIndexPolicyInput) (req *request.Request, output *PutIndexPolicyOutput) {
	op := &request.Operation{
		Name:       opPutIndexPolicy,
		HTTPMethod: "POST",
		HTTPPath:   "/",
	}

	if input == nil {
		input = &PutIndexPolicyInput{}
	}

	output = &PutIndexPolicyOutput{}
	req = c.newRequest(op, input, output)
	return
}

// PutIndexPolicy API operation for Amazon CloudWatch Logs.
//
// Creates or updates a field index policy for the specified log group. Only
// log groups in the Standard log class support field index policies. For more
// information about log classes, see Log classes (https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/CloudWatch_Logs_Log_Classes.html).
//
// You can use field index policies to create field indexes on fields found
// in log events in the log group. Creating field indexes speeds up and lowers
// the costs for CloudWatch Logs Insights queries that reference those field
// indexes, because these queries attempt to skip the processing of log events
// that are known to not match the indexed field. Good fields to index are fields
// that you often need to query for and fields or values that match only a small
// fraction of the total log events. Common examples of indexes include request
// ID, session ID, userID, and instance IDs. For more information, see Create
// field indexes to improve query performance and reduce costs (https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/CloudWatchLogs-Field-Indexing.html).
//
// To find the fields that are in your log group events, use the GetLogGroupFields
// (https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_GetLogGroupFields.html)
// operation.
//
// For example, suppose you have created a field index for requestId. Then,
// any CloudWatch Logs Insights query on that log group that includes requestId
// = value or requestId IN [value, value, ...] will process fewer log events
// to reduce costs, and have improved performance.
//
// Each index policy has the following quotas and restrictions:
//
//   - As many as 20 fields can be included in the policy.
//
//   - Each field name can include as many as 100 characters.
//
// Matches of log events to the names of indexed fields are case-sensitive.
// For example, a field index of RequestId won't match a log event containing
// requestId.
//
// Log group-level field index policies created with PutIndexPolicy override
// account-level field index policies created with PutAccountPolicy (https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_PutAccountPolicy.html).
// If you use PutIndexPolicy to create a field index policy for a log group,
// that log group uses only that policy. The log group ignores any account-wide
// field index policy that you might have created.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon CloudWatch Logs's
// API operation PutIndexPolicy for usage and error information.
//
// Returned Error Types:
//
//   - InvalidParameterException
//     A parameter is specified incorrectly.
//
//   - ResourceNotFoundException
//     The specified resource does not exist.
//
//   - LimitExceededException
//     You have reached the maximum number of resources that can be created.
//
//   - OperationAbortedException
//     Multiple concurrent requests to update the same resource were in conflict.
//
//   - ServiceUnavailableException
//     The service cannot complete the request.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/PutIndexPolicy
func (c *CloudWatchLogs) PutIndexPolicy(input *PutIndexPolicyInput) (*PutIndexPolicyOutput, error) {
	req, out := c.PutIndexPolicyRequest(input)
	return out, req.Send()
}

// PutIndexPolicyWithContext is the same as PutIndexPolicy with the addition of
// the ability to pass a context and additional request options.
//
// See PutIndexPolicy 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 *CloudWatchLogs) PutIndexPolicyWithContext(ctx aws.Context, input *PutIndexPolicyInput, opts ...request.Option) (*PutIndexPolicyOutput, error) {
	req, out := c.PutIndexPolicyRequest(input)
	req.SetContext(ctx)
	req.ApplyOptions(opts...)
	return out, req.Send()
}

const opPutIntegration = "PutIntegration"

// PutIntegrationRequest generates a "aws/request.Request" representing the
// client's request for the PutIntegration operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// 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 PutIntegration for more information on using the PutIntegration
// 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 PutIntegrationRequest method.
//	req, resp := client.PutIntegrationRequest(params)
//
//	err := req.Send()
//	if err == nil { // resp is now filled
//	    fmt.Println(resp)
//	}
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/PutIntegration
func (c *CloudWatchLogs) PutIntegrationRequest(input *PutIntegrationInput) (req *request.Request, output *PutIntegrationOutput) {
	op := &request.Operation{
		Name:       opPutIntegration,
		HTTPMethod: "POST",
		HTTPPath:   "/",
	}

	if input == nil {
		input = &PutIntegrationInput{}
	}

	output = &PutIntegrationOutput{}
	req = c.newRequest(op, input, output)
	return
}

// PutIntegration API operation for Amazon CloudWatch Logs.
//
// Creates an integration between CloudWatch Logs and another service in this
// account. Currently, only integrations with OpenSearch Service are supported,
// and currently you can have only one integration in your account.
//
// Integrating with OpenSearch Service makes it possible for you to create curated
// vended logs dashboards, powered by OpenSearch Service analytics. For more
// information, see Vended log dashboards powered by Amazon OpenSearch Service
// (https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/CloudWatchLogs-OpenSearch-Dashboards.html).
//
// You can use this operation only to create a new integration. You can't modify
// an existing integration.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon CloudWatch Logs's
// API operation PutIntegration for usage and error information.
//
// Returned Error Types:
//
//   - InvalidParameterException
//     A parameter is specified incorrectly.
//
//   - LimitExceededException
//     You have reached the maximum number of resources that can be created.
//
//   - ServiceUnavailableException
//     The service cannot complete the request.
//
//   - ValidationException
//     One of the parameters for the request is not valid.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/PutIntegration
func (c *CloudWatchLogs) PutIntegration(input *PutIntegrationInput) (*PutIntegrationOutput, error) {
	req, out := c.PutIntegrationRequest(input)
	return out, req.Send()
}

// PutIntegrationWithContext is the same as PutIntegration with the addition of
// the ability to pass a context and additional request options.
//
// See PutIntegration 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 *CloudWatchLogs) PutIntegrationWithContext(ctx aws.Context, input *PutIntegrationInput, opts ...request.Option) (*PutIntegrationOutput, error) {
	req, out := c.PutIntegrationRequest(input)
	req.SetContext(ctx)
	req.ApplyOptions(opts...)
	return out, req.Send()
}

const opPutLogEvents = "PutLogEvents"

// PutLogEventsRequest generates a "aws/request.Request" representing the
// client's request for the PutLogEvents operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// 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 PutLogEvents for more information on using the PutLogEvents
// 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 PutLogEventsRequest method.
//	req, resp := client.PutLogEventsRequest(params)
//
//	err := req.Send()
//	if err == nil { // resp is now filled
//	    fmt.Println(resp)
//	}
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/PutLogEvents
func (c *CloudWatchLogs) PutLogEventsRequest(input *PutLogEventsInput) (req *request.Request, output *PutLogEventsOutput) {
	op := &request.Operation{
		Name:       opPutLogEvents,
		HTTPMethod: "POST",
		HTTPPath:   "/",
	}

	if input == nil {
		input = &PutLogEventsInput{}
	}

	output = &PutLogEventsOutput{}
	req = c.newRequest(op, input, output)
	return
}

// PutLogEvents API operation for Amazon CloudWatch Logs.
//
// Uploads a batch of log events to the specified log stream.
//
// The sequence token is now ignored in PutLogEvents actions. PutLogEvents actions
// are always accepted and never return InvalidSequenceTokenException or DataAlreadyAcceptedException
// even if the sequence token is not valid. You can use parallel PutLogEvents
// actions on the same log stream.
//
// The batch of events must satisfy the following constraints:
//
//   - The maximum batch size is 1,048,576 bytes. This size is calculated as
//     the sum of all event messages in UTF-8, plus 26 bytes for each log event.
//
//   - None of the log events in the batch can be more than 2 hours in the
//     future.
//
//   - None of the log events in the batch can be more than 14 days in the
//     past. Also, none of the log events can be from earlier than the retention
//     period of the log group.
//
//   - The log events in the batch must be in chronological order by their
//     timestamp. The timestamp is the time that the event occurred, expressed
//     as the number of milliseconds after Jan 1, 1970 00:00:00 UTC. (In Amazon
//     Web Services Tools for PowerShell and the Amazon Web Services SDK for
//     .NET, the timestamp is specified in .NET format: yyyy-mm-ddThh:mm:ss.
//     For example, 2017-09-15T13:45:30.)
//
//   - A batch of log events in a single request cannot span more than 24 hours.
//     Otherwise, the operation fails.
//
//   - Each log event can be no larger than 1 MB.
//
//   - The maximum number of log events in a batch is 10,000.
//
//   - The quota of five requests per second per log stream has been removed.
//     Instead, PutLogEvents actions are throttled based on a per-second per-account
//     quota. You can request an increase to the per-second throttling quota
//     by using the Service Quotas service.
//
// If a call to PutLogEvents returns "UnrecognizedClientException" the most
// likely cause is a non-valid Amazon Web Services access key ID or secret key.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon CloudWatch Logs's
// API operation PutLogEvents for usage and error information.
//
// Returned Error Types:
//
//   - InvalidParameterException
//     A parameter is specified incorrectly.
//
//   - InvalidSequenceTokenException
//     The sequence token is not valid. You can get the correct sequence token in
//     the expectedSequenceToken field in the InvalidSequenceTokenException message.
//
//     PutLogEvents actions are now always accepted and never return InvalidSequenceTokenException
//     regardless of receiving an invalid sequence token.
//
//   - DataAlreadyAcceptedException
//     The event was already logged.
//
//     PutLogEvents actions are now always accepted and never return DataAlreadyAcceptedException
//     regardless of whether a given batch of log events has already been accepted.
//
//   - ResourceNotFoundException
//     The specified resource does not exist.
//
//   - ServiceUnavailableException
//     The service cannot complete the request.
//
//   - UnrecognizedClientException
//     The most likely cause is an Amazon Web Services access key ID or secret key
//     that's not valid.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/PutLogEvents
func (c *CloudWatchLogs) PutLogEvents(input *PutLogEventsInput) (*PutLogEventsOutput, error) {
	req, out := c.PutLogEventsRequest(input)
	return out, req.Send()
}

// PutLogEventsWithContext is the same as PutLogEvents with the addition of
// the ability to pass a context and additional request options.
//
// See PutLogEvents 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 *CloudWatchLogs) PutLogEventsWithContext(ctx aws.Context, input *PutLogEventsInput, opts ...request.Option) (*PutLogEventsOutput, error) {
	req, out := c.PutLogEventsRequest(input)
	req.SetContext(ctx)
	req.ApplyOptions(opts...)
	return out, req.Send()
}

const opPutMetricFilter = "PutMetricFilter"

// PutMetricFilterRequest generates a "aws/request.Request" representing the
// client's request for the PutMetricFilter operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// 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 PutMetricFilter for more information on using the PutMetricFilter
// 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 PutMetricFilterRequest method.
//	req, resp := client.PutMetricFilterRequest(params)
//
//	err := req.Send()
//	if err == nil { // resp is now filled
//	    fmt.Println(resp)
//	}
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/PutMetricFilter
func (c *CloudWatchLogs) PutMetricFilterRequest(input *PutMetricFilterInput) (req *request.Request, output *PutMetricFilterOutput) {
	op := &request.Operation{
		Name:       opPutMetricFilter,
		HTTPMethod: "POST",
		HTTPPath:   "/",
	}

	if input == nil {
		input = &PutMetricFilterInput{}
	}

	output = &PutMetricFilterOutput{}
	req = c.newRequest(op, input, output)
	req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
	return
}

// PutMetricFilter API operation for Amazon CloudWatch Logs.
//
// Creates or updates a metric filter and associates it with the specified log
// group. With metric filters, you can configure rules to extract metric data
// from log events ingested through PutLogEvents (https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_PutLogEvents.html).
//
// The maximum number of metric filters that can be associated with a log group
// is 100.
//
// Using regular expressions in filter patterns is supported. For these filters,
// there is a quota of two regular expression patterns within a single filter
// pattern. There is also a quota of five regular expression patterns per log
// group. For more information about using regular expressions in filter patterns,
// see Filter pattern syntax for metric filters, subscription filters, filter
// log events, and Live Tail (https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/FilterAndPatternSyntax.html).
//
// When you create a metric filter, you can also optionally assign a unit and
// dimensions to the metric that is created.
//
// Metrics extracted from log events are charged as custom metrics. To prevent
// unexpected high charges, do not specify high-cardinality fields such as IPAddress
// or requestID as dimensions. Each different value found for a dimension is
// treated as a separate metric and accrues charges as a separate custom metric.
//
// CloudWatch Logs might disable a metric filter if it generates 1,000 different
// name/value pairs for your specified dimensions within one hour.
//
// You can also set up a billing alarm to alert you if your charges are higher
// than expected. For more information, see Creating a Billing Alarm to Monitor
// Your Estimated Amazon Web Services Charges (https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/monitor_estimated_charges_with_cloudwatch.html).
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon CloudWatch Logs's
// API operation PutMetricFilter for usage and error information.
//
// Returned Error Types:
//
//   - InvalidParameterException
//     A parameter is specified incorrectly.
//
//   - ResourceNotFoundException
//     The specified resource does not exist.
//
//   - OperationAbortedException
//     Multiple concurrent requests to update the same resource were in conflict.
//
//   - LimitExceededException
//     You have reached the maximum number of resources that can be created.
//
//   - ServiceUnavailableException
//     The service cannot complete the request.
//
//   - InvalidOperationException
//     The operation is not valid on the specified resource.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/PutMetricFilter
func (c *CloudWatchLogs) PutMetricFilter(input *PutMetricFilterInput) (*PutMetricFilterOutput, error) {
	req, out := c.PutMetricFilterRequest(input)
	return out, req.Send()
}

// PutMetricFilterWithContext is the same as PutMetricFilter with the addition of
// the ability to pass a context and additional request options.
//
// See PutMetricFilter 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 *CloudWatchLogs) PutMetricFilterWithContext(ctx aws.Context, input *PutMetricFilterInput, opts ...request.Option) (*PutMetricFilterOutput, error) {
	req, out := c.PutMetricFilterRequest(input)
	req.SetContext(ctx)
	req.ApplyOptions(opts...)
	return out, req.Send()
}

const opPutQueryDefinition = "PutQueryDefinition"

// PutQueryDefinitionRequest generates a "aws/request.Request" representing the
// client's request for the PutQueryDefinition operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// 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 PutQueryDefinition for more information on using the PutQueryDefinition
// 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 PutQueryDefinitionRequest method.
//	req, resp := client.PutQueryDefinitionRequest(params)
//
//	err := req.Send()
//	if err == nil { // resp is now filled
//	    fmt.Println(resp)
//	}
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/PutQueryDefinition
func (c *CloudWatchLogs) PutQueryDefinitionRequest(input *PutQueryDefinitionInput) (req *request.Request, output *PutQueryDefinitionOutput) {
	op := &request.Operation{
		Name:       opPutQueryDefinition,
		HTTPMethod: "POST",
		HTTPPath:   "/",
	}

	if input == nil {
		input = &PutQueryDefinitionInput{}
	}

	output = &PutQueryDefinitionOutput{}
	req = c.newRequest(op, input, output)
	return
}

// PutQueryDefinition API operation for Amazon CloudWatch Logs.
//
// Creates or updates a query definition for CloudWatch Logs Insights. For more
// information, see Analyzing Log Data with CloudWatch Logs Insights (https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/AnalyzingLogData.html).
//
// To update a query definition, specify its queryDefinitionId in your request.
// The values of name, queryString, and logGroupNames are changed to the values
// that you specify in your update operation. No current values are retained
// from the current query definition. For example, imagine updating a current
// query definition that includes log groups. If you don't specify the logGroupNames
// parameter in your update operation, the query definition changes to contain
// no log groups.
//
// You must have the logs:PutQueryDefinition permission to be able to 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 Amazon CloudWatch Logs's
// API operation PutQueryDefinition for usage and error information.
//
// Returned Error Types:
//
//   - InvalidParameterException
//     A parameter is specified incorrectly.
//
//   - LimitExceededException
//     You have reached the maximum number of resources that can be created.
//
//   - ResourceNotFoundException
//     The specified resource does not exist.
//
//   - ServiceUnavailableException
//     The service cannot complete the request.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/PutQueryDefinition
func (c *CloudWatchLogs) PutQueryDefinition(input *PutQueryDefinitionInput) (*PutQueryDefinitionOutput, error) {
	req, out := c.PutQueryDefinitionRequest(input)
	return out, req.Send()
}

// PutQueryDefinitionWithContext is the same as PutQueryDefinition with the addition of
// the ability to pass a context and additional request options.
//
// See PutQueryDefinition 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 *CloudWatchLogs) PutQueryDefinitionWithContext(ctx aws.Context, input *PutQueryDefinitionInput, opts ...request.Option) (*PutQueryDefinitionOutput, error) {
	req, out := c.PutQueryDefinitionRequest(input)
	req.SetContext(ctx)
	req.ApplyOptions(opts...)
	return out, req.Send()
}

const opPutResourcePolicy = "PutResourcePolicy"

// PutResourcePolicyRequest generates a "aws/request.Request" representing the
// client's request for the PutResourcePolicy operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// 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 PutResourcePolicy for more information on using the PutResourcePolicy
// 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 PutResourcePolicyRequest method.
//	req, resp := client.PutResourcePolicyRequest(params)
//
//	err := req.Send()
//	if err == nil { // resp is now filled
//	    fmt.Println(resp)
//	}
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/PutResourcePolicy
func (c *CloudWatchLogs) PutResourcePolicyRequest(input *PutResourcePolicyInput) (req *request.Request, output *PutResourcePolicyOutput) {
	op := &request.Operation{
		Name:       opPutResourcePolicy,
		HTTPMethod: "POST",
		HTTPPath:   "/",
	}

	if input == nil {
		input = &PutResourcePolicyInput{}
	}

	output = &PutResourcePolicyOutput{}
	req = c.newRequest(op, input, output)
	return
}

// PutResourcePolicy API operation for Amazon CloudWatch Logs.
//
// Creates or updates a resource policy allowing other Amazon Web Services services
// to put log events to this account, such as Amazon Route 53. An account can
// have up to 10 resource policies per Amazon Web Services Region.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon CloudWatch Logs's
// API operation PutResourcePolicy for usage and error information.
//
// Returned Error Types:
//
//   - InvalidParameterException
//     A parameter is specified incorrectly.
//
//   - LimitExceededException
//     You have reached the maximum number of resources that can be created.
//
//   - ServiceUnavailableException
//     The service cannot complete the request.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/PutResourcePolicy
func (c *CloudWatchLogs) PutResourcePolicy(input *PutResourcePolicyInput) (*PutResourcePolicyOutput, error) {
	req, out := c.PutResourcePolicyRequest(input)
	return out, req.Send()
}

// PutResourcePolicyWithContext is the same as PutResourcePolicy with the addition of
// the ability to pass a context and additional request options.
//
// See PutResourcePolicy 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 *CloudWatchLogs) PutResourcePolicyWithContext(ctx aws.Context, input *PutResourcePolicyInput, opts ...request.Option) (*PutResourcePolicyOutput, error) {
	req, out := c.PutResourcePolicyRequest(input)
	req.SetContext(ctx)
	req.ApplyOptions(opts...)
	return out, req.Send()
}

const opPutRetentionPolicy = "PutRetentionPolicy"

// PutRetentionPolicyRequest generates a "aws/request.Request" representing the
// client's request for the PutRetentionPolicy operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// 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 PutRetentionPolicy for more information on using the PutRetentionPolicy
// 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 PutRetentionPolicyRequest method.
//	req, resp := client.PutRetentionPolicyRequest(params)
//
//	err := req.Send()
//	if err == nil { // resp is now filled
//	    fmt.Println(resp)
//	}
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/PutRetentionPolicy
func (c *CloudWatchLogs) PutRetentionPolicyRequest(input *PutRetentionPolicyInput) (req *request.Request, output *PutRetentionPolicyOutput) {
	op := &request.Operation{
		Name:       opPutRetentionPolicy,
		HTTPMethod: "POST",
		HTTPPath:   "/",
	}

	if input == nil {
		input = &PutRetentionPolicyInput{}
	}

	output = &PutRetentionPolicyOutput{}
	req = c.newRequest(op, input, output)
	req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
	return
}

// PutRetentionPolicy API operation for Amazon CloudWatch Logs.
//
// Sets the retention of the specified log group. With a retention policy, you
// can configure the number of days for which to retain log events in the specified
// log group.
//
// CloudWatch Logs doesn't immediately delete log events when they reach their
// retention setting. It typically takes up to 72 hours after that before log
// events are deleted, but in rare situations might take longer.
//
// To illustrate, imagine that you change a log group to have a longer retention
// setting when it contains log events that are past the expiration date, but
// haven't been deleted. Those log events will take up to 72 hours to be deleted
// after the new retention date is reached. To make sure that log data is deleted
// permanently, keep a log group at its lower retention setting until 72 hours
// after the previous retention period ends. Alternatively, wait to change the
// retention setting until you confirm that the earlier log events are deleted.
//
// When log events reach their retention setting they are marked for deletion.
// After they are marked for deletion, they do not add to your archival storage
// costs anymore, even if they are not actually deleted until later. These log
// events marked for deletion are also not included when you use an API to retrieve
// the storedBytes value to see how many bytes a log group is storing.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon CloudWatch Logs's
// API operation PutRetentionPolicy for usage and error information.
//
// Returned Error Types:
//
//   - InvalidParameterException
//     A parameter is specified incorrectly.
//
//   - ResourceNotFoundException
//     The specified resource does not exist.
//
//   - OperationAbortedException
//     Multiple concurrent requests to update the same resource were in conflict.
//
//   - ServiceUnavailableException
//     The service cannot complete the request.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/PutRetentionPolicy
func (c *CloudWatchLogs) PutRetentionPolicy(input *PutRetentionPolicyInput) (*PutRetentionPolicyOutput, error) {
	req, out := c.PutRetentionPolicyRequest(input)
	return out, req.Send()
}

// PutRetentionPolicyWithContext is the same as PutRetentionPolicy with the addition of
// the ability to pass a context and additional request options.
//
// See PutRetentionPolicy 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 *CloudWatchLogs) PutRetentionPolicyWithContext(ctx aws.Context, input *PutRetentionPolicyInput, opts ...request.Option) (*PutRetentionPolicyOutput, error) {
	req, out := c.PutRetentionPolicyRequest(input)
	req.SetContext(ctx)
	req.ApplyOptions(opts...)
	return out, req.Send()
}

const opPutSubscriptionFilter = "PutSubscriptionFilter"

// PutSubscriptionFilterRequest generates a "aws/request.Request" representing the
// client's request for the PutSubscriptionFilter operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// 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 PutSubscriptionFilter for more information on using the PutSubscriptionFilter
// 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 PutSubscriptionFilterRequest method.
//	req, resp := client.PutSubscriptionFilterRequest(params)
//
//	err := req.Send()
//	if err == nil { // resp is now filled
//	    fmt.Println(resp)
//	}
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/PutSubscriptionFilter
func (c *CloudWatchLogs) PutSubscriptionFilterRequest(input *PutSubscriptionFilterInput) (req *request.Request, output *PutSubscriptionFilterOutput) {
	op := &request.Operation{
		Name:       opPutSubscriptionFilter,
		HTTPMethod: "POST",
		HTTPPath:   "/",
	}

	if input == nil {
		input = &PutSubscriptionFilterInput{}
	}

	output = &PutSubscriptionFilterOutput{}
	req = c.newRequest(op, input, output)
	req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
	return
}

// PutSubscriptionFilter API operation for Amazon CloudWatch Logs.
//
// Creates or updates a subscription filter and associates it with the specified
// log group. With subscription filters, you can subscribe to a real-time stream
// of log events ingested through PutLogEvents (https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_PutLogEvents.html)
// and have them delivered to a specific destination. When log events are sent
// to the receiving service, they are Base64 encoded and compressed with the
// GZIP format.
//
// The following destinations are supported for subscription filters:
//
//   - An Amazon Kinesis data stream belonging to the same account as the subscription
//     filter, for same-account delivery.
//
//   - A logical destination created with PutDestination (https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_PutDestination.html)
//     that belongs to a different account, for cross-account delivery. We currently
//     support Kinesis Data Streams and Firehose as logical destinations.
//
//   - An Amazon Kinesis Data Firehose delivery stream that belongs to the
//     same account as the subscription filter, for same-account delivery.
//
//   - An Lambda function that belongs to the same account as the subscription
//     filter, for same-account delivery.
//
// Each log group can have up to two subscription filters associated with it.
// If you are updating an existing filter, you must specify the correct name
// in filterName.
//
// Using regular expressions in filter patterns is supported. For these filters,
// there is a quotas of quota of two regular expression patterns within a single
// filter pattern. There is also a quota of five regular expression patterns
// per log group. For more information about using regular expressions in filter
// patterns, see Filter pattern syntax for metric filters, subscription filters,
// filter log events, and Live Tail (https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/FilterAndPatternSyntax.html).
//
// To perform a PutSubscriptionFilter operation for any destination except a
// Lambda function, you must also have the iam:PassRole permission.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon CloudWatch Logs's
// API operation PutSubscriptionFilter for usage and error information.
//
// Returned Error Types:
//
//   - InvalidParameterException
//     A parameter is specified incorrectly.
//
//   - ResourceNotFoundException
//     The specified resource does not exist.
//
//   - OperationAbortedException
//     Multiple concurrent requests to update the same resource were in conflict.
//
//   - LimitExceededException
//     You have reached the maximum number of resources that can be created.
//
//   - ServiceUnavailableException
//     The service cannot complete the request.
//
//   - InvalidOperationException
//     The operation is not valid on the specified resource.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/PutSubscriptionFilter
func (c *CloudWatchLogs) PutSubscriptionFilter(input *PutSubscriptionFilterInput) (*PutSubscriptionFilterOutput, error) {
	req, out := c.PutSubscriptionFilterRequest(input)
	return out, req.Send()
}

// PutSubscriptionFilterWithContext is the same as PutSubscriptionFilter with the addition of
// the ability to pass a context and additional request options.
//
// See PutSubscriptionFilter 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 *CloudWatchLogs) PutSubscriptionFilterWithContext(ctx aws.Context, input *PutSubscriptionFilterInput, opts ...request.Option) (*PutSubscriptionFilterOutput, error) {
	req, out := c.PutSubscriptionFilterRequest(input)
	req.SetContext(ctx)
	req.ApplyOptions(opts...)
	return out, req.Send()
}

const opPutTransformer = "PutTransformer"

// PutTransformerRequest generates a "aws/request.Request" representing the
// client's request for the PutTransformer operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// 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 PutTransformer for more information on using the PutTransformer
// 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 PutTransformerRequest method.
//	req, resp := client.PutTransformerRequest(params)
//
//	err := req.Send()
//	if err == nil { // resp is now filled
//	    fmt.Println(resp)
//	}
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/PutTransformer
func (c *CloudWatchLogs) PutTransformerRequest(input *PutTransformerInput) (req *request.Request, output *PutTransformerOutput) {
	op := &request.Operation{
		Name:       opPutTransformer,
		HTTPMethod: "POST",
		HTTPPath:   "/",
	}

	if input == nil {
		input = &PutTransformerInput{}
	}

	output = &PutTransformerOutput{}
	req = c.newRequest(op, input, output)
	req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
	return
}

// PutTransformer API operation for Amazon CloudWatch Logs.
//
// Creates or updates a log transformer for a single log group. You use log
// transformers to transform log events into a different format, making them
// easier for you to process and analyze. You can also transform logs from different
// sources into standardized formats that contains relevant, source-specific
// information.
//
// After you have created a transformer, CloudWatch Logs performs the transformations
// at the time of log ingestion. You can then refer to the transformed versions
// of the logs during operations such as querying with CloudWatch Logs Insights
// or creating metric filters or subscription filers.
//
// You can also use a transformer to copy metadata from metadata keys into the
// log events themselves. This metadata can include log group name, log stream
// name, account ID and Region.
//
// A transformer for a log group is a series of processors, where each processor
// applies one type of transformation to the log events ingested into this log
// group. The processors work one after another, in the order that you list
// them, like a pipeline. For more information about the available processors
// to use in a transformer, see Processors that you can use (https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/CloudWatch-Logs-Transformation.html#CloudWatch-Logs-Transformation-Processors).
//
// Having log events in standardized format enables visibility across your applications
// for your log analysis, reporting, and alarming needs. CloudWatch Logs provides
// transformation for common log types with out-of-the-box transformation templates
// for major Amazon Web Services log sources such as VPC flow logs, Lambda,
// and Amazon RDS. You can use pre-built transformation templates or create
// custom transformation policies.
//
// You can create transformers only for the log groups in the Standard log class.
//
// You can also set up a transformer at the account level. For more information,
// see PutAccountPolicy (https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_PutAccountPolicy.html).
// If there is both a log-group level transformer created with PutTransformer
// and an account-level transformer that could apply to the same log group,
// the log group uses only the log-group level transformer. It ignores the account-level
// transformer.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon CloudWatch Logs's
// API operation PutTransformer for usage and error information.
//
// Returned Error Types:
//
//   - InvalidParameterException
//     A parameter is specified incorrectly.
//
//   - ResourceNotFoundException
//     The specified resource does not exist.
//
//   - ServiceUnavailableException
//     The service cannot complete the request.
//
//   - LimitExceededException
//     You have reached the maximum number of resources that can be created.
//
//   - OperationAbortedException
//     Multiple concurrent requests to update the same resource were in conflict.
//
//   - InvalidOperationException
//     The operation is not valid on the specified resource.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/PutTransformer
func (c *CloudWatchLogs) PutTransformer(input *PutTransformerInput) (*PutTransformerOutput, error) {
	req, out := c.PutTransformerRequest(input)
	return out, req.Send()
}

// PutTransformerWithContext is the same as PutTransformer with the addition of
// the ability to pass a context and additional request options.
//
// See PutTransformer 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 *CloudWatchLogs) PutTransformerWithContext(ctx aws.Context, input *PutTransformerInput, opts ...request.Option) (*PutTransformerOutput, error) {
	req, out := c.PutTransformerRequest(input)
	req.SetContext(ctx)
	req.ApplyOptions(opts...)
	return out, req.Send()
}

const opStartLiveTail = "StartLiveTail"

// StartLiveTailRequest generates a "aws/request.Request" representing the
// client's request for the StartLiveTail operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// 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 StartLiveTail for more information on using the StartLiveTail
// 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 StartLiveTailRequest method.
//	req, resp := client.StartLiveTailRequest(params)
//
//	err := req.Send()
//	if err == nil { // resp is now filled
//	    fmt.Println(resp)
//	}
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/StartLiveTail
func (c *CloudWatchLogs) StartLiveTailRequest(input *StartLiveTailInput) (req *request.Request, output *StartLiveTailOutput) {
	op := &request.Operation{
		Name:       opStartLiveTail,
		HTTPMethod: "POST",
		HTTPPath:   "/",
	}

	if input == nil {
		input = &StartLiveTailInput{}
	}

	output = &StartLiveTailOutput{}
	req = c.newRequest(op, input, output)

	es := NewStartLiveTailEventStream()
	output.eventStream = es

	req.Handlers.Send.Swap(client.LogHTTPResponseHandler.Name, client.LogHTTPResponseHeaderHandler)
	req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, rest.UnmarshalHandler)
	req.Handlers.Unmarshal.PushBack(es.runOutputStream)
	es.output = output
	req.Handlers.Unmarshal.PushBack(es.recvInitialEvent)
	req.Handlers.Unmarshal.PushBack(es.runOnStreamPartClose)
	req.Handlers.Build.PushBackNamed(protocol.NewHostPrefixHandler("streaming-", nil))
	req.Handlers.Build.PushBackNamed(protocol.ValidateEndpointHostHandler)
	return
}

// StartLiveTail API operation for Amazon CloudWatch Logs.
//
// Starts a Live Tail streaming session for one or more log groups. A Live Tail
// session returns a stream of log events that have been recently ingested in
// the log groups. For more information, see Use Live Tail to view logs in near
// real time (https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/CloudWatchLogs_LiveTail.html).
//
// The response to this operation is a response stream, over which the server
// sends live log events and the client receives them.
//
// The following objects are sent over the stream:
//
//   - A single LiveTailSessionStart (https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_LiveTailSessionStart.html)
//     object is sent at the start of the session.
//
//   - Every second, a LiveTailSessionUpdate (https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_LiveTailSessionUpdate.html)
//     object is sent. Each of these objects contains an array of the actual
//     log events. If no new log events were ingested in the past second, the
//     LiveTailSessionUpdate object will contain an empty array. The array of
//     log events contained in a LiveTailSessionUpdate can include as many as
//     500 log events. If the number of log events matching the request exceeds
//     500 per second, the log events are sampled down to 500 log events to be
//     included in each LiveTailSessionUpdate object. If your client consumes
//     the log events slower than the server produces them, CloudWatch Logs buffers
//     up to 10 LiveTailSessionUpdate events or 5000 log events, after which
//     it starts dropping the oldest events.
//
//   - A SessionStreamingException (https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_StartLiveTailResponseStream.html#CWL-Type-StartLiveTailResponseStream-SessionStreamingException)
//     object is returned if an unknown error occurs on the server side.
//
//   - A SessionTimeoutException (https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_StartLiveTailResponseStream.html#CWL-Type-StartLiveTailResponseStream-SessionTimeoutException)
//     object is returned when the session times out, after it has been kept
//     open for three hours.
//
// The StartLiveTail API routes requests to streaming-logs.Region.amazonaws.com
// using SDK host prefix injection. VPC endpoint support is not available for
// this API.
//
// You can end a session before it times out by closing the session stream or
// by closing the client that is receiving the stream. The session also ends
// if the established connection between the client and the server breaks.
//
// For examples of using an SDK to start a Live Tail session, see Start a Live
// Tail session using an Amazon Web Services SDK (https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/example_cloudwatch-logs_StartLiveTail_section.html).
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon CloudWatch Logs's
// API operation StartLiveTail for usage and error information.
//
// Returned Error Types:
//
//   - AccessDeniedException
//     You don't have sufficient permissions to perform this action.
//
//   - InvalidParameterException
//     A parameter is specified incorrectly.
//
//   - ResourceNotFoundException
//     The specified resource does not exist.
//
//   - LimitExceededException
//     You have reached the maximum number of resources that can be created.
//
//   - InvalidOperationException
//     The operation is not valid on the specified resource.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/StartLiveTail
func (c *CloudWatchLogs) StartLiveTail(input *StartLiveTailInput) (*StartLiveTailOutput, error) {
	req, out := c.StartLiveTailRequest(input)
	return out, req.Send()
}

// StartLiveTailWithContext is the same as StartLiveTail with the addition of
// the ability to pass a context and additional request options.
//
// See StartLiveTail 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 *CloudWatchLogs) StartLiveTailWithContext(ctx aws.Context, input *StartLiveTailInput, opts ...request.Option) (*StartLiveTailOutput, error) {
	req, out := c.StartLiveTailRequest(input)
	req.SetContext(ctx)
	req.ApplyOptions(opts...)
	return out, req.Send()
}

var _ awserr.Error
var _ time.Time

// StartLiveTailEventStream provides the event stream handling for the StartLiveTail.
//
// For testing and mocking the event stream this type should be initialized via
// the NewStartLiveTailEventStream constructor function. Using the functional options
// to pass in nested mock behavior.
type StartLiveTailEventStream struct {

	// Reader is the EventStream reader for the StartLiveTailResponseStream
	// events. This value is automatically set by the SDK when the API call is made
	// Use this member when unit testing your code with the SDK to mock out the
	// EventStream Reader.
	//
	// Must not be nil.
	Reader StartLiveTailResponseStreamReader

	outputReader io.ReadCloser
	output       *StartLiveTailOutput

	done      chan struct{}
	closeOnce sync.Once
	err       *eventstreamapi.OnceError
}

// NewStartLiveTailEventStream initializes an StartLiveTailEventStream.
// This function should only be used for testing and mocking the StartLiveTailEventStream
// stream within your application.
//
// The Reader member must be set before reading events from the stream.
//
//	es := NewStartLiveTailEventStream(func(o *StartLiveTailEventStream){
//	    es.Reader = myMockStreamReader
//	})
func NewStartLiveTailEventStream(opts ...func(*StartLiveTailEventStream)) *StartLiveTailEventStream {
	es := &StartLiveTailEventStream{
		done: make(chan struct{}),
		err:  eventstreamapi.NewOnceError(),
	}

	for _, fn := range opts {
		fn(es)
	}

	return es
}

func (es *StartLiveTailEventStream) runOnStreamPartClose(r *request.Request) {
	if es.done == nil {
		return
	}
	go es.waitStreamPartClose()

}

func (es *StartLiveTailEventStream) waitStreamPartClose() {
	var outputErrCh <-chan struct{}
	if v, ok := es.Reader.(interface{ ErrorSet() <-chan struct{} }); ok {
		outputErrCh = v.ErrorSet()
	}
	var outputClosedCh <-chan struct{}
	if v, ok := es.Reader.(interface{ Closed() <-chan struct{} }); ok {
		outputClosedCh = v.Closed()
	}

	select {
	case <-es.done:
	case <-outputErrCh:
		es.err.SetError(es.Reader.Err())
		es.Close()
	case <-outputClosedCh:
		if err := es.Reader.Err(); err != nil {
			es.err.SetError(es.Reader.Err())
		}
		es.Close()
	}
}

type eventTypeForStartLiveTailEventStreamOutputEvent struct {
	unmarshalerForEvent func(string) (eventstreamapi.Unmarshaler, error)
	output              *StartLiveTailOutput
}

func (e eventTypeForStartLiveTailEventStreamOutputEvent) UnmarshalerForEventName(eventType string) (eventstreamapi.Unmarshaler, error) {
	if eventType == "initial-response" {
		return e.output, nil
	}
	return e.unmarshalerForEvent(eventType)
}

// Events returns a channel to read events from.
//
// These events are:
//
//   - LiveTailSessionStart
//   - LiveTailSessionUpdate
//   - StartLiveTailResponseStreamUnknownEvent
func (es *StartLiveTailEventStream) Events() <-chan StartLiveTailResponseStreamEvent {
	return es.Reader.Events()
}

func (es *StartLiveTailEventStream) runOutputStream(r *request.Request) {
	var opts []func(*eventstream.Decoder)
	if r.Config.Logger != nil && r.Config.LogLevel.Matches(aws.LogDebugWithEventStreamBody) {
		opts = append(opts, eventstream.DecodeWithLogger(r.Config.Logger))
	}

	unmarshalerForEvent := unmarshalerForStartLiveTailResponseStreamEvent{
		metadata: protocol.ResponseMetadata{
			StatusCode: r.HTTPResponse.StatusCode,
			RequestID:  r.RequestID,
		},
	}.UnmarshalerForEventName
	unmarshalerForEvent = eventTypeForStartLiveTailEventStreamOutputEvent{
		unmarshalerForEvent: unmarshalerForEvent,
		output:              es.output,
	}.UnmarshalerForEventName

	decoder := eventstream.NewDecoder(r.HTTPResponse.Body, opts...)
	eventReader := eventstreamapi.NewEventReader(decoder,
		protocol.HandlerPayloadUnmarshal{
			Unmarshalers: r.Handlers.UnmarshalStream,
		},
		unmarshalerForEvent,
	)

	es.outputReader = r.HTTPResponse.Body
	es.Reader = newReadStartLiveTailResponseStream(eventReader)
}
func (es *StartLiveTailEventStream) recvInitialEvent(r *request.Request) {
	// Wait for the initial response event, which must be the first
	// event to be received from the API.
	select {
	case event, ok := <-es.Events():
		if !ok {
			return
		}

		v, ok := event.(*StartLiveTailOutput)
		if !ok || v == nil {
			r.Error = awserr.New(
				request.ErrCodeSerialization,
				fmt.Sprintf("invalid event, %T, expect %T, %v",
					event, (*StartLiveTailOutput)(nil), v),
				nil,
			)
			return
		}

		*es.output = *v
		es.output.eventStream = es
	}
}

// Close closes the stream. This will also cause the stream to be closed.
// Close must be called when done using the stream API. Not calling Close
// may result in resource leaks.
//
// You can use the closing of the Reader's Events channel to terminate your
// application's read from the API's stream.
func (es *StartLiveTailEventStream) Close() (err error) {
	es.closeOnce.Do(es.safeClose)
	return es.Err()
}

func (es *StartLiveTailEventStream) safeClose() {
	if es.done != nil {
		close(es.done)
	}

	es.Reader.Close()
	if es.outputReader != nil {
		es.outputReader.Close()
	}
}

// Err returns any error that occurred while reading or writing EventStream
// Events from the service API's response. Returns nil if there were no errors.
func (es *StartLiveTailEventStream) Err() error {
	if err := es.err.Err(); err != nil {
		return err
	}
	if err := es.Reader.Err(); err != nil {
		return err
	}

	return nil
}

const opStartQuery = "StartQuery"

// StartQueryRequest generates a "aws/request.Request" representing the
// client's request for the StartQuery operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// 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 StartQuery for more information on using the StartQuery
// 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 StartQueryRequest method.
//	req, resp := client.StartQueryRequest(params)
//
//	err := req.Send()
//	if err == nil { // resp is now filled
//	    fmt.Println(resp)
//	}
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/StartQuery
func (c *CloudWatchLogs) StartQueryRequest(input *StartQueryInput) (req *request.Request, output *StartQueryOutput) {
	op := &request.Operation{
		Name:       opStartQuery,
		HTTPMethod: "POST",
		HTTPPath:   "/",
	}

	if input == nil {
		input = &StartQueryInput{}
	}

	output = &StartQueryOutput{}
	req = c.newRequest(op, input, output)
	return
}

// StartQuery API operation for Amazon CloudWatch Logs.
//
// Starts a query of one or more log groups using CloudWatch Logs Insights.
// You specify the log groups and time range to query and the query string to
// use.
//
// For more information, see CloudWatch Logs Insights Query Syntax (https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/CWL_QuerySyntax.html).
//
// After you run a query using StartQuery, the query results are stored by CloudWatch
// Logs. You can use GetQueryResults (https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_GetQueryResults.html)
// to retrieve the results of a query, using the queryId that StartQuery returns.
//
// To specify the log groups to query, a StartQuery operation must include one
// of the following:
//
//   - Either exactly one of the following parameters: logGroupName, logGroupNames,
//     or logGroupIdentifiers
//
//   - Or the queryString must include a SOURCE command to select log groups
//     for the query. The SOURCE command can select log groups based on log group
//     name prefix, account ID, and log class. For more information about the
//     SOURCE command, see SOURCE (https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/CWL_QuerySyntax-Source.html).
//
// If you have associated a KMS key with the query results in this account,
// then StartQuery (https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_StartQuery.html)
// uses that key to encrypt the results when it stores them. If no key is associated
// with query results, the query results are encrypted with the default CloudWatch
// Logs encryption method.
//
// Queries time out after 60 minutes of runtime. If your queries are timing
// out, reduce the time range being searched or partition your query into a
// number of queries.
//
// If you are using CloudWatch cross-account observability, you can use this
// operation in a monitoring account to start a query in a linked source account.
// For more information, see CloudWatch cross-account observability (https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-Unified-Cross-Account.html).
// For a cross-account StartQuery operation, the query definition must be defined
// in the monitoring account.
//
// You can have up to 30 concurrent CloudWatch Logs insights queries, including
// queries that have been added to dashboards.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon CloudWatch Logs's
// API operation StartQuery for usage and error information.
//
// Returned Error Types:
//
//   - MalformedQueryException
//     The query string is not valid. Details about this error are displayed in
//     a QueryCompileError object. For more information, see QueryCompileError (https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_QueryCompileError.html).
//
//     For more information about valid query syntax, see CloudWatch Logs Insights
//     Query Syntax (https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/CWL_QuerySyntax.html).
//
//   - InvalidParameterException
//     A parameter is specified incorrectly.
//
//   - LimitExceededException
//     You have reached the maximum number of resources that can be created.
//
//   - ResourceNotFoundException
//     The specified resource does not exist.
//
//   - ServiceUnavailableException
//     The service cannot complete the request.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/StartQuery
func (c *CloudWatchLogs) StartQuery(input *StartQueryInput) (*StartQueryOutput, error) {
	req, out := c.StartQueryRequest(input)
	return out, req.Send()
}

// StartQueryWithContext is the same as StartQuery with the addition of
// the ability to pass a context and additional request options.
//
// See StartQuery 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 *CloudWatchLogs) StartQueryWithContext(ctx aws.Context, input *StartQueryInput, opts ...request.Option) (*StartQueryOutput, error) {
	req, out := c.StartQueryRequest(input)
	req.SetContext(ctx)
	req.ApplyOptions(opts...)
	return out, req.Send()
}

const opStopQuery = "StopQuery"

// StopQueryRequest generates a "aws/request.Request" representing the
// client's request for the StopQuery operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// 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 StopQuery for more information on using the StopQuery
// 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 StopQueryRequest method.
//	req, resp := client.StopQueryRequest(params)
//
//	err := req.Send()
//	if err == nil { // resp is now filled
//	    fmt.Println(resp)
//	}
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/StopQuery
func (c *CloudWatchLogs) StopQueryRequest(input *StopQueryInput) (req *request.Request, output *StopQueryOutput) {
	op := &request.Operation{
		Name:       opStopQuery,
		HTTPMethod: "POST",
		HTTPPath:   "/",
	}

	if input == nil {
		input = &StopQueryInput{}
	}

	output = &StopQueryOutput{}
	req = c.newRequest(op, input, output)
	return
}

// StopQuery API operation for Amazon CloudWatch Logs.
//
// Stops a CloudWatch Logs Insights query that is in progress. If the query
// has already ended, the operation returns an error indicating that the specified
// query is not running.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon CloudWatch Logs's
// API operation StopQuery for usage and error information.
//
// Returned Error Types:
//
//   - InvalidParameterException
//     A parameter is specified incorrectly.
//
//   - ResourceNotFoundException
//     The specified resource does not exist.
//
//   - ServiceUnavailableException
//     The service cannot complete the request.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/StopQuery
func (c *CloudWatchLogs) StopQuery(input *StopQueryInput) (*StopQueryOutput, error) {
	req, out := c.StopQueryRequest(input)
	return out, req.Send()
}

// StopQueryWithContext is the same as StopQuery with the addition of
// the ability to pass a context and additional request options.
//
// See StopQuery 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 *CloudWatchLogs) StopQueryWithContext(ctx aws.Context, input *StopQueryInput, opts ...request.Option) (*StopQueryOutput, error) {
	req, out := c.StopQueryRequest(input)
	req.SetContext(ctx)
	req.ApplyOptions(opts...)
	return out, req.Send()
}

const opTagLogGroup = "TagLogGroup"

// TagLogGroupRequest generates a "aws/request.Request" representing the
// client's request for the TagLogGroup operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// 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 TagLogGroup for more information on using the TagLogGroup
// 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 TagLogGroupRequest method.
//	req, resp := client.TagLogGroupRequest(params)
//
//	err := req.Send()
//	if err == nil { // resp is now filled
//	    fmt.Println(resp)
//	}
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/TagLogGroup
//
// Deprecated: Please use the generic tagging API TagResource
func (c *CloudWatchLogs) TagLogGroupRequest(input *TagLogGroupInput) (req *request.Request, output *TagLogGroupOutput) {
	if c.Client.Config.Logger != nil {
		c.Client.Config.Logger.Log("This operation, TagLogGroup, has been deprecated")
	}
	op := &request.Operation{
		Name:       opTagLogGroup,
		HTTPMethod: "POST",
		HTTPPath:   "/",
	}

	if input == nil {
		input = &TagLogGroupInput{}
	}

	output = &TagLogGroupOutput{}
	req = c.newRequest(op, input, output)
	req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
	return
}

// TagLogGroup API operation for Amazon CloudWatch Logs.
//
// The TagLogGroup operation is on the path to deprecation. We recommend that
// you use TagResource (https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_TagResource.html)
// instead.
//
// Adds or updates the specified tags for the specified log group.
//
// To list the tags for a log group, use ListTagsForResource (https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_ListTagsForResource.html).
// To remove tags, use UntagResource (https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_UntagResource.html).
//
// For more information about tags, see Tag Log Groups in Amazon CloudWatch
// Logs (https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/Working-with-log-groups-and-streams.html#log-group-tagging)
// in the Amazon CloudWatch Logs User Guide.
//
// CloudWatch Logs doesn't support IAM policies that prevent users from assigning
// specified tags to log groups using the aws:Resource/key-name or aws:TagKeys
// condition keys. For more information about using tags to control access,
// see Controlling access to Amazon Web Services resources using tags (https://docs.aws.amazon.com/IAM/latest/UserGuide/access_tags.html).
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon CloudWatch Logs's
// API operation TagLogGroup for usage and error information.
//
// Returned Error Types:
//
//   - ResourceNotFoundException
//     The specified resource does not exist.
//
//   - InvalidParameterException
//     A parameter is specified incorrectly.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/TagLogGroup
//
// Deprecated: Please use the generic tagging API TagResource
func (c *CloudWatchLogs) TagLogGroup(input *TagLogGroupInput) (*TagLogGroupOutput, error) {
	req, out := c.TagLogGroupRequest(input)
	return out, req.Send()
}

// TagLogGroupWithContext is the same as TagLogGroup with the addition of
// the ability to pass a context and additional request options.
//
// See TagLogGroup 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.
//
// Deprecated: Please use the generic tagging API TagResource
func (c *CloudWatchLogs) TagLogGroupWithContext(ctx aws.Context, input *TagLogGroupInput, opts ...request.Option) (*TagLogGroupOutput, error) {
	req, out := c.TagLogGroupRequest(input)
	req.SetContext(ctx)
	req.ApplyOptions(opts...)
	return out, req.Send()
}

const opTagResource = "TagResource"

// TagResourceRequest generates a "aws/request.Request" representing the
// client's request for the TagResource operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// 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 TagResource for more information on using the TagResource
// 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 TagResourceRequest method.
//	req, resp := client.TagResourceRequest(params)
//
//	err := req.Send()
//	if err == nil { // resp is now filled
//	    fmt.Println(resp)
//	}
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/TagResource
func (c *CloudWatchLogs) TagResourceRequest(input *TagResourceInput) (req *request.Request, output *TagResourceOutput) {
	op := &request.Operation{
		Name:       opTagResource,
		HTTPMethod: "POST",
		HTTPPath:   "/",
	}

	if input == nil {
		input = &TagResourceInput{}
	}

	output = &TagResourceOutput{}
	req = c.newRequest(op, input, output)
	req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
	return
}

// TagResource API operation for Amazon CloudWatch Logs.
//
// Assigns one or more tags (key-value pairs) to the specified CloudWatch Logs
// resource. Currently, the only CloudWatch Logs resources that can be tagged
// are log groups and destinations.
//
// Tags can help you organize and categorize your resources. You can also use
// them to scope user permissions by granting a user permission to access or
// change only resources with certain tag values.
//
// Tags don't have any semantic meaning to Amazon Web Services and are interpreted
// strictly as strings of characters.
//
// You can use the TagResource action with a resource that already has tags.
// If you specify a new tag key for the alarm, this tag is appended to the list
// of tags associated with the alarm. If you specify a tag key that is already
// associated with the alarm, the new tag value that you specify replaces the
// previous value for that tag.
//
// You can associate as many as 50 tags with a CloudWatch Logs resource.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon CloudWatch Logs's
// API operation TagResource for usage and error information.
//
// Returned Error Types:
//
//   - InvalidParameterException
//     A parameter is specified incorrectly.
//
//   - ResourceNotFoundException
//     The specified resource does not exist.
//
//   - ServiceUnavailableException
//     The service cannot complete the request.
//
//   - TooManyTagsException
//     A resource can have no more than 50 tags.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/TagResource
func (c *CloudWatchLogs) TagResource(input *TagResourceInput) (*TagResourceOutput, error) {
	req, out := c.TagResourceRequest(input)
	return out, req.Send()
}

// TagResourceWithContext is the same as TagResource with the addition of
// the ability to pass a context and additional request options.
//
// See TagResource 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 *CloudWatchLogs) TagResourceWithContext(ctx aws.Context, input *TagResourceInput, opts ...request.Option) (*TagResourceOutput, error) {
	req, out := c.TagResourceRequest(input)
	req.SetContext(ctx)
	req.ApplyOptions(opts...)
	return out, req.Send()
}

const opTestMetricFilter = "TestMetricFilter"

// TestMetricFilterRequest generates a "aws/request.Request" representing the
// client's request for the TestMetricFilter operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// 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 TestMetricFilter for more information on using the TestMetricFilter
// 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 TestMetricFilterRequest method.
//	req, resp := client.TestMetricFilterRequest(params)
//
//	err := req.Send()
//	if err == nil { // resp is now filled
//	    fmt.Println(resp)
//	}
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/TestMetricFilter
func (c *CloudWatchLogs) TestMetricFilterRequest(input *TestMetricFilterInput) (req *request.Request, output *TestMetricFilterOutput) {
	op := &request.Operation{
		Name:       opTestMetricFilter,
		HTTPMethod: "POST",
		HTTPPath:   "/",
	}

	if input == nil {
		input = &TestMetricFilterInput{}
	}

	output = &TestMetricFilterOutput{}
	req = c.newRequest(op, input, output)
	return
}

// TestMetricFilter API operation for Amazon CloudWatch Logs.
//
// Tests the filter pattern of a metric filter against a sample of log event
// messages. You can use this operation to validate the correctness of a metric
// filter pattern.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon CloudWatch Logs's
// API operation TestMetricFilter for usage and error information.
//
// Returned Error Types:
//
//   - InvalidParameterException
//     A parameter is specified incorrectly.
//
//   - ServiceUnavailableException
//     The service cannot complete the request.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/TestMetricFilter
func (c *CloudWatchLogs) TestMetricFilter(input *TestMetricFilterInput) (*TestMetricFilterOutput, error) {
	req, out := c.TestMetricFilterRequest(input)
	return out, req.Send()
}

// TestMetricFilterWithContext is the same as TestMetricFilter with the addition of
// the ability to pass a context and additional request options.
//
// See TestMetricFilter 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 *CloudWatchLogs) TestMetricFilterWithContext(ctx aws.Context, input *TestMetricFilterInput, opts ...request.Option) (*TestMetricFilterOutput, error) {
	req, out := c.TestMetricFilterRequest(input)
	req.SetContext(ctx)
	req.ApplyOptions(opts...)
	return out, req.Send()
}

const opTestTransformer = "TestTransformer"

// TestTransformerRequest generates a "aws/request.Request" representing the
// client's request for the TestTransformer operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// 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 TestTransformer for more information on using the TestTransformer
// 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 TestTransformerRequest method.
//	req, resp := client.TestTransformerRequest(params)
//
//	err := req.Send()
//	if err == nil { // resp is now filled
//	    fmt.Println(resp)
//	}
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/TestTransformer
func (c *CloudWatchLogs) TestTransformerRequest(input *TestTransformerInput) (req *request.Request, output *TestTransformerOutput) {
	op := &request.Operation{
		Name:       opTestTransformer,
		HTTPMethod: "POST",
		HTTPPath:   "/",
	}

	if input == nil {
		input = &TestTransformerInput{}
	}

	output = &TestTransformerOutput{}
	req = c.newRequest(op, input, output)
	return
}

// TestTransformer API operation for Amazon CloudWatch Logs.
//
// Use this operation to test a log transformer. You enter the transformer configuration
// and a set of log events to test with. The operation responds with an array
// that includes the original log events and the transformed versions.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon CloudWatch Logs's
// API operation TestTransformer for usage and error information.
//
// Returned Error Types:
//
//   - InvalidParameterException
//     A parameter is specified incorrectly.
//
//   - ServiceUnavailableException
//     The service cannot complete the request.
//
//   - InvalidOperationException
//     The operation is not valid on the specified resource.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/TestTransformer
func (c *CloudWatchLogs) TestTransformer(input *TestTransformerInput) (*TestTransformerOutput, error) {
	req, out := c.TestTransformerRequest(input)
	return out, req.Send()
}

// TestTransformerWithContext is the same as TestTransformer with the addition of
// the ability to pass a context and additional request options.
//
// See TestTransformer 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 *CloudWatchLogs) TestTransformerWithContext(ctx aws.Context, input *TestTransformerInput, opts ...request.Option) (*TestTransformerOutput, error) {
	req, out := c.TestTransformerRequest(input)
	req.SetContext(ctx)
	req.ApplyOptions(opts...)
	return out, req.Send()
}

const opUntagLogGroup = "UntagLogGroup"

// UntagLogGroupRequest generates a "aws/request.Request" representing the
// client's request for the UntagLogGroup operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// 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 UntagLogGroup for more information on using the UntagLogGroup
// 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 UntagLogGroupRequest method.
//	req, resp := client.UntagLogGroupRequest(params)
//
//	err := req.Send()
//	if err == nil { // resp is now filled
//	    fmt.Println(resp)
//	}
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/UntagLogGroup
//
// Deprecated: Please use the generic tagging API UntagResource
func (c *CloudWatchLogs) UntagLogGroupRequest(input *UntagLogGroupInput) (req *request.Request, output *UntagLogGroupOutput) {
	if c.Client.Config.Logger != nil {
		c.Client.Config.Logger.Log("This operation, UntagLogGroup, has been deprecated")
	}
	op := &request.Operation{
		Name:       opUntagLogGroup,
		HTTPMethod: "POST",
		HTTPPath:   "/",
	}

	if input == nil {
		input = &UntagLogGroupInput{}
	}

	output = &UntagLogGroupOutput{}
	req = c.newRequest(op, input, output)
	req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
	return
}

// UntagLogGroup API operation for Amazon CloudWatch Logs.
//
// The UntagLogGroup operation is on the path to deprecation. We recommend that
// you use UntagResource (https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_UntagResource.html)
// instead.
//
// Removes the specified tags from the specified log group.
//
// To list the tags for a log group, use ListTagsForResource (https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_ListTagsForResource.html).
// To add tags, use TagResource (https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_TagResource.html).
//
// CloudWatch Logs doesn't support IAM policies that prevent users from assigning
// specified tags to log groups using the aws:Resource/key-name or aws:TagKeys
// condition keys.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon CloudWatch Logs's
// API operation UntagLogGroup for usage and error information.
//
// Returned Error Types:
//   - ResourceNotFoundException
//     The specified resource does not exist.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/UntagLogGroup
//
// Deprecated: Please use the generic tagging API UntagResource
func (c *CloudWatchLogs) UntagLogGroup(input *UntagLogGroupInput) (*UntagLogGroupOutput, error) {
	req, out := c.UntagLogGroupRequest(input)
	return out, req.Send()
}

// UntagLogGroupWithContext is the same as UntagLogGroup with the addition of
// the ability to pass a context and additional request options.
//
// See UntagLogGroup 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.
//
// Deprecated: Please use the generic tagging API UntagResource
func (c *CloudWatchLogs) UntagLogGroupWithContext(ctx aws.Context, input *UntagLogGroupInput, opts ...request.Option) (*UntagLogGroupOutput, error) {
	req, out := c.UntagLogGroupRequest(input)
	req.SetContext(ctx)
	req.ApplyOptions(opts...)
	return out, req.Send()
}

const opUntagResource = "UntagResource"

// UntagResourceRequest generates a "aws/request.Request" representing the
// client's request for the UntagResource operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// 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 UntagResource for more information on using the UntagResource
// 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 UntagResourceRequest method.
//	req, resp := client.UntagResourceRequest(params)
//
//	err := req.Send()
//	if err == nil { // resp is now filled
//	    fmt.Println(resp)
//	}
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/UntagResource
func (c *CloudWatchLogs) UntagResourceRequest(input *UntagResourceInput) (req *request.Request, output *UntagResourceOutput) {
	op := &request.Operation{
		Name:       opUntagResource,
		HTTPMethod: "POST",
		HTTPPath:   "/",
	}

	if input == nil {
		input = &UntagResourceInput{}
	}

	output = &UntagResourceOutput{}
	req = c.newRequest(op, input, output)
	req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
	return
}

// UntagResource API operation for Amazon CloudWatch Logs.
//
// Removes one or more tags from the specified resource.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon CloudWatch Logs's
// API operation UntagResource for usage and error information.
//
// Returned Error Types:
//
//   - InvalidParameterException
//     A parameter is specified incorrectly.
//
//   - ResourceNotFoundException
//     The specified resource does not exist.
//
//   - ServiceUnavailableException
//     The service cannot complete the request.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/UntagResource
func (c *CloudWatchLogs) UntagResource(input *UntagResourceInput) (*UntagResourceOutput, error) {
	req, out := c.UntagResourceRequest(input)
	return out, req.Send()
}

// UntagResourceWithContext is the same as UntagResource with the addition of
// the ability to pass a context and additional request options.
//
// See UntagResource 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 *CloudWatchLogs) UntagResourceWithContext(ctx aws.Context, input *UntagResourceInput, opts ...request.Option) (*UntagResourceOutput, error) {
	req, out := c.UntagResourceRequest(input)
	req.SetContext(ctx)
	req.ApplyOptions(opts...)
	return out, req.Send()
}

const opUpdateAnomaly = "UpdateAnomaly"

// UpdateAnomalyRequest generates a "aws/request.Request" representing the
// client's request for the UpdateAnomaly operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// 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 UpdateAnomaly for more information on using the UpdateAnomaly
// 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 UpdateAnomalyRequest method.
//	req, resp := client.UpdateAnomalyRequest(params)
//
//	err := req.Send()
//	if err == nil { // resp is now filled
//	    fmt.Println(resp)
//	}
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/UpdateAnomaly
func (c *CloudWatchLogs) UpdateAnomalyRequest(input *UpdateAnomalyInput) (req *request.Request, output *UpdateAnomalyOutput) {
	op := &request.Operation{
		Name:       opUpdateAnomaly,
		HTTPMethod: "POST",
		HTTPPath:   "/",
	}

	if input == nil {
		input = &UpdateAnomalyInput{}
	}

	output = &UpdateAnomalyOutput{}
	req = c.newRequest(op, input, output)
	req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
	return
}

// UpdateAnomaly API operation for Amazon CloudWatch Logs.
//
// Use this operation to suppress anomaly detection for a specified anomaly
// or pattern. If you suppress an anomaly, CloudWatch Logs won't report new
// occurrences of that anomaly and won't update that anomaly with new data.
// If you suppress a pattern, CloudWatch Logs won't report any anomalies related
// to that pattern.
//
// You must specify either anomalyId or patternId, but you can't specify both
// parameters in the same operation.
//
// If you have previously used this operation to suppress detection of a pattern
// or anomaly, you can use it again to cause CloudWatch Logs to end the suppression.
// To do this, use this operation and specify the anomaly or pattern to stop
// suppressing, and omit the suppressionType and suppressionPeriod parameters.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon CloudWatch Logs's
// API operation UpdateAnomaly for usage and error information.
//
// Returned Error Types:
//
//   - InvalidParameterException
//     A parameter is specified incorrectly.
//
//   - ResourceNotFoundException
//     The specified resource does not exist.
//
//   - ServiceUnavailableException
//     The service cannot complete the request.
//
//   - OperationAbortedException
//     Multiple concurrent requests to update the same resource were in conflict.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/UpdateAnomaly
func (c *CloudWatchLogs) UpdateAnomaly(input *UpdateAnomalyInput) (*UpdateAnomalyOutput, error) {
	req, out := c.UpdateAnomalyRequest(input)
	return out, req.Send()
}

// UpdateAnomalyWithContext is the same as UpdateAnomaly with the addition of
// the ability to pass a context and additional request options.
//
// See UpdateAnomaly 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 *CloudWatchLogs) UpdateAnomalyWithContext(ctx aws.Context, input *UpdateAnomalyInput, opts ...request.Option) (*UpdateAnomalyOutput, error) {
	req, out := c.UpdateAnomalyRequest(input)
	req.SetContext(ctx)
	req.ApplyOptions(opts...)
	return out, req.Send()
}

const opUpdateDeliveryConfiguration = "UpdateDeliveryConfiguration"

// UpdateDeliveryConfigurationRequest generates a "aws/request.Request" representing the
// client's request for the UpdateDeliveryConfiguration operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// 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 UpdateDeliveryConfiguration for more information on using the UpdateDeliveryConfiguration
// 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 UpdateDeliveryConfigurationRequest method.
//	req, resp := client.UpdateDeliveryConfigurationRequest(params)
//
//	err := req.Send()
//	if err == nil { // resp is now filled
//	    fmt.Println(resp)
//	}
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/UpdateDeliveryConfiguration
func (c *CloudWatchLogs) UpdateDeliveryConfigurationRequest(input *UpdateDeliveryConfigurationInput) (req *request.Request, output *UpdateDeliveryConfigurationOutput) {
	op := &request.Operation{
		Name:       opUpdateDeliveryConfiguration,
		HTTPMethod: "POST",
		HTTPPath:   "/",
	}

	if input == nil {
		input = &UpdateDeliveryConfigurationInput{}
	}

	output = &UpdateDeliveryConfigurationOutput{}
	req = c.newRequest(op, input, output)
	req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
	return
}

// UpdateDeliveryConfiguration API operation for Amazon CloudWatch Logs.
//
// Use this operation to update the configuration of a delivery (https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_Delivery.html)
// to change either the S3 path pattern or the format of the delivered logs.
// You can't use this operation to change the source or destination of the delivery.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon CloudWatch Logs's
// API operation UpdateDeliveryConfiguration for usage and error information.
//
// Returned Error Types:
//
//   - ServiceUnavailableException
//     The service cannot complete the request.
//
//   - ConflictException
//     This operation attempted to create a resource that already exists.
//
//   - ResourceNotFoundException
//     The specified resource does not exist.
//
//   - ValidationException
//     One of the parameters for the request is not valid.
//
//   - AccessDeniedException
//     You don't have sufficient permissions to perform this action.
//
//   - ThrottlingException
//     The request was throttled because of quota limits.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/UpdateDeliveryConfiguration
func (c *CloudWatchLogs) UpdateDeliveryConfiguration(input *UpdateDeliveryConfigurationInput) (*UpdateDeliveryConfigurationOutput, error) {
	req, out := c.UpdateDeliveryConfigurationRequest(input)
	return out, req.Send()
}

// UpdateDeliveryConfigurationWithContext is the same as UpdateDeliveryConfiguration with the addition of
// the ability to pass a context and additional request options.
//
// See UpdateDeliveryConfiguration 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 *CloudWatchLogs) UpdateDeliveryConfigurationWithContext(ctx aws.Context, input *UpdateDeliveryConfigurationInput, opts ...request.Option) (*UpdateDeliveryConfigurationOutput, error) {
	req, out := c.UpdateDeliveryConfigurationRequest(input)
	req.SetContext(ctx)
	req.ApplyOptions(opts...)
	return out, req.Send()
}

const opUpdateLogAnomalyDetector = "UpdateLogAnomalyDetector"

// UpdateLogAnomalyDetectorRequest generates a "aws/request.Request" representing the
// client's request for the UpdateLogAnomalyDetector operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// 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 UpdateLogAnomalyDetector for more information on using the UpdateLogAnomalyDetector
// 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 UpdateLogAnomalyDetectorRequest method.
//	req, resp := client.UpdateLogAnomalyDetectorRequest(params)
//
//	err := req.Send()
//	if err == nil { // resp is now filled
//	    fmt.Println(resp)
//	}
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/UpdateLogAnomalyDetector
func (c *CloudWatchLogs) UpdateLogAnomalyDetectorRequest(input *UpdateLogAnomalyDetectorInput) (req *request.Request, output *UpdateLogAnomalyDetectorOutput) {
	op := &request.Operation{
		Name:       opUpdateLogAnomalyDetector,
		HTTPMethod: "POST",
		HTTPPath:   "/",
	}

	if input == nil {
		input = &UpdateLogAnomalyDetectorInput{}
	}

	output = &UpdateLogAnomalyDetectorOutput{}
	req = c.newRequest(op, input, output)
	req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
	return
}

// UpdateLogAnomalyDetector API operation for Amazon CloudWatch Logs.
//
// Updates an existing log anomaly detector.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon CloudWatch Logs's
// API operation UpdateLogAnomalyDetector for usage and error information.
//
// Returned Error Types:
//
//   - InvalidParameterException
//     A parameter is specified incorrectly.
//
//   - ResourceNotFoundException
//     The specified resource does not exist.
//
//   - ServiceUnavailableException
//     The service cannot complete the request.
//
//   - OperationAbortedException
//     Multiple concurrent requests to update the same resource were in conflict.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/UpdateLogAnomalyDetector
func (c *CloudWatchLogs) UpdateLogAnomalyDetector(input *UpdateLogAnomalyDetectorInput) (*UpdateLogAnomalyDetectorOutput, error) {
	req, out := c.UpdateLogAnomalyDetectorRequest(input)
	return out, req.Send()
}

// UpdateLogAnomalyDetectorWithContext is the same as UpdateLogAnomalyDetector with the addition of
// the ability to pass a context and additional request options.
//
// See UpdateLogAnomalyDetector 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 *CloudWatchLogs) UpdateLogAnomalyDetectorWithContext(ctx aws.Context, input *UpdateLogAnomalyDetectorInput, opts ...request.Option) (*UpdateLogAnomalyDetectorOutput, error) {
	req, out := c.UpdateLogAnomalyDetectorRequest(input)
	req.SetContext(ctx)
	req.ApplyOptions(opts...)
	return out, req.Send()
}

// You don't have sufficient permissions to perform this action.
type AccessDeniedException struct {
	_            struct{}                  `type:"structure"`
	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`

	Message_ *string `locationName:"message" type:"string"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s AccessDeniedException) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s AccessDeniedException) GoString() string {
	return s.String()
}

func newErrorAccessDeniedException(v protocol.ResponseMetadata) error {
	return &AccessDeniedException{
		RespMetadata: v,
	}
}

// Code returns the exception type name.
func (s *AccessDeniedException) Code() string {
	return "AccessDeniedException"
}

// Message returns the exception's message.
func (s *AccessDeniedException) Message() string {
	if s.Message_ != nil {
		return *s.Message_
	}
	return ""
}

// OrigErr always returns nil, satisfies awserr.Error interface.
func (s *AccessDeniedException) OrigErr() error {
	return nil
}

func (s *AccessDeniedException) Error() string {
	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}

// Status code returns the HTTP status code for the request's response error.
func (s *AccessDeniedException) StatusCode() int {
	return s.RespMetadata.StatusCode
}

// RequestID returns the service's response RequestID for request.
func (s *AccessDeniedException) RequestID() string {
	return s.RespMetadata.RequestID
}

// A structure that contains information about one CloudWatch Logs account policy.
type AccountPolicy struct {
	_ struct{} `type:"structure"`

	// The Amazon Web Services account ID that the policy applies to.
	AccountId *string `locationName:"accountId" min:"12" type:"string"`

	// The date and time that this policy was most recently updated.
	LastUpdatedTime *int64 `locationName:"lastUpdatedTime" type:"long"`

	// The policy document for this account policy.
	//
	// The JSON specified in policyDocument can be up to 30,720 characters.
	PolicyDocument *string `locationName:"policyDocument" type:"string"`

	// The name of the account policy.
	PolicyName *string `locationName:"policyName" type:"string"`

	// The type of policy for this account policy.
	PolicyType *string `locationName:"policyType" type:"string" enum:"PolicyType"`

	// The scope of the account policy.
	Scope *string `locationName:"scope" type:"string" enum:"Scope"`

	// The log group selection criteria that is used for this policy.
	SelectionCriteria *string `locationName:"selectionCriteria" type:"string"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s AccountPolicy) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s AccountPolicy) GoString() string {
	return s.String()
}

// SetAccountId sets the AccountId field's value.
func (s *AccountPolicy) SetAccountId(v string) *AccountPolicy {
	s.AccountId = &v
	return s
}

// SetLastUpdatedTime sets the LastUpdatedTime field's value.
func (s *AccountPolicy) SetLastUpdatedTime(v int64) *AccountPolicy {
	s.LastUpdatedTime = &v
	return s
}

// SetPolicyDocument sets the PolicyDocument field's value.
func (s *AccountPolicy) SetPolicyDocument(v string) *AccountPolicy {
	s.PolicyDocument = &v
	return s
}

// SetPolicyName sets the PolicyName field's value.
func (s *AccountPolicy) SetPolicyName(v string) *AccountPolicy {
	s.PolicyName = &v
	return s
}

// SetPolicyType sets the PolicyType field's value.
func (s *AccountPolicy) SetPolicyType(v string) *AccountPolicy {
	s.PolicyType = &v
	return s
}

// SetScope sets the Scope field's value.
func (s *AccountPolicy) SetScope(v string) *AccountPolicy {
	s.Scope = &v
	return s
}

// SetSelectionCriteria sets the SelectionCriteria field's value.
func (s *AccountPolicy) SetSelectionCriteria(v string) *AccountPolicy {
	s.SelectionCriteria = &v
	return s
}

// This object defines one key that will be added with the addKeys (https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/CloudWatch-Logs-Transformation.html#CloudWatch-Logs-Transformation-addKey)
// processor.
type AddKeyEntry struct {
	_ struct{} `type:"structure"`

	// The key of the new entry to be added to the log event
	//
	// Key is a required field
	Key *string `locationName:"key" min:"1" type:"string" required:"true"`

	// Specifies whether to overwrite the value if the key already exists in the
	// log event. If you omit this, the default is false.
	OverwriteIfExists *bool `locationName:"overwriteIfExists" type:"boolean"`

	// The value of the new entry to be added to the log event
	//
	// Value is a required field
	Value *string `locationName:"value" min:"1" type:"string" required:"true"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s AddKeyEntry) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s AddKeyEntry) GoString() string {
	return s.String()
}

// Validate inspects the fields of the type to determine if they are valid.
func (s *AddKeyEntry) Validate() error {
	invalidParams := request.ErrInvalidParams{Context: "AddKeyEntry"}
	if s.Key == nil {
		invalidParams.Add(request.NewErrParamRequired("Key"))
	}
	if s.Key != nil && len(*s.Key) < 1 {
		invalidParams.Add(request.NewErrParamMinLen("Key", 1))
	}
	if s.Value == nil {
		invalidParams.Add(request.NewErrParamRequired("Value"))
	}
	if s.Value != nil && len(*s.Value) < 1 {
		invalidParams.Add(request.NewErrParamMinLen("Value", 1))
	}

	if invalidParams.Len() > 0 {
		return invalidParams
	}
	return nil
}

// SetKey sets the Key field's value.
func (s *AddKeyEntry) SetKey(v string) *AddKeyEntry {
	s.Key = &v
	return s
}

// SetOverwriteIfExists sets the OverwriteIfExists field's value.
func (s *AddKeyEntry) SetOverwriteIfExists(v bool) *AddKeyEntry {
	s.OverwriteIfExists = &v
	return s
}

// SetValue sets the Value field's value.
func (s *AddKeyEntry) SetValue(v string) *AddKeyEntry {
	s.Value = &v
	return s
}

// This processor adds new key-value pairs to the log event.
//
// For more information about this processor including examples, see addKeys
// (https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/CloudWatch-Logs-Transformation.html#CloudWatch-Logs-Transformation-addKeys)
// in the CloudWatch Logs User Guide.
type AddKeys struct {
	_ struct{} `type:"structure"`

	// An array of objects, where each object contains the information about one
	// key to add to the log event.
	//
	// Entries is a required field
	Entries []*AddKeyEntry `locationName:"entries" min:"1" type:"list" required:"true"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s AddKeys) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s AddKeys) GoString() string {
	return s.String()
}

// Validate inspects the fields of the type to determine if they are valid.
func (s *AddKeys) Validate() error {
	invalidParams := request.ErrInvalidParams{Context: "AddKeys"}
	if s.Entries == nil {
		invalidParams.Add(request.NewErrParamRequired("Entries"))
	}
	if s.Entries != nil && len(s.Entries) < 1 {
		invalidParams.Add(request.NewErrParamMinLen("Entries", 1))
	}
	if s.Entries != nil {
		for i, v := range s.Entries {
			if v == nil {
				continue
			}
			if err := v.Validate(); err != nil {
				invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Entries", i), err.(request.ErrInvalidParams))
			}
		}
	}

	if invalidParams.Len() > 0 {
		return invalidParams
	}
	return nil
}

// SetEntries sets the Entries field's value.
func (s *AddKeys) SetEntries(v []*AddKeyEntry) *AddKeys {
	s.Entries = v
	return s
}

// This structure represents one anomaly that has been found by a logs anomaly
// detector.
//
// For more information about patterns and anomalies, see CreateLogAnomalyDetector
// (https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_CreateLogAnomalyDetector.html).
type Anomaly struct {
	_ struct{} `type:"structure"`

	// Specifies whether this anomaly is still ongoing.
	//
	// Active is a required field
	Active *bool `locationName:"active" type:"boolean" required:"true"`

	// The ARN of the anomaly detector that identified this anomaly.
	//
	// AnomalyDetectorArn is a required field
	AnomalyDetectorArn *string `locationName:"anomalyDetectorArn" min:"1" type:"string" required:"true"`

	// The unique ID that CloudWatch Logs assigned to this anomaly.
	//
	// AnomalyId is a required field
	AnomalyId *string `locationName:"anomalyId" min:"36" type:"string" required:"true"`

	// A human-readable description of the anomaly. This description is generated
	// by CloudWatch Logs.
	//
	// Description is a required field
	Description *string `locationName:"description" min:"1" type:"string" required:"true"`

	// The date and time when the anomaly detector first saw this anomaly. It is
	// specified as epoch time, which is the number of seconds since January 1,
	// 1970, 00:00:00 UTC.
	//
	// FirstSeen is a required field
	FirstSeen *int64 `locationName:"firstSeen" type:"long" required:"true"`

	// A map showing times when the anomaly detector ran, and the number of occurrences
	// of this anomaly that were detected at each of those runs. The times are specified
	// in epoch time, which is the number of seconds since January 1, 1970, 00:00:00
	// UTC.
	//
	// Histogram is a required field
	Histogram map[string]*int64 `locationName:"histogram" type:"map" required:"true"`

	// If this anomaly is suppressed, this field is true if the suppression is because
	// the pattern is suppressed. If false, then only this particular anomaly is
	// suppressed.
	IsPatternLevelSuppression *bool `locationName:"isPatternLevelSuppression" type:"boolean"`

	// The date and time when the anomaly detector most recently saw this anomaly.
	// It is specified as epoch time, which is the number of seconds since January
	// 1, 1970, 00:00:00 UTC.
	//
	// LastSeen is a required field
	LastSeen *int64 `locationName:"lastSeen" type:"long" required:"true"`

	// An array of ARNS of the log groups that contained log events considered to
	// be part of this anomaly.
	//
	// LogGroupArnList is a required field
	LogGroupArnList []*string `locationName:"logGroupArnList" type:"list" required:"true"`

	// An array of sample log event messages that are considered to be part of this
	// anomaly.
	//
	// LogSamples is a required field
	LogSamples []*LogEvent `locationName:"logSamples" type:"list" required:"true"`

	// The ID of the pattern used to help identify this anomaly.
	//
	// PatternId is a required field
	PatternId *string `locationName:"patternId" min:"32" type:"string" required:"true"`

	// The pattern used to help identify this anomaly, in regular expression format.
	PatternRegex *string `locationName:"patternRegex" min:"1" type:"string"`

	// The pattern used to help identify this anomaly, in string format.
	//
	// PatternString is a required field
	PatternString *string `locationName:"patternString" min:"1" type:"string" required:"true"`

	// An array of structures where each structure contains information about one
	// token that makes up the pattern.
	//
	// PatternTokens is a required field
	PatternTokens []*PatternToken `locationName:"patternTokens" type:"list" required:"true"`

	// The priority level of this anomaly, as determined by CloudWatch Logs. Priority
	// is computed based on log severity labels such as FATAL and ERROR and the
	// amount of deviation from the baseline. Possible values are HIGH, MEDIUM,
	// and LOW.
	Priority *string `locationName:"priority" min:"1" type:"string"`

	// Indicates the current state of this anomaly. If it is still being treated
	// as an anomaly, the value is Active. If you have suppressed this anomaly by
	// using the UpdateAnomaly (https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_UpdateAnomaly.html)
	// operation, the value is Suppressed. If this behavior is now considered to
	// be normal, the value is Baseline.
	//
	// State is a required field
	State *string `locationName:"state" type:"string" required:"true" enum:"State"`

	// Indicates whether this anomaly is currently suppressed. To suppress an anomaly,
	// use UpdateAnomaly (https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_UpdateAnomaly.html).
	Suppressed *bool `locationName:"suppressed" type:"boolean"`

	// If the anomaly is suppressed, this indicates when it was suppressed.
	SuppressedDate *int64 `locationName:"suppressedDate" type:"long"`

	// If the anomaly is suppressed, this indicates when the suppression will end.
	// If this value is 0, the anomaly was suppressed with no expiration, with the
	// INFINITE value.
	SuppressedUntil *int64 `locationName:"suppressedUntil" type:"long"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s Anomaly) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s Anomaly) GoString() string {
	return s.String()
}

// SetActive sets the Active field's value.
func (s *Anomaly) SetActive(v bool) *Anomaly {
	s.Active = &v
	return s
}

// SetAnomalyDetectorArn sets the AnomalyDetectorArn field's value.
func (s *Anomaly) SetAnomalyDetectorArn(v string) *Anomaly {
	s.AnomalyDetectorArn = &v
	return s
}

// SetAnomalyId sets the AnomalyId field's value.
func (s *Anomaly) SetAnomalyId(v string) *Anomaly {
	s.AnomalyId = &v
	return s
}

// SetDescription sets the Description field's value.
func (s *Anomaly) SetDescription(v string) *Anomaly {
	s.Description = &v
	return s
}

// SetFirstSeen sets the FirstSeen field's value.
func (s *Anomaly) SetFirstSeen(v int64) *Anomaly {
	s.FirstSeen = &v
	return s
}

// SetHistogram sets the Histogram field's value.
func (s *Anomaly) SetHistogram(v map[string]*int64) *Anomaly {
	s.Histogram = v
	return s
}

// SetIsPatternLevelSuppression sets the IsPatternLevelSuppression field's value.
func (s *Anomaly) SetIsPatternLevelSuppression(v bool) *Anomaly {
	s.IsPatternLevelSuppression = &v
	return s
}

// SetLastSeen sets the LastSeen field's value.
func (s *Anomaly) SetLastSeen(v int64) *Anomaly {
	s.LastSeen = &v
	return s
}

// SetLogGroupArnList sets the LogGroupArnList field's value.
func (s *Anomaly) SetLogGroupArnList(v []*string) *Anomaly {
	s.LogGroupArnList = v
	return s
}

// SetLogSamples sets the LogSamples field's value.
func (s *Anomaly) SetLogSamples(v []*LogEvent) *Anomaly {
	s.LogSamples = v
	return s
}

// SetPatternId sets the PatternId field's value.
func (s *Anomaly) SetPatternId(v string) *Anomaly {
	s.PatternId = &v
	return s
}

// SetPatternRegex sets the PatternRegex field's value.
func (s *Anomaly) SetPatternRegex(v string) *Anomaly {
	s.PatternRegex = &v
	return s
}

// SetPatternString sets the PatternString field's value.
func (s *Anomaly) SetPatternString(v string) *Anomaly {
	s.PatternString = &v
	return s
}

// SetPatternTokens sets the PatternTokens field's value.
func (s *Anomaly) SetPatternTokens(v []*PatternToken) *Anomaly {
	s.PatternTokens = v
	return s
}

// SetPriority sets the Priority field's value.
func (s *Anomaly) SetPriority(v string) *Anomaly {
	s.Priority = &v
	return s
}

// SetState sets the State field's value.
func (s *Anomaly) SetState(v string) *Anomaly {
	s.State = &v
	return s
}

// SetSuppressed sets the Suppressed field's value.
func (s *Anomaly) SetSuppressed(v bool) *Anomaly {
	s.Suppressed = &v
	return s
}

// SetSuppressedDate sets the SuppressedDate field's value.
func (s *Anomaly) SetSuppressedDate(v int64) *Anomaly {
	s.SuppressedDate = &v
	return s
}

// SetSuppressedUntil sets the SuppressedUntil field's value.
func (s *Anomaly) SetSuppressedUntil(v int64) *Anomaly {
	s.SuppressedUntil = &v
	return s
}

// Contains information about one anomaly detector in the account.
type AnomalyDetector struct {
	_ struct{} `type:"structure"`

	// The ARN of the anomaly detector.
	AnomalyDetectorArn *string `locationName:"anomalyDetectorArn" min:"1" type:"string"`

	// Specifies the current status of the anomaly detector. To pause an anomaly
	// detector, use the enabled parameter in the UpdateLogAnomalyDetector (https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_UpdateLogAnomalyDetector.html)
	// operation.
	AnomalyDetectorStatus *string `locationName:"anomalyDetectorStatus" type:"string" enum:"AnomalyDetectorStatus"`

	// The number of days used as the life cycle of anomalies. After this time,
	// anomalies are automatically baselined and the anomaly detector model will
	// treat new occurrences of similar event as normal.
	AnomalyVisibilityTime *int64 `locationName:"anomalyVisibilityTime" min:"7" type:"long"`

	// The date and time when this anomaly detector was created.
	CreationTimeStamp *int64 `locationName:"creationTimeStamp" type:"long"`

	// The name of the anomaly detector.
	DetectorName *string `locationName:"detectorName" min:"1" type:"string"`

	// Specifies how often the anomaly detector runs and look for anomalies.
	EvaluationFrequency *string `locationName:"evaluationFrequency" type:"string" enum:"EvaluationFrequency"`

	// A symbolic description of how CloudWatch Logs should interpret the data in
	// each log event. For example, a log event can contain timestamps, IP addresses,
	// strings, and so on. You use the filter pattern to specify what to look for
	// in the log event message.
	FilterPattern *string `locationName:"filterPattern" type:"string"`

	// The ARN of the KMS key assigned to this anomaly detector, if any.
	KmsKeyId *string `locationName:"kmsKeyId" type:"string"`

	// The date and time when this anomaly detector was most recently modified.
	LastModifiedTimeStamp *int64 `locationName:"lastModifiedTimeStamp" type:"long"`

	// A list of the ARNs of the log groups that this anomaly detector watches.
	LogGroupArnList []*string `locationName:"logGroupArnList" type:"list"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s AnomalyDetector) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s AnomalyDetector) GoString() string {
	return s.String()
}

// SetAnomalyDetectorArn sets the AnomalyDetectorArn field's value.
func (s *AnomalyDetector) SetAnomalyDetectorArn(v string) *AnomalyDetector {
	s.AnomalyDetectorArn = &v
	return s
}

// SetAnomalyDetectorStatus sets the AnomalyDetectorStatus field's value.
func (s *AnomalyDetector) SetAnomalyDetectorStatus(v string) *AnomalyDetector {
	s.AnomalyDetectorStatus = &v
	return s
}

// SetAnomalyVisibilityTime sets the AnomalyVisibilityTime field's value.
func (s *AnomalyDetector) SetAnomalyVisibilityTime(v int64) *AnomalyDetector {
	s.AnomalyVisibilityTime = &v
	return s
}

// SetCreationTimeStamp sets the CreationTimeStamp field's value.
func (s *AnomalyDetector) SetCreationTimeStamp(v int64) *AnomalyDetector {
	s.CreationTimeStamp = &v
	return s
}

// SetDetectorName sets the DetectorName field's value.
func (s *AnomalyDetector) SetDetectorName(v string) *AnomalyDetector {
	s.DetectorName = &v
	return s
}

// SetEvaluationFrequency sets the EvaluationFrequency field's value.
func (s *AnomalyDetector) SetEvaluationFrequency(v string) *AnomalyDetector {
	s.EvaluationFrequency = &v
	return s
}

// SetFilterPattern sets the FilterPattern field's value.
func (s *AnomalyDetector) SetFilterPattern(v string) *AnomalyDetector {
	s.FilterPattern = &v
	return s
}

// SetKmsKeyId sets the KmsKeyId field's value.
func (s *AnomalyDetector) SetKmsKeyId(v string) *AnomalyDetector {
	s.KmsKeyId = &v
	return s
}

// SetLastModifiedTimeStamp sets the LastModifiedTimeStamp field's value.
func (s *AnomalyDetector) SetLastModifiedTimeStamp(v int64) *AnomalyDetector {
	s.LastModifiedTimeStamp = &v
	return s
}

// SetLogGroupArnList sets the LogGroupArnList field's value.
func (s *AnomalyDetector) SetLogGroupArnList(v []*string) *AnomalyDetector {
	s.LogGroupArnList = v
	return s
}

type AssociateKmsKeyInput struct {
	_ struct{} `type:"structure"`

	// The Amazon Resource Name (ARN) of the KMS key to use when encrypting log
	// data. This must be a symmetric KMS key. For more information, see Amazon
	// Resource Names (https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html#arn-syntax-kms)
	// and Using Symmetric and Asymmetric Keys (https://docs.aws.amazon.com/kms/latest/developerguide/symmetric-asymmetric.html).
	//
	// KmsKeyId is a required field
	KmsKeyId *string `locationName:"kmsKeyId" type:"string" required:"true"`

	// The name of the log group.
	//
	// In your AssociateKmsKey operation, you must specify either the resourceIdentifier
	// parameter or the logGroup parameter, but you can't specify both.
	LogGroupName *string `locationName:"logGroupName" min:"1" type:"string"`

	// Specifies the target for this operation. You must specify one of the following:
	//
	//    * Specify the following ARN to have future GetQueryResults (https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_GetQueryResults.html)
	//    operations in this account encrypt the results with the specified KMS
	//    key. Replace REGION and ACCOUNT_ID with your Region and account ID. arn:aws:logs:REGION:ACCOUNT_ID:query-result:*
	//
	//    * Specify the ARN of a log group to have CloudWatch Logs use the KMS key
	//    to encrypt log events that are ingested and stored by that log group.
	//    The log group ARN must be in the following format. Replace REGION and
	//    ACCOUNT_ID with your Region and account ID. arn:aws:logs:REGION:ACCOUNT_ID:log-group:LOG_GROUP_NAME
	//
	// In your AssociateKmsKey operation, you must specify either the resourceIdentifier
	// parameter or the logGroup parameter, but you can't specify both.
	ResourceIdentifier *string `locationName:"resourceIdentifier" min:"1" type:"string"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s AssociateKmsKeyInput) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s AssociateKmsKeyInput) GoString() string {
	return s.String()
}

// Validate inspects the fields of the type to determine if they are valid.
func (s *AssociateKmsKeyInput) Validate() error {
	invalidParams := request.ErrInvalidParams{Context: "AssociateKmsKeyInput"}
	if s.KmsKeyId == nil {
		invalidParams.Add(request.NewErrParamRequired("KmsKeyId"))
	}
	if s.LogGroupName != nil && len(*s.LogGroupName) < 1 {
		invalidParams.Add(request.NewErrParamMinLen("LogGroupName", 1))
	}
	if s.ResourceIdentifier != nil && len(*s.ResourceIdentifier) < 1 {
		invalidParams.Add(request.NewErrParamMinLen("ResourceIdentifier", 1))
	}

	if invalidParams.Len() > 0 {
		return invalidParams
	}
	return nil
}

// SetKmsKeyId sets the KmsKeyId field's value.
func (s *AssociateKmsKeyInput) SetKmsKeyId(v string) *AssociateKmsKeyInput {
	s.KmsKeyId = &v
	return s
}

// SetLogGroupName sets the LogGroupName field's value.
func (s *AssociateKmsKeyInput) SetLogGroupName(v string) *AssociateKmsKeyInput {
	s.LogGroupName = &v
	return s
}

// SetResourceIdentifier sets the ResourceIdentifier field's value.
func (s *AssociateKmsKeyInput) SetResourceIdentifier(v string) *AssociateKmsKeyInput {
	s.ResourceIdentifier = &v
	return s
}

type AssociateKmsKeyOutput struct {
	_ struct{} `type:"structure"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s AssociateKmsKeyOutput) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s AssociateKmsKeyOutput) GoString() string {
	return s.String()
}

// The CSV processor parses comma-separated values (CSV) from the log events
// into columns.
//
// For more information about this processor including examples, see csv (https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/CloudWatch-Logs-Transformation.html#CloudWatch-Logs-Transformation-csv)
// in the CloudWatch Logs User Guide.
type CSV struct {
	_ struct{} `type:"structure"`

	// An array of names to use for the columns in the transformed log event.
	//
	// If you omit this, default column names ([column_1, column_2 ...]) are used.
	Columns []*string `locationName:"columns" type:"list"`

	// The character used to separate each column in the original comma-separated
	// value log event. If you omit this, the processor looks for the comma , character
	// as the delimiter.
	Delimiter *string `locationName:"delimiter" min:"1" type:"string"`

	// The character used used as a text qualifier for a single column of data.
	// If you omit this, the double quotation mark " character is used.
	QuoteCharacter *string `locationName:"quoteCharacter" min:"1" type:"string"`

	// The path to the field in the log event that has the comma separated values
	// to be parsed. If you omit this value, the whole log message is processed.
	Source *string `locationName:"source" min:"1" type:"string"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s CSV) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s CSV) GoString() string {
	return s.String()
}

// Validate inspects the fields of the type to determine if they are valid.
func (s *CSV) Validate() error {
	invalidParams := request.ErrInvalidParams{Context: "CSV"}
	if s.Delimiter != nil && len(*s.Delimiter) < 1 {
		invalidParams.Add(request.NewErrParamMinLen("Delimiter", 1))
	}
	if s.QuoteCharacter != nil && len(*s.QuoteCharacter) < 1 {
		invalidParams.Add(request.NewErrParamMinLen("QuoteCharacter", 1))
	}
	if s.Source != nil && len(*s.Source) < 1 {
		invalidParams.Add(request.NewErrParamMinLen("Source", 1))
	}

	if invalidParams.Len() > 0 {
		return invalidParams
	}
	return nil
}

// SetColumns sets the Columns field's value.
func (s *CSV) SetColumns(v []*string) *CSV {
	s.Columns = v
	return s
}

// SetDelimiter sets the Delimiter field's value.
func (s *CSV) SetDelimiter(v string) *CSV {
	s.Delimiter = &v
	return s
}

// SetQuoteCharacter sets the QuoteCharacter field's value.
func (s *CSV) SetQuoteCharacter(v string) *CSV {
	s.QuoteCharacter = &v
	return s
}

// SetSource sets the Source field's value.
func (s *CSV) SetSource(v string) *CSV {
	s.Source = &v
	return s
}

type CancelExportTaskInput struct {
	_ struct{} `type:"structure"`

	// The ID of the export task.
	//
	// TaskId is a required field
	TaskId *string `locationName:"taskId" min:"1" type:"string" required:"true"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s CancelExportTaskInput) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s CancelExportTaskInput) GoString() string {
	return s.String()
}

// Validate inspects the fields of the type to determine if they are valid.
func (s *CancelExportTaskInput) Validate() error {
	invalidParams := request.ErrInvalidParams{Context: "CancelExportTaskInput"}
	if s.TaskId == nil {
		invalidParams.Add(request.NewErrParamRequired("TaskId"))
	}
	if s.TaskId != nil && len(*s.TaskId) < 1 {
		invalidParams.Add(request.NewErrParamMinLen("TaskId", 1))
	}

	if invalidParams.Len() > 0 {
		return invalidParams
	}
	return nil
}

// SetTaskId sets the TaskId field's value.
func (s *CancelExportTaskInput) SetTaskId(v string) *CancelExportTaskInput {
	s.TaskId = &v
	return s
}

type CancelExportTaskOutput struct {
	_ struct{} `type:"structure"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s CancelExportTaskOutput) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s CancelExportTaskOutput) GoString() string {
	return s.String()
}

// A structure containing information about the deafult settings and available
// settings that you can use to configure a delivery (https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_Delivery.html)
// or a delivery destination (https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_DeliveryDestination.html).
type ConfigurationTemplate struct {
	_ struct{} `type:"structure"`

	// The action permissions that a caller needs to have to be able to successfully
	// create a delivery source on the desired resource type when calling PutDeliverySource
	// (https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_PutDeliverySource.html).
	AllowedActionForAllowVendedLogsDeliveryForResource *string `locationName:"allowedActionForAllowVendedLogsDeliveryForResource" type:"string"`

	// The valid values that a caller can use as field delimiters when calling CreateDelivery
	// (https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_CreateDelivery.html)
	// or UpdateDeliveryConfiguration (https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_UpdateDeliveryConfiguration.html)
	// on a delivery that delivers in Plain, W3C, or Raw format.
	AllowedFieldDelimiters []*string `locationName:"allowedFieldDelimiters" type:"list"`

	// The allowed fields that a caller can use in the recordFields parameter of
	// a CreateDelivery (https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_CreateDelivery.html)
	// or UpdateDeliveryConfiguration (https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_UpdateDeliveryConfiguration.html)
	// operation.
	AllowedFields []*RecordField `locationName:"allowedFields" type:"list"`

	// The list of delivery destination output formats that are supported by this
	// log source.
	AllowedOutputFormats []*string `locationName:"allowedOutputFormats" type:"list" enum:"OutputFormat"`

	// The list of variable fields that can be used in the suffix path of a delivery
	// that delivers to an S3 bucket.
	AllowedSuffixPathFields []*string `locationName:"allowedSuffixPathFields" type:"list"`

	// A mapping that displays the default value of each property within a delivery's
	// configuration, if it is not specified in the request.
	DefaultDeliveryConfigValues *ConfigurationTemplateDeliveryConfigValues `locationName:"defaultDeliveryConfigValues" type:"structure"`

	// A string specifying which destination type this configuration template applies
	// to.
	DeliveryDestinationType *string `locationName:"deliveryDestinationType" type:"string" enum:"DeliveryDestinationType"`

	// A string specifying which log type this configuration template applies to.
	LogType *string `locationName:"logType" min:"1" type:"string"`

	// A string specifying which resource type this configuration template applies
	// to.
	ResourceType *string `locationName:"resourceType" min:"1" type:"string"`

	// A string specifying which service this configuration template applies to.
	// For more information about supported services see Enable logging from Amazon
	// Web Services services. (https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/AWS-logs-and-resource-policy.html).
	Service *string `locationName:"service" min:"1" type:"string"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s ConfigurationTemplate) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s ConfigurationTemplate) GoString() string {
	return s.String()
}

// SetAllowedActionForAllowVendedLogsDeliveryForResource sets the AllowedActionForAllowVendedLogsDeliveryForResource field's value.
func (s *ConfigurationTemplate) SetAllowedActionForAllowVendedLogsDeliveryForResource(v string) *ConfigurationTemplate {
	s.AllowedActionForAllowVendedLogsDeliveryForResource = &v
	return s
}

// SetAllowedFieldDelimiters sets the AllowedFieldDelimiters field's value.
func (s *ConfigurationTemplate) SetAllowedFieldDelimiters(v []*string) *ConfigurationTemplate {
	s.AllowedFieldDelimiters = v
	return s
}

// SetAllowedFields sets the AllowedFields field's value.
func (s *ConfigurationTemplate) SetAllowedFields(v []*RecordField) *ConfigurationTemplate {
	s.AllowedFields = v
	return s
}

// SetAllowedOutputFormats sets the AllowedOutputFormats field's value.
func (s *ConfigurationTemplate) SetAllowedOutputFormats(v []*string) *ConfigurationTemplate {
	s.AllowedOutputFormats = v
	return s
}

// SetAllowedSuffixPathFields sets the AllowedSuffixPathFields field's value.
func (s *ConfigurationTemplate) SetAllowedSuffixPathFields(v []*string) *ConfigurationTemplate {
	s.AllowedSuffixPathFields = v
	return s
}

// SetDefaultDeliveryConfigValues sets the DefaultDeliveryConfigValues field's value.
func (s *ConfigurationTemplate) SetDefaultDeliveryConfigValues(v *ConfigurationTemplateDeliveryConfigValues) *ConfigurationTemplate {
	s.DefaultDeliveryConfigValues = v
	return s
}

// SetDeliveryDestinationType sets the DeliveryDestinationType field's value.
func (s *ConfigurationTemplate) SetDeliveryDestinationType(v string) *ConfigurationTemplate {
	s.DeliveryDestinationType = &v
	return s
}

// SetLogType sets the LogType field's value.
func (s *ConfigurationTemplate) SetLogType(v string) *ConfigurationTemplate {
	s.LogType = &v
	return s
}

// SetResourceType sets the ResourceType field's value.
func (s *ConfigurationTemplate) SetResourceType(v string) *ConfigurationTemplate {
	s.ResourceType = &v
	return s
}

// SetService sets the Service field's value.
func (s *ConfigurationTemplate) SetService(v string) *ConfigurationTemplate {
	s.Service = &v
	return s
}

// This structure contains the default values that are used for each configuration
// parameter when you use CreateDelivery (https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_CreateDelivery.html)
// to create a deliver under the current service type, resource type, and log
// type.
type ConfigurationTemplateDeliveryConfigValues struct {
	_ struct{} `type:"structure"`

	// The default field delimiter that is used in a CreateDelivery (https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_CreateDelivery.html)
	// operation when the field delimiter is not specified in that operation. The
	// field delimiter is used only when the final output delivery is in Plain,
	// W3C, or Raw format.
	FieldDelimiter *string `locationName:"fieldDelimiter" type:"string"`

	// The default record fields that will be delivered when a list of record fields
	// is not provided in a CreateDelivery (https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_CreateDelivery.html)
	// operation.
	RecordFields []*string `locationName:"recordFields" type:"list"`

	// The delivery parameters that are used when you create a delivery to a delivery
	// destination that is an S3 Bucket.
	S3DeliveryConfiguration *S3DeliveryConfiguration `locationName:"s3DeliveryConfiguration" type:"structure"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s ConfigurationTemplateDeliveryConfigValues) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s ConfigurationTemplateDeliveryConfigValues) GoString() string {
	return s.String()
}

// SetFieldDelimiter sets the FieldDelimiter field's value.
func (s *ConfigurationTemplateDeliveryConfigValues) SetFieldDelimiter(v string) *ConfigurationTemplateDeliveryConfigValues {
	s.FieldDelimiter = &v
	return s
}

// SetRecordFields sets the RecordFields field's value.
func (s *ConfigurationTemplateDeliveryConfigValues) SetRecordFields(v []*string) *ConfigurationTemplateDeliveryConfigValues {
	s.RecordFields = v
	return s
}

// SetS3DeliveryConfiguration sets the S3DeliveryConfiguration field's value.
func (s *ConfigurationTemplateDeliveryConfigValues) SetS3DeliveryConfiguration(v *S3DeliveryConfiguration) *ConfigurationTemplateDeliveryConfigValues {
	s.S3DeliveryConfiguration = v
	return s
}

// This operation attempted to create a resource that already exists.
type ConflictException struct {
	_            struct{}                  `type:"structure"`
	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`

	Message_ *string `locationName:"message" type:"string"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s ConflictException) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s ConflictException) GoString() string {
	return s.String()
}

func newErrorConflictException(v protocol.ResponseMetadata) error {
	return &ConflictException{
		RespMetadata: v,
	}
}

// Code returns the exception type name.
func (s *ConflictException) Code() string {
	return "ConflictException"
}

// Message returns the exception's message.
func (s *ConflictException) Message() string {
	if s.Message_ != nil {
		return *s.Message_
	}
	return ""
}

// OrigErr always returns nil, satisfies awserr.Error interface.
func (s *ConflictException) OrigErr() error {
	return nil
}

func (s *ConflictException) Error() string {
	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}

// Status code returns the HTTP status code for the request's response error.
func (s *ConflictException) StatusCode() int {
	return s.RespMetadata.StatusCode
}

// RequestID returns the service's response RequestID for request.
func (s *ConflictException) RequestID() string {
	return s.RespMetadata.RequestID
}

// This processor copies values within a log event. You can also use this processor
// to add metadata to log events by copying the values of the following metadata
// keys into the log events: @logGroupName, @logGroupStream, @accountId, @regionName.
//
// For more information about this processor including examples, see copyValue
// (https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/CloudWatch-Logs-Transformation.html#CloudWatch-Logs-Transformation-copyValue)
// in the CloudWatch Logs User Guide.
type CopyValue struct {
	_ struct{} `type:"structure"`

	// An array of CopyValueEntry objects, where each object contains the information
	// about one field value to copy.
	//
	// Entries is a required field
	Entries []*CopyValueEntry `locationName:"entries" min:"1" type:"list" required:"true"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s CopyValue) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s CopyValue) GoString() string {
	return s.String()
}

// Validate inspects the fields of the type to determine if they are valid.
func (s *CopyValue) Validate() error {
	invalidParams := request.ErrInvalidParams{Context: "CopyValue"}
	if s.Entries == nil {
		invalidParams.Add(request.NewErrParamRequired("Entries"))
	}
	if s.Entries != nil && len(s.Entries) < 1 {
		invalidParams.Add(request.NewErrParamMinLen("Entries", 1))
	}
	if s.Entries != nil {
		for i, v := range s.Entries {
			if v == nil {
				continue
			}
			if err := v.Validate(); err != nil {
				invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Entries", i), err.(request.ErrInvalidParams))
			}
		}
	}

	if invalidParams.Len() > 0 {
		return invalidParams
	}
	return nil
}

// SetEntries sets the Entries field's value.
func (s *CopyValue) SetEntries(v []*CopyValueEntry) *CopyValue {
	s.Entries = v
	return s
}

// This object defines one value to be copied with the copyValue (https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/CloudWatch-Logs-Transformation.html#CloudWatch-Logs-Transformation-copoyValue)
// processor.
type CopyValueEntry struct {
	_ struct{} `type:"structure"`

	// Specifies whether to overwrite the value if the destination key already exists.
	// If you omit this, the default is false.
	OverwriteIfExists *bool `locationName:"overwriteIfExists" type:"boolean"`

	// The key to copy.
	//
	// Source is a required field
	Source *string `locationName:"source" min:"1" type:"string" required:"true"`

	// The key of the field to copy the value to.
	//
	// Target is a required field
	Target *string `locationName:"target" min:"1" type:"string" required:"true"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s CopyValueEntry) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s CopyValueEntry) GoString() string {
	return s.String()
}

// Validate inspects the fields of the type to determine if they are valid.
func (s *CopyValueEntry) Validate() error {
	invalidParams := request.ErrInvalidParams{Context: "CopyValueEntry"}
	if s.Source == nil {
		invalidParams.Add(request.NewErrParamRequired("Source"))
	}
	if s.Source != nil && len(*s.Source) < 1 {
		invalidParams.Add(request.NewErrParamMinLen("Source", 1))
	}
	if s.Target == nil {
		invalidParams.Add(request.NewErrParamRequired("Target"))
	}
	if s.Target != nil && len(*s.Target) < 1 {
		invalidParams.Add(request.NewErrParamMinLen("Target", 1))
	}

	if invalidParams.Len() > 0 {
		return invalidParams
	}
	return nil
}

// SetOverwriteIfExists sets the OverwriteIfExists field's value.
func (s *CopyValueEntry) SetOverwriteIfExists(v bool) *CopyValueEntry {
	s.OverwriteIfExists = &v
	return s
}

// SetSource sets the Source field's value.
func (s *CopyValueEntry) SetSource(v string) *CopyValueEntry {
	s.Source = &v
	return s
}

// SetTarget sets the Target field's value.
func (s *CopyValueEntry) SetTarget(v string) *CopyValueEntry {
	s.Target = &v
	return s
}

type CreateDeliveryInput struct {
	_ struct{} `type:"structure"`

	// The ARN of the delivery destination to use for this delivery.
	//
	// DeliveryDestinationArn is a required field
	DeliveryDestinationArn *string `locationName:"deliveryDestinationArn" type:"string" required:"true"`

	// The name of the delivery source to use for this delivery.
	//
	// DeliverySourceName is a required field
	DeliverySourceName *string `locationName:"deliverySourceName" min:"1" type:"string" required:"true"`

	// The field delimiter to use between record fields when the final output format
	// of a delivery is in Plain, W3C, or Raw format.
	FieldDelimiter *string `locationName:"fieldDelimiter" type:"string"`

	// The list of record fields to be delivered to the destination, in order. If
	// the delivery's log source has mandatory fields, they must be included in
	// this list.
	RecordFields []*string `locationName:"recordFields" type:"list"`

	// This structure contains parameters that are valid only when the delivery's
	// delivery destination is an S3 bucket.
	S3DeliveryConfiguration *S3DeliveryConfiguration `locationName:"s3DeliveryConfiguration" type:"structure"`

	// An optional list of key-value pairs to associate with the resource.
	//
	// For more information about tagging, see Tagging Amazon Web Services resources
	// (https://docs.aws.amazon.com/general/latest/gr/aws_tagging.html)
	Tags map[string]*string `locationName:"tags" min:"1" type:"map"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s CreateDeliveryInput) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s CreateDeliveryInput) GoString() string {
	return s.String()
}

// Validate inspects the fields of the type to determine if they are valid.
func (s *CreateDeliveryInput) Validate() error {
	invalidParams := request.ErrInvalidParams{Context: "CreateDeliveryInput"}
	if s.DeliveryDestinationArn == nil {
		invalidParams.Add(request.NewErrParamRequired("DeliveryDestinationArn"))
	}
	if s.DeliverySourceName == nil {
		invalidParams.Add(request.NewErrParamRequired("DeliverySourceName"))
	}
	if s.DeliverySourceName != nil && len(*s.DeliverySourceName) < 1 {
		invalidParams.Add(request.NewErrParamMinLen("DeliverySourceName", 1))
	}
	if s.Tags != nil && len(s.Tags) < 1 {
		invalidParams.Add(request.NewErrParamMinLen("Tags", 1))
	}
	if s.S3DeliveryConfiguration != nil {
		if err := s.S3DeliveryConfiguration.Validate(); err != nil {
			invalidParams.AddNested("S3DeliveryConfiguration", err.(request.ErrInvalidParams))
		}
	}

	if invalidParams.Len() > 0 {
		return invalidParams
	}
	return nil
}

// SetDeliveryDestinationArn sets the DeliveryDestinationArn field's value.
func (s *CreateDeliveryInput) SetDeliveryDestinationArn(v string) *CreateDeliveryInput {
	s.DeliveryDestinationArn = &v
	return s
}

// SetDeliverySourceName sets the DeliverySourceName field's value.
func (s *CreateDeliveryInput) SetDeliverySourceName(v string) *CreateDeliveryInput {
	s.DeliverySourceName = &v
	return s
}

// SetFieldDelimiter sets the FieldDelimiter field's value.
func (s *CreateDeliveryInput) SetFieldDelimiter(v string) *CreateDeliveryInput {
	s.FieldDelimiter = &v
	return s
}

// SetRecordFields sets the RecordFields field's value.
func (s *CreateDeliveryInput) SetRecordFields(v []*string) *CreateDeliveryInput {
	s.RecordFields = v
	return s
}

// SetS3DeliveryConfiguration sets the S3DeliveryConfiguration field's value.
func (s *CreateDeliveryInput) SetS3DeliveryConfiguration(v *S3DeliveryConfiguration) *CreateDeliveryInput {
	s.S3DeliveryConfiguration = v
	return s
}

// SetTags sets the Tags field's value.
func (s *CreateDeliveryInput) SetTags(v map[string]*string) *CreateDeliveryInput {
	s.Tags = v
	return s
}

type CreateDeliveryOutput struct {
	_ struct{} `type:"structure"`

	// A structure that contains information about the delivery that you just created.
	Delivery *Delivery `locationName:"delivery" type:"structure"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s CreateDeliveryOutput) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s CreateDeliveryOutput) GoString() string {
	return s.String()
}

// SetDelivery sets the Delivery field's value.
func (s *CreateDeliveryOutput) SetDelivery(v *Delivery) *CreateDeliveryOutput {
	s.Delivery = v
	return s
}

type CreateExportTaskInput struct {
	_ struct{} `type:"structure"`

	// The name of S3 bucket for the exported log data. The bucket must be in the
	// same Amazon Web Services Region.
	//
	// Destination is a required field
	Destination *string `locationName:"destination" min:"1" type:"string" required:"true"`

	// The prefix used as the start of the key for every object exported. If you
	// don't specify a value, the default is exportedlogs.
	//
	// The length of this parameter must comply with the S3 object key name length
	// limits. The object key name is a sequence of Unicode characters with UTF-8
	// encoding, and can be up to 1,024 bytes.
	DestinationPrefix *string `locationName:"destinationPrefix" type:"string"`

	// The start time of the range for the request, expressed as the number of milliseconds
	// after Jan 1, 1970 00:00:00 UTC. Events with a timestamp earlier than this
	// time are not exported.
	//
	// From is a required field
	From *int64 `locationName:"from" type:"long" required:"true"`

	// The name of the log group.
	//
	// LogGroupName is a required field
	LogGroupName *string `locationName:"logGroupName" min:"1" type:"string" required:"true"`

	// Export only log streams that match the provided prefix. If you don't specify
	// a value, no prefix filter is applied.
	LogStreamNamePrefix *string `locationName:"logStreamNamePrefix" min:"1" type:"string"`

	// The name of the export task.
	TaskName *string `locationName:"taskName" min:"1" type:"string"`

	// The end time of the range for the request, expressed as the number of milliseconds
	// after Jan 1, 1970 00:00:00 UTC. Events with a timestamp later than this time
	// are not exported.
	//
	// You must specify a time that is not earlier than when this log group was
	// created.
	//
	// To is a required field
	To *int64 `locationName:"to" type:"long" required:"true"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s CreateExportTaskInput) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s CreateExportTaskInput) GoString() string {
	return s.String()
}

// Validate inspects the fields of the type to determine if they are valid.
func (s *CreateExportTaskInput) Validate() error {
	invalidParams := request.ErrInvalidParams{Context: "CreateExportTaskInput"}
	if s.Destination == nil {
		invalidParams.Add(request.NewErrParamRequired("Destination"))
	}
	if s.Destination != nil && len(*s.Destination) < 1 {
		invalidParams.Add(request.NewErrParamMinLen("Destination", 1))
	}
	if s.From == nil {
		invalidParams.Add(request.NewErrParamRequired("From"))
	}
	if s.LogGroupName == nil {
		invalidParams.Add(request.NewErrParamRequired("LogGroupName"))
	}
	if s.LogGroupName != nil && len(*s.LogGroupName) < 1 {
		invalidParams.Add(request.NewErrParamMinLen("LogGroupName", 1))
	}
	if s.LogStreamNamePrefix != nil && len(*s.LogStreamNamePrefix) < 1 {
		invalidParams.Add(request.NewErrParamMinLen("LogStreamNamePrefix", 1))
	}
	if s.TaskName != nil && len(*s.TaskName) < 1 {
		invalidParams.Add(request.NewErrParamMinLen("TaskName", 1))
	}
	if s.To == nil {
		invalidParams.Add(request.NewErrParamRequired("To"))
	}

	if invalidParams.Len() > 0 {
		return invalidParams
	}
	return nil
}

// SetDestination sets the Destination field's value.
func (s *CreateExportTaskInput) SetDestination(v string) *CreateExportTaskInput {
	s.Destination = &v
	return s
}

// SetDestinationPrefix sets the DestinationPrefix field's value.
func (s *CreateExportTaskInput) SetDestinationPrefix(v string) *CreateExportTaskInput {
	s.DestinationPrefix = &v
	return s
}

// SetFrom sets the From field's value.
func (s *CreateExportTaskInput) SetFrom(v int64) *CreateExportTaskInput {
	s.From = &v
	return s
}

// SetLogGroupName sets the LogGroupName field's value.
func (s *CreateExportTaskInput) SetLogGroupName(v string) *CreateExportTaskInput {
	s.LogGroupName = &v
	return s
}

// SetLogStreamNamePrefix sets the LogStreamNamePrefix field's value.
func (s *CreateExportTaskInput) SetLogStreamNamePrefix(v string) *CreateExportTaskInput {
	s.LogStreamNamePrefix = &v
	return s
}

// SetTaskName sets the TaskName field's value.
func (s *CreateExportTaskInput) SetTaskName(v string) *CreateExportTaskInput {
	s.TaskName = &v
	return s
}

// SetTo sets the To field's value.
func (s *CreateExportTaskInput) SetTo(v int64) *CreateExportTaskInput {
	s.To = &v
	return s
}

type CreateExportTaskOutput struct {
	_ struct{} `type:"structure"`

	// The ID of the export task.
	TaskId *string `locationName:"taskId" min:"1" type:"string"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s CreateExportTaskOutput) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s CreateExportTaskOutput) GoString() string {
	return s.String()
}

// SetTaskId sets the TaskId field's value.
func (s *CreateExportTaskOutput) SetTaskId(v string) *CreateExportTaskOutput {
	s.TaskId = &v
	return s
}

type CreateLogAnomalyDetectorInput struct {
	_ struct{} `type:"structure"`

	// The number of days to have visibility on an anomaly. After this time period
	// has elapsed for an anomaly, it will be automatically baselined and the anomaly
	// detector will treat new occurrences of a similar anomaly as normal. Therefore,
	// if you do not correct the cause of an anomaly during the time period specified
	// in anomalyVisibilityTime, it will be considered normal going forward and
	// will not be detected as an anomaly.
	AnomalyVisibilityTime *int64 `locationName:"anomalyVisibilityTime" min:"7" type:"long"`

	// A name for this anomaly detector.
	DetectorName *string `locationName:"detectorName" min:"1" type:"string"`

	// Specifies how often the anomaly detector is to run and look for anomalies.
	// Set this value according to the frequency that the log group receives new
	// logs. For example, if the log group receives new log events every 10 minutes,
	// then 15 minutes might be a good setting for evaluationFrequency .
	EvaluationFrequency *string `locationName:"evaluationFrequency" type:"string" enum:"EvaluationFrequency"`

	// You can use this parameter to limit the anomaly detection model to examine
	// only log events that match the pattern you specify here. For more information,
	// see Filter and Pattern Syntax (https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/FilterAndPatternSyntax.html).
	FilterPattern *string `locationName:"filterPattern" type:"string"`

	// Optionally assigns a KMS key to secure this anomaly detector and its findings.
	// If a key is assigned, the anomalies found and the model used by this detector
	// are encrypted at rest with the key. If a key is assigned to an anomaly detector,
	// a user must have permissions for both this key and for the anomaly detector
	// to retrieve information about the anomalies that it finds.
	//
	// Make sure the value provided is a valid KMS key ARN. For more information
	// about using a KMS key and to see the required IAM policy, see Use a KMS key
	// with an anomaly detector (https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/LogsAnomalyDetection-KMS.html).
	KmsKeyId *string `locationName:"kmsKeyId" type:"string"`

	// An array containing the ARN of the log group that this anomaly detector will
	// watch. You can specify only one log group ARN.
	//
	// LogGroupArnList is a required field
	LogGroupArnList []*string `locationName:"logGroupArnList" type:"list" required:"true"`

	// An optional list of key-value pairs to associate with the resource.
	//
	// For more information about tagging, see Tagging Amazon Web Services resources
	// (https://docs.aws.amazon.com/general/latest/gr/aws_tagging.html)
	Tags map[string]*string `locationName:"tags" min:"1" type:"map"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s CreateLogAnomalyDetectorInput) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s CreateLogAnomalyDetectorInput) GoString() string {
	return s.String()
}

// Validate inspects the fields of the type to determine if they are valid.
func (s *CreateLogAnomalyDetectorInput) Validate() error {
	invalidParams := request.ErrInvalidParams{Context: "CreateLogAnomalyDetectorInput"}
	if s.AnomalyVisibilityTime != nil && *s.AnomalyVisibilityTime < 7 {
		invalidParams.Add(request.NewErrParamMinValue("AnomalyVisibilityTime", 7))
	}
	if s.DetectorName != nil && len(*s.DetectorName) < 1 {
		invalidParams.Add(request.NewErrParamMinLen("DetectorName", 1))
	}
	if s.LogGroupArnList == nil {
		invalidParams.Add(request.NewErrParamRequired("LogGroupArnList"))
	}
	if s.Tags != nil && len(s.Tags) < 1 {
		invalidParams.Add(request.NewErrParamMinLen("Tags", 1))
	}

	if invalidParams.Len() > 0 {
		return invalidParams
	}
	return nil
}

// SetAnomalyVisibilityTime sets the AnomalyVisibilityTime field's value.
func (s *CreateLogAnomalyDetectorInput) SetAnomalyVisibilityTime(v int64) *CreateLogAnomalyDetectorInput {
	s.AnomalyVisibilityTime = &v
	return s
}

// SetDetectorName sets the DetectorName field's value.
func (s *CreateLogAnomalyDetectorInput) SetDetectorName(v string) *CreateLogAnomalyDetectorInput {
	s.DetectorName = &v
	return s
}

// SetEvaluationFrequency sets the EvaluationFrequency field's value.
func (s *CreateLogAnomalyDetectorInput) SetEvaluationFrequency(v string) *CreateLogAnomalyDetectorInput {
	s.EvaluationFrequency = &v
	return s
}

// SetFilterPattern sets the FilterPattern field's value.
func (s *CreateLogAnomalyDetectorInput) SetFilterPattern(v string) *CreateLogAnomalyDetectorInput {
	s.FilterPattern = &v
	return s
}

// SetKmsKeyId sets the KmsKeyId field's value.
func (s *CreateLogAnomalyDetectorInput) SetKmsKeyId(v string) *CreateLogAnomalyDetectorInput {
	s.KmsKeyId = &v
	return s
}

// SetLogGroupArnList sets the LogGroupArnList field's value.
func (s *CreateLogAnomalyDetectorInput) SetLogGroupArnList(v []*string) *CreateLogAnomalyDetectorInput {
	s.LogGroupArnList = v
	return s
}

// SetTags sets the Tags field's value.
func (s *CreateLogAnomalyDetectorInput) SetTags(v map[string]*string) *CreateLogAnomalyDetectorInput {
	s.Tags = v
	return s
}

type CreateLogAnomalyDetectorOutput struct {
	_ struct{} `type:"structure"`

	// The ARN of the log anomaly detector that you just created.
	AnomalyDetectorArn *string `locationName:"anomalyDetectorArn" min:"1" type:"string"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s CreateLogAnomalyDetectorOutput) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s CreateLogAnomalyDetectorOutput) GoString() string {
	return s.String()
}

// SetAnomalyDetectorArn sets the AnomalyDetectorArn field's value.
func (s *CreateLogAnomalyDetectorOutput) SetAnomalyDetectorArn(v string) *CreateLogAnomalyDetectorOutput {
	s.AnomalyDetectorArn = &v
	return s
}

type CreateLogGroupInput struct {
	_ struct{} `type:"structure"`

	// The Amazon Resource Name (ARN) of the KMS key to use when encrypting log
	// data. For more information, see Amazon Resource Names (https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html#arn-syntax-kms).
	KmsKeyId *string `locationName:"kmsKeyId" type:"string"`

	// Use this parameter to specify the log group class for this log group. There
	// are three classes:
	//
	//    * The Standard log class supports all CloudWatch Logs features.
	//
	//    * The Infrequent Access log class supports a subset of CloudWatch Logs
	//    features and incurs lower costs.
	//
	//    * Use the Delivery log class only for delivering Lambda logs to store
	//    in Amazon S3 or Amazon Data Firehose. Log events in log groups in the
	//    Delivery class are kept in CloudWatch Logs for only one day. This log
	//    class doesn't offer rich CloudWatch Logs capabilities such as CloudWatch
	//    Logs Insights queries.
	//
	// If you omit this parameter, the default of STANDARD is used.
	//
	// The value of logGroupClass can't be changed after a log group is created.
	//
	// For details about the features supported by each class, see Log classes (https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/CloudWatch_Logs_Log_Classes.html)
	LogGroupClass *string `locationName:"logGroupClass" type:"string" enum:"LogGroupClass"`

	// A name for the log group.
	//
	// LogGroupName is a required field
	LogGroupName *string `locationName:"logGroupName" min:"1" type:"string" required:"true"`

	// The key-value pairs to use for the tags.
	//
	// You can grant users access to certain log groups while preventing them from
	// accessing other log groups. To do so, tag your groups and use IAM policies
	// that refer to those tags. To assign tags when you create a log group, you
	// must have either the logs:TagResource or logs:TagLogGroup permission. For
	// more information about tagging, see Tagging Amazon Web Services resources
	// (https://docs.aws.amazon.com/general/latest/gr/aws_tagging.html). For more
	// information about using tags to control access, see Controlling access to
	// Amazon Web Services resources using tags (https://docs.aws.amazon.com/IAM/latest/UserGuide/access_tags.html).
	Tags map[string]*string `locationName:"tags" min:"1" type:"map"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s CreateLogGroupInput) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s CreateLogGroupInput) GoString() string {
	return s.String()
}

// Validate inspects the fields of the type to determine if they are valid.
func (s *CreateLogGroupInput) Validate() error {
	invalidParams := request.ErrInvalidParams{Context: "CreateLogGroupInput"}
	if s.LogGroupName == nil {
		invalidParams.Add(request.NewErrParamRequired("LogGroupName"))
	}
	if s.LogGroupName != nil && len(*s.LogGroupName) < 1 {
		invalidParams.Add(request.NewErrParamMinLen("LogGroupName", 1))
	}
	if s.Tags != nil && len(s.Tags) < 1 {
		invalidParams.Add(request.NewErrParamMinLen("Tags", 1))
	}

	if invalidParams.Len() > 0 {
		return invalidParams
	}
	return nil
}

// SetKmsKeyId sets the KmsKeyId field's value.
func (s *CreateLogGroupInput) SetKmsKeyId(v string) *CreateLogGroupInput {
	s.KmsKeyId = &v
	return s
}

// SetLogGroupClass sets the LogGroupClass field's value.
func (s *CreateLogGroupInput) SetLogGroupClass(v string) *CreateLogGroupInput {
	s.LogGroupClass = &v
	return s
}

// SetLogGroupName sets the LogGroupName field's value.
func (s *CreateLogGroupInput) SetLogGroupName(v string) *CreateLogGroupInput {
	s.LogGroupName = &v
	return s
}

// SetTags sets the Tags field's value.
func (s *CreateLogGroupInput) SetTags(v map[string]*string) *CreateLogGroupInput {
	s.Tags = v
	return s
}

type CreateLogGroupOutput struct {
	_ struct{} `type:"structure"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s CreateLogGroupOutput) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s CreateLogGroupOutput) GoString() string {
	return s.String()
}

type CreateLogStreamInput struct {
	_ struct{} `type:"structure"`

	// The name of the log group.
	//
	// LogGroupName is a required field
	LogGroupName *string `locationName:"logGroupName" min:"1" type:"string" required:"true"`

	// The name of the log stream.
	//
	// LogStreamName is a required field
	LogStreamName *string `locationName:"logStreamName" min:"1" type:"string" required:"true"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s CreateLogStreamInput) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s CreateLogStreamInput) GoString() string {
	return s.String()
}

// Validate inspects the fields of the type to determine if they are valid.
func (s *CreateLogStreamInput) Validate() error {
	invalidParams := request.ErrInvalidParams{Context: "CreateLogStreamInput"}
	if s.LogGroupName == nil {
		invalidParams.Add(request.NewErrParamRequired("LogGroupName"))
	}
	if s.LogGroupName != nil && len(*s.LogGroupName) < 1 {
		invalidParams.Add(request.NewErrParamMinLen("LogGroupName", 1))
	}
	if s.LogStreamName == nil {
		invalidParams.Add(request.NewErrParamRequired("LogStreamName"))
	}
	if s.LogStreamName != nil && len(*s.LogStreamName) < 1 {
		invalidParams.Add(request.NewErrParamMinLen("LogStreamName", 1))
	}

	if invalidParams.Len() > 0 {
		return invalidParams
	}
	return nil
}

// SetLogGroupName sets the LogGroupName field's value.
func (s *CreateLogStreamInput) SetLogGroupName(v string) *CreateLogStreamInput {
	s.LogGroupName = &v
	return s
}

// SetLogStreamName sets the LogStreamName field's value.
func (s *CreateLogStreamInput) SetLogStreamName(v string) *CreateLogStreamInput {
	s.LogStreamName = &v
	return s
}

type CreateLogStreamOutput struct {
	_ struct{} `type:"structure"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s CreateLogStreamOutput) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s CreateLogStreamOutput) GoString() string {
	return s.String()
}

// The event was already logged.
//
// PutLogEvents actions are now always accepted and never return DataAlreadyAcceptedException
// regardless of whether a given batch of log events has already been accepted.
type DataAlreadyAcceptedException struct {
	_            struct{}                  `type:"structure"`
	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`

	ExpectedSequenceToken *string `locationName:"expectedSequenceToken" min:"1" type:"string"`

	Message_ *string `locationName:"message" type:"string"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s DataAlreadyAcceptedException) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s DataAlreadyAcceptedException) GoString() string {
	return s.String()
}

func newErrorDataAlreadyAcceptedException(v protocol.ResponseMetadata) error {
	return &DataAlreadyAcceptedException{
		RespMetadata: v,
	}
}

// Code returns the exception type name.
func (s *DataAlreadyAcceptedException) Code() string {
	return "DataAlreadyAcceptedException"
}

// Message returns the exception's message.
func (s *DataAlreadyAcceptedException) Message() string {
	if s.Message_ != nil {
		return *s.Message_
	}
	return ""
}

// OrigErr always returns nil, satisfies awserr.Error interface.
func (s *DataAlreadyAcceptedException) OrigErr() error {
	return nil
}

func (s *DataAlreadyAcceptedException) Error() string {
	return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}

// Status code returns the HTTP status code for the request's response error.
func (s *DataAlreadyAcceptedException) StatusCode() int {
	return s.RespMetadata.StatusCode
}

// RequestID returns the service's response RequestID for request.
func (s *DataAlreadyAcceptedException) RequestID() string {
	return s.RespMetadata.RequestID
}

// This processor converts a datetime string into a format that you specify.
//
// For more information about this processor including examples, see datetimeConverter
// (https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/CloudWatch-Logs-Transformation.html#CloudWatch-Logs-Transformation-datetimeConverter)
// in the CloudWatch Logs User Guide.
type DateTimeConverter struct {
	_ struct{} `type:"structure"`

	// The locale of the source field. If you omit this, the default of locale.ROOT
	// is used.
	Locale *string `locationName:"locale" min:"1" type:"string"`

	// A list of patterns to match against the source field.
	//
	// MatchPatterns is a required field
	MatchPatterns []*string `locationName:"matchPatterns" min:"1" type:"list" required:"true"`

	// The key to apply the date conversion to.
	//
	// Source is a required field
	Source *string `locationName:"source" min:"1" type:"string" required:"true"`

	// The time zone of the source field. If you omit this, the default used is
	// the UTC zone.
	SourceTimezone *string `locationName:"sourceTimezone" min:"1" type:"string"`

	// The JSON field to store the result in.
	//
	// Target is a required field
	Target *string `locationName:"target" min:"1" type:"string" required:"true"`

	// The datetime format to use for the converted data in the target field.
	//
	// If you omit this, the default of yyyy-MM-dd'T'HH:mm:ss.SSS'Z is used.
	TargetFormat *string `locationName:"targetFormat" min:"1" type:"string"`

	// The time zone of the target field. If you omit this, the default used is
	// the UTC zone.
	TargetTimezone *string `locationName:"targetTimezone" min:"1" type:"string"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s DateTimeConverter) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s DateTimeConverter) GoString() string {
	return s.String()
}

// Validate inspects the fields of the type to determine if they are valid.
func (s *DateTimeConverter) Validate() error {
	invalidParams := request.ErrInvalidParams{Context: "DateTimeConverter"}
	if s.Locale != nil && len(*s.Locale) < 1 {
		invalidParams.Add(request.NewErrParamMinLen("Locale", 1))
	}
	if s.MatchPatterns == nil {
		invalidParams.Add(request.NewErrParamRequired("MatchPatterns"))
	}
	if s.MatchPatterns != nil && len(s.MatchPatterns) < 1 {
		invalidParams.Add(request.NewErrParamMinLen("MatchPatterns", 1))
	}
	if s.Source == nil {
		invalidParams.Add(request.NewErrParamRequired("Source"))
	}
	if s.Source != nil && len(*s.Source) < 1 {
		invalidParams.Add(request.NewErrParamMinLen("Source", 1))
	}
	if s.SourceTimezone != nil && len(*s.SourceTimezone) < 1 {
		invalidParams.Add(request.NewErrParamMinLen("SourceTimezone", 1))
	}
	if s.Target == nil {
		invalidParams.Add(request.NewErrParamRequired("Target"))
	}
	if s.Target != nil && len(*s.Target) < 1 {
		invalidParams.Add(request.NewErrParamMinLen("Target", 1))
	}
	if s.TargetFormat != nil && len(*s.TargetFormat) < 1 {
		invalidParams.Add(request.NewErrParamMinLen("TargetFormat", 1))
	}
	if s.TargetTimezone != nil && len(*s.TargetTimezone) < 1 {
		invalidParams.Add(request.NewErrParamMinLen("TargetTimezone", 1))
	}

	if invalidParams.Len() > 0 {
		return invalidParams
	}
	return nil
}

// SetLocale sets the Locale field's value.
func (s *DateTimeConverter) SetLocale(v string) *DateTimeConverter {
	s.Locale = &v
	return s
}

// SetMatchPatterns sets the MatchPatterns field's value.
func (s *DateTimeConverter) SetMatchPatterns(v []*string) *DateTimeConverter {
	s.MatchPatterns = v
	return s
}

// SetSource sets the Source field's value.
func (s *DateTimeConverter) SetSource(v string) *DateTimeConverter {
	s.Source = &v
	return s
}

// SetSourceTimezone sets the SourceTimezone field's value.
func (s *DateTimeConverter) SetSourceTimezone(v string) *DateTimeConverter {
	s.SourceTimezone = &v
	return s
}

// SetTarget sets the Target field's value.
func (s *DateTimeConverter) SetTarget(v string) *DateTimeConverter {
	s.Target = &v
	return s
}

// SetTargetFormat sets the TargetFormat field's value.
func (s *DateTimeConverter) SetTargetFormat(v string) *DateTimeConverter {
	s.TargetFormat = &v
	return s
}

// SetTargetTimezone sets the TargetTimezone field's value.
func (s *DateTimeConverter) SetTargetTimezone(v string) *DateTimeConverter {
	s.TargetTimezone = &v
	return s
}

type DeleteAccountPolicyInput struct {
	_ struct{} `type:"structure"`

	// The name of the policy to delete.
	//
	// PolicyName is a required field
	PolicyName *string `locationName:"policyName" type:"string" required:"true"`

	// The type of policy to delete.
	//
	// PolicyType is a required field
	PolicyType *string `locationName:"policyType" type:"string" required:"true" enum:"PolicyType"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s DeleteAccountPolicyInput) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s DeleteAccountPolicyInput) GoString() string {
	return s.String()
}

// Validate inspects the fields of the type to determine if they are valid.
func (s *DeleteAccountPolicyInput) Validate() error {
	invalidParams := request.ErrInvalidParams{Context: "DeleteAccountPolicyInput"}
	if s.PolicyName == nil {
		invalidParams.Add(request.NewErrParamRequired("PolicyName"))
	}
	if s.PolicyType == nil {
		invalidParams.Add(request.NewErrParamRequired("PolicyType"))
	}

	if invalidParams.Len() > 0 {
		return invalidParams
	}
	return nil
}

// SetPolicyName sets the PolicyName field's value.
func (s *DeleteAccountPolicyInput) SetPolicyName(v string) *DeleteAccountPolicyInput {
	s.PolicyName = &v
	return s
}

// SetPolicyType sets the PolicyType field's value.
func (s *DeleteAccountPolicyInput) SetPolicyType(v string) *DeleteAccountPolicyInput {
	s.PolicyType = &v
	return s
}

type DeleteAccountPolicyOutput struct {
	_ struct{} `type:"structure"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s DeleteAccountPolicyOutput) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s DeleteAccountPolicyOutput) GoString() string {
	return s.String()
}

type DeleteDataProtectionPolicyInput struct {
	_ struct{} `type:"structure"`

	// The name or ARN of the log group that you want to delete the data protection
	// policy for.
	//
	// LogGroupIdentifier is a required field
	LogGroupIdentifier *string `locationName:"logGroupIdentifier" min:"1" type:"string" required:"true"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s DeleteDataProtectionPolicyInput) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s DeleteDataProtectionPolicyInput) GoString() string {
	return s.String()
}

// Validate inspects the fields of the type to determine if they are valid.
func (s *DeleteDataProtectionPolicyInput) Validate() error {
	invalidParams := request.ErrInvalidParams{Context: "DeleteDataProtectionPolicyInput"}
	if s.LogGroupIdentifier == nil {
		invalidParams.Add(request.NewErrParamRequired("LogGroupIdentifier"))
	}
	if s.LogGroupIdentifier != nil && len(*s.LogGroupIdentifier) < 1 {
		invalidParams.Add(request.NewErrParamMinLen("LogGroupIdentifier", 1))
	}

	if invalidParams.Len() > 0 {
		return invalidParams
	}
	return nil
}

// SetLogGroupIdentifier sets the LogGroupIdentifier field's value.
func (s *DeleteDataProtectionPolicyInput) SetLogGroupIdentifier(v string) *DeleteDataProtectionPolicyInput {
	s.LogGroupIdentifier = &v
	return s
}

type DeleteDataProtectionPolicyOutput struct {
	_ struct{} `type:"structure"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s DeleteDataProtectionPolicyOutput) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s DeleteDataProtectionPolicyOutput) GoString() string {
	return s.String()
}

type DeleteDeliveryDestinationInput struct {
	_ struct{} `type:"structure"`

	// The name of the delivery destination that you want to delete. You can find
	// a list of delivery destionation names by using the DescribeDeliveryDestinations
	// (https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_DescribeDeliveryDestinations.html)
	// operation.
	//
	// Name is a required field
	Name *string `locationName:"name" min:"1" type:"string" required:"true"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s DeleteDeliveryDestinationInput) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s DeleteDeliveryDestinationInput) GoString() string {
	return s.String()
}

// Validate inspects the fields of the type to determine if they are valid.
func (s *DeleteDeliveryDestinationInput) Validate() error {
	invalidParams := request.ErrInvalidParams{Context: "DeleteDeliveryDestinationInput"}
	if s.Name == nil {
		invalidParams.Add(request.NewErrParamRequired("Name"))
	}
	if s.Name != nil && len(*s.Name) < 1 {
		invalidParams.Add(request.NewErrParamMinLen("Name", 1))
	}

	if invalidParams.Len() > 0 {
		return invalidParams
	}
	return nil
}

// SetName sets the Name field's value.
func (s *DeleteDeliveryDestinationInput) SetName(v string) *DeleteDeliveryDestinationInput {
	s.Name = &v
	return s
}

type DeleteDeliveryDestinationOutput struct {
	_ struct{} `type:"structure"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s DeleteDeliveryDestinationOutput) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s DeleteDeliveryDestinationOutput) GoString() string {
	return s.String()
}

type DeleteDeliveryDestinationPolicyInput struct {
	_ struct{} `type:"structure"`

	// The name of the delivery destination that you want to delete the policy for.
	//
	// DeliveryDestinationName is a required field
	DeliveryDestinationName *string `locationName:"deliveryDestinationName" min:"1" type:"string" required:"true"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s DeleteDeliveryDestinationPolicyInput) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s DeleteDeliveryDestinationPolicyInput) GoString() string {
	return s.String()
}

// Validate inspects the fields of the type to determine if they are valid.
func (s *DeleteDeliveryDestinationPolicyInput) Validate() error {
	invalidParams := request.ErrInvalidParams{Context: "DeleteDeliveryDestinationPolicyInput"}
	if s.DeliveryDestinationName == nil {
		invalidParams.Add(request.NewErrParamRequired("DeliveryDestinationName"))
	}
	if s.DeliveryDestinationName != nil && len(*s.DeliveryDestinationName) < 1 {
		invalidParams.Add(request.NewErrParamMinLen("DeliveryDestinationName", 1))
	}

	if invalidParams.Len() > 0 {
		return invalidParams
	}
	return nil
}

// SetDeliveryDestinationName sets the DeliveryDestinationName field's value.
func (s *DeleteDeliveryDestinationPolicyInput) SetDeliveryDestinationName(v string) *DeleteDeliveryDestinationPolicyInput {
	s.DeliveryDestinationName = &v
	return s
}

type DeleteDeliveryDestinationPolicyOutput struct {
	_ struct{} `type:"structure"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s DeleteDeliveryDestinationPolicyOutput) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s DeleteDeliveryDestinationPolicyOutput) GoString() string {
	return s.String()
}

type DeleteDeliveryInput struct {
	_ struct{} `type:"structure"`

	// The unique ID of the delivery to delete. You can find the ID of a delivery
	// with the DescribeDeliveries (https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_DescribeDeliveries.html)
	// operation.
	//
	// Id is a required field
	Id *string `locationName:"id" min:"1" type:"string" required:"true"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s DeleteDeliveryInput) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s DeleteDeliveryInput) GoString() string {
	return s.String()
}

// Validate inspects the fields of the type to determine if they are valid.
func (s *DeleteDeliveryInput) Validate() error {
	invalidParams := request.ErrInvalidParams{Context: "DeleteDeliveryInput"}
	if s.Id == nil {
		invalidParams.Add(request.NewErrParamRequired("Id"))
	}
	if s.Id != nil && len(*s.Id) < 1 {
		invalidParams.Add(request.NewErrParamMinLen("Id", 1))
	}

	if invalidParams.Len() > 0 {
		return invalidParams
	}
	return nil
}

// SetId sets the Id field's value.
func (s *DeleteDeliveryInput) SetId(v string) *DeleteDeliveryInput {
	s.Id = &v
	return s
}

type DeleteDeliveryOutput struct {
	_ struct{} `type:"structure"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s DeleteDeliveryOutput) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s DeleteDeliveryOutput) GoString() string {
	return s.String()
}

type DeleteDeliverySourceInput struct {
	_ struct{} `type:"structure"`

	// The name of the delivery source that you want to delete.
	//
	// Name is a required field
	Name *string `locationName:"name" min:"1" type:"string" required:"true"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s DeleteDeliverySourceInput) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s DeleteDeliverySourceInput) GoString() string {
	return s.String()
}

// Validate inspects the fields of the type to determine if they are valid.
func (s *DeleteDeliverySourceInput) Validate() error {
	invalidParams := request.ErrInvalidParams{Context: "DeleteDeliverySourceInput"}
	if s.Name == nil {
		invalidParams.Add(request.NewErrParamRequired("Name"))
	}
	if s.Name != nil && len(*s.Name) < 1 {
		invalidParams.Add(request.NewErrParamMinLen("Name", 1))
	}

	if invalidParams.Len() > 0 {
		return invalidParams
	}
	return nil
}

// SetName sets the Name field's value.
func (s *DeleteDeliverySourceInput) SetName(v string) *DeleteDeliverySourceInput {
	s.Name = &v
	return s
}

type DeleteDeliverySourceOutput struct {
	_ struct{} `type:"structure"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s DeleteDeliverySourceOutput) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s DeleteDeliverySourceOutput) GoString() string {
	return s.String()
}

type DeleteDestinationInput struct {
	_ struct{} `type:"structure"`

	// The name of the destination.
	//
	// DestinationName is a required field
	DestinationName *string `locationName:"destinationName" min:"1" type:"string" required:"true"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s DeleteDestinationInput) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s DeleteDestinationInput) GoString() string {
	return s.String()
}

// Validate inspects the fields of the type to determine if they are valid.
func (s *DeleteDestinationInput) Validate() error {
	invalidParams := request.ErrInvalidParams{Context: "DeleteDestinationInput"}
	if s.DestinationName == nil {
		invalidParams.Add(request.NewErrParamRequired("DestinationName"))
	}
	if s.DestinationName != nil && len(*s.DestinationName) < 1 {
		invalidParams.Add(request.NewErrParamMinLen("DestinationName", 1))
	}

	if invalidParams.Len() > 0 {
		return invalidParams
	}
	return nil
}

// SetDestinationName sets the DestinationName field's value.
func (s *DeleteDestinationInput) SetDestinationName(v string) *DeleteDestinationInput {
	s.DestinationName = &v
	return s
}

type DeleteDestinationOutput struct {
	_ struct{} `type:"structure"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s DeleteDestinationOutput) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s DeleteDestinationOutput) GoString() string {
	return s.String()
}

type DeleteIndexPolicyInput struct {
	_ struct{} `type:"structure"`

	// The log group to delete the index policy for. You can specify either the
	// name or the ARN of the log group.
	//
	// LogGroupIdentifier is a required field
	LogGroupIdentifier *string `locationName:"logGroupIdentifier" min:"1" type:"string" required:"true"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s DeleteIndexPolicyInput) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s DeleteIndexPolicyInput) GoString() string {
	return s.String()
}

// Validate inspects the fields of the type to determine if they are valid.
func (s *DeleteIndexPolicyInput) Validate() error {
	invalidParams := request.ErrInvalidParams{Context: "DeleteIndexPolicyInput"}
	if s.LogGroupIdentifier == nil {
		invalidParams.Add(request.NewErrParamRequired("LogGroupIdentifier"))
	}
	if s.LogGroupIdentifier != nil && len(*s.LogGroupIdentifier) < 1 {
		invalidParams.Add(request.NewErrParamMinLen("LogGroupIdentifier", 1))
	}

	if invalidParams.Len() > 0 {
		return invalidParams
	}
	return nil
}

// SetLogGroupIdentifier sets the LogGroupIdentifier field's value.
func (s *DeleteIndexPolicyInput) SetLogGroupIdentifier(v string) *DeleteIndexPolicyInput {
	s.LogGroupIdentifier = &v
	return s
}

type DeleteIndexPolicyOutput struct {
	_ struct{} `type:"structure"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s DeleteIndexPolicyOutput) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s DeleteIndexPolicyOutput) GoString() string {
	return s.String()
}

type DeleteIntegrationInput struct {
	_ struct{} `type:"structure"`

	// Specify true to force the deletion of the integration even if vended logs
	// dashboards currently exist.
	//
	// The default is false.
	Force *bool `locationName:"force" type:"boolean"`

	// The name of the integration to delete. To find the name of your integration,
	// use ListIntegrations (https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_ListIntegrations.html).
	//
	// IntegrationName is a required field
	IntegrationName *string `locationName:"integrationName" min:"1" type:"string" required:"true"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s DeleteIntegrationInput) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s DeleteIntegrationInput) GoString() string {
	return s.String()
}

// Validate inspects the fields of the type to determine if they are valid.
func (s *DeleteIntegrationInput) Validate() error {
	invalidParams := request.ErrInvalidParams{Context: "DeleteIntegrationInput"}
	if s.IntegrationName == nil {
		invalidParams.Add(request.NewErrParamRequired("IntegrationName"))
	}
	if s.IntegrationName != nil && len(*s.IntegrationName) < 1 {
		invalidParams.Add(request.NewErrParamMinLen("IntegrationName", 1))
	}

	if invalidParams.Len() > 0 {
		return invalidParams
	}
	return nil
}

// SetForce sets the Force field's value.
func (s *DeleteIntegrationInput) SetForce(v bool) *DeleteIntegrationInput {
	s.Force = &v
	return s
}

// SetIntegrationName sets the IntegrationName field's value.
func (s *DeleteIntegrationInput) SetIntegrationName(v string) *DeleteIntegrationInput {
	s.IntegrationName = &v
	return s
}

type DeleteIntegrationOutput struct {
	_ struct{} `type:"structure"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s DeleteIntegrationOutput) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s DeleteIntegrationOutput) GoString() string {
	return s.String()
}

// This processor deletes entries from a log event. These entries are key-value
// pairs.
//
// For more information about this processor including examples, see deleteKeys
// (https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/CloudWatch-Logs-Transformation.html#CloudWatch-Logs-Transformation-deleteKeys)
// in the CloudWatch Logs User Guide.
type DeleteKeys struct {
	_ struct{} `type:"structure"`

	// The list of keys to delete.
	//
	// WithKeys is a required field
	WithKeys []*string `locationName:"withKeys" min:"1" type:"list" required:"true"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s DeleteKeys) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s DeleteKeys) GoString() string {
	return s.String()
}

// Validate inspects the fields of the type to determine if they are valid.
func (s *DeleteKeys) Validate() error {
	invalidParams := request.ErrInvalidParams{Context: "DeleteKeys"}
	if s.WithKeys == nil {
		invalidParams.Add(request.NewErrParamRequired("WithKeys"))
	}
	if s.WithKeys != nil && len(s.WithKeys) < 1 {
		invalidParams.Add(request.NewErrParamMinLen("WithKeys", 1))
	}

	if invalidParams.Len() > 0 {
		return invalidParams
	}
	return nil
}

// SetWithKeys sets the WithKeys field's value.
func (s *DeleteKeys) SetWithKeys(v []*string) *DeleteKeys {
	s.WithKeys = v
	return s
}

type DeleteLogAnomalyDetectorInput struct {
	_ struct{} `type:"structure"`

	// The ARN of the anomaly detector to delete. You can find the ARNs of log anomaly
	// detectors in your account by using the ListLogAnomalyDetectors (https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_ListLogAnomalyDetectors.html)
	// operation.
	//
	// AnomalyDetectorArn is a required field
	AnomalyDetectorArn *string `locationName:"anomalyDetectorArn" min:"1" type:"string" required:"true"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s DeleteLogAnomalyDetectorInput) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s DeleteLogAnomalyDetectorInput) GoString() string {
	return s.String()
}

// Validate inspects the fields of the type to determine if they are valid.
func (s *DeleteLogAnomalyDetectorInput) Validate() error {
	invalidParams := request.ErrInvalidParams{Context: "DeleteLogAnomalyDetectorInput"}
	if s.AnomalyDetectorArn == nil {
		invalidParams.Add(request.NewErrParamRequired("AnomalyDetectorArn"))
	}
	if s.AnomalyDetectorArn != nil && len(*s.AnomalyDetectorArn) < 1 {
		invalidParams.Add(request.NewErrParamMinLen("AnomalyDetectorArn", 1))
	}

	if invalidParams.Len() > 0 {
		return invalidParams
	}
	return nil
}

// SetAnomalyDetectorArn sets the AnomalyDetectorArn field's value.
func (s *DeleteLogAnomalyDetectorInput) SetAnomalyDetectorArn(v string) *DeleteLogAnomalyDetectorInput {
	s.AnomalyDetectorArn = &v
	return s
}

type DeleteLogAnomalyDetectorOutput struct {
	_ struct{} `type:"structure"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s DeleteLogAnomalyDetectorOutput) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s DeleteLogAnomalyDetectorOutput) GoString() string {
	return s.String()
}

type DeleteLogGroupInput struct {
	_ struct{} `type:"structure"`

	// The name of the log group.
	//
	// LogGroupName is a required field
	LogGroupName *string `locationName:"logGroupName" min:"1" type:"string" required:"true"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s DeleteLogGroupInput) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s DeleteLogGroupInput) GoString() string {
	return s.String()
}

// Validate inspects the fields of the type to determine if they are valid.
func (s *DeleteLogGroupInput) Validate() error {
	invalidParams := request.ErrInvalidParams{Context: "DeleteLogGroupInput"}
	if s.LogGroupName == nil {
		invalidParams.Add(request.NewErrParamRequired("LogGroupName"))
	}
	if s.LogGroupName != nil && len(*s.LogGroupName) < 1 {
		invalidParams.Add(request.NewErrParamMinLen("LogGroupName", 1))
	}

	if invalidParams.Len() > 0 {
		return invalidParams
	}
	return nil
}

// SetLogGroupName sets the LogGroupName field's value.
func (s *DeleteLogGroupInput) SetLogGroupName(v string) *DeleteLogGroupInput {
	s.LogGroupName = &v
	return s
}

type DeleteLogGroupOutput struct {
	_ struct{} `type:"structure"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s DeleteLogGroupOutput) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s DeleteLogGroupOutput) GoString() string {
	return s.String()
}

type DeleteLogStreamInput struct {
	_ struct{} `type:"structure"`

	// The name of the log group.
	//
	// LogGroupName is a required field
	LogGroupName *string `locationName:"logGroupName" min:"1" type:"string" required:"true"`

	// The name of the log stream.
	//
	// LogStreamName is a required field
	LogStreamName *string `locationName:"logStreamName" min:"1" type:"string" required:"true"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s DeleteLogStreamInput) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s DeleteLogStreamInput) GoString() string {
	return s.String()
}

// Validate inspects the fields of the type to determine if they are valid.
func (s *DeleteLogStreamInput) Validate() error {
	invalidParams := request.ErrInvalidParams{Context: "DeleteLogStreamInput"}
	if s.LogGroupName == nil {
		invalidParams.Add(request.NewErrParamRequired("LogGroupName"))
	}
	if s.LogGroupName != nil && len(*s.LogGroupName) < 1 {
		invalidParams.Add(request.NewErrParamMinLen("LogGroupName", 1))
	}
	if s.LogStreamName == nil {
		invalidParams.Add(request.NewErrParamRequired("LogStreamName"))
	}
	if s.LogStreamName != nil && len(*s.LogStreamName) < 1 {
		invalidParams.Add(request.NewErrParamMinLen("LogStreamName", 1))
	}

	if invalidParams.Len() > 0 {
		return invalidParams
	}
	return nil
}

// SetLogGroupName sets the LogGroupName field's value.
func (s *DeleteLogStreamInput) SetLogGroupName(v string) *DeleteLogStreamInput {
	s.LogGroupName = &v
	return s
}

// SetLogStreamName sets the LogStreamName field's value.
func (s *DeleteLogStreamInput) SetLogStreamName(v string) *DeleteLogStreamInput {
	s.LogStreamName = &v
	return s
}

type DeleteLogStreamOutput struct {
	_ struct{} `type:"structure"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s DeleteLogStreamOutput) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s DeleteLogStreamOutput) GoString() string {
	return s.String()
}

type DeleteMetricFilterInput struct {
	_ struct{} `type:"structure"`

	// The name of the metric filter.
	//
	// FilterName is a required field
	FilterName *string `locationName:"filterName" min:"1" type:"string" required:"true"`

	// The name of the log group.
	//
	// LogGroupName is a required field
	LogGroupName *string `locationName:"logGroupName" min:"1" type:"string" required:"true"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s DeleteMetricFilterInput) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s DeleteMetricFilterInput) GoString() string {
	return s.String()
}

// Validate inspects the fields of the type to determine if they are valid.
func (s *DeleteMetricFilterInput) Validate() error {
	invalidParams := request.ErrInvalidParams{Context: "DeleteMetricFilterInput"}
	if s.FilterName == nil {
		invalidParams.Add(request.NewErrParamRequired("FilterName"))
	}
	if s.FilterName != nil && len(*s.FilterName) < 1 {
		invalidParams.Add(request.NewErrParamMinLen("FilterName", 1))
	}
	if s.LogGroupName == nil {
		invalidParams.Add(request.NewErrParamRequired("LogGroupName"))
	}
	if s.LogGroupName != nil && len(*s.LogGroupName) < 1 {
		invalidParams.Add(request.NewErrParamMinLen("LogGroupName", 1))
	}

	if invalidParams.Len() > 0 {
		return invalidParams
	}
	return nil
}

// SetFilterName sets the FilterName field's value.
func (s *DeleteMetricFilterInput) SetFilterName(v string) *DeleteMetricFilterInput {
	s.FilterName = &v
	return s
}

// SetLogGroupName sets the LogGroupName field's value.
func (s *DeleteMetricFilterInput) SetLogGroupName(v string) *DeleteMetricFilterInput {
	s.LogGroupName = &v
	return s
}

type DeleteMetricFilterOutput struct {
	_ struct{} `type:"structure"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s DeleteMetricFilterOutput) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s DeleteMetricFilterOutput) GoString() string {
	return s.String()
}

type DeleteQueryDefinitionInput struct {
	_ struct{} `type:"structure"`

	// The ID of the query definition that you want to delete. You can use DescribeQueryDefinitions
	// (https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_DescribeQueryDefinitions.html)
	// to retrieve the IDs of your saved query definitions.
	//
	// QueryDefinitionId is a required field
	QueryDefinitionId *string `locationName:"queryDefinitionId" type:"string" required:"true"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s DeleteQueryDefinitionInput) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s DeleteQueryDefinitionInput) GoString() string {
	return s.String()
}

// Validate inspects the fields of the type to determine if they are valid.
func (s *DeleteQueryDefinitionInput) Validate() error {
	invalidParams := request.ErrInvalidParams{Context: "DeleteQueryDefinitionInput"}
	if s.QueryDefinitionId == nil {
		invalidParams.Add(request.NewErrParamRequired("QueryDefinitionId"))
	}

	if invalidParams.Len() > 0 {
		return invalidParams
	}
	return nil
}

// SetQueryDefinitionId sets the QueryDefinitionId field's value.
func (s *DeleteQueryDefinitionInput) SetQueryDefinitionId(v string) *DeleteQueryDefinitionInput {
	s.QueryDefinitionId = &v
	return s
}

type DeleteQueryDefinitionOutput struct {
	_ struct{} `type:"structure"`

	// A value of TRUE indicates that the operation succeeded. FALSE indicates that
	// the operation failed.
	Success *bool `locationName:"success" type:"boolean"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s DeleteQueryDefinitionOutput) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s DeleteQueryDefinitionOutput) GoString() string {
	return s.String()
}

// SetSuccess sets the Success field's value.
func (s *DeleteQueryDefinitionOutput) SetSuccess(v bool) *DeleteQueryDefinitionOutput {
	s.Success = &v
	return s
}

type DeleteResourcePolicyInput struct {
	_ struct{} `type:"structure"`

	// The name of the policy to be revoked. This parameter is required.
	PolicyName *string `locationName:"policyName" type:"string"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s DeleteResourcePolicyInput) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s DeleteResourcePolicyInput) GoString() string {
	return s.String()
}

// SetPolicyName sets the PolicyName field's value.
func (s *DeleteResourcePolicyInput) SetPolicyName(v string) *DeleteResourcePolicyInput {
	s.PolicyName = &v
	return s
}

type DeleteResourcePolicyOutput struct {
	_ struct{} `type:"structure"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s DeleteResourcePolicyOutput) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s DeleteResourcePolicyOutput) GoString() string {
	return s.String()
}

type DeleteRetentionPolicyInput struct {
	_ struct{} `type:"structure"`

	// The name of the log group.
	//
	// LogGroupName is a required field
	LogGroupName *string `locationName:"logGroupName" min:"1" type:"string" required:"true"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s DeleteRetentionPolicyInput) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s DeleteRetentionPolicyInput) GoString() string {
	return s.String()
}

// Validate inspects the fields of the type to determine if they are valid.
func (s *DeleteRetentionPolicyInput) Validate() error {
	invalidParams := request.ErrInvalidParams{Context: "DeleteRetentionPolicyInput"}
	if s.LogGroupName == nil {
		invalidParams.Add(request.NewErrParamRequired("LogGroupName"))
	}
	if s.LogGroupName != nil && len(*s.LogGroupName) < 1 {
		invalidParams.Add(request.NewErrParamMinLen("LogGroupName", 1))
	}

	if invalidParams.Len() > 0 {
		return invalidParams
	}
	return nil
}

// SetLogGroupName sets the LogGroupName field's value.
func (s *DeleteRetentionPolicyInput) SetLogGroupName(v string) *DeleteRetentionPolicyInput {
	s.LogGroupName = &v
	return s
}

type DeleteRetentionPolicyOutput struct {
	_ struct{} `type:"structure"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s DeleteRetentionPolicyOutput) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s DeleteRetentionPolicyOutput) GoString() string {
	return s.String()
}

type DeleteSubscriptionFilterInput struct {
	_ struct{} `type:"structure"`

	// The name of the subscription filter.
	//
	// FilterName is a required field
	FilterName *string `locationName:"filterName" min:"1" type:"string" required:"true"`

	// The name of the log group.
	//
	// LogGroupName is a required field
	LogGroupName *string `locationName:"logGroupName" min:"1" type:"string" required:"true"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s DeleteSubscriptionFilterInput) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s DeleteSubscriptionFilterInput) GoString() string {
	return s.String()
}

// Validate inspects the fields of the type to determine if they are valid.
func (s *DeleteSubscriptionFilterInput) Validate() error {
	invalidParams := request.ErrInvalidParams{Context: "DeleteSubscriptionFilterInput"}
	if s.FilterName == nil {
		invalidParams.Add(request.NewErrParamRequired("FilterName"))
	}
	if s.FilterName != nil && len(*s.FilterName) < 1 {
		invalidParams.Add(request.NewErrParamMinLen("FilterName", 1))
	}
	if s.LogGroupName == nil {
		invalidParams.Add(request.NewErrParamRequired("LogGroupName"))
	}
	if s.LogGroupName != nil && len(*s.LogGroupName) < 1 {
		invalidParams.Add(request.NewErrParamMinLen("LogGroupName", 1))
	}

	if invalidParams.Len() > 0 {
		return invalidParams
	}
	return nil
}

// SetFilterName sets the FilterName field's value.
func (s *DeleteSubscriptionFilterInput) SetFilterName(v string) *DeleteSubscriptionFilterInput {
	s.FilterName = &v
	return s
}

// SetLogGroupName sets the LogGroupName field's value.
func (s *DeleteSubscriptionFilterInput) SetLogGroupName(v string) *DeleteSubscriptionFilterInput {
	s.LogGroupName = &v
	return s
}

type DeleteSubscriptionFilterOutput struct {
	_ struct{} `type:"structure"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s DeleteSubscriptionFilterOutput) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s DeleteSubscriptionFilterOutput) GoString() string {
	return s.String()
}

type DeleteTransformerInput struct {
	_ struct{} `type:"structure"`

	// Specify either the name or ARN of the log group to delete the transformer
	// for. If the log group is in a source account and you are using a monitoring
	// account, you must use the log group ARN.
	//
	// LogGroupIdentifier is a required field
	LogGroupIdentifier *string `locationName:"logGroupIdentifier" min:"1" type:"string" required:"true"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s DeleteTransformerInput) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s DeleteTransformerInput) GoString() string {
	return s.String()
}

// Validate inspects the fields of the type to determine if they are valid.
func (s *DeleteTransformerInput) Validate() error {
	invalidParams := request.ErrInvalidParams{Context: "DeleteTransformerInput"}
	if s.LogGroupIdentifier == nil {
		invalidParams.Add(request.NewErrParamRequired("LogGroupIdentifier"))
	}
	if s.LogGroupIdentifier != nil && len(*s.LogGroupIdentifier) < 1 {
		invalidParams.Add(request.NewErrParamMinLen("LogGroupIdentifier", 1))
	}

	if invalidParams.Len() > 0 {
		return invalidParams
	}
	return nil
}

// SetLogGroupIdentifier sets the LogGroupIdentifier field's value.
func (s *DeleteTransformerInput) SetLogGroupIdentifier(v string) *DeleteTransformerInput {
	s.LogGroupIdentifier = &v
	return s
}

type DeleteTransformerOutput struct {
	_ struct{} `type:"structure"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s DeleteTransformerOutput) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s DeleteTransformerOutput) GoString() string {
	return s.String()
}

// This structure contains information about one delivery in your account.
//
// A delivery is a connection between a logical delivery source and a logical
// delivery destination.
//
// For more information, see CreateDelivery (https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_CreateDelivery.html).
//
// To update an existing delivery configuration, use UpdateDeliveryConfiguration
// (https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_UpdateDeliveryConfiguration.html).
type Delivery struct {
	_ struct{} `type:"structure"`

	// The Amazon Resource Name (ARN) that uniquely identifies this delivery.
	Arn *string `locationName:"arn" type:"string"`

	// The ARN of the delivery destination that is associated with this delivery.
	DeliveryDestinationArn *string `locationName:"deliveryDestinationArn" type:"string"`

	// Displays whether the delivery destination associated with this delivery is
	// CloudWatch Logs, Amazon S3, or Firehose.
	DeliveryDestinationType *string `locationName:"deliveryDestinationType" type:"string" enum:"DeliveryDestinationType"`

	// The name of the delivery source that is associated with this delivery.
	DeliverySourceName *string `locationName:"deliverySourceName" min:"1" type:"string"`

	// The field delimiter that is used between record fields when the final output
	// format of a delivery is in Plain, W3C, or Raw format.
	FieldDelimiter *string `locationName:"fieldDelimiter" type:"string"`

	// The unique ID that identifies this delivery in your account.
	Id *string `locationName:"id" min:"1" type:"string"`

	// The record fields used in this delivery.
	RecordFields []*string `locationName:"recordFields" type:"list"`

	// This structure contains delivery configurations that apply only when the
	// delivery destination resource is an S3 bucket.
	S3DeliveryConfiguration *S3DeliveryConfiguration `locationName:"s3DeliveryConfiguration" type:"structure"`

	// The tags that have been assigned to this delivery.
	Tags map[string]*string `locationName:"tags" min:"1" type:"map"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s Delivery) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s Delivery) GoString() string {
	return s.String()
}

// SetArn sets the Arn field's value.
func (s *Delivery) SetArn(v string) *Delivery {
	s.Arn = &v
	return s
}

// SetDeliveryDestinationArn sets the DeliveryDestinationArn field's value.
func (s *Delivery) SetDeliveryDestinationArn(v string) *Delivery {
	s.DeliveryDestinationArn = &v
	return s
}

// SetDeliveryDestinationType sets the DeliveryDestinationType field's value.
func (s *Delivery) SetDeliveryDestinationType(v string) *Delivery {
	s.DeliveryDestinationType = &v
	return s
}

// SetDeliverySourceName sets the DeliverySourceName field's value.
func (s *Delivery) SetDeliverySourceName(v string) *Delivery {
	s.DeliverySourceName = &v
	return s
}

// SetFieldDelimiter sets the FieldDelimiter field's value.
func (s *Delivery) SetFieldDelimiter(v string) *Delivery {
	s.FieldDelimiter = &v
	return s
}

// SetId sets the Id field's value.
func (s *Delivery) SetId(v string) *Delivery {
	s.Id = &v
	return s
}

// SetRecordFields sets the RecordFields field's value.
func (s *Delivery) SetRecordFields(v []*string) *Delivery {
	s.RecordFields = v
	return s
}

// SetS3DeliveryConfiguration sets the S3DeliveryConfiguration field's value.
func (s *Delivery) SetS3DeliveryConfiguration(v *S3DeliveryConfiguration) *Delivery {
	s.S3DeliveryConfiguration = v
	return s
}

// SetTags sets the Tags field's value.
func (s *Delivery) SetTags(v map[string]*string) *Delivery {
	s.Tags = v
	return s
}

// This structure contains information about one delivery destination in your
// account. A delivery destination is an Amazon Web Services resource that represents
// an Amazon Web Services service that logs can be sent to. CloudWatch Logs,
// Amazon S3, are supported as Firehose delivery destinations.
//
// To configure logs delivery between a supported Amazon Web Services service
// and a destination, you must do the following:
//
//   - Create a delivery source, which is a logical object that represents
//     the resource that is actually sending the logs. For more information,
//     see PutDeliverySource (https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_PutDeliverySource.html).
//
//   - Create a delivery destination, which is a logical object that represents
//     the actual delivery destination.
//
//   - If you are delivering logs cross-account, you must use PutDeliveryDestinationPolicy
//     (https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_PutDeliveryDestinationPolicy.html)
//     in the destination account to assign an IAM policy to the destination.
//     This policy allows delivery to that destination.
//
//   - Create a delivery by pairing exactly one delivery source and one delivery
//     destination. For more information, see CreateDelivery (https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_CreateDelivery.html).
//
// You can configure a single delivery source to send logs to multiple destinations
// by creating multiple deliveries. You can also create multiple deliveries
// to configure multiple delivery sources to send logs to the same delivery
// destination.
type DeliveryDestination struct {
	_ struct{} `type:"structure"`

	// The Amazon Resource Name (ARN) that uniquely identifies this delivery destination.
	Arn *string `locationName:"arn" type:"string"`

	// A structure that contains the ARN of the Amazon Web Services resource that
	// will receive the logs.
	DeliveryDestinationConfiguration *DeliveryDestinationConfiguration `locationName:"deliveryDestinationConfiguration" type:"structure"`

	// Displays whether this delivery destination is CloudWatch Logs, Amazon S3,
	// or Firehose.
	DeliveryDestinationType *string `locationName:"deliveryDestinationType" type:"string" enum:"DeliveryDestinationType"`

	// The name of this delivery destination.
	Name *string `locationName:"name" min:"1" type:"string"`

	// The format of the logs that are sent to this delivery destination.
	OutputFormat *string `locationName:"outputFormat" type:"string" enum:"OutputFormat"`

	// The tags that have been assigned to this delivery destination.
	Tags map[string]*string `locationName:"tags" min:"1" type:"map"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s DeliveryDestination) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s DeliveryDestination) GoString() string {
	return s.String()
}

// SetArn sets the Arn field's value.
func (s *DeliveryDestination) SetArn(v string) *DeliveryDestination {
	s.Arn = &v
	return s
}

// SetDeliveryDestinationConfiguration sets the DeliveryDestinationConfiguration field's value.
func (s *DeliveryDestination) SetDeliveryDestinationConfiguration(v *DeliveryDestinationConfiguration) *DeliveryDestination {
	s.DeliveryDestinationConfiguration = v
	return s
}

// SetDeliveryDestinationType sets the DeliveryDestinationType field's value.
func (s *DeliveryDestination) SetDeliveryDestinationType(v string) *DeliveryDestination {
	s.DeliveryDestinationType = &v
	return s
}

// SetName sets the Name field's value.
func (s *DeliveryDestination) SetName(v string) *DeliveryDestination {
	s.Name = &v
	return s
}

// SetOutputFormat sets the OutputFormat field's value.
func (s *DeliveryDestination) SetOutputFormat(v string) *DeliveryDestination {
	s.OutputFormat = &v
	return s
}

// SetTags sets the Tags field's value.
func (s *DeliveryDestination) SetTags(v map[string]*string) *DeliveryDestination {
	s.Tags = v
	return s
}

// A structure that contains information about one logs delivery destination.
type DeliveryDestinationConfiguration struct {
	_ struct{} `type:"structure"`

	// The ARN of the Amazon Web Services destination that this delivery destination
	// represents. That Amazon Web Services destination can be a log group in CloudWatch
	// Logs, an Amazon S3 bucket, or a delivery stream in Firehose.
	//
	// DestinationResourceArn is a required field
	DestinationResourceArn *string `locationName:"destinationResourceArn" type:"string" required:"true"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s DeliveryDestinationConfiguration) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s DeliveryDestinationConfiguration) GoString() string {
	return s.String()
}

// Validate inspects the fields of the type to determine if they are valid.
func (s *DeliveryDestinationConfiguration) Validate() error {
	invalidParams := request.ErrInvalidParams{Context: "DeliveryDestinationConfiguration"}
	if s.DestinationResourceArn == nil {
		invalidParams.Add(request.NewErrParamRequired("DestinationResourceArn"))
	}

	if invalidParams.Len() > 0 {
		return invalidParams
	}
	return nil
}

// SetDestinationResourceArn sets the DestinationResourceArn field's value.
func (s *DeliveryDestinationConfiguration) SetDestinationResourceArn(v string) *DeliveryDestinationConfiguration {
	s.DestinationResourceArn = &v
	return s
}

// This structure contains information about one delivery source in your account.
// A delivery source is an Amazon Web Services resource that sends logs to an
// Amazon Web Services destination. The destination can be CloudWatch Logs,
// Amazon S3, or Firehose.
//
// Only some Amazon Web Services services support being configured as a delivery
// source. These services are listed as Supported [V2 Permissions] in the table
// at Enabling logging from Amazon Web Services services. (https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/AWS-logs-and-resource-policy.html)
//
// To configure logs delivery between a supported Amazon Web Services service
// and a destination, you must do the following:
//
//   - Create a delivery source, which is a logical object that represents
//     the resource that is actually sending the logs. For more information,
//     see PutDeliverySource (https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_PutDeliverySource.html).
//
//   - Create a delivery destination, which is a logical object that represents
//     the actual delivery destination. For more information, see PutDeliveryDestination
//     (https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_PutDeliveryDestination.html).
//
//   - If you are delivering logs cross-account, you must use PutDeliveryDestinationPolicy
//     (https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_PutDeliveryDestinationPolicy.html)
//     in the destination account to assign an IAM policy to the destination.
//     This policy allows delivery to that destination.
//
//   - Create a delivery by pairing exactly one delivery source and one delivery
//     destination. For more information, see CreateDelivery (https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_CreateDelivery.html).
//
// You can configure a single delivery source to send logs to multiple destinations
// by creating multiple deliveries. You can also create multiple deliveries
// to configure multiple delivery sources to send logs to the same delivery
// destination.
type DeliverySource struct {
	_ struct{} `type:"structure"`

	// The Amazon Resource Name (ARN) that uniquely identifies this delivery source.
	Arn *string `locationName:"arn" type:"string"`

	// The type of log that the source is sending. For valid values for this parameter,
	// see the documentation for the source service.
	LogType *string `locationName:"logType" min:"1" type:"string"`

	// The unique name of the delivery source.
	Name *string `locationName:"name" min:"1" type:"string"`

	// This array contains the ARN of the Amazon Web Services resource that sends
	// logs and is represented by this delivery source. Currently, only one ARN
	// can be in the array.
	ResourceArns []*string `locationName:"resourceArns" type:"list"`

	// The Amazon Web Services service that is sending logs.
	Service *string `locationName:"service" min:"1" type:"string"`

	// The tags that have been assigned to this delivery source.
	Tags map[string]*string `locationName:"tags" min:"1" type:"map"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s DeliverySource) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s DeliverySource) GoString() string {
	return s.String()
}

// SetArn sets the Arn field's value.
func (s *DeliverySource) SetArn(v string) *DeliverySource {
	s.Arn = &v
	return s
}

// SetLogType sets the LogType field's value.
func (s *DeliverySource) SetLogType(v string) *DeliverySource {
	s.LogType = &v
	return s
}

// SetName sets the Name field's value.
func (s *DeliverySource) SetName(v string) *DeliverySource {
	s.Name = &v
	return s
}

// SetResourceArns sets the ResourceArns field's value.
func (s *DeliverySource) SetResourceArns(v []*string) *DeliverySource {
	s.ResourceArns = v
	return s
}

// SetService sets the Service field's value.
func (s *DeliverySource) SetService(v string) *DeliverySource {
	s.Service = &v
	return s
}

// SetTags sets the Tags field's value.
func (s *DeliverySource) SetTags(v map[string]*string) *DeliverySource {
	s.Tags = v
	return s
}

type DescribeAccountPoliciesInput struct {
	_ struct{} `type:"structure"`

	// If you are using an account that is set up as a monitoring account for CloudWatch
	// unified cross-account observability, you can use this to specify the account
	// ID of a source account. If you do, the operation returns the account policy
	// for the specified account. Currently, you can specify only one account ID
	// in this parameter.
	//
	// If you omit this parameter, only the policy in the current account is returned.
	AccountIdentifiers []*string `locationName:"accountIdentifiers" type:"list"`

	// The token for the next set of items to return. (You received this token from
	// a previous call.)
	NextToken *string `locationName:"nextToken" min:"1" type:"string"`

	// Use this parameter to limit the returned policies to only the policy with
	// the name that you specify.
	PolicyName *string `locationName:"policyName" type:"string"`

	// Use this parameter to limit the returned policies to only the policies that
	// match the policy type that you specify.
	//
	// PolicyType is a required field
	PolicyType *string `locationName:"policyType" type:"string" required:"true" enum:"PolicyType"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s DescribeAccountPoliciesInput) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s DescribeAccountPoliciesInput) GoString() string {
	return s.String()
}

// Validate inspects the fields of the type to determine if they are valid.
func (s *DescribeAccountPoliciesInput) Validate() error {
	invalidParams := request.ErrInvalidParams{Context: "DescribeAccountPoliciesInput"}
	if s.NextToken != nil && len(*s.NextToken) < 1 {
		invalidParams.Add(request.NewErrParamMinLen("NextToken", 1))
	}
	if s.PolicyType == nil {
		invalidParams.Add(request.NewErrParamRequired("PolicyType"))
	}

	if invalidParams.Len() > 0 {
		return invalidParams
	}
	return nil
}

// SetAccountIdentifiers sets the AccountIdentifiers field's value.
func (s *DescribeAccountPoliciesInput) SetAccountIdentifiers(v []*string) *DescribeAccountPoliciesInput {
	s.AccountIdentifiers = v
	return s
}

// SetNextToken sets the NextToken field's value.
func (s *DescribeAccountPoliciesInput) SetNextToken(v string) *DescribeAccountPoliciesInput {
	s.NextToken = &v
	return s
}

// SetPolicyName sets the PolicyName field's value.
func (s *DescribeAccountPoliciesInput) SetPolicyName(v string) *DescribeAccountPoliciesInput {
	s.PolicyName = &v
	return s
}

// SetPolicyType sets the PolicyType field's value.
func (s *DescribeAccountPoliciesInput) SetPolicyType(v string) *DescribeAccountPoliciesInput {
	s.PolicyType = &v
	return s
}

type DescribeAccountPoliciesOutput struct {
	_ struct{} `type:"structure"`

	// An array of structures that contain information about the CloudWatch Logs
	// account policies that match the specified filters.
	AccountPolicies []*AccountPolicy `locationName:"accountPolicies" type:"list"`

	// The token to use when requesting the next set of items. The token expires
	// after 24 hours.
	NextToken *string `locationName:"nextToken" min:"1" type:"string"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s DescribeAccountPoliciesOutput) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s DescribeAccountPoliciesOutput) GoString() string {
	return s.String()
}

// SetAccountPolicies sets the AccountPolicies field's value.
func (s *DescribeAccountPoliciesOutput) SetAccountPolicies(v []*AccountPolicy) *DescribeAccountPoliciesOutput {
	s.AccountPolicies = v
	return s
}

// SetNextToken sets the NextToken field's value.
func (s *DescribeAccountPoliciesOutput) SetNextToken(v string) *DescribeAccountPoliciesOutput {
	s.NextToken = &v
	return s
}

type DescribeConfigurationTemplatesInput struct {
	_ struct{} `type:"structure"`

	// Use this parameter to filter the response to include only the configuration
	// templates that apply to the delivery destination types that you specify here.
	DeliveryDestinationTypes []*string `locationName:"deliveryDestinationTypes" min:"1" type:"list" enum:"DeliveryDestinationType"`

	// Use this parameter to limit the number of configuration templates that are
	// returned in the response.
	Limit *int64 `locationName:"limit" min:"1" type:"integer"`

	// Use this parameter to filter the response to include only the configuration
	// templates that apply to the log types that you specify here.
	LogTypes []*string `locationName:"logTypes" min:"1" type:"list"`

	// The token for the next set of items to return. The token expires after 24
	// hours.
	NextToken *string `locationName:"nextToken" min:"1" type:"string"`

	// Use this parameter to filter the response to include only the configuration
	// templates that apply to the resource types that you specify here.
	ResourceTypes []*string `locationName:"resourceTypes" min:"1" type:"list"`

	// Use this parameter to filter the response to include only the configuration
	// templates that apply to the Amazon Web Services service that you specify
	// here.
	Service *string `locationName:"service" min:"1" type:"string"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s DescribeConfigurationTemplatesInput) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s DescribeConfigurationTemplatesInput) GoString() string {
	return s.String()
}

// Validate inspects the fields of the type to determine if they are valid.
func (s *DescribeConfigurationTemplatesInput) Validate() error {
	invalidParams := request.ErrInvalidParams{Context: "DescribeConfigurationTemplatesInput"}
	if s.DeliveryDestinationTypes != nil && len(s.DeliveryDestinationTypes) < 1 {
		invalidParams.Add(request.NewErrParamMinLen("DeliveryDestinationTypes", 1))
	}
	if s.Limit != nil && *s.Limit < 1 {
		invalidParams.Add(request.NewErrParamMinValue("Limit", 1))
	}
	if s.LogTypes != nil && len(s.LogTypes) < 1 {
		invalidParams.Add(request.NewErrParamMinLen("LogTypes", 1))
	}
	if s.NextToken != nil && len(*s.NextToken) < 1 {
		invalidParams.Add(request.NewErrParamMinLen("NextToken", 1))
	}
	if s.ResourceTypes != nil && len(s.ResourceTypes) < 1 {
		invalidParams.Add(request.NewErrParamMinLen("ResourceTypes", 1))
	}
	if s.Service != nil && len(*s.Service) < 1 {
		invalidParams.Add(request.NewErrParamMinLen("Service", 1))
	}

	if invalidParams.Len() > 0 {
		return invalidParams
	}
	return nil
}

// SetDeliveryDestinationTypes sets the DeliveryDestinationTypes field's value.
func (s *DescribeConfigurationTemplatesInput) SetDeliveryDestinationTypes(v []*string) *DescribeConfigurationTemplatesInput {
	s.DeliveryDestinationTypes = v
	return s
}

// SetLimit sets the Limit field's value.
func (s *DescribeConfigurationTemplatesInput) SetLimit(v int64) *DescribeConfigurationTemplatesInput {
	s.Limit = &v
	return s
}

// SetLogTypes sets the LogTypes field's value.
func (s *DescribeConfigurationTemplatesInput) SetLogTypes(v []*string) *DescribeConfigurationTemplatesInput {
	s.LogTypes = v
	return s
}

// SetNextToken sets the NextToken field's value.
func (s *DescribeConfigurationTemplatesInput) SetNextToken(v string) *DescribeConfigurationTemplatesInput {
	s.NextToken = &v
	return s
}

// SetResourceTypes sets the ResourceTypes field's value.
func (s *DescribeConfigurationTemplatesInput) SetResourceTypes(v []*string) *DescribeConfigurationTemplatesInput {
	s.ResourceTypes = v
	return s
}

// SetService sets the Service field's value.
func (s *DescribeConfigurationTemplatesInput) SetService(v string) *DescribeConfigurationTemplatesInput {
	s.Service = &v
	return s
}

type DescribeConfigurationTemplatesOutput struct {
	_ struct{} `type:"structure"`

	// An array of objects, where each object describes one configuration template
	// that matches the filters that you specified in the request.
	ConfigurationTemplates []*ConfigurationTemplate `locationName:"configurationTemplates" type:"list"`

	// The token for the next set of items to return. The token expires after 24
	// hours.
	NextToken *string `locationName:"nextToken" min:"1" type:"string"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s DescribeConfigurationTemplatesOutput) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s DescribeConfigurationTemplatesOutput) GoString() string {
	return s.String()
}

// SetConfigurationTemplates sets the ConfigurationTemplates field's value.
func (s *DescribeConfigurationTemplatesOutput) SetConfigurationTemplates(v []*ConfigurationTemplate) *DescribeConfigurationTemplatesOutput {
	s.ConfigurationTemplates = v
	return s
}

// SetNextToken sets the NextToken field's value.
func (s *DescribeConfigurationTemplatesOutput) SetNextToken(v string) *DescribeConfigurationTemplatesOutput {
	s.NextToken = &v
	return s
}

type DescribeDeliveriesInput struct {
	_ struct{} `type:"structure"`

	// Optionally specify the maximum number of deliveries to return in the response.
	Limit *int64 `locationName:"limit" min:"1" type:"integer"`

	// The token for the next set of items to return. The token expires after 24
	// hours.
	NextToken *string `locationName:"nextToken" min:"1" type:"string"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s DescribeDeliveriesInput) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s DescribeDeliveriesInput) GoString() string {
	return s.String()
}

// Validate inspects the fields of the type to determine if they are valid.
func (s *DescribeDeliveriesInput) Validate() error {
	invalidParams := request.ErrInvalidParams{Context: "DescribeDeliveriesInput"}
	if s.Limit != nil && *s.Limit < 1 {
		invalidParams.Add(request.NewErrParamMinValue("Limit", 1))
	}
	if s.NextToken != nil && len(*s.NextToken) < 1 {
		invalidParams.Add(request.NewErrParamMinLen("NextToken", 1))
	}

	if invalidParams.Len() > 0 {
		return invalidParams
	}
	return nil
}

// SetLimit sets the Limit field's value.
func (s *DescribeDeliveriesInput) SetLimit(v int64) *DescribeDeliveriesInput {
	s.Limit = &v
	return s
}

// SetNextToken sets the NextToken field's value.
func (s *DescribeDeliveriesInput) SetNextToken(v string) *DescribeDeliveriesInput {
	s.NextToken = &v
	return s
}

type DescribeDeliveriesOutput struct {
	_ struct{} `type:"structure"`

	// An array of structures. Each structure contains information about one delivery
	// in the account.
	Deliveries []*Delivery `locationName:"deliveries" type:"list"`

	// The token for the next set of items to return. The token expires after 24
	// hours.
	NextToken *string `locationName:"nextToken" min:"1" type:"string"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s DescribeDeliveriesOutput) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s DescribeDeliveriesOutput) GoString() string {
	return s.String()
}

// SetDeliveries sets the Deliveries field's value.
func (s *DescribeDeliveriesOutput) SetDeliveries(v []*Delivery) *DescribeDeliveriesOutput {
	s.Deliveries = v
	return s
}

// SetNextToken sets the NextToken field's value.
func (s *DescribeDeliveriesOutput) SetNextToken(v string) *DescribeDeliveriesOutput {
	s.NextToken = &v
	return s
}

type DescribeDeliveryDestinationsInput struct {
	_ struct{} `type:"structure"`

	// Optionally specify the maximum number of delivery destinations to return
	// in the response.
	Limit *int64 `locationName:"limit" min:"1" type:"integer"`

	// The token for the next set of items to return. The token expires after 24
	// hours.
	NextToken *string `locationName:"nextToken" min:"1" type:"string"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s DescribeDeliveryDestinationsInput) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s DescribeDeliveryDestinationsInput) GoString() string {
	return s.String()
}

// Validate inspects the fields of the type to determine if they are valid.
func (s *DescribeDeliveryDestinationsInput) Validate() error {
	invalidParams := request.ErrInvalidParams{Context: "DescribeDeliveryDestinationsInput"}
	if s.Limit != nil && *s.Limit < 1 {
		invalidParams.Add(request.NewErrParamMinValue("Limit", 1))
	}
	if s.NextToken != nil && len(*s.NextToken) < 1 {
		invalidParams.Add(request.NewErrParamMinLen("NextToken", 1))
	}

	if invalidParams.Len() > 0 {
		return invalidParams
	}
	return nil
}

// SetLimit sets the Limit field's value.
func (s *DescribeDeliveryDestinationsInput) SetLimit(v int64) *DescribeDeliveryDestinationsInput {
	s.Limit = &v
	return s
}

// SetNextToken sets the NextToken field's value.
func (s *DescribeDeliveryDestinationsInput) SetNextToken(v string) *DescribeDeliveryDestinationsInput {
	s.NextToken = &v
	return s
}

type DescribeDeliveryDestinationsOutput struct {
	_ struct{} `type:"structure"`

	// An array of structures. Each structure contains information about one delivery
	// destination in the account.
	DeliveryDestinations []*DeliveryDestination `locationName:"deliveryDestinations" type:"list"`

	// The token for the next set of items to return. The token expires after 24
	// hours.
	NextToken *string `locationName:"nextToken" min:"1" type:"string"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s DescribeDeliveryDestinationsOutput) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s DescribeDeliveryDestinationsOutput) GoString() string {
	return s.String()
}

// SetDeliveryDestinations sets the DeliveryDestinations field's value.
func (s *DescribeDeliveryDestinationsOutput) SetDeliveryDestinations(v []*DeliveryDestination) *DescribeDeliveryDestinationsOutput {
	s.DeliveryDestinations = v
	return s
}

// SetNextToken sets the NextToken field's value.
func (s *DescribeDeliveryDestinationsOutput) SetNextToken(v string) *DescribeDeliveryDestinationsOutput {
	s.NextToken = &v
	return s
}

type DescribeDeliverySourcesInput struct {
	_ struct{} `type:"structure"`

	// Optionally specify the maximum number of delivery sources to return in the
	// response.
	Limit *int64 `locationName:"limit" min:"1" type:"integer"`

	// The token for the next set of items to return. The token expires after 24
	// hours.
	NextToken *string `locationName:"nextToken" min:"1" type:"string"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s DescribeDeliverySourcesInput) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s DescribeDeliverySourcesInput) GoString() string {
	return s.String()
}

// Validate inspects the fields of the type to determine if they are valid.
func (s *DescribeDeliverySourcesInput) Validate() error {
	invalidParams := request.ErrInvalidParams{Context: "DescribeDeliverySourcesInput"}
	if s.Limit != nil && *s.Limit < 1 {
		invalidParams.Add(request.NewErrParamMinValue("Limit", 1))
	}
	if s.NextToken != nil && len(*s.NextToken) < 1 {
		invalidParams.Add(request.NewErrParamMinLen("NextToken", 1))
	}

	if invalidParams.Len() > 0 {
		return invalidParams
	}
	return nil
}

// SetLimit sets the Limit field's value.
func (s *DescribeDeliverySourcesInput) SetLimit(v int64) *DescribeDeliverySourcesInput {
	s.Limit = &v
	return s
}

// SetNextToken sets the NextToken field's value.
func (s *DescribeDeliverySourcesInput) SetNextToken(v string) *DescribeDeliverySourcesInput {
	s.NextToken = &v
	return s
}

type DescribeDeliverySourcesOutput struct {
	_ struct{} `type:"structure"`

	// An array of structures. Each structure contains information about one delivery
	// source in the account.
	DeliverySources []*DeliverySource `locationName:"deliverySources" type:"list"`

	// The token for the next set of items to return. The token expires after 24
	// hours.
	NextToken *string `locationName:"nextToken" min:"1" type:"string"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s DescribeDeliverySourcesOutput) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s DescribeDeliverySourcesOutput) GoString() string {
	return s.String()
}

// SetDeliverySources sets the DeliverySources field's value.
func (s *DescribeDeliverySourcesOutput) SetDeliverySources(v []*DeliverySource) *DescribeDeliverySourcesOutput {
	s.DeliverySources = v
	return s
}

// SetNextToken sets the NextToken field's value.
func (s *DescribeDeliverySourcesOutput) SetNextToken(v string) *DescribeDeliverySourcesOutput {
	s.NextToken = &v
	return s
}

type DescribeDestinationsInput struct {
	_ struct{} `type:"structure"`

	// The prefix to match. If you don't specify a value, no prefix filter is applied.
	DestinationNamePrefix *string `min:"1" type:"string"`

	// The maximum number of items returned. If you don't specify a value, the default
	// maximum value of 50 items is used.
	Limit *int64 `locationName:"limit" min:"1" type:"integer"`

	// The token for the next set of items to return. (You received this token from
	// a previous call.)
	NextToken *string `locationName:"nextToken" min:"1" type:"string"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s DescribeDestinationsInput) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s DescribeDestinationsInput) GoString() string {
	return s.String()
}

// Validate inspects the fields of the type to determine if they are valid.
func (s *DescribeDestinationsInput) Validate() error {
	invalidParams := request.ErrInvalidParams{Context: "DescribeDestinationsInput"}
	if s.DestinationNamePrefix != nil && len(*s.DestinationNamePrefix) < 1 {
		invalidParams.Add(request.NewErrParamMinLen("DestinationNamePrefix", 1))
	}
	if s.Limit != nil && *s.Limit < 1 {
		invalidParams.Add(request.NewErrParamMinValue("Limit", 1))
	}
	if s.NextToken != nil && len(*s.NextToken) < 1 {
		invalidParams.Add(request.NewErrParamMinLen("NextToken", 1))
	}

	if invalidParams.Len() > 0 {
		return invalidParams
	}
	return nil
}

// SetDestinationNamePrefix sets the DestinationNamePrefix field's value.
func (s *DescribeDestinationsInput) SetDestinationNamePrefix(v string) *DescribeDestinationsInput {
	s.DestinationNamePrefix = &v
	return s
}

// SetLimit sets the Limit field's value.
func (s *DescribeDestinationsInput) SetLimit(v int64) *DescribeDestinationsInput {
	s.Limit = &v
	return s
}

// SetNextToken sets the NextToken field's value.
func (s *DescribeDestinationsInput) SetNextToken(v string) *DescribeDestinationsInput {
	s.NextToken = &v
	return s
}

type DescribeDestinationsOutput struct {
	_ struct{} `type:"structure"`

	// The destinations.
	Destinations []*Destination `locationName:"destinations" type:"list"`

	// The token for the next set of items to return. The token expires after 24
	// hours.
	NextToken *string `locationName:"nextToken" min:"1" type:"string"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s DescribeDestinationsOutput) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s DescribeDestinationsOutput) GoString() string {
	return s.String()
}

// SetDestinations sets the Destinations field's value.
func (s *DescribeDestinationsOutput) SetDestinations(v []*Destination) *DescribeDestinationsOutput {
	s.Destinations = v
	return s
}

// SetNextToken sets the NextToken field's value.
func (s *DescribeDestinationsOutput) SetNextToken(v string) *DescribeDestinationsOutput {
	s.NextToken = &v
	return s
}

type DescribeExportTasksInput struct {
	_ struct{} `type:"structure"`

	// The maximum number of items returned. If you don't specify a value, the default
	// is up to 50 items.
	Limit *int64 `locationName:"limit" min:"1" type:"integer"`

	// The token for the next set of items to return. (You received this token from
	// a previous call.)
	NextToken *string `locationName:"nextToken" min:"1" type:"string"`

	// The status code of the export task. Specifying a status code filters the
	// results to zero or more export tasks.
	StatusCode *string `locationName:"statusCode" type:"string" enum:"ExportTaskStatusCode"`

	// The ID of the export task. Specifying a task ID filters the results to one
	// or zero export tasks.
	TaskId *string `locationName:"taskId" min:"1" type:"string"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s DescribeExportTasksInput) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s DescribeExportTasksInput) GoString() string {
	return s.String()
}

// Validate inspects the fields of the type to determine if they are valid.
func (s *DescribeExportTasksInput) Validate() error {
	invalidParams := request.ErrInvalidParams{Context: "DescribeExportTasksInput"}
	if s.Limit != nil && *s.Limit < 1 {
		invalidParams.Add(request.NewErrParamMinValue("Limit", 1))
	}
	if s.NextToken != nil && len(*s.NextToken) < 1 {
		invalidParams.Add(request.NewErrParamMinLen("NextToken", 1))
	}
	if s.TaskId != nil && len(*s.TaskId) < 1 {
		invalidParams.Add(request.NewErrParamMinLen("TaskId", 1))
	}

	if invalidParams.Len() > 0 {
		return invalidParams
	}
	return nil
}

// SetLimit sets the Limit field's value.
func (s *DescribeExportTasksInput) SetLimit(v int64) *DescribeExportTasksInput {
	s.Limit = &v
	return s
}

// SetNextToken sets the NextToken field's value.
func (s *DescribeExportTasksInput) SetNextToken(v string) *DescribeExportTasksInput {
	s.NextToken = &v
	return s
}

// SetStatusCode sets the StatusCode field's value.
func (s *DescribeExportTasksInput) SetStatusCode(v string) *DescribeExportTasksInput {
	s.StatusCode = &v
	return s
}

// SetTaskId sets the TaskId field's value.
func (s *DescribeExportTasksInput) SetTaskId(v string) *DescribeExportTasksInput {
	s.TaskId = &v
	return s
}

type DescribeExportTasksOutput struct {
	_ struct{} `type:"structure"`

	// The export tasks.
	ExportTasks []*ExportTask `locationName:"exportTasks" type:"list"`

	// The token for the next set of items to return. The token expires after 24
	// hours.
	NextToken *string `locationName:"nextToken" min:"1" type:"string"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s DescribeExportTasksOutput) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s DescribeExportTasksOutput) GoString() string {
	return s.String()
}

// SetExportTasks sets the ExportTasks field's value.
func (s *DescribeExportTasksOutput) SetExportTasks(v []*ExportTask) *DescribeExportTasksOutput {
	s.ExportTasks = v
	return s
}

// SetNextToken sets the NextToken field's value.
func (s *DescribeExportTasksOutput) SetNextToken(v string) *DescribeExportTasksOutput {
	s.NextToken = &v
	return s
}

type DescribeFieldIndexesInput struct {
	_ struct{} `type:"structure"`

	// An array containing the names or ARNs of the log groups that you want to
	// retrieve field indexes for.
	//
	// LogGroupIdentifiers is a required field
	LogGroupIdentifiers []*string `locationName:"logGroupIdentifiers" min:"1" type:"list" required:"true"`

	// The token for the next set of items to return. The token expires after 24
	// hours.
	NextToken *string `locationName:"nextToken" min:"1" type:"string"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s DescribeFieldIndexesInput) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s DescribeFieldIndexesInput) GoString() string {
	return s.String()
}

// Validate inspects the fields of the type to determine if they are valid.
func (s *DescribeFieldIndexesInput) Validate() error {
	invalidParams := request.ErrInvalidParams{Context: "DescribeFieldIndexesInput"}
	if s.LogGroupIdentifiers == nil {
		invalidParams.Add(request.NewErrParamRequired("LogGroupIdentifiers"))
	}
	if s.LogGroupIdentifiers != nil && len(s.LogGroupIdentifiers) < 1 {
		invalidParams.Add(request.NewErrParamMinLen("LogGroupIdentifiers", 1))
	}
	if s.NextToken != nil && len(*s.NextToken) < 1 {
		invalidParams.Add(request.NewErrParamMinLen("NextToken", 1))
	}

	if invalidParams.Len() > 0 {
		return invalidParams
	}
	return nil
}

// SetLogGroupIdentifiers sets the LogGroupIdentifiers field's value.
func (s *DescribeFieldIndexesInput) SetLogGroupIdentifiers(v []*string) *DescribeFieldIndexesInput {
	s.LogGroupIdentifiers = v
	return s
}

// SetNextToken sets the NextToken field's value.
func (s *DescribeFieldIndexesInput) SetNextToken(v string) *DescribeFieldIndexesInput {
	s.NextToken = &v
	return s
}

type DescribeFieldIndexesOutput struct {
	_ struct{} `type:"structure"`

	// An array containing the field index information.
	FieldIndexes []*FieldIndex `locationName:"fieldIndexes" type:"list"`

	// The token for the next set of items to return. The token expires after 24
	// hours.
	NextToken *string `locationName:"nextToken" min:"1" type:"string"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s DescribeFieldIndexesOutput) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s DescribeFieldIndexesOutput) GoString() string {
	return s.String()
}

// SetFieldIndexes sets the FieldIndexes field's value.
func (s *DescribeFieldIndexesOutput) SetFieldIndexes(v []*FieldIndex) *DescribeFieldIndexesOutput {
	s.FieldIndexes = v
	return s
}

// SetNextToken sets the NextToken field's value.
func (s *DescribeFieldIndexesOutput) SetNextToken(v string) *DescribeFieldIndexesOutput {
	s.NextToken = &v
	return s
}

type DescribeIndexPoliciesInput struct {
	_ struct{} `type:"structure"`

	// An array containing the name or ARN of the log group that you want to retrieve
	// field index policies for.
	//
	// LogGroupIdentifiers is a required field
	LogGroupIdentifiers []*string `locationName:"logGroupIdentifiers" min:"1" type:"list" required:"true"`

	// The token for the next set of items to return. The token expires after 24
	// hours.
	NextToken *string `locationName:"nextToken" min:"1" type:"string"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s DescribeIndexPoliciesInput) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s DescribeIndexPoliciesInput) GoString() string {
	return s.String()
}

// Validate inspects the fields of the type to determine if they are valid.
func (s *DescribeIndexPoliciesInput) Validate() error {
	invalidParams := request.ErrInvalidParams{Context: "DescribeIndexPoliciesInput"}
	if s.LogGroupIdentifiers == nil {
		invalidParams.Add(request.NewErrParamRequired("LogGroupIdentifiers"))
	}
	if s.LogGroupIdentifiers != nil && len(s.LogGroupIdentifiers) < 1 {
		invalidParams.Add(request.NewErrParamMinLen("LogGroupIdentifiers", 1))
	}
	if s.NextToken != nil && len(*s.NextToken) < 1 {
		invalidParams.Add(request.NewErrParamMinLen("NextToken", 1))
	}

	if invalidParams.Len() > 0 {
		return invalidParams
	}
	return nil
}

// SetLogGroupIdentifiers sets the LogGroupIdentifiers field's value.
func (s *DescribeIndexPoliciesInput) SetLogGroupIdentifiers(v []*string) *DescribeIndexPoliciesInput {
	s.LogGroupIdentifiers = v
	return s
}

// SetNextToken sets the NextToken field's value.
func (s *DescribeIndexPoliciesInput) SetNextToken(v string) *DescribeIndexPoliciesInput {
	s.NextToken = &v
	return s
}

type DescribeIndexPoliciesOutput struct {
	_ struct{} `type:"structure"`

	// An array containing the field index policies.
	IndexPolicies []*IndexPolicy `locationName:"indexPolicies" type:"list"`

	// The token for the next set of items to return. The token expires after 24
	// hours.
	NextToken *string `locationName:"nextToken" min:"1" type:"string"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s DescribeIndexPoliciesOutput) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s DescribeIndexPoliciesOutput) GoString() string {
	return s.String()
}

// SetIndexPolicies sets the IndexPolicies field's value.
func (s *DescribeIndexPoliciesOutput) SetIndexPolicies(v []*IndexPolicy) *DescribeIndexPoliciesOutput {
	s.IndexPolicies = v
	return s
}

// SetNextToken sets the NextToken field's value.
func (s *DescribeIndexPoliciesOutput) SetNextToken(v string) *DescribeIndexPoliciesOutput {
	s.NextToken = &v
	return s
}

type DescribeLogGroupsInput struct {
	_ struct{} `type:"structure"`

	// When includeLinkedAccounts is set to true, use this parameter to specify
	// the list of accounts to search. You can specify as many as 20 account IDs
	// in the array.
	AccountIdentifiers []*string `locationName:"accountIdentifiers" type:"list"`

	// If you are using a monitoring account, set this to true to have the operation
	// return log groups in the accounts listed in accountIdentifiers.
	//
	// If this parameter is set to true and accountIdentifiers contains a null value,
	// the operation returns all log groups in the monitoring account and all log
	// groups in all source accounts that are linked to the monitoring account.
	//
	// The default for this parameter is false.
	IncludeLinkedAccounts *bool `locationName:"includeLinkedAccounts" type:"boolean"`

	// The maximum number of items returned. If you don't specify a value, the default
	// is up to 50 items.
	Limit *int64 `locationName:"limit" min:"1" type:"integer"`

	// Use this parameter to limit the results to only those log groups in the specified
	// log group class. If you omit this parameter, log groups of all classes can
	// be returned.
	//
	// Specifies the log group class for this log group. There are three classes:
	//
	//    * The Standard log class supports all CloudWatch Logs features.
	//
	//    * The Infrequent Access log class supports a subset of CloudWatch Logs
	//    features and incurs lower costs.
	//
	//    * Use the Delivery log class only for delivering Lambda logs to store
	//    in Amazon S3 or Amazon Data Firehose. Log events in log groups in the
	//    Delivery class are kept in CloudWatch Logs for only one day. This log
	//    class doesn't offer rich CloudWatch Logs capabilities such as CloudWatch
	//    Logs Insights queries.
	//
	// For details about the features supported by each class, see Log classes (https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/CloudWatch_Logs_Log_Classes.html)
	LogGroupClass *string `locationName:"logGroupClass" type:"string" enum:"LogGroupClass"`

	// Use this array to filter the list of log groups returned. If you specify
	// this parameter, the only other filter that you can choose to specify is includeLinkedAccounts.
	//
	// If you are using this operation in a monitoring account, you can specify
	// the ARNs of log groups in source accounts and in the monitoring account itself.
	// If you are using this operation in an account that is not a cross-account
	// monitoring account, you can specify only log group names in the same account
	// as the operation.
	LogGroupIdentifiers []*string `locationName:"logGroupIdentifiers" min:"1" type:"list"`

	// If you specify a string for this parameter, the operation returns only log
	// groups that have names that match the string based on a case-sensitive substring
	// search. For example, if you specify Foo, log groups named FooBar, aws/Foo,
	// and GroupFoo would match, but foo, F/o/o and Froo would not match.
	//
	// If you specify logGroupNamePattern in your request, then only arn, creationTime,
	// and logGroupName are included in the response.
	//
	// logGroupNamePattern and logGroupNamePrefix are mutually exclusive. Only one
	// of these parameters can be passed.
	LogGroupNamePattern *string `locationName:"logGroupNamePattern" type:"string"`

	// The prefix to match.
	//
	// logGroupNamePrefix and logGroupNamePattern are mutually exclusive. Only one
	// of these parameters can be passed.
	LogGroupNamePrefix *string `locationName:"logGroupNamePrefix" min:"1" type:"string"`

	// The token for the next set of items to return. (You received this token from
	// a previous call.)
	NextToken *string `locationName:"nextToken" min:"1" type:"string"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s DescribeLogGroupsInput) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s DescribeLogGroupsInput) GoString() string {
	return s.String()
}

// Validate inspects the fields of the type to determine if they are valid.
func (s *DescribeLogGroupsInput) Validate() error {
	invalidParams := request.ErrInvalidParams{Context: "DescribeLogGroupsInput"}
	if s.Limit != nil && *s.Limit < 1 {
		invalidParams.Add(request.NewErrParamMinValue("Limit", 1))
	}
	if s.LogGroupIdentifiers != nil && len(s.LogGroupIdentifiers) < 1 {
		invalidParams.Add(request.NewErrParamMinLen("LogGroupIdentifiers", 1))
	}
	if s.LogGroupNamePrefix != nil && len(*s.LogGroupNamePrefix) < 1 {
		invalidParams.Add(request.NewErrParamMinLen("LogGroupNamePrefix", 1))
	}
	if s.NextToken != nil && len(*s.NextToken) < 1 {
		invalidParams.Add(request.NewErrParamMinLen("NextToken", 1))
	}

	if invalidParams.Len() > 0 {
		return invalidParams
	}
	return nil
}

// SetAccountIdentifiers sets the AccountIdentifiers field's value.
func (s *DescribeLogGroupsInput) SetAccountIdentifiers(v []*string) *DescribeLogGroupsInput {
	s.AccountIdentifiers = v
	return s
}

// SetIncludeLinkedAccounts sets the IncludeLinkedAccounts field's value.
func (s *DescribeLogGroupsInput) SetIncludeLinkedAccounts(v bool) *DescribeLogGroupsInput {
	s.IncludeLinkedAccounts = &v
	return s
}

// SetLimit sets the Limit field's value.
func (s *DescribeLogGroupsInput) SetLimit(v int64) *DescribeLogGroupsInput {
	s.Limit = &v
	return s
}

// SetLogGroupClass sets the LogGroupClass field's value.
func (s *DescribeLogGroupsInput) SetLogGroupClass(v string) *DescribeLogGroupsInput {
	s.LogGroupClass = &v
	return s
}

// SetLogGroupIdentifiers sets the LogGroupIdentifiers field's value.
func (s *DescribeLogGroupsInput) SetLogGroupIdentifiers(v []*string) *DescribeLogGroupsInput {
	s.LogGroupIdentifiers = v
	return s
}

// SetLogGroupNamePattern sets the LogGroupNamePattern field's value.
func (s *DescribeLogGroupsInput) SetLogGroupNamePattern(v string) *DescribeLogGroupsInput {
	s.LogGroupNamePattern = &v
	return s
}

// SetLogGroupNamePrefix sets the LogGroupNamePrefix field's value.
func (s *DescribeLogGroupsInput) SetLogGroupNamePrefix(v string) *DescribeLogGroupsInput {
	s.LogGroupNamePrefix = &v
	return s
}

// SetNextToken sets the NextToken field's value.
func (s *DescribeLogGroupsInput) SetNextToken(v string) *DescribeLogGroupsInput {
	s.NextToken = &v
	return s
}

type DescribeLogGroupsOutput struct {
	_ struct{} `type:"structure"`

	// An array of structures, where each structure contains the information about
	// one log group.
	LogGroups []*LogGroup `locationName:"logGroups" type:"list"`

	// The token for the next set of items to return. The token expires after 24
	// hours.
	NextToken *string `locationName:"nextToken" min:"1" type:"string"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s DescribeLogGroupsOutput) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s DescribeLogGroupsOutput) GoString() string {
	return s.String()
}

// SetLogGroups sets the LogGroups field's value.
func (s *DescribeLogGroupsOutput) SetLogGroups(v []*LogGroup) *DescribeLogGroupsOutput {
	s.LogGroups = v
	return s
}

// SetNextToken sets the NextToken field's value.
func (s *DescribeLogGroupsOutput) SetNextToken(v string) *DescribeLogGroupsOutput {
	s.NextToken = &v
	return s
}

type DescribeLogStreamsInput struct {
	_ struct{} `type:"structure"`

	// If the value is true, results are returned in descending order. If the value
	// is to false, results are returned in ascending order. The default value is
	// false.
	Descending *bool `locationName:"descending" type:"boolean"`

	// The maximum number of items returned. If you don't specify a value, the default
	// is up to 50 items.
	Limit *int64 `locationName:"limit" min:"1" type:"integer"`

	// Specify either the name or ARN of the log group to view. If the log group
	// is in a source account and you are using a monitoring account, you must use
	// the log group ARN.
	//
	// You must include either logGroupIdentifier or logGroupName, but not both.
	LogGroupIdentifier *string `locationName:"logGroupIdentifier" min:"1" type:"string"`

	// The name of the log group.
	//
	// You must include either logGroupIdentifier or logGroupName, but not both.
	LogGroupName *string `locationName:"logGroupName" min:"1" type:"string"`

	// The prefix to match.
	//
	// If orderBy is LastEventTime, you cannot specify this parameter.
	LogStreamNamePrefix *string `locationName:"logStreamNamePrefix" min:"1" type:"string"`

	// The token for the next set of items to return. (You received this token from
	// a previous call.)
	NextToken *string `locationName:"nextToken" min:"1" type:"string"`

	// If the value is LogStreamName, the results are ordered by log stream name.
	// If the value is LastEventTime, the results are ordered by the event time.
	// The default value is LogStreamName.
	//
	// If you order the results by event time, you cannot specify the logStreamNamePrefix
	// parameter.
	//
	// lastEventTimestamp represents the time of the most recent log event in the
	// log stream in CloudWatch Logs. This number is expressed as the number of
	// milliseconds after Jan 1, 1970 00:00:00 UTC. lastEventTimestamp updates on
	// an eventual consistency basis. It typically updates in less than an hour
	// from ingestion, but in rare situations might take longer.
	OrderBy *string `locationName:"orderBy" type:"string" enum:"OrderBy"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s DescribeLogStreamsInput) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s DescribeLogStreamsInput) GoString() string {
	return s.String()
}

// Validate inspects the fields of the type to determine if they are valid.
func (s *DescribeLogStreamsInput) Validate() error {
	invalidParams := request.ErrInvalidParams{Context: "DescribeLogStreamsInput"}
	if s.Limit != nil && *s.Limit < 1 {
		invalidParams.Add(request.NewErrParamMinValue("Limit", 1))
	}
	if s.LogGroupIdentifier != nil && len(*s.LogGroupIdentifier) < 1 {
		invalidParams.Add(request.NewErrParamMinLen("LogGroupIdentifier", 1))
	}
	if s.LogGroupName != nil && len(*s.LogGroupName) < 1 {
		invalidParams.Add(request.NewErrParamMinLen("LogGroupName", 1))
	}
	if s.LogStreamNamePrefix != nil && len(*s.LogStreamNamePrefix) < 1 {
		invalidParams.Add(request.NewErrParamMinLen("LogStreamNamePrefix", 1))
	}
	if s.NextToken != nil && len(*s.NextToken) < 1 {
		invalidParams.Add(request.NewErrParamMinLen("NextToken", 1))
	}

	if invalidParams.Len() > 0 {
		return invalidParams
	}
	return nil
}

// SetDescending sets the Descending field's value.
func (s *DescribeLogStreamsInput) SetDescending(v bool) *DescribeLogStreamsInput {
	s.Descending = &v
	return s
}

// SetLimit sets the Limit field's value.
func (s *DescribeLogStreamsInput) SetLimit(v int64) *DescribeLogStreamsInput {
	s.Limit = &v
	return s
}

// SetLogGroupIdentifier sets the LogGroupIdentifier field's value.
func (s *DescribeLogStreamsInput) SetLogGroupIdentifier(v string) *DescribeLogStreamsInput {
	s.LogGroupIdentifier = &v
	return s
}

// SetLogGroupName sets the LogGroupName field's value.
func (s *DescribeLogStreamsInput) SetLogGroupName(v string) *DescribeLogStreamsInput {
	s.LogGroupName = &v
	return s
}

// SetLogStreamNamePrefix sets the LogStreamNamePrefix field's value.
func (s *DescribeLogStreamsInput) SetLogStreamNamePrefix(v string) *DescribeLogStreamsInput {
	s.LogStreamNamePrefix = &v
	return s
}

// SetNextToken sets the NextToken field's value.
func (s *DescribeLogStreamsInput) SetNextToken(v string) *DescribeLogStreamsInput {
	s.NextToken = &v
	return s
}

// SetOrderBy sets the OrderBy field's value.
func (s *DescribeLogStreamsInput) SetOrderBy(v string) *DescribeLogStreamsInput {
	s.OrderBy = &v
	return s
}

type DescribeLogStreamsOutput struct {
	_ struct{} `type:"structure"`

	// The log streams.
	LogStreams []*LogStream `locationName:"logStreams" type:"list"`

	// The token for the next set of items to return. The token expires after 24
	// hours.
	NextToken *string `locationName:"nextToken" min:"1" type:"string"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s DescribeLogStreamsOutput) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s DescribeLogStreamsOutput) GoString() string {
	return s.String()
}

// SetLogStreams sets the LogStreams field's value.
func (s *DescribeLogStreamsOutput) SetLogStreams(v []*LogStream) *DescribeLogStreamsOutput {
	s.LogStreams = v
	return s
}

// SetNextToken sets the NextToken field's value.
func (s *DescribeLogStreamsOutput) SetNextToken(v string) *DescribeLogStreamsOutput {
	s.NextToken = &v
	return s
}

type DescribeMetricFiltersInput struct {
	_ struct{} `type:"structure"`

	// The prefix to match. CloudWatch Logs uses the value that you set here only
	// if you also include the logGroupName parameter in your request.
	FilterNamePrefix *string `locationName:"filterNamePrefix" min:"1" type:"string"`

	// The maximum number of items returned. If you don't specify a value, the default
	// is up to 50 items.
	Limit *int64 `locationName:"limit" min:"1" type:"integer"`

	// The name of the log group.
	LogGroupName *string `locationName:"logGroupName" min:"1" type:"string"`

	// Filters results to include only those with the specified metric name. If
	// you include this parameter in your request, you must also include the metricNamespace
	// parameter.
	MetricName *string `locationName:"metricName" type:"string"`

	// Filters results to include only those in the specified namespace. If you
	// include this parameter in your request, you must also include the metricName
	// parameter.
	MetricNamespace *string `locationName:"metricNamespace" type:"string"`

	// The token for the next set of items to return. (You received this token from
	// a previous call.)
	NextToken *string `locationName:"nextToken" min:"1" type:"string"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s DescribeMetricFiltersInput) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s DescribeMetricFiltersInput) GoString() string {
	return s.String()
}

// Validate inspects the fields of the type to determine if they are valid.
func (s *DescribeMetricFiltersInput) Validate() error {
	invalidParams := request.ErrInvalidParams{Context: "DescribeMetricFiltersInput"}
	if s.FilterNamePrefix != nil && len(*s.FilterNamePrefix) < 1 {
		invalidParams.Add(request.NewErrParamMinLen("FilterNamePrefix", 1))
	}
	if s.Limit != nil && *s.Limit < 1 {
		invalidParams.Add(request.NewErrParamMinValue("Limit", 1))
	}
	if s.LogGroupName != nil && len(*s.LogGroupName) < 1 {
		invalidParams.Add(request.NewErrParamMinLen("LogGroupName", 1))
	}
	if s.NextToken != nil && len(*s.NextToken) < 1 {
		invalidParams.Add(request.NewErrParamMinLen("NextToken", 1))
	}

	if invalidParams.Len() > 0 {
		return invalidParams
	}
	return nil
}

// SetFilterNamePrefix sets the FilterNamePrefix field's value.
func (s *DescribeMetricFiltersInput) SetFilterNamePrefix(v string) *DescribeMetricFiltersInput {
	s.FilterNamePrefix = &v
	return s
}

// SetLimit sets the Limit field's value.
func (s *DescribeMetricFiltersInput) SetLimit(v int64) *DescribeMetricFiltersInput {
	s.Limit = &v
	return s
}

// SetLogGroupName sets the LogGroupName field's value.
func (s *DescribeMetricFiltersInput) SetLogGroupName(v string) *DescribeMetricFiltersInput {
	s.LogGroupName = &v
	return s
}

// SetMetricName sets the MetricName field's value.
func (s *DescribeMetricFiltersInput) SetMetricName(v string) *DescribeMetricFiltersInput {
	s.MetricName = &v
	return s
}

// SetMetricNamespace sets the MetricNamespace field's value.
func (s *DescribeMetricFiltersInput) SetMetricNamespace(v string) *DescribeMetricFiltersInput {
	s.MetricNamespace = &v
	return s
}

// SetNextToken sets the NextToken field's value.
func (s *DescribeMetricFiltersInput) SetNextToken(v string) *DescribeMetricFiltersInput {
	s.NextToken = &v
	return s
}

type DescribeMetricFiltersOutput struct {
	_ struct{} `type:"structure"`

	// The metric filters.
	MetricFilters []*MetricFilter `locationName:"metricFilters" type:"list"`

	// The token for the next set of items to return. The token expires after 24
	// hours.
	NextToken *string `locationName:"nextToken" min:"1" type:"string"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s DescribeMetricFiltersOutput) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s DescribeMetricFiltersOutput) GoString() string {
	return s.String()
}

// SetMetricFilters sets the MetricFilters field's value.
func (s *DescribeMetricFiltersOutput) SetMetricFilters(v []*MetricFilter) *DescribeMetricFiltersOutput {
	s.MetricFilters = v
	return s
}

// SetNextToken sets the NextToken field's value.
func (s *DescribeMetricFiltersOutput) SetNextToken(v string) *DescribeMetricFiltersOutput {
	s.NextToken = &v
	return s
}

type DescribeQueriesInput struct {
	_ struct{} `type:"structure"`

	// Limits the returned queries to only those for the specified log group.
	LogGroupName *string `locationName:"logGroupName" min:"1" type:"string"`

	// Limits the number of returned queries to the specified number.
	MaxResults *int64 `locationName:"maxResults" min:"1" type:"integer"`

	// The token for the next set of items to return. The token expires after 24
	// hours.
	NextToken *string `locationName:"nextToken" min:"1" type:"string"`

	// Limits the returned queries to only the queries that use the specified query
	// language.
	QueryLanguage *string `locationName:"queryLanguage" type:"string" enum:"QueryLanguage"`

	// Limits the returned queries to only those that have the specified status.
	// Valid values are Cancelled, Complete, Failed, Running, and Scheduled.
	Status *string `locationName:"status" type:"string" enum:"QueryStatus"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s DescribeQueriesInput) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s DescribeQueriesInput) GoString() string {
	return s.String()
}

// Validate inspects the fields of the type to determine if they are valid.
func (s *DescribeQueriesInput) Validate() error {
	invalidParams := request.ErrInvalidParams{Context: "DescribeQueriesInput"}
	if s.LogGroupName != nil && len(*s.LogGroupName) < 1 {
		invalidParams.Add(request.NewErrParamMinLen("LogGroupName", 1))
	}
	if s.MaxResults != nil && *s.MaxResults < 1 {
		invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1))
	}
	if s.NextToken != nil && len(*s.NextToken) < 1 {
		invalidParams.Add(request.NewErrParamMinLen("NextToken", 1))
	}

	if invalidParams.Len() > 0 {
		return invalidParams
	}
	return nil
}

// SetLogGroupName sets the LogGroupName field's value.
func (s *DescribeQueriesInput) SetLogGroupName(v string) *DescribeQueriesInput {
	s.LogGroupName = &v
	return s
}

// SetMaxResults sets the MaxResults field's value.
func (s *DescribeQueriesInput) SetMaxResults(v int64) *DescribeQueriesInput {
	s.MaxResults = &v
	return s
}

// SetNextToken sets the NextToken field's value.
func (s *DescribeQueriesInput) SetNextToken(v string) *DescribeQueriesInput {
	s.NextToken = &v
	return s
}

// SetQueryLanguage sets the QueryLanguage field's value.
func (s *DescribeQueriesInput) SetQueryLanguage(v string) *DescribeQueriesInput {
	s.QueryLanguage = &v
	return s
}

// SetStatus sets the Status field's value.
func (s *DescribeQueriesInput) SetStatus(v string) *DescribeQueriesInput {
	s.Status = &v
	return s
}

type DescribeQueriesOutput struct {
	_ struct{} `type:"structure"`

	// The token for the next set of items to return. The token expires after 24
	// hours.
	NextToken *string `locationName:"nextToken" min:"1" type:"string"`

	// The list of queries that match the request.
	Queries []*QueryInfo `locationName:"queries" type:"list"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s DescribeQueriesOutput) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s DescribeQueriesOutput) GoString() string {
	return s.String()
}

// SetNextToken sets the NextToken field's value.
func (s *DescribeQueriesOutput) SetNextToken(v string) *DescribeQueriesOutput {
	s.NextToken = &v
	return s
}

// SetQueries sets the Queries field's value.
func (s *DescribeQueriesOutput) SetQueries(v []*QueryInfo) *DescribeQueriesOutput {
	s.Queries = v
	return s
}

type DescribeQueryDefinitionsInput struct {
	_ struct{} `type:"structure"`

	// Limits the number of returned query definitions to the specified number.
	MaxResults *int64 `locationName:"maxResults" min:"1" type:"integer"`

	// The token for the next set of items to return. The token expires after 24
	// hours.
	NextToken *string `locationName:"nextToken" min:"1" type:"string"`

	// Use this parameter to filter your results to only the query definitions that
	// have names that start with the prefix you specify.
	QueryDefinitionNamePrefix *string `locationName:"queryDefinitionNamePrefix" min:"1" type:"string"`

	// The query language used for this query. For more information about the query
	// languages that CloudWatch Logs supports, see Supported query languages (https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/CWL_AnalyzeLogData_Languages.html).
	QueryLanguage *string `locationName:"queryLanguage" type:"string" enum:"QueryLanguage"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s DescribeQueryDefinitionsInput) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s DescribeQueryDefinitionsInput) GoString() string {
	return s.String()
}

// Validate inspects the fields of the type to determine if they are valid.
func (s *DescribeQueryDefinitionsInput) Validate() error {
	invalidParams := request.ErrInvalidParams{Context: "DescribeQueryDefinitionsInput"}
	if s.MaxResults != nil && *s.MaxResults < 1 {
		invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1))
	}
	if s.NextToken != nil && len(*s.NextToken) < 1 {
		invalidParams.Add(request.NewErrParamMinLen("NextToken", 1))
	}
	if s.QueryDefinitionNamePrefix != nil && len(*s.QueryDefinitionNamePrefix) < 1 {
		invalidParams.Add(request.NewErrParamMinLen("QueryDefinitionNamePrefix", 1))
	}

	if invalidParams.Len() > 0 {
		return invalidParams
	}
	return nil
}

// SetMaxResults sets the MaxResults field's value.
func (s *DescribeQueryDefinitionsInput) SetMaxResults(v int64) *DescribeQueryDefinitionsInput {
	s.MaxResults = &v
	return s
}

// SetNextToken sets the NextToken field's value.
func (s *DescribeQueryDefinitionsInput) SetNextToken(v string) *DescribeQueryDefinitionsInput {
	s.NextToken = &v
	return s
}

// SetQueryDefinitionNamePrefix sets the QueryDefinitionNamePrefix field's value.
func (s *DescribeQueryDefinitionsInput) SetQueryDefinitionNamePrefix(v string) *DescribeQueryDefinitionsInput {
	s.QueryDefinitionNamePrefix = &v
	return s
}

// SetQueryLanguage sets the QueryLanguage field's value.
func (s *DescribeQueryDefinitionsInput) SetQueryLanguage(v string) *DescribeQueryDefinitionsInput {
	s.QueryLanguage = &v
	return s
}

type DescribeQueryDefinitionsOutput struct {
	_ struct{} `type:"structure"`

	// The token for the next set of items to return. The token expires after 24
	// hours.
	NextToken *string `locationName:"nextToken" min:"1" type:"string"`

	// The list of query definitions that match your request.
	QueryDefinitions []*QueryDefinition `locationName:"queryDefinitions" type:"list"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s DescribeQueryDefinitionsOutput) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s DescribeQueryDefinitionsOutput) GoString() string {
	return s.String()
}

// SetNextToken sets the NextToken field's value.
func (s *DescribeQueryDefinitionsOutput) SetNextToken(v string) *DescribeQueryDefinitionsOutput {
	s.NextToken = &v
	return s
}

// SetQueryDefinitions sets the QueryDefinitions field's value.
func (s *DescribeQueryDefinitionsOutput) SetQueryDefinitions(v []*QueryDefinition) *DescribeQueryDefinitionsOutput {
	s.QueryDefinitions = v
	return s
}

type DescribeResourcePoliciesInput struct {
	_ struct{} `type:"structure"`

	// The maximum number of resource policies to be displayed with one call of
	// this API.
	Limit *int64 `locationName:"limit" min:"1" type:"integer"`

	// The token for the next set of items to return. The token expires after 24
	// hours.
	NextToken *string `locationName:"nextToken" min:"1" type:"string"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s DescribeResourcePoliciesInput) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s DescribeResourcePoliciesInput) GoString() string {
	return s.String()
}

// Validate inspects the fields of the type to determine if they are valid.
func (s *DescribeResourcePoliciesInput) Validate() error {
	invalidParams := request.ErrInvalidParams{Context: "DescribeResourcePoliciesInput"}
	if s.Limit != nil && *s.Limit < 1 {
		invalidParams.Add(request.NewErrParamMinValue("Limit", 1))
	}
	if s.NextToken != nil && len(*s.NextToken) < 1 {
		invalidParams.Add(request.NewErrParamMinLen("NextToken", 1))
	}

	if invalidParams.Len() > 0 {
		return invalidParams
	}
	return nil
}

// SetLimit sets the Limit field's value.
func (s *DescribeResourcePoliciesInput) SetLimit(v int64) *DescribeResourcePoliciesInput {
	s.Limit = &v
	return s
}

// SetNextToken sets the NextToken field's value.
func (s *DescribeResourcePoliciesInput) SetNextToken(v string) *DescribeResourcePoliciesInput {
	s.NextToken = &v
	return s
}

type DescribeResourcePoliciesOutput struct {
	_ struct{} `type:"structure"`

	// The token for the next set of items to return. The token expires after 24
	// hours.
	NextToken *string `locationName:"nextToken" min:"1" type:"string"`

	// The resource policies that exist in this account.
	ResourcePolicies []*ResourcePolicy `locationName:"resourcePolicies" type:"list"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s DescribeResourcePoliciesOutput) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s DescribeResourcePoliciesOutput) GoString() string {
	return s.String()
}

// SetNextToken sets the NextToken field's value.
func (s *DescribeResourcePoliciesOutput) SetNextToken(v string) *DescribeResourcePoliciesOutput {
	s.NextToken = &v
	return s
}

// SetResourcePolicies sets the ResourcePolicies field's value.
func (s *DescribeResourcePoliciesOutput) SetResourcePolicies(v []*ResourcePolicy) *DescribeResourcePoliciesOutput {
	s.ResourcePolicies = v
	return s
}

type DescribeSubscriptionFiltersInput struct {
	_ struct{} `type:"structure"`

	// The prefix to match. If you don't specify a value, no prefix filter is applied.
	FilterNamePrefix *string `locationName:"filterNamePrefix" min:"1" type:"string"`

	// The maximum number of items returned. If you don't specify a value, the default
	// is up to 50 items.
	Limit *int64 `locationName:"limit" min:"1" type:"integer"`

	// The name of the log group.
	//
	// LogGroupName is a required field
	LogGroupName *string `locationName:"logGroupName" min:"1" type:"string" required:"true"`

	// The token for the next set of items to return. (You received this token from
	// a previous call.)
	NextToken *string `locationName:"nextToken" min:"1" type:"string"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s DescribeSubscriptionFiltersInput) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s DescribeSubscriptionFiltersInput) GoString() string {
	return s.String()
}

// Validate inspects the fields of the type to determine if they are valid.
func (s *DescribeSubscriptionFiltersInput) Validate() error {
	invalidParams := request.ErrInvalidParams{Context: "DescribeSubscriptionFiltersInput"}
	if s.FilterNamePrefix != nil && len(*s.FilterNamePrefix) < 1 {
		invalidParams.Add(request.NewErrParamMinLen("FilterNamePrefix", 1))
	}
	if s.Limit != nil && *s.Limit < 1 {
		invalidParams.Add(request.NewErrParamMinValue("Limit", 1))
	}
	if s.LogGroupName == nil {
		invalidParams.Add(request.NewErrParamRequired("LogGroupName"))
	}
	if s.LogGroupName != nil && len(*s.LogGroupName) < 1 {
		invalidParams.Add(request.NewErrParamMinLen("LogGroupName", 1))
	}
	if s.NextToken != nil && len(*s.NextToken) < 1 {
		invalidParams.Add(request.NewErrParamMinLen("NextToken", 1))
	}

	if invalidParams.Len() > 0 {
		return invalidParams
	}
	return nil
}

// SetFilterNamePrefix sets the FilterNamePrefix field's value.
func (s *DescribeSubscriptionFiltersInput) SetFilterNamePrefix(v string) *DescribeSubscriptionFiltersInput {
	s.FilterNamePrefix = &v
	return s
}

// SetLimit sets the Limit field's value.
func (s *DescribeSubscriptionFiltersInput) SetLimit(v int64) *DescribeSubscriptionFiltersInput {
	s.Limit = &v
	return s
}

// SetLogGroupName sets the LogGroupName field's value.
func (s *DescribeSubscriptionFiltersInput) SetLogGroupName(v string) *DescribeSubscriptionFiltersInput {
	s.LogGroupName = &v
	return s
}

// SetNextToken sets the NextToken field's value.
func (s *DescribeSubscriptionFiltersInput) SetNextToken(v string) *DescribeSubscriptionFiltersInput {
	s.NextToken = &v
	return s
}

type DescribeSubscriptionFiltersOutput struct {
	_ struct{} `type:"structure"`

	// The token for the next set of items to return. The token expires after 24
	// hours.
	NextToken *string `locationName:"nextToken" min:"1" type:"string"`

	// The subscription filters.
	SubscriptionFilters []*SubscriptionFilter `locationName:"subscriptionFilters" type:"list"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s DescribeSubscriptionFiltersOutput) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s DescribeSubscriptionFiltersOutput) GoString() string {
	return s.String()
}

// SetNextToken sets the NextToken field's value.
func (s *DescribeSubscriptionFiltersOutput) SetNextToken(v string) *DescribeSubscriptionFiltersOutput {
	s.NextToken = &v
	return s
}

// SetSubscriptionFilters sets the SubscriptionFilters field's value.
func (s *DescribeSubscriptionFiltersOutput) SetSubscriptionFilters(v []*SubscriptionFilter) *DescribeSubscriptionFiltersOutput {
	s.SubscriptionFilters = v
	return s
}

// Represents a cross-account destination that receives subscription log events.
type Destination struct {
	_ struct{} `type:"structure"`

	// An IAM policy document that governs which Amazon Web Services accounts can
	// create subscription filters against this destination.
	AccessPolicy *string `locationName:"accessPolicy" min:"1" type:"string"`

	// The ARN of this destination.
	Arn *string `locationName:"arn" type:"string"`

	// The creation time of the destination, expressed as the number of milliseconds
	// after Jan 1, 1970 00:00:00 UTC.
	CreationTime *int64 `locationName:"creationTime" type:"long"`

	// The name of the destination.
	DestinationName *string `locationName:"destinationName" min:"1" type:"string"`

	// A role for impersonation, used when delivering log events to the target.
	RoleArn *string `locationName:"roleArn" min:"1" type:"string"`

	// The Amazon Resource Name (ARN) of the physical target where the log events
	// are delivered (for example, a Kinesis stream).
	TargetArn *string `locationName:"targetArn" min:"1" type:"string"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s Destination) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s Destination) GoString() string {
	return s.String()
}

// SetAccessPolicy sets the AccessPolicy field's value.
func (s *Destination) SetAccessPolicy(v string) *Destination {
	s.AccessPolicy = &v
	return s
}

// SetArn sets the Arn field's value.
func (s *Destination) SetArn(v string) *Destination {
	s.Arn = &v
	return s
}

// SetCreationTime sets the CreationTime field's value.
func (s *Destination) SetCreationTime(v int64) *Destination {
	s.CreationTime = &v
	return s
}

// SetDestinationName sets the DestinationName field's value.
func (s *Destination) SetDestinationName(v string) *Destination {
	s.DestinationName = &v
	return s
}

// SetRoleArn sets the RoleArn field's value.
func (s *Destination) SetRoleArn(v string) *Destination {
	s.RoleArn = &v
	return s
}

// SetTargetArn sets the TargetArn field's value.
func (s *Destination) SetTargetArn(v string) *Destination {
	s.TargetArn = &v
	return s
}

type DisassociateKmsKeyInput struct {
	_ struct{} `type:"structure"`

	// The name of the log group.
	//
	// In your DisassociateKmsKey operation, you must specify either the resourceIdentifier
	// parameter or the logGroup parameter, but you can't specify both.
	LogGroupName *string `locationName:"logGroupName" min:"1" type:"string"`

	// Specifies the target for this operation. You must specify one of the following:
	//
	//    * Specify the ARN of a log group to stop having CloudWatch Logs use the
	//    KMS key to encrypt log events that are ingested and stored by that log
	//    group. After you run this operation, CloudWatch Logs encrypts ingested
	//    log events with the default CloudWatch Logs method. The log group ARN
	//    must be in the following format. Replace REGION and ACCOUNT_ID with your
	//    Region and account ID. arn:aws:logs:REGION:ACCOUNT_ID:log-group:LOG_GROUP_NAME
	//
	//    * Specify the following ARN to stop using this key to encrypt the results
	//    of future StartQuery (https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_StartQuery.html)
	//    operations in this account. Replace REGION and ACCOUNT_ID with your Region
	//    and account ID. arn:aws:logs:REGION:ACCOUNT_ID:query-result:*
	//
	// In your DisssociateKmsKey operation, you must specify either the resourceIdentifier
	// parameter or the logGroup parameter, but you can't specify both.
	ResourceIdentifier *string `locationName:"resourceIdentifier" min:"1" type:"string"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s DisassociateKmsKeyInput) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s DisassociateKmsKeyInput) GoString() string {
	return s.String()
}

// Validate inspects the fields of the type to determine if they are valid.
func (s *DisassociateKmsKeyInput) Validate() error {
	invalidParams := request.ErrInvalidParams{Context: "DisassociateKmsKeyInput"}
	if s.LogGroupName != nil && len(*s.LogGroupName) < 1 {
		invalidParams.Add(request.NewErrParamMinLen("LogGroupName", 1))
	}
	if s.ResourceIdentifier != nil && len(*s.ResourceIdentifier) < 1 {
		invalidParams.Add(request.NewErrParamMinLen("ResourceIdentifier", 1))
	}

	if invalidParams.Len() > 0 {
		return invalidParams
	}
	return nil
}

// SetLogGroupName sets the LogGroupName field's value.
func (s *DisassociateKmsKeyInput) SetLogGroupName(v string) *DisassociateKmsKeyInput {
	s.LogGroupName = &v
	return s
}

// SetResourceIdentifier sets the ResourceIdentifier field's value.
func (s *DisassociateKmsKeyInput) SetResourceIdentifier(v string) *DisassociateKmsKeyInput {
	s.ResourceIdentifier = &v
	return s
}

type DisassociateKmsKeyOutput struct {
	_ struct{} `type:"structure"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s DisassociateKmsKeyOutput) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s DisassociateKmsKeyOutput) GoString() string {
	return s.String()
}

// The entity associated with the log events in a PutLogEvents call.
type Entity struct {
	_ struct{} `type:"structure"`

	// Additional attributes of the entity that are not used to specify the identity
	// of the entity. A list of key-value pairs.
	//
	// For details about how to use the attributes, see How to add related information
	// to telemetry (https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/adding-your-own-related-telemetry.html)
	// in the CloudWatch User Guide.
	Attributes map[string]*string `locationName:"attributes" type:"map"`

	// The attributes of the entity which identify the specific entity, as a list
	// of key-value pairs. Entities with the same keyAttributes are considered to
	// be the same entity.
	//
	// There are five allowed attributes (key names): Type, ResourceType, Identifier
	// Name, and Environment.
	//
	// For details about how to use the key attributes, see How to add related information
	// to telemetry (https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/adding-your-own-related-telemetry.html)
	// in the CloudWatch User Guide.
	KeyAttributes map[string]*string `locationName:"keyAttributes" min:"2" type:"map"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s Entity) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s Entity) GoString() string {
	return s.String()
}

// Validate inspects the fields of the type to determine if they are valid.
func (s *Entity) Validate() error {
	invalidParams := request.ErrInvalidParams{Context: "Entity"}
	if s.KeyAttributes != nil && len(s.KeyAttributes) < 2 {
		invalidParams.Add(request.NewErrParamMinLen("KeyAttributes", 2))
	}

	if invalidParams.Len() > 0 {
		return invalidParams
	}
	return nil
}

// SetAttributes sets the Attributes field's value.
func (s *Entity) SetAttributes(v map[string]*string) *Entity {
	s.Attributes = v
	return s
}

// SetKeyAttributes sets the KeyAttributes field's value.
func (s *Entity) SetKeyAttributes(v map[string]*string) *Entity {
	s.KeyAttributes = v
	return s
}

// Represents an export task.
type ExportTask struct {
	_ struct{} `type:"structure"`

	// The name of the S3 bucket to which the log data was exported.
	Destination *string `locationName:"destination" min:"1" type:"string"`

	// The prefix that was used as the start of Amazon S3 key for every object exported.
	DestinationPrefix *string `locationName:"destinationPrefix" type:"string"`

	// Execution information about the export task.
	ExecutionInfo *ExportTaskExecutionInfo `locationName:"executionInfo" type:"structure"`

	// The start time, expressed as the number of milliseconds after Jan 1, 1970
	// 00:00:00 UTC. Events with a timestamp before this time are not exported.
	From *int64 `locationName:"from" type:"long"`

	// The name of the log group from which logs data was exported.
	LogGroupName *string `locationName:"logGroupName" min:"1" type:"string"`

	// The status of the export task.
	Status *ExportTaskStatus `locationName:"status" type:"structure"`

	// The ID of the export task.
	TaskId *string `locationName:"taskId" min:"1" type:"string"`

	// The name of the export task.
	TaskName *string `locationName:"taskName" min:"1" type:"string"`

	// The end time, expressed as the number of milliseconds after Jan 1, 1970 00:00:00
	// UTC. Events with a timestamp later than this time are not exported.
	To *int64 `locationName:"to" type:"long"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s ExportTask) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s ExportTask) GoString() string {
	return s.String()
}

// SetDestination sets the Destination field's value.
func (s *ExportTask) SetDestination(v string) *ExportTask {
	s.Destination = &v
	return s
}

// SetDestinationPrefix sets the DestinationPrefix field's value.
func (s *ExportTask) SetDestinationPrefix(v string) *ExportTask {
	s.DestinationPrefix = &v
	return s
}

// SetExecutionInfo sets the ExecutionInfo field's value.
func (s *ExportTask) SetExecutionInfo(v *ExportTaskExecutionInfo) *ExportTask {
	s.ExecutionInfo = v
	return s
}

// SetFrom sets the From field's value.
func (s *ExportTask) SetFrom(v int64) *ExportTask {
	s.From = &v
	return s
}

// SetLogGroupName sets the LogGroupName field's value.
func (s *ExportTask) SetLogGroupName(v string) *ExportTask {
	s.LogGroupName = &v
	return s
}

// SetStatus sets the Status field's value.
func (s *ExportTask) SetStatus(v *ExportTaskStatus) *ExportTask {
	s.Status = v
	return s
}

// SetTaskId sets the TaskId field's value.
func (s *ExportTask) SetTaskId(v string) *ExportTask {
	s.TaskId = &v
	return s
}

// SetTaskName sets the TaskName field's value.
func (s *ExportTask) SetTaskName(v string) *ExportTask {
	s.TaskName = &v
	return s
}

// SetTo sets the To field's value.
func (s *ExportTask) SetTo(v int64) *ExportTask {
	s.To = &v
	return s
}

// Represents the status of an export task.
type ExportTaskExecutionInfo struct {
	_ struct{} `type:"structure"`

	// The completion time of the export task, expressed as the number of milliseconds
	// after Jan 1, 1970 00:00:00 UTC.
	CompletionTime *int64 `locationName:"completionTime" type:"long"`

	// The creation time of the export task, expressed as the number of milliseconds
	// after Jan 1, 1970 00:00:00 UTC.
	CreationTime *int64 `locationName:"creationTime" type:"long"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s ExportTaskExecutionInfo) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s ExportTaskExecutionInfo) GoString() string {
	return s.String()
}

// SetCompletionTime sets the CompletionTime field's value.
func (s *ExportTaskExecutionInfo) SetCompletionTime(v int64) *ExportTaskExecutionInfo {
	s.CompletionTime = &v
	return s
}

// SetCreationTime sets the CreationTime field's value.
func (s *ExportTaskExecutionInfo) SetCreationTime(v int64) *ExportTaskExecutionInfo {
	s.CreationTime = &v
	return s
}

// Represents the status of an export task.
type ExportTaskStatus struct {
	_ struct{} `type:"structure"`

	// The status code of the export task.
	Code *string `locationName:"code" type:"string" enum:"ExportTaskStatusCode"`

	// The status message related to the status code.
	Message *string `locationName:"message" type:"string"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s ExportTaskStatus) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s ExportTaskStatus) GoString() string {
	return s.String()
}

// SetCode sets the Code field's value.
func (s *ExportTaskStatus) SetCode(v string) *ExportTaskStatus {
	s.Code = &v
	return s
}

// SetMessage sets the Message field's value.
func (s *ExportTaskStatus) SetMessage(v string) *ExportTaskStatus {
	s.Message = &v
	return s
}

// This structure describes one log event field that is used as an index in
// at least one index policy in this account.
type FieldIndex struct {
	_ struct{} `type:"structure"`

	// The string that this field index matches.
	FieldIndexName *string `locationName:"fieldIndexName" min:"1" type:"string"`

	// The time and date of the earliest log event that matches this field index,
	// after the index policy that contains it was created.
	FirstEventTime *int64 `locationName:"firstEventTime" type:"long"`

	// The time and date of the most recent log event that matches this field index.
	LastEventTime *int64 `locationName:"lastEventTime" type:"long"`

	// The most recent time that CloudWatch Logs scanned ingested log events to
	// search for this field index to improve the speed of future CloudWatch Logs
	// Insights queries that search for this field index.
	LastScanTime *int64 `locationName:"lastScanTime" type:"long"`

	// If this field index appears in an index policy that applies only to a single
	// log group, the ARN of that log group is displayed here.
	LogGroupIdentifier *string `locationName:"logGroupIdentifier" min:"1" type:"string"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s FieldIndex) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s FieldIndex) GoString() string {
	return s.String()
}

// SetFieldIndexName sets the FieldIndexName field's value.
func (s *FieldIndex) SetFieldIndexName(v string) *FieldIndex {
	s.FieldIndexName = &v
	return s
}

// SetFirstEventTime sets the FirstEventTime field's value.
func (s *FieldIndex) SetFirstEventTime(v int64) *FieldIndex {
	s.FirstEventTime = &v
	return s
}

// SetLastEventTime sets the LastEventTime field's value.
func (s *FieldIndex) SetLastEventTime(v int64) *FieldIndex {
	s.LastEventTime = &v
	return s
}

// SetLastScanTime sets the LastScanTime field's value.
func (s *FieldIndex) SetLastScanTime(v int64) *FieldIndex {
	s.LastScanTime = &v
	return s
}

// SetLogGroupIdentifier sets the LogGroupIdentifier field's value.
func (s *FieldIndex) SetLogGroupIdentifier(v string) *FieldIndex {
	s.LogGroupIdentifier = &v
	return s
}

type FilterLogEventsInput struct {
	_ struct{} `type:"structure"`

	// The end of the time range, expressed as the number of milliseconds after
	// Jan 1, 1970 00:00:00 UTC. Events with a timestamp later than this time are
	// not returned.
	EndTime *int64 `locationName:"endTime" type:"long"`

	// The filter pattern to use. For more information, see Filter and Pattern Syntax
	// (https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/FilterAndPatternSyntax.html).
	//
	// If not provided, all the events are matched.
	FilterPattern *string `locationName:"filterPattern" type:"string"`

	// If the value is true, the operation attempts to provide responses that contain
	// events from multiple log streams within the log group, interleaved in a single
	// response. If the value is false, all the matched log events in the first
	// log stream are searched first, then those in the next log stream, and so
	// on.
	//
	// Important As of June 17, 2019, this parameter is ignored and the value is
	// assumed to be true. The response from this operation always interleaves events
	// from multiple log streams within a log group.
	//
	// Deprecated: Starting on June 17, 2019, this parameter will be ignored and the value will be assumed to be true. The response from this operation will always interleave events from multiple log streams within a log group.
	Interleaved *bool `locationName:"interleaved" deprecated:"true" type:"boolean"`

	// The maximum number of events to return. The default is 10,000 events.
	Limit *int64 `locationName:"limit" min:"1" type:"integer"`

	// Specify either the name or ARN of the log group to view log events from.
	// If the log group is in a source account and you are using a monitoring account,
	// you must use the log group ARN.
	//
	// You must include either logGroupIdentifier or logGroupName, but not both.
	LogGroupIdentifier *string `locationName:"logGroupIdentifier" min:"1" type:"string"`

	// The name of the log group to search.
	//
	// You must include either logGroupIdentifier or logGroupName, but not both.
	LogGroupName *string `locationName:"logGroupName" min:"1" type:"string"`

	// Filters the results to include only events from log streams that have names
	// starting with this prefix.
	//
	// If you specify a value for both logStreamNamePrefix and logStreamNames, the
	// action returns an InvalidParameterException error.
	LogStreamNamePrefix *string `locationName:"logStreamNamePrefix" min:"1" type:"string"`

	// Filters the results to only logs from the log streams in this list.
	//
	// If you specify a value for both logStreamNames and logStreamNamePrefix, the
	// action returns an InvalidParameterException error.
	LogStreamNames []*string `locationName:"logStreamNames" min:"1" type:"list"`

	// The token for the next set of events to return. (You received this token
	// from a previous call.)
	NextToken *string `locationName:"nextToken" min:"1" type:"string"`

	// The start of the time range, expressed as the number of milliseconds after
	// Jan 1, 1970 00:00:00 UTC. Events with a timestamp before this time are not
	// returned.
	StartTime *int64 `locationName:"startTime" type:"long"`

	// Specify true to display the log event fields with all sensitive data unmasked
	// and visible. The default is false.
	//
	// To use this operation with this parameter, you must be signed into an account
	// with the logs:Unmask permission.
	Unmask *bool `locationName:"unmask" type:"boolean"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s FilterLogEventsInput) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s FilterLogEventsInput) GoString() string {
	return s.String()
}

// Validate inspects the fields of the type to determine if they are valid.
func (s *FilterLogEventsInput) Validate() error {
	invalidParams := request.ErrInvalidParams{Context: "FilterLogEventsInput"}
	if s.Limit != nil && *s.Limit < 1 {
		invalidParams.Add(request.NewErrParamMinValue("Limit", 1))
	}
	if s.LogGroupIdentifier != nil && len(*s.LogGroupIdentifier) < 1 {
		invalidParams.Add(request.NewErrParamMinLen("LogGroupIdentifier", 1))
	}
	if s.LogGroupName != nil && len(*s.LogGroupName) < 1 {
		invalidParams.Add(request.NewErrParamMinLen("LogGroupName", 1))
	}
	if s.LogStreamNamePrefix != nil && len(*s.LogStreamNamePrefix) < 1 {
		invalidParams.Add(request.NewErrParamMinLen("LogStreamNamePrefix", 1))
	}
	if s.LogStreamNames != nil && len(s.LogStreamNames) < 1 {
		invalidParams.Add(request.NewErrParamMinLen("LogStreamNames", 1))
	}
	if s.NextToken != nil && len(*s.NextToken) < 1 {
		invalidParams.Add(request.NewErrParamMinLen("NextToken", 1))
	}

	if invalidParams.Len() > 0 {
		return invalidParams
	}
	return nil
}

// SetEndTime sets the EndTime field's value.
func (s *FilterLogEventsInput) SetEndTime(v int64) *FilterLogEventsInput {
	s.EndTime = &v
	return s
}

// SetFilterPattern sets the FilterPattern field's value.
func (s *FilterLogEventsInput) SetFilterPattern(v string) *FilterLogEventsInput {
	s.FilterPattern = &v
	return s
}

// SetInterleaved sets the Interleaved field's value.
func (s *FilterLogEventsInput) SetInterleaved(v bool) *FilterLogEventsInput {
	s.Interleaved = &v
	return s
}

// SetLimit sets the Limit field's value.
func (s *FilterLogEventsInput) SetLimit(v int64) *FilterLogEventsInput {
	s.Limit = &v
	return s
}

// SetLogGroupIdentifier sets the LogGroupIdentifier field's value.
func (s *FilterLogEventsInput) SetLogGroupIdentifier(v string) *FilterLogEventsInput {
	s.LogGroupIdentifier = &v
	return s
}

// SetLogGroupName sets the LogGroupName field's value.
func (s *FilterLogEventsInput) SetLogGroupName(v string) *FilterLogEventsInput {
	s.LogGroupName = &v
	return s
}

// SetLogStreamNamePrefix sets the LogStreamNamePrefix field's value.
func (s *FilterLogEventsInput) SetLogStreamNamePrefix(v string) *FilterLogEventsInput {
	s.LogStreamNamePrefix = &v
	return s
}

// SetLogStreamNames sets the LogStreamNames field's value.
func (s *FilterLogEventsInput) SetLogStreamNames(v []*string) *FilterLogEventsInput {
	s.LogStreamNames = v
	return s
}

// SetNextToken sets the NextToken field's value.
func (s *FilterLogEventsInput) SetNextToken(v string) *FilterLogEventsInput {
	s.NextToken = &v
	return s
}

// SetStartTime sets the StartTime field's value.
func (s *FilterLogEventsInput) SetStartTime(v int64) *FilterLogEventsInput {
	s.StartTime = &v
	return s
}

// SetUnmask sets the Unmask field's value.
func (s *FilterLogEventsInput) SetUnmask(v bool) *FilterLogEventsInput {
	s.Unmask = &v
	return s
}

type FilterLogEventsOutput struct {
	_ struct{} `type:"structure"`

	// The matched events.
	Events []*FilteredLogEvent `locationName:"events" type:"list"`

	// The token to use when requesting the next set of items. The token expires
	// after 24 hours.
	//
	// If the results don't include a nextToken, then pagination is finished.
	NextToken *string `locationName:"nextToken" min:"1" type:"string"`

	// Important As of May 15, 2020, this parameter is no longer supported. This
	// parameter returns an empty list.
	//
	// Indicates which log streams have been searched and whether each has been
	// searched completely.
	SearchedLogStreams []*SearchedLogStream `locationName:"searchedLogStreams" type:"list"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s FilterLogEventsOutput) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s FilterLogEventsOutput) GoString() string {
	return s.String()
}

// SetEvents sets the Events field's value.
func (s *FilterLogEventsOutput) SetEvents(v []*FilteredLogEvent) *FilterLogEventsOutput {
	s.Events = v
	return s
}

// SetNextToken sets the NextToken field's value.
func (s *FilterLogEventsOutput) SetNextToken(v string) *FilterLogEventsOutput {
	s.NextToken = &v
	return s
}

// SetSearchedLogStreams sets the SearchedLogStreams field's value.
func (s *FilterLogEventsOutput) SetSearchedLogStreams(v []*SearchedLogStream) *FilterLogEventsOutput {
	s.SearchedLogStreams = v
	return s
}

// Represents a matched event.
type FilteredLogEvent struct {
	_ struct{} `type:"structure"`

	// The ID of the event.
	EventId *string `locationName:"eventId" type:"string"`

	// The time the event was ingested, expressed as the number of milliseconds
	// after Jan 1, 1970 00:00:00 UTC.
	IngestionTime *int64 `locationName:"ingestionTime" type:"long"`

	// The name of the log stream to which this event belongs.
	LogStreamName *string `locationName:"logStreamName" min:"1" type:"string"`

	// The data contained in the log event.
	Message *string `locationName:"message" min:"1" type:"string"`

	// The time the event occurred, expressed as the number of milliseconds after
	// Jan 1, 1970 00:00:00 UTC.
	Timestamp *int64 `locationName:"timestamp" type:"long"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s FilteredLogEvent) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s FilteredLogEvent) GoString() string {
	return s.String()
}

// SetEventId sets the EventId field's value.
func (s *FilteredLogEvent) SetEventId(v string) *FilteredLogEvent {
	s.EventId = &v
	return s
}

// SetIngestionTime sets the IngestionTime field's value.
func (s *FilteredLogEvent) SetIngestionTime(v int64) *FilteredLogEvent {
	s.IngestionTime = &v
	return s
}

// SetLogStreamName sets the LogStreamName field's value.
func (s *FilteredLogEvent) SetLogStreamName(v string) *FilteredLogEvent {
	s.LogStreamName = &v
	return s
}

// SetMessage sets the Message field's value.
func (s *FilteredLogEvent) SetMessage(v string) *FilteredLogEvent {
	s.Message = &v
	return s
}

// SetTimestamp sets the Timestamp field's value.
func (s *FilteredLogEvent) SetTimestamp(v int64) *FilteredLogEvent {
	s.Timestamp = &v
	return s
}

type GetDataProtectionPolicyInput struct {
	_ struct{} `type:"structure"`

	// The name or ARN of the log group that contains the data protection policy
	// that you want to see.
	//
	// LogGroupIdentifier is a required field
	LogGroupIdentifier *string `locationName:"logGroupIdentifier" min:"1" type:"string" required:"true"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s GetDataProtectionPolicyInput) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s GetDataProtectionPolicyInput) GoString() string {
	return s.String()
}

// Validate inspects the fields of the type to determine if they are valid.
func (s *GetDataProtectionPolicyInput) Validate() error {
	invalidParams := request.ErrInvalidParams{Context: "GetDataProtectionPolicyInput"}
	if s.LogGroupIdentifier == nil {
		invalidParams.Add(request.NewErrParamRequired("LogGroupIdentifier"))
	}
	if s.LogGroupIdentifier != nil && len(*s.LogGroupIdentifier) < 1 {
		invalidParams.Add(request.NewErrParamMinLen("LogGroupIdentifier", 1))
	}

	if invalidParams.Len() > 0 {
		return invalidParams
	}
	return nil
}

// SetLogGroupIdentifier sets the LogGroupIdentifier field's value.
func (s *GetDataProtectionPolicyInput) SetLogGroupIdentifier(v string) *GetDataProtectionPolicyInput {
	s.LogGroupIdentifier = &v
	return s
}

type GetDataProtectionPolicyOutput struct {
	_ struct{} `type:"structure"`

	// The date and time that this policy was most recently updated.
	LastUpdatedTime *int64 `locationName:"lastUpdatedTime" type:"long"`

	// The log group name or ARN that you specified in your request.
	LogGroupIdentifier *string `locationName:"logGroupIdentifier" min:"1" type:"string"`

	// The data protection policy document for this log group.
	PolicyDocument *string `locationName:"policyDocument" type:"string"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s GetDataProtectionPolicyOutput) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s GetDataProtectionPolicyOutput) GoString() string {
	return s.String()
}

// SetLastUpdatedTime sets the LastUpdatedTime field's value.
func (s *GetDataProtectionPolicyOutput) SetLastUpdatedTime(v int64) *GetDataProtectionPolicyOutput {
	s.LastUpdatedTime = &v
	return s
}

// SetLogGroupIdentifier sets the LogGroupIdentifier field's value.
func (s *GetDataProtectionPolicyOutput) SetLogGroupIdentifier(v string) *GetDataProtectionPolicyOutput {
	s.LogGroupIdentifier = &v
	return s
}

// SetPolicyDocument sets the PolicyDocument field's value.
func (s *GetDataProtectionPolicyOutput) SetPolicyDocument(v string) *GetDataProtectionPolicyOutput {
	s.PolicyDocument = &v
	return s
}

type GetDeliveryDestinationInput struct {
	_ struct{} `type:"structure"`

	// The name of the delivery destination that you want to retrieve.
	//
	// Name is a required field
	Name *string `locationName:"name" min:"1" type:"string" required:"true"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s GetDeliveryDestinationInput) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s GetDeliveryDestinationInput) GoString() string {
	return s.String()
}

// Validate inspects the fields of the type to determine if they are valid.
func (s *GetDeliveryDestinationInput) Validate() error {
	invalidParams := request.ErrInvalidParams{Context: "GetDeliveryDestinationInput"}
	if s.Name == nil {
		invalidParams.Add(request.NewErrParamRequired("Name"))
	}
	if s.Name != nil && len(*s.Name) < 1 {
		invalidParams.Add(request.NewErrParamMinLen("Name", 1))
	}

	if invalidParams.Len() > 0 {
		return invalidParams
	}
	return nil
}

// SetName sets the Name field's value.
func (s *GetDeliveryDestinationInput) SetName(v string) *GetDeliveryDestinationInput {
	s.Name = &v
	return s
}

type GetDeliveryDestinationOutput struct {
	_ struct{} `type:"structure"`

	// A structure containing information about the delivery destination.
	DeliveryDestination *DeliveryDestination `locationName:"deliveryDestination" type:"structure"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s GetDeliveryDestinationOutput) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s GetDeliveryDestinationOutput) GoString() string {
	return s.String()
}

// SetDeliveryDestination sets the DeliveryDestination field's value.
func (s *GetDeliveryDestinationOutput) SetDeliveryDestination(v *DeliveryDestination) *GetDeliveryDestinationOutput {
	s.DeliveryDestination = v
	return s
}

type GetDeliveryDestinationPolicyInput struct {
	_ struct{} `type:"structure"`

	// The name of the delivery destination that you want to retrieve the policy
	// of.
	//
	// DeliveryDestinationName is a required field
	DeliveryDestinationName *string `locationName:"deliveryDestinationName" min:"1" type:"string" required:"true"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s GetDeliveryDestinationPolicyInput) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s GetDeliveryDestinationPolicyInput) GoString() string {
	return s.String()
}

// Validate inspects the fields of the type to determine if they are valid.
func (s *GetDeliveryDestinationPolicyInput) Validate() error {
	invalidParams := request.ErrInvalidParams{Context: "GetDeliveryDestinationPolicyInput"}
	if s.DeliveryDestinationName == nil {
		invalidParams.Add(request.NewErrParamRequired("DeliveryDestinationName"))
	}
	if s.DeliveryDestinationName != nil && len(*s.DeliveryDestinationName) < 1 {
		invalidParams.Add(request.NewErrParamMinLen("DeliveryDestinationName", 1))
	}

	if invalidParams.Len() > 0 {
		return invalidParams
	}
	return nil
}

// SetDeliveryDestinationName sets the DeliveryDestinationName field's value.
func (s *GetDeliveryDestinationPolicyInput) SetDeliveryDestinationName(v string) *GetDeliveryDestinationPolicyInput {
	s.DeliveryDestinationName = &v
	return s
}

type GetDeliveryDestinationPolicyOutput struct {
	_ struct{} `type:"structure"`

	// The IAM policy for this delivery destination.
	Policy *Policy `locationName:"policy" type:"structure"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s GetDeliveryDestinationPolicyOutput) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s GetDeliveryDestinationPolicyOutput) GoString() string {
	return s.String()
}

// SetPolicy sets the Policy field's value.
func (s *GetDeliveryDestinationPolicyOutput) SetPolicy(v *Policy) *GetDeliveryDestinationPolicyOutput {
	s.Policy = v
	return s
}

type GetDeliveryInput struct {
	_ struct{} `type:"structure"`

	// The ID of the delivery that you want to retrieve.
	//
	// Id is a required field
	Id *string `locationName:"id" min:"1" type:"string" required:"true"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s GetDeliveryInput) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s GetDeliveryInput) GoString() string {
	return s.String()
}

// Validate inspects the fields of the type to determine if they are valid.
func (s *GetDeliveryInput) Validate() error {
	invalidParams := request.ErrInvalidParams{Context: "GetDeliveryInput"}
	if s.Id == nil {
		invalidParams.Add(request.NewErrParamRequired("Id"))
	}
	if s.Id != nil && len(*s.Id) < 1 {
		invalidParams.Add(request.NewErrParamMinLen("Id", 1))
	}

	if invalidParams.Len() > 0 {
		return invalidParams
	}
	return nil
}

// SetId sets the Id field's value.
func (s *GetDeliveryInput) SetId(v string) *GetDeliveryInput {
	s.Id = &v
	return s
}

type GetDeliveryOutput struct {
	_ struct{} `type:"structure"`

	// A structure that contains information about the delivery.
	Delivery *Delivery `locationName:"delivery" type:"structure"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s GetDeliveryOutput) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s GetDeliveryOutput) GoString() string {
	return s.String()
}

// SetDelivery sets the Delivery field's value.
func (s *GetDeliveryOutput) SetDelivery(v *Delivery) *GetDeliveryOutput {
	s.Delivery = v
	return s
}

type GetDeliverySourceInput struct {
	_ struct{} `type:"structure"`

	// The name of the delivery source that you want to retrieve.
	//
	// Name is a required field
	Name *string `locationName:"name" min:"1" type:"string" required:"true"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s GetDeliverySourceInput) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s GetDeliverySourceInput) GoString() string {
	return s.String()
}

// Validate inspects the fields of the type to determine if they are valid.
func (s *GetDeliverySourceInput) Validate() error {
	invalidParams := request.ErrInvalidParams{Context: "GetDeliverySourceInput"}
	if s.Name == nil {
		invalidParams.Add(request.NewErrParamRequired("Name"))
	}
	if s.Name != nil && len(*s.Name) < 1 {
		invalidParams.Add(request.NewErrParamMinLen("Name", 1))
	}

	if invalidParams.Len() > 0 {
		return invalidParams
	}
	return nil
}

// SetName sets the Name field's value.
func (s *GetDeliverySourceInput) SetName(v string) *GetDeliverySourceInput {
	s.Name = &v
	return s
}

type GetDeliverySourceOutput struct {
	_ struct{} `type:"structure"`

	// A structure containing information about the delivery source.
	DeliverySource *DeliverySource `locationName:"deliverySource" type:"structure"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s GetDeliverySourceOutput) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s GetDeliverySourceOutput) GoString() string {
	return s.String()
}

// SetDeliverySource sets the DeliverySource field's value.
func (s *GetDeliverySourceOutput) SetDeliverySource(v *DeliverySource) *GetDeliverySourceOutput {
	s.DeliverySource = v
	return s
}

type GetIntegrationInput struct {
	_ struct{} `type:"structure"`

	// The name of the integration that you want to find information about. To find
	// the name of your integration, use ListIntegrations (https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_ListIntegrations.html)
	//
	// IntegrationName is a required field
	IntegrationName *string `locationName:"integrationName" min:"1" type:"string" required:"true"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s GetIntegrationInput) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s GetIntegrationInput) GoString() string {
	return s.String()
}

// Validate inspects the fields of the type to determine if they are valid.
func (s *GetIntegrationInput) Validate() error {
	invalidParams := request.ErrInvalidParams{Context: "GetIntegrationInput"}
	if s.IntegrationName == nil {
		invalidParams.Add(request.NewErrParamRequired("IntegrationName"))
	}
	if s.IntegrationName != nil && len(*s.IntegrationName) < 1 {
		invalidParams.Add(request.NewErrParamMinLen("IntegrationName", 1))
	}

	if invalidParams.Len() > 0 {
		return invalidParams
	}
	return nil
}

// SetIntegrationName sets the IntegrationName field's value.
func (s *GetIntegrationInput) SetIntegrationName(v string) *GetIntegrationInput {
	s.IntegrationName = &v
	return s
}

type GetIntegrationOutput struct {
	_ struct{} `type:"structure"`

	// A structure that contains information about the integration configuration.
	// For an integration with OpenSearch Service, this includes information about
	// OpenSearch Service resources such as the collection, the workspace, and policies.
	IntegrationDetails *IntegrationDetails `locationName:"integrationDetails" type:"structure"`

	// The name of the integration.
	IntegrationName *string `locationName:"integrationName" min:"1" type:"string"`

	// The current status of this integration.
	IntegrationStatus *string `locationName:"integrationStatus" type:"string" enum:"IntegrationStatus"`

	// The type of integration. Integrations with OpenSearch Service have the type
	// OPENSEARCH.
	IntegrationType *string `locationName:"integrationType" type:"string" enum:"IntegrationType"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s GetIntegrationOutput) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s GetIntegrationOutput) GoString() string {
	return s.String()
}

// SetIntegrationDetails sets the IntegrationDetails field's value.
func (s *GetIntegrationOutput) SetIntegrationDetails(v *IntegrationDetails) *GetIntegrationOutput {
	s.IntegrationDetails = v
	return s
}

// SetIntegrationName sets the IntegrationName field's value.
func (s *GetIntegrationOutput) SetIntegrationName(v string) *GetIntegrationOutput {
	s.IntegrationName = &v
	return s
}

// SetIntegrationStatus sets the IntegrationStatus field's value.
func (s *GetIntegrationOutput) SetIntegrationStatus(v string) *GetIntegrationOutput {
	s.IntegrationStatus = &v
	return s
}

// SetIntegrationType sets the IntegrationType field's value.
func (s *GetIntegrationOutput) SetIntegrationType(v string) *GetIntegrationOutput {
	s.IntegrationType = &v
	return s
}

type GetLogAnomalyDetectorInput struct {
	_ struct{} `type:"structure"`

	// The ARN of the anomaly detector to retrieve information about. You can find
	// the ARNs of log anomaly detectors in your account by using the ListLogAnomalyDetectors
	// (https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_ListLogAnomalyDetectors.html)
	// operation.
	//
	// AnomalyDetectorArn is a required field
	AnomalyDetectorArn *string `locationName:"anomalyDetectorArn" min:"1" type:"string" required:"true"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s GetLogAnomalyDetectorInput) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s GetLogAnomalyDetectorInput) GoString() string {
	return s.String()
}

// Validate inspects the fields of the type to determine if they are valid.
func (s *GetLogAnomalyDetectorInput) Validate() error {
	invalidParams := request.ErrInvalidParams{Context: "GetLogAnomalyDetectorInput"}
	if s.AnomalyDetectorArn == nil {
		invalidParams.Add(request.NewErrParamRequired("AnomalyDetectorArn"))
	}
	if s.AnomalyDetectorArn != nil && len(*s.AnomalyDetectorArn) < 1 {
		invalidParams.Add(request.NewErrParamMinLen("AnomalyDetectorArn", 1))
	}

	if invalidParams.Len() > 0 {
		return invalidParams
	}
	return nil
}

// SetAnomalyDetectorArn sets the AnomalyDetectorArn field's value.
func (s *GetLogAnomalyDetectorInput) SetAnomalyDetectorArn(v string) *GetLogAnomalyDetectorInput {
	s.AnomalyDetectorArn = &v
	return s
}

type GetLogAnomalyDetectorOutput struct {
	_ struct{} `type:"structure"`

	// Specifies whether the anomaly detector is currently active. To change its
	// status, use the enabled parameter in the UpdateLogAnomalyDetector (https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_UpdateLogAnomalyDetector.html)
	// operation.
	AnomalyDetectorStatus *string `locationName:"anomalyDetectorStatus" type:"string" enum:"AnomalyDetectorStatus"`

	// The number of days used as the life cycle of anomalies. After this time,
	// anomalies are automatically baselined and the anomaly detector model will
	// treat new occurrences of similar event as normal.
	AnomalyVisibilityTime *int64 `locationName:"anomalyVisibilityTime" min:"7" type:"long"`

	// The date and time when this anomaly detector was created.
	CreationTimeStamp *int64 `locationName:"creationTimeStamp" type:"long"`

	// The name of the log anomaly detector
	DetectorName *string `locationName:"detectorName" min:"1" type:"string"`

	// Specifies how often the anomaly detector runs and look for anomalies. Set
	// this value according to the frequency that the log group receives new logs.
	// For example, if the log group receives new log events every 10 minutes, then
	// setting evaluationFrequency to FIFTEEN_MIN might be appropriate.
	EvaluationFrequency *string `locationName:"evaluationFrequency" type:"string" enum:"EvaluationFrequency"`

	// A symbolic description of how CloudWatch Logs should interpret the data in
	// each log event. For example, a log event can contain timestamps, IP addresses,
	// strings, and so on. You use the filter pattern to specify what to look for
	// in the log event message.
	FilterPattern *string `locationName:"filterPattern" type:"string"`

	// The ARN of the KMS key assigned to this anomaly detector, if any.
	KmsKeyId *string `locationName:"kmsKeyId" type:"string"`

	// The date and time when this anomaly detector was most recently modified.
	LastModifiedTimeStamp *int64 `locationName:"lastModifiedTimeStamp" type:"long"`

	// An array of structures, where each structure contains the ARN of a log group
	// associated with this anomaly detector.
	LogGroupArnList []*string `locationName:"logGroupArnList" type:"list"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s GetLogAnomalyDetectorOutput) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s GetLogAnomalyDetectorOutput) GoString() string {
	return s.String()
}

// SetAnomalyDetectorStatus sets the AnomalyDetectorStatus field's value.
func (s *GetLogAnomalyDetectorOutput) SetAnomalyDetectorStatus(v string) *GetLogAnomalyDetectorOutput {
	s.AnomalyDetectorStatus = &v
	return s
}

// SetAnomalyVisibilityTime sets the AnomalyVisibilityTime field's value.
func (s *GetLogAnomalyDetectorOutput) SetAnomalyVisibilityTime(v int64) *GetLogAnomalyDetectorOutput {
	s.AnomalyVisibilityTime = &v
	return s
}

// SetCreationTimeStamp sets the CreationTimeStamp field's value.
func (s *GetLogAnomalyDetectorOutput) SetCreationTimeStamp(v int64) *GetLogAnomalyDetectorOutput {
	s.CreationTimeStamp = &v
	return s
}

// SetDetectorName sets the DetectorName field's value.
func (s *GetLogAnomalyDetectorOutput) SetDetectorName(v string) *GetLogAnomalyDetectorOutput {
	s.DetectorName = &v
	return s
}

// SetEvaluationFrequency sets the EvaluationFrequency field's value.
func (s *GetLogAnomalyDetectorOutput) SetEvaluationFrequency(v string) *GetLogAnomalyDetectorOutput {
	s.EvaluationFrequency = &v
	return s
}

// SetFilterPattern sets the FilterPattern field's value.
func (s *GetLogAnomalyDetectorOutput) SetFilterPattern(v string) *GetLogAnomalyDetectorOutput {
	s.FilterPattern = &v
	return s
}

// SetKmsKeyId sets the KmsKeyId field's value.
func (s *GetLogAnomalyDetectorOutput) SetKmsKeyId(v string) *GetLogAnomalyDetectorOutput {
	s.KmsKeyId = &v
	return s
}

// SetLastModifiedTimeStamp sets the LastModifiedTimeStamp field's value.
func (s *GetLogAnomalyDetectorOutput) SetLastModifiedTimeStamp(v int64) *GetLogAnomalyDetectorOutput {
	s.LastModifiedTimeStamp = &v
	return s
}

// SetLogGroupArnList sets the LogGroupArnList field's value.
func (s *GetLogAnomalyDetectorOutput) SetLogGroupArnList(v []*string) *GetLogAnomalyDetectorOutput {
	s.LogGroupArnList = v
	return s
}

type GetLogEventsInput struct {
	_ struct{} `type:"structure"`

	// The end of the time range, expressed as the number of milliseconds after
	// Jan 1, 1970 00:00:00 UTC. Events with a timestamp equal to or later than
	// this time are not included.
	EndTime *int64 `locationName:"endTime" type:"long"`

	// The maximum number of log events returned. If you don't specify a limit,
	// the default is as many log events as can fit in a response size of 1 MB (up
	// to 10,000 log events).
	Limit *int64 `locationName:"limit" min:"1" type:"integer"`

	// Specify either the name or ARN of the log group to view events from. If the
	// log group is in a source account and you are using a monitoring account,
	// you must use the log group ARN.
	//
	// You must include either logGroupIdentifier or logGroupName, but not both.
	LogGroupIdentifier *string `locationName:"logGroupIdentifier" min:"1" type:"string"`

	// The name of the log group.
	//
	// You must include either logGroupIdentifier or logGroupName, but not both.
	LogGroupName *string `locationName:"logGroupName" min:"1" type:"string"`

	// The name of the log stream.
	//
	// LogStreamName is a required field
	LogStreamName *string `locationName:"logStreamName" min:"1" type:"string" required:"true"`

	// The token for the next set of items to return. (You received this token from
	// a previous call.)
	NextToken *string `locationName:"nextToken" min:"1" type:"string"`

	// If the value is true, the earliest log events are returned first. If the
	// value is false, the latest log events are returned first. The default value
	// is false.
	//
	// If you are using a previous nextForwardToken value as the nextToken in this
	// operation, you must specify true for startFromHead.
	StartFromHead *bool `locationName:"startFromHead" type:"boolean"`

	// The start of the time range, expressed as the number of milliseconds after
	// Jan 1, 1970 00:00:00 UTC. Events with a timestamp equal to this time or later
	// than this time are included. Events with a timestamp earlier than this time
	// are not included.
	StartTime *int64 `locationName:"startTime" type:"long"`

	// Specify true to display the log event fields with all sensitive data unmasked
	// and visible. The default is false.
	//
	// To use this operation with this parameter, you must be signed into an account
	// with the logs:Unmask permission.
	Unmask *bool `locationName:"unmask" type:"boolean"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s GetLogEventsInput) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s GetLogEventsInput) GoString() string {
	return s.String()
}

// Validate inspects the fields of the type to determine if they are valid.
func (s *GetLogEventsInput) Validate() error {
	invalidParams := request.ErrInvalidParams{Context: "GetLogEventsInput"}
	if s.Limit != nil && *s.Limit < 1 {
		invalidParams.Add(request.NewErrParamMinValue("Limit", 1))
	}
	if s.LogGroupIdentifier != nil && len(*s.LogGroupIdentifier) < 1 {
		invalidParams.Add(request.NewErrParamMinLen("LogGroupIdentifier", 1))
	}
	if s.LogGroupName != nil && len(*s.LogGroupName) < 1 {
		invalidParams.Add(request.NewErrParamMinLen("LogGroupName", 1))
	}
	if s.LogStreamName == nil {
		invalidParams.Add(request.NewErrParamRequired("LogStreamName"))
	}
	if s.LogStreamName != nil && len(*s.LogStreamName) < 1 {
		invalidParams.Add(request.NewErrParamMinLen("LogStreamName", 1))
	}
	if s.NextToken != nil && len(*s.NextToken) < 1 {
		invalidParams.Add(request.NewErrParamMinLen("NextToken", 1))
	}

	if invalidParams.Len() > 0 {
		return invalidParams
	}
	return nil
}

// SetEndTime sets the EndTime field's value.
func (s *GetLogEventsInput) SetEndTime(v int64) *GetLogEventsInput {
	s.EndTime = &v
	return s
}

// SetLimit sets the Limit field's value.
func (s *GetLogEventsInput) SetLimit(v int64) *GetLogEventsInput {
	s.Limit = &v
	return s
}

// SetLogGroupIdentifier sets the LogGroupIdentifier field's value.
func (s *GetLogEventsInput) SetLogGroupIdentifier(v string) *GetLogEventsInput {
	s.LogGroupIdentifier = &v
	return s
}

// SetLogGroupName sets the LogGroupName field's value.
func (s *GetLogEventsInput) SetLogGroupName(v string) *GetLogEventsInput {
	s.LogGroupName = &v
	return s
}

// SetLogStreamName sets the LogStreamName field's value.
func (s *GetLogEventsInput) SetLogStreamName(v string) *GetLogEventsInput {
	s.LogStreamName = &v
	return s
}

// SetNextToken sets the NextToken field's value.
func (s *GetLogEventsInput) SetNextToken(v string) *GetLogEventsInput {
	s.NextToken = &v
	return s
}

// SetStartFromHead sets the StartFromHead field's value.
func (s *GetLogEventsInput) SetStartFromHead(v bool) *GetLogEventsInput {
	s.StartFromHead = &v
	return s
}

// SetStartTime sets the StartTime field's value.
func (s *GetLogEventsInput) SetStartTime(v int64) *GetLogEventsInput {
	s.StartTime = &v
	return s
}

// SetUnmask sets the Unmask field's value.
func (s *GetLogEventsInput) SetUnmask(v bool) *GetLogEventsInput {
	s.Unmask = &v
	return s
}

type GetLogEventsOutput struct {
	_ struct{} `type:"structure"`

	// The events.
	Events []*OutputLogEvent `locationName:"events" type:"list"`

	// The token for the next set of items in the backward direction. The token
	// expires after 24 hours. This token is not null. If you have reached the end
	// of the stream, it returns the same token you passed in.
	NextBackwardToken *string `locationName:"nextBackwardToken" min:"1" type:"string"`

	// The token for the next set of items in the forward direction. The token expires
	// after 24 hours. If you have reached the end of the stream, it returns the
	// same token you passed in.
	NextForwardToken *string `locationName:"nextForwardToken" min:"1" type:"string"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s GetLogEventsOutput) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s GetLogEventsOutput) GoString() string {
	return s.String()
}

// SetEvents sets the Events field's value.
func (s *GetLogEventsOutput) SetEvents(v []*OutputLogEvent) *GetLogEventsOutput {
	s.Events = v
	return s
}

// SetNextBackwardToken sets the NextBackwardToken field's value.
func (s *GetLogEventsOutput) SetNextBackwardToken(v string) *GetLogEventsOutput {
	s.NextBackwardToken = &v
	return s
}

// SetNextForwardToken sets the NextForwardToken field's value.
func (s *GetLogEventsOutput) SetNextForwardToken(v string) *GetLogEventsOutput {
	s.NextForwardToken = &v
	return s
}

type GetLogGroupFieldsInput struct {
	_ struct{} `type:"structure"`

	// Specify either the name or ARN of the log group to view. If the log group
	// is in a source account and you are using a monitoring account, you must specify
	// the ARN.
	//
	// You must include either logGroupIdentifier or logGroupName, but not both.
	LogGroupIdentifier *string `locationName:"logGroupIdentifier" min:"1" type:"string"`

	// The name of the log group to search.
	//
	// You must include either logGroupIdentifier or logGroupName, but not both.
	LogGroupName *string `locationName:"logGroupName" min:"1" type:"string"`

	// The time to set as the center of the query. If you specify time, the 8 minutes
	// before and 8 minutes after this time are searched. If you omit time, the
	// most recent 15 minutes up to the current time are searched.
	//
	// The time value is specified as epoch time, which is the number of seconds
	// since January 1, 1970, 00:00:00 UTC.
	Time *int64 `locationName:"time" type:"long"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s GetLogGroupFieldsInput) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s GetLogGroupFieldsInput) GoString() string {
	return s.String()
}

// Validate inspects the fields of the type to determine if they are valid.
func (s *GetLogGroupFieldsInput) Validate() error {
	invalidParams := request.ErrInvalidParams{Context: "GetLogGroupFieldsInput"}
	if s.LogGroupIdentifier != nil && len(*s.LogGroupIdentifier) < 1 {
		invalidParams.Add(request.NewErrParamMinLen("LogGroupIdentifier", 1))
	}
	if s.LogGroupName != nil && len(*s.LogGroupName) < 1 {
		invalidParams.Add(request.NewErrParamMinLen("LogGroupName", 1))
	}

	if invalidParams.Len() > 0 {
		return invalidParams
	}
	return nil
}

// SetLogGroupIdentifier sets the LogGroupIdentifier field's value.
func (s *GetLogGroupFieldsInput) SetLogGroupIdentifier(v string) *GetLogGroupFieldsInput {
	s.LogGroupIdentifier = &v
	return s
}

// SetLogGroupName sets the LogGroupName field's value.
func (s *GetLogGroupFieldsInput) SetLogGroupName(v string) *GetLogGroupFieldsInput {
	s.LogGroupName = &v
	return s
}

// SetTime sets the Time field's value.
func (s *GetLogGroupFieldsInput) SetTime(v int64) *GetLogGroupFieldsInput {
	s.Time = &v
	return s
}

type GetLogGroupFieldsOutput struct {
	_ struct{} `type:"structure"`

	// The array of fields found in the query. Each object in the array contains
	// the name of the field, along with the percentage of time it appeared in the
	// log events that were queried.
	LogGroupFields []*LogGroupField `locationName:"logGroupFields" type:"list"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s GetLogGroupFieldsOutput) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s GetLogGroupFieldsOutput) GoString() string {
	return s.String()
}

// SetLogGroupFields sets the LogGroupFields field's value.
func (s *GetLogGroupFieldsOutput) SetLogGroupFields(v []*LogGroupField) *GetLogGroupFieldsOutput {
	s.LogGroupFields = v
	return s
}

type GetLogRecordInput struct {
	_ struct{} `type:"structure"`

	// The pointer corresponding to the log event record you want to retrieve. You
	// get this from the response of a GetQueryResults operation. In that response,
	// the value of the @ptr field for a log event is the value to use as logRecordPointer
	// to retrieve that complete log event record.
	//
	// LogRecordPointer is a required field
	LogRecordPointer *string `locationName:"logRecordPointer" type:"string" required:"true"`

	// Specify true to display the log event fields with all sensitive data unmasked
	// and visible. The default is false.
	//
	// To use this operation with this parameter, you must be signed into an account
	// with the logs:Unmask permission.
	Unmask *bool `locationName:"unmask" type:"boolean"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s GetLogRecordInput) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s GetLogRecordInput) GoString() string {
	return s.String()
}

// Validate inspects the fields of the type to determine if they are valid.
func (s *GetLogRecordInput) Validate() error {
	invalidParams := request.ErrInvalidParams{Context: "GetLogRecordInput"}
	if s.LogRecordPointer == nil {
		invalidParams.Add(request.NewErrParamRequired("LogRecordPointer"))
	}

	if invalidParams.Len() > 0 {
		return invalidParams
	}
	return nil
}

// SetLogRecordPointer sets the LogRecordPointer field's value.
func (s *GetLogRecordInput) SetLogRecordPointer(v string) *GetLogRecordInput {
	s.LogRecordPointer = &v
	return s
}

// SetUnmask sets the Unmask field's value.
func (s *GetLogRecordInput) SetUnmask(v bool) *GetLogRecordInput {
	s.Unmask = &v
	return s
}

type GetLogRecordOutput struct {
	_ struct{} `type:"structure"`

	// The requested log event, as a JSON string.
	LogRecord map[string]*string `locationName:"logRecord" type:"map"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s GetLogRecordOutput) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s GetLogRecordOutput) GoString() string {
	return s.String()
}

// SetLogRecord sets the LogRecord field's value.
func (s *GetLogRecordOutput) SetLogRecord(v map[string]*string) *GetLogRecordOutput {
	s.LogRecord = v
	return s
}

type GetQueryResultsInput struct {
	_ struct{} `type:"structure"`

	// The ID number of the query.
	//
	// QueryId is a required field
	QueryId *string `locationName:"queryId" type:"string" required:"true"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s GetQueryResultsInput) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s GetQueryResultsInput) GoString() string {
	return s.String()
}

// Validate inspects the fields of the type to determine if they are valid.
func (s *GetQueryResultsInput) Validate() error {
	invalidParams := request.ErrInvalidParams{Context: "GetQueryResultsInput"}
	if s.QueryId == nil {
		invalidParams.Add(request.NewErrParamRequired("QueryId"))
	}

	if invalidParams.Len() > 0 {
		return invalidParams
	}
	return nil
}

// SetQueryId sets the QueryId field's value.
func (s *GetQueryResultsInput) SetQueryId(v string) *GetQueryResultsInput {
	s.QueryId = &v
	return s
}

type GetQueryResultsOutput struct {
	_ struct{} `type:"structure"`

	// If you associated an KMS key with the CloudWatch Logs Insights query results
	// in this account, this field displays the ARN of the key that's used to encrypt
	// the query results when StartQuery (https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_StartQuery.html)
	// stores them.
	EncryptionKey *string `locationName:"encryptionKey" type:"string"`

	// The query language used for this query. For more information about the query
	// languages that CloudWatch Logs supports, see Supported query languages (https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/CWL_AnalyzeLogData_Languages.html).
	QueryLanguage *string `locationName:"queryLanguage" type:"string" enum:"QueryLanguage"`

	// The log events that matched the query criteria during the most recent time
	// it ran.
	//
	// The results value is an array of arrays. Each log event is one object in
	// the top-level array. Each of these log event objects is an array of field/value
	// pairs.
	Results [][]*ResultField `locationName:"results" type:"list"`

	// Includes the number of log events scanned by the query, the number of log
	// events that matched the query criteria, and the total number of bytes in
	// the scanned log events. These values reflect the full raw results of the
	// query.
	Statistics *QueryStatistics `locationName:"statistics" type:"structure"`

	// The status of the most recent running of the query. Possible values are Cancelled,
	// Complete, Failed, Running, Scheduled, Timeout, and Unknown.
	//
	// Queries time out after 60 minutes of runtime. To avoid having your queries
	// time out, reduce the time range being searched or partition your query into
	// a number of queries.
	Status *string `locationName:"status" type:"string" enum:"QueryStatus"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s GetQueryResultsOutput) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s GetQueryResultsOutput) GoString() string {
	return s.String()
}

// SetEncryptionKey sets the EncryptionKey field's value.
func (s *GetQueryResultsOutput) SetEncryptionKey(v string) *GetQueryResultsOutput {
	s.EncryptionKey = &v
	return s
}

// SetQueryLanguage sets the QueryLanguage field's value.
func (s *GetQueryResultsOutput) SetQueryLanguage(v string) *GetQueryResultsOutput {
	s.QueryLanguage = &v
	return s
}

// SetResults sets the Results field's value.
func (s *GetQueryResultsOutput) SetResults(v [][]*ResultField) *GetQueryResultsOutput {
	s.Results = v
	return s
}

// SetStatistics sets the Statistics field's value.
func (s *GetQueryResultsOutput) SetStatistics(v *QueryStatistics) *GetQueryResultsOutput {
	s.Statistics = v
	return s
}

// SetStatus sets the Status field's value.
func (s *GetQueryResultsOutput) SetStatus(v string) *GetQueryResultsOutput {
	s.Status = &v
	return s
}

type GetTransformerInput struct {
	_ struct{} `type:"structure"`

	// Specify either the name or ARN of the log group to return transformer information
	// for. If the log group is in a source account and you are using a monitoring
	// account, you must use the log group ARN.
	//
	// LogGroupIdentifier is a required field
	LogGroupIdentifier *string `locationName:"logGroupIdentifier" min:"1" type:"string" required:"true"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s GetTransformerInput) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s GetTransformerInput) GoString() string {
	return s.String()
}

// Validate inspects the fields of the type to determine if they are valid.
func (s *GetTransformerInput) Validate() error {
	invalidParams := request.ErrInvalidParams{Context: "GetTransformerInput"}
	if s.LogGroupIdentifier == nil {
		invalidParams.Add(request.NewErrParamRequired("LogGroupIdentifier"))
	}
	if s.LogGroupIdentifier != nil && len(*s.LogGroupIdentifier) < 1 {
		invalidParams.Add(request.NewErrParamMinLen("LogGroupIdentifier", 1))
	}

	if invalidParams.Len() > 0 {
		return invalidParams
	}
	return nil
}

// SetLogGroupIdentifier sets the LogGroupIdentifier field's value.
func (s *GetTransformerInput) SetLogGroupIdentifier(v string) *GetTransformerInput {
	s.LogGroupIdentifier = &v
	return s
}

type GetTransformerOutput struct {
	_ struct{} `type:"structure"`

	// The creation time of the transformer, expressed as the number of milliseconds
	// after Jan 1, 1970 00:00:00 UTC.
	CreationTime *int64 `locationName:"creationTime" type:"long"`

	// The date and time when this transformer was most recently modified, expressed
	// as the number of milliseconds after Jan 1, 1970 00:00:00 UTC.
	LastModifiedTime *int64 `locationName:"lastModifiedTime" type:"long"`

	// The ARN of the log group that you specified in your request.
	LogGroupIdentifier *string `locationName:"logGroupIdentifier" min:"1" type:"string"`

	// This sructure contains the configuration of the requested transformer.
	TransformerConfig []*Processor `locationName:"transformerConfig" min:"1" type:"list"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s GetTransformerOutput) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s GetTransformerOutput) GoString() string {
	return s.String()
}

// SetCreationTime sets the CreationTime field's value.
func (s *GetTransformerOutput) SetCreationTime(v int64) *GetTransformerOutput {
	s.CreationTime = &v
	return s
}

// SetLastModifiedTime sets the LastModifiedTime field's value.
func (s *GetTransformerOutput) SetLastModifiedTime(v int64) *GetTransformerOutput {
	s.LastModifiedTime = &v
	return s
}

// SetLogGroupIdentifier sets the LogGroupIdentifier field's value.
func (s *GetTransformerOutput) SetLogGroupIdentifier(v string) *GetTransformerOutput {
	s.LogGroupIdentifier = &v
	return s
}

// SetTransformerConfig sets the TransformerConfig field's value.
func (s *GetTransformerOutput) SetTransformerConfig(v []*Processor) *GetTransformerOutput {
	s.TransformerConfig = v
	return s
}

// This processor uses pattern matching to parse and structure unstructured
// data. This processor can also extract fields from log messages.
//
// For more information about this processor including examples, see grok (https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/CloudWatch-Logs-Transformation.html#CloudWatch-Logs-Transformation-Grok)
// in the CloudWatch Logs User Guide.
type Grok struct {
	_ struct{} `type:"structure"`

	// The grok pattern to match against the log event. For a list of supported
	// grok patterns, see Supported grok patterns (https://docs.aws.amazon.com/mazonCloudWatch/latest/logs/CloudWatch-Logs-Transformation-Processors.html#Grok-Patterns).
	//
	// Match is a required field
	Match *string `locationName:"match" min:"1" type:"string" required:"true"`

	// The path to the field in the log event that you want to parse. If you omit
	// this value, the whole log message is parsed.
	Source *string `locationName:"source" min:"1" type:"string"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s Grok) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s Grok) GoString() string {
	return s.String()
}

// Validate inspects the fields of the type to determine if they are valid.
func (s *Grok) Validate() error {
	invalidParams := request.ErrInvalidParams{Context: "Grok"}
	if s.Match == nil {
		invalidParams.Add(request.NewErrParamRequired("Match"))
	}
	if s.Match != nil && len(*s.Match) < 1 {
		invalidParams.Add(request.NewErrParamMinLen("Match", 1))
	}
	if s.Source != nil && len(*s.Source) < 1 {
		invalidParams.Add(request.NewErrParamMinLen("Source", 1))
	}

	if invalidParams.Len() > 0 {
		return invalidParams
	}
	return nil
}

// SetMatch sets the Match field's value.
func (s *Grok) SetMatch(v string) *Grok {
	s.Match = &v
	return s
}

// SetSource sets the Source field's value.
func (s *Grok) SetSource(v string) *Grok {
	s.Source = &v
	return s
}

// This structure contains information about one field index policy in this
// account.
type IndexPolicy struct {
	_ struct{} `type:"structure"`

	// The date and time that this index policy was most recently updated.
	LastUpdateTime *int64 `locationName:"lastUpdateTime" type:"long"`

	// The ARN of the log group that this index policy applies to.
	LogGroupIdentifier *string `locationName:"logGroupIdentifier" min:"1" type:"string"`

	// The policy document for this index policy, in JSON format.
	PolicyDocument *string `locationName:"policyDocument" min:"1" type:"string"`

	// The name of this policy. Responses about log group-level field index policies
	// don't have this field, because those policies don't have names.
	PolicyName *string `locationName:"policyName" type:"string"`

	// This field indicates whether this is an account-level index policy or an
	// index policy that applies only to a single log group.
	Source *string `locationName:"source" type:"string" enum:"IndexSource"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s IndexPolicy) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s IndexPolicy) GoString() string {
	return s.String()
}

// SetLastUpdateTime sets the LastUpdateTime field's value.
func (s *IndexPolicy) SetLastUpdateTime(v int64) *IndexPolicy {
	s.LastUpdateTime = &v
	return s
}

// SetLogGroupIdentifier sets the LogGroupIdentifier field's value.
func (s *IndexPolicy) SetLogGroupIdentifier(v string) *IndexPolicy {
	s.LogGroupIdentifier = &v
	return s
}

// SetPolicyDocument sets the PolicyDocument field's value.
func (s *IndexPolicy) SetPolicyDocument(v string) *IndexPolicy {
	s.PolicyDocument = &v
	return s
}

// SetPolicyName sets the PolicyName field's value.
func (s *IndexPolicy) SetPolicyName(v string) *IndexPolicy {
	s.PolicyName = &v
	return s
}

// SetSource sets the Source field's value.
func (s *IndexPolicy) SetSource(v string) *IndexPolicy {
	s.Source = &v
	return s
}

// Represents a log event, which is a record of activity that was recorded by
// the application or resource being monitored.
type InputLogEvent struct {
	_ struct{} `type:"structure"`

	// The raw event message. Each log event can be no larger than 1 MB.
	//
	// Message is a required field
	Message *string `locationName:"message" min:"1" type:"string" required:"true"`

	// The time the event occurred, expressed as the number of milliseconds after
	// Jan 1, 1970 00:00:00 UTC.
	//
	// Timestamp is a required field
	Timestamp *int64 `locationName:"timestamp" type:"long" required:"true"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s InputLogEvent) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s InputLogEvent) GoString() string {
	return s.String()
}

// Validate inspects the fields of the type to determine if they are valid.
func (s *InputLogEvent) Validate() error {
	invalidParams := request.ErrInvalidParams{Context: "InputLogEvent"}
	if s.Message == nil {
		invalidParams.Add(request.NewErrParamRequired("Message"))
	}
	if s.Message != nil && len(*s.Message) < 1 {
		invalidParams.Add(request.NewErrParamMinLen("Message", 1))
	}
	if s.Timestamp == nil {
		invalidParams.Add(request.NewErrParamRequired("Timestamp"))
	}

	if invalidParams.Len() > 0 {
		return invalidParams
	}
	return nil
}

// SetMessage sets the Message field's value.
func (s *InputLogEvent) SetMessage(v string) *InputLogEvent {
	s.Message = &v
	return s
}

// SetTimestamp sets the Timestamp field's value.
func (s *InputLogEvent) SetTimestamp(v int64) *InputLogEvent {
	s.Timestamp = &v
	return s
}

// This structure contains information about the integration configuration.
// For an integration with OpenSearch Service, this includes information about
// OpenSearch Service resources such as the collection, the workspace, and policies.
//
// This structure is returned by a GetIntegration (https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_GetIntegration.html)
// operation.
type IntegrationDetails struct {
	_ struct{} `type:"structure"`

	// This structure contains complete information about one integration between
	// CloudWatch Logs and OpenSearch Service.
	OpenSearchIntegrationDetails *OpenSearchIntegrationDetails `locationName:"openSearchIntegrationDetails" type:"structure"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s IntegrationDetails) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s IntegrationDetails) GoString() string {
	return s.String()
}

// SetOpenSearchIntegrationDetails sets the OpenSearchIntegrationDetails field's value.
func (s *IntegrationDetails) SetOpenSearchIntegrationDetails(v *OpenSearchIntegrationDetails) *IntegrationDetails {
	s.OpenSearchIntegrationDetails = v
	return s
}

// This structure contains information about one CloudWatch Logs integration.
// This structure is returned by a ListIntegrations (https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_ListIntegrations.html)
// operation.
type IntegrationSummary struct {
	_ struct{} `type:"structure"`

	// The name of this integration.
	IntegrationName *string `locationName:"integrationName" min:"1" type:"string"`

	// The current status of this integration.
	IntegrationStatus *string `locationName:"integrationStatus" type:"string" enum:"IntegrationStatus"`

	// The type of integration. Integrations with OpenSearch Service have the type
	// OPENSEARCH.
	IntegrationType *string `locationName:"integrationType" type:"string" enum:"IntegrationType"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s IntegrationSummary) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s IntegrationSummary) GoString() string {
	return s.String()
}

// SetIntegrationName sets the IntegrationName field's value.
func (s *IntegrationSummary) SetIntegrationName(v string) *IntegrationSummary {
	s.IntegrationName = &v
	return s
}

// SetIntegrationStatus sets the IntegrationStatus field's value.
func (s *IntegrationSummary) SetIntegrationStatus(v string) *IntegrationSummary {
	s.IntegrationStatus = &v
	return s
}

// SetIntegrationType sets the IntegrationType field's value.
func (s *IntegrationSummary) SetIntegrationType(v string) *IntegrationSummary {
	s.IntegrationType = &v
	return s
}

// The operation is not valid on the specified resource.
type InvalidOperationException struct {
	_            struct{}                  `type:"structure"`
	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`

	Message_ *string `locationName:"message" type:"string"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s InvalidOperationException) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s InvalidOperationException) GoString() string {
	return s.String()
}

func newErrorInvalidOperationException(v protocol.ResponseMetadata) error {
	return &InvalidOperationException{
		RespMetadata: v,
	}
}

// Code returns the exception type name.
func (s *InvalidOperationException) Code() string {
	return "InvalidOperationException"
}

// Message returns the exception's message.
func (s *InvalidOperationException) Message() string {
	if s.Message_ != nil {
		return *s.Message_
	}
	return ""
}

// OrigErr always returns nil, satisfies awserr.Error interface.
func (s *InvalidOperationException) OrigErr() error {
	return nil
}

func (s *InvalidOperationException) Error() string {
	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}

// Status code returns the HTTP status code for the request's response error.
func (s *InvalidOperationException) StatusCode() int {
	return s.RespMetadata.StatusCode
}

// RequestID returns the service's response RequestID for request.
func (s *InvalidOperationException) RequestID() string {
	return s.RespMetadata.RequestID
}

// A parameter is specified incorrectly.
type InvalidParameterException struct {
	_            struct{}                  `type:"structure"`
	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`

	Message_ *string `locationName:"message" type:"string"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s InvalidParameterException) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s InvalidParameterException) GoString() string {
	return s.String()
}

func newErrorInvalidParameterException(v protocol.ResponseMetadata) error {
	return &InvalidParameterException{
		RespMetadata: v,
	}
}

// Code returns the exception type name.
func (s *InvalidParameterException) Code() string {
	return "InvalidParameterException"
}

// Message returns the exception's message.
func (s *InvalidParameterException) Message() string {
	if s.Message_ != nil {
		return *s.Message_
	}
	return ""
}

// OrigErr always returns nil, satisfies awserr.Error interface.
func (s *InvalidParameterException) OrigErr() error {
	return nil
}

func (s *InvalidParameterException) Error() string {
	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}

// Status code returns the HTTP status code for the request's response error.
func (s *InvalidParameterException) StatusCode() int {
	return s.RespMetadata.StatusCode
}

// RequestID returns the service's response RequestID for request.
func (s *InvalidParameterException) RequestID() string {
	return s.RespMetadata.RequestID
}

// The sequence token is not valid. You can get the correct sequence token in
// the expectedSequenceToken field in the InvalidSequenceTokenException message.
//
// PutLogEvents actions are now always accepted and never return InvalidSequenceTokenException
// regardless of receiving an invalid sequence token.
type InvalidSequenceTokenException struct {
	_            struct{}                  `type:"structure"`
	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`

	ExpectedSequenceToken *string `locationName:"expectedSequenceToken" min:"1" type:"string"`

	Message_ *string `locationName:"message" type:"string"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s InvalidSequenceTokenException) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s InvalidSequenceTokenException) GoString() string {
	return s.String()
}

func newErrorInvalidSequenceTokenException(v protocol.ResponseMetadata) error {
	return &InvalidSequenceTokenException{
		RespMetadata: v,
	}
}

// Code returns the exception type name.
func (s *InvalidSequenceTokenException) Code() string {
	return "InvalidSequenceTokenException"
}

// Message returns the exception's message.
func (s *InvalidSequenceTokenException) Message() string {
	if s.Message_ != nil {
		return *s.Message_
	}
	return ""
}

// OrigErr always returns nil, satisfies awserr.Error interface.
func (s *InvalidSequenceTokenException) OrigErr() error {
	return nil
}

func (s *InvalidSequenceTokenException) Error() string {
	return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}

// Status code returns the HTTP status code for the request's response error.
func (s *InvalidSequenceTokenException) StatusCode() int {
	return s.RespMetadata.StatusCode
}

// RequestID returns the service's response RequestID for request.
func (s *InvalidSequenceTokenException) RequestID() string {
	return s.RespMetadata.RequestID
}

// You have reached the maximum number of resources that can be created.
type LimitExceededException struct {
	_            struct{}                  `type:"structure"`
	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`

	Message_ *string `locationName:"message" type:"string"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s LimitExceededException) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s LimitExceededException) GoString() string {
	return s.String()
}

func newErrorLimitExceededException(v protocol.ResponseMetadata) error {
	return &LimitExceededException{
		RespMetadata: v,
	}
}

// Code returns the exception type name.
func (s *LimitExceededException) Code() string {
	return "LimitExceededException"
}

// Message returns the exception's message.
func (s *LimitExceededException) Message() string {
	if s.Message_ != nil {
		return *s.Message_
	}
	return ""
}

// OrigErr always returns nil, satisfies awserr.Error interface.
func (s *LimitExceededException) OrigErr() error {
	return nil
}

func (s *LimitExceededException) Error() string {
	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}

// Status code returns the HTTP status code for the request's response error.
func (s *LimitExceededException) StatusCode() int {
	return s.RespMetadata.StatusCode
}

// RequestID returns the service's response RequestID for request.
func (s *LimitExceededException) RequestID() string {
	return s.RespMetadata.RequestID
}

type ListAnomaliesInput struct {
	_ struct{} `type:"structure"`

	// Use this to optionally limit the results to only the anomalies found by a
	// certain anomaly detector.
	AnomalyDetectorArn *string `locationName:"anomalyDetectorArn" min:"1" type:"string"`

	// The maximum number of items to return. If you don't specify a value, the
	// default maximum value of 50 items is used.
	Limit *int64 `locationName:"limit" min:"1" type:"integer"`

	// The token for the next set of items to return. The token expires after 24
	// hours.
	NextToken *string `locationName:"nextToken" min:"1" type:"string"`

	// You can specify this parameter if you want to the operation to return only
	// anomalies that are currently either suppressed or unsuppressed.
	SuppressionState *string `locationName:"suppressionState" type:"string" enum:"SuppressionState"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s ListAnomaliesInput) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s ListAnomaliesInput) GoString() string {
	return s.String()
}

// Validate inspects the fields of the type to determine if they are valid.
func (s *ListAnomaliesInput) Validate() error {
	invalidParams := request.ErrInvalidParams{Context: "ListAnomaliesInput"}
	if s.AnomalyDetectorArn != nil && len(*s.AnomalyDetectorArn) < 1 {
		invalidParams.Add(request.NewErrParamMinLen("AnomalyDetectorArn", 1))
	}
	if s.Limit != nil && *s.Limit < 1 {
		invalidParams.Add(request.NewErrParamMinValue("Limit", 1))
	}
	if s.NextToken != nil && len(*s.NextToken) < 1 {
		invalidParams.Add(request.NewErrParamMinLen("NextToken", 1))
	}

	if invalidParams.Len() > 0 {
		return invalidParams
	}
	return nil
}

// SetAnomalyDetectorArn sets the AnomalyDetectorArn field's value.
func (s *ListAnomaliesInput) SetAnomalyDetectorArn(v string) *ListAnomaliesInput {
	s.AnomalyDetectorArn = &v
	return s
}

// SetLimit sets the Limit field's value.
func (s *ListAnomaliesInput) SetLimit(v int64) *ListAnomaliesInput {
	s.Limit = &v
	return s
}

// SetNextToken sets the NextToken field's value.
func (s *ListAnomaliesInput) SetNextToken(v string) *ListAnomaliesInput {
	s.NextToken = &v
	return s
}

// SetSuppressionState sets the SuppressionState field's value.
func (s *ListAnomaliesInput) SetSuppressionState(v string) *ListAnomaliesInput {
	s.SuppressionState = &v
	return s
}

type ListAnomaliesOutput struct {
	_ struct{} `type:"structure"`

	// An array of structures, where each structure contains information about one
	// anomaly that a log anomaly detector has found.
	Anomalies []*Anomaly `locationName:"anomalies" type:"list"`

	// The token for the next set of items to return. The token expires after 24
	// hours.
	NextToken *string `locationName:"nextToken" min:"1" type:"string"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s ListAnomaliesOutput) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s ListAnomaliesOutput) GoString() string {
	return s.String()
}

// SetAnomalies sets the Anomalies field's value.
func (s *ListAnomaliesOutput) SetAnomalies(v []*Anomaly) *ListAnomaliesOutput {
	s.Anomalies = v
	return s
}

// SetNextToken sets the NextToken field's value.
func (s *ListAnomaliesOutput) SetNextToken(v string) *ListAnomaliesOutput {
	s.NextToken = &v
	return s
}

type ListIntegrationsInput struct {
	_ struct{} `type:"structure"`

	// To limit the results to integrations that start with a certain name prefix,
	// specify that name prefix here.
	IntegrationNamePrefix *string `locationName:"integrationNamePrefix" min:"1" type:"string"`

	// To limit the results to integrations with a certain status, specify that
	// status here.
	IntegrationStatus *string `locationName:"integrationStatus" type:"string" enum:"IntegrationStatus"`

	// To limit the results to integrations of a certain type, specify that type
	// here.
	IntegrationType *string `locationName:"integrationType" type:"string" enum:"IntegrationType"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s ListIntegrationsInput) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s ListIntegrationsInput) GoString() string {
	return s.String()
}

// Validate inspects the fields of the type to determine if they are valid.
func (s *ListIntegrationsInput) Validate() error {
	invalidParams := request.ErrInvalidParams{Context: "ListIntegrationsInput"}
	if s.IntegrationNamePrefix != nil && len(*s.IntegrationNamePrefix) < 1 {
		invalidParams.Add(request.NewErrParamMinLen("IntegrationNamePrefix", 1))
	}

	if invalidParams.Len() > 0 {
		return invalidParams
	}
	return nil
}

// SetIntegrationNamePrefix sets the IntegrationNamePrefix field's value.
func (s *ListIntegrationsInput) SetIntegrationNamePrefix(v string) *ListIntegrationsInput {
	s.IntegrationNamePrefix = &v
	return s
}

// SetIntegrationStatus sets the IntegrationStatus field's value.
func (s *ListIntegrationsInput) SetIntegrationStatus(v string) *ListIntegrationsInput {
	s.IntegrationStatus = &v
	return s
}

// SetIntegrationType sets the IntegrationType field's value.
func (s *ListIntegrationsInput) SetIntegrationType(v string) *ListIntegrationsInput {
	s.IntegrationType = &v
	return s
}

type ListIntegrationsOutput struct {
	_ struct{} `type:"structure"`

	// An array, where each object in the array contains information about one CloudWatch
	// Logs integration in this account.
	IntegrationSummaries []*IntegrationSummary `locationName:"integrationSummaries" type:"list"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s ListIntegrationsOutput) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s ListIntegrationsOutput) GoString() string {
	return s.String()
}

// SetIntegrationSummaries sets the IntegrationSummaries field's value.
func (s *ListIntegrationsOutput) SetIntegrationSummaries(v []*IntegrationSummary) *ListIntegrationsOutput {
	s.IntegrationSummaries = v
	return s
}

type ListLogAnomalyDetectorsInput struct {
	_ struct{} `type:"structure"`

	// Use this to optionally filter the results to only include anomaly detectors
	// that are associated with the specified log group.
	FilterLogGroupArn *string `locationName:"filterLogGroupArn" min:"1" type:"string"`

	// The maximum number of items to return. If you don't specify a value, the
	// default maximum value of 50 items is used.
	Limit *int64 `locationName:"limit" min:"1" type:"integer"`

	// The token for the next set of items to return. The token expires after 24
	// hours.
	NextToken *string `locationName:"nextToken" min:"1" type:"string"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s ListLogAnomalyDetectorsInput) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s ListLogAnomalyDetectorsInput) GoString() string {
	return s.String()
}

// Validate inspects the fields of the type to determine if they are valid.
func (s *ListLogAnomalyDetectorsInput) Validate() error {
	invalidParams := request.ErrInvalidParams{Context: "ListLogAnomalyDetectorsInput"}
	if s.FilterLogGroupArn != nil && len(*s.FilterLogGroupArn) < 1 {
		invalidParams.Add(request.NewErrParamMinLen("FilterLogGroupArn", 1))
	}
	if s.Limit != nil && *s.Limit < 1 {
		invalidParams.Add(request.NewErrParamMinValue("Limit", 1))
	}
	if s.NextToken != nil && len(*s.NextToken) < 1 {
		invalidParams.Add(request.NewErrParamMinLen("NextToken", 1))
	}

	if invalidParams.Len() > 0 {
		return invalidParams
	}
	return nil
}

// SetFilterLogGroupArn sets the FilterLogGroupArn field's value.
func (s *ListLogAnomalyDetectorsInput) SetFilterLogGroupArn(v string) *ListLogAnomalyDetectorsInput {
	s.FilterLogGroupArn = &v
	return s
}

// SetLimit sets the Limit field's value.
func (s *ListLogAnomalyDetectorsInput) SetLimit(v int64) *ListLogAnomalyDetectorsInput {
	s.Limit = &v
	return s
}

// SetNextToken sets the NextToken field's value.
func (s *ListLogAnomalyDetectorsInput) SetNextToken(v string) *ListLogAnomalyDetectorsInput {
	s.NextToken = &v
	return s
}

type ListLogAnomalyDetectorsOutput struct {
	_ struct{} `type:"structure"`

	// An array of structures, where each structure in the array contains information
	// about one anomaly detector.
	AnomalyDetectors []*AnomalyDetector `locationName:"anomalyDetectors" type:"list"`

	// The token for the next set of items to return. The token expires after 24
	// hours.
	NextToken *string `locationName:"nextToken" min:"1" type:"string"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s ListLogAnomalyDetectorsOutput) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s ListLogAnomalyDetectorsOutput) GoString() string {
	return s.String()
}

// SetAnomalyDetectors sets the AnomalyDetectors field's value.
func (s *ListLogAnomalyDetectorsOutput) SetAnomalyDetectors(v []*AnomalyDetector) *ListLogAnomalyDetectorsOutput {
	s.AnomalyDetectors = v
	return s
}

// SetNextToken sets the NextToken field's value.
func (s *ListLogAnomalyDetectorsOutput) SetNextToken(v string) *ListLogAnomalyDetectorsOutput {
	s.NextToken = &v
	return s
}

type ListLogGroupsForQueryInput struct {
	_ struct{} `type:"structure"`

	// Limits the number of returned log groups to the specified number.
	MaxResults *int64 `locationName:"maxResults" min:"50" type:"integer"`

	// The token for the next set of items to return. The token expires after 24
	// hours.
	NextToken *string `locationName:"nextToken" min:"1" type:"string"`

	// The ID of the query to use. This query ID is from the response to your StartQuery
	// (https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_StartQuery.html)
	// operation.
	//
	// QueryId is a required field
	QueryId *string `locationName:"queryId" type:"string" required:"true"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s ListLogGroupsForQueryInput) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s ListLogGroupsForQueryInput) GoString() string {
	return s.String()
}

// Validate inspects the fields of the type to determine if they are valid.
func (s *ListLogGroupsForQueryInput) Validate() error {
	invalidParams := request.ErrInvalidParams{Context: "ListLogGroupsForQueryInput"}
	if s.MaxResults != nil && *s.MaxResults < 50 {
		invalidParams.Add(request.NewErrParamMinValue("MaxResults", 50))
	}
	if s.NextToken != nil && len(*s.NextToken) < 1 {
		invalidParams.Add(request.NewErrParamMinLen("NextToken", 1))
	}
	if s.QueryId == nil {
		invalidParams.Add(request.NewErrParamRequired("QueryId"))
	}

	if invalidParams.Len() > 0 {
		return invalidParams
	}
	return nil
}

// SetMaxResults sets the MaxResults field's value.
func (s *ListLogGroupsForQueryInput) SetMaxResults(v int64) *ListLogGroupsForQueryInput {
	s.MaxResults = &v
	return s
}

// SetNextToken sets the NextToken field's value.
func (s *ListLogGroupsForQueryInput) SetNextToken(v string) *ListLogGroupsForQueryInput {
	s.NextToken = &v
	return s
}

// SetQueryId sets the QueryId field's value.
func (s *ListLogGroupsForQueryInput) SetQueryId(v string) *ListLogGroupsForQueryInput {
	s.QueryId = &v
	return s
}

type ListLogGroupsForQueryOutput struct {
	_ struct{} `type:"structure"`

	// An array of the names and ARNs of the log groups that were processed in the
	// query.
	LogGroupIdentifiers []*string `locationName:"logGroupIdentifiers" type:"list"`

	// The token for the next set of items to return. The token expires after 24
	// hours.
	NextToken *string `locationName:"nextToken" min:"1" type:"string"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s ListLogGroupsForQueryOutput) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s ListLogGroupsForQueryOutput) GoString() string {
	return s.String()
}

// SetLogGroupIdentifiers sets the LogGroupIdentifiers field's value.
func (s *ListLogGroupsForQueryOutput) SetLogGroupIdentifiers(v []*string) *ListLogGroupsForQueryOutput {
	s.LogGroupIdentifiers = v
	return s
}

// SetNextToken sets the NextToken field's value.
func (s *ListLogGroupsForQueryOutput) SetNextToken(v string) *ListLogGroupsForQueryOutput {
	s.NextToken = &v
	return s
}

type ListLogGroupsInput struct {
	_ struct{} `type:"structure"`

	// When includeLinkedAccounts is set to true, use this parameter to specify
	// the list of accounts to search. You can specify as many as 20 account IDs
	// in the array.
	AccountIdentifiers []*string `locationName:"accountIdentifiers" type:"list"`

	// If you are using a monitoring account, set this to true to have the operation
	// return log groups in the accounts listed in accountIdentifiers.
	//
	// If this parameter is set to true and accountIdentifiers contains a null value,
	// the operation returns all log groups in the monitoring account and all log
	// groups in all source accounts that are linked to the monitoring account.
	//
	// The default for this parameter is false.
	IncludeLinkedAccounts *bool `locationName:"includeLinkedAccounts" type:"boolean"`

	// The maximum number of log groups to return. If you omit this parameter, the
	// default is up to 50 log groups.
	Limit *int64 `locationName:"limit" min:"1" type:"integer"`

	// Use this parameter to limit the results to only those log groups in the specified
	// log group class. If you omit this parameter, log groups of all classes can
	// be returned.
	LogGroupClass *string `locationName:"logGroupClass" type:"string" enum:"LogGroupClass"`

	// Use this parameter to limit the returned log groups to only those with names
	// that match the pattern that you specify. This parameter is a regular expression
	// that can match prefixes and substrings, and supports wildcard matching and
	// matching multiple patterns, as in the following examples.
	//
	//    * Use ^ to match log group names by prefix.
	//
	//    * For a substring match, specify the string to match. All matches are
	//    case sensitive
	//
	//    * To match multiple patterns, separate them with a | as in the example
	//    ^/aws/lambda|discovery
	//
	// You can specify as many as five different regular expression patterns in
	// this field, each of which must be between 3 and 24 characters. You can include
	// the ^ symbol as many as five times, and include the | symbol as many as four
	// times.
	LogGroupNamePattern *string `locationName:"logGroupNamePattern" min:"3" type:"string"`

	// The token for the next set of items to return. The token expires after 24
	// hours.
	NextToken *string `locationName:"nextToken" min:"1" type:"string"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s ListLogGroupsInput) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s ListLogGroupsInput) GoString() string {
	return s.String()
}

// Validate inspects the fields of the type to determine if they are valid.
func (s *ListLogGroupsInput) Validate() error {
	invalidParams := request.ErrInvalidParams{Context: "ListLogGroupsInput"}
	if s.Limit != nil && *s.Limit < 1 {
		invalidParams.Add(request.NewErrParamMinValue("Limit", 1))
	}
	if s.LogGroupNamePattern != nil && len(*s.LogGroupNamePattern) < 3 {
		invalidParams.Add(request.NewErrParamMinLen("LogGroupNamePattern", 3))
	}
	if s.NextToken != nil && len(*s.NextToken) < 1 {
		invalidParams.Add(request.NewErrParamMinLen("NextToken", 1))
	}

	if invalidParams.Len() > 0 {
		return invalidParams
	}
	return nil
}

// SetAccountIdentifiers sets the AccountIdentifiers field's value.
func (s *ListLogGroupsInput) SetAccountIdentifiers(v []*string) *ListLogGroupsInput {
	s.AccountIdentifiers = v
	return s
}

// SetIncludeLinkedAccounts sets the IncludeLinkedAccounts field's value.
func (s *ListLogGroupsInput) SetIncludeLinkedAccounts(v bool) *ListLogGroupsInput {
	s.IncludeLinkedAccounts = &v
	return s
}

// SetLimit sets the Limit field's value.
func (s *ListLogGroupsInput) SetLimit(v int64) *ListLogGroupsInput {
	s.Limit = &v
	return s
}

// SetLogGroupClass sets the LogGroupClass field's value.
func (s *ListLogGroupsInput) SetLogGroupClass(v string) *ListLogGroupsInput {
	s.LogGroupClass = &v
	return s
}

// SetLogGroupNamePattern sets the LogGroupNamePattern field's value.
func (s *ListLogGroupsInput) SetLogGroupNamePattern(v string) *ListLogGroupsInput {
	s.LogGroupNamePattern = &v
	return s
}

// SetNextToken sets the NextToken field's value.
func (s *ListLogGroupsInput) SetNextToken(v string) *ListLogGroupsInput {
	s.NextToken = &v
	return s
}

type ListLogGroupsOutput struct {
	_ struct{} `type:"structure"`

	// An array of structures, where each structure contains the information about
	// one log group.
	LogGroups []*LogGroupSummary `locationName:"logGroups" type:"list"`

	// The token for the next set of items to return. The token expires after 24
	// hours.
	NextToken *string `locationName:"nextToken" min:"1" type:"string"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s ListLogGroupsOutput) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s ListLogGroupsOutput) GoString() string {
	return s.String()
}

// SetLogGroups sets the LogGroups field's value.
func (s *ListLogGroupsOutput) SetLogGroups(v []*LogGroupSummary) *ListLogGroupsOutput {
	s.LogGroups = v
	return s
}

// SetNextToken sets the NextToken field's value.
func (s *ListLogGroupsOutput) SetNextToken(v string) *ListLogGroupsOutput {
	s.NextToken = &v
	return s
}

type ListTagsForResourceInput struct {
	_ struct{} `type:"structure"`

	// The ARN of the resource that you want to view tags for.
	//
	// The ARN format of a log group is arn:aws:logs:Region:account-id:log-group:log-group-name
	//
	// The ARN format of a destination is arn:aws:logs:Region:account-id:destination:destination-name
	//
	// For more information about ARN format, see CloudWatch Logs resources and
	// operations (https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/iam-access-control-overview-cwl.html).
	//
	// ResourceArn is a required field
	ResourceArn *string `locationName:"resourceArn" min:"1" type:"string" required:"true"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s ListTagsForResourceInput) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s ListTagsForResourceInput) GoString() string {
	return s.String()
}

// Validate inspects the fields of the type to determine if they are valid.
func (s *ListTagsForResourceInput) Validate() error {
	invalidParams := request.ErrInvalidParams{Context: "ListTagsForResourceInput"}
	if s.ResourceArn == nil {
		invalidParams.Add(request.NewErrParamRequired("ResourceArn"))
	}
	if s.ResourceArn != nil && len(*s.ResourceArn) < 1 {
		invalidParams.Add(request.NewErrParamMinLen("ResourceArn", 1))
	}

	if invalidParams.Len() > 0 {
		return invalidParams
	}
	return nil
}

// SetResourceArn sets the ResourceArn field's value.
func (s *ListTagsForResourceInput) SetResourceArn(v string) *ListTagsForResourceInput {
	s.ResourceArn = &v
	return s
}

type ListTagsForResourceOutput struct {
	_ struct{} `type:"structure"`

	// The list of tags associated with the requested resource.>
	Tags map[string]*string `locationName:"tags" min:"1" type:"map"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s ListTagsForResourceOutput) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s ListTagsForResourceOutput) GoString() string {
	return s.String()
}

// SetTags sets the Tags field's value.
func (s *ListTagsForResourceOutput) SetTags(v map[string]*string) *ListTagsForResourceOutput {
	s.Tags = v
	return s
}

// Deprecated: Please use the generic tagging API model ListTagsForResourceRequest and ListTagsForResourceResponse
type ListTagsLogGroupInput struct {
	_ struct{} `deprecated:"true" type:"structure"`

	// The name of the log group.
	//
	// LogGroupName is a required field
	LogGroupName *string `locationName:"logGroupName" min:"1" type:"string" required:"true"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s ListTagsLogGroupInput) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s ListTagsLogGroupInput) GoString() string {
	return s.String()
}

// Validate inspects the fields of the type to determine if they are valid.
func (s *ListTagsLogGroupInput) Validate() error {
	invalidParams := request.ErrInvalidParams{Context: "ListTagsLogGroupInput"}
	if s.LogGroupName == nil {
		invalidParams.Add(request.NewErrParamRequired("LogGroupName"))
	}
	if s.LogGroupName != nil && len(*s.LogGroupName) < 1 {
		invalidParams.Add(request.NewErrParamMinLen("LogGroupName", 1))
	}

	if invalidParams.Len() > 0 {
		return invalidParams
	}
	return nil
}

// SetLogGroupName sets the LogGroupName field's value.
func (s *ListTagsLogGroupInput) SetLogGroupName(v string) *ListTagsLogGroupInput {
	s.LogGroupName = &v
	return s
}

// Deprecated: Please use the generic tagging API model ListTagsForResourceRequest and ListTagsForResourceResponse
type ListTagsLogGroupOutput struct {
	_ struct{} `deprecated:"true" type:"structure"`

	// The tags for the log group.
	Tags map[string]*string `locationName:"tags" min:"1" type:"map"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s ListTagsLogGroupOutput) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s ListTagsLogGroupOutput) GoString() string {
	return s.String()
}

// SetTags sets the Tags field's value.
func (s *ListTagsLogGroupOutput) SetTags(v map[string]*string) *ListTagsLogGroupOutput {
	s.Tags = v
	return s
}

// This processor takes a list of objects that contain key fields, and converts
// them into a map of target keys.
//
// For more information about this processor including examples, see listToMap
// (https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/CloudWatch-Logs-Transformation-Processors.html#CloudWatch-Logs-Transformation-listToMap)
// in the CloudWatch Logs User Guide.
type ListToMap struct {
	_ struct{} `type:"structure"`

	// A Boolean value to indicate whether the list will be flattened into single
	// items. Specify true to flatten the list. The default is false
	Flatten *bool `locationName:"flatten" type:"boolean"`

	// If you set flatten to true, use flattenedElement to specify which element,
	// first or last, to keep.
	//
	// You must specify this parameter if flatten is true
	FlattenedElement *string `locationName:"flattenedElement" type:"string" enum:"FlattenedElement"`

	// The key of the field to be extracted as keys in the generated map
	//
	// Key is a required field
	Key *string `locationName:"key" min:"1" type:"string" required:"true"`

	// The key in the log event that has a list of objects that will be converted
	// to a map.
	//
	// Source is a required field
	Source *string `locationName:"source" min:"1" type:"string" required:"true"`

	// The key of the field that will hold the generated map
	Target *string `locationName:"target" min:"1" type:"string"`

	// If this is specified, the values that you specify in this parameter will
	// be extracted from the source objects and put into the values of the generated
	// map. Otherwise, original objects in the source list will be put into the
	// values of the generated map.
	ValueKey *string `locationName:"valueKey" min:"1" type:"string"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s ListToMap) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s ListToMap) GoString() string {
	return s.String()
}

// Validate inspects the fields of the type to determine if they are valid.
func (s *ListToMap) Validate() error {
	invalidParams := request.ErrInvalidParams{Context: "ListToMap"}
	if s.Key == nil {
		invalidParams.Add(request.NewErrParamRequired("Key"))
	}
	if s.Key != nil && len(*s.Key) < 1 {
		invalidParams.Add(request.NewErrParamMinLen("Key", 1))
	}
	if s.Source == nil {
		invalidParams.Add(request.NewErrParamRequired("Source"))
	}
	if s.Source != nil && len(*s.Source) < 1 {
		invalidParams.Add(request.NewErrParamMinLen("Source", 1))
	}
	if s.Target != nil && len(*s.Target) < 1 {
		invalidParams.Add(request.NewErrParamMinLen("Target", 1))
	}
	if s.ValueKey != nil && len(*s.ValueKey) < 1 {
		invalidParams.Add(request.NewErrParamMinLen("ValueKey", 1))
	}

	if invalidParams.Len() > 0 {
		return invalidParams
	}
	return nil
}

// SetFlatten sets the Flatten field's value.
func (s *ListToMap) SetFlatten(v bool) *ListToMap {
	s.Flatten = &v
	return s
}

// SetFlattenedElement sets the FlattenedElement field's value.
func (s *ListToMap) SetFlattenedElement(v string) *ListToMap {
	s.FlattenedElement = &v
	return s
}

// SetKey sets the Key field's value.
func (s *ListToMap) SetKey(v string) *ListToMap {
	s.Key = &v
	return s
}

// SetSource sets the Source field's value.
func (s *ListToMap) SetSource(v string) *ListToMap {
	s.Source = &v
	return s
}

// SetTarget sets the Target field's value.
func (s *ListToMap) SetTarget(v string) *ListToMap {
	s.Target = &v
	return s
}

// SetValueKey sets the ValueKey field's value.
func (s *ListToMap) SetValueKey(v string) *ListToMap {
	s.ValueKey = &v
	return s
}

// This object contains the information for one log event returned in a Live
// Tail stream.
type LiveTailSessionLogEvent struct {
	_ struct{} `type:"structure"`

	// The timestamp specifying when this log event was ingested into the log group.
	IngestionTime *int64 `locationName:"ingestionTime" type:"long"`

	// The name or ARN of the log group that ingested this log event.
	LogGroupIdentifier *string `locationName:"logGroupIdentifier" min:"1" type:"string"`

	// The name of the log stream that ingested this log event.
	LogStreamName *string `locationName:"logStreamName" min:"1" type:"string"`

	// The log event message text.
	Message *string `locationName:"message" min:"1" type:"string"`

	// The timestamp specifying when this log event was created.
	Timestamp *int64 `locationName:"timestamp" type:"long"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s LiveTailSessionLogEvent) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s LiveTailSessionLogEvent) GoString() string {
	return s.String()
}

// SetIngestionTime sets the IngestionTime field's value.
func (s *LiveTailSessionLogEvent) SetIngestionTime(v int64) *LiveTailSessionLogEvent {
	s.IngestionTime = &v
	return s
}

// SetLogGroupIdentifier sets the LogGroupIdentifier field's value.
func (s *LiveTailSessionLogEvent) SetLogGroupIdentifier(v string) *LiveTailSessionLogEvent {
	s.LogGroupIdentifier = &v
	return s
}

// SetLogStreamName sets the LogStreamName field's value.
func (s *LiveTailSessionLogEvent) SetLogStreamName(v string) *LiveTailSessionLogEvent {
	s.LogStreamName = &v
	return s
}

// SetMessage sets the Message field's value.
func (s *LiveTailSessionLogEvent) SetMessage(v string) *LiveTailSessionLogEvent {
	s.Message = &v
	return s
}

// SetTimestamp sets the Timestamp field's value.
func (s *LiveTailSessionLogEvent) SetTimestamp(v int64) *LiveTailSessionLogEvent {
	s.Timestamp = &v
	return s
}

// This object contains the metadata for one LiveTailSessionUpdate structure.
// It indicates whether that update includes only a sample of 500 log events
// out of a larger number of ingested log events, or if it contains all of the
// matching log events ingested during that second of time.
type LiveTailSessionMetadata struct {
	_ struct{} `type:"structure"`

	// If this is true, then more than 500 log events matched the request for this
	// update, and the sessionResults includes a sample of 500 of those events.
	//
	// If this is false, then 500 or fewer log events matched the request for this
	// update, so no sampling was necessary. In this case, the sessionResults array
	// includes all log events that matched your request during this time.
	Sampled *bool `locationName:"sampled" type:"boolean"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s LiveTailSessionMetadata) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s LiveTailSessionMetadata) GoString() string {
	return s.String()
}

// SetSampled sets the Sampled field's value.
func (s *LiveTailSessionMetadata) SetSampled(v bool) *LiveTailSessionMetadata {
	s.Sampled = &v
	return s
}

// This object contains information about this Live Tail session, including
// the log groups included and the log stream filters, if any.
type LiveTailSessionStart struct {
	_ struct{} `type:"structure"`

	// An optional pattern to filter the results to include only log events that
	// match the pattern. For example, a filter pattern of error 404 displays only
	// log events that include both error and 404.
	//
	// For more information about filter pattern syntax, see Filter and Pattern
	// Syntax (https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/FilterAndPatternSyntax.html).
	LogEventFilterPattern *string `locationName:"logEventFilterPattern" type:"string"`

	// An array of the names and ARNs of the log groups included in this Live Tail
	// session.
	LogGroupIdentifiers []*string `locationName:"logGroupIdentifiers" min:"1" type:"list"`

	// If your StartLiveTail operation request included a logStreamNamePrefixes
	// parameter that filtered the session to only include log streams that have
	// names that start with certain prefixes, these prefixes are listed here.
	LogStreamNamePrefixes []*string `locationName:"logStreamNamePrefixes" min:"1" type:"list"`

	// If your StartLiveTail operation request included a logStreamNames parameter
	// that filtered the session to only include certain log streams, these streams
	// are listed here.
	LogStreamNames []*string `locationName:"logStreamNames" min:"1" type:"list"`

	// The unique ID generated by CloudWatch Logs to identify this Live Tail session
	// request.
	RequestId *string `locationName:"requestId" type:"string"`

	// The unique ID generated by CloudWatch Logs to identify this Live Tail session.
	SessionId *string `locationName:"sessionId" type:"string"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s LiveTailSessionStart) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s LiveTailSessionStart) GoString() string {
	return s.String()
}

// SetLogEventFilterPattern sets the LogEventFilterPattern field's value.
func (s *LiveTailSessionStart) SetLogEventFilterPattern(v string) *LiveTailSessionStart {
	s.LogEventFilterPattern = &v
	return s
}

// SetLogGroupIdentifiers sets the LogGroupIdentifiers field's value.
func (s *LiveTailSessionStart) SetLogGroupIdentifiers(v []*string) *LiveTailSessionStart {
	s.LogGroupIdentifiers = v
	return s
}

// SetLogStreamNamePrefixes sets the LogStreamNamePrefixes field's value.
func (s *LiveTailSessionStart) SetLogStreamNamePrefixes(v []*string) *LiveTailSessionStart {
	s.LogStreamNamePrefixes = v
	return s
}

// SetLogStreamNames sets the LogStreamNames field's value.
func (s *LiveTailSessionStart) SetLogStreamNames(v []*string) *LiveTailSessionStart {
	s.LogStreamNames = v
	return s
}

// SetRequestId sets the RequestId field's value.
func (s *LiveTailSessionStart) SetRequestId(v string) *LiveTailSessionStart {
	s.RequestId = &v
	return s
}

// SetSessionId sets the SessionId field's value.
func (s *LiveTailSessionStart) SetSessionId(v string) *LiveTailSessionStart {
	s.SessionId = &v
	return s
}

// The LiveTailSessionStart is and event in the StartLiveTailResponseStream group of events.
func (s *LiveTailSessionStart) eventStartLiveTailResponseStream() {}

// UnmarshalEvent unmarshals the EventStream Message into the LiveTailSessionStart value.
// This method is only used internally within the SDK's EventStream handling.
func (s *LiveTailSessionStart) UnmarshalEvent(
	payloadUnmarshaler protocol.PayloadUnmarshaler,
	msg eventstream.Message,
) error {
	if err := payloadUnmarshaler.UnmarshalPayload(
		bytes.NewReader(msg.Payload), s,
	); err != nil {
		return err
	}
	return nil
}

// MarshalEvent marshals the type into an stream event value. This method
// should only used internally within the SDK's EventStream handling.
func (s *LiveTailSessionStart) MarshalEvent(pm protocol.PayloadMarshaler) (msg eventstream.Message, err error) {
	msg.Headers.Set(eventstreamapi.MessageTypeHeader, eventstream.StringValue(eventstreamapi.EventMessageType))
	var buf bytes.Buffer
	if err = pm.MarshalPayload(&buf, s); err != nil {
		return eventstream.Message{}, err
	}
	msg.Payload = buf.Bytes()
	return msg, err
}

// This object contains the log events and metadata for a Live Tail session.
type LiveTailSessionUpdate struct {
	_ struct{} `type:"structure"`

	// This object contains the session metadata for a Live Tail session.
	SessionMetadata *LiveTailSessionMetadata `locationName:"sessionMetadata" type:"structure"`

	// An array, where each member of the array includes the information for one
	// log event in the Live Tail session.
	//
	// A sessionResults array can include as many as 500 log events. If the number
	// of log events matching the request exceeds 500 per second, the log events
	// are sampled down to 500 log events to be included in each sessionUpdate structure.
	SessionResults []*LiveTailSessionLogEvent `locationName:"sessionResults" type:"list"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s LiveTailSessionUpdate) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s LiveTailSessionUpdate) GoString() string {
	return s.String()
}

// SetSessionMetadata sets the SessionMetadata field's value.
func (s *LiveTailSessionUpdate) SetSessionMetadata(v *LiveTailSessionMetadata) *LiveTailSessionUpdate {
	s.SessionMetadata = v
	return s
}

// SetSessionResults sets the SessionResults field's value.
func (s *LiveTailSessionUpdate) SetSessionResults(v []*LiveTailSessionLogEvent) *LiveTailSessionUpdate {
	s.SessionResults = v
	return s
}

// The LiveTailSessionUpdate is and event in the StartLiveTailResponseStream group of events.
func (s *LiveTailSessionUpdate) eventStartLiveTailResponseStream() {}

// UnmarshalEvent unmarshals the EventStream Message into the LiveTailSessionUpdate value.
// This method is only used internally within the SDK's EventStream handling.
func (s *LiveTailSessionUpdate) UnmarshalEvent(
	payloadUnmarshaler protocol.PayloadUnmarshaler,
	msg eventstream.Message,
) error {
	if err := payloadUnmarshaler.UnmarshalPayload(
		bytes.NewReader(msg.Payload), s,
	); err != nil {
		return err
	}
	return nil
}

// MarshalEvent marshals the type into an stream event value. This method
// should only used internally within the SDK's EventStream handling.
func (s *LiveTailSessionUpdate) MarshalEvent(pm protocol.PayloadMarshaler) (msg eventstream.Message, err error) {
	msg.Headers.Set(eventstreamapi.MessageTypeHeader, eventstream.StringValue(eventstreamapi.EventMessageType))
	var buf bytes.Buffer
	if err = pm.MarshalPayload(&buf, s); err != nil {
		return eventstream.Message{}, err
	}
	msg.Payload = buf.Bytes()
	return msg, err
}

// This structure contains the information for one sample log event that is
// associated with an anomaly found by a log anomaly detector.
type LogEvent struct {
	_ struct{} `type:"structure"`

	// The message content of the log event.
	Message *string `locationName:"message" min:"1" type:"string"`

	// The time stamp of the log event.
	Timestamp *int64 `locationName:"timestamp" type:"long"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s LogEvent) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s LogEvent) GoString() string {
	return s.String()
}

// SetMessage sets the Message field's value.
func (s *LogEvent) SetMessage(v string) *LogEvent {
	s.Message = &v
	return s
}

// SetTimestamp sets the Timestamp field's value.
func (s *LogEvent) SetTimestamp(v int64) *LogEvent {
	s.Timestamp = &v
	return s
}

// Represents a log group.
type LogGroup struct {
	_ struct{} `type:"structure"`

	// The Amazon Resource Name (ARN) of the log group. This version of the ARN
	// includes a trailing :* after the log group name.
	//
	// Use this version to refer to the ARN in IAM policies when specifying permissions
	// for most API actions. The exception is when specifying permissions for TagResource
	// (https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_TagResource.html),
	// UntagResource (https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_UntagResource.html),
	// and ListTagsForResource (https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_ListTagsForResource.html).
	// The permissions for those three actions require the ARN version that doesn't
	// include a trailing :*.
	Arn *string `locationName:"arn" type:"string"`

	// The creation time of the log group, expressed as the number of milliseconds
	// after Jan 1, 1970 00:00:00 UTC.
	CreationTime *int64 `locationName:"creationTime" type:"long"`

	// Displays whether this log group has a protection policy, or whether it had
	// one in the past. For more information, see PutDataProtectionPolicy (https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_PutDataProtectionPolicy.html).
	DataProtectionStatus *string `locationName:"dataProtectionStatus" type:"string" enum:"DataProtectionStatus"`

	// Displays all the properties that this log group has inherited from account-level
	// settings.
	InheritedProperties []*string `locationName:"inheritedProperties" type:"list" enum:"InheritedProperty"`

	// The Amazon Resource Name (ARN) of the KMS key to use when encrypting log
	// data.
	KmsKeyId *string `locationName:"kmsKeyId" type:"string"`

	// The Amazon Resource Name (ARN) of the log group. This version of the ARN
	// doesn't include a trailing :* after the log group name.
	//
	// Use this version to refer to the ARN in the following situations:
	//
	//    * In the logGroupIdentifier input field in many CloudWatch Logs APIs.
	//
	//    * In the resourceArn field in tagging APIs
	//
	//    * In IAM policies, when specifying permissions for TagResource (https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_TagResource.html),
	//    UntagResource (https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_UntagResource.html),
	//    and ListTagsForResource (https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_ListTagsForResource.html).
	LogGroupArn *string `locationName:"logGroupArn" type:"string"`

	// This specifies the log group class for this log group. There are three classes:
	//
	//    * The Standard log class supports all CloudWatch Logs features.
	//
	//    * The Infrequent Access log class supports a subset of CloudWatch Logs
	//    features and incurs lower costs.
	//
	//    * Use the Delivery log class only for delivering Lambda logs to store
	//    in Amazon S3 or Amazon Data Firehose. Log events in log groups in the
	//    Delivery class are kept in CloudWatch Logs for only one day. This log
	//    class doesn't offer rich CloudWatch Logs capabilities such as CloudWatch
	//    Logs Insights queries.
	//
	// For details about the features supported by the Standard and Infrequent Access
	// classes, see Log classes (https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/CloudWatch_Logs_Log_Classes.html)
	LogGroupClass *string `locationName:"logGroupClass" type:"string" enum:"LogGroupClass"`

	// The name of the log group.
	LogGroupName *string `locationName:"logGroupName" min:"1" type:"string"`

	// The number of metric filters.
	MetricFilterCount *int64 `locationName:"metricFilterCount" type:"integer"`

	// The number of days to retain the log events in the specified log group. Possible
	// values are: 1, 3, 5, 7, 14, 30, 60, 90, 120, 150, 180, 365, 400, 545, 731,
	// 1096, 1827, 2192, 2557, 2922, 3288, and 3653.
	//
	// To set a log group so that its log events do not expire, use DeleteRetentionPolicy
	// (https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_DeleteRetentionPolicy.html).
	RetentionInDays *int64 `locationName:"retentionInDays" type:"integer"`

	// The number of bytes stored.
	StoredBytes *int64 `locationName:"storedBytes" type:"long"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s LogGroup) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s LogGroup) GoString() string {
	return s.String()
}

// SetArn sets the Arn field's value.
func (s *LogGroup) SetArn(v string) *LogGroup {
	s.Arn = &v
	return s
}

// SetCreationTime sets the CreationTime field's value.
func (s *LogGroup) SetCreationTime(v int64) *LogGroup {
	s.CreationTime = &v
	return s
}

// SetDataProtectionStatus sets the DataProtectionStatus field's value.
func (s *LogGroup) SetDataProtectionStatus(v string) *LogGroup {
	s.DataProtectionStatus = &v
	return s
}

// SetInheritedProperties sets the InheritedProperties field's value.
func (s *LogGroup) SetInheritedProperties(v []*string) *LogGroup {
	s.InheritedProperties = v
	return s
}

// SetKmsKeyId sets the KmsKeyId field's value.
func (s *LogGroup) SetKmsKeyId(v string) *LogGroup {
	s.KmsKeyId = &v
	return s
}

// SetLogGroupArn sets the LogGroupArn field's value.
func (s *LogGroup) SetLogGroupArn(v string) *LogGroup {
	s.LogGroupArn = &v
	return s
}

// SetLogGroupClass sets the LogGroupClass field's value.
func (s *LogGroup) SetLogGroupClass(v string) *LogGroup {
	s.LogGroupClass = &v
	return s
}

// SetLogGroupName sets the LogGroupName field's value.
func (s *LogGroup) SetLogGroupName(v string) *LogGroup {
	s.LogGroupName = &v
	return s
}

// SetMetricFilterCount sets the MetricFilterCount field's value.
func (s *LogGroup) SetMetricFilterCount(v int64) *LogGroup {
	s.MetricFilterCount = &v
	return s
}

// SetRetentionInDays sets the RetentionInDays field's value.
func (s *LogGroup) SetRetentionInDays(v int64) *LogGroup {
	s.RetentionInDays = &v
	return s
}

// SetStoredBytes sets the StoredBytes field's value.
func (s *LogGroup) SetStoredBytes(v int64) *LogGroup {
	s.StoredBytes = &v
	return s
}

// The fields contained in log events found by a GetLogGroupFields operation,
// along with the percentage of queried log events in which each field appears.
type LogGroupField struct {
	_ struct{} `type:"structure"`

	// The name of a log field.
	Name *string `locationName:"name" type:"string"`

	// The percentage of log events queried that contained the field.
	Percent *int64 `locationName:"percent" type:"integer"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s LogGroupField) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s LogGroupField) GoString() string {
	return s.String()
}

// SetName sets the Name field's value.
func (s *LogGroupField) SetName(v string) *LogGroupField {
	s.Name = &v
	return s
}

// SetPercent sets the Percent field's value.
func (s *LogGroupField) SetPercent(v int64) *LogGroupField {
	s.Percent = &v
	return s
}

// This structure contains information about one log group in your account.
type LogGroupSummary struct {
	_ struct{} `type:"structure"`

	// The Amazon Resource Name (ARN) of the log group.
	LogGroupArn *string `locationName:"logGroupArn" type:"string"`

	// The log group class for this log group. For details about the features supported
	// by each log group class, see Log classes (https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/CloudWatch_Logs_Log_Classes.html)
	LogGroupClass *string `locationName:"logGroupClass" type:"string" enum:"LogGroupClass"`

	// The name of the log group.
	LogGroupName *string `locationName:"logGroupName" min:"1" type:"string"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s LogGroupSummary) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s LogGroupSummary) GoString() string {
	return s.String()
}

// SetLogGroupArn sets the LogGroupArn field's value.
func (s *LogGroupSummary) SetLogGroupArn(v string) *LogGroupSummary {
	s.LogGroupArn = &v
	return s
}

// SetLogGroupClass sets the LogGroupClass field's value.
func (s *LogGroupSummary) SetLogGroupClass(v string) *LogGroupSummary {
	s.LogGroupClass = &v
	return s
}

// SetLogGroupName sets the LogGroupName field's value.
func (s *LogGroupSummary) SetLogGroupName(v string) *LogGroupSummary {
	s.LogGroupName = &v
	return s
}

// Represents a log stream, which is a sequence of log events from a single
// emitter of logs.
type LogStream struct {
	_ struct{} `type:"structure"`

	// The Amazon Resource Name (ARN) of the log stream.
	Arn *string `locationName:"arn" type:"string"`

	// The creation time of the stream, expressed as the number of milliseconds
	// after Jan 1, 1970 00:00:00 UTC.
	CreationTime *int64 `locationName:"creationTime" type:"long"`

	// The time of the first event, expressed as the number of milliseconds after
	// Jan 1, 1970 00:00:00 UTC.
	FirstEventTimestamp *int64 `locationName:"firstEventTimestamp" type:"long"`

	// The time of the most recent log event in the log stream in CloudWatch Logs.
	// This number is expressed as the number of milliseconds after Jan 1, 1970
	// 00:00:00 UTC. The lastEventTime value updates on an eventual consistency
	// basis. It typically updates in less than an hour from ingestion, but in rare
	// situations might take longer.
	LastEventTimestamp *int64 `locationName:"lastEventTimestamp" type:"long"`

	// The ingestion time, expressed as the number of milliseconds after Jan 1,
	// 1970 00:00:00 UTC The lastIngestionTime value updates on an eventual consistency
	// basis. It typically updates in less than an hour after ingestion, but in
	// rare situations might take longer.
	LastIngestionTime *int64 `locationName:"lastIngestionTime" type:"long"`

	// The name of the log stream.
	LogStreamName *string `locationName:"logStreamName" min:"1" type:"string"`

	// The number of bytes stored.
	//
	// Important: As of June 17, 2019, this parameter is no longer supported for
	// log streams, and is always reported as zero. This change applies only to
	// log streams. The storedBytes parameter for log groups is not affected.
	//
	// Deprecated: Starting on June 17, 2019, this parameter will be deprecated for log streams, and will be reported as zero. This change applies only to log streams. The storedBytes parameter for log groups is not affected.
	StoredBytes *int64 `locationName:"storedBytes" deprecated:"true" type:"long"`

	// The sequence token.
	//
	// The sequence token is now ignored in PutLogEvents actions. PutLogEvents actions
	// are always accepted regardless of receiving an invalid sequence token. You
	// don't need to obtain uploadSequenceToken to use a PutLogEvents action.
	UploadSequenceToken *string `locationName:"uploadSequenceToken" min:"1" type:"string"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s LogStream) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s LogStream) GoString() string {
	return s.String()
}

// SetArn sets the Arn field's value.
func (s *LogStream) SetArn(v string) *LogStream {
	s.Arn = &v
	return s
}

// SetCreationTime sets the CreationTime field's value.
func (s *LogStream) SetCreationTime(v int64) *LogStream {
	s.CreationTime = &v
	return s
}

// SetFirstEventTimestamp sets the FirstEventTimestamp field's value.
func (s *LogStream) SetFirstEventTimestamp(v int64) *LogStream {
	s.FirstEventTimestamp = &v
	return s
}

// SetLastEventTimestamp sets the LastEventTimestamp field's value.
func (s *LogStream) SetLastEventTimestamp(v int64) *LogStream {
	s.LastEventTimestamp = &v
	return s
}

// SetLastIngestionTime sets the LastIngestionTime field's value.
func (s *LogStream) SetLastIngestionTime(v int64) *LogStream {
	s.LastIngestionTime = &v
	return s
}

// SetLogStreamName sets the LogStreamName field's value.
func (s *LogStream) SetLogStreamName(v string) *LogStream {
	s.LogStreamName = &v
	return s
}

// SetStoredBytes sets the StoredBytes field's value.
func (s *LogStream) SetStoredBytes(v int64) *LogStream {
	s.StoredBytes = &v
	return s
}

// SetUploadSequenceToken sets the UploadSequenceToken field's value.
func (s *LogStream) SetUploadSequenceToken(v string) *LogStream {
	s.UploadSequenceToken = &v
	return s
}

// This processor converts a string to lowercase.
//
// For more information about this processor including examples, see lowerCaseString
// (https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/CloudWatch-Logs-Transformation.html#CloudWatch-Logs-Transformation-lowerCaseString)
// in the CloudWatch Logs User Guide.
type LowerCaseString struct {
	_ struct{} `type:"structure"`

	// The array caontaining the keys of the fields to convert to lowercase.
	//
	// WithKeys is a required field
	WithKeys []*string `locationName:"withKeys" min:"1" type:"list" required:"true"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s LowerCaseString) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s LowerCaseString) GoString() string {
	return s.String()
}

// Validate inspects the fields of the type to determine if they are valid.
func (s *LowerCaseString) Validate() error {
	invalidParams := request.ErrInvalidParams{Context: "LowerCaseString"}
	if s.WithKeys == nil {
		invalidParams.Add(request.NewErrParamRequired("WithKeys"))
	}
	if s.WithKeys != nil && len(s.WithKeys) < 1 {
		invalidParams.Add(request.NewErrParamMinLen("WithKeys", 1))
	}

	if invalidParams.Len() > 0 {
		return invalidParams
	}
	return nil
}

// SetWithKeys sets the WithKeys field's value.
func (s *LowerCaseString) SetWithKeys(v []*string) *LowerCaseString {
	s.WithKeys = v
	return s
}

// The query string is not valid. Details about this error are displayed in
// a QueryCompileError object. For more information, see QueryCompileError (https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_QueryCompileError.html).
//
// For more information about valid query syntax, see CloudWatch Logs Insights
// Query Syntax (https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/CWL_QuerySyntax.html).
type MalformedQueryException struct {
	_            struct{}                  `type:"structure"`
	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`

	Message_ *string `locationName:"message" type:"string"`

	// Reserved.
	QueryCompileError *QueryCompileError `locationName:"queryCompileError" type:"structure"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s MalformedQueryException) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s MalformedQueryException) GoString() string {
	return s.String()
}

func newErrorMalformedQueryException(v protocol.ResponseMetadata) error {
	return &MalformedQueryException{
		RespMetadata: v,
	}
}

// Code returns the exception type name.
func (s *MalformedQueryException) Code() string {
	return "MalformedQueryException"
}

// Message returns the exception's message.
func (s *MalformedQueryException) Message() string {
	if s.Message_ != nil {
		return *s.Message_
	}
	return ""
}

// OrigErr always returns nil, satisfies awserr.Error interface.
func (s *MalformedQueryException) OrigErr() error {
	return nil
}

func (s *MalformedQueryException) Error() string {
	return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}

// Status code returns the HTTP status code for the request's response error.
func (s *MalformedQueryException) StatusCode() int {
	return s.RespMetadata.StatusCode
}

// RequestID returns the service's response RequestID for request.
func (s *MalformedQueryException) RequestID() string {
	return s.RespMetadata.RequestID
}

// Metric filters express how CloudWatch Logs would extract metric observations
// from ingested log events and transform them into metric data in a CloudWatch
// metric.
type MetricFilter struct {
	_ struct{} `type:"structure"`

	// This parameter is valid only for log groups that have an active log transformer.
	// For more information about log transformers, see PutTransformer (https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_PutTransformer.html).
	//
	// If this value is true, the metric filter is applied on the transformed version
	// of the log events instead of the original ingested log events.
	ApplyOnTransformedLogs *bool `locationName:"applyOnTransformedLogs" type:"boolean"`

	// The creation time of the metric filter, expressed as the number of milliseconds
	// after Jan 1, 1970 00:00:00 UTC.
	CreationTime *int64 `locationName:"creationTime" type:"long"`

	// The name of the metric filter.
	FilterName *string `locationName:"filterName" min:"1" type:"string"`

	// A symbolic description of how CloudWatch Logs should interpret the data in
	// each log event. For example, a log event can contain timestamps, IP addresses,
	// strings, and so on. You use the filter pattern to specify what to look for
	// in the log event message.
	FilterPattern *string `locationName:"filterPattern" type:"string"`

	// The name of the log group.
	LogGroupName *string `locationName:"logGroupName" min:"1" type:"string"`

	// The metric transformations.
	MetricTransformations []*MetricTransformation `locationName:"metricTransformations" min:"1" type:"list"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s MetricFilter) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s MetricFilter) GoString() string {
	return s.String()
}

// SetApplyOnTransformedLogs sets the ApplyOnTransformedLogs field's value.
func (s *MetricFilter) SetApplyOnTransformedLogs(v bool) *MetricFilter {
	s.ApplyOnTransformedLogs = &v
	return s
}

// SetCreationTime sets the CreationTime field's value.
func (s *MetricFilter) SetCreationTime(v int64) *MetricFilter {
	s.CreationTime = &v
	return s
}

// SetFilterName sets the FilterName field's value.
func (s *MetricFilter) SetFilterName(v string) *MetricFilter {
	s.FilterName = &v
	return s
}

// SetFilterPattern sets the FilterPattern field's value.
func (s *MetricFilter) SetFilterPattern(v string) *MetricFilter {
	s.FilterPattern = &v
	return s
}

// SetLogGroupName sets the LogGroupName field's value.
func (s *MetricFilter) SetLogGroupName(v string) *MetricFilter {
	s.LogGroupName = &v
	return s
}

// SetMetricTransformations sets the MetricTransformations field's value.
func (s *MetricFilter) SetMetricTransformations(v []*MetricTransformation) *MetricFilter {
	s.MetricTransformations = v
	return s
}

// Represents a matched event.
type MetricFilterMatchRecord struct {
	_ struct{} `type:"structure"`

	// The raw event data.
	EventMessage *string `locationName:"eventMessage" min:"1" type:"string"`

	// The event number.
	EventNumber *int64 `locationName:"eventNumber" type:"long"`

	// The values extracted from the event data by the filter.
	ExtractedValues map[string]*string `locationName:"extractedValues" type:"map"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s MetricFilterMatchRecord) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s MetricFilterMatchRecord) GoString() string {
	return s.String()
}

// SetEventMessage sets the EventMessage field's value.
func (s *MetricFilterMatchRecord) SetEventMessage(v string) *MetricFilterMatchRecord {
	s.EventMessage = &v
	return s
}

// SetEventNumber sets the EventNumber field's value.
func (s *MetricFilterMatchRecord) SetEventNumber(v int64) *MetricFilterMatchRecord {
	s.EventNumber = &v
	return s
}

// SetExtractedValues sets the ExtractedValues field's value.
func (s *MetricFilterMatchRecord) SetExtractedValues(v map[string]*string) *MetricFilterMatchRecord {
	s.ExtractedValues = v
	return s
}

// Indicates how to transform ingested log events to metric data in a CloudWatch
// metric.
type MetricTransformation struct {
	_ struct{} `type:"structure"`

	// (Optional) The value to emit when a filter pattern does not match a log event.
	// This value can be null.
	DefaultValue *float64 `locationName:"defaultValue" type:"double"`

	// The fields to use as dimensions for the metric. One metric filter can include
	// as many as three dimensions.
	//
	// Metrics extracted from log events are charged as custom metrics. To prevent
	// unexpected high charges, do not specify high-cardinality fields such as IPAddress
	// or requestID as dimensions. Each different value found for a dimension is
	// treated as a separate metric and accrues charges as a separate custom metric.
	//
	// CloudWatch Logs disables a metric filter if it generates 1000 different name/value
	// pairs for your specified dimensions within a certain amount of time. This
	// helps to prevent accidental high charges.
	//
	// You can also set up a billing alarm to alert you if your charges are higher
	// than expected. For more information, see Creating a Billing Alarm to Monitor
	// Your Estimated Amazon Web Services Charges (https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/monitor_estimated_charges_with_cloudwatch.html).
	Dimensions map[string]*string `locationName:"dimensions" type:"map"`

	// The name of the CloudWatch metric.
	//
	// MetricName is a required field
	MetricName *string `locationName:"metricName" type:"string" required:"true"`

	// A custom namespace to contain your metric in CloudWatch. Use namespaces to
	// group together metrics that are similar. For more information, see Namespaces
	// (https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/cloudwatch_concepts.html#Namespace).
	//
	// MetricNamespace is a required field
	MetricNamespace *string `locationName:"metricNamespace" type:"string" required:"true"`

	// The value to publish to the CloudWatch metric when a filter pattern matches
	// a log event.
	//
	// MetricValue is a required field
	MetricValue *string `locationName:"metricValue" type:"string" required:"true"`

	// The unit to assign to the metric. If you omit this, the unit is set as None.
	Unit *string `locationName:"unit" type:"string" enum:"StandardUnit"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s MetricTransformation) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s MetricTransformation) GoString() string {
	return s.String()
}

// Validate inspects the fields of the type to determine if they are valid.
func (s *MetricTransformation) Validate() error {
	invalidParams := request.ErrInvalidParams{Context: "MetricTransformation"}
	if s.MetricName == nil {
		invalidParams.Add(request.NewErrParamRequired("MetricName"))
	}
	if s.MetricNamespace == nil {
		invalidParams.Add(request.NewErrParamRequired("MetricNamespace"))
	}
	if s.MetricValue == nil {
		invalidParams.Add(request.NewErrParamRequired("MetricValue"))
	}

	if invalidParams.Len() > 0 {
		return invalidParams
	}
	return nil
}

// SetDefaultValue sets the DefaultValue field's value.
func (s *MetricTransformation) SetDefaultValue(v float64) *MetricTransformation {
	s.DefaultValue = &v
	return s
}

// SetDimensions sets the Dimensions field's value.
func (s *MetricTransformation) SetDimensions(v map[string]*string) *MetricTransformation {
	s.Dimensions = v
	return s
}

// SetMetricName sets the MetricName field's value.
func (s *MetricTransformation) SetMetricName(v string) *MetricTransformation {
	s.MetricName = &v
	return s
}

// SetMetricNamespace sets the MetricNamespace field's value.
func (s *MetricTransformation) SetMetricNamespace(v string) *MetricTransformation {
	s.MetricNamespace = &v
	return s
}

// SetMetricValue sets the MetricValue field's value.
func (s *MetricTransformation) SetMetricValue(v string) *MetricTransformation {
	s.MetricValue = &v
	return s
}

// SetUnit sets the Unit field's value.
func (s *MetricTransformation) SetUnit(v string) *MetricTransformation {
	s.Unit = &v
	return s
}

// This object defines one key that will be moved with the moveKey (https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/CloudWatch-Logs-Transformation.html#CloudWatch-Logs-Transformation-moveKey)
// processor.
type MoveKeyEntry struct {
	_ struct{} `type:"structure"`

	// Specifies whether to overwrite the value if the destination key already exists.
	// If you omit this, the default is false.
	OverwriteIfExists *bool `locationName:"overwriteIfExists" type:"boolean"`

	// The key to move.
	//
	// Source is a required field
	Source *string `locationName:"source" min:"1" type:"string" required:"true"`

	// The key to move to.
	//
	// Target is a required field
	Target *string `locationName:"target" min:"1" type:"string" required:"true"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s MoveKeyEntry) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s MoveKeyEntry) GoString() string {
	return s.String()
}

// Validate inspects the fields of the type to determine if they are valid.
func (s *MoveKeyEntry) Validate() error {
	invalidParams := request.ErrInvalidParams{Context: "MoveKeyEntry"}
	if s.Source == nil {
		invalidParams.Add(request.NewErrParamRequired("Source"))
	}
	if s.Source != nil && len(*s.Source) < 1 {
		invalidParams.Add(request.NewErrParamMinLen("Source", 1))
	}
	if s.Target == nil {
		invalidParams.Add(request.NewErrParamRequired("Target"))
	}
	if s.Target != nil && len(*s.Target) < 1 {
		invalidParams.Add(request.NewErrParamMinLen("Target", 1))
	}

	if invalidParams.Len() > 0 {
		return invalidParams
	}
	return nil
}

// SetOverwriteIfExists sets the OverwriteIfExists field's value.
func (s *MoveKeyEntry) SetOverwriteIfExists(v bool) *MoveKeyEntry {
	s.OverwriteIfExists = &v
	return s
}

// SetSource sets the Source field's value.
func (s *MoveKeyEntry) SetSource(v string) *MoveKeyEntry {
	s.Source = &v
	return s
}

// SetTarget sets the Target field's value.
func (s *MoveKeyEntry) SetTarget(v string) *MoveKeyEntry {
	s.Target = &v
	return s
}

// This processor moves a key from one field to another. The original key is
// deleted.
//
// For more information about this processor including examples, see moveKeys
// (https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/CloudWatch-Logs-Transformation.html#CloudWatch-Logs-Transformation-moveKeys)
// in the CloudWatch Logs User Guide.
type MoveKeys struct {
	_ struct{} `type:"structure"`

	// An array of objects, where each object contains the information about one
	// key to move.
	//
	// Entries is a required field
	Entries []*MoveKeyEntry `locationName:"entries" min:"1" type:"list" required:"true"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s MoveKeys) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s MoveKeys) GoString() string {
	return s.String()
}

// Validate inspects the fields of the type to determine if they are valid.
func (s *MoveKeys) Validate() error {
	invalidParams := request.ErrInvalidParams{Context: "MoveKeys"}
	if s.Entries == nil {
		invalidParams.Add(request.NewErrParamRequired("Entries"))
	}
	if s.Entries != nil && len(s.Entries) < 1 {
		invalidParams.Add(request.NewErrParamMinLen("Entries", 1))
	}
	if s.Entries != nil {
		for i, v := range s.Entries {
			if v == nil {
				continue
			}
			if err := v.Validate(); err != nil {
				invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Entries", i), err.(request.ErrInvalidParams))
			}
		}
	}

	if invalidParams.Len() > 0 {
		return invalidParams
	}
	return nil
}

// SetEntries sets the Entries field's value.
func (s *MoveKeys) SetEntries(v []*MoveKeyEntry) *MoveKeys {
	s.Entries = v
	return s
}

// This structure contains information about the OpenSearch Service application
// used for this integration. An OpenSearch Service application is the web application
// created by the integration with CloudWatch Logs. It hosts the vended logs
// dashboards.
type OpenSearchApplication struct {
	_ struct{} `type:"structure"`

	// The Amazon Resource Name (ARN) of the application.
	ApplicationArn *string `locationName:"applicationArn" type:"string"`

	// The endpoint of the application.
	ApplicationEndpoint *string `locationName:"applicationEndpoint" min:"1" type:"string"`

	// The ID of the application.
	ApplicationId *string `locationName:"applicationId" min:"1" type:"string"`

	// This structure contains information about the status of this OpenSearch Service
	// resource.
	Status *OpenSearchResourceStatus `locationName:"status" type:"structure"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s OpenSearchApplication) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s OpenSearchApplication) GoString() string {
	return s.String()
}

// SetApplicationArn sets the ApplicationArn field's value.
func (s *OpenSearchApplication) SetApplicationArn(v string) *OpenSearchApplication {
	s.ApplicationArn = &v
	return s
}

// SetApplicationEndpoint sets the ApplicationEndpoint field's value.
func (s *OpenSearchApplication) SetApplicationEndpoint(v string) *OpenSearchApplication {
	s.ApplicationEndpoint = &v
	return s
}

// SetApplicationId sets the ApplicationId field's value.
func (s *OpenSearchApplication) SetApplicationId(v string) *OpenSearchApplication {
	s.ApplicationId = &v
	return s
}

// SetStatus sets the Status field's value.
func (s *OpenSearchApplication) SetStatus(v *OpenSearchResourceStatus) *OpenSearchApplication {
	s.Status = v
	return s
}

// This structure contains information about the OpenSearch Service collection
// used for this integration. An OpenSearch Service collection is a logical
// grouping of one or more indexes that represent an analytics workload. For
// more information, see Creating and managing OpenSearch Service Serverless
// collections (https://docs.aws.amazon.com/opensearch-service/latest/developerguide/serverless-collections.html).
type OpenSearchCollection struct {
	_ struct{} `type:"structure"`

	// The ARN of the collection.
	CollectionArn *string `locationName:"collectionArn" type:"string"`

	// The endpoint of the collection.
	CollectionEndpoint *string `locationName:"collectionEndpoint" min:"1" type:"string"`

	// This structure contains information about the status of this OpenSearch Service
	// resource.
	Status *OpenSearchResourceStatus `locationName:"status" type:"structure"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s OpenSearchCollection) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s OpenSearchCollection) GoString() string {
	return s.String()
}

// SetCollectionArn sets the CollectionArn field's value.
func (s *OpenSearchCollection) SetCollectionArn(v string) *OpenSearchCollection {
	s.CollectionArn = &v
	return s
}

// SetCollectionEndpoint sets the CollectionEndpoint field's value.
func (s *OpenSearchCollection) SetCollectionEndpoint(v string) *OpenSearchCollection {
	s.CollectionEndpoint = &v
	return s
}

// SetStatus sets the Status field's value.
func (s *OpenSearchCollection) SetStatus(v *OpenSearchResourceStatus) *OpenSearchCollection {
	s.Status = v
	return s
}

// This structure contains information about the OpenSearch Service data access
// policy used for this integration. The access policy defines the access controls
// for the collection. This data access policy was automatically created as
// part of the integration setup. For more information about OpenSearch Service
// data access policies, see Data access control for Amazon OpenSearch Serverless
// (https://docs.aws.amazon.com/opensearch-service/latest/developerguide/serverless-data-access.html)
// in the OpenSearch Service Developer Guide.
type OpenSearchDataAccessPolicy struct {
	_ struct{} `type:"structure"`

	// The name of the data access policy.
	PolicyName *string `locationName:"policyName" min:"1" type:"string"`

	// This structure contains information about the status of this OpenSearch Service
	// resource.
	Status *OpenSearchResourceStatus `locationName:"status" type:"structure"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s OpenSearchDataAccessPolicy) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s OpenSearchDataAccessPolicy) GoString() string {
	return s.String()
}

// SetPolicyName sets the PolicyName field's value.
func (s *OpenSearchDataAccessPolicy) SetPolicyName(v string) *OpenSearchDataAccessPolicy {
	s.PolicyName = &v
	return s
}

// SetStatus sets the Status field's value.
func (s *OpenSearchDataAccessPolicy) SetStatus(v *OpenSearchResourceStatus) *OpenSearchDataAccessPolicy {
	s.Status = v
	return s
}

// This structure contains information about the OpenSearch Service data source
// used for this integration. This data source was created as part of the integration
// setup. An OpenSearch Service data source defines the source and destination
// for OpenSearch Service queries. It includes the role required to execute
// queries and write to collections.
//
// For more information about OpenSearch Service data sources , see Creating
// OpenSearch Service data source integrations with Amazon S3. (https://docs.aws.amazon.com/opensearch-service/latest/developerguide/direct-query-s3-creating.html)
type OpenSearchDataSource struct {
	_ struct{} `type:"structure"`

	// The name of the OpenSearch Service data source.
	DataSourceName *string `locationName:"dataSourceName" min:"1" type:"string"`

	// This structure contains information about the status of this OpenSearch Service
	// resource.
	Status *OpenSearchResourceStatus `locationName:"status" type:"structure"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s OpenSearchDataSource) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s OpenSearchDataSource) GoString() string {
	return s.String()
}

// SetDataSourceName sets the DataSourceName field's value.
func (s *OpenSearchDataSource) SetDataSourceName(v string) *OpenSearchDataSource {
	s.DataSourceName = &v
	return s
}

// SetStatus sets the Status field's value.
func (s *OpenSearchDataSource) SetStatus(v *OpenSearchResourceStatus) *OpenSearchDataSource {
	s.Status = v
	return s
}

// This structure contains information about the OpenSearch Service encryption
// policy used for this integration. The encryption policy was created automatically
// when you created the integration. For more information, see Encryption policies
// (https://docs.aws.amazon.com/opensearch-service/latest/developerguide/serverless-encryption.html#serverless-encryption-policies)
// in the OpenSearch Service Developer Guide.
type OpenSearchEncryptionPolicy struct {
	_ struct{} `type:"structure"`

	// The name of the encryption policy.
	PolicyName *string `locationName:"policyName" min:"1" type:"string"`

	// This structure contains information about the status of this OpenSearch Service
	// resource.
	Status *OpenSearchResourceStatus `locationName:"status" type:"structure"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s OpenSearchEncryptionPolicy) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s OpenSearchEncryptionPolicy) GoString() string {
	return s.String()
}

// SetPolicyName sets the PolicyName field's value.
func (s *OpenSearchEncryptionPolicy) SetPolicyName(v string) *OpenSearchEncryptionPolicy {
	s.PolicyName = &v
	return s
}

// SetStatus sets the Status field's value.
func (s *OpenSearchEncryptionPolicy) SetStatus(v *OpenSearchResourceStatus) *OpenSearchEncryptionPolicy {
	s.Status = v
	return s
}

// This structure contains complete information about one CloudWatch Logs integration.
// This structure is returned by a GetIntegration (https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_GetIntegration.html)
// operation.
type OpenSearchIntegrationDetails struct {
	_ struct{} `type:"structure"`

	// This structure contains information about the OpenSearch Service data access
	// policy used for this integration. The access policy defines the access controls
	// for the collection. This data access policy was automatically created as
	// part of the integration setup. For more information about OpenSearch Service
	// data access policies, see Data access control for Amazon OpenSearch Serverless
	// (https://docs.aws.amazon.com/opensearch-service/latest/developerguide/serverless-data-access.html)
	// in the OpenSearch Service Developer Guide.
	AccessPolicy *OpenSearchDataAccessPolicy `locationName:"accessPolicy" type:"structure"`

	// This structure contains information about the OpenSearch Service application
	// used for this integration. An OpenSearch Service application is the web application
	// that was created by the integration with CloudWatch Logs. It hosts the vended
	// logs dashboards.
	Application *OpenSearchApplication `locationName:"application" type:"structure"`

	// This structure contains information about the OpenSearch Service collection
	// used for this integration. This collection was created as part of the integration
	// setup. An OpenSearch Service collection is a logical grouping of one or more
	// indexes that represent an analytics workload. For more information, see Creating
	// and managing OpenSearch Service Serverless collections (https://docs.aws.amazon.com/opensearch-service/latest/developerguide/serverless-collections.html).
	Collection *OpenSearchCollection `locationName:"collection" type:"structure"`

	// This structure contains information about the OpenSearch Service data source
	// used for this integration. This data source was created as part of the integration
	// setup. An OpenSearch Service data source defines the source and destination
	// for OpenSearch Service queries. It includes the role required to execute
	// queries and write to collections.
	//
	// For more information about OpenSearch Service data sources , see Creating
	// OpenSearch Service data source integrations with Amazon S3. (https://docs.aws.amazon.com/opensearch-service/latest/developerguide/direct-query-s3-creating.html)
	DataSource *OpenSearchDataSource `locationName:"dataSource" type:"structure"`

	// This structure contains information about the OpenSearch Service encryption
	// policy used for this integration. The encryption policy was created automatically
	// when you created the integration. For more information, see Encryption policies
	// (https://docs.aws.amazon.com/opensearch-service/latest/developerguide/serverless-encryption.html#serverless-encryption-policies)
	// in the OpenSearch Service Developer Guide.
	EncryptionPolicy *OpenSearchEncryptionPolicy `locationName:"encryptionPolicy" type:"structure"`

	// This structure contains information about the OpenSearch Service data lifecycle
	// policy used for this integration. The lifecycle policy determines the lifespan
	// of the data in the collection. It was automatically created as part of the
	// integration setup.
	//
	// For more information, see Using data lifecycle policies with OpenSearch Service
	// Serverless (https://docs.aws.amazon.com/opensearch-service/latest/developerguide/serverless-lifecycle.html)
	// in the OpenSearch Service Developer Guide.
	LifecyclePolicy *OpenSearchLifecyclePolicy `locationName:"lifecyclePolicy" type:"structure"`

	// This structure contains information about the OpenSearch Service network
	// policy used for this integration. The network policy assigns network access
	// settings to collections. For more information, see Network policies (https://docs.aws.amazon.com/opensearch-service/latest/developerguide/serverless-network.html#serverless-network-policies)
	// in the OpenSearch Service Developer Guide.
	NetworkPolicy *OpenSearchNetworkPolicy `locationName:"networkPolicy" type:"structure"`

	// This structure contains information about the OpenSearch Service workspace
	// used for this integration. An OpenSearch Service workspace is the collection
	// of dashboards along with other OpenSearch Service tools. This workspace was
	// created automatically as part of the integration setup. For more information,
	// see Centralized OpenSearch user interface (Dashboards) with OpenSearch Service
	// (https://docs.aws.amazon.com/opensearch-service/latest/developerguide/application.html).
	Workspace *OpenSearchWorkspace `locationName:"workspace" type:"structure"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s OpenSearchIntegrationDetails) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s OpenSearchIntegrationDetails) GoString() string {
	return s.String()
}

// SetAccessPolicy sets the AccessPolicy field's value.
func (s *OpenSearchIntegrationDetails) SetAccessPolicy(v *OpenSearchDataAccessPolicy) *OpenSearchIntegrationDetails {
	s.AccessPolicy = v
	return s
}

// SetApplication sets the Application field's value.
func (s *OpenSearchIntegrationDetails) SetApplication(v *OpenSearchApplication) *OpenSearchIntegrationDetails {
	s.Application = v
	return s
}

// SetCollection sets the Collection field's value.
func (s *OpenSearchIntegrationDetails) SetCollection(v *OpenSearchCollection) *OpenSearchIntegrationDetails {
	s.Collection = v
	return s
}

// SetDataSource sets the DataSource field's value.
func (s *OpenSearchIntegrationDetails) SetDataSource(v *OpenSearchDataSource) *OpenSearchIntegrationDetails {
	s.DataSource = v
	return s
}

// SetEncryptionPolicy sets the EncryptionPolicy field's value.
func (s *OpenSearchIntegrationDetails) SetEncryptionPolicy(v *OpenSearchEncryptionPolicy) *OpenSearchIntegrationDetails {
	s.EncryptionPolicy = v
	return s
}

// SetLifecyclePolicy sets the LifecyclePolicy field's value.
func (s *OpenSearchIntegrationDetails) SetLifecyclePolicy(v *OpenSearchLifecyclePolicy) *OpenSearchIntegrationDetails {
	s.LifecyclePolicy = v
	return s
}

// SetNetworkPolicy sets the NetworkPolicy field's value.
func (s *OpenSearchIntegrationDetails) SetNetworkPolicy(v *OpenSearchNetworkPolicy) *OpenSearchIntegrationDetails {
	s.NetworkPolicy = v
	return s
}

// SetWorkspace sets the Workspace field's value.
func (s *OpenSearchIntegrationDetails) SetWorkspace(v *OpenSearchWorkspace) *OpenSearchIntegrationDetails {
	s.Workspace = v
	return s
}

// This structure contains information about the OpenSearch Service data lifecycle
// policy used for this integration. The lifecycle policy determines the lifespan
// of the data in the collection. It was automatically created as part of the
// integration setup.
//
// For more information, see Using data lifecycle policies with OpenSearch Service
// Serverless (https://docs.aws.amazon.com/opensearch-service/latest/developerguide/serverless-lifecycle.html)
// in the OpenSearch Service Developer Guide.
type OpenSearchLifecyclePolicy struct {
	_ struct{} `type:"structure"`

	// The name of the lifecycle policy.
	PolicyName *string `locationName:"policyName" min:"1" type:"string"`

	// This structure contains information about the status of this OpenSearch Service
	// resource.
	Status *OpenSearchResourceStatus `locationName:"status" type:"structure"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s OpenSearchLifecyclePolicy) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s OpenSearchLifecyclePolicy) GoString() string {
	return s.String()
}

// SetPolicyName sets the PolicyName field's value.
func (s *OpenSearchLifecyclePolicy) SetPolicyName(v string) *OpenSearchLifecyclePolicy {
	s.PolicyName = &v
	return s
}

// SetStatus sets the Status field's value.
func (s *OpenSearchLifecyclePolicy) SetStatus(v *OpenSearchResourceStatus) *OpenSearchLifecyclePolicy {
	s.Status = v
	return s
}

// This structure contains information about the OpenSearch Service network
// policy used for this integration. The network policy assigns network access
// settings to collections. For more information, see Network policies (https://docs.aws.amazon.com/opensearch-service/latest/developerguide/serverless-network.html#serverless-network-policies)
// in the OpenSearch Service Developer Guide.
type OpenSearchNetworkPolicy struct {
	_ struct{} `type:"structure"`

	// The name of the network policy.
	PolicyName *string `locationName:"policyName" min:"1" type:"string"`

	// This structure contains information about the status of this OpenSearch Service
	// resource.
	Status *OpenSearchResourceStatus `locationName:"status" type:"structure"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s OpenSearchNetworkPolicy) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s OpenSearchNetworkPolicy) GoString() string {
	return s.String()
}

// SetPolicyName sets the PolicyName field's value.
func (s *OpenSearchNetworkPolicy) SetPolicyName(v string) *OpenSearchNetworkPolicy {
	s.PolicyName = &v
	return s
}

// SetStatus sets the Status field's value.
func (s *OpenSearchNetworkPolicy) SetStatus(v *OpenSearchResourceStatus) *OpenSearchNetworkPolicy {
	s.Status = v
	return s
}

// This structure contains configuration details about an integration between
// CloudWatch Logs and OpenSearch Service.
type OpenSearchResourceConfig struct {
	_ struct{} `type:"structure"`

	// If you want to use an existing OpenSearch Service application for your integration
	// with OpenSearch Service, specify it here. If you omit this, a new application
	// will be created.
	ApplicationArn *string `locationName:"applicationArn" type:"string"`

	// Specify the ARNs of IAM roles and IAM users who you want to grant permission
	// to for viewing the dashboards.
	//
	// In addition to specifying these users here, you must also grant them the
	// CloudWatchOpenSearchDashboardAccess IAM policy. For more information, see
	// IAM policies for users (https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/OpenSearch-Dashboards-UserRoles.html).
	//
	// DashboardViewerPrincipals is a required field
	DashboardViewerPrincipals []*string `locationName:"dashboardViewerPrincipals" type:"list" required:"true"`

	// Specify the ARN of an IAM role that CloudWatch Logs will use to create the
	// integration. This role must have the permissions necessary to access the
	// OpenSearch Service collection to be able to create the dashboards. For more
	// information about the permissions needed, see Permissions that the integration
	// needs (https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/OpenSearch-Dashboards-CreateRole.html)
	// in the CloudWatch Logs User Guide.
	//
	// DataSourceRoleArn is a required field
	DataSourceRoleArn *string `locationName:"dataSourceRoleArn" type:"string" required:"true"`

	// To have the vended dashboard data encrypted with KMS instead of the CloudWatch
	// Logs default encryption method, specify the ARN of the KMS key that you want
	// to use.
	KmsKeyArn *string `locationName:"kmsKeyArn" type:"string"`

	// Specify how many days that you want the data derived by OpenSearch Service
	// to be retained in the index that the dashboard refers to. This also sets
	// the maximum time period that you can choose when viewing data in the dashboard.
	// Choosing a longer time frame will incur additional costs.
	//
	// RetentionDays is a required field
	RetentionDays *int64 `locationName:"retentionDays" min:"1" type:"integer" required:"true"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s OpenSearchResourceConfig) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s OpenSearchResourceConfig) GoString() string {
	return s.String()
}

// Validate inspects the fields of the type to determine if they are valid.
func (s *OpenSearchResourceConfig) Validate() error {
	invalidParams := request.ErrInvalidParams{Context: "OpenSearchResourceConfig"}
	if s.DashboardViewerPrincipals == nil {
		invalidParams.Add(request.NewErrParamRequired("DashboardViewerPrincipals"))
	}
	if s.DataSourceRoleArn == nil {
		invalidParams.Add(request.NewErrParamRequired("DataSourceRoleArn"))
	}
	if s.RetentionDays == nil {
		invalidParams.Add(request.NewErrParamRequired("RetentionDays"))
	}
	if s.RetentionDays != nil && *s.RetentionDays < 1 {
		invalidParams.Add(request.NewErrParamMinValue("RetentionDays", 1))
	}

	if invalidParams.Len() > 0 {
		return invalidParams
	}
	return nil
}

// SetApplicationArn sets the ApplicationArn field's value.
func (s *OpenSearchResourceConfig) SetApplicationArn(v string) *OpenSearchResourceConfig {
	s.ApplicationArn = &v
	return s
}

// SetDashboardViewerPrincipals sets the DashboardViewerPrincipals field's value.
func (s *OpenSearchResourceConfig) SetDashboardViewerPrincipals(v []*string) *OpenSearchResourceConfig {
	s.DashboardViewerPrincipals = v
	return s
}

// SetDataSourceRoleArn sets the DataSourceRoleArn field's value.
func (s *OpenSearchResourceConfig) SetDataSourceRoleArn(v string) *OpenSearchResourceConfig {
	s.DataSourceRoleArn = &v
	return s
}

// SetKmsKeyArn sets the KmsKeyArn field's value.
func (s *OpenSearchResourceConfig) SetKmsKeyArn(v string) *OpenSearchResourceConfig {
	s.KmsKeyArn = &v
	return s
}

// SetRetentionDays sets the RetentionDays field's value.
func (s *OpenSearchResourceConfig) SetRetentionDays(v int64) *OpenSearchResourceConfig {
	s.RetentionDays = &v
	return s
}

// This structure contains information about the status of an OpenSearch Service
// resource.
type OpenSearchResourceStatus struct {
	_ struct{} `type:"structure"`

	// The current status of this resource.
	Status *string `locationName:"status" type:"string" enum:"OpenSearchResourceStatusType"`

	// A message with additional information about the status of this resource.
	StatusMessage *string `locationName:"statusMessage" min:"1" type:"string"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s OpenSearchResourceStatus) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s OpenSearchResourceStatus) GoString() string {
	return s.String()
}

// SetStatus sets the Status field's value.
func (s *OpenSearchResourceStatus) SetStatus(v string) *OpenSearchResourceStatus {
	s.Status = &v
	return s
}

// SetStatusMessage sets the StatusMessage field's value.
func (s *OpenSearchResourceStatus) SetStatusMessage(v string) *OpenSearchResourceStatus {
	s.StatusMessage = &v
	return s
}

// This structure contains information about the OpenSearch Service workspace
// used for this integration. An OpenSearch Service workspace is the collection
// of dashboards along with other OpenSearch Service tools. This workspace was
// created automatically as part of the integration setup. For more information,
// see Centralized OpenSearch user interface (Dashboards) with OpenSearch Service
// (https://docs.aws.amazon.com/opensearch-service/latest/developerguide/application.html).
type OpenSearchWorkspace struct {
	_ struct{} `type:"structure"`

	// This structure contains information about the status of an OpenSearch Service
	// resource.
	Status *OpenSearchResourceStatus `locationName:"status" type:"structure"`

	// The ID of this workspace.
	WorkspaceId *string `locationName:"workspaceId" min:"1" type:"string"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s OpenSearchWorkspace) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s OpenSearchWorkspace) GoString() string {
	return s.String()
}

// SetStatus sets the Status field's value.
func (s *OpenSearchWorkspace) SetStatus(v *OpenSearchResourceStatus) *OpenSearchWorkspace {
	s.Status = v
	return s
}

// SetWorkspaceId sets the WorkspaceId field's value.
func (s *OpenSearchWorkspace) SetWorkspaceId(v string) *OpenSearchWorkspace {
	s.WorkspaceId = &v
	return s
}

// Multiple concurrent requests to update the same resource were in conflict.
type OperationAbortedException struct {
	_            struct{}                  `type:"structure"`
	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`

	Message_ *string `locationName:"message" type:"string"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s OperationAbortedException) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s OperationAbortedException) GoString() string {
	return s.String()
}

func newErrorOperationAbortedException(v protocol.ResponseMetadata) error {
	return &OperationAbortedException{
		RespMetadata: v,
	}
}

// Code returns the exception type name.
func (s *OperationAbortedException) Code() string {
	return "OperationAbortedException"
}

// Message returns the exception's message.
func (s *OperationAbortedException) Message() string {
	if s.Message_ != nil {
		return *s.Message_
	}
	return ""
}

// OrigErr always returns nil, satisfies awserr.Error interface.
func (s *OperationAbortedException) OrigErr() error {
	return nil
}

func (s *OperationAbortedException) Error() string {
	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}

// Status code returns the HTTP status code for the request's response error.
func (s *OperationAbortedException) StatusCode() int {
	return s.RespMetadata.StatusCode
}

// RequestID returns the service's response RequestID for request.
func (s *OperationAbortedException) RequestID() string {
	return s.RespMetadata.RequestID
}

// Represents a log event.
type OutputLogEvent struct {
	_ struct{} `type:"structure"`

	// The time the event was ingested, expressed as the number of milliseconds
	// after Jan 1, 1970 00:00:00 UTC.
	IngestionTime *int64 `locationName:"ingestionTime" type:"long"`

	// The data contained in the log event.
	Message *string `locationName:"message" min:"1" type:"string"`

	// The time the event occurred, expressed as the number of milliseconds after
	// Jan 1, 1970 00:00:00 UTC.
	Timestamp *int64 `locationName:"timestamp" type:"long"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s OutputLogEvent) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s OutputLogEvent) GoString() string {
	return s.String()
}

// SetIngestionTime sets the IngestionTime field's value.
func (s *OutputLogEvent) SetIngestionTime(v int64) *OutputLogEvent {
	s.IngestionTime = &v
	return s
}

// SetMessage sets the Message field's value.
func (s *OutputLogEvent) SetMessage(v string) *OutputLogEvent {
	s.Message = &v
	return s
}

// SetTimestamp sets the Timestamp field's value.
func (s *OutputLogEvent) SetTimestamp(v int64) *OutputLogEvent {
	s.Timestamp = &v
	return s
}

// This processor parses CloudFront vended logs, extract fields, and convert
// them into JSON format. Encoded field values are decoded. Values that are
// integers and doubles are treated as such. For more information about this
// processor including examples, see parseCloudfront (https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/CloudWatch-Logs-Transformation.html#CloudWatch-Logs-Transformation-parseCloudfront)
//
// For more information about CloudFront log format, see Configure and use standard
// logs (access logs) (https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/AccessLogs.html).
//
// If you use this processor, it must be the first processor in your transformer.
type ParseCloudfront struct {
	_ struct{} `type:"structure"`

	// Omit this parameter and the whole log message will be processed by this processor.
	// No other value than @message is allowed for source.
	Source *string `locationName:"source" min:"1" type:"string"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s ParseCloudfront) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s ParseCloudfront) GoString() string {
	return s.String()
}

// Validate inspects the fields of the type to determine if they are valid.
func (s *ParseCloudfront) Validate() error {
	invalidParams := request.ErrInvalidParams{Context: "ParseCloudfront"}
	if s.Source != nil && len(*s.Source) < 1 {
		invalidParams.Add(request.NewErrParamMinLen("Source", 1))
	}

	if invalidParams.Len() > 0 {
		return invalidParams
	}
	return nil
}

// SetSource sets the Source field's value.
func (s *ParseCloudfront) SetSource(v string) *ParseCloudfront {
	s.Source = &v
	return s
}

// This processor parses log events that are in JSON format. It can extract
// JSON key-value pairs and place them under a destination that you specify.
//
// Additionally, because you must have at least one parse-type processor in
// a transformer, you can use ParseJSON as that processor for JSON-format logs,
// so that you can also apply other processors, such as mutate processors, to
// these logs.
//
// For more information about this processor including examples, see parseJSON
// (https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/CloudWatch-Logs-Transformation.html#CloudWatch-Logs-Transformation-parseJSON)
// in the CloudWatch Logs User Guide.
type ParseJSON struct {
	_ struct{} `type:"structure"`

	// The location to put the parsed key value pair into. If you omit this parameter,
	// it is placed under the root node.
	Destination *string `locationName:"destination" min:"1" type:"string"`

	// Path to the field in the log event that will be parsed. Use dot notation
	// to access child fields. For example, store.book
	Source *string `locationName:"source" min:"1" type:"string"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s ParseJSON) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s ParseJSON) GoString() string {
	return s.String()
}

// Validate inspects the fields of the type to determine if they are valid.
func (s *ParseJSON) Validate() error {
	invalidParams := request.ErrInvalidParams{Context: "ParseJSON"}
	if s.Destination != nil && len(*s.Destination) < 1 {
		invalidParams.Add(request.NewErrParamMinLen("Destination", 1))
	}
	if s.Source != nil && len(*s.Source) < 1 {
		invalidParams.Add(request.NewErrParamMinLen("Source", 1))
	}

	if invalidParams.Len() > 0 {
		return invalidParams
	}
	return nil
}

// SetDestination sets the Destination field's value.
func (s *ParseJSON) SetDestination(v string) *ParseJSON {
	s.Destination = &v
	return s
}

// SetSource sets the Source field's value.
func (s *ParseJSON) SetSource(v string) *ParseJSON {
	s.Source = &v
	return s
}

// This processor parses a specified field in the original log event into key-value
// pairs.
//
// For more information about this processor including examples, see parseKeyValue
// (https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/CloudWatch-Logs-Transformation.html#CloudWatch-Logs-Transformation-parseKeyValue)
// in the CloudWatch Logs User Guide.
type ParseKeyValue struct {
	_ struct{} `type:"structure"`

	// The destination field to put the extracted key-value pairs into
	Destination *string `locationName:"destination" min:"1" type:"string"`

	// The field delimiter string that is used between key-value pairs in the original
	// log events. If you omit this, the ampersand & character is used.
	FieldDelimiter *string `locationName:"fieldDelimiter" min:"1" type:"string"`

	// If you want to add a prefix to all transformed keys, specify it here.
	KeyPrefix *string `locationName:"keyPrefix" min:"1" type:"string"`

	// The delimiter string to use between the key and value in each pair in the
	// transformed log event.
	//
	// If you omit this, the equal = character is used.
	KeyValueDelimiter *string `locationName:"keyValueDelimiter" min:"1" type:"string"`

	// A value to insert into the value field in the result, when a key-value pair
	// is not successfully split.
	NonMatchValue *string `locationName:"nonMatchValue" min:"1" type:"string"`

	// Specifies whether to overwrite the value if the destination key already exists.
	// If you omit this, the default is false.
	OverwriteIfExists *bool `locationName:"overwriteIfExists" type:"boolean"`

	// Path to the field in the log event that will be parsed. Use dot notation
	// to access child fields. For example, store.book
	Source *string `locationName:"source" min:"1" type:"string"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s ParseKeyValue) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s ParseKeyValue) GoString() string {
	return s.String()
}

// Validate inspects the fields of the type to determine if they are valid.
func (s *ParseKeyValue) Validate() error {
	invalidParams := request.ErrInvalidParams{Context: "ParseKeyValue"}
	if s.Destination != nil && len(*s.Destination) < 1 {
		invalidParams.Add(request.NewErrParamMinLen("Destination", 1))
	}
	if s.FieldDelimiter != nil && len(*s.FieldDelimiter) < 1 {
		invalidParams.Add(request.NewErrParamMinLen("FieldDelimiter", 1))
	}
	if s.KeyPrefix != nil && len(*s.KeyPrefix) < 1 {
		invalidParams.Add(request.NewErrParamMinLen("KeyPrefix", 1))
	}
	if s.KeyValueDelimiter != nil && len(*s.KeyValueDelimiter) < 1 {
		invalidParams.Add(request.NewErrParamMinLen("KeyValueDelimiter", 1))
	}
	if s.NonMatchValue != nil && len(*s.NonMatchValue) < 1 {
		invalidParams.Add(request.NewErrParamMinLen("NonMatchValue", 1))
	}
	if s.Source != nil && len(*s.Source) < 1 {
		invalidParams.Add(request.NewErrParamMinLen("Source", 1))
	}

	if invalidParams.Len() > 0 {
		return invalidParams
	}
	return nil
}

// SetDestination sets the Destination field's value.
func (s *ParseKeyValue) SetDestination(v string) *ParseKeyValue {
	s.Destination = &v
	return s
}

// SetFieldDelimiter sets the FieldDelimiter field's value.
func (s *ParseKeyValue) SetFieldDelimiter(v string) *ParseKeyValue {
	s.FieldDelimiter = &v
	return s
}

// SetKeyPrefix sets the KeyPrefix field's value.
func (s *ParseKeyValue) SetKeyPrefix(v string) *ParseKeyValue {
	s.KeyPrefix = &v
	return s
}

// SetKeyValueDelimiter sets the KeyValueDelimiter field's value.
func (s *ParseKeyValue) SetKeyValueDelimiter(v string) *ParseKeyValue {
	s.KeyValueDelimiter = &v
	return s
}

// SetNonMatchValue sets the NonMatchValue field's value.
func (s *ParseKeyValue) SetNonMatchValue(v string) *ParseKeyValue {
	s.NonMatchValue = &v
	return s
}

// SetOverwriteIfExists sets the OverwriteIfExists field's value.
func (s *ParseKeyValue) SetOverwriteIfExists(v bool) *ParseKeyValue {
	s.OverwriteIfExists = &v
	return s
}

// SetSource sets the Source field's value.
func (s *ParseKeyValue) SetSource(v string) *ParseKeyValue {
	s.Source = &v
	return s
}

// Use this processor to parse RDS for PostgreSQL vended logs, extract fields,
// and and convert them into a JSON format. This processor always processes
// the entire log event message. For more information about this processor including
// examples, see parsePostGres (https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/CloudWatch-Logs-Transformation.html#CloudWatch-Logs-Transformation-parsePostGres).
//
// For more information about RDS for PostgreSQL log format, see RDS for PostgreSQL
// database log filesTCP flag sequence (https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_LogAccess.Concepts.PostgreSQL.html#USER_LogAccess.Concepts.PostgreSQL.Log_Format.log-line-prefix).
//
// If you use this processor, it must be the first processor in your transformer.
type ParsePostgres struct {
	_ struct{} `type:"structure"`

	// Omit this parameter and the whole log message will be processed by this processor.
	// No other value than @message is allowed for source.
	Source *string `locationName:"source" min:"1" type:"string"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s ParsePostgres) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s ParsePostgres) GoString() string {
	return s.String()
}

// Validate inspects the fields of the type to determine if they are valid.
func (s *ParsePostgres) Validate() error {
	invalidParams := request.ErrInvalidParams{Context: "ParsePostgres"}
	if s.Source != nil && len(*s.Source) < 1 {
		invalidParams.Add(request.NewErrParamMinLen("Source", 1))
	}

	if invalidParams.Len() > 0 {
		return invalidParams
	}
	return nil
}

// SetSource sets the Source field's value.
func (s *ParsePostgres) SetSource(v string) *ParsePostgres {
	s.Source = &v
	return s
}

// Use this processor to parse Route 53 vended logs, extract fields, and and
// convert them into a JSON format. This processor always processes the entire
// log event message. For more information about this processor including examples,
// see parseRoute53 (https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/CloudWatch-Logs-Transformation.html#CloudWatch-Logs-Transformation-parseRoute53).
//
// If you use this processor, it must be the first processor in your transformer.
type ParseRoute53 struct {
	_ struct{} `type:"structure"`

	// Omit this parameter and the whole log message will be processed by this processor.
	// No other value than @message is allowed for source.
	Source *string `locationName:"source" min:"1" type:"string"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s ParseRoute53) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s ParseRoute53) GoString() string {
	return s.String()
}

// Validate inspects the fields of the type to determine if they are valid.
func (s *ParseRoute53) Validate() error {
	invalidParams := request.ErrInvalidParams{Context: "ParseRoute53"}
	if s.Source != nil && len(*s.Source) < 1 {
		invalidParams.Add(request.NewErrParamMinLen("Source", 1))
	}

	if invalidParams.Len() > 0 {
		return invalidParams
	}
	return nil
}

// SetSource sets the Source field's value.
func (s *ParseRoute53) SetSource(v string) *ParseRoute53 {
	s.Source = &v
	return s
}

// Use this processor to parse Amazon VPC vended logs, extract fields, and and
// convert them into a JSON format. This processor always processes the entire
// log event message.
//
// This processor doesn't support custom log formats, such as NAT gateway logs.
// For more information about custom log formats in Amazon VPC, see parseVPC
// (https://docs.aws.amazon.com/vpc/latest/userguide/flow-logs-records-examples.html#flow-log-example-tcp-flag)
// For more information about this processor including examples, see parseVPC
// (https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/CloudWatch-Logs-Transformation.html#CloudWatch-Logs-Transformation-parseVPC).
//
// If you use this processor, it must be the first processor in your transformer.
type ParseVPC struct {
	_ struct{} `type:"structure"`

	// Omit this parameter and the whole log message will be processed by this processor.
	// No other value than @message is allowed for source.
	Source *string `locationName:"source" min:"1" type:"string"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s ParseVPC) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s ParseVPC) GoString() string {
	return s.String()
}

// Validate inspects the fields of the type to determine if they are valid.
func (s *ParseVPC) Validate() error {
	invalidParams := request.ErrInvalidParams{Context: "ParseVPC"}
	if s.Source != nil && len(*s.Source) < 1 {
		invalidParams.Add(request.NewErrParamMinLen("Source", 1))
	}

	if invalidParams.Len() > 0 {
		return invalidParams
	}
	return nil
}

// SetSource sets the Source field's value.
func (s *ParseVPC) SetSource(v string) *ParseVPC {
	s.Source = &v
	return s
}

// Use this processor to parse WAF vended logs, extract fields, and and convert
// them into a JSON format. This processor always processes the entire log event
// message. For more information about this processor including examples, see
// parseWAF (https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/CloudWatch-Logs-Transformation.html#CloudWatch-Logs-Transformation-parsePostGres).
//
// For more information about WAF log format, see Log examples for web ACL traffic
// (https://docs.aws.amazon.com/waf/latest/developerguide/logging-examples.html).
//
// If you use this processor, it must be the first processor in your transformer.
type ParseWAF struct {
	_ struct{} `type:"structure"`

	// Omit this parameter and the whole log message will be processed by this processor.
	// No other value than @message is allowed for source.
	Source *string `locationName:"source" min:"1" type:"string"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s ParseWAF) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s ParseWAF) GoString() string {
	return s.String()
}

// Validate inspects the fields of the type to determine if they are valid.
func (s *ParseWAF) Validate() error {
	invalidParams := request.ErrInvalidParams{Context: "ParseWAF"}
	if s.Source != nil && len(*s.Source) < 1 {
		invalidParams.Add(request.NewErrParamMinLen("Source", 1))
	}

	if invalidParams.Len() > 0 {
		return invalidParams
	}
	return nil
}

// SetSource sets the Source field's value.
func (s *ParseWAF) SetSource(v string) *ParseWAF {
	s.Source = &v
	return s
}

// A structure that contains information about one pattern token related to
// an anomaly.
//
// For more information about patterns and tokens, see CreateLogAnomalyDetector
// (https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_CreateLogAnomalyDetector.html).
type PatternToken struct {
	_ struct{} `type:"structure"`

	// For a dynamic token, this indicates where in the pattern that this token
	// appears, related to other dynamic tokens. The dynamic token that appears
	// first has a value of 1, the one that appears second is 2, and so on.
	DynamicTokenPosition *int64 `locationName:"dynamicTokenPosition" type:"integer"`

	// Contains the values found for a dynamic token, and the number of times each
	// value was found.
	Enumerations map[string]*int64 `locationName:"enumerations" type:"map"`

	// A name that CloudWatch Logs assigned to this dynamic token to make the pattern
	// more readable. The string part of the inferredTokenName gives you a clearer
	// idea of the content of this token. The number part of the inferredTokenName
	// shows where in the pattern this token appears, compared to other dynamic
	// tokens. CloudWatch Logs assigns the string part of the name based on analyzing
	// the content of the log events that contain it.
	//
	// For example, an inferred token name of IPAddress-3 means that the token represents
	// an IP address, and this token is the third dynamic token in the pattern.
	InferredTokenName *string `locationName:"inferredTokenName" min:"1" type:"string"`

	// Specifies whether this is a dynamic token.
	IsDynamic *bool `locationName:"isDynamic" type:"boolean"`

	// The string represented by this token. If this is a dynamic token, the value
	// will be <*>
	TokenString *string `locationName:"tokenString" min:"1" type:"string"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s PatternToken) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s PatternToken) GoString() string {
	return s.String()
}

// SetDynamicTokenPosition sets the DynamicTokenPosition field's value.
func (s *PatternToken) SetDynamicTokenPosition(v int64) *PatternToken {
	s.DynamicTokenPosition = &v
	return s
}

// SetEnumerations sets the Enumerations field's value.
func (s *PatternToken) SetEnumerations(v map[string]*int64) *PatternToken {
	s.Enumerations = v
	return s
}

// SetInferredTokenName sets the InferredTokenName field's value.
func (s *PatternToken) SetInferredTokenName(v string) *PatternToken {
	s.InferredTokenName = &v
	return s
}

// SetIsDynamic sets the IsDynamic field's value.
func (s *PatternToken) SetIsDynamic(v bool) *PatternToken {
	s.IsDynamic = &v
	return s
}

// SetTokenString sets the TokenString field's value.
func (s *PatternToken) SetTokenString(v string) *PatternToken {
	s.TokenString = &v
	return s
}

// A structure that contains information about one delivery destination policy.
type Policy struct {
	_ struct{} `type:"structure"`

	// The contents of the delivery destination policy.
	DeliveryDestinationPolicy *string `locationName:"deliveryDestinationPolicy" min:"1" type:"string"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s Policy) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s Policy) GoString() string {
	return s.String()
}

// SetDeliveryDestinationPolicy sets the DeliveryDestinationPolicy field's value.
func (s *Policy) SetDeliveryDestinationPolicy(v string) *Policy {
	s.DeliveryDestinationPolicy = &v
	return s
}

// This structure contains the information about one processor in a log transformer.
type Processor struct {
	_ struct{} `type:"structure"`

	// Use this parameter to include the addKeys (https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/CloudWatch-Logs-Transformation.html#CloudWatch-Logs-Transformation-addKeys)
	// processor in your transformer.
	AddKeys *AddKeys `locationName:"addKeys" type:"structure"`

	// Use this parameter to include the copyValue (https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/CloudWatch-Logs-Transformation.html#CloudWatch-Logs-Transformation-copyValue)
	// processor in your transformer.
	CopyValue *CopyValue `locationName:"copyValue" type:"structure"`

	// Use this parameter to include the CSV (https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/CloudWatch-Logs-Transformation.html#CloudWatch-Logs-Transformation-CSV)
	// processor in your transformer.
	Csv *CSV `locationName:"csv" type:"structure"`

	// Use this parameter to include the datetimeConverter (https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/CloudWatch-Logs-Transformation.html#CloudWatch-Logs-Transformation-datetimeConverter)
	// processor in your transformer.
	DateTimeConverter *DateTimeConverter `locationName:"dateTimeConverter" type:"structure"`

	// Use this parameter to include the deleteKeys (https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/CloudWatch-Logs-Transformation.html#CloudWatch-Logs-Transformation-deleteKeys)
	// processor in your transformer.
	DeleteKeys *DeleteKeys `locationName:"deleteKeys" type:"structure"`

	// Use this parameter to include the grok (https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/CloudWatch-Logs-Transformation.html#CloudWatch-Logs-Transformation-grok)
	// processor in your transformer.
	Grok *Grok `locationName:"grok" type:"structure"`

	// Use this parameter to include the listToMap (https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/CloudWatch-Logs-Transformation.html#CloudWatch-Logs-Transformation-listToMap)
	// processor in your transformer.
	ListToMap *ListToMap `locationName:"listToMap" type:"structure"`

	// Use this parameter to include the lowerCaseString (https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/CloudWatch-Logs-Transformation.html#CloudWatch-Logs-Transformation-lowerCaseString)
	// processor in your transformer.
	LowerCaseString *LowerCaseString `locationName:"lowerCaseString" type:"structure"`

	// Use this parameter to include the moveKeys (https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/CloudWatch-Logs-Transformation.html#CloudWatch-Logs-Transformation-moveKeys)
	// processor in your transformer.
	MoveKeys *MoveKeys `locationName:"moveKeys" type:"structure"`

	// Use this parameter to include the parseCloudfront (https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/CloudWatch-Logs-Transformation.html#CloudWatch-Logs-Transformation-parseCloudfront)
	// processor in your transformer.
	//
	// If you use this processor, it must be the first processor in your transformer.
	ParseCloudfront *ParseCloudfront `locationName:"parseCloudfront" type:"structure"`

	// Use this parameter to include the parseJSON (https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/CloudWatch-Logs-Transformation.html#CloudWatch-Logs-Transformation-parseJSON)
	// processor in your transformer.
	ParseJSON *ParseJSON `locationName:"parseJSON" type:"structure"`

	// Use this parameter to include the parseKeyValue (https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/CloudWatch-Logs-Transformation.html#CloudWatch-Logs-Transformation-parseKeyValue)
	// processor in your transformer.
	ParseKeyValue *ParseKeyValue `locationName:"parseKeyValue" type:"structure"`

	// Use this parameter to include the parsePostGres (https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/CloudWatch-Logs-Transformation.html#CloudWatch-Logs-Transformation-parsePostGres)
	// processor in your transformer.
	//
	// If you use this processor, it must be the first processor in your transformer.
	ParsePostgres *ParsePostgres `locationName:"parsePostgres" type:"structure"`

	// Use this parameter to include the parseRoute53 (https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/CloudWatch-Logs-Transformation.html#CloudWatch-Logs-Transformation-parseRoute53)
	// processor in your transformer.
	//
	// If you use this processor, it must be the first processor in your transformer.
	ParseRoute53 *ParseRoute53 `locationName:"parseRoute53" type:"structure"`

	// Use this parameter to include the parseVPC (https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/CloudWatch-Logs-Transformation.html#CloudWatch-Logs-Transformation-parseVPC)
	// processor in your transformer.
	//
	// If you use this processor, it must be the first processor in your transformer.
	ParseVPC *ParseVPC `locationName:"parseVPC" type:"structure"`

	// Use this parameter to include the parseWAF (https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/CloudWatch-Logs-Transformation.html#CloudWatch-Logs-Transformation-parseWAF)
	// processor in your transformer.
	//
	// If you use this processor, it must be the first processor in your transformer.
	ParseWAF *ParseWAF `locationName:"parseWAF" type:"structure"`

	// Use this parameter to include the renameKeys (https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/CloudWatch-Logs-Transformation.html#CloudWatch-Logs-Transformation-renameKeys)
	// processor in your transformer.
	RenameKeys *RenameKeys `locationName:"renameKeys" type:"structure"`

	// Use this parameter to include the splitString (https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/CloudWatch-Logs-Transformation.html#CloudWatch-Logs-Transformation-splitString)
	// processor in your transformer.
	SplitString *SplitString `locationName:"splitString" type:"structure"`

	// Use this parameter to include the substituteString (https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/CloudWatch-Logs-Transformation.html#CloudWatch-Logs-Transformation-substituteString)
	// processor in your transformer.
	SubstituteString *SubstituteString `locationName:"substituteString" type:"structure"`

	// Use this parameter to include the trimString (https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/CloudWatch-Logs-Transformation.html#CloudWatch-Logs-Transformation-trimString)
	// processor in your transformer.
	TrimString *TrimString `locationName:"trimString" type:"structure"`

	// Use this parameter to include the typeConverter (https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/CloudWatch-Logs-Transformation.html#CloudWatch-Logs-Transformation-typeConverter)
	// processor in your transformer.
	TypeConverter *TypeConverter `locationName:"typeConverter" type:"structure"`

	// Use this parameter to include the upperCaseString (https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/CloudWatch-Logs-Transformation.html#CloudWatch-Logs-Transformation-upperCaseString)
	// processor in your transformer.
	UpperCaseString *UpperCaseString `locationName:"upperCaseString" type:"structure"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s Processor) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s Processor) GoString() string {
	return s.String()
}

// Validate inspects the fields of the type to determine if they are valid.
func (s *Processor) Validate() error {
	invalidParams := request.ErrInvalidParams{Context: "Processor"}
	if s.AddKeys != nil {
		if err := s.AddKeys.Validate(); err != nil {
			invalidParams.AddNested("AddKeys", err.(request.ErrInvalidParams))
		}
	}
	if s.CopyValue != nil {
		if err := s.CopyValue.Validate(); err != nil {
			invalidParams.AddNested("CopyValue", err.(request.ErrInvalidParams))
		}
	}
	if s.Csv != nil {
		if err := s.Csv.Validate(); err != nil {
			invalidParams.AddNested("Csv", err.(request.ErrInvalidParams))
		}
	}
	if s.DateTimeConverter != nil {
		if err := s.DateTimeConverter.Validate(); err != nil {
			invalidParams.AddNested("DateTimeConverter", err.(request.ErrInvalidParams))
		}
	}
	if s.DeleteKeys != nil {
		if err := s.DeleteKeys.Validate(); err != nil {
			invalidParams.AddNested("DeleteKeys", err.(request.ErrInvalidParams))
		}
	}
	if s.Grok != nil {
		if err := s.Grok.Validate(); err != nil {
			invalidParams.AddNested("Grok", err.(request.ErrInvalidParams))
		}
	}
	if s.ListToMap != nil {
		if err := s.ListToMap.Validate(); err != nil {
			invalidParams.AddNested("ListToMap", err.(request.ErrInvalidParams))
		}
	}
	if s.LowerCaseString != nil {
		if err := s.LowerCaseString.Validate(); err != nil {
			invalidParams.AddNested("LowerCaseString", err.(request.ErrInvalidParams))
		}
	}
	if s.MoveKeys != nil {
		if err := s.MoveKeys.Validate(); err != nil {
			invalidParams.AddNested("MoveKeys", err.(request.ErrInvalidParams))
		}
	}
	if s.ParseCloudfront != nil {
		if err := s.ParseCloudfront.Validate(); err != nil {
			invalidParams.AddNested("ParseCloudfront", err.(request.ErrInvalidParams))
		}
	}
	if s.ParseJSON != nil {
		if err := s.ParseJSON.Validate(); err != nil {
			invalidParams.AddNested("ParseJSON", err.(request.ErrInvalidParams))
		}
	}
	if s.ParseKeyValue != nil {
		if err := s.ParseKeyValue.Validate(); err != nil {
			invalidParams.AddNested("ParseKeyValue", err.(request.ErrInvalidParams))
		}
	}
	if s.ParsePostgres != nil {
		if err := s.ParsePostgres.Validate(); err != nil {
			invalidParams.AddNested("ParsePostgres", err.(request.ErrInvalidParams))
		}
	}
	if s.ParseRoute53 != nil {
		if err := s.ParseRoute53.Validate(); err != nil {
			invalidParams.AddNested("ParseRoute53", err.(request.ErrInvalidParams))
		}
	}
	if s.ParseVPC != nil {
		if err := s.ParseVPC.Validate(); err != nil {
			invalidParams.AddNested("ParseVPC", err.(request.ErrInvalidParams))
		}
	}
	if s.ParseWAF != nil {
		if err := s.ParseWAF.Validate(); err != nil {
			invalidParams.AddNested("ParseWAF", err.(request.ErrInvalidParams))
		}
	}
	if s.RenameKeys != nil {
		if err := s.RenameKeys.Validate(); err != nil {
			invalidParams.AddNested("RenameKeys", err.(request.ErrInvalidParams))
		}
	}
	if s.SplitString != nil {
		if err := s.SplitString.Validate(); err != nil {
			invalidParams.AddNested("SplitString", err.(request.ErrInvalidParams))
		}
	}
	if s.SubstituteString != nil {
		if err := s.SubstituteString.Validate(); err != nil {
			invalidParams.AddNested("SubstituteString", err.(request.ErrInvalidParams))
		}
	}
	if s.TrimString != nil {
		if err := s.TrimString.Validate(); err != nil {
			invalidParams.AddNested("TrimString", err.(request.ErrInvalidParams))
		}
	}
	if s.TypeConverter != nil {
		if err := s.TypeConverter.Validate(); err != nil {
			invalidParams.AddNested("TypeConverter", err.(request.ErrInvalidParams))
		}
	}
	if s.UpperCaseString != nil {
		if err := s.UpperCaseString.Validate(); err != nil {
			invalidParams.AddNested("UpperCaseString", err.(request.ErrInvalidParams))
		}
	}

	if invalidParams.Len() > 0 {
		return invalidParams
	}
	return nil
}

// SetAddKeys sets the AddKeys field's value.
func (s *Processor) SetAddKeys(v *AddKeys) *Processor {
	s.AddKeys = v
	return s
}

// SetCopyValue sets the CopyValue field's value.
func (s *Processor) SetCopyValue(v *CopyValue) *Processor {
	s.CopyValue = v
	return s
}

// SetCsv sets the Csv field's value.
func (s *Processor) SetCsv(v *CSV) *Processor {
	s.Csv = v
	return s
}

// SetDateTimeConverter sets the DateTimeConverter field's value.
func (s *Processor) SetDateTimeConverter(v *DateTimeConverter) *Processor {
	s.DateTimeConverter = v
	return s
}

// SetDeleteKeys sets the DeleteKeys field's value.
func (s *Processor) SetDeleteKeys(v *DeleteKeys) *Processor {
	s.DeleteKeys = v
	return s
}

// SetGrok sets the Grok field's value.
func (s *Processor) SetGrok(v *Grok) *Processor {
	s.Grok = v
	return s
}

// SetListToMap sets the ListToMap field's value.
func (s *Processor) SetListToMap(v *ListToMap) *Processor {
	s.ListToMap = v
	return s
}

// SetLowerCaseString sets the LowerCaseString field's value.
func (s *Processor) SetLowerCaseString(v *LowerCaseString) *Processor {
	s.LowerCaseString = v
	return s
}

// SetMoveKeys sets the MoveKeys field's value.
func (s *Processor) SetMoveKeys(v *MoveKeys) *Processor {
	s.MoveKeys = v
	return s
}

// SetParseCloudfront sets the ParseCloudfront field's value.
func (s *Processor) SetParseCloudfront(v *ParseCloudfront) *Processor {
	s.ParseCloudfront = v
	return s
}

// SetParseJSON sets the ParseJSON field's value.
func (s *Processor) SetParseJSON(v *ParseJSON) *Processor {
	s.ParseJSON = v
	return s
}

// SetParseKeyValue sets the ParseKeyValue field's value.
func (s *Processor) SetParseKeyValue(v *ParseKeyValue) *Processor {
	s.ParseKeyValue = v
	return s
}

// SetParsePostgres sets the ParsePostgres field's value.
func (s *Processor) SetParsePostgres(v *ParsePostgres) *Processor {
	s.ParsePostgres = v
	return s
}

// SetParseRoute53 sets the ParseRoute53 field's value.
func (s *Processor) SetParseRoute53(v *ParseRoute53) *Processor {
	s.ParseRoute53 = v
	return s
}

// SetParseVPC sets the ParseVPC field's value.
func (s *Processor) SetParseVPC(v *ParseVPC) *Processor {
	s.ParseVPC = v
	return s
}

// SetParseWAF sets the ParseWAF field's value.
func (s *Processor) SetParseWAF(v *ParseWAF) *Processor {
	s.ParseWAF = v
	return s
}

// SetRenameKeys sets the RenameKeys field's value.
func (s *Processor) SetRenameKeys(v *RenameKeys) *Processor {
	s.RenameKeys = v
	return s
}

// SetSplitString sets the SplitString field's value.
func (s *Processor) SetSplitString(v *SplitString) *Processor {
	s.SplitString = v
	return s
}

// SetSubstituteString sets the SubstituteString field's value.
func (s *Processor) SetSubstituteString(v *SubstituteString) *Processor {
	s.SubstituteString = v
	return s
}

// SetTrimString sets the TrimString field's value.
func (s *Processor) SetTrimString(v *TrimString) *Processor {
	s.TrimString = v
	return s
}

// SetTypeConverter sets the TypeConverter field's value.
func (s *Processor) SetTypeConverter(v *TypeConverter) *Processor {
	s.TypeConverter = v
	return s
}

// SetUpperCaseString sets the UpperCaseString field's value.
func (s *Processor) SetUpperCaseString(v *UpperCaseString) *Processor {
	s.UpperCaseString = v
	return s
}

type PutAccountPolicyInput struct {
	_ struct{} `type:"structure"`

	// Specify the policy, in JSON.
	//
	// Data protection policy
	//
	// A data protection policy must include two JSON blocks:
	//
	//    * The first block must include both a DataIdentifer array and an Operation
	//    property with an Audit action. The DataIdentifer array lists the types
	//    of sensitive data that you want to mask. For more information about the
	//    available options, see Types of data that you can mask (https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/mask-sensitive-log-data-types.html).
	//    The Operation property with an Audit action is required to find the sensitive
	//    data terms. This Audit action must contain a FindingsDestination object.
	//    You can optionally use that FindingsDestination object to list one or
	//    more destinations to send audit findings to. If you specify destinations
	//    such as log groups, Firehose streams, and S3 buckets, they must already
	//    exist.
	//
	//    * The second block must include both a DataIdentifer array and an Operation
	//    property with an Deidentify action. The DataIdentifer array must exactly
	//    match the DataIdentifer array in the first block of the policy. The Operation
	//    property with the Deidentify action is what actually masks the data, and
	//    it must contain the "MaskConfig": {} object. The "MaskConfig": {} object
	//    must be empty.
	//
	// For an example data protection policy, see the Examples section on this page.
	//
	// The contents of the two DataIdentifer arrays must match exactly.
	//
	// In addition to the two JSON blocks, the policyDocument can also include Name,
	// Description, and Version fields. The Name is different than the operation's
	// policyName parameter, and is used as a dimension when CloudWatch Logs reports
	// audit findings metrics to CloudWatch.
	//
	// The JSON specified in policyDocument can be up to 30,720 characters long.
	//
	// Subscription filter policy
	//
	// A subscription filter policy can include the following attributes in a JSON
	// block:
	//
	//    * DestinationArn The ARN of the destination to deliver log events to.
	//    Supported destinations are: An Kinesis Data Streams data stream in the
	//    same account as the subscription policy, for same-account delivery. An
	//    Firehose data stream in the same account as the subscription policy, for
	//    same-account delivery. A Lambda function in the same account as the subscription
	//    policy, for same-account delivery. A logical destination in a different
	//    account created with PutDestination (https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_PutDestination.html),
	//    for cross-account delivery. Kinesis Data Streams and Firehose are supported
	//    as logical destinations.
	//
	//    * RoleArn The ARN of an IAM role that grants CloudWatch Logs permissions
	//    to deliver ingested log events to the destination stream. You don't need
	//    to provide the ARN when you are working with a logical destination for
	//    cross-account delivery.
	//
	//    * FilterPattern A filter pattern for subscribing to a filtered stream
	//    of log events.
	//
	//    * Distribution The method used to distribute log data to the destination.
	//    By default, log data is grouped by log stream, but the grouping can be
	//    set to Random for a more even distribution. This property is only applicable
	//    when the destination is an Kinesis Data Streams data stream.
	//
	// Transformer policy
	//
	// A transformer policy must include one JSON block with the array of processors
	// and their configurations. For more information about available processors,
	// see Processors that you can use (https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/CloudWatch-Logs-Transformation.html#CloudWatch-Logs-Transformation-Processors).
	//
	// Field index policy
	//
	// A field index filter policy can include the following attribute in a JSON
	// block:
	//
	//    * Fields The array of field indexes to create.
	//
	// It must contain at least one field index.
	//
	// The following is an example of an index policy document that creates two
	// indexes, RequestId and TransactionId.
	//
	// "policyDocument": "{ \"Fields\": [ \"RequestId\", \"TransactionId\" ] }"
	//
	// PolicyDocument is a required field
	PolicyDocument *string `locationName:"policyDocument" type:"string" required:"true"`

	// A name for the policy. This must be unique within the account.
	//
	// PolicyName is a required field
	PolicyName *string `locationName:"policyName" type:"string" required:"true"`

	// The type of policy that you're creating or updating.
	//
	// PolicyType is a required field
	PolicyType *string `locationName:"policyType" type:"string" required:"true" enum:"PolicyType"`

	// Currently the only valid value for this parameter is ALL, which specifies
	// that the data protection policy applies to all log groups in the account.
	// If you omit this parameter, the default of ALL is used.
	Scope *string `locationName:"scope" type:"string" enum:"Scope"`

	// Use this parameter to apply the new policy to a subset of log groups in the
	// account.
	//
	// Specifing selectionCriteria is valid only when you specify SUBSCRIPTION_FILTER_POLICY,
	// FIELD_INDEX_POLICY or TRANSFORMER_POLICYfor policyType.
	//
	// If policyType is SUBSCRIPTION_FILTER_POLICY, the only supported selectionCriteria
	// filter is LogGroupName NOT IN []
	//
	// If policyType is FIELD_INDEX_POLICY or TRANSFORMER_POLICY, the only supported
	// selectionCriteria filter is LogGroupNamePrefix
	//
	// The selectionCriteria string can be up to 25KB in length. The length is determined
	// by using its UTF-8 bytes.
	//
	// Using the selectionCriteria parameter with SUBSCRIPTION_FILTER_POLICY is
	// useful to help prevent infinite loops. For more information, see Log recursion
	// prevention (https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/Subscriptions-recursion-prevention.html).
	SelectionCriteria *string `locationName:"selectionCriteria" type:"string"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s PutAccountPolicyInput) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s PutAccountPolicyInput) GoString() string {
	return s.String()
}

// Validate inspects the fields of the type to determine if they are valid.
func (s *PutAccountPolicyInput) Validate() error {
	invalidParams := request.ErrInvalidParams{Context: "PutAccountPolicyInput"}
	if s.PolicyDocument == nil {
		invalidParams.Add(request.NewErrParamRequired("PolicyDocument"))
	}
	if s.PolicyName == nil {
		invalidParams.Add(request.NewErrParamRequired("PolicyName"))
	}
	if s.PolicyType == nil {
		invalidParams.Add(request.NewErrParamRequired("PolicyType"))
	}

	if invalidParams.Len() > 0 {
		return invalidParams
	}
	return nil
}

// SetPolicyDocument sets the PolicyDocument field's value.
func (s *PutAccountPolicyInput) SetPolicyDocument(v string) *PutAccountPolicyInput {
	s.PolicyDocument = &v
	return s
}

// SetPolicyName sets the PolicyName field's value.
func (s *PutAccountPolicyInput) SetPolicyName(v string) *PutAccountPolicyInput {
	s.PolicyName = &v
	return s
}

// SetPolicyType sets the PolicyType field's value.
func (s *PutAccountPolicyInput) SetPolicyType(v string) *PutAccountPolicyInput {
	s.PolicyType = &v
	return s
}

// SetScope sets the Scope field's value.
func (s *PutAccountPolicyInput) SetScope(v string) *PutAccountPolicyInput {
	s.Scope = &v
	return s
}

// SetSelectionCriteria sets the SelectionCriteria field's value.
func (s *PutAccountPolicyInput) SetSelectionCriteria(v string) *PutAccountPolicyInput {
	s.SelectionCriteria = &v
	return s
}

type PutAccountPolicyOutput struct {
	_ struct{} `type:"structure"`

	// The account policy that you created.
	AccountPolicy *AccountPolicy `locationName:"accountPolicy" type:"structure"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s PutAccountPolicyOutput) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s PutAccountPolicyOutput) GoString() string {
	return s.String()
}

// SetAccountPolicy sets the AccountPolicy field's value.
func (s *PutAccountPolicyOutput) SetAccountPolicy(v *AccountPolicy) *PutAccountPolicyOutput {
	s.AccountPolicy = v
	return s
}

type PutDataProtectionPolicyInput struct {
	_ struct{} `type:"structure"`

	// Specify either the log group name or log group ARN.
	//
	// LogGroupIdentifier is a required field
	LogGroupIdentifier *string `locationName:"logGroupIdentifier" min:"1" type:"string" required:"true"`

	// Specify the data protection policy, in JSON.
	//
	// This policy must include two JSON blocks:
	//
	//    * The first block must include both a DataIdentifer array and an Operation
	//    property with an Audit action. The DataIdentifer array lists the types
	//    of sensitive data that you want to mask. For more information about the
	//    available options, see Types of data that you can mask (https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/mask-sensitive-log-data-types.html).
	//    The Operation property with an Audit action is required to find the sensitive
	//    data terms. This Audit action must contain a FindingsDestination object.
	//    You can optionally use that FindingsDestination object to list one or
	//    more destinations to send audit findings to. If you specify destinations
	//    such as log groups, Firehose streams, and S3 buckets, they must already
	//    exist.
	//
	//    * The second block must include both a DataIdentifer array and an Operation
	//    property with an Deidentify action. The DataIdentifer array must exactly
	//    match the DataIdentifer array in the first block of the policy. The Operation
	//    property with the Deidentify action is what actually masks the data, and
	//    it must contain the "MaskConfig": {} object. The "MaskConfig": {} object
	//    must be empty.
	//
	// For an example data protection policy, see the Examples section on this page.
	//
	// The contents of the two DataIdentifer arrays must match exactly.
	//
	// In addition to the two JSON blocks, the policyDocument can also include Name,
	// Description, and Version fields. The Name is used as a dimension when CloudWatch
	// Logs reports audit findings metrics to CloudWatch.
	//
	// The JSON specified in policyDocument can be up to 30,720 characters.
	//
	// PolicyDocument is a required field
	PolicyDocument *string `locationName:"policyDocument" type:"string" required:"true"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s PutDataProtectionPolicyInput) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s PutDataProtectionPolicyInput) GoString() string {
	return s.String()
}

// Validate inspects the fields of the type to determine if they are valid.
func (s *PutDataProtectionPolicyInput) Validate() error {
	invalidParams := request.ErrInvalidParams{Context: "PutDataProtectionPolicyInput"}
	if s.LogGroupIdentifier == nil {
		invalidParams.Add(request.NewErrParamRequired("LogGroupIdentifier"))
	}
	if s.LogGroupIdentifier != nil && len(*s.LogGroupIdentifier) < 1 {
		invalidParams.Add(request.NewErrParamMinLen("LogGroupIdentifier", 1))
	}
	if s.PolicyDocument == nil {
		invalidParams.Add(request.NewErrParamRequired("PolicyDocument"))
	}

	if invalidParams.Len() > 0 {
		return invalidParams
	}
	return nil
}

// SetLogGroupIdentifier sets the LogGroupIdentifier field's value.
func (s *PutDataProtectionPolicyInput) SetLogGroupIdentifier(v string) *PutDataProtectionPolicyInput {
	s.LogGroupIdentifier = &v
	return s
}

// SetPolicyDocument sets the PolicyDocument field's value.
func (s *PutDataProtectionPolicyInput) SetPolicyDocument(v string) *PutDataProtectionPolicyInput {
	s.PolicyDocument = &v
	return s
}

type PutDataProtectionPolicyOutput struct {
	_ struct{} `type:"structure"`

	// The date and time that this policy was most recently updated.
	LastUpdatedTime *int64 `locationName:"lastUpdatedTime" type:"long"`

	// The log group name or ARN that you specified in your request.
	LogGroupIdentifier *string `locationName:"logGroupIdentifier" min:"1" type:"string"`

	// The data protection policy used for this log group.
	PolicyDocument *string `locationName:"policyDocument" type:"string"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s PutDataProtectionPolicyOutput) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s PutDataProtectionPolicyOutput) GoString() string {
	return s.String()
}

// SetLastUpdatedTime sets the LastUpdatedTime field's value.
func (s *PutDataProtectionPolicyOutput) SetLastUpdatedTime(v int64) *PutDataProtectionPolicyOutput {
	s.LastUpdatedTime = &v
	return s
}

// SetLogGroupIdentifier sets the LogGroupIdentifier field's value.
func (s *PutDataProtectionPolicyOutput) SetLogGroupIdentifier(v string) *PutDataProtectionPolicyOutput {
	s.LogGroupIdentifier = &v
	return s
}

// SetPolicyDocument sets the PolicyDocument field's value.
func (s *PutDataProtectionPolicyOutput) SetPolicyDocument(v string) *PutDataProtectionPolicyOutput {
	s.PolicyDocument = &v
	return s
}

type PutDeliveryDestinationInput struct {
	_ struct{} `type:"structure"`

	// A structure that contains the ARN of the Amazon Web Services resource that
	// will receive the logs.
	//
	// DeliveryDestinationConfiguration is a required field
	DeliveryDestinationConfiguration *DeliveryDestinationConfiguration `locationName:"deliveryDestinationConfiguration" type:"structure" required:"true"`

	// A name for this delivery destination. This name must be unique for all delivery
	// destinations in your account.
	//
	// Name is a required field
	Name *string `locationName:"name" min:"1" type:"string" required:"true"`

	// The format for the logs that this delivery destination will receive.
	OutputFormat *string `locationName:"outputFormat" type:"string" enum:"OutputFormat"`

	// An optional list of key-value pairs to associate with the resource.
	//
	// For more information about tagging, see Tagging Amazon Web Services resources
	// (https://docs.aws.amazon.com/general/latest/gr/aws_tagging.html)
	Tags map[string]*string `locationName:"tags" min:"1" type:"map"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s PutDeliveryDestinationInput) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s PutDeliveryDestinationInput) GoString() string {
	return s.String()
}

// Validate inspects the fields of the type to determine if they are valid.
func (s *PutDeliveryDestinationInput) Validate() error {
	invalidParams := request.ErrInvalidParams{Context: "PutDeliveryDestinationInput"}
	if s.DeliveryDestinationConfiguration == nil {
		invalidParams.Add(request.NewErrParamRequired("DeliveryDestinationConfiguration"))
	}
	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.Tags != nil && len(s.Tags) < 1 {
		invalidParams.Add(request.NewErrParamMinLen("Tags", 1))
	}
	if s.DeliveryDestinationConfiguration != nil {
		if err := s.DeliveryDestinationConfiguration.Validate(); err != nil {
			invalidParams.AddNested("DeliveryDestinationConfiguration", err.(request.ErrInvalidParams))
		}
	}

	if invalidParams.Len() > 0 {
		return invalidParams
	}
	return nil
}

// SetDeliveryDestinationConfiguration sets the DeliveryDestinationConfiguration field's value.
func (s *PutDeliveryDestinationInput) SetDeliveryDestinationConfiguration(v *DeliveryDestinationConfiguration) *PutDeliveryDestinationInput {
	s.DeliveryDestinationConfiguration = v
	return s
}

// SetName sets the Name field's value.
func (s *PutDeliveryDestinationInput) SetName(v string) *PutDeliveryDestinationInput {
	s.Name = &v
	return s
}

// SetOutputFormat sets the OutputFormat field's value.
func (s *PutDeliveryDestinationInput) SetOutputFormat(v string) *PutDeliveryDestinationInput {
	s.OutputFormat = &v
	return s
}

// SetTags sets the Tags field's value.
func (s *PutDeliveryDestinationInput) SetTags(v map[string]*string) *PutDeliveryDestinationInput {
	s.Tags = v
	return s
}

type PutDeliveryDestinationOutput struct {
	_ struct{} `type:"structure"`

	// A structure containing information about the delivery destination that you
	// just created or updated.
	DeliveryDestination *DeliveryDestination `locationName:"deliveryDestination" type:"structure"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s PutDeliveryDestinationOutput) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s PutDeliveryDestinationOutput) GoString() string {
	return s.String()
}

// SetDeliveryDestination sets the DeliveryDestination field's value.
func (s *PutDeliveryDestinationOutput) SetDeliveryDestination(v *DeliveryDestination) *PutDeliveryDestinationOutput {
	s.DeliveryDestination = v
	return s
}

type PutDeliveryDestinationPolicyInput struct {
	_ struct{} `type:"structure"`

	// The name of the delivery destination to assign this policy to.
	//
	// DeliveryDestinationName is a required field
	DeliveryDestinationName *string `locationName:"deliveryDestinationName" min:"1" type:"string" required:"true"`

	// The contents of the policy.
	//
	// DeliveryDestinationPolicy is a required field
	DeliveryDestinationPolicy *string `locationName:"deliveryDestinationPolicy" min:"1" type:"string" required:"true"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s PutDeliveryDestinationPolicyInput) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s PutDeliveryDestinationPolicyInput) GoString() string {
	return s.String()
}

// Validate inspects the fields of the type to determine if they are valid.
func (s *PutDeliveryDestinationPolicyInput) Validate() error {
	invalidParams := request.ErrInvalidParams{Context: "PutDeliveryDestinationPolicyInput"}
	if s.DeliveryDestinationName == nil {
		invalidParams.Add(request.NewErrParamRequired("DeliveryDestinationName"))
	}
	if s.DeliveryDestinationName != nil && len(*s.DeliveryDestinationName) < 1 {
		invalidParams.Add(request.NewErrParamMinLen("DeliveryDestinationName", 1))
	}
	if s.DeliveryDestinationPolicy == nil {
		invalidParams.Add(request.NewErrParamRequired("DeliveryDestinationPolicy"))
	}
	if s.DeliveryDestinationPolicy != nil && len(*s.DeliveryDestinationPolicy) < 1 {
		invalidParams.Add(request.NewErrParamMinLen("DeliveryDestinationPolicy", 1))
	}

	if invalidParams.Len() > 0 {
		return invalidParams
	}
	return nil
}

// SetDeliveryDestinationName sets the DeliveryDestinationName field's value.
func (s *PutDeliveryDestinationPolicyInput) SetDeliveryDestinationName(v string) *PutDeliveryDestinationPolicyInput {
	s.DeliveryDestinationName = &v
	return s
}

// SetDeliveryDestinationPolicy sets the DeliveryDestinationPolicy field's value.
func (s *PutDeliveryDestinationPolicyInput) SetDeliveryDestinationPolicy(v string) *PutDeliveryDestinationPolicyInput {
	s.DeliveryDestinationPolicy = &v
	return s
}

type PutDeliveryDestinationPolicyOutput struct {
	_ struct{} `type:"structure"`

	// The contents of the policy that you just created.
	Policy *Policy `locationName:"policy" type:"structure"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s PutDeliveryDestinationPolicyOutput) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s PutDeliveryDestinationPolicyOutput) GoString() string {
	return s.String()
}

// SetPolicy sets the Policy field's value.
func (s *PutDeliveryDestinationPolicyOutput) SetPolicy(v *Policy) *PutDeliveryDestinationPolicyOutput {
	s.Policy = v
	return s
}

type PutDeliverySourceInput struct {
	_ struct{} `type:"structure"`

	// Defines the type of log that the source is sending.
	//
	//    * For Amazon Bedrock, the valid value is APPLICATION_LOGS.
	//
	//    * For CloudFront, the valid value is ACCESS_LOGS.
	//
	//    * For Amazon CodeWhisperer, the valid value is EVENT_LOGS.
	//
	//    * For Elemental MediaPackage, the valid values are EGRESS_ACCESS_LOGS
	//    and INGRESS_ACCESS_LOGS.
	//
	//    * For Elemental MediaTailor, the valid values are AD_DECISION_SERVER_LOGS,
	//    MANIFEST_SERVICE_LOGS, and TRANSCODE_LOGS.
	//
	//    * For IAM Identity Center, the valid value is ERROR_LOGS.
	//
	//    * For Amazon Q, the valid value is EVENT_LOGS.
	//
	//    * For Amazon SES mail manager, the valid value is APPLICATION_LOG.
	//
	//    * For Amazon WorkMail, the valid values are ACCESS_CONTROL_LOGS, AUTHENTICATION_LOGS,
	//    WORKMAIL_AVAILABILITY_PROVIDER_LOGS, WORKMAIL_MAILBOX_ACCESS_LOGS, and
	//    WORKMAIL_PERSONAL_ACCESS_TOKEN_LOGS.
	//
	// LogType is a required field
	LogType *string `locationName:"logType" min:"1" type:"string" required:"true"`

	// A name for this delivery source. This name must be unique for all delivery
	// sources in your account.
	//
	// Name is a required field
	Name *string `locationName:"name" min:"1" type:"string" required:"true"`

	// The ARN of the Amazon Web Services resource that is generating and sending
	// logs. For example, arn:aws:workmail:us-east-1:123456789012:organization/m-1234EXAMPLEabcd1234abcd1234abcd1234
	//
	// ResourceArn is a required field
	ResourceArn *string `locationName:"resourceArn" type:"string" required:"true"`

	// An optional list of key-value pairs to associate with the resource.
	//
	// For more information about tagging, see Tagging Amazon Web Services resources
	// (https://docs.aws.amazon.com/general/latest/gr/aws_tagging.html)
	Tags map[string]*string `locationName:"tags" min:"1" type:"map"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s PutDeliverySourceInput) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s PutDeliverySourceInput) GoString() string {
	return s.String()
}

// Validate inspects the fields of the type to determine if they are valid.
func (s *PutDeliverySourceInput) Validate() error {
	invalidParams := request.ErrInvalidParams{Context: "PutDeliverySourceInput"}
	if s.LogType == nil {
		invalidParams.Add(request.NewErrParamRequired("LogType"))
	}
	if s.LogType != nil && len(*s.LogType) < 1 {
		invalidParams.Add(request.NewErrParamMinLen("LogType", 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.ResourceArn == nil {
		invalidParams.Add(request.NewErrParamRequired("ResourceArn"))
	}
	if s.Tags != nil && len(s.Tags) < 1 {
		invalidParams.Add(request.NewErrParamMinLen("Tags", 1))
	}

	if invalidParams.Len() > 0 {
		return invalidParams
	}
	return nil
}

// SetLogType sets the LogType field's value.
func (s *PutDeliverySourceInput) SetLogType(v string) *PutDeliverySourceInput {
	s.LogType = &v
	return s
}

// SetName sets the Name field's value.
func (s *PutDeliverySourceInput) SetName(v string) *PutDeliverySourceInput {
	s.Name = &v
	return s
}

// SetResourceArn sets the ResourceArn field's value.
func (s *PutDeliverySourceInput) SetResourceArn(v string) *PutDeliverySourceInput {
	s.ResourceArn = &v
	return s
}

// SetTags sets the Tags field's value.
func (s *PutDeliverySourceInput) SetTags(v map[string]*string) *PutDeliverySourceInput {
	s.Tags = v
	return s
}

type PutDeliverySourceOutput struct {
	_ struct{} `type:"structure"`

	// A structure containing information about the delivery source that was just
	// created or updated.
	DeliverySource *DeliverySource `locationName:"deliverySource" type:"structure"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s PutDeliverySourceOutput) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s PutDeliverySourceOutput) GoString() string {
	return s.String()
}

// SetDeliverySource sets the DeliverySource field's value.
func (s *PutDeliverySourceOutput) SetDeliverySource(v *DeliverySource) *PutDeliverySourceOutput {
	s.DeliverySource = v
	return s
}

type PutDestinationInput struct {
	_ struct{} `type:"structure"`

	// A name for the destination.
	//
	// DestinationName is a required field
	DestinationName *string `locationName:"destinationName" min:"1" type:"string" required:"true"`

	// The ARN of an IAM role that grants CloudWatch Logs permissions to call the
	// Amazon Kinesis PutRecord operation on the destination stream.
	//
	// RoleArn is a required field
	RoleArn *string `locationName:"roleArn" min:"1" type:"string" required:"true"`

	// An optional list of key-value pairs to associate with the resource.
	//
	// For more information about tagging, see Tagging Amazon Web Services resources
	// (https://docs.aws.amazon.com/general/latest/gr/aws_tagging.html)
	Tags map[string]*string `locationName:"tags" min:"1" type:"map"`

	// The ARN of an Amazon Kinesis stream to which to deliver matching log events.
	//
	// TargetArn is a required field
	TargetArn *string `locationName:"targetArn" min:"1" type:"string" required:"true"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s PutDestinationInput) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s PutDestinationInput) GoString() string {
	return s.String()
}

// Validate inspects the fields of the type to determine if they are valid.
func (s *PutDestinationInput) Validate() error {
	invalidParams := request.ErrInvalidParams{Context: "PutDestinationInput"}
	if s.DestinationName == nil {
		invalidParams.Add(request.NewErrParamRequired("DestinationName"))
	}
	if s.DestinationName != nil && len(*s.DestinationName) < 1 {
		invalidParams.Add(request.NewErrParamMinLen("DestinationName", 1))
	}
	if s.RoleArn == nil {
		invalidParams.Add(request.NewErrParamRequired("RoleArn"))
	}
	if s.RoleArn != nil && len(*s.RoleArn) < 1 {
		invalidParams.Add(request.NewErrParamMinLen("RoleArn", 1))
	}
	if s.Tags != nil && len(s.Tags) < 1 {
		invalidParams.Add(request.NewErrParamMinLen("Tags", 1))
	}
	if s.TargetArn == nil {
		invalidParams.Add(request.NewErrParamRequired("TargetArn"))
	}
	if s.TargetArn != nil && len(*s.TargetArn) < 1 {
		invalidParams.Add(request.NewErrParamMinLen("TargetArn", 1))
	}

	if invalidParams.Len() > 0 {
		return invalidParams
	}
	return nil
}

// SetDestinationName sets the DestinationName field's value.
func (s *PutDestinationInput) SetDestinationName(v string) *PutDestinationInput {
	s.DestinationName = &v
	return s
}

// SetRoleArn sets the RoleArn field's value.
func (s *PutDestinationInput) SetRoleArn(v string) *PutDestinationInput {
	s.RoleArn = &v
	return s
}

// SetTags sets the Tags field's value.
func (s *PutDestinationInput) SetTags(v map[string]*string) *PutDestinationInput {
	s.Tags = v
	return s
}

// SetTargetArn sets the TargetArn field's value.
func (s *PutDestinationInput) SetTargetArn(v string) *PutDestinationInput {
	s.TargetArn = &v
	return s
}

type PutDestinationOutput struct {
	_ struct{} `type:"structure"`

	// The destination.
	Destination *Destination `locationName:"destination" type:"structure"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s PutDestinationOutput) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s PutDestinationOutput) GoString() string {
	return s.String()
}

// SetDestination sets the Destination field's value.
func (s *PutDestinationOutput) SetDestination(v *Destination) *PutDestinationOutput {
	s.Destination = v
	return s
}

type PutDestinationPolicyInput struct {
	_ struct{} `type:"structure"`

	// An IAM policy document that authorizes cross-account users to deliver their
	// log events to the associated destination. This can be up to 5120 bytes.
	//
	// AccessPolicy is a required field
	AccessPolicy *string `locationName:"accessPolicy" min:"1" type:"string" required:"true"`

	// A name for an existing destination.
	//
	// DestinationName is a required field
	DestinationName *string `locationName:"destinationName" min:"1" type:"string" required:"true"`

	// Specify true if you are updating an existing destination policy to grant
	// permission to an organization ID instead of granting permission to individual
	// Amazon Web Services accounts. Before you update a destination policy this
	// way, you must first update the subscription filters in the accounts that
	// send logs to this destination. If you do not, the subscription filters might
	// stop working. By specifying true for forceUpdate, you are affirming that
	// you have already updated the subscription filters. For more information,
	// see Updating an existing cross-account subscription (https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/Cross-Account-Log_Subscription-Update.html)
	//
	// If you omit this parameter, the default of false is used.
	ForceUpdate *bool `locationName:"forceUpdate" type:"boolean"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s PutDestinationPolicyInput) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s PutDestinationPolicyInput) GoString() string {
	return s.String()
}

// Validate inspects the fields of the type to determine if they are valid.
func (s *PutDestinationPolicyInput) Validate() error {
	invalidParams := request.ErrInvalidParams{Context: "PutDestinationPolicyInput"}
	if s.AccessPolicy == nil {
		invalidParams.Add(request.NewErrParamRequired("AccessPolicy"))
	}
	if s.AccessPolicy != nil && len(*s.AccessPolicy) < 1 {
		invalidParams.Add(request.NewErrParamMinLen("AccessPolicy", 1))
	}
	if s.DestinationName == nil {
		invalidParams.Add(request.NewErrParamRequired("DestinationName"))
	}
	if s.DestinationName != nil && len(*s.DestinationName) < 1 {
		invalidParams.Add(request.NewErrParamMinLen("DestinationName", 1))
	}

	if invalidParams.Len() > 0 {
		return invalidParams
	}
	return nil
}

// SetAccessPolicy sets the AccessPolicy field's value.
func (s *PutDestinationPolicyInput) SetAccessPolicy(v string) *PutDestinationPolicyInput {
	s.AccessPolicy = &v
	return s
}

// SetDestinationName sets the DestinationName field's value.
func (s *PutDestinationPolicyInput) SetDestinationName(v string) *PutDestinationPolicyInput {
	s.DestinationName = &v
	return s
}

// SetForceUpdate sets the ForceUpdate field's value.
func (s *PutDestinationPolicyInput) SetForceUpdate(v bool) *PutDestinationPolicyInput {
	s.ForceUpdate = &v
	return s
}

type PutDestinationPolicyOutput struct {
	_ struct{} `type:"structure"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s PutDestinationPolicyOutput) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s PutDestinationPolicyOutput) GoString() string {
	return s.String()
}

type PutIndexPolicyInput struct {
	_ struct{} `type:"structure"`

	// Specify either the log group name or log group ARN to apply this field index
	// policy to. If you specify an ARN, use the format arn:aws:logs:region:account-id:log-group:log_group_name
	// Don't include an * at the end.
	//
	// LogGroupIdentifier is a required field
	LogGroupIdentifier *string `locationName:"logGroupIdentifier" min:"1" type:"string" required:"true"`

	// The index policy document, in JSON format. The following is an example of
	// an index policy document that creates two indexes, RequestId and TransactionId.
	//
	// "policyDocument": "{ "Fields": [ "RequestId", "TransactionId" ] }"
	//
	// The policy document must include at least one field index. For more information
	// about the fields that can be included and other restrictions, see Field index
	// syntax and quotas (https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/CloudWatchLogs-Field-Indexing-Syntax.html).
	//
	// PolicyDocument is a required field
	PolicyDocument *string `locationName:"policyDocument" min:"1" type:"string" required:"true"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s PutIndexPolicyInput) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s PutIndexPolicyInput) GoString() string {
	return s.String()
}

// Validate inspects the fields of the type to determine if they are valid.
func (s *PutIndexPolicyInput) Validate() error {
	invalidParams := request.ErrInvalidParams{Context: "PutIndexPolicyInput"}
	if s.LogGroupIdentifier == nil {
		invalidParams.Add(request.NewErrParamRequired("LogGroupIdentifier"))
	}
	if s.LogGroupIdentifier != nil && len(*s.LogGroupIdentifier) < 1 {
		invalidParams.Add(request.NewErrParamMinLen("LogGroupIdentifier", 1))
	}
	if s.PolicyDocument == nil {
		invalidParams.Add(request.NewErrParamRequired("PolicyDocument"))
	}
	if s.PolicyDocument != nil && len(*s.PolicyDocument) < 1 {
		invalidParams.Add(request.NewErrParamMinLen("PolicyDocument", 1))
	}

	if invalidParams.Len() > 0 {
		return invalidParams
	}
	return nil
}

// SetLogGroupIdentifier sets the LogGroupIdentifier field's value.
func (s *PutIndexPolicyInput) SetLogGroupIdentifier(v string) *PutIndexPolicyInput {
	s.LogGroupIdentifier = &v
	return s
}

// SetPolicyDocument sets the PolicyDocument field's value.
func (s *PutIndexPolicyInput) SetPolicyDocument(v string) *PutIndexPolicyInput {
	s.PolicyDocument = &v
	return s
}

type PutIndexPolicyOutput struct {
	_ struct{} `type:"structure"`

	// The index policy that you just created or updated.
	IndexPolicy *IndexPolicy `locationName:"indexPolicy" type:"structure"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s PutIndexPolicyOutput) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s PutIndexPolicyOutput) GoString() string {
	return s.String()
}

// SetIndexPolicy sets the IndexPolicy field's value.
func (s *PutIndexPolicyOutput) SetIndexPolicy(v *IndexPolicy) *PutIndexPolicyOutput {
	s.IndexPolicy = v
	return s
}

type PutIntegrationInput struct {
	_ struct{} `type:"structure"`

	// A name for the integration.
	//
	// IntegrationName is a required field
	IntegrationName *string `locationName:"integrationName" min:"1" type:"string" required:"true"`

	// The type of integration. Currently, the only supported type is OPENSEARCH.
	//
	// IntegrationType is a required field
	IntegrationType *string `locationName:"integrationType" type:"string" required:"true" enum:"IntegrationType"`

	// A structure that contains configuration information for the integration that
	// you are creating.
	//
	// ResourceConfig is a required field
	ResourceConfig *ResourceConfig `locationName:"resourceConfig" type:"structure" required:"true"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s PutIntegrationInput) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s PutIntegrationInput) GoString() string {
	return s.String()
}

// Validate inspects the fields of the type to determine if they are valid.
func (s *PutIntegrationInput) Validate() error {
	invalidParams := request.ErrInvalidParams{Context: "PutIntegrationInput"}
	if s.IntegrationName == nil {
		invalidParams.Add(request.NewErrParamRequired("IntegrationName"))
	}
	if s.IntegrationName != nil && len(*s.IntegrationName) < 1 {
		invalidParams.Add(request.NewErrParamMinLen("IntegrationName", 1))
	}
	if s.IntegrationType == nil {
		invalidParams.Add(request.NewErrParamRequired("IntegrationType"))
	}
	if s.ResourceConfig == nil {
		invalidParams.Add(request.NewErrParamRequired("ResourceConfig"))
	}
	if s.ResourceConfig != nil {
		if err := s.ResourceConfig.Validate(); err != nil {
			invalidParams.AddNested("ResourceConfig", err.(request.ErrInvalidParams))
		}
	}

	if invalidParams.Len() > 0 {
		return invalidParams
	}
	return nil
}

// SetIntegrationName sets the IntegrationName field's value.
func (s *PutIntegrationInput) SetIntegrationName(v string) *PutIntegrationInput {
	s.IntegrationName = &v
	return s
}

// SetIntegrationType sets the IntegrationType field's value.
func (s *PutIntegrationInput) SetIntegrationType(v string) *PutIntegrationInput {
	s.IntegrationType = &v
	return s
}

// SetResourceConfig sets the ResourceConfig field's value.
func (s *PutIntegrationInput) SetResourceConfig(v *ResourceConfig) *PutIntegrationInput {
	s.ResourceConfig = v
	return s
}

type PutIntegrationOutput struct {
	_ struct{} `type:"structure"`

	// The name of the integration that you just created.
	IntegrationName *string `locationName:"integrationName" min:"1" type:"string"`

	// The status of the integration that you just created.
	//
	// After you create an integration, it takes a few minutes to complete. During
	// this time, you'll see the status as PROVISIONING.
	IntegrationStatus *string `locationName:"integrationStatus" type:"string" enum:"IntegrationStatus"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s PutIntegrationOutput) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s PutIntegrationOutput) GoString() string {
	return s.String()
}

// SetIntegrationName sets the IntegrationName field's value.
func (s *PutIntegrationOutput) SetIntegrationName(v string) *PutIntegrationOutput {
	s.IntegrationName = &v
	return s
}

// SetIntegrationStatus sets the IntegrationStatus field's value.
func (s *PutIntegrationOutput) SetIntegrationStatus(v string) *PutIntegrationOutput {
	s.IntegrationStatus = &v
	return s
}

type PutLogEventsInput struct {
	_ struct{} `type:"structure"`

	// The entity associated with the log events.
	Entity *Entity `locationName:"entity" type:"structure"`

	// The log events.
	//
	// LogEvents is a required field
	LogEvents []*InputLogEvent `locationName:"logEvents" min:"1" type:"list" required:"true"`

	// The name of the log group.
	//
	// LogGroupName is a required field
	LogGroupName *string `locationName:"logGroupName" min:"1" type:"string" required:"true"`

	// The name of the log stream.
	//
	// LogStreamName is a required field
	LogStreamName *string `locationName:"logStreamName" min:"1" type:"string" required:"true"`

	// The sequence token obtained from the response of the previous PutLogEvents
	// call.
	//
	// The sequenceToken parameter is now ignored in PutLogEvents actions. PutLogEvents
	// actions are now accepted and never return InvalidSequenceTokenException or
	// DataAlreadyAcceptedException even if the sequence token is not valid.
	SequenceToken *string `locationName:"sequenceToken" min:"1" type:"string"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s PutLogEventsInput) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s PutLogEventsInput) GoString() string {
	return s.String()
}

// Validate inspects the fields of the type to determine if they are valid.
func (s *PutLogEventsInput) Validate() error {
	invalidParams := request.ErrInvalidParams{Context: "PutLogEventsInput"}
	if s.LogEvents == nil {
		invalidParams.Add(request.NewErrParamRequired("LogEvents"))
	}
	if s.LogEvents != nil && len(s.LogEvents) < 1 {
		invalidParams.Add(request.NewErrParamMinLen("LogEvents", 1))
	}
	if s.LogGroupName == nil {
		invalidParams.Add(request.NewErrParamRequired("LogGroupName"))
	}
	if s.LogGroupName != nil && len(*s.LogGroupName) < 1 {
		invalidParams.Add(request.NewErrParamMinLen("LogGroupName", 1))
	}
	if s.LogStreamName == nil {
		invalidParams.Add(request.NewErrParamRequired("LogStreamName"))
	}
	if s.LogStreamName != nil && len(*s.LogStreamName) < 1 {
		invalidParams.Add(request.NewErrParamMinLen("LogStreamName", 1))
	}
	if s.SequenceToken != nil && len(*s.SequenceToken) < 1 {
		invalidParams.Add(request.NewErrParamMinLen("SequenceToken", 1))
	}
	if s.Entity != nil {
		if err := s.Entity.Validate(); err != nil {
			invalidParams.AddNested("Entity", err.(request.ErrInvalidParams))
		}
	}
	if s.LogEvents != nil {
		for i, v := range s.LogEvents {
			if v == nil {
				continue
			}
			if err := v.Validate(); err != nil {
				invalidParams.AddNested(fmt.Sprintf("%s[%v]", "LogEvents", i), err.(request.ErrInvalidParams))
			}
		}
	}

	if invalidParams.Len() > 0 {
		return invalidParams
	}
	return nil
}

// SetEntity sets the Entity field's value.
func (s *PutLogEventsInput) SetEntity(v *Entity) *PutLogEventsInput {
	s.Entity = v
	return s
}

// SetLogEvents sets the LogEvents field's value.
func (s *PutLogEventsInput) SetLogEvents(v []*InputLogEvent) *PutLogEventsInput {
	s.LogEvents = v
	return s
}

// SetLogGroupName sets the LogGroupName field's value.
func (s *PutLogEventsInput) SetLogGroupName(v string) *PutLogEventsInput {
	s.LogGroupName = &v
	return s
}

// SetLogStreamName sets the LogStreamName field's value.
func (s *PutLogEventsInput) SetLogStreamName(v string) *PutLogEventsInput {
	s.LogStreamName = &v
	return s
}

// SetSequenceToken sets the SequenceToken field's value.
func (s *PutLogEventsInput) SetSequenceToken(v string) *PutLogEventsInput {
	s.SequenceToken = &v
	return s
}

type PutLogEventsOutput struct {
	_ struct{} `type:"structure"`

	// The next sequence token.
	//
	// This field has been deprecated.
	//
	// The sequence token is now ignored in PutLogEvents actions. PutLogEvents actions
	// are always accepted even if the sequence token is not valid. You can use
	// parallel PutLogEvents actions on the same log stream and you do not need
	// to wait for the response of a previous PutLogEvents action to obtain the
	// nextSequenceToken value.
	NextSequenceToken *string `locationName:"nextSequenceToken" min:"1" type:"string"`

	// Information about why the entity is rejected when calling PutLogEvents. Only
	// returned when the entity is rejected.
	//
	// When the entity is rejected, the events may still be accepted.
	RejectedEntityInfo *RejectedEntityInfo `locationName:"rejectedEntityInfo" type:"structure"`

	// The rejected events.
	RejectedLogEventsInfo *RejectedLogEventsInfo `locationName:"rejectedLogEventsInfo" type:"structure"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s PutLogEventsOutput) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s PutLogEventsOutput) GoString() string {
	return s.String()
}

// SetNextSequenceToken sets the NextSequenceToken field's value.
func (s *PutLogEventsOutput) SetNextSequenceToken(v string) *PutLogEventsOutput {
	s.NextSequenceToken = &v
	return s
}

// SetRejectedEntityInfo sets the RejectedEntityInfo field's value.
func (s *PutLogEventsOutput) SetRejectedEntityInfo(v *RejectedEntityInfo) *PutLogEventsOutput {
	s.RejectedEntityInfo = v
	return s
}

// SetRejectedLogEventsInfo sets the RejectedLogEventsInfo field's value.
func (s *PutLogEventsOutput) SetRejectedLogEventsInfo(v *RejectedLogEventsInfo) *PutLogEventsOutput {
	s.RejectedLogEventsInfo = v
	return s
}

type PutMetricFilterInput struct {
	_ struct{} `type:"structure"`

	// This parameter is valid only for log groups that have an active log transformer.
	// For more information about log transformers, see PutTransformer (https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_PutTransformer.html).
	//
	// If the log group uses either a log-group level or account-level transformer,
	// and you specify true, the metric filter will be applied on the transformed
	// version of the log events instead of the original ingested log events.
	ApplyOnTransformedLogs *bool `locationName:"applyOnTransformedLogs" type:"boolean"`

	// A name for the metric filter.
	//
	// FilterName is a required field
	FilterName *string `locationName:"filterName" min:"1" type:"string" required:"true"`

	// A filter pattern for extracting metric data out of ingested log events.
	//
	// FilterPattern is a required field
	FilterPattern *string `locationName:"filterPattern" type:"string" required:"true"`

	// The name of the log group.
	//
	// LogGroupName is a required field
	LogGroupName *string `locationName:"logGroupName" min:"1" type:"string" required:"true"`

	// A collection of information that defines how metric data gets emitted.
	//
	// MetricTransformations is a required field
	MetricTransformations []*MetricTransformation `locationName:"metricTransformations" min:"1" type:"list" required:"true"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s PutMetricFilterInput) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s PutMetricFilterInput) GoString() string {
	return s.String()
}

// Validate inspects the fields of the type to determine if they are valid.
func (s *PutMetricFilterInput) Validate() error {
	invalidParams := request.ErrInvalidParams{Context: "PutMetricFilterInput"}
	if s.FilterName == nil {
		invalidParams.Add(request.NewErrParamRequired("FilterName"))
	}
	if s.FilterName != nil && len(*s.FilterName) < 1 {
		invalidParams.Add(request.NewErrParamMinLen("FilterName", 1))
	}
	if s.FilterPattern == nil {
		invalidParams.Add(request.NewErrParamRequired("FilterPattern"))
	}
	if s.LogGroupName == nil {
		invalidParams.Add(request.NewErrParamRequired("LogGroupName"))
	}
	if s.LogGroupName != nil && len(*s.LogGroupName) < 1 {
		invalidParams.Add(request.NewErrParamMinLen("LogGroupName", 1))
	}
	if s.MetricTransformations == nil {
		invalidParams.Add(request.NewErrParamRequired("MetricTransformations"))
	}
	if s.MetricTransformations != nil && len(s.MetricTransformations) < 1 {
		invalidParams.Add(request.NewErrParamMinLen("MetricTransformations", 1))
	}
	if s.MetricTransformations != nil {
		for i, v := range s.MetricTransformations {
			if v == nil {
				continue
			}
			if err := v.Validate(); err != nil {
				invalidParams.AddNested(fmt.Sprintf("%s[%v]", "MetricTransformations", i), err.(request.ErrInvalidParams))
			}
		}
	}

	if invalidParams.Len() > 0 {
		return invalidParams
	}
	return nil
}

// SetApplyOnTransformedLogs sets the ApplyOnTransformedLogs field's value.
func (s *PutMetricFilterInput) SetApplyOnTransformedLogs(v bool) *PutMetricFilterInput {
	s.ApplyOnTransformedLogs = &v
	return s
}

// SetFilterName sets the FilterName field's value.
func (s *PutMetricFilterInput) SetFilterName(v string) *PutMetricFilterInput {
	s.FilterName = &v
	return s
}

// SetFilterPattern sets the FilterPattern field's value.
func (s *PutMetricFilterInput) SetFilterPattern(v string) *PutMetricFilterInput {
	s.FilterPattern = &v
	return s
}

// SetLogGroupName sets the LogGroupName field's value.
func (s *PutMetricFilterInput) SetLogGroupName(v string) *PutMetricFilterInput {
	s.LogGroupName = &v
	return s
}

// SetMetricTransformations sets the MetricTransformations field's value.
func (s *PutMetricFilterInput) SetMetricTransformations(v []*MetricTransformation) *PutMetricFilterInput {
	s.MetricTransformations = v
	return s
}

type PutMetricFilterOutput struct {
	_ struct{} `type:"structure"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s PutMetricFilterOutput) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s PutMetricFilterOutput) GoString() string {
	return s.String()
}

type PutQueryDefinitionInput struct {
	_ struct{} `type:"structure"`

	// Used as an idempotency token, to avoid returning an exception if the service
	// receives the same request twice because of a network error.
	ClientToken *string `locationName:"clientToken" min:"36" type:"string" idempotencyToken:"true"`

	// Use this parameter to include specific log groups as part of your query definition.
	// If your query uses the OpenSearch Service query language, you specify the
	// log group names inside the querystring instead of here.
	//
	// If you are updating an existing query definition for the Logs Insights QL
	// or OpenSearch Service PPL and you omit this parameter, then the updated definition
	// will contain no log groups.
	LogGroupNames []*string `locationName:"logGroupNames" type:"list"`

	// A name for the query definition. If you are saving numerous query definitions,
	// we recommend that you name them. This way, you can find the ones you want
	// by using the first part of the name as a filter in the queryDefinitionNamePrefix
	// parameter of DescribeQueryDefinitions (https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_DescribeQueryDefinitions.html).
	//
	// Name is a required field
	Name *string `locationName:"name" min:"1" type:"string" required:"true"`

	// If you are updating a query definition, use this parameter to specify the
	// ID of the query definition that you want to update. You can use DescribeQueryDefinitions
	// (https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_DescribeQueryDefinitions.html)
	// to retrieve the IDs of your saved query definitions.
	//
	// If you are creating a query definition, do not specify this parameter. CloudWatch
	// generates a unique ID for the new query definition and include it in the
	// response to this operation.
	QueryDefinitionId *string `locationName:"queryDefinitionId" type:"string"`

	// Specify the query language to use for this query. The options are Logs Insights
	// QL, OpenSearch PPL, and OpenSearch SQL. For more information about the query
	// languages that CloudWatch Logs supports, see Supported query languages (https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/CWL_AnalyzeLogData_Languages.html).
	QueryLanguage *string `locationName:"queryLanguage" type:"string" enum:"QueryLanguage"`

	// The query string to use for this definition. For more information, see CloudWatch
	// Logs Insights Query Syntax (https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/CWL_QuerySyntax.html).
	//
	// QueryString is a required field
	QueryString *string `locationName:"queryString" min:"1" type:"string" required:"true"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s PutQueryDefinitionInput) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s PutQueryDefinitionInput) GoString() string {
	return s.String()
}

// Validate inspects the fields of the type to determine if they are valid.
func (s *PutQueryDefinitionInput) Validate() error {
	invalidParams := request.ErrInvalidParams{Context: "PutQueryDefinitionInput"}
	if s.ClientToken != nil && len(*s.ClientToken) < 36 {
		invalidParams.Add(request.NewErrParamMinLen("ClientToken", 36))
	}
	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.QueryString == nil {
		invalidParams.Add(request.NewErrParamRequired("QueryString"))
	}
	if s.QueryString != nil && len(*s.QueryString) < 1 {
		invalidParams.Add(request.NewErrParamMinLen("QueryString", 1))
	}

	if invalidParams.Len() > 0 {
		return invalidParams
	}
	return nil
}

// SetClientToken sets the ClientToken field's value.
func (s *PutQueryDefinitionInput) SetClientToken(v string) *PutQueryDefinitionInput {
	s.ClientToken = &v
	return s
}

// SetLogGroupNames sets the LogGroupNames field's value.
func (s *PutQueryDefinitionInput) SetLogGroupNames(v []*string) *PutQueryDefinitionInput {
	s.LogGroupNames = v
	return s
}

// SetName sets the Name field's value.
func (s *PutQueryDefinitionInput) SetName(v string) *PutQueryDefinitionInput {
	s.Name = &v
	return s
}

// SetQueryDefinitionId sets the QueryDefinitionId field's value.
func (s *PutQueryDefinitionInput) SetQueryDefinitionId(v string) *PutQueryDefinitionInput {
	s.QueryDefinitionId = &v
	return s
}

// SetQueryLanguage sets the QueryLanguage field's value.
func (s *PutQueryDefinitionInput) SetQueryLanguage(v string) *PutQueryDefinitionInput {
	s.QueryLanguage = &v
	return s
}

// SetQueryString sets the QueryString field's value.
func (s *PutQueryDefinitionInput) SetQueryString(v string) *PutQueryDefinitionInput {
	s.QueryString = &v
	return s
}

type PutQueryDefinitionOutput struct {
	_ struct{} `type:"structure"`

	// The ID of the query definition.
	QueryDefinitionId *string `locationName:"queryDefinitionId" type:"string"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s PutQueryDefinitionOutput) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s PutQueryDefinitionOutput) GoString() string {
	return s.String()
}

// SetQueryDefinitionId sets the QueryDefinitionId field's value.
func (s *PutQueryDefinitionOutput) SetQueryDefinitionId(v string) *PutQueryDefinitionOutput {
	s.QueryDefinitionId = &v
	return s
}

type PutResourcePolicyInput struct {
	_ struct{} `type:"structure"`

	// Details of the new policy, including the identity of the principal that is
	// enabled to put logs to this account. This is formatted as a JSON string.
	// This parameter is required.
	//
	// The following example creates a resource policy enabling the Route 53 service
	// to put DNS query logs in to the specified log group. Replace "logArn" with
	// the ARN of your CloudWatch Logs resource, such as a log group or log stream.
	//
	// CloudWatch Logs also supports aws:SourceArn (https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_condition-keys.html#condition-keys-sourcearn)
	// and aws:SourceAccount (https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_condition-keys.html#condition-keys-sourceaccount)
	// condition context keys.
	//
	// In the example resource policy, you would replace the value of SourceArn
	// with the resource making the call from Route 53 to CloudWatch Logs. You would
	// also replace the value of SourceAccount with the Amazon Web Services account
	// ID making that call.
	//
	// { "Version": "2012-10-17", "Statement": [ { "Sid": "Route53LogsToCloudWatchLogs",
	// "Effect": "Allow", "Principal": { "Service": [ "route53.amazonaws.com" ]
	// }, "Action": "logs:PutLogEvents", "Resource": "logArn", "Condition": { "ArnLike":
	// { "aws:SourceArn": "myRoute53ResourceArn" }, "StringEquals": { "aws:SourceAccount":
	// "myAwsAccountId" } } } ] }
	PolicyDocument *string `locationName:"policyDocument" min:"1" type:"string"`

	// Name of the new policy. This parameter is required.
	PolicyName *string `locationName:"policyName" type:"string"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s PutResourcePolicyInput) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s PutResourcePolicyInput) GoString() string {
	return s.String()
}

// Validate inspects the fields of the type to determine if they are valid.
func (s *PutResourcePolicyInput) Validate() error {
	invalidParams := request.ErrInvalidParams{Context: "PutResourcePolicyInput"}
	if s.PolicyDocument != nil && len(*s.PolicyDocument) < 1 {
		invalidParams.Add(request.NewErrParamMinLen("PolicyDocument", 1))
	}

	if invalidParams.Len() > 0 {
		return invalidParams
	}
	return nil
}

// SetPolicyDocument sets the PolicyDocument field's value.
func (s *PutResourcePolicyInput) SetPolicyDocument(v string) *PutResourcePolicyInput {
	s.PolicyDocument = &v
	return s
}

// SetPolicyName sets the PolicyName field's value.
func (s *PutResourcePolicyInput) SetPolicyName(v string) *PutResourcePolicyInput {
	s.PolicyName = &v
	return s
}

type PutResourcePolicyOutput struct {
	_ struct{} `type:"structure"`

	// The new policy.
	ResourcePolicy *ResourcePolicy `locationName:"resourcePolicy" type:"structure"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s PutResourcePolicyOutput) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s PutResourcePolicyOutput) GoString() string {
	return s.String()
}

// SetResourcePolicy sets the ResourcePolicy field's value.
func (s *PutResourcePolicyOutput) SetResourcePolicy(v *ResourcePolicy) *PutResourcePolicyOutput {
	s.ResourcePolicy = v
	return s
}

type PutRetentionPolicyInput struct {
	_ struct{} `type:"structure"`

	// The name of the log group.
	//
	// LogGroupName is a required field
	LogGroupName *string `locationName:"logGroupName" min:"1" type:"string" required:"true"`

	// The number of days to retain the log events in the specified log group. Possible
	// values are: 1, 3, 5, 7, 14, 30, 60, 90, 120, 150, 180, 365, 400, 545, 731,
	// 1096, 1827, 2192, 2557, 2922, 3288, and 3653.
	//
	// To set a log group so that its log events do not expire, use DeleteRetentionPolicy
	// (https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_DeleteRetentionPolicy.html).
	//
	// RetentionInDays is a required field
	RetentionInDays *int64 `locationName:"retentionInDays" type:"integer" required:"true"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s PutRetentionPolicyInput) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s PutRetentionPolicyInput) GoString() string {
	return s.String()
}

// Validate inspects the fields of the type to determine if they are valid.
func (s *PutRetentionPolicyInput) Validate() error {
	invalidParams := request.ErrInvalidParams{Context: "PutRetentionPolicyInput"}
	if s.LogGroupName == nil {
		invalidParams.Add(request.NewErrParamRequired("LogGroupName"))
	}
	if s.LogGroupName != nil && len(*s.LogGroupName) < 1 {
		invalidParams.Add(request.NewErrParamMinLen("LogGroupName", 1))
	}
	if s.RetentionInDays == nil {
		invalidParams.Add(request.NewErrParamRequired("RetentionInDays"))
	}

	if invalidParams.Len() > 0 {
		return invalidParams
	}
	return nil
}

// SetLogGroupName sets the LogGroupName field's value.
func (s *PutRetentionPolicyInput) SetLogGroupName(v string) *PutRetentionPolicyInput {
	s.LogGroupName = &v
	return s
}

// SetRetentionInDays sets the RetentionInDays field's value.
func (s *PutRetentionPolicyInput) SetRetentionInDays(v int64) *PutRetentionPolicyInput {
	s.RetentionInDays = &v
	return s
}

type PutRetentionPolicyOutput struct {
	_ struct{} `type:"structure"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s PutRetentionPolicyOutput) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s PutRetentionPolicyOutput) GoString() string {
	return s.String()
}

type PutSubscriptionFilterInput struct {
	_ struct{} `type:"structure"`

	// This parameter is valid only for log groups that have an active log transformer.
	// For more information about log transformers, see PutTransformer (https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_PutTransformer.html).
	//
	// If the log group uses either a log-group level or account-level transformer,
	// and you specify true, the subscription filter will be applied on the transformed
	// version of the log events instead of the original ingested log events.
	ApplyOnTransformedLogs *bool `locationName:"applyOnTransformedLogs" type:"boolean"`

	// The ARN of the destination to deliver matching log events to. Currently,
	// the supported destinations are:
	//
	//    * An Amazon Kinesis stream belonging to the same account as the subscription
	//    filter, for same-account delivery.
	//
	//    * A logical destination (specified using an ARN) belonging to a different
	//    account, for cross-account delivery. If you're setting up a cross-account
	//    subscription, the destination must have an IAM policy associated with
	//    it. The IAM policy must allow the sender to send logs to the destination.
	//    For more information, see PutDestinationPolicy (https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_PutDestinationPolicy.html).
	//
	//    * A Kinesis Data Firehose delivery stream belonging to the same account
	//    as the subscription filter, for same-account delivery.
	//
	//    * A Lambda function belonging to the same account as the subscription
	//    filter, for same-account delivery.
	//
	// DestinationArn is a required field
	DestinationArn *string `locationName:"destinationArn" min:"1" type:"string" required:"true"`

	// The method used to distribute log data to the destination. By default, log
	// data is grouped by log stream, but the grouping can be set to random for
	// a more even distribution. This property is only applicable when the destination
	// is an Amazon Kinesis data stream.
	Distribution *string `locationName:"distribution" type:"string" enum:"Distribution"`

	// A name for the subscription filter. If you are updating an existing filter,
	// you must specify the correct name in filterName. To find the name of the
	// filter currently associated with a log group, use DescribeSubscriptionFilters
	// (https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_DescribeSubscriptionFilters.html).
	//
	// FilterName is a required field
	FilterName *string `locationName:"filterName" min:"1" type:"string" required:"true"`

	// A filter pattern for subscribing to a filtered stream of log events.
	//
	// FilterPattern is a required field
	FilterPattern *string `locationName:"filterPattern" type:"string" required:"true"`

	// The name of the log group.
	//
	// LogGroupName is a required field
	LogGroupName *string `locationName:"logGroupName" min:"1" type:"string" required:"true"`

	// The ARN of an IAM role that grants CloudWatch Logs permissions to deliver
	// ingested log events to the destination stream. You don't need to provide
	// the ARN when you are working with a logical destination for cross-account
	// delivery.
	RoleArn *string `locationName:"roleArn" min:"1" type:"string"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s PutSubscriptionFilterInput) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s PutSubscriptionFilterInput) GoString() string {
	return s.String()
}

// Validate inspects the fields of the type to determine if they are valid.
func (s *PutSubscriptionFilterInput) Validate() error {
	invalidParams := request.ErrInvalidParams{Context: "PutSubscriptionFilterInput"}
	if s.DestinationArn == nil {
		invalidParams.Add(request.NewErrParamRequired("DestinationArn"))
	}
	if s.DestinationArn != nil && len(*s.DestinationArn) < 1 {
		invalidParams.Add(request.NewErrParamMinLen("DestinationArn", 1))
	}
	if s.FilterName == nil {
		invalidParams.Add(request.NewErrParamRequired("FilterName"))
	}
	if s.FilterName != nil && len(*s.FilterName) < 1 {
		invalidParams.Add(request.NewErrParamMinLen("FilterName", 1))
	}
	if s.FilterPattern == nil {
		invalidParams.Add(request.NewErrParamRequired("FilterPattern"))
	}
	if s.LogGroupName == nil {
		invalidParams.Add(request.NewErrParamRequired("LogGroupName"))
	}
	if s.LogGroupName != nil && len(*s.LogGroupName) < 1 {
		invalidParams.Add(request.NewErrParamMinLen("LogGroupName", 1))
	}
	if s.RoleArn != nil && len(*s.RoleArn) < 1 {
		invalidParams.Add(request.NewErrParamMinLen("RoleArn", 1))
	}

	if invalidParams.Len() > 0 {
		return invalidParams
	}
	return nil
}

// SetApplyOnTransformedLogs sets the ApplyOnTransformedLogs field's value.
func (s *PutSubscriptionFilterInput) SetApplyOnTransformedLogs(v bool) *PutSubscriptionFilterInput {
	s.ApplyOnTransformedLogs = &v
	return s
}

// SetDestinationArn sets the DestinationArn field's value.
func (s *PutSubscriptionFilterInput) SetDestinationArn(v string) *PutSubscriptionFilterInput {
	s.DestinationArn = &v
	return s
}

// SetDistribution sets the Distribution field's value.
func (s *PutSubscriptionFilterInput) SetDistribution(v string) *PutSubscriptionFilterInput {
	s.Distribution = &v
	return s
}

// SetFilterName sets the FilterName field's value.
func (s *PutSubscriptionFilterInput) SetFilterName(v string) *PutSubscriptionFilterInput {
	s.FilterName = &v
	return s
}

// SetFilterPattern sets the FilterPattern field's value.
func (s *PutSubscriptionFilterInput) SetFilterPattern(v string) *PutSubscriptionFilterInput {
	s.FilterPattern = &v
	return s
}

// SetLogGroupName sets the LogGroupName field's value.
func (s *PutSubscriptionFilterInput) SetLogGroupName(v string) *PutSubscriptionFilterInput {
	s.LogGroupName = &v
	return s
}

// SetRoleArn sets the RoleArn field's value.
func (s *PutSubscriptionFilterInput) SetRoleArn(v string) *PutSubscriptionFilterInput {
	s.RoleArn = &v
	return s
}

type PutSubscriptionFilterOutput struct {
	_ struct{} `type:"structure"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s PutSubscriptionFilterOutput) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s PutSubscriptionFilterOutput) GoString() string {
	return s.String()
}

type PutTransformerInput struct {
	_ struct{} `type:"structure"`

	// Specify either the name or ARN of the log group to create the transformer
	// for.
	//
	// LogGroupIdentifier is a required field
	LogGroupIdentifier *string `locationName:"logGroupIdentifier" min:"1" type:"string" required:"true"`

	// This structure contains the configuration of this log transformer. A log
	// transformer is an array of processors, where each processor applies one type
	// of transformation to the log events that are ingested.
	//
	// TransformerConfig is a required field
	TransformerConfig []*Processor `locationName:"transformerConfig" min:"1" type:"list" required:"true"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s PutTransformerInput) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s PutTransformerInput) GoString() string {
	return s.String()
}

// Validate inspects the fields of the type to determine if they are valid.
func (s *PutTransformerInput) Validate() error {
	invalidParams := request.ErrInvalidParams{Context: "PutTransformerInput"}
	if s.LogGroupIdentifier == nil {
		invalidParams.Add(request.NewErrParamRequired("LogGroupIdentifier"))
	}
	if s.LogGroupIdentifier != nil && len(*s.LogGroupIdentifier) < 1 {
		invalidParams.Add(request.NewErrParamMinLen("LogGroupIdentifier", 1))
	}
	if s.TransformerConfig == nil {
		invalidParams.Add(request.NewErrParamRequired("TransformerConfig"))
	}
	if s.TransformerConfig != nil && len(s.TransformerConfig) < 1 {
		invalidParams.Add(request.NewErrParamMinLen("TransformerConfig", 1))
	}
	if s.TransformerConfig != nil {
		for i, v := range s.TransformerConfig {
			if v == nil {
				continue
			}
			if err := v.Validate(); err != nil {
				invalidParams.AddNested(fmt.Sprintf("%s[%v]", "TransformerConfig", i), err.(request.ErrInvalidParams))
			}
		}
	}

	if invalidParams.Len() > 0 {
		return invalidParams
	}
	return nil
}

// SetLogGroupIdentifier sets the LogGroupIdentifier field's value.
func (s *PutTransformerInput) SetLogGroupIdentifier(v string) *PutTransformerInput {
	s.LogGroupIdentifier = &v
	return s
}

// SetTransformerConfig sets the TransformerConfig field's value.
func (s *PutTransformerInput) SetTransformerConfig(v []*Processor) *PutTransformerInput {
	s.TransformerConfig = v
	return s
}

type PutTransformerOutput struct {
	_ struct{} `type:"structure"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s PutTransformerOutput) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s PutTransformerOutput) GoString() string {
	return s.String()
}

// Reserved.
type QueryCompileError struct {
	_ struct{} `type:"structure"`

	// Reserved.
	Location *QueryCompileErrorLocation `locationName:"location" type:"structure"`

	// Reserved.
	Message *string `locationName:"message" type:"string"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s QueryCompileError) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s QueryCompileError) GoString() string {
	return s.String()
}

// SetLocation sets the Location field's value.
func (s *QueryCompileError) SetLocation(v *QueryCompileErrorLocation) *QueryCompileError {
	s.Location = v
	return s
}

// SetMessage sets the Message field's value.
func (s *QueryCompileError) SetMessage(v string) *QueryCompileError {
	s.Message = &v
	return s
}

// Reserved.
type QueryCompileErrorLocation struct {
	_ struct{} `type:"structure"`

	// Reserved.
	EndCharOffset *int64 `locationName:"endCharOffset" type:"integer"`

	// Reserved.
	StartCharOffset *int64 `locationName:"startCharOffset" type:"integer"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s QueryCompileErrorLocation) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s QueryCompileErrorLocation) GoString() string {
	return s.String()
}

// SetEndCharOffset sets the EndCharOffset field's value.
func (s *QueryCompileErrorLocation) SetEndCharOffset(v int64) *QueryCompileErrorLocation {
	s.EndCharOffset = &v
	return s
}

// SetStartCharOffset sets the StartCharOffset field's value.
func (s *QueryCompileErrorLocation) SetStartCharOffset(v int64) *QueryCompileErrorLocation {
	s.StartCharOffset = &v
	return s
}

// This structure contains details about a saved CloudWatch Logs Insights query
// definition.
type QueryDefinition struct {
	_ struct{} `type:"structure"`

	// The date that the query definition was most recently modified.
	LastModified *int64 `locationName:"lastModified" type:"long"`

	// If this query definition contains a list of log groups that it is limited
	// to, that list appears here.
	LogGroupNames []*string `locationName:"logGroupNames" type:"list"`

	// The name of the query definition.
	Name *string `locationName:"name" min:"1" type:"string"`

	// The unique ID of the query definition.
	QueryDefinitionId *string `locationName:"queryDefinitionId" type:"string"`

	// The query language used for this query. For more information about the query
	// languages that CloudWatch Logs supports, see Supported query languages (https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/CWL_AnalyzeLogData_Languages.html).
	QueryLanguage *string `locationName:"queryLanguage" type:"string" enum:"QueryLanguage"`

	// The query string to use for this definition. For more information, see CloudWatch
	// Logs Insights Query Syntax (https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/CWL_QuerySyntax.html).
	QueryString *string `locationName:"queryString" min:"1" type:"string"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s QueryDefinition) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s QueryDefinition) GoString() string {
	return s.String()
}

// SetLastModified sets the LastModified field's value.
func (s *QueryDefinition) SetLastModified(v int64) *QueryDefinition {
	s.LastModified = &v
	return s
}

// SetLogGroupNames sets the LogGroupNames field's value.
func (s *QueryDefinition) SetLogGroupNames(v []*string) *QueryDefinition {
	s.LogGroupNames = v
	return s
}

// SetName sets the Name field's value.
func (s *QueryDefinition) SetName(v string) *QueryDefinition {
	s.Name = &v
	return s
}

// SetQueryDefinitionId sets the QueryDefinitionId field's value.
func (s *QueryDefinition) SetQueryDefinitionId(v string) *QueryDefinition {
	s.QueryDefinitionId = &v
	return s
}

// SetQueryLanguage sets the QueryLanguage field's value.
func (s *QueryDefinition) SetQueryLanguage(v string) *QueryDefinition {
	s.QueryLanguage = &v
	return s
}

// SetQueryString sets the QueryString field's value.
func (s *QueryDefinition) SetQueryString(v string) *QueryDefinition {
	s.QueryString = &v
	return s
}

// Information about one CloudWatch Logs Insights query that matches the request
// in a DescribeQueries operation.
type QueryInfo struct {
	_ struct{} `type:"structure"`

	// The date and time that this query was created.
	CreateTime *int64 `locationName:"createTime" type:"long"`

	// The name of the log group scanned by this query.
	LogGroupName *string `locationName:"logGroupName" min:"1" type:"string"`

	// The unique ID number of this query.
	QueryId *string `locationName:"queryId" type:"string"`

	// The query language used for this query. For more information about the query
	// languages that CloudWatch Logs supports, see Supported query languages (https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/CWL_AnalyzeLogData_Languages.html).
	QueryLanguage *string `locationName:"queryLanguage" type:"string" enum:"QueryLanguage"`

	// The query string used in this query.
	QueryString *string `locationName:"queryString" type:"string"`

	// The status of this query. Possible values are Cancelled, Complete, Failed,
	// Running, Scheduled, and Unknown.
	Status *string `locationName:"status" type:"string" enum:"QueryStatus"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s QueryInfo) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s QueryInfo) GoString() string {
	return s.String()
}

// SetCreateTime sets the CreateTime field's value.
func (s *QueryInfo) SetCreateTime(v int64) *QueryInfo {
	s.CreateTime = &v
	return s
}

// SetLogGroupName sets the LogGroupName field's value.
func (s *QueryInfo) SetLogGroupName(v string) *QueryInfo {
	s.LogGroupName = &v
	return s
}

// SetQueryId sets the QueryId field's value.
func (s *QueryInfo) SetQueryId(v string) *QueryInfo {
	s.QueryId = &v
	return s
}

// SetQueryLanguage sets the QueryLanguage field's value.
func (s *QueryInfo) SetQueryLanguage(v string) *QueryInfo {
	s.QueryLanguage = &v
	return s
}

// SetQueryString sets the QueryString field's value.
func (s *QueryInfo) SetQueryString(v string) *QueryInfo {
	s.QueryString = &v
	return s
}

// SetStatus sets the Status field's value.
func (s *QueryInfo) SetStatus(v string) *QueryInfo {
	s.Status = &v
	return s
}

// Contains the number of log events scanned by the query, the number of log
// events that matched the query criteria, and the total number of bytes in
// the log events that were scanned.
//
// If the query involved log groups that have field index policies, the estimated
// number of skipped log events and the total bytes of those skipped log events
// are included. Using field indexes to skip log events in queries reduces scan
// volume and improves performance. For more information, see Create field indexes
// to improve query performance and reduce scan volume (https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/CloudWatchLogs-Field-Indexing.html).
type QueryStatistics struct {
	_ struct{} `type:"structure"`

	// The total number of bytes in the log events scanned during the query.
	BytesScanned *float64 `locationName:"bytesScanned" type:"double"`

	// An estimate of the number of bytes in the log events that were skipped when
	// processing this query, because the query contained an indexed field. Skipping
	// these entries lowers query costs and improves the query performance time.
	// For more information about field indexes, see PutIndexPolicy (https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_PutIndexPolicy.html).
	EstimatedBytesSkipped *float64 `locationName:"estimatedBytesSkipped" type:"double"`

	// An estimate of the number of log events that were skipped when processing
	// this query, because the query contained an indexed field. Skipping these
	// entries lowers query costs and improves the query performance time. For more
	// information about field indexes, see PutIndexPolicy (https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_PutIndexPolicy.html).
	EstimatedRecordsSkipped *float64 `locationName:"estimatedRecordsSkipped" type:"double"`

	// The number of log groups that were scanned by this query.
	LogGroupsScanned *float64 `locationName:"logGroupsScanned" type:"double"`

	// The number of log events that matched the query string.
	RecordsMatched *float64 `locationName:"recordsMatched" type:"double"`

	// The total number of log events scanned during the query.
	RecordsScanned *float64 `locationName:"recordsScanned" type:"double"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s QueryStatistics) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s QueryStatistics) GoString() string {
	return s.String()
}

// SetBytesScanned sets the BytesScanned field's value.
func (s *QueryStatistics) SetBytesScanned(v float64) *QueryStatistics {
	s.BytesScanned = &v
	return s
}

// SetEstimatedBytesSkipped sets the EstimatedBytesSkipped field's value.
func (s *QueryStatistics) SetEstimatedBytesSkipped(v float64) *QueryStatistics {
	s.EstimatedBytesSkipped = &v
	return s
}

// SetEstimatedRecordsSkipped sets the EstimatedRecordsSkipped field's value.
func (s *QueryStatistics) SetEstimatedRecordsSkipped(v float64) *QueryStatistics {
	s.EstimatedRecordsSkipped = &v
	return s
}

// SetLogGroupsScanned sets the LogGroupsScanned field's value.
func (s *QueryStatistics) SetLogGroupsScanned(v float64) *QueryStatistics {
	s.LogGroupsScanned = &v
	return s
}

// SetRecordsMatched sets the RecordsMatched field's value.
func (s *QueryStatistics) SetRecordsMatched(v float64) *QueryStatistics {
	s.RecordsMatched = &v
	return s
}

// SetRecordsScanned sets the RecordsScanned field's value.
func (s *QueryStatistics) SetRecordsScanned(v float64) *QueryStatistics {
	s.RecordsScanned = &v
	return s
}

// A structure that represents a valid record field header and whether it is
// mandatory.
type RecordField struct {
	_ struct{} `type:"structure"`

	// If this is true, the record field must be present in the recordFields parameter
	// provided to a CreateDelivery (https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_CreateDelivery.html)
	// or UpdateDeliveryConfiguration (https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_UpdateDeliveryConfiguration.html)
	// operation.
	Mandatory *bool `locationName:"mandatory" type:"boolean"`

	// The name to use when specifying this record field in a CreateDelivery (https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_CreateDelivery.html)
	// or UpdateDeliveryConfiguration (https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_UpdateDeliveryConfiguration.html)
	// operation.
	Name *string `locationName:"name" min:"1" type:"string"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s RecordField) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s RecordField) GoString() string {
	return s.String()
}

// SetMandatory sets the Mandatory field's value.
func (s *RecordField) SetMandatory(v bool) *RecordField {
	s.Mandatory = &v
	return s
}

// SetName sets the Name field's value.
func (s *RecordField) SetName(v string) *RecordField {
	s.Name = &v
	return s
}

// If an entity is rejected when a PutLogEvents request was made, this includes
// details about the reason for the rejection.
type RejectedEntityInfo struct {
	_ struct{} `type:"structure"`

	// The type of error that caused the rejection of the entity when calling PutLogEvents.
	//
	// ErrorType is a required field
	ErrorType *string `locationName:"errorType" type:"string" required:"true" enum:"EntityRejectionErrorType"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s RejectedEntityInfo) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s RejectedEntityInfo) GoString() string {
	return s.String()
}

// SetErrorType sets the ErrorType field's value.
func (s *RejectedEntityInfo) SetErrorType(v string) *RejectedEntityInfo {
	s.ErrorType = &v
	return s
}

// Represents the rejected events.
type RejectedLogEventsInfo struct {
	_ struct{} `type:"structure"`

	// The expired log events.
	ExpiredLogEventEndIndex *int64 `locationName:"expiredLogEventEndIndex" type:"integer"`

	// The index of the first log event that is too new. This field is inclusive.
	TooNewLogEventStartIndex *int64 `locationName:"tooNewLogEventStartIndex" type:"integer"`

	// The index of the last log event that is too old. This field is exclusive.
	TooOldLogEventEndIndex *int64 `locationName:"tooOldLogEventEndIndex" type:"integer"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s RejectedLogEventsInfo) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s RejectedLogEventsInfo) GoString() string {
	return s.String()
}

// SetExpiredLogEventEndIndex sets the ExpiredLogEventEndIndex field's value.
func (s *RejectedLogEventsInfo) SetExpiredLogEventEndIndex(v int64) *RejectedLogEventsInfo {
	s.ExpiredLogEventEndIndex = &v
	return s
}

// SetTooNewLogEventStartIndex sets the TooNewLogEventStartIndex field's value.
func (s *RejectedLogEventsInfo) SetTooNewLogEventStartIndex(v int64) *RejectedLogEventsInfo {
	s.TooNewLogEventStartIndex = &v
	return s
}

// SetTooOldLogEventEndIndex sets the TooOldLogEventEndIndex field's value.
func (s *RejectedLogEventsInfo) SetTooOldLogEventEndIndex(v int64) *RejectedLogEventsInfo {
	s.TooOldLogEventEndIndex = &v
	return s
}

// This object defines one key that will be renamed with the renameKey (https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/CloudWatch-Logs-Transformation.html#CloudWatch-Logs-Transformation-renameKey)
// processor.
type RenameKeyEntry struct {
	_ struct{} `type:"structure"`

	// The key to rename
	//
	// Key is a required field
	Key *string `locationName:"key" min:"1" type:"string" required:"true"`

	// Specifies whether to overwrite the existing value if the destination key
	// already exists. The default is false
	OverwriteIfExists *bool `locationName:"overwriteIfExists" type:"boolean"`

	// The string to use for the new key name
	//
	// RenameTo is a required field
	RenameTo *string `locationName:"renameTo" min:"1" type:"string" required:"true"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s RenameKeyEntry) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s RenameKeyEntry) GoString() string {
	return s.String()
}

// Validate inspects the fields of the type to determine if they are valid.
func (s *RenameKeyEntry) Validate() error {
	invalidParams := request.ErrInvalidParams{Context: "RenameKeyEntry"}
	if s.Key == nil {
		invalidParams.Add(request.NewErrParamRequired("Key"))
	}
	if s.Key != nil && len(*s.Key) < 1 {
		invalidParams.Add(request.NewErrParamMinLen("Key", 1))
	}
	if s.RenameTo == nil {
		invalidParams.Add(request.NewErrParamRequired("RenameTo"))
	}
	if s.RenameTo != nil && len(*s.RenameTo) < 1 {
		invalidParams.Add(request.NewErrParamMinLen("RenameTo", 1))
	}

	if invalidParams.Len() > 0 {
		return invalidParams
	}
	return nil
}

// SetKey sets the Key field's value.
func (s *RenameKeyEntry) SetKey(v string) *RenameKeyEntry {
	s.Key = &v
	return s
}

// SetOverwriteIfExists sets the OverwriteIfExists field's value.
func (s *RenameKeyEntry) SetOverwriteIfExists(v bool) *RenameKeyEntry {
	s.OverwriteIfExists = &v
	return s
}

// SetRenameTo sets the RenameTo field's value.
func (s *RenameKeyEntry) SetRenameTo(v string) *RenameKeyEntry {
	s.RenameTo = &v
	return s
}

// Use this processor to rename keys in a log event.
//
// For more information about this processor including examples, see renameKeys
// (https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/CloudWatch-Logs-Transformation.html#CloudWatch-Logs-Transformation-renameKeys)
// in the CloudWatch Logs User Guide.
type RenameKeys struct {
	_ struct{} `type:"structure"`

	// An array of RenameKeyEntry objects, where each object contains the information
	// about a single key to rename.
	//
	// Entries is a required field
	Entries []*RenameKeyEntry `locationName:"entries" min:"1" type:"list" required:"true"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s RenameKeys) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s RenameKeys) GoString() string {
	return s.String()
}

// Validate inspects the fields of the type to determine if they are valid.
func (s *RenameKeys) Validate() error {
	invalidParams := request.ErrInvalidParams{Context: "RenameKeys"}
	if s.Entries == nil {
		invalidParams.Add(request.NewErrParamRequired("Entries"))
	}
	if s.Entries != nil && len(s.Entries) < 1 {
		invalidParams.Add(request.NewErrParamMinLen("Entries", 1))
	}
	if s.Entries != nil {
		for i, v := range s.Entries {
			if v == nil {
				continue
			}
			if err := v.Validate(); err != nil {
				invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Entries", i), err.(request.ErrInvalidParams))
			}
		}
	}

	if invalidParams.Len() > 0 {
		return invalidParams
	}
	return nil
}

// SetEntries sets the Entries field's value.
func (s *RenameKeys) SetEntries(v []*RenameKeyEntry) *RenameKeys {
	s.Entries = v
	return s
}

// The specified resource already exists.
type ResourceAlreadyExistsException struct {
	_            struct{}                  `type:"structure"`
	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`

	Message_ *string `locationName:"message" type:"string"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s ResourceAlreadyExistsException) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s ResourceAlreadyExistsException) GoString() string {
	return s.String()
}

func newErrorResourceAlreadyExistsException(v protocol.ResponseMetadata) error {
	return &ResourceAlreadyExistsException{
		RespMetadata: v,
	}
}

// Code returns the exception type name.
func (s *ResourceAlreadyExistsException) Code() string {
	return "ResourceAlreadyExistsException"
}

// Message returns the exception's message.
func (s *ResourceAlreadyExistsException) Message() string {
	if s.Message_ != nil {
		return *s.Message_
	}
	return ""
}

// OrigErr always returns nil, satisfies awserr.Error interface.
func (s *ResourceAlreadyExistsException) OrigErr() error {
	return nil
}

func (s *ResourceAlreadyExistsException) Error() string {
	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}

// Status code returns the HTTP status code for the request's response error.
func (s *ResourceAlreadyExistsException) StatusCode() int {
	return s.RespMetadata.StatusCode
}

// RequestID returns the service's response RequestID for request.
func (s *ResourceAlreadyExistsException) RequestID() string {
	return s.RespMetadata.RequestID
}

// This structure contains configuration details about an integration between
// CloudWatch Logs and another entity.
type ResourceConfig struct {
	_ struct{} `type:"structure"`

	// This structure contains configuration details about an integration between
	// CloudWatch Logs and OpenSearch Service.
	OpenSearchResourceConfig *OpenSearchResourceConfig `locationName:"openSearchResourceConfig" type:"structure"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s ResourceConfig) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s ResourceConfig) GoString() string {
	return s.String()
}

// Validate inspects the fields of the type to determine if they are valid.
func (s *ResourceConfig) Validate() error {
	invalidParams := request.ErrInvalidParams{Context: "ResourceConfig"}
	if s.OpenSearchResourceConfig != nil {
		if err := s.OpenSearchResourceConfig.Validate(); err != nil {
			invalidParams.AddNested("OpenSearchResourceConfig", err.(request.ErrInvalidParams))
		}
	}

	if invalidParams.Len() > 0 {
		return invalidParams
	}
	return nil
}

// SetOpenSearchResourceConfig sets the OpenSearchResourceConfig field's value.
func (s *ResourceConfig) SetOpenSearchResourceConfig(v *OpenSearchResourceConfig) *ResourceConfig {
	s.OpenSearchResourceConfig = v
	return s
}

// The specified resource does not exist.
type ResourceNotFoundException struct {
	_            struct{}                  `type:"structure"`
	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`

	Message_ *string `locationName:"message" type:"string"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s ResourceNotFoundException) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s ResourceNotFoundException) GoString() string {
	return s.String()
}

func newErrorResourceNotFoundException(v protocol.ResponseMetadata) error {
	return &ResourceNotFoundException{
		RespMetadata: v,
	}
}

// Code returns the exception type name.
func (s *ResourceNotFoundException) Code() string {
	return "ResourceNotFoundException"
}

// Message returns the exception's message.
func (s *ResourceNotFoundException) Message() string {
	if s.Message_ != nil {
		return *s.Message_
	}
	return ""
}

// OrigErr always returns nil, satisfies awserr.Error interface.
func (s *ResourceNotFoundException) OrigErr() error {
	return nil
}

func (s *ResourceNotFoundException) Error() string {
	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}

// Status code returns the HTTP status code for the request's response error.
func (s *ResourceNotFoundException) StatusCode() int {
	return s.RespMetadata.StatusCode
}

// RequestID returns the service's response RequestID for request.
func (s *ResourceNotFoundException) RequestID() string {
	return s.RespMetadata.RequestID
}

// A policy enabling one or more entities to put logs to a log group in this
// account.
type ResourcePolicy struct {
	_ struct{} `type:"structure"`

	// Timestamp showing when this policy was last updated, expressed as the number
	// of milliseconds after Jan 1, 1970 00:00:00 UTC.
	LastUpdatedTime *int64 `locationName:"lastUpdatedTime" type:"long"`

	// The details of the policy.
	PolicyDocument *string `locationName:"policyDocument" min:"1" type:"string"`

	// The name of the resource policy.
	PolicyName *string `locationName:"policyName" type:"string"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s ResourcePolicy) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s ResourcePolicy) GoString() string {
	return s.String()
}

// SetLastUpdatedTime sets the LastUpdatedTime field's value.
func (s *ResourcePolicy) SetLastUpdatedTime(v int64) *ResourcePolicy {
	s.LastUpdatedTime = &v
	return s
}

// SetPolicyDocument sets the PolicyDocument field's value.
func (s *ResourcePolicy) SetPolicyDocument(v string) *ResourcePolicy {
	s.PolicyDocument = &v
	return s
}

// SetPolicyName sets the PolicyName field's value.
func (s *ResourcePolicy) SetPolicyName(v string) *ResourcePolicy {
	s.PolicyName = &v
	return s
}

// Contains one field from one log event returned by a CloudWatch Logs Insights
// query, along with the value of that field.
//
// For more information about the fields that are generated by CloudWatch logs,
// see Supported Logs and Discovered Fields (https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/CWL_AnalyzeLogData-discoverable-fields.html).
type ResultField struct {
	_ struct{} `type:"structure"`

	// The log event field.
	Field *string `locationName:"field" type:"string"`

	// The value of this field.
	Value *string `locationName:"value" type:"string"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s ResultField) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s ResultField) GoString() string {
	return s.String()
}

// SetField sets the Field field's value.
func (s *ResultField) SetField(v string) *ResultField {
	s.Field = &v
	return s
}

// SetValue sets the Value field's value.
func (s *ResultField) SetValue(v string) *ResultField {
	s.Value = &v
	return s
}

// This structure contains delivery configurations that apply only when the
// delivery destination resource is an S3 bucket.
type S3DeliveryConfiguration struct {
	_ struct{} `type:"structure"`

	// This parameter causes the S3 objects that contain delivered logs to use a
	// prefix structure that allows for integration with Apache Hive.
	EnableHiveCompatiblePath *bool `locationName:"enableHiveCompatiblePath" type:"boolean"`

	// This string allows re-configuring the S3 object prefix to contain either
	// static or variable sections. The valid variables to use in the suffix path
	// will vary by each log source. To find the values supported for the suffix
	// path for each log source, use the DescribeConfigurationTemplates (https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_DescribeConfigurationTemplates.html)
	// operation and check the allowedSuffixPathFields field in the response.
	SuffixPath *string `locationName:"suffixPath" min:"1" type:"string"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s S3DeliveryConfiguration) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s S3DeliveryConfiguration) GoString() string {
	return s.String()
}

// Validate inspects the fields of the type to determine if they are valid.
func (s *S3DeliveryConfiguration) Validate() error {
	invalidParams := request.ErrInvalidParams{Context: "S3DeliveryConfiguration"}
	if s.SuffixPath != nil && len(*s.SuffixPath) < 1 {
		invalidParams.Add(request.NewErrParamMinLen("SuffixPath", 1))
	}

	if invalidParams.Len() > 0 {
		return invalidParams
	}
	return nil
}

// SetEnableHiveCompatiblePath sets the EnableHiveCompatiblePath field's value.
func (s *S3DeliveryConfiguration) SetEnableHiveCompatiblePath(v bool) *S3DeliveryConfiguration {
	s.EnableHiveCompatiblePath = &v
	return s
}

// SetSuffixPath sets the SuffixPath field's value.
func (s *S3DeliveryConfiguration) SetSuffixPath(v string) *S3DeliveryConfiguration {
	s.SuffixPath = &v
	return s
}

// Represents the search status of a log stream.
type SearchedLogStream struct {
	_ struct{} `type:"structure"`

	// The name of the log stream.
	LogStreamName *string `locationName:"logStreamName" min:"1" type:"string"`

	// Indicates whether all the events in this log stream were searched.
	SearchedCompletely *bool `locationName:"searchedCompletely" type:"boolean"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s SearchedLogStream) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s SearchedLogStream) GoString() string {
	return s.String()
}

// SetLogStreamName sets the LogStreamName field's value.
func (s *SearchedLogStream) SetLogStreamName(v string) *SearchedLogStream {
	s.LogStreamName = &v
	return s
}

// SetSearchedCompletely sets the SearchedCompletely field's value.
func (s *SearchedLogStream) SetSearchedCompletely(v bool) *SearchedLogStream {
	s.SearchedCompletely = &v
	return s
}

// This request exceeds a service quota.
type ServiceQuotaExceededException struct {
	_            struct{}                  `type:"structure"`
	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`

	Message_ *string `locationName:"message" type:"string"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s ServiceQuotaExceededException) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s ServiceQuotaExceededException) GoString() string {
	return s.String()
}

func newErrorServiceQuotaExceededException(v protocol.ResponseMetadata) error {
	return &ServiceQuotaExceededException{
		RespMetadata: v,
	}
}

// Code returns the exception type name.
func (s *ServiceQuotaExceededException) Code() string {
	return "ServiceQuotaExceededException"
}

// Message returns the exception's message.
func (s *ServiceQuotaExceededException) Message() string {
	if s.Message_ != nil {
		return *s.Message_
	}
	return ""
}

// OrigErr always returns nil, satisfies awserr.Error interface.
func (s *ServiceQuotaExceededException) OrigErr() error {
	return nil
}

func (s *ServiceQuotaExceededException) Error() string {
	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}

// Status code returns the HTTP status code for the request's response error.
func (s *ServiceQuotaExceededException) StatusCode() int {
	return s.RespMetadata.StatusCode
}

// RequestID returns the service's response RequestID for request.
func (s *ServiceQuotaExceededException) RequestID() string {
	return s.RespMetadata.RequestID
}

// The service cannot complete the request.
type ServiceUnavailableException struct {
	_            struct{}                  `type:"structure"`
	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`

	Message_ *string `locationName:"message" type:"string"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s ServiceUnavailableException) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s ServiceUnavailableException) GoString() string {
	return s.String()
}

func newErrorServiceUnavailableException(v protocol.ResponseMetadata) error {
	return &ServiceUnavailableException{
		RespMetadata: v,
	}
}

// Code returns the exception type name.
func (s *ServiceUnavailableException) Code() string {
	return "ServiceUnavailableException"
}

// Message returns the exception's message.
func (s *ServiceUnavailableException) Message() string {
	if s.Message_ != nil {
		return *s.Message_
	}
	return ""
}

// OrigErr always returns nil, satisfies awserr.Error interface.
func (s *ServiceUnavailableException) OrigErr() error {
	return nil
}

func (s *ServiceUnavailableException) Error() string {
	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}

// Status code returns the HTTP status code for the request's response error.
func (s *ServiceUnavailableException) StatusCode() int {
	return s.RespMetadata.StatusCode
}

// RequestID returns the service's response RequestID for request.
func (s *ServiceUnavailableException) RequestID() string {
	return s.RespMetadata.RequestID
}

// This exception is returned if an unknown error occurs during a Live Tail
// session.
type SessionStreamingException struct {
	_            struct{}                  `type:"structure"`
	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`

	Message_ *string `locationName:"message" type:"string"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s SessionStreamingException) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s SessionStreamingException) GoString() string {
	return s.String()
}

// The SessionStreamingException is and event in the StartLiveTailResponseStream group of events.
func (s *SessionStreamingException) eventStartLiveTailResponseStream() {}

// UnmarshalEvent unmarshals the EventStream Message into the SessionStreamingException value.
// This method is only used internally within the SDK's EventStream handling.
func (s *SessionStreamingException) UnmarshalEvent(
	payloadUnmarshaler protocol.PayloadUnmarshaler,
	msg eventstream.Message,
) error {
	if err := payloadUnmarshaler.UnmarshalPayload(
		bytes.NewReader(msg.Payload), s,
	); err != nil {
		return err
	}
	return nil
}

// MarshalEvent marshals the type into an stream event value. This method
// should only used internally within the SDK's EventStream handling.
func (s *SessionStreamingException) MarshalEvent(pm protocol.PayloadMarshaler) (msg eventstream.Message, err error) {
	msg.Headers.Set(eventstreamapi.MessageTypeHeader, eventstream.StringValue(eventstreamapi.ExceptionMessageType))
	var buf bytes.Buffer
	if err = pm.MarshalPayload(&buf, s); err != nil {
		return eventstream.Message{}, err
	}
	msg.Payload = buf.Bytes()
	return msg, err
}

func newErrorSessionStreamingException(v protocol.ResponseMetadata) error {
	return &SessionStreamingException{
		RespMetadata: v,
	}
}

// Code returns the exception type name.
func (s *SessionStreamingException) Code() string {
	return "SessionStreamingException"
}

// Message returns the exception's message.
func (s *SessionStreamingException) Message() string {
	if s.Message_ != nil {
		return *s.Message_
	}
	return ""
}

// OrigErr always returns nil, satisfies awserr.Error interface.
func (s *SessionStreamingException) OrigErr() error {
	return nil
}

func (s *SessionStreamingException) Error() string {
	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}

// Status code returns the HTTP status code for the request's response error.
func (s *SessionStreamingException) StatusCode() int {
	return s.RespMetadata.StatusCode
}

// RequestID returns the service's response RequestID for request.
func (s *SessionStreamingException) RequestID() string {
	return s.RespMetadata.RequestID
}

// This exception is returned in a Live Tail stream when the Live Tail session
// times out. Live Tail sessions time out after three hours.
type SessionTimeoutException struct {
	_            struct{}                  `type:"structure"`
	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`

	Message_ *string `locationName:"message" type:"string"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s SessionTimeoutException) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s SessionTimeoutException) GoString() string {
	return s.String()
}

// The SessionTimeoutException is and event in the StartLiveTailResponseStream group of events.
func (s *SessionTimeoutException) eventStartLiveTailResponseStream() {}

// UnmarshalEvent unmarshals the EventStream Message into the SessionTimeoutException value.
// This method is only used internally within the SDK's EventStream handling.
func (s *SessionTimeoutException) UnmarshalEvent(
	payloadUnmarshaler protocol.PayloadUnmarshaler,
	msg eventstream.Message,
) error {
	if err := payloadUnmarshaler.UnmarshalPayload(
		bytes.NewReader(msg.Payload), s,
	); err != nil {
		return err
	}
	return nil
}

// MarshalEvent marshals the type into an stream event value. This method
// should only used internally within the SDK's EventStream handling.
func (s *SessionTimeoutException) MarshalEvent(pm protocol.PayloadMarshaler) (msg eventstream.Message, err error) {
	msg.Headers.Set(eventstreamapi.MessageTypeHeader, eventstream.StringValue(eventstreamapi.ExceptionMessageType))
	var buf bytes.Buffer
	if err = pm.MarshalPayload(&buf, s); err != nil {
		return eventstream.Message{}, err
	}
	msg.Payload = buf.Bytes()
	return msg, err
}

func newErrorSessionTimeoutException(v protocol.ResponseMetadata) error {
	return &SessionTimeoutException{
		RespMetadata: v,
	}
}

// Code returns the exception type name.
func (s *SessionTimeoutException) Code() string {
	return "SessionTimeoutException"
}

// Message returns the exception's message.
func (s *SessionTimeoutException) Message() string {
	if s.Message_ != nil {
		return *s.Message_
	}
	return ""
}

// OrigErr always returns nil, satisfies awserr.Error interface.
func (s *SessionTimeoutException) OrigErr() error {
	return nil
}

func (s *SessionTimeoutException) Error() string {
	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}

// Status code returns the HTTP status code for the request's response error.
func (s *SessionTimeoutException) StatusCode() int {
	return s.RespMetadata.StatusCode
}

// RequestID returns the service's response RequestID for request.
func (s *SessionTimeoutException) RequestID() string {
	return s.RespMetadata.RequestID
}

// Use this processor to split a field into an array of strings using a delimiting
// character.
//
// For more information about this processor including examples, see splitString
// (https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/CloudWatch-Logs-Transformation.html#CloudWatch-Logs-Transformation-splitString)
// in the CloudWatch Logs User Guide.
type SplitString struct {
	_ struct{} `type:"structure"`

	// An array of SplitStringEntry objects, where each object contains the information
	// about one field to split.
	//
	// Entries is a required field
	Entries []*SplitStringEntry `locationName:"entries" min:"1" type:"list" required:"true"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s SplitString) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s SplitString) GoString() string {
	return s.String()
}

// Validate inspects the fields of the type to determine if they are valid.
func (s *SplitString) Validate() error {
	invalidParams := request.ErrInvalidParams{Context: "SplitString"}
	if s.Entries == nil {
		invalidParams.Add(request.NewErrParamRequired("Entries"))
	}
	if s.Entries != nil && len(s.Entries) < 1 {
		invalidParams.Add(request.NewErrParamMinLen("Entries", 1))
	}
	if s.Entries != nil {
		for i, v := range s.Entries {
			if v == nil {
				continue
			}
			if err := v.Validate(); err != nil {
				invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Entries", i), err.(request.ErrInvalidParams))
			}
		}
	}

	if invalidParams.Len() > 0 {
		return invalidParams
	}
	return nil
}

// SetEntries sets the Entries field's value.
func (s *SplitString) SetEntries(v []*SplitStringEntry) *SplitString {
	s.Entries = v
	return s
}

// This object defines one log field that will be split with the splitString
// (https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/CloudWatch-Logs-Transformation.html#CloudWatch-Logs-Transformation-splitString)
// processor.
type SplitStringEntry struct {
	_ struct{} `type:"structure"`

	// The separator characters to split the string entry on.
	//
	// Delimiter is a required field
	Delimiter *string `locationName:"delimiter" min:"1" type:"string" required:"true"`

	// The key of the field to split.
	//
	// Source is a required field
	Source *string `locationName:"source" min:"1" type:"string" required:"true"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s SplitStringEntry) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s SplitStringEntry) GoString() string {
	return s.String()
}

// Validate inspects the fields of the type to determine if they are valid.
func (s *SplitStringEntry) Validate() error {
	invalidParams := request.ErrInvalidParams{Context: "SplitStringEntry"}
	if s.Delimiter == nil {
		invalidParams.Add(request.NewErrParamRequired("Delimiter"))
	}
	if s.Delimiter != nil && len(*s.Delimiter) < 1 {
		invalidParams.Add(request.NewErrParamMinLen("Delimiter", 1))
	}
	if s.Source == nil {
		invalidParams.Add(request.NewErrParamRequired("Source"))
	}
	if s.Source != nil && len(*s.Source) < 1 {
		invalidParams.Add(request.NewErrParamMinLen("Source", 1))
	}

	if invalidParams.Len() > 0 {
		return invalidParams
	}
	return nil
}

// SetDelimiter sets the Delimiter field's value.
func (s *SplitStringEntry) SetDelimiter(v string) *SplitStringEntry {
	s.Delimiter = &v
	return s
}

// SetSource sets the Source field's value.
func (s *SplitStringEntry) SetSource(v string) *SplitStringEntry {
	s.Source = &v
	return s
}

type StartLiveTailInput struct {
	_ struct{} `type:"structure"`

	// An optional pattern to use to filter the results to include only log events
	// that match the pattern. For example, a filter pattern of error 404 causes
	// only log events that include both error and 404 to be included in the Live
	// Tail stream.
	//
	// Regular expression filter patterns are supported.
	//
	// For more information about filter pattern syntax, see Filter and Pattern
	// Syntax (https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/FilterAndPatternSyntax.html).
	LogEventFilterPattern *string `locationName:"logEventFilterPattern" type:"string"`

	// An array where each item in the array is a log group to include in the Live
	// Tail session.
	//
	// Specify each log group by its ARN.
	//
	// If you specify an ARN, the ARN can't end with an asterisk (*).
	//
	// You can include up to 10 log groups.
	//
	// LogGroupIdentifiers is a required field
	LogGroupIdentifiers []*string `locationName:"logGroupIdentifiers" min:"1" type:"list" required:"true"`

	// If you specify this parameter, then only log events in the log streams that
	// have names that start with the prefixes that you specify here are included
	// in the Live Tail session.
	//
	// If you specify this field, you can't also specify the logStreamNames field.
	//
	// You can specify this parameter only if you specify only one log group in
	// logGroupIdentifiers.
	LogStreamNamePrefixes []*string `locationName:"logStreamNamePrefixes" min:"1" type:"list"`

	// If you specify this parameter, then only log events in the log streams that
	// you specify here are included in the Live Tail session.
	//
	// If you specify this field, you can't also specify the logStreamNamePrefixes
	// field.
	//
	// You can specify this parameter only if you specify only one log group in
	// logGroupIdentifiers.
	LogStreamNames []*string `locationName:"logStreamNames" min:"1" type:"list"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s StartLiveTailInput) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s StartLiveTailInput) GoString() string {
	return s.String()
}

// Validate inspects the fields of the type to determine if they are valid.
func (s *StartLiveTailInput) Validate() error {
	invalidParams := request.ErrInvalidParams{Context: "StartLiveTailInput"}
	if s.LogGroupIdentifiers == nil {
		invalidParams.Add(request.NewErrParamRequired("LogGroupIdentifiers"))
	}
	if s.LogGroupIdentifiers != nil && len(s.LogGroupIdentifiers) < 1 {
		invalidParams.Add(request.NewErrParamMinLen("LogGroupIdentifiers", 1))
	}
	if s.LogStreamNamePrefixes != nil && len(s.LogStreamNamePrefixes) < 1 {
		invalidParams.Add(request.NewErrParamMinLen("LogStreamNamePrefixes", 1))
	}
	if s.LogStreamNames != nil && len(s.LogStreamNames) < 1 {
		invalidParams.Add(request.NewErrParamMinLen("LogStreamNames", 1))
	}

	if invalidParams.Len() > 0 {
		return invalidParams
	}
	return nil
}

// SetLogEventFilterPattern sets the LogEventFilterPattern field's value.
func (s *StartLiveTailInput) SetLogEventFilterPattern(v string) *StartLiveTailInput {
	s.LogEventFilterPattern = &v
	return s
}

// SetLogGroupIdentifiers sets the LogGroupIdentifiers field's value.
func (s *StartLiveTailInput) SetLogGroupIdentifiers(v []*string) *StartLiveTailInput {
	s.LogGroupIdentifiers = v
	return s
}

// SetLogStreamNamePrefixes sets the LogStreamNamePrefixes field's value.
func (s *StartLiveTailInput) SetLogStreamNamePrefixes(v []*string) *StartLiveTailInput {
	s.LogStreamNamePrefixes = v
	return s
}

// SetLogStreamNames sets the LogStreamNames field's value.
func (s *StartLiveTailInput) SetLogStreamNames(v []*string) *StartLiveTailInput {
	s.LogStreamNames = v
	return s
}

type StartLiveTailOutput struct {
	_ struct{} `type:"structure"`

	eventStream *StartLiveTailEventStream
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s StartLiveTailOutput) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s StartLiveTailOutput) GoString() string {
	return s.String()
}

// GetStream returns the type to interact with the event stream.
func (s *StartLiveTailOutput) GetStream() *StartLiveTailEventStream {
	return s.eventStream
}

// The StartLiveTailOutput is and event in the StartLiveTailResponseStream group of events.
func (s *StartLiveTailOutput) eventStartLiveTailResponseStream() {}

// UnmarshalEvent unmarshals the EventStream Message into the StartLiveTailOutput value.
// This method is only used internally within the SDK's EventStream handling.
func (s *StartLiveTailOutput) UnmarshalEvent(
	payloadUnmarshaler protocol.PayloadUnmarshaler,
	msg eventstream.Message,
) error {
	if err := payloadUnmarshaler.UnmarshalPayload(
		bytes.NewReader(msg.Payload), s,
	); err != nil {
		return err
	}
	return nil
}

// MarshalEvent marshals the type into an stream event value. This method
// should only used internally within the SDK's EventStream handling.
func (s *StartLiveTailOutput) MarshalEvent(pm protocol.PayloadMarshaler) (msg eventstream.Message, err error) {
	msg.Headers.Set(eventstreamapi.MessageTypeHeader, eventstream.StringValue(eventstreamapi.EventMessageType))
	var buf bytes.Buffer
	if err = pm.MarshalPayload(&buf, s); err != nil {
		return eventstream.Message{}, err
	}
	msg.Payload = buf.Bytes()
	return msg, err
}

// StartLiveTailResponseStreamEvent groups together all EventStream
// events writes for StartLiveTailResponseStream.
//
// These events are:
//
//   - LiveTailSessionStart
//   - LiveTailSessionUpdate
type StartLiveTailResponseStreamEvent interface {
	eventStartLiveTailResponseStream()
	eventstreamapi.Marshaler
	eventstreamapi.Unmarshaler
}

// StartLiveTailResponseStreamReader provides the interface for reading to the stream. The
// default implementation for this interface will be StartLiveTailResponseStream.
//
// The reader's Close method must allow multiple concurrent calls.
//
// These events are:
//
//   - LiveTailSessionStart
//   - LiveTailSessionUpdate
//   - StartLiveTailResponseStreamUnknownEvent
type StartLiveTailResponseStreamReader interface {
	// Returns a channel of events as they are read from the event stream.
	Events() <-chan StartLiveTailResponseStreamEvent

	// Close will stop the reader reading events from the stream.
	Close() error

	// Returns any error that has occurred while reading from the event stream.
	Err() error
}

type readStartLiveTailResponseStream struct {
	eventReader *eventstreamapi.EventReader
	stream      chan StartLiveTailResponseStreamEvent
	err         *eventstreamapi.OnceError

	done      chan struct{}
	closeOnce sync.Once
}

func newReadStartLiveTailResponseStream(eventReader *eventstreamapi.EventReader) *readStartLiveTailResponseStream {
	r := &readStartLiveTailResponseStream{
		eventReader: eventReader,
		stream:      make(chan StartLiveTailResponseStreamEvent),
		done:        make(chan struct{}),
		err:         eventstreamapi.NewOnceError(),
	}
	go r.readEventStream()

	return r
}

// Close will close the underlying event stream reader.
func (r *readStartLiveTailResponseStream) Close() error {
	r.closeOnce.Do(r.safeClose)
	return r.Err()
}

func (r *readStartLiveTailResponseStream) ErrorSet() <-chan struct{} {
	return r.err.ErrorSet()
}

func (r *readStartLiveTailResponseStream) Closed() <-chan struct{} {
	return r.done
}

func (r *readStartLiveTailResponseStream) safeClose() {
	close(r.done)
}

func (r *readStartLiveTailResponseStream) Err() error {
	return r.err.Err()
}

func (r *readStartLiveTailResponseStream) Events() <-chan StartLiveTailResponseStreamEvent {
	return r.stream
}

func (r *readStartLiveTailResponseStream) readEventStream() {
	defer r.Close()
	defer close(r.stream)

	for {
		event, err := r.eventReader.ReadEvent()
		if err != nil {
			if err == io.EOF {
				return
			}
			select {
			case <-r.done:
				// If closed already ignore the error
				return
			default:
			}
			if _, ok := err.(*eventstreamapi.UnknownMessageTypeError); ok {
				continue
			}
			r.err.SetError(err)
			return
		}

		select {
		case r.stream <- event.(StartLiveTailResponseStreamEvent):
		case <-r.done:
			return
		}
	}
}

type unmarshalerForStartLiveTailResponseStreamEvent struct {
	metadata protocol.ResponseMetadata
}

func (u unmarshalerForStartLiveTailResponseStreamEvent) UnmarshalerForEventName(eventType string) (eventstreamapi.Unmarshaler, error) {
	switch eventType {
	case "sessionStart":
		return &LiveTailSessionStart{}, nil
	case "sessionUpdate":
		return &LiveTailSessionUpdate{}, nil
	case "SessionStreamingException":
		return newErrorSessionStreamingException(u.metadata).(eventstreamapi.Unmarshaler), nil
	case "SessionTimeoutException":
		return newErrorSessionTimeoutException(u.metadata).(eventstreamapi.Unmarshaler), nil
	default:
		return &StartLiveTailResponseStreamUnknownEvent{Type: eventType}, nil
	}
}

// StartLiveTailResponseStreamUnknownEvent provides a failsafe event for the
// StartLiveTailResponseStream group of events when an unknown event is received.
type StartLiveTailResponseStreamUnknownEvent struct {
	Type    string
	Message eventstream.Message
}

// The StartLiveTailResponseStreamUnknownEvent is and event in the StartLiveTailResponseStream
// group of events.
func (s *StartLiveTailResponseStreamUnknownEvent) eventStartLiveTailResponseStream() {}

// MarshalEvent marshals the type into an stream event value. This method
// should only used internally within the SDK's EventStream handling.
func (e *StartLiveTailResponseStreamUnknownEvent) MarshalEvent(pm protocol.PayloadMarshaler) (
	msg eventstream.Message, err error,
) {
	return e.Message.Clone(), nil
}

// UnmarshalEvent unmarshals the EventStream Message into the StartLiveTailResponseStream value.
// This method is only used internally within the SDK's EventStream handling.
func (e *StartLiveTailResponseStreamUnknownEvent) UnmarshalEvent(
	payloadUnmarshaler protocol.PayloadUnmarshaler,
	msg eventstream.Message,
) error {
	e.Message = msg.Clone()
	return nil
}

type StartQueryInput struct {
	_ struct{} `type:"structure"`

	// The end of the time range to query. The range is inclusive, so the specified
	// end time is included in the query. Specified as epoch time, the number of
	// seconds since January 1, 1970, 00:00:00 UTC.
	//
	// EndTime is a required field
	EndTime *int64 `locationName:"endTime" type:"long" required:"true"`

	// The maximum number of log events to return in the query. If the query string
	// uses the fields command, only the specified fields and their values are returned.
	// The default is 10,000.
	Limit *int64 `locationName:"limit" min:"1" type:"integer"`

	// The list of log groups to query. You can include up to 50 log groups.
	//
	// You can specify them by the log group name or ARN. If a log group that you're
	// querying is in a source account and you're using a monitoring account, you
	// must specify the ARN of the log group here. The query definition must also
	// be defined in the monitoring account.
	//
	// If you specify an ARN, use the format arn:aws:logs:region:account-id:log-group:log_group_name
	// Don't include an * at the end.
	//
	// A StartQuery operation must include exactly one of the following parameters:
	// logGroupName, logGroupNames, or logGroupIdentifiers. The exception is queries
	// using the OpenSearch Service SQL query language, where you specify the log
	// group names inside the querystring instead of here.
	LogGroupIdentifiers []*string `locationName:"logGroupIdentifiers" type:"list"`

	// The log group on which to perform the query.
	//
	// A StartQuery operation must include exactly one of the following parameters:
	// logGroupName, logGroupNames, or logGroupIdentifiers. The exception is queries
	// using the OpenSearch Service SQL query language, where you specify the log
	// group names inside the querystring instead of here.
	LogGroupName *string `locationName:"logGroupName" min:"1" type:"string"`

	// The list of log groups to be queried. You can include up to 50 log groups.
	//
	// A StartQuery operation must include exactly one of the following parameters:
	// logGroupName, logGroupNames, or logGroupIdentifiers. The exception is queries
	// using the OpenSearch Service SQL query language, where you specify the log
	// group names inside the querystring instead of here.
	LogGroupNames []*string `locationName:"logGroupNames" type:"list"`

	// Specify the query language to use for this query. The options are Logs Insights
	// QL, OpenSearch PPL, and OpenSearch SQL. For more information about the query
	// languages that CloudWatch Logs supports, see Supported query languages (https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/CWL_AnalyzeLogData_Languages.html).
	QueryLanguage *string `locationName:"queryLanguage" type:"string" enum:"QueryLanguage"`

	// The query string to use. For more information, see CloudWatch Logs Insights
	// Query Syntax (https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/CWL_QuerySyntax.html).
	//
	// QueryString is a required field
	QueryString *string `locationName:"queryString" type:"string" required:"true"`

	// The beginning of the time range to query. The range is inclusive, so the
	// specified start time is included in the query. Specified as epoch time, the
	// number of seconds since January 1, 1970, 00:00:00 UTC.
	//
	// StartTime is a required field
	StartTime *int64 `locationName:"startTime" type:"long" required:"true"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s StartQueryInput) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s StartQueryInput) GoString() string {
	return s.String()
}

// Validate inspects the fields of the type to determine if they are valid.
func (s *StartQueryInput) Validate() error {
	invalidParams := request.ErrInvalidParams{Context: "StartQueryInput"}
	if s.EndTime == nil {
		invalidParams.Add(request.NewErrParamRequired("EndTime"))
	}
	if s.Limit != nil && *s.Limit < 1 {
		invalidParams.Add(request.NewErrParamMinValue("Limit", 1))
	}
	if s.LogGroupName != nil && len(*s.LogGroupName) < 1 {
		invalidParams.Add(request.NewErrParamMinLen("LogGroupName", 1))
	}
	if s.QueryString == nil {
		invalidParams.Add(request.NewErrParamRequired("QueryString"))
	}
	if s.StartTime == nil {
		invalidParams.Add(request.NewErrParamRequired("StartTime"))
	}

	if invalidParams.Len() > 0 {
		return invalidParams
	}
	return nil
}

// SetEndTime sets the EndTime field's value.
func (s *StartQueryInput) SetEndTime(v int64) *StartQueryInput {
	s.EndTime = &v
	return s
}

// SetLimit sets the Limit field's value.
func (s *StartQueryInput) SetLimit(v int64) *StartQueryInput {
	s.Limit = &v
	return s
}

// SetLogGroupIdentifiers sets the LogGroupIdentifiers field's value.
func (s *StartQueryInput) SetLogGroupIdentifiers(v []*string) *StartQueryInput {
	s.LogGroupIdentifiers = v
	return s
}

// SetLogGroupName sets the LogGroupName field's value.
func (s *StartQueryInput) SetLogGroupName(v string) *StartQueryInput {
	s.LogGroupName = &v
	return s
}

// SetLogGroupNames sets the LogGroupNames field's value.
func (s *StartQueryInput) SetLogGroupNames(v []*string) *StartQueryInput {
	s.LogGroupNames = v
	return s
}

// SetQueryLanguage sets the QueryLanguage field's value.
func (s *StartQueryInput) SetQueryLanguage(v string) *StartQueryInput {
	s.QueryLanguage = &v
	return s
}

// SetQueryString sets the QueryString field's value.
func (s *StartQueryInput) SetQueryString(v string) *StartQueryInput {
	s.QueryString = &v
	return s
}

// SetStartTime sets the StartTime field's value.
func (s *StartQueryInput) SetStartTime(v int64) *StartQueryInput {
	s.StartTime = &v
	return s
}

type StartQueryOutput struct {
	_ struct{} `type:"structure"`

	// The unique ID of the query.
	QueryId *string `locationName:"queryId" type:"string"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s StartQueryOutput) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s StartQueryOutput) GoString() string {
	return s.String()
}

// SetQueryId sets the QueryId field's value.
func (s *StartQueryOutput) SetQueryId(v string) *StartQueryOutput {
	s.QueryId = &v
	return s
}

type StopQueryInput struct {
	_ struct{} `type:"structure"`

	// The ID number of the query to stop. To find this ID number, use DescribeQueries.
	//
	// QueryId is a required field
	QueryId *string `locationName:"queryId" type:"string" required:"true"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s StopQueryInput) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s StopQueryInput) GoString() string {
	return s.String()
}

// Validate inspects the fields of the type to determine if they are valid.
func (s *StopQueryInput) Validate() error {
	invalidParams := request.ErrInvalidParams{Context: "StopQueryInput"}
	if s.QueryId == nil {
		invalidParams.Add(request.NewErrParamRequired("QueryId"))
	}

	if invalidParams.Len() > 0 {
		return invalidParams
	}
	return nil
}

// SetQueryId sets the QueryId field's value.
func (s *StopQueryInput) SetQueryId(v string) *StopQueryInput {
	s.QueryId = &v
	return s
}

type StopQueryOutput struct {
	_ struct{} `type:"structure"`

	// This is true if the query was stopped by the StopQuery operation.
	Success *bool `locationName:"success" type:"boolean"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s StopQueryOutput) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s StopQueryOutput) GoString() string {
	return s.String()
}

// SetSuccess sets the Success field's value.
func (s *StopQueryOutput) SetSuccess(v bool) *StopQueryOutput {
	s.Success = &v
	return s
}

// Represents a subscription filter.
type SubscriptionFilter struct {
	_ struct{} `type:"structure"`

	// This parameter is valid only for log groups that have an active log transformer.
	// For more information about log transformers, see PutTransformer (https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_PutTransformer.html).
	//
	// If this value is true, the subscription filter is applied on the transformed
	// version of the log events instead of the original ingested log events.
	ApplyOnTransformedLogs *bool `locationName:"applyOnTransformedLogs" type:"boolean"`

	// The creation time of the subscription filter, expressed as the number of
	// milliseconds after Jan 1, 1970 00:00:00 UTC.
	CreationTime *int64 `locationName:"creationTime" type:"long"`

	// The Amazon Resource Name (ARN) of the destination.
	DestinationArn *string `locationName:"destinationArn" min:"1" type:"string"`

	// The method used to distribute log data to the destination, which can be either
	// random or grouped by log stream.
	Distribution *string `locationName:"distribution" type:"string" enum:"Distribution"`

	// The name of the subscription filter.
	FilterName *string `locationName:"filterName" min:"1" type:"string"`

	// A symbolic description of how CloudWatch Logs should interpret the data in
	// each log event. For example, a log event can contain timestamps, IP addresses,
	// strings, and so on. You use the filter pattern to specify what to look for
	// in the log event message.
	FilterPattern *string `locationName:"filterPattern" type:"string"`

	// The name of the log group.
	LogGroupName *string `locationName:"logGroupName" min:"1" type:"string"`

	RoleArn *string `locationName:"roleArn" min:"1" type:"string"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s SubscriptionFilter) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s SubscriptionFilter) GoString() string {
	return s.String()
}

// SetApplyOnTransformedLogs sets the ApplyOnTransformedLogs field's value.
func (s *SubscriptionFilter) SetApplyOnTransformedLogs(v bool) *SubscriptionFilter {
	s.ApplyOnTransformedLogs = &v
	return s
}

// SetCreationTime sets the CreationTime field's value.
func (s *SubscriptionFilter) SetCreationTime(v int64) *SubscriptionFilter {
	s.CreationTime = &v
	return s
}

// SetDestinationArn sets the DestinationArn field's value.
func (s *SubscriptionFilter) SetDestinationArn(v string) *SubscriptionFilter {
	s.DestinationArn = &v
	return s
}

// SetDistribution sets the Distribution field's value.
func (s *SubscriptionFilter) SetDistribution(v string) *SubscriptionFilter {
	s.Distribution = &v
	return s
}

// SetFilterName sets the FilterName field's value.
func (s *SubscriptionFilter) SetFilterName(v string) *SubscriptionFilter {
	s.FilterName = &v
	return s
}

// SetFilterPattern sets the FilterPattern field's value.
func (s *SubscriptionFilter) SetFilterPattern(v string) *SubscriptionFilter {
	s.FilterPattern = &v
	return s
}

// SetLogGroupName sets the LogGroupName field's value.
func (s *SubscriptionFilter) SetLogGroupName(v string) *SubscriptionFilter {
	s.LogGroupName = &v
	return s
}

// SetRoleArn sets the RoleArn field's value.
func (s *SubscriptionFilter) SetRoleArn(v string) *SubscriptionFilter {
	s.RoleArn = &v
	return s
}

// This processor matches a key’s value against a regular expression and replaces
// all matches with a replacement string.
//
// For more information about this processor including examples, see substituteString
// (https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/CloudWatch-Logs-Transformation.html#CloudWatch-Logs-Transformation-substituteString)
// in the CloudWatch Logs User Guide.
type SubstituteString struct {
	_ struct{} `type:"structure"`

	// An array of objects, where each object contains the information about one
	// key to match and replace.
	//
	// Entries is a required field
	Entries []*SubstituteStringEntry `locationName:"entries" min:"1" type:"list" required:"true"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s SubstituteString) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s SubstituteString) GoString() string {
	return s.String()
}

// Validate inspects the fields of the type to determine if they are valid.
func (s *SubstituteString) Validate() error {
	invalidParams := request.ErrInvalidParams{Context: "SubstituteString"}
	if s.Entries == nil {
		invalidParams.Add(request.NewErrParamRequired("Entries"))
	}
	if s.Entries != nil && len(s.Entries) < 1 {
		invalidParams.Add(request.NewErrParamMinLen("Entries", 1))
	}
	if s.Entries != nil {
		for i, v := range s.Entries {
			if v == nil {
				continue
			}
			if err := v.Validate(); err != nil {
				invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Entries", i), err.(request.ErrInvalidParams))
			}
		}
	}

	if invalidParams.Len() > 0 {
		return invalidParams
	}
	return nil
}

// SetEntries sets the Entries field's value.
func (s *SubstituteString) SetEntries(v []*SubstituteStringEntry) *SubstituteString {
	s.Entries = v
	return s
}

// This object defines one log field key that will be replaced using the substituteString
// (https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/CloudWatch-Logs-Transformation.html#CloudWatch-Logs-Transformation-substituteString)
// processor.
type SubstituteStringEntry struct {
	_ struct{} `type:"structure"`

	// The regular expression string to be replaced. Special regex characters such
	// as [ and ] must be escaped using \\ when using double quotes and with \ when
	// using single quotes. For more information, see Class Pattern (https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/regex/Pattern.html)
	// on the Oracle web site.
	//
	// From is a required field
	From *string `locationName:"from" min:"1" type:"string" required:"true"`

	// The key to modify
	//
	// Source is a required field
	Source *string `locationName:"source" min:"1" type:"string" required:"true"`

	// The string to be substituted for each match of from
	//
	// To is a required field
	To *string `locationName:"to" min:"1" type:"string" required:"true"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s SubstituteStringEntry) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s SubstituteStringEntry) GoString() string {
	return s.String()
}

// Validate inspects the fields of the type to determine if they are valid.
func (s *SubstituteStringEntry) Validate() error {
	invalidParams := request.ErrInvalidParams{Context: "SubstituteStringEntry"}
	if s.From == nil {
		invalidParams.Add(request.NewErrParamRequired("From"))
	}
	if s.From != nil && len(*s.From) < 1 {
		invalidParams.Add(request.NewErrParamMinLen("From", 1))
	}
	if s.Source == nil {
		invalidParams.Add(request.NewErrParamRequired("Source"))
	}
	if s.Source != nil && len(*s.Source) < 1 {
		invalidParams.Add(request.NewErrParamMinLen("Source", 1))
	}
	if s.To == nil {
		invalidParams.Add(request.NewErrParamRequired("To"))
	}
	if s.To != nil && len(*s.To) < 1 {
		invalidParams.Add(request.NewErrParamMinLen("To", 1))
	}

	if invalidParams.Len() > 0 {
		return invalidParams
	}
	return nil
}

// SetFrom sets the From field's value.
func (s *SubstituteStringEntry) SetFrom(v string) *SubstituteStringEntry {
	s.From = &v
	return s
}

// SetSource sets the Source field's value.
func (s *SubstituteStringEntry) SetSource(v string) *SubstituteStringEntry {
	s.Source = &v
	return s
}

// SetTo sets the To field's value.
func (s *SubstituteStringEntry) SetTo(v string) *SubstituteStringEntry {
	s.To = &v
	return s
}

// If you are suppressing an anomaly temporariliy, this structure defines how
// long the suppression period is to be.
type SuppressionPeriod struct {
	_ struct{} `type:"structure"`

	// Specifies whether the value of value is in seconds, minutes, or hours.
	SuppressionUnit *string `locationName:"suppressionUnit" type:"string" enum:"SuppressionUnit"`

	// Specifies the number of seconds, minutes or hours to suppress this anomaly.
	// There is no maximum.
	Value *int64 `locationName:"value" type:"integer"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s SuppressionPeriod) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s SuppressionPeriod) GoString() string {
	return s.String()
}

// SetSuppressionUnit sets the SuppressionUnit field's value.
func (s *SuppressionPeriod) SetSuppressionUnit(v string) *SuppressionPeriod {
	s.SuppressionUnit = &v
	return s
}

// SetValue sets the Value field's value.
func (s *SuppressionPeriod) SetValue(v int64) *SuppressionPeriod {
	s.Value = &v
	return s
}

// Deprecated: Please use the generic tagging API model TagResourceRequest
type TagLogGroupInput struct {
	_ struct{} `deprecated:"true" type:"structure"`

	// The name of the log group.
	//
	// LogGroupName is a required field
	LogGroupName *string `locationName:"logGroupName" min:"1" type:"string" required:"true"`

	// The key-value pairs to use for the tags.
	//
	// Tags is a required field
	Tags map[string]*string `locationName:"tags" min:"1" type:"map" required:"true"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s TagLogGroupInput) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s TagLogGroupInput) GoString() string {
	return s.String()
}

// Validate inspects the fields of the type to determine if they are valid.
func (s *TagLogGroupInput) Validate() error {
	invalidParams := request.ErrInvalidParams{Context: "TagLogGroupInput"}
	if s.LogGroupName == nil {
		invalidParams.Add(request.NewErrParamRequired("LogGroupName"))
	}
	if s.LogGroupName != nil && len(*s.LogGroupName) < 1 {
		invalidParams.Add(request.NewErrParamMinLen("LogGroupName", 1))
	}
	if s.Tags == nil {
		invalidParams.Add(request.NewErrParamRequired("Tags"))
	}
	if s.Tags != nil && len(s.Tags) < 1 {
		invalidParams.Add(request.NewErrParamMinLen("Tags", 1))
	}

	if invalidParams.Len() > 0 {
		return invalidParams
	}
	return nil
}

// SetLogGroupName sets the LogGroupName field's value.
func (s *TagLogGroupInput) SetLogGroupName(v string) *TagLogGroupInput {
	s.LogGroupName = &v
	return s
}

// SetTags sets the Tags field's value.
func (s *TagLogGroupInput) SetTags(v map[string]*string) *TagLogGroupInput {
	s.Tags = v
	return s
}

type TagLogGroupOutput struct {
	_ struct{} `type:"structure"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s TagLogGroupOutput) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s TagLogGroupOutput) GoString() string {
	return s.String()
}

type TagResourceInput struct {
	_ struct{} `type:"structure"`

	// The ARN of the resource that you're adding tags to.
	//
	// The ARN format of a log group is arn:aws:logs:Region:account-id:log-group:log-group-name
	//
	// The ARN format of a destination is arn:aws:logs:Region:account-id:destination:destination-name
	//
	// For more information about ARN format, see CloudWatch Logs resources and
	// operations (https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/iam-access-control-overview-cwl.html).
	//
	// ResourceArn is a required field
	ResourceArn *string `locationName:"resourceArn" min:"1" type:"string" required:"true"`

	// The list of key-value pairs to associate with the resource.
	//
	// Tags is a required field
	Tags map[string]*string `locationName:"tags" min:"1" type:"map" required:"true"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s TagResourceInput) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s TagResourceInput) GoString() string {
	return s.String()
}

// Validate inspects the fields of the type to determine if they are valid.
func (s *TagResourceInput) Validate() error {
	invalidParams := request.ErrInvalidParams{Context: "TagResourceInput"}
	if s.ResourceArn == nil {
		invalidParams.Add(request.NewErrParamRequired("ResourceArn"))
	}
	if s.ResourceArn != nil && len(*s.ResourceArn) < 1 {
		invalidParams.Add(request.NewErrParamMinLen("ResourceArn", 1))
	}
	if s.Tags == nil {
		invalidParams.Add(request.NewErrParamRequired("Tags"))
	}
	if s.Tags != nil && len(s.Tags) < 1 {
		invalidParams.Add(request.NewErrParamMinLen("Tags", 1))
	}

	if invalidParams.Len() > 0 {
		return invalidParams
	}
	return nil
}

// SetResourceArn sets the ResourceArn field's value.
func (s *TagResourceInput) SetResourceArn(v string) *TagResourceInput {
	s.ResourceArn = &v
	return s
}

// SetTags sets the Tags field's value.
func (s *TagResourceInput) SetTags(v map[string]*string) *TagResourceInput {
	s.Tags = v
	return s
}

type TagResourceOutput struct {
	_ struct{} `type:"structure"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s TagResourceOutput) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s TagResourceOutput) GoString() string {
	return s.String()
}

type TestMetricFilterInput struct {
	_ struct{} `type:"structure"`

	// A symbolic description of how CloudWatch Logs should interpret the data in
	// each log event. For example, a log event can contain timestamps, IP addresses,
	// strings, and so on. You use the filter pattern to specify what to look for
	// in the log event message.
	//
	// FilterPattern is a required field
	FilterPattern *string `locationName:"filterPattern" type:"string" required:"true"`

	// The log event messages to test.
	//
	// LogEventMessages is a required field
	LogEventMessages []*string `locationName:"logEventMessages" min:"1" type:"list" required:"true"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s TestMetricFilterInput) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s TestMetricFilterInput) GoString() string {
	return s.String()
}

// Validate inspects the fields of the type to determine if they are valid.
func (s *TestMetricFilterInput) Validate() error {
	invalidParams := request.ErrInvalidParams{Context: "TestMetricFilterInput"}
	if s.FilterPattern == nil {
		invalidParams.Add(request.NewErrParamRequired("FilterPattern"))
	}
	if s.LogEventMessages == nil {
		invalidParams.Add(request.NewErrParamRequired("LogEventMessages"))
	}
	if s.LogEventMessages != nil && len(s.LogEventMessages) < 1 {
		invalidParams.Add(request.NewErrParamMinLen("LogEventMessages", 1))
	}

	if invalidParams.Len() > 0 {
		return invalidParams
	}
	return nil
}

// SetFilterPattern sets the FilterPattern field's value.
func (s *TestMetricFilterInput) SetFilterPattern(v string) *TestMetricFilterInput {
	s.FilterPattern = &v
	return s
}

// SetLogEventMessages sets the LogEventMessages field's value.
func (s *TestMetricFilterInput) SetLogEventMessages(v []*string) *TestMetricFilterInput {
	s.LogEventMessages = v
	return s
}

type TestMetricFilterOutput struct {
	_ struct{} `type:"structure"`

	// The matched events.
	Matches []*MetricFilterMatchRecord `locationName:"matches" type:"list"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s TestMetricFilterOutput) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s TestMetricFilterOutput) GoString() string {
	return s.String()
}

// SetMatches sets the Matches field's value.
func (s *TestMetricFilterOutput) SetMatches(v []*MetricFilterMatchRecord) *TestMetricFilterOutput {
	s.Matches = v
	return s
}

type TestTransformerInput struct {
	_ struct{} `type:"structure"`

	// An array of the raw log events that you want to use to test this transformer.
	//
	// LogEventMessages is a required field
	LogEventMessages []*string `locationName:"logEventMessages" min:"1" type:"list" required:"true"`

	// This structure contains the configuration of this log transformer that you
	// want to test. A log transformer is an array of processors, where each processor
	// applies one type of transformation to the log events that are ingested.
	//
	// TransformerConfig is a required field
	TransformerConfig []*Processor `locationName:"transformerConfig" min:"1" type:"list" required:"true"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s TestTransformerInput) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s TestTransformerInput) GoString() string {
	return s.String()
}

// Validate inspects the fields of the type to determine if they are valid.
func (s *TestTransformerInput) Validate() error {
	invalidParams := request.ErrInvalidParams{Context: "TestTransformerInput"}
	if s.LogEventMessages == nil {
		invalidParams.Add(request.NewErrParamRequired("LogEventMessages"))
	}
	if s.LogEventMessages != nil && len(s.LogEventMessages) < 1 {
		invalidParams.Add(request.NewErrParamMinLen("LogEventMessages", 1))
	}
	if s.TransformerConfig == nil {
		invalidParams.Add(request.NewErrParamRequired("TransformerConfig"))
	}
	if s.TransformerConfig != nil && len(s.TransformerConfig) < 1 {
		invalidParams.Add(request.NewErrParamMinLen("TransformerConfig", 1))
	}
	if s.TransformerConfig != nil {
		for i, v := range s.TransformerConfig {
			if v == nil {
				continue
			}
			if err := v.Validate(); err != nil {
				invalidParams.AddNested(fmt.Sprintf("%s[%v]", "TransformerConfig", i), err.(request.ErrInvalidParams))
			}
		}
	}

	if invalidParams.Len() > 0 {
		return invalidParams
	}
	return nil
}

// SetLogEventMessages sets the LogEventMessages field's value.
func (s *TestTransformerInput) SetLogEventMessages(v []*string) *TestTransformerInput {
	s.LogEventMessages = v
	return s
}

// SetTransformerConfig sets the TransformerConfig field's value.
func (s *TestTransformerInput) SetTransformerConfig(v []*Processor) *TestTransformerInput {
	s.TransformerConfig = v
	return s
}

type TestTransformerOutput struct {
	_ struct{} `type:"structure"`

	// An array where each member of the array includes both the original version
	// and the transformed version of one of the log events that you input.
	TransformedLogs []*TransformedLogRecord `locationName:"transformedLogs" type:"list"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s TestTransformerOutput) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s TestTransformerOutput) GoString() string {
	return s.String()
}

// SetTransformedLogs sets the TransformedLogs field's value.
func (s *TestTransformerOutput) SetTransformedLogs(v []*TransformedLogRecord) *TestTransformerOutput {
	s.TransformedLogs = v
	return s
}

// The request was throttled because of quota limits.
type ThrottlingException struct {
	_            struct{}                  `type:"structure"`
	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`

	Message_ *string `locationName:"message" type:"string"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s ThrottlingException) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s ThrottlingException) GoString() string {
	return s.String()
}

func newErrorThrottlingException(v protocol.ResponseMetadata) error {
	return &ThrottlingException{
		RespMetadata: v,
	}
}

// Code returns the exception type name.
func (s *ThrottlingException) Code() string {
	return "ThrottlingException"
}

// Message returns the exception's message.
func (s *ThrottlingException) Message() string {
	if s.Message_ != nil {
		return *s.Message_
	}
	return ""
}

// OrigErr always returns nil, satisfies awserr.Error interface.
func (s *ThrottlingException) OrigErr() error {
	return nil
}

func (s *ThrottlingException) Error() string {
	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}

// Status code returns the HTTP status code for the request's response error.
func (s *ThrottlingException) StatusCode() int {
	return s.RespMetadata.StatusCode
}

// RequestID returns the service's response RequestID for request.
func (s *ThrottlingException) RequestID() string {
	return s.RespMetadata.RequestID
}

// A resource can have no more than 50 tags.
type TooManyTagsException struct {
	_            struct{}                  `type:"structure"`
	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`

	Message_ *string `locationName:"message" type:"string"`

	// The name of the resource.
	ResourceName *string `locationName:"resourceName" min:"1" type:"string"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s TooManyTagsException) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s TooManyTagsException) GoString() string {
	return s.String()
}

func newErrorTooManyTagsException(v protocol.ResponseMetadata) error {
	return &TooManyTagsException{
		RespMetadata: v,
	}
}

// Code returns the exception type name.
func (s *TooManyTagsException) Code() string {
	return "TooManyTagsException"
}

// Message returns the exception's message.
func (s *TooManyTagsException) Message() string {
	if s.Message_ != nil {
		return *s.Message_
	}
	return ""
}

// OrigErr always returns nil, satisfies awserr.Error interface.
func (s *TooManyTagsException) OrigErr() error {
	return nil
}

func (s *TooManyTagsException) Error() string {
	return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}

// Status code returns the HTTP status code for the request's response error.
func (s *TooManyTagsException) StatusCode() int {
	return s.RespMetadata.StatusCode
}

// RequestID returns the service's response RequestID for request.
func (s *TooManyTagsException) RequestID() string {
	return s.RespMetadata.RequestID
}

// This structure contains information for one log event that has been processed
// by a log transformer.
type TransformedLogRecord struct {
	_ struct{} `type:"structure"`

	// The original log event message before it was transformed.
	EventMessage *string `locationName:"eventMessage" min:"1" type:"string"`

	// The event number.
	EventNumber *int64 `locationName:"eventNumber" type:"long"`

	// The log event message after being transformed.
	TransformedEventMessage *string `locationName:"transformedEventMessage" min:"1" type:"string"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s TransformedLogRecord) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s TransformedLogRecord) GoString() string {
	return s.String()
}

// SetEventMessage sets the EventMessage field's value.
func (s *TransformedLogRecord) SetEventMessage(v string) *TransformedLogRecord {
	s.EventMessage = &v
	return s
}

// SetEventNumber sets the EventNumber field's value.
func (s *TransformedLogRecord) SetEventNumber(v int64) *TransformedLogRecord {
	s.EventNumber = &v
	return s
}

// SetTransformedEventMessage sets the TransformedEventMessage field's value.
func (s *TransformedLogRecord) SetTransformedEventMessage(v string) *TransformedLogRecord {
	s.TransformedEventMessage = &v
	return s
}

// Use this processor to remove leading and trailing whitespace.
//
// For more information about this processor including examples, see trimString
// (https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/CloudWatch-Logs-Transformation.html#CloudWatch-Logs-Transformation-trimString)
// in the CloudWatch Logs User Guide.
type TrimString struct {
	_ struct{} `type:"structure"`

	// The array containing the keys of the fields to trim.
	//
	// WithKeys is a required field
	WithKeys []*string `locationName:"withKeys" min:"1" type:"list" required:"true"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s TrimString) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s TrimString) GoString() string {
	return s.String()
}

// Validate inspects the fields of the type to determine if they are valid.
func (s *TrimString) Validate() error {
	invalidParams := request.ErrInvalidParams{Context: "TrimString"}
	if s.WithKeys == nil {
		invalidParams.Add(request.NewErrParamRequired("WithKeys"))
	}
	if s.WithKeys != nil && len(s.WithKeys) < 1 {
		invalidParams.Add(request.NewErrParamMinLen("WithKeys", 1))
	}

	if invalidParams.Len() > 0 {
		return invalidParams
	}
	return nil
}

// SetWithKeys sets the WithKeys field's value.
func (s *TrimString) SetWithKeys(v []*string) *TrimString {
	s.WithKeys = v
	return s
}

// Use this processor to convert a value type associated with the specified
// key to the specified type. It's a casting processor that changes the types
// of the specified fields. Values can be converted into one of the following
// datatypes: integer, double, string and boolean.
//
// For more information about this processor including examples, see trimString
// (https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/CloudWatch-Logs-Transformation.html#CloudWatch-Logs-Transformation-trimString)
// in the CloudWatch Logs User Guide.
type TypeConverter struct {
	_ struct{} `type:"structure"`

	// An array of TypeConverterEntry objects, where each object contains the information
	// about one field to change the type of.
	//
	// Entries is a required field
	Entries []*TypeConverterEntry `locationName:"entries" min:"1" type:"list" required:"true"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s TypeConverter) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s TypeConverter) GoString() string {
	return s.String()
}

// Validate inspects the fields of the type to determine if they are valid.
func (s *TypeConverter) Validate() error {
	invalidParams := request.ErrInvalidParams{Context: "TypeConverter"}
	if s.Entries == nil {
		invalidParams.Add(request.NewErrParamRequired("Entries"))
	}
	if s.Entries != nil && len(s.Entries) < 1 {
		invalidParams.Add(request.NewErrParamMinLen("Entries", 1))
	}
	if s.Entries != nil {
		for i, v := range s.Entries {
			if v == nil {
				continue
			}
			if err := v.Validate(); err != nil {
				invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Entries", i), err.(request.ErrInvalidParams))
			}
		}
	}

	if invalidParams.Len() > 0 {
		return invalidParams
	}
	return nil
}

// SetEntries sets the Entries field's value.
func (s *TypeConverter) SetEntries(v []*TypeConverterEntry) *TypeConverter {
	s.Entries = v
	return s
}

// This object defines one value type that will be converted using the typeConverter
// (https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/CloudWatch-Logs-Transformation.html#CloudWatch-Logs-Transformation-typeConverter)
// processor.
type TypeConverterEntry struct {
	_ struct{} `type:"structure"`

	// The key with the value that is to be converted to a different type.
	//
	// Key is a required field
	Key *string `locationName:"key" min:"1" type:"string" required:"true"`

	// The type to convert the field value to. Valid values are integer, double,
	// string and boolean.
	//
	// Type is a required field
	Type *string `locationName:"type" type:"string" required:"true" enum:"Type"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s TypeConverterEntry) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s TypeConverterEntry) GoString() string {
	return s.String()
}

// Validate inspects the fields of the type to determine if they are valid.
func (s *TypeConverterEntry) Validate() error {
	invalidParams := request.ErrInvalidParams{Context: "TypeConverterEntry"}
	if s.Key == nil {
		invalidParams.Add(request.NewErrParamRequired("Key"))
	}
	if s.Key != nil && len(*s.Key) < 1 {
		invalidParams.Add(request.NewErrParamMinLen("Key", 1))
	}
	if s.Type == nil {
		invalidParams.Add(request.NewErrParamRequired("Type"))
	}

	if invalidParams.Len() > 0 {
		return invalidParams
	}
	return nil
}

// SetKey sets the Key field's value.
func (s *TypeConverterEntry) SetKey(v string) *TypeConverterEntry {
	s.Key = &v
	return s
}

// SetType sets the Type field's value.
func (s *TypeConverterEntry) SetType(v string) *TypeConverterEntry {
	s.Type = &v
	return s
}

// The most likely cause is an Amazon Web Services access key ID or secret key
// that's not valid.
type UnrecognizedClientException struct {
	_            struct{}                  `type:"structure"`
	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`

	Message_ *string `locationName:"message" type:"string"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s UnrecognizedClientException) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s UnrecognizedClientException) GoString() string {
	return s.String()
}

func newErrorUnrecognizedClientException(v protocol.ResponseMetadata) error {
	return &UnrecognizedClientException{
		RespMetadata: v,
	}
}

// Code returns the exception type name.
func (s *UnrecognizedClientException) Code() string {
	return "UnrecognizedClientException"
}

// Message returns the exception's message.
func (s *UnrecognizedClientException) Message() string {
	if s.Message_ != nil {
		return *s.Message_
	}
	return ""
}

// OrigErr always returns nil, satisfies awserr.Error interface.
func (s *UnrecognizedClientException) OrigErr() error {
	return nil
}

func (s *UnrecognizedClientException) Error() string {
	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}

// Status code returns the HTTP status code for the request's response error.
func (s *UnrecognizedClientException) StatusCode() int {
	return s.RespMetadata.StatusCode
}

// RequestID returns the service's response RequestID for request.
func (s *UnrecognizedClientException) RequestID() string {
	return s.RespMetadata.RequestID
}

// Deprecated: Please use the generic tagging API model UntagResourceRequest
type UntagLogGroupInput struct {
	_ struct{} `deprecated:"true" type:"structure"`

	// The name of the log group.
	//
	// LogGroupName is a required field
	LogGroupName *string `locationName:"logGroupName" min:"1" type:"string" required:"true"`

	// The tag keys. The corresponding tags are removed from the log group.
	//
	// Tags is a required field
	Tags []*string `locationName:"tags" min:"1" type:"list" required:"true"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s UntagLogGroupInput) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s UntagLogGroupInput) GoString() string {
	return s.String()
}

// Validate inspects the fields of the type to determine if they are valid.
func (s *UntagLogGroupInput) Validate() error {
	invalidParams := request.ErrInvalidParams{Context: "UntagLogGroupInput"}
	if s.LogGroupName == nil {
		invalidParams.Add(request.NewErrParamRequired("LogGroupName"))
	}
	if s.LogGroupName != nil && len(*s.LogGroupName) < 1 {
		invalidParams.Add(request.NewErrParamMinLen("LogGroupName", 1))
	}
	if s.Tags == nil {
		invalidParams.Add(request.NewErrParamRequired("Tags"))
	}
	if s.Tags != nil && len(s.Tags) < 1 {
		invalidParams.Add(request.NewErrParamMinLen("Tags", 1))
	}

	if invalidParams.Len() > 0 {
		return invalidParams
	}
	return nil
}

// SetLogGroupName sets the LogGroupName field's value.
func (s *UntagLogGroupInput) SetLogGroupName(v string) *UntagLogGroupInput {
	s.LogGroupName = &v
	return s
}

// SetTags sets the Tags field's value.
func (s *UntagLogGroupInput) SetTags(v []*string) *UntagLogGroupInput {
	s.Tags = v
	return s
}

type UntagLogGroupOutput struct {
	_ struct{} `type:"structure"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s UntagLogGroupOutput) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s UntagLogGroupOutput) GoString() string {
	return s.String()
}

type UntagResourceInput struct {
	_ struct{} `type:"structure"`

	// The ARN of the CloudWatch Logs resource that you're removing tags from.
	//
	// The ARN format of a log group is arn:aws:logs:Region:account-id:log-group:log-group-name
	//
	// The ARN format of a destination is arn:aws:logs:Region:account-id:destination:destination-name
	//
	// For more information about ARN format, see CloudWatch Logs resources and
	// operations (https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/iam-access-control-overview-cwl.html).
	//
	// ResourceArn is a required field
	ResourceArn *string `locationName:"resourceArn" min:"1" type:"string" required:"true"`

	// The list of tag keys to remove from the resource.
	//
	// TagKeys is a required field
	TagKeys []*string `locationName:"tagKeys" type:"list" required:"true"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s UntagResourceInput) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s UntagResourceInput) GoString() string {
	return s.String()
}

// Validate inspects the fields of the type to determine if they are valid.
func (s *UntagResourceInput) Validate() error {
	invalidParams := request.ErrInvalidParams{Context: "UntagResourceInput"}
	if s.ResourceArn == nil {
		invalidParams.Add(request.NewErrParamRequired("ResourceArn"))
	}
	if s.ResourceArn != nil && len(*s.ResourceArn) < 1 {
		invalidParams.Add(request.NewErrParamMinLen("ResourceArn", 1))
	}
	if s.TagKeys == nil {
		invalidParams.Add(request.NewErrParamRequired("TagKeys"))
	}

	if invalidParams.Len() > 0 {
		return invalidParams
	}
	return nil
}

// SetResourceArn sets the ResourceArn field's value.
func (s *UntagResourceInput) SetResourceArn(v string) *UntagResourceInput {
	s.ResourceArn = &v
	return s
}

// SetTagKeys sets the TagKeys field's value.
func (s *UntagResourceInput) SetTagKeys(v []*string) *UntagResourceInput {
	s.TagKeys = v
	return s
}

type UntagResourceOutput struct {
	_ struct{} `type:"structure"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s UntagResourceOutput) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s UntagResourceOutput) GoString() string {
	return s.String()
}

type UpdateAnomalyInput struct {
	_ struct{} `type:"structure"`

	// The ARN of the anomaly detector that this operation is to act on.
	//
	// AnomalyDetectorArn is a required field
	AnomalyDetectorArn *string `locationName:"anomalyDetectorArn" min:"1" type:"string" required:"true"`

	// If you are suppressing or unsuppressing an anomaly, specify its unique ID
	// here. You can find anomaly IDs by using the ListAnomalies (https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_ListAnomalies.html)
	// operation.
	AnomalyId *string `locationName:"anomalyId" min:"36" type:"string"`

	// Set this to true to prevent CloudWatch Logs from displaying this behavior
	// as an anomaly in the future. The behavior is then treated as baseline behavior.
	// However, if similar but more severe occurrences of this behavior occur in
	// the future, those will still be reported as anomalies.
	//
	// The default is false
	Baseline *bool `locationName:"baseline" type:"boolean"`

	// If you are suppressing or unsuppressing an pattern, specify its unique ID
	// here. You can find pattern IDs by using the ListAnomalies (https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_ListAnomalies.html)
	// operation.
	PatternId *string `locationName:"patternId" min:"32" type:"string"`

	// If you are temporarily suppressing an anomaly or pattern, use this structure
	// to specify how long the suppression is to last.
	SuppressionPeriod *SuppressionPeriod `locationName:"suppressionPeriod" type:"structure"`

	// Use this to specify whether the suppression to be temporary or infinite.
	// If you specify LIMITED, you must also specify a suppressionPeriod. If you
	// specify INFINITE, any value for suppressionPeriod is ignored.
	SuppressionType *string `locationName:"suppressionType" type:"string" enum:"SuppressionType"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s UpdateAnomalyInput) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s UpdateAnomalyInput) GoString() string {
	return s.String()
}

// Validate inspects the fields of the type to determine if they are valid.
func (s *UpdateAnomalyInput) Validate() error {
	invalidParams := request.ErrInvalidParams{Context: "UpdateAnomalyInput"}
	if s.AnomalyDetectorArn == nil {
		invalidParams.Add(request.NewErrParamRequired("AnomalyDetectorArn"))
	}
	if s.AnomalyDetectorArn != nil && len(*s.AnomalyDetectorArn) < 1 {
		invalidParams.Add(request.NewErrParamMinLen("AnomalyDetectorArn", 1))
	}
	if s.AnomalyId != nil && len(*s.AnomalyId) < 36 {
		invalidParams.Add(request.NewErrParamMinLen("AnomalyId", 36))
	}
	if s.PatternId != nil && len(*s.PatternId) < 32 {
		invalidParams.Add(request.NewErrParamMinLen("PatternId", 32))
	}

	if invalidParams.Len() > 0 {
		return invalidParams
	}
	return nil
}

// SetAnomalyDetectorArn sets the AnomalyDetectorArn field's value.
func (s *UpdateAnomalyInput) SetAnomalyDetectorArn(v string) *UpdateAnomalyInput {
	s.AnomalyDetectorArn = &v
	return s
}

// SetAnomalyId sets the AnomalyId field's value.
func (s *UpdateAnomalyInput) SetAnomalyId(v string) *UpdateAnomalyInput {
	s.AnomalyId = &v
	return s
}

// SetBaseline sets the Baseline field's value.
func (s *UpdateAnomalyInput) SetBaseline(v bool) *UpdateAnomalyInput {
	s.Baseline = &v
	return s
}

// SetPatternId sets the PatternId field's value.
func (s *UpdateAnomalyInput) SetPatternId(v string) *UpdateAnomalyInput {
	s.PatternId = &v
	return s
}

// SetSuppressionPeriod sets the SuppressionPeriod field's value.
func (s *UpdateAnomalyInput) SetSuppressionPeriod(v *SuppressionPeriod) *UpdateAnomalyInput {
	s.SuppressionPeriod = v
	return s
}

// SetSuppressionType sets the SuppressionType field's value.
func (s *UpdateAnomalyInput) SetSuppressionType(v string) *UpdateAnomalyInput {
	s.SuppressionType = &v
	return s
}

type UpdateAnomalyOutput struct {
	_ struct{} `type:"structure"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s UpdateAnomalyOutput) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s UpdateAnomalyOutput) GoString() string {
	return s.String()
}

type UpdateDeliveryConfigurationInput struct {
	_ struct{} `type:"structure"`

	// The field delimiter to use between record fields when the final output format
	// of a delivery is in Plain, W3C, or Raw format.
	FieldDelimiter *string `locationName:"fieldDelimiter" type:"string"`

	// The ID of the delivery to be updated by this request.
	//
	// Id is a required field
	Id *string `locationName:"id" min:"1" type:"string" required:"true"`

	// The list of record fields to be delivered to the destination, in order. If
	// the delivery's log source has mandatory fields, they must be included in
	// this list.
	RecordFields []*string `locationName:"recordFields" type:"list"`

	// This structure contains parameters that are valid only when the delivery's
	// delivery destination is an S3 bucket.
	S3DeliveryConfiguration *S3DeliveryConfiguration `locationName:"s3DeliveryConfiguration" type:"structure"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s UpdateDeliveryConfigurationInput) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s UpdateDeliveryConfigurationInput) GoString() string {
	return s.String()
}

// Validate inspects the fields of the type to determine if they are valid.
func (s *UpdateDeliveryConfigurationInput) Validate() error {
	invalidParams := request.ErrInvalidParams{Context: "UpdateDeliveryConfigurationInput"}
	if s.Id == nil {
		invalidParams.Add(request.NewErrParamRequired("Id"))
	}
	if s.Id != nil && len(*s.Id) < 1 {
		invalidParams.Add(request.NewErrParamMinLen("Id", 1))
	}
	if s.S3DeliveryConfiguration != nil {
		if err := s.S3DeliveryConfiguration.Validate(); err != nil {
			invalidParams.AddNested("S3DeliveryConfiguration", err.(request.ErrInvalidParams))
		}
	}

	if invalidParams.Len() > 0 {
		return invalidParams
	}
	return nil
}

// SetFieldDelimiter sets the FieldDelimiter field's value.
func (s *UpdateDeliveryConfigurationInput) SetFieldDelimiter(v string) *UpdateDeliveryConfigurationInput {
	s.FieldDelimiter = &v
	return s
}

// SetId sets the Id field's value.
func (s *UpdateDeliveryConfigurationInput) SetId(v string) *UpdateDeliveryConfigurationInput {
	s.Id = &v
	return s
}

// SetRecordFields sets the RecordFields field's value.
func (s *UpdateDeliveryConfigurationInput) SetRecordFields(v []*string) *UpdateDeliveryConfigurationInput {
	s.RecordFields = v
	return s
}

// SetS3DeliveryConfiguration sets the S3DeliveryConfiguration field's value.
func (s *UpdateDeliveryConfigurationInput) SetS3DeliveryConfiguration(v *S3DeliveryConfiguration) *UpdateDeliveryConfigurationInput {
	s.S3DeliveryConfiguration = v
	return s
}

type UpdateDeliveryConfigurationOutput struct {
	_ struct{} `type:"structure"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s UpdateDeliveryConfigurationOutput) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s UpdateDeliveryConfigurationOutput) GoString() string {
	return s.String()
}

type UpdateLogAnomalyDetectorInput struct {
	_ struct{} `type:"structure"`

	// The ARN of the anomaly detector that you want to update.
	//
	// AnomalyDetectorArn is a required field
	AnomalyDetectorArn *string `locationName:"anomalyDetectorArn" min:"1" type:"string" required:"true"`

	// The number of days to use as the life cycle of anomalies. After this time,
	// anomalies are automatically baselined and the anomaly detector model will
	// treat new occurrences of similar event as normal. Therefore, if you do not
	// correct the cause of an anomaly during this time, it will be considered normal
	// going forward and will not be detected.
	AnomalyVisibilityTime *int64 `locationName:"anomalyVisibilityTime" min:"7" type:"long"`

	// Use this parameter to pause or restart the anomaly detector.
	//
	// Enabled is a required field
	Enabled *bool `locationName:"enabled" type:"boolean" required:"true"`

	// Specifies how often the anomaly detector runs and look for anomalies. Set
	// this value according to the frequency that the log group receives new logs.
	// For example, if the log group receives new log events every 10 minutes, then
	// setting evaluationFrequency to FIFTEEN_MIN might be appropriate.
	EvaluationFrequency *string `locationName:"evaluationFrequency" type:"string" enum:"EvaluationFrequency"`

	// A symbolic description of how CloudWatch Logs should interpret the data in
	// each log event. For example, a log event can contain timestamps, IP addresses,
	// strings, and so on. You use the filter pattern to specify what to look for
	// in the log event message.
	FilterPattern *string `locationName:"filterPattern" type:"string"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s UpdateLogAnomalyDetectorInput) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s UpdateLogAnomalyDetectorInput) GoString() string {
	return s.String()
}

// Validate inspects the fields of the type to determine if they are valid.
func (s *UpdateLogAnomalyDetectorInput) Validate() error {
	invalidParams := request.ErrInvalidParams{Context: "UpdateLogAnomalyDetectorInput"}
	if s.AnomalyDetectorArn == nil {
		invalidParams.Add(request.NewErrParamRequired("AnomalyDetectorArn"))
	}
	if s.AnomalyDetectorArn != nil && len(*s.AnomalyDetectorArn) < 1 {
		invalidParams.Add(request.NewErrParamMinLen("AnomalyDetectorArn", 1))
	}
	if s.AnomalyVisibilityTime != nil && *s.AnomalyVisibilityTime < 7 {
		invalidParams.Add(request.NewErrParamMinValue("AnomalyVisibilityTime", 7))
	}
	if s.Enabled == nil {
		invalidParams.Add(request.NewErrParamRequired("Enabled"))
	}

	if invalidParams.Len() > 0 {
		return invalidParams
	}
	return nil
}

// SetAnomalyDetectorArn sets the AnomalyDetectorArn field's value.
func (s *UpdateLogAnomalyDetectorInput) SetAnomalyDetectorArn(v string) *UpdateLogAnomalyDetectorInput {
	s.AnomalyDetectorArn = &v
	return s
}

// SetAnomalyVisibilityTime sets the AnomalyVisibilityTime field's value.
func (s *UpdateLogAnomalyDetectorInput) SetAnomalyVisibilityTime(v int64) *UpdateLogAnomalyDetectorInput {
	s.AnomalyVisibilityTime = &v
	return s
}

// SetEnabled sets the Enabled field's value.
func (s *UpdateLogAnomalyDetectorInput) SetEnabled(v bool) *UpdateLogAnomalyDetectorInput {
	s.Enabled = &v
	return s
}

// SetEvaluationFrequency sets the EvaluationFrequency field's value.
func (s *UpdateLogAnomalyDetectorInput) SetEvaluationFrequency(v string) *UpdateLogAnomalyDetectorInput {
	s.EvaluationFrequency = &v
	return s
}

// SetFilterPattern sets the FilterPattern field's value.
func (s *UpdateLogAnomalyDetectorInput) SetFilterPattern(v string) *UpdateLogAnomalyDetectorInput {
	s.FilterPattern = &v
	return s
}

type UpdateLogAnomalyDetectorOutput struct {
	_ struct{} `type:"structure"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s UpdateLogAnomalyDetectorOutput) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s UpdateLogAnomalyDetectorOutput) GoString() string {
	return s.String()
}

// This processor converts a string field to uppercase.
//
// For more information about this processor including examples, see upperCaseString
// (https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/CloudWatch-Logs-Transformation.html#CloudWatch-Logs-Transformation-upperCaseString)
// in the CloudWatch Logs User Guide.
type UpperCaseString struct {
	_ struct{} `type:"structure"`

	// The array of containing the keys of the field to convert to uppercase.
	//
	// WithKeys is a required field
	WithKeys []*string `locationName:"withKeys" min:"1" type:"list" required:"true"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s UpperCaseString) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s UpperCaseString) GoString() string {
	return s.String()
}

// Validate inspects the fields of the type to determine if they are valid.
func (s *UpperCaseString) Validate() error {
	invalidParams := request.ErrInvalidParams{Context: "UpperCaseString"}
	if s.WithKeys == nil {
		invalidParams.Add(request.NewErrParamRequired("WithKeys"))
	}
	if s.WithKeys != nil && len(s.WithKeys) < 1 {
		invalidParams.Add(request.NewErrParamMinLen("WithKeys", 1))
	}

	if invalidParams.Len() > 0 {
		return invalidParams
	}
	return nil
}

// SetWithKeys sets the WithKeys field's value.
func (s *UpperCaseString) SetWithKeys(v []*string) *UpperCaseString {
	s.WithKeys = v
	return s
}

// One of the parameters for the request is not valid.
type ValidationException struct {
	_            struct{}                  `type:"structure"`
	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`

	Message_ *string `locationName:"message" type:"string"`
}

// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s ValidationException) String() string {
	return awsutil.Prettify(s)
}

// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s ValidationException) GoString() string {
	return s.String()
}

func newErrorValidationException(v protocol.ResponseMetadata) error {
	return &ValidationException{
		RespMetadata: v,
	}
}

// Code returns the exception type name.
func (s *ValidationException) Code() string {
	return "ValidationException"
}

// Message returns the exception's message.
func (s *ValidationException) Message() string {
	if s.Message_ != nil {
		return *s.Message_
	}
	return ""
}

// OrigErr always returns nil, satisfies awserr.Error interface.
func (s *ValidationException) OrigErr() error {
	return nil
}

func (s *ValidationException) Error() string {
	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}

// Status code returns the HTTP status code for the request's response error.
func (s *ValidationException) StatusCode() int {
	return s.RespMetadata.StatusCode
}

// RequestID returns the service's response RequestID for request.
func (s *ValidationException) RequestID() string {
	return s.RespMetadata.RequestID
}

const (
	// AnomalyDetectorStatusInitializing is a AnomalyDetectorStatus enum value
	AnomalyDetectorStatusInitializing = "INITIALIZING"

	// AnomalyDetectorStatusTraining is a AnomalyDetectorStatus enum value
	AnomalyDetectorStatusTraining = "TRAINING"

	// AnomalyDetectorStatusAnalyzing is a AnomalyDetectorStatus enum value
	AnomalyDetectorStatusAnalyzing = "ANALYZING"

	// AnomalyDetectorStatusFailed is a AnomalyDetectorStatus enum value
	AnomalyDetectorStatusFailed = "FAILED"

	// AnomalyDetectorStatusDeleted is a AnomalyDetectorStatus enum value
	AnomalyDetectorStatusDeleted = "DELETED"

	// AnomalyDetectorStatusPaused is a AnomalyDetectorStatus enum value
	AnomalyDetectorStatusPaused = "PAUSED"
)

// AnomalyDetectorStatus_Values returns all elements of the AnomalyDetectorStatus enum
func AnomalyDetectorStatus_Values() []string {
	return []string{
		AnomalyDetectorStatusInitializing,
		AnomalyDetectorStatusTraining,
		AnomalyDetectorStatusAnalyzing,
		AnomalyDetectorStatusFailed,
		AnomalyDetectorStatusDeleted,
		AnomalyDetectorStatusPaused,
	}
}

const (
	// DataProtectionStatusActivated is a DataProtectionStatus enum value
	DataProtectionStatusActivated = "ACTIVATED"

	// DataProtectionStatusDeleted is a DataProtectionStatus enum value
	DataProtectionStatusDeleted = "DELETED"

	// DataProtectionStatusArchived is a DataProtectionStatus enum value
	DataProtectionStatusArchived = "ARCHIVED"

	// DataProtectionStatusDisabled is a DataProtectionStatus enum value
	DataProtectionStatusDisabled = "DISABLED"
)

// DataProtectionStatus_Values returns all elements of the DataProtectionStatus enum
func DataProtectionStatus_Values() []string {
	return []string{
		DataProtectionStatusActivated,
		DataProtectionStatusDeleted,
		DataProtectionStatusArchived,
		DataProtectionStatusDisabled,
	}
}

const (
	// DeliveryDestinationTypeS3 is a DeliveryDestinationType enum value
	DeliveryDestinationTypeS3 = "S3"

	// DeliveryDestinationTypeCwl is a DeliveryDestinationType enum value
	DeliveryDestinationTypeCwl = "CWL"

	// DeliveryDestinationTypeFh is a DeliveryDestinationType enum value
	DeliveryDestinationTypeFh = "FH"
)

// DeliveryDestinationType_Values returns all elements of the DeliveryDestinationType enum
func DeliveryDestinationType_Values() []string {
	return []string{
		DeliveryDestinationTypeS3,
		DeliveryDestinationTypeCwl,
		DeliveryDestinationTypeFh,
	}
}

// The method used to distribute log data to the destination, which can be either
// random or grouped by log stream.
const (
	// DistributionRandom is a Distribution enum value
	DistributionRandom = "Random"

	// DistributionByLogStream is a Distribution enum value
	DistributionByLogStream = "ByLogStream"
)

// Distribution_Values returns all elements of the Distribution enum
func Distribution_Values() []string {
	return []string{
		DistributionRandom,
		DistributionByLogStream,
	}
}

const (
	// EntityRejectionErrorTypeInvalidEntity is a EntityRejectionErrorType enum value
	EntityRejectionErrorTypeInvalidEntity = "InvalidEntity"

	// EntityRejectionErrorTypeInvalidTypeValue is a EntityRejectionErrorType enum value
	EntityRejectionErrorTypeInvalidTypeValue = "InvalidTypeValue"

	// EntityRejectionErrorTypeInvalidKeyAttributes is a EntityRejectionErrorType enum value
	EntityRejectionErrorTypeInvalidKeyAttributes = "InvalidKeyAttributes"

	// EntityRejectionErrorTypeInvalidAttributes is a EntityRejectionErrorType enum value
	EntityRejectionErrorTypeInvalidAttributes = "InvalidAttributes"

	// EntityRejectionErrorTypeEntitySizeTooLarge is a EntityRejectionErrorType enum value
	EntityRejectionErrorTypeEntitySizeTooLarge = "EntitySizeTooLarge"

	// EntityRejectionErrorTypeUnsupportedLogGroupType is a EntityRejectionErrorType enum value
	EntityRejectionErrorTypeUnsupportedLogGroupType = "UnsupportedLogGroupType"

	// EntityRejectionErrorTypeMissingRequiredFields is a EntityRejectionErrorType enum value
	EntityRejectionErrorTypeMissingRequiredFields = "MissingRequiredFields"
)

// EntityRejectionErrorType_Values returns all elements of the EntityRejectionErrorType enum
func EntityRejectionErrorType_Values() []string {
	return []string{
		EntityRejectionErrorTypeInvalidEntity,
		EntityRejectionErrorTypeInvalidTypeValue,
		EntityRejectionErrorTypeInvalidKeyAttributes,
		EntityRejectionErrorTypeInvalidAttributes,
		EntityRejectionErrorTypeEntitySizeTooLarge,
		EntityRejectionErrorTypeUnsupportedLogGroupType,
		EntityRejectionErrorTypeMissingRequiredFields,
	}
}

const (
	// EvaluationFrequencyOneMin is a EvaluationFrequency enum value
	EvaluationFrequencyOneMin = "ONE_MIN"

	// EvaluationFrequencyFiveMin is a EvaluationFrequency enum value
	EvaluationFrequencyFiveMin = "FIVE_MIN"

	// EvaluationFrequencyTenMin is a EvaluationFrequency enum value
	EvaluationFrequencyTenMin = "TEN_MIN"

	// EvaluationFrequencyFifteenMin is a EvaluationFrequency enum value
	EvaluationFrequencyFifteenMin = "FIFTEEN_MIN"

	// EvaluationFrequencyThirtyMin is a EvaluationFrequency enum value
	EvaluationFrequencyThirtyMin = "THIRTY_MIN"

	// EvaluationFrequencyOneHour is a EvaluationFrequency enum value
	EvaluationFrequencyOneHour = "ONE_HOUR"
)

// EvaluationFrequency_Values returns all elements of the EvaluationFrequency enum
func EvaluationFrequency_Values() []string {
	return []string{
		EvaluationFrequencyOneMin,
		EvaluationFrequencyFiveMin,
		EvaluationFrequencyTenMin,
		EvaluationFrequencyFifteenMin,
		EvaluationFrequencyThirtyMin,
		EvaluationFrequencyOneHour,
	}
}

const (
	// ExportTaskStatusCodeCancelled is a ExportTaskStatusCode enum value
	ExportTaskStatusCodeCancelled = "CANCELLED"

	// ExportTaskStatusCodeCompleted is a ExportTaskStatusCode enum value
	ExportTaskStatusCodeCompleted = "COMPLETED"

	// ExportTaskStatusCodeFailed is a ExportTaskStatusCode enum value
	ExportTaskStatusCodeFailed = "FAILED"

	// ExportTaskStatusCodePending is a ExportTaskStatusCode enum value
	ExportTaskStatusCodePending = "PENDING"

	// ExportTaskStatusCodePendingCancel is a ExportTaskStatusCode enum value
	ExportTaskStatusCodePendingCancel = "PENDING_CANCEL"

	// ExportTaskStatusCodeRunning is a ExportTaskStatusCode enum value
	ExportTaskStatusCodeRunning = "RUNNING"
)

// ExportTaskStatusCode_Values returns all elements of the ExportTaskStatusCode enum
func ExportTaskStatusCode_Values() []string {
	return []string{
		ExportTaskStatusCodeCancelled,
		ExportTaskStatusCodeCompleted,
		ExportTaskStatusCodeFailed,
		ExportTaskStatusCodePending,
		ExportTaskStatusCodePendingCancel,
		ExportTaskStatusCodeRunning,
	}
}

const (
	// FlattenedElementFirst is a FlattenedElement enum value
	FlattenedElementFirst = "first"

	// FlattenedElementLast is a FlattenedElement enum value
	FlattenedElementLast = "last"
)

// FlattenedElement_Values returns all elements of the FlattenedElement enum
func FlattenedElement_Values() []string {
	return []string{
		FlattenedElementFirst,
		FlattenedElementLast,
	}
}

const (
	// IndexSourceAccount is a IndexSource enum value
	IndexSourceAccount = "ACCOUNT"

	// IndexSourceLogGroup is a IndexSource enum value
	IndexSourceLogGroup = "LOG_GROUP"
)

// IndexSource_Values returns all elements of the IndexSource enum
func IndexSource_Values() []string {
	return []string{
		IndexSourceAccount,
		IndexSourceLogGroup,
	}
}

const (
	// InheritedPropertyAccountDataProtection is a InheritedProperty enum value
	InheritedPropertyAccountDataProtection = "ACCOUNT_DATA_PROTECTION"
)

// InheritedProperty_Values returns all elements of the InheritedProperty enum
func InheritedProperty_Values() []string {
	return []string{
		InheritedPropertyAccountDataProtection,
	}
}

const (
	// IntegrationStatusProvisioning is a IntegrationStatus enum value
	IntegrationStatusProvisioning = "PROVISIONING"

	// IntegrationStatusActive is a IntegrationStatus enum value
	IntegrationStatusActive = "ACTIVE"

	// IntegrationStatusFailed is a IntegrationStatus enum value
	IntegrationStatusFailed = "FAILED"
)

// IntegrationStatus_Values returns all elements of the IntegrationStatus enum
func IntegrationStatus_Values() []string {
	return []string{
		IntegrationStatusProvisioning,
		IntegrationStatusActive,
		IntegrationStatusFailed,
	}
}

const (
	// IntegrationTypeOpensearch is a IntegrationType enum value
	IntegrationTypeOpensearch = "OPENSEARCH"
)

// IntegrationType_Values returns all elements of the IntegrationType enum
func IntegrationType_Values() []string {
	return []string{
		IntegrationTypeOpensearch,
	}
}

const (
	// LogGroupClassStandard is a LogGroupClass enum value
	LogGroupClassStandard = "STANDARD"

	// LogGroupClassInfrequentAccess is a LogGroupClass enum value
	LogGroupClassInfrequentAccess = "INFREQUENT_ACCESS"

	// LogGroupClassDelivery is a LogGroupClass enum value
	LogGroupClassDelivery = "DELIVERY"
)

// LogGroupClass_Values returns all elements of the LogGroupClass enum
func LogGroupClass_Values() []string {
	return []string{
		LogGroupClassStandard,
		LogGroupClassInfrequentAccess,
		LogGroupClassDelivery,
	}
}

const (
	// OpenSearchResourceStatusTypeActive is a OpenSearchResourceStatusType enum value
	OpenSearchResourceStatusTypeActive = "ACTIVE"

	// OpenSearchResourceStatusTypeNotFound is a OpenSearchResourceStatusType enum value
	OpenSearchResourceStatusTypeNotFound = "NOT_FOUND"

	// OpenSearchResourceStatusTypeError is a OpenSearchResourceStatusType enum value
	OpenSearchResourceStatusTypeError = "ERROR"
)

// OpenSearchResourceStatusType_Values returns all elements of the OpenSearchResourceStatusType enum
func OpenSearchResourceStatusType_Values() []string {
	return []string{
		OpenSearchResourceStatusTypeActive,
		OpenSearchResourceStatusTypeNotFound,
		OpenSearchResourceStatusTypeError,
	}
}

const (
	// OrderByLogStreamName is a OrderBy enum value
	OrderByLogStreamName = "LogStreamName"

	// OrderByLastEventTime is a OrderBy enum value
	OrderByLastEventTime = "LastEventTime"
)

// OrderBy_Values returns all elements of the OrderBy enum
func OrderBy_Values() []string {
	return []string{
		OrderByLogStreamName,
		OrderByLastEventTime,
	}
}

const (
	// OutputFormatJson is a OutputFormat enum value
	OutputFormatJson = "json"

	// OutputFormatPlain is a OutputFormat enum value
	OutputFormatPlain = "plain"

	// OutputFormatW3c is a OutputFormat enum value
	OutputFormatW3c = "w3c"

	// OutputFormatRaw is a OutputFormat enum value
	OutputFormatRaw = "raw"

	// OutputFormatParquet is a OutputFormat enum value
	OutputFormatParquet = "parquet"
)

// OutputFormat_Values returns all elements of the OutputFormat enum
func OutputFormat_Values() []string {
	return []string{
		OutputFormatJson,
		OutputFormatPlain,
		OutputFormatW3c,
		OutputFormatRaw,
		OutputFormatParquet,
	}
}

const (
	// PolicyTypeDataProtectionPolicy is a PolicyType enum value
	PolicyTypeDataProtectionPolicy = "DATA_PROTECTION_POLICY"

	// PolicyTypeSubscriptionFilterPolicy is a PolicyType enum value
	PolicyTypeSubscriptionFilterPolicy = "SUBSCRIPTION_FILTER_POLICY"

	// PolicyTypeFieldIndexPolicy is a PolicyType enum value
	PolicyTypeFieldIndexPolicy = "FIELD_INDEX_POLICY"

	// PolicyTypeTransformerPolicy is a PolicyType enum value
	PolicyTypeTransformerPolicy = "TRANSFORMER_POLICY"
)

// PolicyType_Values returns all elements of the PolicyType enum
func PolicyType_Values() []string {
	return []string{
		PolicyTypeDataProtectionPolicy,
		PolicyTypeSubscriptionFilterPolicy,
		PolicyTypeFieldIndexPolicy,
		PolicyTypeTransformerPolicy,
	}
}

const (
	// QueryLanguageCwli is a QueryLanguage enum value
	QueryLanguageCwli = "CWLI"

	// QueryLanguageSql is a QueryLanguage enum value
	QueryLanguageSql = "SQL"

	// QueryLanguagePpl is a QueryLanguage enum value
	QueryLanguagePpl = "PPL"
)

// QueryLanguage_Values returns all elements of the QueryLanguage enum
func QueryLanguage_Values() []string {
	return []string{
		QueryLanguageCwli,
		QueryLanguageSql,
		QueryLanguagePpl,
	}
}

const (
	// QueryStatusScheduled is a QueryStatus enum value
	QueryStatusScheduled = "Scheduled"

	// QueryStatusRunning is a QueryStatus enum value
	QueryStatusRunning = "Running"

	// QueryStatusComplete is a QueryStatus enum value
	QueryStatusComplete = "Complete"

	// QueryStatusFailed is a QueryStatus enum value
	QueryStatusFailed = "Failed"

	// QueryStatusCancelled is a QueryStatus enum value
	QueryStatusCancelled = "Cancelled"

	// QueryStatusTimeout is a QueryStatus enum value
	QueryStatusTimeout = "Timeout"

	// QueryStatusUnknown is a QueryStatus enum value
	QueryStatusUnknown = "Unknown"
)

// QueryStatus_Values returns all elements of the QueryStatus enum
func QueryStatus_Values() []string {
	return []string{
		QueryStatusScheduled,
		QueryStatusRunning,
		QueryStatusComplete,
		QueryStatusFailed,
		QueryStatusCancelled,
		QueryStatusTimeout,
		QueryStatusUnknown,
	}
}

const (
	// ScopeAll is a Scope enum value
	ScopeAll = "ALL"
)

// Scope_Values returns all elements of the Scope enum
func Scope_Values() []string {
	return []string{
		ScopeAll,
	}
}

const (
	// StandardUnitSeconds is a StandardUnit enum value
	StandardUnitSeconds = "Seconds"

	// StandardUnitMicroseconds is a StandardUnit enum value
	StandardUnitMicroseconds = "Microseconds"

	// StandardUnitMilliseconds is a StandardUnit enum value
	StandardUnitMilliseconds = "Milliseconds"

	// StandardUnitBytes is a StandardUnit enum value
	StandardUnitBytes = "Bytes"

	// StandardUnitKilobytes is a StandardUnit enum value
	StandardUnitKilobytes = "Kilobytes"

	// StandardUnitMegabytes is a StandardUnit enum value
	StandardUnitMegabytes = "Megabytes"

	// StandardUnitGigabytes is a StandardUnit enum value
	StandardUnitGigabytes = "Gigabytes"

	// StandardUnitTerabytes is a StandardUnit enum value
	StandardUnitTerabytes = "Terabytes"

	// StandardUnitBits is a StandardUnit enum value
	StandardUnitBits = "Bits"

	// StandardUnitKilobits is a StandardUnit enum value
	StandardUnitKilobits = "Kilobits"

	// StandardUnitMegabits is a StandardUnit enum value
	StandardUnitMegabits = "Megabits"

	// StandardUnitGigabits is a StandardUnit enum value
	StandardUnitGigabits = "Gigabits"

	// StandardUnitTerabits is a StandardUnit enum value
	StandardUnitTerabits = "Terabits"

	// StandardUnitPercent is a StandardUnit enum value
	StandardUnitPercent = "Percent"

	// StandardUnitCount is a StandardUnit enum value
	StandardUnitCount = "Count"

	// StandardUnitBytesSecond is a StandardUnit enum value
	StandardUnitBytesSecond = "Bytes/Second"

	// StandardUnitKilobytesSecond is a StandardUnit enum value
	StandardUnitKilobytesSecond = "Kilobytes/Second"

	// StandardUnitMegabytesSecond is a StandardUnit enum value
	StandardUnitMegabytesSecond = "Megabytes/Second"

	// StandardUnitGigabytesSecond is a StandardUnit enum value
	StandardUnitGigabytesSecond = "Gigabytes/Second"

	// StandardUnitTerabytesSecond is a StandardUnit enum value
	StandardUnitTerabytesSecond = "Terabytes/Second"

	// StandardUnitBitsSecond is a StandardUnit enum value
	StandardUnitBitsSecond = "Bits/Second"

	// StandardUnitKilobitsSecond is a StandardUnit enum value
	StandardUnitKilobitsSecond = "Kilobits/Second"

	// StandardUnitMegabitsSecond is a StandardUnit enum value
	StandardUnitMegabitsSecond = "Megabits/Second"

	// StandardUnitGigabitsSecond is a StandardUnit enum value
	StandardUnitGigabitsSecond = "Gigabits/Second"

	// StandardUnitTerabitsSecond is a StandardUnit enum value
	StandardUnitTerabitsSecond = "Terabits/Second"

	// StandardUnitCountSecond is a StandardUnit enum value
	StandardUnitCountSecond = "Count/Second"

	// StandardUnitNone is a StandardUnit enum value
	StandardUnitNone = "None"
)

// StandardUnit_Values returns all elements of the StandardUnit enum
func StandardUnit_Values() []string {
	return []string{
		StandardUnitSeconds,
		StandardUnitMicroseconds,
		StandardUnitMilliseconds,
		StandardUnitBytes,
		StandardUnitKilobytes,
		StandardUnitMegabytes,
		StandardUnitGigabytes,
		StandardUnitTerabytes,
		StandardUnitBits,
		StandardUnitKilobits,
		StandardUnitMegabits,
		StandardUnitGigabits,
		StandardUnitTerabits,
		StandardUnitPercent,
		StandardUnitCount,
		StandardUnitBytesSecond,
		StandardUnitKilobytesSecond,
		StandardUnitMegabytesSecond,
		StandardUnitGigabytesSecond,
		StandardUnitTerabytesSecond,
		StandardUnitBitsSecond,
		StandardUnitKilobitsSecond,
		StandardUnitMegabitsSecond,
		StandardUnitGigabitsSecond,
		StandardUnitTerabitsSecond,
		StandardUnitCountSecond,
		StandardUnitNone,
	}
}

const (
	// StateActive is a State enum value
	StateActive = "Active"

	// StateSuppressed is a State enum value
	StateSuppressed = "Suppressed"

	// StateBaseline is a State enum value
	StateBaseline = "Baseline"
)

// State_Values returns all elements of the State enum
func State_Values() []string {
	return []string{
		StateActive,
		StateSuppressed,
		StateBaseline,
	}
}

const (
	// SuppressionStateSuppressed is a SuppressionState enum value
	SuppressionStateSuppressed = "SUPPRESSED"

	// SuppressionStateUnsuppressed is a SuppressionState enum value
	SuppressionStateUnsuppressed = "UNSUPPRESSED"
)

// SuppressionState_Values returns all elements of the SuppressionState enum
func SuppressionState_Values() []string {
	return []string{
		SuppressionStateSuppressed,
		SuppressionStateUnsuppressed,
	}
}

const (
	// SuppressionTypeLimited is a SuppressionType enum value
	SuppressionTypeLimited = "LIMITED"

	// SuppressionTypeInfinite is a SuppressionType enum value
	SuppressionTypeInfinite = "INFINITE"
)

// SuppressionType_Values returns all elements of the SuppressionType enum
func SuppressionType_Values() []string {
	return []string{
		SuppressionTypeLimited,
		SuppressionTypeInfinite,
	}
}

const (
	// SuppressionUnitSeconds is a SuppressionUnit enum value
	SuppressionUnitSeconds = "SECONDS"

	// SuppressionUnitMinutes is a SuppressionUnit enum value
	SuppressionUnitMinutes = "MINUTES"

	// SuppressionUnitHours is a SuppressionUnit enum value
	SuppressionUnitHours = "HOURS"
)

// SuppressionUnit_Values returns all elements of the SuppressionUnit enum
func SuppressionUnit_Values() []string {
	return []string{
		SuppressionUnitSeconds,
		SuppressionUnitMinutes,
		SuppressionUnitHours,
	}
}

const (
	// TypeBoolean is a Type enum value
	TypeBoolean = "boolean"

	// TypeInteger is a Type enum value
	TypeInteger = "integer"

	// TypeDouble is a Type enum value
	TypeDouble = "double"

	// TypeString is a Type enum value
	TypeString = "string"
)

// Type_Values returns all elements of the Type enum
func Type_Values() []string {
	return []string{
		TypeBoolean,
		TypeInteger,
		TypeDouble,
		TypeString,
	}
}
