cloudwatchlogs

package
v2.0.0-preview.1+incom... Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 21, 2017 License: Apache-2.0, Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package cloudwatchlogs provides the client and types for making API requests to Amazon CloudWatch Logs.

You can use Amazon CloudWatch Logs to monitor, store, and access your log files from Amazon EC2 instances, AWS CloudTrail, or other sources. You can then retrieve the associated log data from CloudWatch Logs using the CloudWatch console, CloudWatch Logs commands in the AWS CLI, CloudWatch Logs API, or CloudWatch Logs SDK.

You can use CloudWatch Logs to:

  • Monitor logs from EC2 instances in real-time: You can use CloudWatch Logs to monitor applications and systems using log data. For example, CloudWatch Logs can track the number of errors that occur in your application logs and send you a notification whenever the rate of errors exceeds a threshold that you specify. CloudWatch Logs uses your log data for monitoring; so, no code changes are required. For example, you can monitor application logs for specific literal terms (such as "NullReferenceException") or count the number of occurrences of a literal term at a particular position in log data (such as "404" status codes in an Apache access log). When the term you are searching for is found, CloudWatch Logs reports the data to a CloudWatch metric that you specify.

  • Monitor AWS CloudTrail logged events: You can create alarms in CloudWatch and receive notifications of particular API activity as captured by CloudTrail and use the notification to perform troubleshooting.

  • Archive log data: You can use CloudWatch Logs to store your log data in highly durable storage. You can change the log retention setting so that any log events older than this setting are automatically deleted. The CloudWatch Logs agent makes it easy to quickly send both rotated and non-rotated log data off of a host and into the log service. You can then access the raw log data when you need it.

See https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28 for more information on this service.

See cloudwatchlogs package documentation for more information. https://docs.aws.amazon.com/sdk-for-go/api/service/cloudwatchlogs/

Using the Client

To Amazon CloudWatch Logs with the SDK use the New function to create a new service client. With that client you can make API requests to the service. These clients are safe to use concurrently.

See the SDK's documentation for more information on how to use the SDK. https://docs.aws.amazon.com/sdk-for-go/api/

See aws.Config documentation for more information on configuring SDK clients. https://docs.aws.amazon.com/sdk-for-go/api/aws/#Config

See the Amazon CloudWatch Logs client CloudWatchLogs for more information on creating client for this service. https://docs.aws.amazon.com/sdk-for-go/api/service/cloudwatchlogs/#New

Index

Constants

View Source
const (

	// ErrCodeDataAlreadyAcceptedException for service response error code
	// "DataAlreadyAcceptedException".
	//
	// The event was already logged.
	ErrCodeDataAlreadyAcceptedException = "DataAlreadyAcceptedException"

	// ErrCodeInvalidOperationException for service response error code
	// "InvalidOperationException".
	//
	// The operation is not valid on the specified resource.
	ErrCodeInvalidOperationException = "InvalidOperationException"

	// ErrCodeInvalidParameterException for service response error code
	// "InvalidParameterException".
	//
	// A parameter is specified incorrectly.
	ErrCodeInvalidParameterException = "InvalidParameterException"

	// ErrCodeInvalidSequenceTokenException for service response error code
	// "InvalidSequenceTokenException".
	//
	// The sequence token is not valid.
	ErrCodeInvalidSequenceTokenException = "InvalidSequenceTokenException"

	// ErrCodeLimitExceededException for service response error code
	// "LimitExceededException".
	//
	// You have reached the maximum number of resources that can be created.
	ErrCodeLimitExceededException = "LimitExceededException"

	// ErrCodeOperationAbortedException for service response error code
	// "OperationAbortedException".
	//
	// Multiple requests to update the same resource were in conflict.
	ErrCodeOperationAbortedException = "OperationAbortedException"

	// ErrCodeResourceAlreadyExistsException for service response error code
	// "ResourceAlreadyExistsException".
	//
	// The specified resource already exists.
	ErrCodeResourceAlreadyExistsException = "ResourceAlreadyExistsException"

	// ErrCodeResourceNotFoundException for service response error code
	// "ResourceNotFoundException".
	//
	// The specified resource does not exist.
	ErrCodeResourceNotFoundException = "ResourceNotFoundException"

	// ErrCodeServiceUnavailableException for service response error code
	// "ServiceUnavailableException".
	//
	// The service cannot complete the request.
	ErrCodeServiceUnavailableException = "ServiceUnavailableException"
)
View Source
const (
	ServiceName = "logs"      // Service endpoint prefix API calls made to.
	EndpointsID = ServiceName // Service ID for Regions and Endpoints metadata.
)

Service information constants

Variables

This section is empty.

Functions

This section is empty.

Types

type AssociateKmsKeyInput

type AssociateKmsKeyInput struct {

	// The Amazon Resource Name (ARN) of the CMK to use when encrypting log data.
	// For more information, see Amazon Resource Names - AWS Key Management Service
	// (AWS KMS) (http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html#arn-syntax-kms).
	//
	// KmsKeyId is a required field
	KmsKeyId *string `locationName:"kmsKeyId" 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"`
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/AssociateKmsKeyRequest

func (AssociateKmsKeyInput) GoString

func (s AssociateKmsKeyInput) GoString() string

GoString returns the string representation

func (*AssociateKmsKeyInput) SetKmsKeyId

SetKmsKeyId sets the KmsKeyId field's value.

func (*AssociateKmsKeyInput) SetLogGroupName

func (s *AssociateKmsKeyInput) SetLogGroupName(v string) *AssociateKmsKeyInput

SetLogGroupName sets the LogGroupName field's value.

func (AssociateKmsKeyInput) String

func (s AssociateKmsKeyInput) String() string

String returns the string representation

func (*AssociateKmsKeyInput) Validate

func (s *AssociateKmsKeyInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type AssociateKmsKeyOutput

type AssociateKmsKeyOutput struct {
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/AssociateKmsKeyOutput

func (AssociateKmsKeyOutput) GoString

func (s AssociateKmsKeyOutput) GoString() string

GoString returns the string representation

func (AssociateKmsKeyOutput) SDKResponseMetadata

func (s AssociateKmsKeyOutput) SDKResponseMetadata() aws.Response

SDKResponseMetdata return sthe response metadata for the API.

func (AssociateKmsKeyOutput) String

func (s AssociateKmsKeyOutput) String() string

String returns the string representation

type AssociateKmsKeyRequest

type AssociateKmsKeyRequest struct {
	*aws.Request
	Input *AssociateKmsKeyInput
}

AssociateKmsKeyRequest is a API request type for the AssociateKmsKey API operation.

func (AssociateKmsKeyRequest) Send

Send marshals and sends the AssociateKmsKey API request.

type CancelExportTaskInput

type CancelExportTaskInput struct {

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

Please also see https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/CancelExportTaskRequest

func (CancelExportTaskInput) GoString

func (s CancelExportTaskInput) GoString() string

GoString returns the string representation

func (*CancelExportTaskInput) SetTaskId

SetTaskId sets the TaskId field's value.

func (CancelExportTaskInput) String

func (s CancelExportTaskInput) String() string

String returns the string representation

func (*CancelExportTaskInput) Validate

func (s *CancelExportTaskInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type CancelExportTaskOutput

type CancelExportTaskOutput struct {
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/CancelExportTaskOutput

func (CancelExportTaskOutput) GoString

func (s CancelExportTaskOutput) GoString() string

GoString returns the string representation

func (CancelExportTaskOutput) SDKResponseMetadata

func (s CancelExportTaskOutput) SDKResponseMetadata() aws.Response

SDKResponseMetdata return sthe response metadata for the API.

func (CancelExportTaskOutput) String

func (s CancelExportTaskOutput) String() string

String returns the string representation

type CancelExportTaskRequest

type CancelExportTaskRequest struct {
	*aws.Request
	Input *CancelExportTaskInput
}

CancelExportTaskRequest is a API request type for the CancelExportTask API operation.

func (CancelExportTaskRequest) Send

Send marshals and sends the CancelExportTask API request.

type CloudWatchLogs

type CloudWatchLogs struct {
	*aws.Client
}

CloudWatchLogs provides the API operation methods for making requests to Amazon CloudWatch Logs. See this package's package overview docs for details on the service.

CloudWatchLogs methods are safe to use concurrently. It is not safe to modify mutate any of the struct's properties though.

func New

func New(config aws.Config) *CloudWatchLogs

New creates a new instance of the CloudWatchLogs client with a config. If additional configuration is needed for the client instance use the optional aws.Config parameter to add your extra config.

Example:

// Create a CloudWatchLogs client from just a config.
svc := cloudwatchlogs.New(myConfig)

// Create a CloudWatchLogs client with additional configuration
svc := cloudwatchlogs.New(myConfig, aws.NewConfig().WithRegion("us-west-2"))

func (*CloudWatchLogs) AssociateKmsKeyRequest

func (c *CloudWatchLogs) AssociateKmsKeyRequest(input *AssociateKmsKeyInput) AssociateKmsKeyRequest

AssociateKmsKeyRequest returns a request value for making API operation for Amazon CloudWatch Logs.

Associates the specified AWS Key Management Service (AWS KMS) customer master key (CMK) with the specified log group.

Associating an AWS KMS CMK with a log group overrides any existing associations between the log group and a CMK. After a CMK is associated with a log group, all newly ingested data for the log group is encrypted using the CMK. This association is stored as long as the data encrypted with the CMK is still within Amazon CloudWatch Logs. This enables Amazon CloudWatch Logs to decrypt this data whenever it is requested.

Note that it can take up to 5 minutes for this operation to take effect.

If you attempt to associate a CMK with a log group but the CMK does not exist or the CMK is disabled, you will receive an InvalidParameterException error.

// Example sending a request using the AssociateKmsKeyRequest method.
req := client.AssociateKmsKeyRequest(params)
resp, err := req.Send()
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/AssociateKmsKey

func (*CloudWatchLogs) CancelExportTaskRequest

func (c *CloudWatchLogs) CancelExportTaskRequest(input *CancelExportTaskInput) CancelExportTaskRequest

CancelExportTaskRequest returns a request value for making API operation for Amazon CloudWatch Logs.

Cancels the specified export task.

The task must be in the PENDING or RUNNING state.

// Example sending a request using the CancelExportTaskRequest method.
req := client.CancelExportTaskRequest(params)
resp, err := req.Send()
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/CancelExportTask

func (*CloudWatchLogs) CreateExportTaskRequest

func (c *CloudWatchLogs) CreateExportTaskRequest(input *CreateExportTaskInput) CreateExportTaskRequest

CreateExportTaskRequest returns a request value for making API operation for Amazon CloudWatch Logs.

Creates an export task, which allows you to efficiently export data from a log group to an Amazon S3 bucket.

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 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.

You can export logs from multiple log groups or multiple time ranges to the same S3 bucket. To separate out log data for each export task, you can specify a prefix to be used as the Amazon S3 key prefix for all exported objects.

// Example sending a request using the CreateExportTaskRequest method.
req := client.CreateExportTaskRequest(params)
resp, err := req.Send()
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/CreateExportTask

func (*CloudWatchLogs) CreateLogGroupRequest

func (c *CloudWatchLogs) CreateLogGroupRequest(input *CreateLogGroupInput) CreateLogGroupRequest

CreateLogGroupRequest returns a request value for making API operation for Amazon CloudWatch Logs.

Creates a log group with the specified name.

You can create up to 5000 log groups per account.

You must use the following guidelines when naming a log group:

  • Log group names must be unique within a region for an AWS 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), and '.' (period).

If you associate a AWS Key Management Service (AWS KMS) customer master key (CMK) with the log group, ingested data is encrypted using the CMK. This association is stored as long as the data encrypted with the CMK is still within Amazon CloudWatch Logs. This enables Amazon CloudWatch Logs to decrypt this data whenever it is requested.

If you attempt to associate a CMK with the log group but the CMK does not exist or the CMK is disabled, you will receive an InvalidParameterException error.

// Example sending a request using the CreateLogGroupRequest method.
req := client.CreateLogGroupRequest(params)
resp, err := req.Send()
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/CreateLogGroup

func (*CloudWatchLogs) CreateLogStreamRequest

func (c *CloudWatchLogs) CreateLogStreamRequest(input *CreateLogStreamInput) CreateLogStreamRequest

CreateLogStreamRequest returns a request value for making API operation for Amazon CloudWatch Logs.

Creates a log stream for the specified log group.

There is no limit on the number of log streams that you can create for a log group.

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.

  • The ':' (colon) and '*' (asterisk) characters are not allowed.

    // Example sending a request using the CreateLogStreamRequest method. req := client.CreateLogStreamRequest(params) resp, err := req.Send() if err == nil { fmt.Println(resp) }

Please also see https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/CreateLogStream

func (*CloudWatchLogs) DeleteDestinationRequest

func (c *CloudWatchLogs) DeleteDestinationRequest(input *DeleteDestinationInput) DeleteDestinationRequest

DeleteDestinationRequest returns a request value for making 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.

// Example sending a request using the DeleteDestinationRequest method.
req := client.DeleteDestinationRequest(params)
resp, err := req.Send()
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DeleteDestination

func (*CloudWatchLogs) DeleteLogGroupRequest

func (c *CloudWatchLogs) DeleteLogGroupRequest(input *DeleteLogGroupInput) DeleteLogGroupRequest

DeleteLogGroupRequest returns a request value for making API operation for Amazon CloudWatch Logs.

Deletes the specified log group and permanently deletes all the archived log events associated with the log group.

// Example sending a request using the DeleteLogGroupRequest method.
req := client.DeleteLogGroupRequest(params)
resp, err := req.Send()
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DeleteLogGroup

func (*CloudWatchLogs) DeleteLogStreamRequest

func (c *CloudWatchLogs) DeleteLogStreamRequest(input *DeleteLogStreamInput) DeleteLogStreamRequest

DeleteLogStreamRequest returns a request value for making API operation for Amazon CloudWatch Logs.

Deletes the specified log stream and permanently deletes all the archived log events associated with the log stream.

// Example sending a request using the DeleteLogStreamRequest method.
req := client.DeleteLogStreamRequest(params)
resp, err := req.Send()
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DeleteLogStream

func (*CloudWatchLogs) DeleteMetricFilterRequest

func (c *CloudWatchLogs) DeleteMetricFilterRequest(input *DeleteMetricFilterInput) DeleteMetricFilterRequest

DeleteMetricFilterRequest returns a request value for making API operation for Amazon CloudWatch Logs.

Deletes the specified metric filter.

// Example sending a request using the DeleteMetricFilterRequest method.
req := client.DeleteMetricFilterRequest(params)
resp, err := req.Send()
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DeleteMetricFilter

func (*CloudWatchLogs) DeleteResourcePolicyRequest

func (c *CloudWatchLogs) DeleteResourcePolicyRequest(input *DeleteResourcePolicyInput) DeleteResourcePolicyRequest

DeleteResourcePolicyRequest returns a request value for making 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.

// Example sending a request using the DeleteResourcePolicyRequest method.
req := client.DeleteResourcePolicyRequest(params)
resp, err := req.Send()
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DeleteResourcePolicy

func (*CloudWatchLogs) DeleteRetentionPolicyRequest

func (c *CloudWatchLogs) DeleteRetentionPolicyRequest(input *DeleteRetentionPolicyInput) DeleteRetentionPolicyRequest

DeleteRetentionPolicyRequest returns a request value for making 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.

// Example sending a request using the DeleteRetentionPolicyRequest method.
req := client.DeleteRetentionPolicyRequest(params)
resp, err := req.Send()
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DeleteRetentionPolicy

func (*CloudWatchLogs) DeleteSubscriptionFilterRequest

func (c *CloudWatchLogs) DeleteSubscriptionFilterRequest(input *DeleteSubscriptionFilterInput) DeleteSubscriptionFilterRequest

DeleteSubscriptionFilterRequest returns a request value for making API operation for Amazon CloudWatch Logs.

Deletes the specified subscription filter.

// Example sending a request using the DeleteSubscriptionFilterRequest method.
req := client.DeleteSubscriptionFilterRequest(params)
resp, err := req.Send()
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DeleteSubscriptionFilter

func (*CloudWatchLogs) DescribeDestinationsPages

func (c *CloudWatchLogs) DescribeDestinationsPages(input *DescribeDestinationsInput, fn func(*DescribeDestinationsOutput, bool) bool) error

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 *DescribeDestinationsOutput, lastPage bool) bool {
        pageNum++
        fmt.Println(page)
        return pageNum <= 3
    })

func (*CloudWatchLogs) DescribeDestinationsPagesWithContext

func (c *CloudWatchLogs) DescribeDestinationsPagesWithContext(ctx aws.Context, input *DescribeDestinationsInput, fn func(*DescribeDestinationsOutput, bool) bool, opts ...aws.Option) error

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 (*CloudWatchLogs) DescribeDestinationsRequest

func (c *CloudWatchLogs) DescribeDestinationsRequest(input *DescribeDestinationsInput) DescribeDestinationsRequest

DescribeDestinationsRequest returns a request value for making API operation for Amazon CloudWatch Logs.

Lists all your destinations. The results are ASCII-sorted by destination name.

// Example sending a request using the DescribeDestinationsRequest method.
req := client.DescribeDestinationsRequest(params)
resp, err := req.Send()
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DescribeDestinations

func (*CloudWatchLogs) DescribeExportTasksRequest

func (c *CloudWatchLogs) DescribeExportTasksRequest(input *DescribeExportTasksInput) DescribeExportTasksRequest

DescribeExportTasksRequest returns a request value for making 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.

// Example sending a request using the DescribeExportTasksRequest method.
req := client.DescribeExportTasksRequest(params)
resp, err := req.Send()
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DescribeExportTasks

func (*CloudWatchLogs) DescribeLogGroupsPages

func (c *CloudWatchLogs) DescribeLogGroupsPages(input *DescribeLogGroupsInput, fn func(*DescribeLogGroupsOutput, bool) bool) error

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 *DescribeLogGroupsOutput, lastPage bool) bool {
        pageNum++
        fmt.Println(page)
        return pageNum <= 3
    })

func (*CloudWatchLogs) DescribeLogGroupsPagesWithContext

func (c *CloudWatchLogs) DescribeLogGroupsPagesWithContext(ctx aws.Context, input *DescribeLogGroupsInput, fn func(*DescribeLogGroupsOutput, bool) bool, opts ...aws.Option) error

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 (*CloudWatchLogs) DescribeLogGroupsRequest

func (c *CloudWatchLogs) DescribeLogGroupsRequest(input *DescribeLogGroupsInput) DescribeLogGroupsRequest

DescribeLogGroupsRequest returns a request value for making API operation for Amazon CloudWatch Logs.

Lists the specified log groups. You can list all your log groups or filter the results by prefix. The results are ASCII-sorted by log group name.

// Example sending a request using the DescribeLogGroupsRequest method.
req := client.DescribeLogGroupsRequest(params)
resp, err := req.Send()
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DescribeLogGroups

func (*CloudWatchLogs) DescribeLogStreamsPages

func (c *CloudWatchLogs) DescribeLogStreamsPages(input *DescribeLogStreamsInput, fn func(*DescribeLogStreamsOutput, bool) bool) error

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 *DescribeLogStreamsOutput, lastPage bool) bool {
        pageNum++
        fmt.Println(page)
        return pageNum <= 3
    })

func (*CloudWatchLogs) DescribeLogStreamsPagesWithContext

func (c *CloudWatchLogs) DescribeLogStreamsPagesWithContext(ctx aws.Context, input *DescribeLogStreamsInput, fn func(*DescribeLogStreamsOutput, bool) bool, opts ...aws.Option) error

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 (*CloudWatchLogs) DescribeLogStreamsRequest

func (c *CloudWatchLogs) DescribeLogStreamsRequest(input *DescribeLogStreamsInput) DescribeLogStreamsRequest

DescribeLogStreamsRequest returns a request value for making 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.

This operation has a limit of five transactions per second, after which transactions are throttled.

// Example sending a request using the DescribeLogStreamsRequest method.
req := client.DescribeLogStreamsRequest(params)
resp, err := req.Send()
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DescribeLogStreams

func (*CloudWatchLogs) DescribeMetricFiltersPages

func (c *CloudWatchLogs) DescribeMetricFiltersPages(input *DescribeMetricFiltersInput, fn func(*DescribeMetricFiltersOutput, bool) bool) error

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 *DescribeMetricFiltersOutput, lastPage bool) bool {
        pageNum++
        fmt.Println(page)
        return pageNum <= 3
    })

func (*CloudWatchLogs) DescribeMetricFiltersPagesWithContext

func (c *CloudWatchLogs) DescribeMetricFiltersPagesWithContext(ctx aws.Context, input *DescribeMetricFiltersInput, fn func(*DescribeMetricFiltersOutput, bool) bool, opts ...aws.Option) error

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 (*CloudWatchLogs) DescribeMetricFiltersRequest

func (c *CloudWatchLogs) DescribeMetricFiltersRequest(input *DescribeMetricFiltersInput) DescribeMetricFiltersRequest

DescribeMetricFiltersRequest returns a request value for making API operation for Amazon CloudWatch Logs.

Lists the specified metric filters. You can list all the metric filters or filter the results by log name, prefix, metric name, or metric namespace. The results are ASCII-sorted by filter name.

// Example sending a request using the DescribeMetricFiltersRequest method.
req := client.DescribeMetricFiltersRequest(params)
resp, err := req.Send()
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DescribeMetricFilters

func (*CloudWatchLogs) DescribeResourcePoliciesRequest

func (c *CloudWatchLogs) DescribeResourcePoliciesRequest(input *DescribeResourcePoliciesInput) DescribeResourcePoliciesRequest

DescribeResourcePoliciesRequest returns a request value for making API operation for Amazon CloudWatch Logs.

Lists the resource policies in this account.

// Example sending a request using the DescribeResourcePoliciesRequest method.
req := client.DescribeResourcePoliciesRequest(params)
resp, err := req.Send()
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DescribeResourcePolicies

func (*CloudWatchLogs) DescribeSubscriptionFiltersPages

func (c *CloudWatchLogs) DescribeSubscriptionFiltersPages(input *DescribeSubscriptionFiltersInput, fn func(*DescribeSubscriptionFiltersOutput, bool) bool) error

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 *DescribeSubscriptionFiltersOutput, lastPage bool) bool {
        pageNum++
        fmt.Println(page)
        return pageNum <= 3
    })

func (*CloudWatchLogs) DescribeSubscriptionFiltersPagesWithContext

func (c *CloudWatchLogs) DescribeSubscriptionFiltersPagesWithContext(ctx aws.Context, input *DescribeSubscriptionFiltersInput, fn func(*DescribeSubscriptionFiltersOutput, bool) bool, opts ...aws.Option) error

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 (*CloudWatchLogs) DescribeSubscriptionFiltersRequest

func (c *CloudWatchLogs) DescribeSubscriptionFiltersRequest(input *DescribeSubscriptionFiltersInput) DescribeSubscriptionFiltersRequest

DescribeSubscriptionFiltersRequest returns a request value for making 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.

// Example sending a request using the DescribeSubscriptionFiltersRequest method.
req := client.DescribeSubscriptionFiltersRequest(params)
resp, err := req.Send()
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DescribeSubscriptionFilters

func (*CloudWatchLogs) DisassociateKmsKeyRequest

func (c *CloudWatchLogs) DisassociateKmsKeyRequest(input *DisassociateKmsKeyInput) DisassociateKmsKeyRequest

DisassociateKmsKeyRequest returns a request value for making API operation for Amazon CloudWatch Logs.

Disassociates the associated AWS Key Management Service (AWS KMS) customer master key (CMK) from the specified log group.

After the AWS KMS CMK is disassociated from the log group, AWS CloudWatch Logs stops encrypting newly ingested data for the log group. All previously ingested data remains encrypted, and AWS CloudWatch Logs requires permissions for the CMK whenever the encrypted data is requested.

Note that it can take up to 5 minutes for this operation to take effect.

// Example sending a request using the DisassociateKmsKeyRequest method.
req := client.DisassociateKmsKeyRequest(params)
resp, err := req.Send()
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DisassociateKmsKey

func (*CloudWatchLogs) FilterLogEventsPages

func (c *CloudWatchLogs) FilterLogEventsPages(input *FilterLogEventsInput, fn func(*FilterLogEventsOutput, bool) bool) error

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 *FilterLogEventsOutput, lastPage bool) bool {
        pageNum++
        fmt.Println(page)
        return pageNum <= 3
    })

func (*CloudWatchLogs) FilterLogEventsPagesWithContext

func (c *CloudWatchLogs) FilterLogEventsPagesWithContext(ctx aws.Context, input *FilterLogEventsInput, fn func(*FilterLogEventsOutput, bool) bool, opts ...aws.Option) error

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 (*CloudWatchLogs) FilterLogEventsRequest

func (c *CloudWatchLogs) FilterLogEventsRequest(input *FilterLogEventsInput) FilterLogEventsRequest

FilterLogEventsRequest returns a request value for making 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 a filter pattern, a time range, and the name of the log stream.

By default, this operation returns as many log events as can fit in 1 MB (up to 10,000 log events), or all the events found within the time range that you specify. If the results include a token, then there are more log events available, and you can get additional results by specifying the token in a subsequent call.

// Example sending a request using the FilterLogEventsRequest method.
req := client.FilterLogEventsRequest(params)
resp, err := req.Send()
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/FilterLogEvents

func (*CloudWatchLogs) GetLogEventsPages

func (c *CloudWatchLogs) GetLogEventsPages(input *GetLogEventsInput, fn func(*GetLogEventsOutput, bool) bool) error

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 *GetLogEventsOutput, lastPage bool) bool {
        pageNum++
        fmt.Println(page)
        return pageNum <= 3
    })

func (*CloudWatchLogs) GetLogEventsPagesWithContext

func (c *CloudWatchLogs) GetLogEventsPagesWithContext(ctx aws.Context, input *GetLogEventsInput, fn func(*GetLogEventsOutput, bool) bool, opts ...aws.Option) error

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 (*CloudWatchLogs) GetLogEventsRequest

func (c *CloudWatchLogs) GetLogEventsRequest(input *GetLogEventsInput) GetLogEventsRequest

GetLogEventsRequest returns a request value for making API operation for Amazon CloudWatch Logs.

Lists log events from the specified log stream. You can list all the log events or filter using a time range.

By default, this operation returns as many log events as can fit in a response size of 1MB (up to 10,000 log events). You can get additional log events by specifying one of the tokens in a subsequent call.

// Example sending a request using the GetLogEventsRequest method.
req := client.GetLogEventsRequest(params)
resp, err := req.Send()
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/GetLogEvents

func (*CloudWatchLogs) ListTagsLogGroupRequest

func (c *CloudWatchLogs) ListTagsLogGroupRequest(input *ListTagsLogGroupInput) ListTagsLogGroupRequest

ListTagsLogGroupRequest returns a request value for making API operation for Amazon CloudWatch Logs.

Lists the tags for the specified log group.

// Example sending a request using the ListTagsLogGroupRequest method.
req := client.ListTagsLogGroupRequest(params)
resp, err := req.Send()
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/ListTagsLogGroup

func (*CloudWatchLogs) PutDestinationPolicyRequest

func (c *CloudWatchLogs) PutDestinationPolicyRequest(input *PutDestinationPolicyInput) PutDestinationPolicyRequest

PutDestinationPolicyRequest returns a request value for making API operation for Amazon CloudWatch Logs.

Creates or updates an access policy associated with an existing destination. An access policy is an IAM policy document (http://docs.aws.amazon.com/IAM/latest/UserGuide/policies_overview.html) that is used to authorize claims to register a subscription filter against a given destination.

// Example sending a request using the PutDestinationPolicyRequest method.
req := client.PutDestinationPolicyRequest(params)
resp, err := req.Send()
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/PutDestinationPolicy

func (*CloudWatchLogs) PutDestinationRequest

func (c *CloudWatchLogs) PutDestinationRequest(input *PutDestinationInput) PutDestinationRequest

PutDestinationRequest returns a request value for making API operation for Amazon CloudWatch Logs.

Creates or updates a destination. A destination encapsulates a physical resource (such as an Amazon Kinesis stream) and enables you to subscribe to a real-time stream of log events for a different account, ingested using PutLogEvents. Currently, the only supported physical resource is a Kinesis stream belonging to the same account as the destination.

Through an access policy, a destination controls what is written to its Kinesis stream. By default, PutDestination does not set any access policy with the destination, which means a cross-account user cannot call PutSubscriptionFilter against this destination. To enable this, the destination owner must call PutDestinationPolicy after PutDestination.

// Example sending a request using the PutDestinationRequest method.
req := client.PutDestinationRequest(params)
resp, err := req.Send()
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/PutDestination

func (*CloudWatchLogs) PutLogEventsRequest

func (c *CloudWatchLogs) PutLogEventsRequest(input *PutLogEventsInput) PutLogEventsRequest

PutLogEventsRequest returns a request value for making API operation for Amazon CloudWatch Logs.

Uploads a batch of log events to the specified log stream.

You must include the sequence token obtained from the response of the previous call. An upload in a newly created log stream does not require a sequence token. You can also get the sequence token using DescribeLogStreams. If you call PutLogEvents twice within a narrow time period using the same value for sequenceToken, both calls may be successful, or one may be rejected.

The batch of events must satisfy the following constraints:

  • The maximum batch size is 1,048,576 bytes, and 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 older than 14 days or the retention period of the log group.

  • The log events in the batch must be in chronological ordered by their time stamp (the time the event occurred, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC).

  • The maximum number of log events in a batch is 10,000.

  • A batch of log events in a single request cannot span more than 24 hours. Otherwise, the operation fails.

    // Example sending a request using the PutLogEventsRequest method. req := client.PutLogEventsRequest(params) resp, err := req.Send() if err == nil { fmt.Println(resp) }

Please also see https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/PutLogEvents

func (*CloudWatchLogs) PutMetricFilterRequest

func (c *CloudWatchLogs) PutMetricFilterRequest(input *PutMetricFilterInput) PutMetricFilterRequest

PutMetricFilterRequest returns a request value for making API operation for Amazon CloudWatch Logs.

Creates or updates a metric filter and associates it with the specified log group. Metric filters allow you to configure rules to extract metric data from log events ingested through PutLogEvents.

The maximum number of metric filters that can be associated with a log group is 100.

// Example sending a request using the PutMetricFilterRequest method.
req := client.PutMetricFilterRequest(params)
resp, err := req.Send()
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/PutMetricFilter

func (*CloudWatchLogs) PutResourcePolicyRequest

func (c *CloudWatchLogs) PutResourcePolicyRequest(input *PutResourcePolicyInput) PutResourcePolicyRequest

PutResourcePolicyRequest returns a request value for making API operation for Amazon CloudWatch Logs.

Creates or updates a resource policy allowing other AWS services to put log events to this account, such as Amazon Route 53. An account can have up to 50 resource policies per region.

// Example sending a request using the PutResourcePolicyRequest method.
req := client.PutResourcePolicyRequest(params)
resp, err := req.Send()
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/PutResourcePolicy

func (*CloudWatchLogs) PutRetentionPolicyRequest

func (c *CloudWatchLogs) PutRetentionPolicyRequest(input *PutRetentionPolicyInput) PutRetentionPolicyRequest

PutRetentionPolicyRequest returns a request value for making API operation for Amazon CloudWatch Logs.

Sets the retention of the specified log group. A retention policy allows you to configure the number of days for which to retain log events in the specified log group.

// Example sending a request using the PutRetentionPolicyRequest method.
req := client.PutRetentionPolicyRequest(params)
resp, err := req.Send()
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/PutRetentionPolicy

func (*CloudWatchLogs) PutSubscriptionFilterRequest

func (c *CloudWatchLogs) PutSubscriptionFilterRequest(input *PutSubscriptionFilterInput) PutSubscriptionFilterRequest

PutSubscriptionFilterRequest returns a request value for making API operation for Amazon CloudWatch Logs.

Creates or updates a subscription filter and associates it with the specified log group. Subscription filters allow you to subscribe to a real-time stream of log events ingested through PutLogEvents and have them delivered to a specific destination. 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 that belongs to a different account, for cross-account delivery.

  • An Amazon Kinesis Firehose delivery stream that belongs to the same account as the subscription filter, for same-account delivery.

  • An AWS Lambda function that belongs to the same account as the subscription filter, for same-account delivery.

There can only be one subscription filter associated with a log group. If you are updating an existing filter, you must specify the correct name in filterName. Otherwise, the call fails because you cannot associate a second filter with a log group.

// Example sending a request using the PutSubscriptionFilterRequest method.
req := client.PutSubscriptionFilterRequest(params)
resp, err := req.Send()
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/PutSubscriptionFilter

func (*CloudWatchLogs) TagLogGroupRequest

func (c *CloudWatchLogs) TagLogGroupRequest(input *TagLogGroupInput) TagLogGroupRequest

TagLogGroupRequest returns a request value for making API operation for Amazon CloudWatch Logs.

Adds or updates the specified tags for the specified log group.

To list the tags for a log group, use ListTagsLogGroup. To remove tags, use UntagLogGroup.

For more information about tags, see Tag Log Groups in Amazon CloudWatch Logs (http://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/log-group-tagging.html) in the Amazon CloudWatch Logs User Guide.

// Example sending a request using the TagLogGroupRequest method.
req := client.TagLogGroupRequest(params)
resp, err := req.Send()
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/TagLogGroup

func (*CloudWatchLogs) TestMetricFilterRequest

func (c *CloudWatchLogs) TestMetricFilterRequest(input *TestMetricFilterInput) TestMetricFilterRequest

TestMetricFilterRequest returns a request value for making 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.

// Example sending a request using the TestMetricFilterRequest method.
req := client.TestMetricFilterRequest(params)
resp, err := req.Send()
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/TestMetricFilter

func (*CloudWatchLogs) UntagLogGroupRequest

func (c *CloudWatchLogs) UntagLogGroupRequest(input *UntagLogGroupInput) UntagLogGroupRequest

UntagLogGroupRequest returns a request value for making API operation for Amazon CloudWatch Logs.

Removes the specified tags from the specified log group.

To list the tags for a log group, use ListTagsLogGroup. To add tags, use UntagLogGroup.

// Example sending a request using the UntagLogGroupRequest method.
req := client.UntagLogGroupRequest(params)
resp, err := req.Send()
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/UntagLogGroup

type CreateExportTaskInput

type CreateExportTaskInput struct {

	// The name of S3 bucket for the exported log data. The bucket must be in the
	// same AWS 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.
	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 time stamp 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 time stamp later than this
	// time are not exported.
	//
	// To is a required field
	To *int64 `locationName:"to" type:"long" required:"true"`
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/CreateExportTaskRequest

func (CreateExportTaskInput) GoString

func (s CreateExportTaskInput) GoString() string

GoString returns the string representation

func (*CreateExportTaskInput) SetDestination

func (s *CreateExportTaskInput) SetDestination(v string) *CreateExportTaskInput

SetDestination sets the Destination field's value.

func (*CreateExportTaskInput) SetDestinationPrefix

func (s *CreateExportTaskInput) SetDestinationPrefix(v string) *CreateExportTaskInput

SetDestinationPrefix sets the DestinationPrefix field's value.

func (*CreateExportTaskInput) SetFrom

SetFrom sets the From field's value.

func (*CreateExportTaskInput) SetLogGroupName

func (s *CreateExportTaskInput) SetLogGroupName(v string) *CreateExportTaskInput

SetLogGroupName sets the LogGroupName field's value.

func (*CreateExportTaskInput) SetLogStreamNamePrefix

func (s *CreateExportTaskInput) SetLogStreamNamePrefix(v string) *CreateExportTaskInput

SetLogStreamNamePrefix sets the LogStreamNamePrefix field's value.

func (*CreateExportTaskInput) SetTaskName

SetTaskName sets the TaskName field's value.

func (*CreateExportTaskInput) SetTo

SetTo sets the To field's value.

func (CreateExportTaskInput) String

func (s CreateExportTaskInput) String() string

String returns the string representation

func (*CreateExportTaskInput) Validate

func (s *CreateExportTaskInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type CreateExportTaskOutput

type CreateExportTaskOutput struct {

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

Please also see https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/CreateExportTaskResponse

func (CreateExportTaskOutput) GoString

func (s CreateExportTaskOutput) GoString() string

GoString returns the string representation

func (CreateExportTaskOutput) SDKResponseMetadata

func (s CreateExportTaskOutput) SDKResponseMetadata() aws.Response

SDKResponseMetdata return sthe response metadata for the API.

func (*CreateExportTaskOutput) SetTaskId

SetTaskId sets the TaskId field's value.

func (CreateExportTaskOutput) String

func (s CreateExportTaskOutput) String() string

String returns the string representation

type CreateExportTaskRequest

type CreateExportTaskRequest struct {
	*aws.Request
	Input *CreateExportTaskInput
}

CreateExportTaskRequest is a API request type for the CreateExportTask API operation.

func (CreateExportTaskRequest) Send

Send marshals and sends the CreateExportTask API request.

type CreateLogGroupInput

type CreateLogGroupInput struct {

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

	// 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 map[string]string `locationName:"tags" min:"1" type:"map"`
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/CreateLogGroupRequest

func (CreateLogGroupInput) GoString

func (s CreateLogGroupInput) GoString() string

GoString returns the string representation

func (*CreateLogGroupInput) SetKmsKeyId

func (s *CreateLogGroupInput) SetKmsKeyId(v string) *CreateLogGroupInput

SetKmsKeyId sets the KmsKeyId field's value.

func (*CreateLogGroupInput) SetLogGroupName

func (s *CreateLogGroupInput) SetLogGroupName(v string) *CreateLogGroupInput

SetLogGroupName sets the LogGroupName field's value.

func (*CreateLogGroupInput) SetTags

SetTags sets the Tags field's value.

func (CreateLogGroupInput) String

func (s CreateLogGroupInput) String() string

String returns the string representation

func (*CreateLogGroupInput) Validate

func (s *CreateLogGroupInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type CreateLogGroupOutput

type CreateLogGroupOutput struct {
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/CreateLogGroupOutput

func (CreateLogGroupOutput) GoString

func (s CreateLogGroupOutput) GoString() string

GoString returns the string representation

func (CreateLogGroupOutput) SDKResponseMetadata

func (s CreateLogGroupOutput) SDKResponseMetadata() aws.Response

SDKResponseMetdata return sthe response metadata for the API.

func (CreateLogGroupOutput) String

func (s CreateLogGroupOutput) String() string

String returns the string representation

type CreateLogGroupRequest

type CreateLogGroupRequest struct {
	*aws.Request
	Input *CreateLogGroupInput
}

CreateLogGroupRequest is a API request type for the CreateLogGroup API operation.

func (CreateLogGroupRequest) Send

Send marshals and sends the CreateLogGroup API request.

type CreateLogStreamInput

type CreateLogStreamInput struct {

	// 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"`
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/CreateLogStreamRequest

func (CreateLogStreamInput) GoString

func (s CreateLogStreamInput) GoString() string

GoString returns the string representation

func (*CreateLogStreamInput) SetLogGroupName

func (s *CreateLogStreamInput) SetLogGroupName(v string) *CreateLogStreamInput

SetLogGroupName sets the LogGroupName field's value.

func (*CreateLogStreamInput) SetLogStreamName

func (s *CreateLogStreamInput) SetLogStreamName(v string) *CreateLogStreamInput

SetLogStreamName sets the LogStreamName field's value.

func (CreateLogStreamInput) String

func (s CreateLogStreamInput) String() string

String returns the string representation

func (*CreateLogStreamInput) Validate

func (s *CreateLogStreamInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type CreateLogStreamOutput

type CreateLogStreamOutput struct {
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/CreateLogStreamOutput

func (CreateLogStreamOutput) GoString

func (s CreateLogStreamOutput) GoString() string

GoString returns the string representation

func (CreateLogStreamOutput) SDKResponseMetadata

func (s CreateLogStreamOutput) SDKResponseMetadata() aws.Response

SDKResponseMetdata return sthe response metadata for the API.

func (CreateLogStreamOutput) String

func (s CreateLogStreamOutput) String() string

String returns the string representation

type CreateLogStreamRequest

type CreateLogStreamRequest struct {
	*aws.Request
	Input *CreateLogStreamInput
}

CreateLogStreamRequest is a API request type for the CreateLogStream API operation.

func (CreateLogStreamRequest) Send

Send marshals and sends the CreateLogStream API request.

type DeleteDestinationInput

type DeleteDestinationInput struct {

	// The name of the destination.
	//
	// DestinationName is a required field
	DestinationName *string `locationName:"destinationName" min:"1" type:"string" required:"true"`
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DeleteDestinationRequest

func (DeleteDestinationInput) GoString

func (s DeleteDestinationInput) GoString() string

GoString returns the string representation

func (*DeleteDestinationInput) SetDestinationName

func (s *DeleteDestinationInput) SetDestinationName(v string) *DeleteDestinationInput

SetDestinationName sets the DestinationName field's value.

func (DeleteDestinationInput) String

func (s DeleteDestinationInput) String() string

String returns the string representation

func (*DeleteDestinationInput) Validate

func (s *DeleteDestinationInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type DeleteDestinationOutput

type DeleteDestinationOutput struct {
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DeleteDestinationOutput

func (DeleteDestinationOutput) GoString

func (s DeleteDestinationOutput) GoString() string

GoString returns the string representation

func (DeleteDestinationOutput) SDKResponseMetadata

func (s DeleteDestinationOutput) SDKResponseMetadata() aws.Response

SDKResponseMetdata return sthe response metadata for the API.

func (DeleteDestinationOutput) String

func (s DeleteDestinationOutput) String() string

String returns the string representation

type DeleteDestinationRequest

type DeleteDestinationRequest struct {
	*aws.Request
	Input *DeleteDestinationInput
}

DeleteDestinationRequest is a API request type for the DeleteDestination API operation.

func (DeleteDestinationRequest) Send

Send marshals and sends the DeleteDestination API request.

type DeleteLogGroupInput

type DeleteLogGroupInput struct {

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

Please also see https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DeleteLogGroupRequest

func (DeleteLogGroupInput) GoString

func (s DeleteLogGroupInput) GoString() string

GoString returns the string representation

func (*DeleteLogGroupInput) SetLogGroupName

func (s *DeleteLogGroupInput) SetLogGroupName(v string) *DeleteLogGroupInput

SetLogGroupName sets the LogGroupName field's value.

func (DeleteLogGroupInput) String

func (s DeleteLogGroupInput) String() string

String returns the string representation

func (*DeleteLogGroupInput) Validate

func (s *DeleteLogGroupInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type DeleteLogGroupOutput

type DeleteLogGroupOutput struct {
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DeleteLogGroupOutput

func (DeleteLogGroupOutput) GoString

func (s DeleteLogGroupOutput) GoString() string

GoString returns the string representation

func (DeleteLogGroupOutput) SDKResponseMetadata

func (s DeleteLogGroupOutput) SDKResponseMetadata() aws.Response

SDKResponseMetdata return sthe response metadata for the API.

func (DeleteLogGroupOutput) String

func (s DeleteLogGroupOutput) String() string

String returns the string representation

type DeleteLogGroupRequest

type DeleteLogGroupRequest struct {
	*aws.Request
	Input *DeleteLogGroupInput
}

DeleteLogGroupRequest is a API request type for the DeleteLogGroup API operation.

func (DeleteLogGroupRequest) Send

Send marshals and sends the DeleteLogGroup API request.

type DeleteLogStreamInput

type DeleteLogStreamInput struct {

	// 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"`
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DeleteLogStreamRequest

func (DeleteLogStreamInput) GoString

func (s DeleteLogStreamInput) GoString() string

GoString returns the string representation

func (*DeleteLogStreamInput) SetLogGroupName

func (s *DeleteLogStreamInput) SetLogGroupName(v string) *DeleteLogStreamInput

SetLogGroupName sets the LogGroupName field's value.

func (*DeleteLogStreamInput) SetLogStreamName

func (s *DeleteLogStreamInput) SetLogStreamName(v string) *DeleteLogStreamInput

SetLogStreamName sets the LogStreamName field's value.

func (DeleteLogStreamInput) String

func (s DeleteLogStreamInput) String() string

String returns the string representation

func (*DeleteLogStreamInput) Validate

func (s *DeleteLogStreamInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type DeleteLogStreamOutput

type DeleteLogStreamOutput struct {
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DeleteLogStreamOutput

func (DeleteLogStreamOutput) GoString

func (s DeleteLogStreamOutput) GoString() string

GoString returns the string representation

func (DeleteLogStreamOutput) SDKResponseMetadata

func (s DeleteLogStreamOutput) SDKResponseMetadata() aws.Response

SDKResponseMetdata return sthe response metadata for the API.

func (DeleteLogStreamOutput) String

func (s DeleteLogStreamOutput) String() string

String returns the string representation

type DeleteLogStreamRequest

type DeleteLogStreamRequest struct {
	*aws.Request
	Input *DeleteLogStreamInput
}

DeleteLogStreamRequest is a API request type for the DeleteLogStream API operation.

func (DeleteLogStreamRequest) Send

Send marshals and sends the DeleteLogStream API request.

type DeleteMetricFilterInput

type DeleteMetricFilterInput struct {

	// 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"`
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DeleteMetricFilterRequest

func (DeleteMetricFilterInput) GoString

func (s DeleteMetricFilterInput) GoString() string

GoString returns the string representation

func (*DeleteMetricFilterInput) SetFilterName

SetFilterName sets the FilterName field's value.

func (*DeleteMetricFilterInput) SetLogGroupName

SetLogGroupName sets the LogGroupName field's value.

func (DeleteMetricFilterInput) String

func (s DeleteMetricFilterInput) String() string

String returns the string representation

func (*DeleteMetricFilterInput) Validate

func (s *DeleteMetricFilterInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type DeleteMetricFilterOutput

type DeleteMetricFilterOutput struct {
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DeleteMetricFilterOutput

func (DeleteMetricFilterOutput) GoString

func (s DeleteMetricFilterOutput) GoString() string

GoString returns the string representation

func (DeleteMetricFilterOutput) SDKResponseMetadata

func (s DeleteMetricFilterOutput) SDKResponseMetadata() aws.Response

SDKResponseMetdata return sthe response metadata for the API.

func (DeleteMetricFilterOutput) String

func (s DeleteMetricFilterOutput) String() string

String returns the string representation

type DeleteMetricFilterRequest

type DeleteMetricFilterRequest struct {
	*aws.Request
	Input *DeleteMetricFilterInput
}

DeleteMetricFilterRequest is a API request type for the DeleteMetricFilter API operation.

func (DeleteMetricFilterRequest) Send

Send marshals and sends the DeleteMetricFilter API request.

type DeleteResourcePolicyInput

type DeleteResourcePolicyInput struct {

	// The name of the policy to be revoked. This parameter is required.
	PolicyName *string `locationName:"policyName" type:"string"`
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DeleteResourcePolicyRequest

func (DeleteResourcePolicyInput) GoString

func (s DeleteResourcePolicyInput) GoString() string

GoString returns the string representation

func (*DeleteResourcePolicyInput) SetPolicyName

SetPolicyName sets the PolicyName field's value.

func (DeleteResourcePolicyInput) String

func (s DeleteResourcePolicyInput) String() string

String returns the string representation

type DeleteResourcePolicyOutput

type DeleteResourcePolicyOutput struct {
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DeleteResourcePolicyOutput

func (DeleteResourcePolicyOutput) GoString

func (s DeleteResourcePolicyOutput) GoString() string

GoString returns the string representation

func (DeleteResourcePolicyOutput) SDKResponseMetadata

func (s DeleteResourcePolicyOutput) SDKResponseMetadata() aws.Response

SDKResponseMetdata return sthe response metadata for the API.

func (DeleteResourcePolicyOutput) String

String returns the string representation

type DeleteResourcePolicyRequest

type DeleteResourcePolicyRequest struct {
	*aws.Request
	Input *DeleteResourcePolicyInput
}

DeleteResourcePolicyRequest is a API request type for the DeleteResourcePolicy API operation.

func (DeleteResourcePolicyRequest) Send

Send marshals and sends the DeleteResourcePolicy API request.

type DeleteRetentionPolicyInput

type DeleteRetentionPolicyInput struct {

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

Please also see https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DeleteRetentionPolicyRequest

func (DeleteRetentionPolicyInput) GoString

func (s DeleteRetentionPolicyInput) GoString() string

GoString returns the string representation

func (*DeleteRetentionPolicyInput) SetLogGroupName

SetLogGroupName sets the LogGroupName field's value.

func (DeleteRetentionPolicyInput) String

String returns the string representation

func (*DeleteRetentionPolicyInput) Validate

func (s *DeleteRetentionPolicyInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type DeleteRetentionPolicyOutput

type DeleteRetentionPolicyOutput struct {
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DeleteRetentionPolicyOutput

func (DeleteRetentionPolicyOutput) GoString

func (s DeleteRetentionPolicyOutput) GoString() string

GoString returns the string representation

func (DeleteRetentionPolicyOutput) SDKResponseMetadata

func (s DeleteRetentionPolicyOutput) SDKResponseMetadata() aws.Response

SDKResponseMetdata return sthe response metadata for the API.

func (DeleteRetentionPolicyOutput) String

String returns the string representation

type DeleteRetentionPolicyRequest

type DeleteRetentionPolicyRequest struct {
	*aws.Request
	Input *DeleteRetentionPolicyInput
}

DeleteRetentionPolicyRequest is a API request type for the DeleteRetentionPolicy API operation.

func (DeleteRetentionPolicyRequest) Send

Send marshals and sends the DeleteRetentionPolicy API request.

type DeleteSubscriptionFilterInput

type DeleteSubscriptionFilterInput struct {

	// 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"`
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DeleteSubscriptionFilterRequest

func (DeleteSubscriptionFilterInput) GoString

GoString returns the string representation

func (*DeleteSubscriptionFilterInput) SetFilterName

SetFilterName sets the FilterName field's value.

func (*DeleteSubscriptionFilterInput) SetLogGroupName

SetLogGroupName sets the LogGroupName field's value.

func (DeleteSubscriptionFilterInput) String

String returns the string representation

func (*DeleteSubscriptionFilterInput) Validate

func (s *DeleteSubscriptionFilterInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type DeleteSubscriptionFilterOutput

type DeleteSubscriptionFilterOutput struct {
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DeleteSubscriptionFilterOutput

func (DeleteSubscriptionFilterOutput) GoString

GoString returns the string representation

func (DeleteSubscriptionFilterOutput) SDKResponseMetadata

func (s DeleteSubscriptionFilterOutput) SDKResponseMetadata() aws.Response

SDKResponseMetdata return sthe response metadata for the API.

func (DeleteSubscriptionFilterOutput) String

String returns the string representation

type DeleteSubscriptionFilterRequest

type DeleteSubscriptionFilterRequest struct {
	*aws.Request
	Input *DeleteSubscriptionFilterInput
}

DeleteSubscriptionFilterRequest is a API request type for the DeleteSubscriptionFilter API operation.

func (DeleteSubscriptionFilterRequest) Send

Send marshals and sends the DeleteSubscriptionFilter API request.

type DescribeDestinationsInput

type DescribeDestinationsInput struct {

	// 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
	// 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"`
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DescribeDestinationsRequest

func (DescribeDestinationsInput) GoString

func (s DescribeDestinationsInput) GoString() string

GoString returns the string representation

func (*DescribeDestinationsInput) SetDestinationNamePrefix

func (s *DescribeDestinationsInput) SetDestinationNamePrefix(v string) *DescribeDestinationsInput

SetDestinationNamePrefix sets the DestinationNamePrefix field's value.

func (*DescribeDestinationsInput) SetLimit

SetLimit sets the Limit field's value.

func (*DescribeDestinationsInput) SetNextToken

SetNextToken sets the NextToken field's value.

func (DescribeDestinationsInput) String

func (s DescribeDestinationsInput) String() string

String returns the string representation

func (*DescribeDestinationsInput) Validate

func (s *DescribeDestinationsInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type DescribeDestinationsOutput

type DescribeDestinationsOutput struct {

	// 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"`
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DescribeDestinationsResponse

func (DescribeDestinationsOutput) GoString

func (s DescribeDestinationsOutput) GoString() string

GoString returns the string representation

func (DescribeDestinationsOutput) SDKResponseMetadata

func (s DescribeDestinationsOutput) SDKResponseMetadata() aws.Response

SDKResponseMetdata return sthe response metadata for the API.

func (*DescribeDestinationsOutput) SetDestinations

SetDestinations sets the Destinations field's value.

func (*DescribeDestinationsOutput) SetNextToken

SetNextToken sets the NextToken field's value.

func (DescribeDestinationsOutput) String

String returns the string representation

type DescribeDestinationsRequest

type DescribeDestinationsRequest struct {
	*aws.Request
	Input *DescribeDestinationsInput
}

DescribeDestinationsRequest is a API request type for the DescribeDestinations API operation.

func (DescribeDestinationsRequest) Send

Send marshals and sends the DescribeDestinations API request.

type DescribeExportTasksInput

type DescribeExportTasksInput struct {

	// 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 ExportTaskStatusCode `locationName:"statusCode" type:"string" enum:"true"`

	// The ID of the export task. Specifying a task ID filters the results to zero
	// or one export tasks.
	TaskId *string `locationName:"taskId" min:"1" type:"string"`
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DescribeExportTasksRequest

func (DescribeExportTasksInput) GoString

func (s DescribeExportTasksInput) GoString() string

GoString returns the string representation

func (*DescribeExportTasksInput) SetLimit

SetLimit sets the Limit field's value.

func (*DescribeExportTasksInput) SetNextToken

SetNextToken sets the NextToken field's value.

func (*DescribeExportTasksInput) SetStatusCode

SetStatusCode sets the StatusCode field's value.

func (*DescribeExportTasksInput) SetTaskId

SetTaskId sets the TaskId field's value.

func (DescribeExportTasksInput) String

func (s DescribeExportTasksInput) String() string

String returns the string representation

func (*DescribeExportTasksInput) Validate

func (s *DescribeExportTasksInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type DescribeExportTasksOutput

type DescribeExportTasksOutput struct {

	// 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"`
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DescribeExportTasksResponse

func (DescribeExportTasksOutput) GoString

func (s DescribeExportTasksOutput) GoString() string

GoString returns the string representation

func (DescribeExportTasksOutput) SDKResponseMetadata

func (s DescribeExportTasksOutput) SDKResponseMetadata() aws.Response

SDKResponseMetdata return sthe response metadata for the API.

func (*DescribeExportTasksOutput) SetExportTasks

SetExportTasks sets the ExportTasks field's value.

func (*DescribeExportTasksOutput) SetNextToken

SetNextToken sets the NextToken field's value.

func (DescribeExportTasksOutput) String

func (s DescribeExportTasksOutput) String() string

String returns the string representation

type DescribeExportTasksRequest

type DescribeExportTasksRequest struct {
	*aws.Request
	Input *DescribeExportTasksInput
}

DescribeExportTasksRequest is a API request type for the DescribeExportTasks API operation.

func (DescribeExportTasksRequest) Send

Send marshals and sends the DescribeExportTasks API request.

type DescribeLogGroupsInput

type DescribeLogGroupsInput struct {

	// 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 prefix to match.
	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"`
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DescribeLogGroupsRequest

func (DescribeLogGroupsInput) GoString

func (s DescribeLogGroupsInput) GoString() string

GoString returns the string representation

func (*DescribeLogGroupsInput) SetLimit

SetLimit sets the Limit field's value.

func (*DescribeLogGroupsInput) SetLogGroupNamePrefix

func (s *DescribeLogGroupsInput) SetLogGroupNamePrefix(v string) *DescribeLogGroupsInput

SetLogGroupNamePrefix sets the LogGroupNamePrefix field's value.

func (*DescribeLogGroupsInput) SetNextToken

SetNextToken sets the NextToken field's value.

func (DescribeLogGroupsInput) String

func (s DescribeLogGroupsInput) String() string

String returns the string representation

func (*DescribeLogGroupsInput) Validate

func (s *DescribeLogGroupsInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type DescribeLogGroupsOutput

type DescribeLogGroupsOutput struct {

	// The log groups.
	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"`
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DescribeLogGroupsResponse

func (DescribeLogGroupsOutput) GoString

func (s DescribeLogGroupsOutput) GoString() string

GoString returns the string representation

func (DescribeLogGroupsOutput) SDKResponseMetadata

func (s DescribeLogGroupsOutput) SDKResponseMetadata() aws.Response

SDKResponseMetdata return sthe response metadata for the API.

func (*DescribeLogGroupsOutput) SetLogGroups

SetLogGroups sets the LogGroups field's value.

func (*DescribeLogGroupsOutput) SetNextToken

SetNextToken sets the NextToken field's value.

func (DescribeLogGroupsOutput) String

func (s DescribeLogGroupsOutput) String() string

String returns the string representation

type DescribeLogGroupsRequest

type DescribeLogGroupsRequest struct {
	*aws.Request
	Input *DescribeLogGroupsInput
}

DescribeLogGroupsRequest is a API request type for the DescribeLogGroups API operation.

func (DescribeLogGroupsRequest) Send

Send marshals and sends the DescribeLogGroups API request.

type DescribeLogStreamsInput

type DescribeLogStreamsInput struct {

	// 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"`

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

	// The prefix to match.
	//
	// iIf 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 may take longer in some rare situations.
	OrderBy OrderBy `locationName:"orderBy" type:"string" enum:"true"`
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DescribeLogStreamsRequest

func (DescribeLogStreamsInput) GoString

func (s DescribeLogStreamsInput) GoString() string

GoString returns the string representation

func (*DescribeLogStreamsInput) SetDescending

SetDescending sets the Descending field's value.

func (*DescribeLogStreamsInput) SetLimit

SetLimit sets the Limit field's value.

func (*DescribeLogStreamsInput) SetLogGroupName

SetLogGroupName sets the LogGroupName field's value.

func (*DescribeLogStreamsInput) SetLogStreamNamePrefix

func (s *DescribeLogStreamsInput) SetLogStreamNamePrefix(v string) *DescribeLogStreamsInput

SetLogStreamNamePrefix sets the LogStreamNamePrefix field's value.

func (*DescribeLogStreamsInput) SetNextToken

SetNextToken sets the NextToken field's value.

func (*DescribeLogStreamsInput) SetOrderBy

SetOrderBy sets the OrderBy field's value.

func (DescribeLogStreamsInput) String

func (s DescribeLogStreamsInput) String() string

String returns the string representation

func (*DescribeLogStreamsInput) Validate

func (s *DescribeLogStreamsInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type DescribeLogStreamsOutput

type DescribeLogStreamsOutput struct {

	// 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"`
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DescribeLogStreamsResponse

func (DescribeLogStreamsOutput) GoString

func (s DescribeLogStreamsOutput) GoString() string

GoString returns the string representation

func (DescribeLogStreamsOutput) SDKResponseMetadata

func (s DescribeLogStreamsOutput) SDKResponseMetadata() aws.Response

SDKResponseMetdata return sthe response metadata for the API.

func (*DescribeLogStreamsOutput) SetLogStreams

SetLogStreams sets the LogStreams field's value.

func (*DescribeLogStreamsOutput) SetNextToken

SetNextToken sets the NextToken field's value.

func (DescribeLogStreamsOutput) String

func (s DescribeLogStreamsOutput) String() string

String returns the string representation

type DescribeLogStreamsRequest

type DescribeLogStreamsRequest struct {
	*aws.Request
	Input *DescribeLogStreamsInput
}

DescribeLogStreamsRequest is a API request type for the DescribeLogStreams API operation.

func (DescribeLogStreamsRequest) Send

Send marshals and sends the DescribeLogStreams API request.

type DescribeMetricFiltersInput

type DescribeMetricFiltersInput struct {

	// The prefix to match.
	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"`

	// The name of the CloudWatch metric to which the monitored log information
	// should be published. For example, you may publish to a metric called ErrorCount.
	MetricName *string `locationName:"metricName" type:"string"`

	// The namespace of the CloudWatch metric.
	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"`
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DescribeMetricFiltersRequest

func (DescribeMetricFiltersInput) GoString

func (s DescribeMetricFiltersInput) GoString() string

GoString returns the string representation

func (*DescribeMetricFiltersInput) SetFilterNamePrefix

SetFilterNamePrefix sets the FilterNamePrefix field's value.

func (*DescribeMetricFiltersInput) SetLimit

SetLimit sets the Limit field's value.

func (*DescribeMetricFiltersInput) SetLogGroupName

SetLogGroupName sets the LogGroupName field's value.

func (*DescribeMetricFiltersInput) SetMetricName

SetMetricName sets the MetricName field's value.

func (*DescribeMetricFiltersInput) SetMetricNamespace

SetMetricNamespace sets the MetricNamespace field's value.

func (*DescribeMetricFiltersInput) SetNextToken

SetNextToken sets the NextToken field's value.

func (DescribeMetricFiltersInput) String

String returns the string representation

func (*DescribeMetricFiltersInput) Validate

func (s *DescribeMetricFiltersInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type DescribeMetricFiltersOutput

type DescribeMetricFiltersOutput struct {

	// 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"`
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DescribeMetricFiltersResponse

func (DescribeMetricFiltersOutput) GoString

func (s DescribeMetricFiltersOutput) GoString() string

GoString returns the string representation

func (DescribeMetricFiltersOutput) SDKResponseMetadata

func (s DescribeMetricFiltersOutput) SDKResponseMetadata() aws.Response

SDKResponseMetdata return sthe response metadata for the API.

func (*DescribeMetricFiltersOutput) SetMetricFilters

SetMetricFilters sets the MetricFilters field's value.

func (*DescribeMetricFiltersOutput) SetNextToken

SetNextToken sets the NextToken field's value.

func (DescribeMetricFiltersOutput) String

String returns the string representation

type DescribeMetricFiltersRequest

type DescribeMetricFiltersRequest struct {
	*aws.Request
	Input *DescribeMetricFiltersInput
}

DescribeMetricFiltersRequest is a API request type for the DescribeMetricFilters API operation.

func (DescribeMetricFiltersRequest) Send

Send marshals and sends the DescribeMetricFilters API request.

type DescribeResourcePoliciesInput

type DescribeResourcePoliciesInput struct {

	// 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"`
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DescribeResourcePoliciesRequest

func (DescribeResourcePoliciesInput) GoString

GoString returns the string representation

func (*DescribeResourcePoliciesInput) SetLimit

SetLimit sets the Limit field's value.

func (*DescribeResourcePoliciesInput) SetNextToken

SetNextToken sets the NextToken field's value.

func (DescribeResourcePoliciesInput) String

String returns the string representation

func (*DescribeResourcePoliciesInput) Validate

func (s *DescribeResourcePoliciesInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type DescribeResourcePoliciesOutput

type DescribeResourcePoliciesOutput struct {

	// 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"`
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DescribeResourcePoliciesResponse

func (DescribeResourcePoliciesOutput) GoString

GoString returns the string representation

func (DescribeResourcePoliciesOutput) SDKResponseMetadata

func (s DescribeResourcePoliciesOutput) SDKResponseMetadata() aws.Response

SDKResponseMetdata return sthe response metadata for the API.

func (*DescribeResourcePoliciesOutput) SetNextToken

SetNextToken sets the NextToken field's value.

func (*DescribeResourcePoliciesOutput) SetResourcePolicies

SetResourcePolicies sets the ResourcePolicies field's value.

func (DescribeResourcePoliciesOutput) String

String returns the string representation

type DescribeResourcePoliciesRequest

type DescribeResourcePoliciesRequest struct {
	*aws.Request
	Input *DescribeResourcePoliciesInput
}

DescribeResourcePoliciesRequest is a API request type for the DescribeResourcePolicies API operation.

func (DescribeResourcePoliciesRequest) Send

Send marshals and sends the DescribeResourcePolicies API request.

type DescribeSubscriptionFiltersInput

type DescribeSubscriptionFiltersInput struct {

	// 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"`
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DescribeSubscriptionFiltersRequest

func (DescribeSubscriptionFiltersInput) GoString

GoString returns the string representation

func (*DescribeSubscriptionFiltersInput) SetFilterNamePrefix

SetFilterNamePrefix sets the FilterNamePrefix field's value.

func (*DescribeSubscriptionFiltersInput) SetLimit

SetLimit sets the Limit field's value.

func (*DescribeSubscriptionFiltersInput) SetLogGroupName

SetLogGroupName sets the LogGroupName field's value.

func (*DescribeSubscriptionFiltersInput) SetNextToken

SetNextToken sets the NextToken field's value.

func (DescribeSubscriptionFiltersInput) String

String returns the string representation

func (*DescribeSubscriptionFiltersInput) Validate

Validate inspects the fields of the type to determine if they are valid.

type DescribeSubscriptionFiltersOutput

type DescribeSubscriptionFiltersOutput struct {

	// 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"`
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DescribeSubscriptionFiltersResponse

func (DescribeSubscriptionFiltersOutput) GoString

GoString returns the string representation

func (DescribeSubscriptionFiltersOutput) SDKResponseMetadata

func (s DescribeSubscriptionFiltersOutput) SDKResponseMetadata() aws.Response

SDKResponseMetdata return sthe response metadata for the API.

func (*DescribeSubscriptionFiltersOutput) SetNextToken

SetNextToken sets the NextToken field's value.

func (*DescribeSubscriptionFiltersOutput) SetSubscriptionFilters

SetSubscriptionFilters sets the SubscriptionFilters field's value.

func (DescribeSubscriptionFiltersOutput) String

String returns the string representation

type DescribeSubscriptionFiltersRequest

type DescribeSubscriptionFiltersRequest struct {
	*aws.Request
	Input *DescribeSubscriptionFiltersInput
}

DescribeSubscriptionFiltersRequest is a API request type for the DescribeSubscriptionFilters API operation.

func (DescribeSubscriptionFiltersRequest) Send

Send marshals and sends the DescribeSubscriptionFilters API request.

type Destination

type Destination struct {

	// An IAM policy document that governs which AWS 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 to where the log events
	// are delivered (for example, a Kinesis stream).
	TargetArn *string `locationName:"targetArn" min:"1" type:"string"`
	// contains filtered or unexported fields
}

Represents a cross-account destination that receives subscription log events. Please also see https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/Destination

func (Destination) GoString

func (s Destination) GoString() string

GoString returns the string representation

func (*Destination) SetAccessPolicy

func (s *Destination) SetAccessPolicy(v string) *Destination

SetAccessPolicy sets the AccessPolicy field's value.

func (*Destination) SetArn

func (s *Destination) SetArn(v string) *Destination

SetArn sets the Arn field's value.

func (*Destination) SetCreationTime

func (s *Destination) SetCreationTime(v int64) *Destination

SetCreationTime sets the CreationTime field's value.

func (*Destination) SetDestinationName

func (s *Destination) SetDestinationName(v string) *Destination

SetDestinationName sets the DestinationName field's value.

func (*Destination) SetRoleArn

func (s *Destination) SetRoleArn(v string) *Destination

SetRoleArn sets the RoleArn field's value.

func (*Destination) SetTargetArn

func (s *Destination) SetTargetArn(v string) *Destination

SetTargetArn sets the TargetArn field's value.

func (Destination) String

func (s Destination) String() string

String returns the string representation

type DisassociateKmsKeyInput

type DisassociateKmsKeyInput struct {

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

Please also see https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DisassociateKmsKeyRequest

func (DisassociateKmsKeyInput) GoString

func (s DisassociateKmsKeyInput) GoString() string

GoString returns the string representation

func (*DisassociateKmsKeyInput) SetLogGroupName

SetLogGroupName sets the LogGroupName field's value.

func (DisassociateKmsKeyInput) String

func (s DisassociateKmsKeyInput) String() string

String returns the string representation

func (*DisassociateKmsKeyInput) Validate

func (s *DisassociateKmsKeyInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type DisassociateKmsKeyOutput

type DisassociateKmsKeyOutput struct {
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DisassociateKmsKeyOutput

func (DisassociateKmsKeyOutput) GoString

func (s DisassociateKmsKeyOutput) GoString() string

GoString returns the string representation

func (DisassociateKmsKeyOutput) SDKResponseMetadata

func (s DisassociateKmsKeyOutput) SDKResponseMetadata() aws.Response

SDKResponseMetdata return sthe response metadata for the API.

func (DisassociateKmsKeyOutput) String

func (s DisassociateKmsKeyOutput) String() string

String returns the string representation

type DisassociateKmsKeyRequest

type DisassociateKmsKeyRequest struct {
	*aws.Request
	Input *DisassociateKmsKeyInput
}

DisassociateKmsKeyRequest is a API request type for the DisassociateKmsKey API operation.

func (DisassociateKmsKeyRequest) Send

Send marshals and sends the DisassociateKmsKey API request.

type Distribution

type Distribution string

The method used to distribute log data to the destination, which can be either random or grouped by log stream.

const (
	DistributionRandom      Distribution = "Random"
	DistributionByLogStream Distribution = "ByLogStream"
)

Enum values for Distribution

type ExportTask

type ExportTask struct {

	// The name of Amazon 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 info 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 time stamp 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 time stamp later than this time are not exported.
	To *int64 `locationName:"to" type:"long"`
	// contains filtered or unexported fields
}

Represents an export task. Please also see https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/ExportTask

func (ExportTask) GoString

func (s ExportTask) GoString() string

GoString returns the string representation

func (*ExportTask) SetDestination

func (s *ExportTask) SetDestination(v string) *ExportTask

SetDestination sets the Destination field's value.

func (*ExportTask) SetDestinationPrefix

func (s *ExportTask) SetDestinationPrefix(v string) *ExportTask

SetDestinationPrefix sets the DestinationPrefix field's value.

func (*ExportTask) SetExecutionInfo

func (s *ExportTask) SetExecutionInfo(v *ExportTaskExecutionInfo) *ExportTask

SetExecutionInfo sets the ExecutionInfo field's value.

func (*ExportTask) SetFrom

func (s *ExportTask) SetFrom(v int64) *ExportTask

SetFrom sets the From field's value.

func (*ExportTask) SetLogGroupName

func (s *ExportTask) SetLogGroupName(v string) *ExportTask

SetLogGroupName sets the LogGroupName field's value.

func (*ExportTask) SetStatus

func (s *ExportTask) SetStatus(v *ExportTaskStatus) *ExportTask

SetStatus sets the Status field's value.

func (*ExportTask) SetTaskId

func (s *ExportTask) SetTaskId(v string) *ExportTask

SetTaskId sets the TaskId field's value.

func (*ExportTask) SetTaskName

func (s *ExportTask) SetTaskName(v string) *ExportTask

SetTaskName sets the TaskName field's value.

func (*ExportTask) SetTo

func (s *ExportTask) SetTo(v int64) *ExportTask

SetTo sets the To field's value.

func (ExportTask) String

func (s ExportTask) String() string

String returns the string representation

type ExportTaskExecutionInfo

type ExportTaskExecutionInfo struct {

	// 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"`
	// contains filtered or unexported fields
}

Represents the status of an export task. Please also see https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/ExportTaskExecutionInfo

func (ExportTaskExecutionInfo) GoString

func (s ExportTaskExecutionInfo) GoString() string

GoString returns the string representation

func (*ExportTaskExecutionInfo) SetCompletionTime

func (s *ExportTaskExecutionInfo) SetCompletionTime(v int64) *ExportTaskExecutionInfo

SetCompletionTime sets the CompletionTime field's value.

func (*ExportTaskExecutionInfo) SetCreationTime

func (s *ExportTaskExecutionInfo) SetCreationTime(v int64) *ExportTaskExecutionInfo

SetCreationTime sets the CreationTime field's value.

func (ExportTaskExecutionInfo) String

func (s ExportTaskExecutionInfo) String() string

String returns the string representation

type ExportTaskStatus

type ExportTaskStatus struct {

	// The status code of the export task.
	Code ExportTaskStatusCode `locationName:"code" type:"string" enum:"true"`

	// The status message related to the status code.
	Message *string `locationName:"message" type:"string"`
	// contains filtered or unexported fields
}

Represents the status of an export task. Please also see https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/ExportTaskStatus

func (ExportTaskStatus) GoString

func (s ExportTaskStatus) GoString() string

GoString returns the string representation

func (*ExportTaskStatus) SetCode

SetCode sets the Code field's value.

func (*ExportTaskStatus) SetMessage

func (s *ExportTaskStatus) SetMessage(v string) *ExportTaskStatus

SetMessage sets the Message field's value.

func (ExportTaskStatus) String

func (s ExportTaskStatus) String() string

String returns the string representation

type ExportTaskStatusCode

type ExportTaskStatusCode string
const (
	ExportTaskStatusCodeCancelled     ExportTaskStatusCode = "CANCELLED"
	ExportTaskStatusCodeCompleted     ExportTaskStatusCode = "COMPLETED"
	ExportTaskStatusCodeFailed        ExportTaskStatusCode = "FAILED"
	ExportTaskStatusCodePending       ExportTaskStatusCode = "PENDING"
	ExportTaskStatusCodePendingCancel ExportTaskStatusCode = "PENDING_CANCEL"
	ExportTaskStatusCodeRunning       ExportTaskStatusCode = "RUNNING"
)

Enum values for ExportTaskStatusCode

type FilterLogEventsInput

type FilterLogEventsInput struct {

	// The end of the time range, expressed as the number of milliseconds after
	// Jan 1, 1970 00:00:00 UTC. Events with a time stamp later than this time are
	// not returned.
	EndTime *int64 `locationName:"endTime" type:"long"`

	// The filter pattern to use. If not provided, all the events are matched.
	FilterPattern *string `locationName:"filterPattern" type:"string"`

	// If the value is true, the operation makes a best effort 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. The default is false.
	Interleaved *bool `locationName:"interleaved" type:"boolean"`

	// The maximum number of events to return. The default is 10,000 events.
	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"`

	// Optional list of log stream names.
	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 time stamp before this time are not
	// returned.
	StartTime *int64 `locationName:"startTime" type:"long"`
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/FilterLogEventsRequest

func (FilterLogEventsInput) GoString

func (s FilterLogEventsInput) GoString() string

GoString returns the string representation

func (*FilterLogEventsInput) SetEndTime

SetEndTime sets the EndTime field's value.

func (*FilterLogEventsInput) SetFilterPattern

func (s *FilterLogEventsInput) SetFilterPattern(v string) *FilterLogEventsInput

SetFilterPattern sets the FilterPattern field's value.

func (*FilterLogEventsInput) SetInterleaved

func (s *FilterLogEventsInput) SetInterleaved(v bool) *FilterLogEventsInput

SetInterleaved sets the Interleaved field's value.

func (*FilterLogEventsInput) SetLimit

SetLimit sets the Limit field's value.

func (*FilterLogEventsInput) SetLogGroupName

func (s *FilterLogEventsInput) SetLogGroupName(v string) *FilterLogEventsInput

SetLogGroupName sets the LogGroupName field's value.

func (*FilterLogEventsInput) SetLogStreamNames

func (s *FilterLogEventsInput) SetLogStreamNames(v []string) *FilterLogEventsInput

SetLogStreamNames sets the LogStreamNames field's value.

func (*FilterLogEventsInput) SetNextToken

func (s *FilterLogEventsInput) SetNextToken(v string) *FilterLogEventsInput

SetNextToken sets the NextToken field's value.

func (*FilterLogEventsInput) SetStartTime

func (s *FilterLogEventsInput) SetStartTime(v int64) *FilterLogEventsInput

SetStartTime sets the StartTime field's value.

func (FilterLogEventsInput) String

func (s FilterLogEventsInput) String() string

String returns the string representation

func (*FilterLogEventsInput) Validate

func (s *FilterLogEventsInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type FilterLogEventsOutput

type FilterLogEventsOutput struct {

	// 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.
	NextToken *string `locationName:"nextToken" min:"1" type:"string"`

	// Indicates which log streams have been searched and whether each has been
	// searched completely.
	SearchedLogStreams []SearchedLogStream `locationName:"searchedLogStreams" type:"list"`
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/FilterLogEventsResponse

func (FilterLogEventsOutput) GoString

func (s FilterLogEventsOutput) GoString() string

GoString returns the string representation

func (FilterLogEventsOutput) SDKResponseMetadata

func (s FilterLogEventsOutput) SDKResponseMetadata() aws.Response

SDKResponseMetdata return sthe response metadata for the API.

func (*FilterLogEventsOutput) SetEvents

SetEvents sets the Events field's value.

func (*FilterLogEventsOutput) SetNextToken

SetNextToken sets the NextToken field's value.

func (*FilterLogEventsOutput) SetSearchedLogStreams

func (s *FilterLogEventsOutput) SetSearchedLogStreams(v []SearchedLogStream) *FilterLogEventsOutput

SetSearchedLogStreams sets the SearchedLogStreams field's value.

func (FilterLogEventsOutput) String

func (s FilterLogEventsOutput) String() string

String returns the string representation

type FilterLogEventsRequest

type FilterLogEventsRequest struct {
	*aws.Request
	Input *FilterLogEventsInput
}

FilterLogEventsRequest is a API request type for the FilterLogEvents API operation.

func (FilterLogEventsRequest) Send

Send marshals and sends the FilterLogEvents API request.

type FilteredLogEvent

type FilteredLogEvent struct {

	// 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 this event belongs to.
	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"`
	// contains filtered or unexported fields
}

Represents a matched event. Please also see https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/FilteredLogEvent

func (FilteredLogEvent) GoString

func (s FilteredLogEvent) GoString() string

GoString returns the string representation

func (*FilteredLogEvent) SetEventId

func (s *FilteredLogEvent) SetEventId(v string) *FilteredLogEvent

SetEventId sets the EventId field's value.

func (*FilteredLogEvent) SetIngestionTime

func (s *FilteredLogEvent) SetIngestionTime(v int64) *FilteredLogEvent

SetIngestionTime sets the IngestionTime field's value.

func (*FilteredLogEvent) SetLogStreamName

func (s *FilteredLogEvent) SetLogStreamName(v string) *FilteredLogEvent

SetLogStreamName sets the LogStreamName field's value.

func (*FilteredLogEvent) SetMessage

func (s *FilteredLogEvent) SetMessage(v string) *FilteredLogEvent

SetMessage sets the Message field's value.

func (*FilteredLogEvent) SetTimestamp

func (s *FilteredLogEvent) SetTimestamp(v int64) *FilteredLogEvent

SetTimestamp sets the Timestamp field's value.

func (FilteredLogEvent) String

func (s FilteredLogEvent) String() string

String returns the string representation

type GetLogEventsInput

type GetLogEventsInput struct {

	// The end of the time range, expressed as the number of milliseconds after
	// Jan 1, 1970 00:00:00 UTC. Events with a time stamp 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 value,
	// the maximum 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"`

	// 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 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.
	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 time stamp earlier than this time
	// are not included.
	StartTime *int64 `locationName:"startTime" type:"long"`
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/GetLogEventsRequest

func (GetLogEventsInput) GoString

func (s GetLogEventsInput) GoString() string

GoString returns the string representation

func (*GetLogEventsInput) SetEndTime

func (s *GetLogEventsInput) SetEndTime(v int64) *GetLogEventsInput

SetEndTime sets the EndTime field's value.

func (*GetLogEventsInput) SetLimit

func (s *GetLogEventsInput) SetLimit(v int64) *GetLogEventsInput

SetLimit sets the Limit field's value.

func (*GetLogEventsInput) SetLogGroupName

func (s *GetLogEventsInput) SetLogGroupName(v string) *GetLogEventsInput

SetLogGroupName sets the LogGroupName field's value.

func (*GetLogEventsInput) SetLogStreamName

func (s *GetLogEventsInput) SetLogStreamName(v string) *GetLogEventsInput

SetLogStreamName sets the LogStreamName field's value.

func (*GetLogEventsInput) SetNextToken

func (s *GetLogEventsInput) SetNextToken(v string) *GetLogEventsInput

SetNextToken sets the NextToken field's value.

func (*GetLogEventsInput) SetStartFromHead

func (s *GetLogEventsInput) SetStartFromHead(v bool) *GetLogEventsInput

SetStartFromHead sets the StartFromHead field's value.

func (*GetLogEventsInput) SetStartTime

func (s *GetLogEventsInput) SetStartTime(v int64) *GetLogEventsInput

SetStartTime sets the StartTime field's value.

func (GetLogEventsInput) String

func (s GetLogEventsInput) String() string

String returns the string representation

func (*GetLogEventsInput) Validate

func (s *GetLogEventsInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type GetLogEventsOutput

type GetLogEventsOutput struct {

	// 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.
	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.
	NextForwardToken *string `locationName:"nextForwardToken" min:"1" type:"string"`
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/GetLogEventsResponse

func (GetLogEventsOutput) GoString

func (s GetLogEventsOutput) GoString() string

GoString returns the string representation

func (GetLogEventsOutput) SDKResponseMetadata

func (s GetLogEventsOutput) SDKResponseMetadata() aws.Response

SDKResponseMetdata return sthe response metadata for the API.

func (*GetLogEventsOutput) SetEvents

SetEvents sets the Events field's value.

func (*GetLogEventsOutput) SetNextBackwardToken

func (s *GetLogEventsOutput) SetNextBackwardToken(v string) *GetLogEventsOutput

SetNextBackwardToken sets the NextBackwardToken field's value.

func (*GetLogEventsOutput) SetNextForwardToken

func (s *GetLogEventsOutput) SetNextForwardToken(v string) *GetLogEventsOutput

SetNextForwardToken sets the NextForwardToken field's value.

func (GetLogEventsOutput) String

func (s GetLogEventsOutput) String() string

String returns the string representation

type GetLogEventsRequest

type GetLogEventsRequest struct {
	*aws.Request
	Input *GetLogEventsInput
}

GetLogEventsRequest is a API request type for the GetLogEvents API operation.

func (GetLogEventsRequest) Send

Send marshals and sends the GetLogEvents API request.

type InputLogEvent

type InputLogEvent struct {

	// The raw event message.
	//
	// 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 fter
	// Jan 1, 1970 00:00:00 UTC.
	//
	// Timestamp is a required field
	Timestamp *int64 `locationName:"timestamp" type:"long" required:"true"`
	// contains filtered or unexported fields
}

Represents a log event, which is a record of activity that was recorded by the application or resource being monitored. Please also see https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/InputLogEvent

func (InputLogEvent) GoString

func (s InputLogEvent) GoString() string

GoString returns the string representation

func (*InputLogEvent) SetMessage

func (s *InputLogEvent) SetMessage(v string) *InputLogEvent

SetMessage sets the Message field's value.

func (*InputLogEvent) SetTimestamp

func (s *InputLogEvent) SetTimestamp(v int64) *InputLogEvent

SetTimestamp sets the Timestamp field's value.

func (InputLogEvent) String

func (s InputLogEvent) String() string

String returns the string representation

func (*InputLogEvent) Validate

func (s *InputLogEvent) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type ListTagsLogGroupInput

type ListTagsLogGroupInput struct {

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

Please also see https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/ListTagsLogGroupRequest

func (ListTagsLogGroupInput) GoString

func (s ListTagsLogGroupInput) GoString() string

GoString returns the string representation

func (*ListTagsLogGroupInput) SetLogGroupName

func (s *ListTagsLogGroupInput) SetLogGroupName(v string) *ListTagsLogGroupInput

SetLogGroupName sets the LogGroupName field's value.

func (ListTagsLogGroupInput) String

func (s ListTagsLogGroupInput) String() string

String returns the string representation

func (*ListTagsLogGroupInput) Validate

func (s *ListTagsLogGroupInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type ListTagsLogGroupOutput

type ListTagsLogGroupOutput struct {

	// The tags for the log group.
	Tags map[string]string `locationName:"tags" min:"1" type:"map"`
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/ListTagsLogGroupResponse

func (ListTagsLogGroupOutput) GoString

func (s ListTagsLogGroupOutput) GoString() string

GoString returns the string representation

func (ListTagsLogGroupOutput) SDKResponseMetadata

func (s ListTagsLogGroupOutput) SDKResponseMetadata() aws.Response

SDKResponseMetdata return sthe response metadata for the API.

func (*ListTagsLogGroupOutput) SetTags

SetTags sets the Tags field's value.

func (ListTagsLogGroupOutput) String

func (s ListTagsLogGroupOutput) String() string

String returns the string representation

type ListTagsLogGroupRequest

type ListTagsLogGroupRequest struct {
	*aws.Request
	Input *ListTagsLogGroupInput
}

ListTagsLogGroupRequest is a API request type for the ListTagsLogGroup API operation.

func (ListTagsLogGroupRequest) Send

Send marshals and sends the ListTagsLogGroup API request.

type LogGroup

type LogGroup struct {

	// The Amazon Resource Name (ARN) of the log group.
	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"`

	// The Amazon Resource Name (ARN) of the CMK to use when encrypting log data.
	KmsKeyId *string `locationName:"kmsKeyId" type:"string"`

	// 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,
	// 1827, and 3653.
	RetentionInDays *int64 `locationName:"retentionInDays" type:"integer"`

	// The number of bytes stored.
	StoredBytes *int64 `locationName:"storedBytes" type:"long"`
	// contains filtered or unexported fields
}

Represents a log group. Please also see https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/LogGroup

func (LogGroup) GoString

func (s LogGroup) GoString() string

GoString returns the string representation

func (*LogGroup) SetArn

func (s *LogGroup) SetArn(v string) *LogGroup

SetArn sets the Arn field's value.

func (*LogGroup) SetCreationTime

func (s *LogGroup) SetCreationTime(v int64) *LogGroup

SetCreationTime sets the CreationTime field's value.

func (*LogGroup) SetKmsKeyId

func (s *LogGroup) SetKmsKeyId(v string) *LogGroup

SetKmsKeyId sets the KmsKeyId field's value.

func (*LogGroup) SetLogGroupName

func (s *LogGroup) SetLogGroupName(v string) *LogGroup

SetLogGroupName sets the LogGroupName field's value.

func (*LogGroup) SetMetricFilterCount

func (s *LogGroup) SetMetricFilterCount(v int64) *LogGroup

SetMetricFilterCount sets the MetricFilterCount field's value.

func (*LogGroup) SetRetentionInDays

func (s *LogGroup) SetRetentionInDays(v int64) *LogGroup

SetRetentionInDays sets the RetentionInDays field's value.

func (*LogGroup) SetStoredBytes

func (s *LogGroup) SetStoredBytes(v int64) *LogGroup

SetStoredBytes sets the StoredBytes field's value.

func (LogGroup) String

func (s LogGroup) String() string

String returns the string representation

type LogStream

type LogStream struct {

	// 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. lastEventTime updates on an eventual consistency basis. It
	// typically updates in less than an hour from ingestion, but may take longer
	// in some rare situations.
	LastEventTimestamp *int64 `locationName:"lastEventTimestamp" type:"long"`

	// The ingestion time, expressed as the number of milliseconds after Jan 1,
	// 1970 00:00:00 UTC.
	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.
	StoredBytes *int64 `locationName:"storedBytes" type:"long"`

	// The sequence token.
	UploadSequenceToken *string `locationName:"uploadSequenceToken" min:"1" type:"string"`
	// contains filtered or unexported fields
}

Represents a log stream, which is a sequence of log events from a single emitter of logs. Please also see https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/LogStream

func (LogStream) GoString

func (s LogStream) GoString() string

GoString returns the string representation

func (*LogStream) SetArn

func (s *LogStream) SetArn(v string) *LogStream

SetArn sets the Arn field's value.

func (*LogStream) SetCreationTime

func (s *LogStream) SetCreationTime(v int64) *LogStream

SetCreationTime sets the CreationTime field's value.

func (*LogStream) SetFirstEventTimestamp

func (s *LogStream) SetFirstEventTimestamp(v int64) *LogStream

SetFirstEventTimestamp sets the FirstEventTimestamp field's value.

func (*LogStream) SetLastEventTimestamp

func (s *LogStream) SetLastEventTimestamp(v int64) *LogStream

SetLastEventTimestamp sets the LastEventTimestamp field's value.

func (*LogStream) SetLastIngestionTime

func (s *LogStream) SetLastIngestionTime(v int64) *LogStream

SetLastIngestionTime sets the LastIngestionTime field's value.

func (*LogStream) SetLogStreamName

func (s *LogStream) SetLogStreamName(v string) *LogStream

SetLogStreamName sets the LogStreamName field's value.

func (*LogStream) SetStoredBytes

func (s *LogStream) SetStoredBytes(v int64) *LogStream

SetStoredBytes sets the StoredBytes field's value.

func (*LogStream) SetUploadSequenceToken

func (s *LogStream) SetUploadSequenceToken(v string) *LogStream

SetUploadSequenceToken sets the UploadSequenceToken field's value.

func (LogStream) String

func (s LogStream) String() string

String returns the string representation

type MetricFilter

type MetricFilter struct {

	// 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 may contain time stamps, 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"`
	// contains filtered or unexported fields
}

Metric filters express how CloudWatch Logs would extract metric observations from ingested log events and transform them into metric data in a CloudWatch metric. Please also see https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/MetricFilter

func (MetricFilter) GoString

func (s MetricFilter) GoString() string

GoString returns the string representation

func (*MetricFilter) SetCreationTime

func (s *MetricFilter) SetCreationTime(v int64) *MetricFilter

SetCreationTime sets the CreationTime field's value.

func (*MetricFilter) SetFilterName

func (s *MetricFilter) SetFilterName(v string) *MetricFilter

SetFilterName sets the FilterName field's value.

func (*MetricFilter) SetFilterPattern

func (s *MetricFilter) SetFilterPattern(v string) *MetricFilter

SetFilterPattern sets the FilterPattern field's value.

func (*MetricFilter) SetLogGroupName

func (s *MetricFilter) SetLogGroupName(v string) *MetricFilter

SetLogGroupName sets the LogGroupName field's value.

func (*MetricFilter) SetMetricTransformations

func (s *MetricFilter) SetMetricTransformations(v []MetricTransformation) *MetricFilter

SetMetricTransformations sets the MetricTransformations field's value.

func (MetricFilter) String

func (s MetricFilter) String() string

String returns the string representation

type MetricFilterMatchRecord

type MetricFilterMatchRecord struct {

	// 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"`
	// contains filtered or unexported fields
}

Represents a matched event. Please also see https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/MetricFilterMatchRecord

func (MetricFilterMatchRecord) GoString

func (s MetricFilterMatchRecord) GoString() string

GoString returns the string representation

func (*MetricFilterMatchRecord) SetEventMessage

SetEventMessage sets the EventMessage field's value.

func (*MetricFilterMatchRecord) SetEventNumber

SetEventNumber sets the EventNumber field's value.

func (*MetricFilterMatchRecord) SetExtractedValues

func (s *MetricFilterMatchRecord) SetExtractedValues(v map[string]string) *MetricFilterMatchRecord

SetExtractedValues sets the ExtractedValues field's value.

func (MetricFilterMatchRecord) String

func (s MetricFilterMatchRecord) String() string

String returns the string representation

type MetricTransformation

type MetricTransformation struct {

	// (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 name of the CloudWatch metric.
	//
	// MetricName is a required field
	MetricName *string `locationName:"metricName" type:"string" required:"true"`

	// The namespace of the CloudWatch metric.
	//
	// 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"`
	// contains filtered or unexported fields
}

Indicates how to transform ingested log events in to metric data in a CloudWatch metric. Please also see https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/MetricTransformation

func (MetricTransformation) GoString

func (s MetricTransformation) GoString() string

GoString returns the string representation

func (*MetricTransformation) SetDefaultValue

func (s *MetricTransformation) SetDefaultValue(v float64) *MetricTransformation

SetDefaultValue sets the DefaultValue field's value.

func (*MetricTransformation) SetMetricName

func (s *MetricTransformation) SetMetricName(v string) *MetricTransformation

SetMetricName sets the MetricName field's value.

func (*MetricTransformation) SetMetricNamespace

func (s *MetricTransformation) SetMetricNamespace(v string) *MetricTransformation

SetMetricNamespace sets the MetricNamespace field's value.

func (*MetricTransformation) SetMetricValue

func (s *MetricTransformation) SetMetricValue(v string) *MetricTransformation

SetMetricValue sets the MetricValue field's value.

func (MetricTransformation) String

func (s MetricTransformation) String() string

String returns the string representation

func (*MetricTransformation) Validate

func (s *MetricTransformation) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type OrderBy

type OrderBy string
const (
	OrderByLogStreamName OrderBy = "LogStreamName"
	OrderByLastEventTime OrderBy = "LastEventTime"
)

Enum values for OrderBy

type OutputLogEvent

type OutputLogEvent struct {

	// 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"`
	// contains filtered or unexported fields
}

Represents a log event. Please also see https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/OutputLogEvent

func (OutputLogEvent) GoString

func (s OutputLogEvent) GoString() string

GoString returns the string representation

func (*OutputLogEvent) SetIngestionTime

func (s *OutputLogEvent) SetIngestionTime(v int64) *OutputLogEvent

SetIngestionTime sets the IngestionTime field's value.

func (*OutputLogEvent) SetMessage

func (s *OutputLogEvent) SetMessage(v string) *OutputLogEvent

SetMessage sets the Message field's value.

func (*OutputLogEvent) SetTimestamp

func (s *OutputLogEvent) SetTimestamp(v int64) *OutputLogEvent

SetTimestamp sets the Timestamp field's value.

func (OutputLogEvent) String

func (s OutputLogEvent) String() string

String returns the string representation

type PutDestinationInput

type PutDestinationInput struct {

	// 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"`

	// 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"`
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/PutDestinationRequest

func (PutDestinationInput) GoString

func (s PutDestinationInput) GoString() string

GoString returns the string representation

func (*PutDestinationInput) SetDestinationName

func (s *PutDestinationInput) SetDestinationName(v string) *PutDestinationInput

SetDestinationName sets the DestinationName field's value.

func (*PutDestinationInput) SetRoleArn

SetRoleArn sets the RoleArn field's value.

func (*PutDestinationInput) SetTargetArn

func (s *PutDestinationInput) SetTargetArn(v string) *PutDestinationInput

SetTargetArn sets the TargetArn field's value.

func (PutDestinationInput) String

func (s PutDestinationInput) String() string

String returns the string representation

func (*PutDestinationInput) Validate

func (s *PutDestinationInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type PutDestinationOutput

type PutDestinationOutput struct {

	// The destination.
	Destination *Destination `locationName:"destination" type:"structure"`
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/PutDestinationResponse

func (PutDestinationOutput) GoString

func (s PutDestinationOutput) GoString() string

GoString returns the string representation

func (PutDestinationOutput) SDKResponseMetadata

func (s PutDestinationOutput) SDKResponseMetadata() aws.Response

SDKResponseMetdata return sthe response metadata for the API.

func (*PutDestinationOutput) SetDestination

func (s *PutDestinationOutput) SetDestination(v *Destination) *PutDestinationOutput

SetDestination sets the Destination field's value.

func (PutDestinationOutput) String

func (s PutDestinationOutput) String() string

String returns the string representation

type PutDestinationPolicyInput

type PutDestinationPolicyInput struct {

	// An IAM policy document that authorizes cross-account users to deliver their
	// log events to the associated destination.
	//
	// 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"`
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/PutDestinationPolicyRequest

func (PutDestinationPolicyInput) GoString

func (s PutDestinationPolicyInput) GoString() string

GoString returns the string representation

func (*PutDestinationPolicyInput) SetAccessPolicy

SetAccessPolicy sets the AccessPolicy field's value.

func (*PutDestinationPolicyInput) SetDestinationName

SetDestinationName sets the DestinationName field's value.

func (PutDestinationPolicyInput) String

func (s PutDestinationPolicyInput) String() string

String returns the string representation

func (*PutDestinationPolicyInput) Validate

func (s *PutDestinationPolicyInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type PutDestinationPolicyOutput

type PutDestinationPolicyOutput struct {
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/PutDestinationPolicyOutput

func (PutDestinationPolicyOutput) GoString

func (s PutDestinationPolicyOutput) GoString() string

GoString returns the string representation

func (PutDestinationPolicyOutput) SDKResponseMetadata

func (s PutDestinationPolicyOutput) SDKResponseMetadata() aws.Response

SDKResponseMetdata return sthe response metadata for the API.

func (PutDestinationPolicyOutput) String

String returns the string representation

type PutDestinationPolicyRequest

type PutDestinationPolicyRequest struct {
	*aws.Request
	Input *PutDestinationPolicyInput
}

PutDestinationPolicyRequest is a API request type for the PutDestinationPolicy API operation.

func (PutDestinationPolicyRequest) Send

Send marshals and sends the PutDestinationPolicy API request.

type PutDestinationRequest

type PutDestinationRequest struct {
	*aws.Request
	Input *PutDestinationInput
}

PutDestinationRequest is a API request type for the PutDestination API operation.

func (PutDestinationRequest) Send

Send marshals and sends the PutDestination API request.

type PutLogEventsInput

type PutLogEventsInput struct {

	// 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. An upload in a newly created log stream does not require a sequence
	// token. You can also get the sequence token using DescribeLogStreams. If you
	// call PutLogEvents twice within a narrow time period using the same value
	// for sequenceToken, both calls may be successful, or one may be rejected.
	SequenceToken *string `locationName:"sequenceToken" min:"1" type:"string"`
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/PutLogEventsRequest

func (PutLogEventsInput) GoString

func (s PutLogEventsInput) GoString() string

GoString returns the string representation

func (*PutLogEventsInput) SetLogEvents

func (s *PutLogEventsInput) SetLogEvents(v []InputLogEvent) *PutLogEventsInput

SetLogEvents sets the LogEvents field's value.

func (*PutLogEventsInput) SetLogGroupName

func (s *PutLogEventsInput) SetLogGroupName(v string) *PutLogEventsInput

SetLogGroupName sets the LogGroupName field's value.

func (*PutLogEventsInput) SetLogStreamName

func (s *PutLogEventsInput) SetLogStreamName(v string) *PutLogEventsInput

SetLogStreamName sets the LogStreamName field's value.

func (*PutLogEventsInput) SetSequenceToken

func (s *PutLogEventsInput) SetSequenceToken(v string) *PutLogEventsInput

SetSequenceToken sets the SequenceToken field's value.

func (PutLogEventsInput) String

func (s PutLogEventsInput) String() string

String returns the string representation

func (*PutLogEventsInput) Validate

func (s *PutLogEventsInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type PutLogEventsOutput

type PutLogEventsOutput struct {

	// The next sequence token.
	NextSequenceToken *string `locationName:"nextSequenceToken" min:"1" type:"string"`

	// The rejected events.
	RejectedLogEventsInfo *RejectedLogEventsInfo `locationName:"rejectedLogEventsInfo" type:"structure"`
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/PutLogEventsResponse

func (PutLogEventsOutput) GoString

func (s PutLogEventsOutput) GoString() string

GoString returns the string representation

func (PutLogEventsOutput) SDKResponseMetadata

func (s PutLogEventsOutput) SDKResponseMetadata() aws.Response

SDKResponseMetdata return sthe response metadata for the API.

func (*PutLogEventsOutput) SetNextSequenceToken

func (s *PutLogEventsOutput) SetNextSequenceToken(v string) *PutLogEventsOutput

SetNextSequenceToken sets the NextSequenceToken field's value.

func (*PutLogEventsOutput) SetRejectedLogEventsInfo

func (s *PutLogEventsOutput) SetRejectedLogEventsInfo(v *RejectedLogEventsInfo) *PutLogEventsOutput

SetRejectedLogEventsInfo sets the RejectedLogEventsInfo field's value.

func (PutLogEventsOutput) String

func (s PutLogEventsOutput) String() string

String returns the string representation

type PutLogEventsRequest

type PutLogEventsRequest struct {
	*aws.Request
	Input *PutLogEventsInput
}

PutLogEventsRequest is a API request type for the PutLogEvents API operation.

func (PutLogEventsRequest) Send

Send marshals and sends the PutLogEvents API request.

type PutMetricFilterInput

type PutMetricFilterInput struct {

	// 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"`
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/PutMetricFilterRequest

func (PutMetricFilterInput) GoString

func (s PutMetricFilterInput) GoString() string

GoString returns the string representation

func (*PutMetricFilterInput) SetFilterName

func (s *PutMetricFilterInput) SetFilterName(v string) *PutMetricFilterInput

SetFilterName sets the FilterName field's value.

func (*PutMetricFilterInput) SetFilterPattern

func (s *PutMetricFilterInput) SetFilterPattern(v string) *PutMetricFilterInput

SetFilterPattern sets the FilterPattern field's value.

func (*PutMetricFilterInput) SetLogGroupName

func (s *PutMetricFilterInput) SetLogGroupName(v string) *PutMetricFilterInput

SetLogGroupName sets the LogGroupName field's value.

func (*PutMetricFilterInput) SetMetricTransformations

func (s *PutMetricFilterInput) SetMetricTransformations(v []MetricTransformation) *PutMetricFilterInput

SetMetricTransformations sets the MetricTransformations field's value.

func (PutMetricFilterInput) String

func (s PutMetricFilterInput) String() string

String returns the string representation

func (*PutMetricFilterInput) Validate

func (s *PutMetricFilterInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type PutMetricFilterOutput

type PutMetricFilterOutput struct {
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/PutMetricFilterOutput

func (PutMetricFilterOutput) GoString

func (s PutMetricFilterOutput) GoString() string

GoString returns the string representation

func (PutMetricFilterOutput) SDKResponseMetadata

func (s PutMetricFilterOutput) SDKResponseMetadata() aws.Response

SDKResponseMetdata return sthe response metadata for the API.

func (PutMetricFilterOutput) String

func (s PutMetricFilterOutput) String() string

String returns the string representation

type PutMetricFilterRequest

type PutMetricFilterRequest struct {
	*aws.Request
	Input *PutMetricFilterInput
}

PutMetricFilterRequest is a API request type for the PutMetricFilter API operation.

func (PutMetricFilterRequest) Send

Send marshals and sends the PutMetricFilter API request.

type PutResourcePolicyInput

type PutResourcePolicyInput struct {

	// 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.
	//
	// 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.
	//
	// { "Version": "2012-10-17" "Statement": [ { "Sid": "Route53LogsToCloudWatchLogs",
	// "Effect": "Allow", "Principal": { "Service": [ "route53.amazonaws.com" ]
	// }, "Action":"logs:PutLogEvents", "Resource": logArn } ] }
	PolicyDocument *string `locationName:"policyDocument" min:"1" type:"string"`

	// Name of the new policy. This parameter is required.
	PolicyName *string `locationName:"policyName" type:"string"`
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/PutResourcePolicyRequest

func (PutResourcePolicyInput) GoString

func (s PutResourcePolicyInput) GoString() string

GoString returns the string representation

func (*PutResourcePolicyInput) SetPolicyDocument

func (s *PutResourcePolicyInput) SetPolicyDocument(v string) *PutResourcePolicyInput

SetPolicyDocument sets the PolicyDocument field's value.

func (*PutResourcePolicyInput) SetPolicyName

SetPolicyName sets the PolicyName field's value.

func (PutResourcePolicyInput) String

func (s PutResourcePolicyInput) String() string

String returns the string representation

func (*PutResourcePolicyInput) Validate

func (s *PutResourcePolicyInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type PutResourcePolicyOutput

type PutResourcePolicyOutput struct {

	// The new policy.
	ResourcePolicy *ResourcePolicy `locationName:"resourcePolicy" type:"structure"`
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/PutResourcePolicyResponse

func (PutResourcePolicyOutput) GoString

func (s PutResourcePolicyOutput) GoString() string

GoString returns the string representation

func (PutResourcePolicyOutput) SDKResponseMetadata

func (s PutResourcePolicyOutput) SDKResponseMetadata() aws.Response

SDKResponseMetdata return sthe response metadata for the API.

func (*PutResourcePolicyOutput) SetResourcePolicy

SetResourcePolicy sets the ResourcePolicy field's value.

func (PutResourcePolicyOutput) String

func (s PutResourcePolicyOutput) String() string

String returns the string representation

type PutResourcePolicyRequest

type PutResourcePolicyRequest struct {
	*aws.Request
	Input *PutResourcePolicyInput
}

PutResourcePolicyRequest is a API request type for the PutResourcePolicy API operation.

func (PutResourcePolicyRequest) Send

Send marshals and sends the PutResourcePolicy API request.

type PutRetentionPolicyInput

type PutRetentionPolicyInput struct {

	// 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,
	// 1827, and 3653.
	//
	// RetentionInDays is a required field
	RetentionInDays *int64 `locationName:"retentionInDays" type:"integer" required:"true"`
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/PutRetentionPolicyRequest

func (PutRetentionPolicyInput) GoString

func (s PutRetentionPolicyInput) GoString() string

GoString returns the string representation

func (*PutRetentionPolicyInput) SetLogGroupName

SetLogGroupName sets the LogGroupName field's value.

func (*PutRetentionPolicyInput) SetRetentionInDays

func (s *PutRetentionPolicyInput) SetRetentionInDays(v int64) *PutRetentionPolicyInput

SetRetentionInDays sets the RetentionInDays field's value.

func (PutRetentionPolicyInput) String

func (s PutRetentionPolicyInput) String() string

String returns the string representation

func (*PutRetentionPolicyInput) Validate

func (s *PutRetentionPolicyInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type PutRetentionPolicyOutput

type PutRetentionPolicyOutput struct {
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/PutRetentionPolicyOutput

func (PutRetentionPolicyOutput) GoString

func (s PutRetentionPolicyOutput) GoString() string

GoString returns the string representation

func (PutRetentionPolicyOutput) SDKResponseMetadata

func (s PutRetentionPolicyOutput) SDKResponseMetadata() aws.Response

SDKResponseMetdata return sthe response metadata for the API.

func (PutRetentionPolicyOutput) String

func (s PutRetentionPolicyOutput) String() string

String returns the string representation

type PutRetentionPolicyRequest

type PutRetentionPolicyRequest struct {
	*aws.Request
	Input *PutRetentionPolicyInput
}

PutRetentionPolicyRequest is a API request type for the PutRetentionPolicy API operation.

func (PutRetentionPolicyRequest) Send

Send marshals and sends the PutRetentionPolicy API request.

type PutSubscriptionFilterInput

type PutSubscriptionFilterInput struct {

	// 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.
	//
	//    * An Amazon Kinesis Firehose delivery stream belonging to the same account
	//    as the subscription filter, for same-account delivery.
	//
	//    * An AWS 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 stream.
	Distribution Distribution `locationName:"distribution" type:"string" enum:"true"`

	// A name for the subscription filter. If you are updating an existing filter,
	// you must specify the correct name in filterName. Otherwise, the call fails
	// because you cannot associate a second filter with a log group. To find the
	// name of the filter currently associated with a log group, use DescribeSubscriptionFilters.
	//
	// 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"`
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/PutSubscriptionFilterRequest

func (PutSubscriptionFilterInput) GoString

func (s PutSubscriptionFilterInput) GoString() string

GoString returns the string representation

func (*PutSubscriptionFilterInput) SetDestinationArn

SetDestinationArn sets the DestinationArn field's value.

func (*PutSubscriptionFilterInput) SetDistribution

SetDistribution sets the Distribution field's value.

func (*PutSubscriptionFilterInput) SetFilterName

SetFilterName sets the FilterName field's value.

func (*PutSubscriptionFilterInput) SetFilterPattern

SetFilterPattern sets the FilterPattern field's value.

func (*PutSubscriptionFilterInput) SetLogGroupName

SetLogGroupName sets the LogGroupName field's value.

func (*PutSubscriptionFilterInput) SetRoleArn

SetRoleArn sets the RoleArn field's value.

func (PutSubscriptionFilterInput) String

String returns the string representation

func (*PutSubscriptionFilterInput) Validate

func (s *PutSubscriptionFilterInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type PutSubscriptionFilterOutput

type PutSubscriptionFilterOutput struct {
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/PutSubscriptionFilterOutput

func (PutSubscriptionFilterOutput) GoString

func (s PutSubscriptionFilterOutput) GoString() string

GoString returns the string representation

func (PutSubscriptionFilterOutput) SDKResponseMetadata

func (s PutSubscriptionFilterOutput) SDKResponseMetadata() aws.Response

SDKResponseMetdata return sthe response metadata for the API.

func (PutSubscriptionFilterOutput) String

String returns the string representation

type PutSubscriptionFilterRequest

type PutSubscriptionFilterRequest struct {
	*aws.Request
	Input *PutSubscriptionFilterInput
}

PutSubscriptionFilterRequest is a API request type for the PutSubscriptionFilter API operation.

func (PutSubscriptionFilterRequest) Send

Send marshals and sends the PutSubscriptionFilter API request.

type RejectedLogEventsInfo

type RejectedLogEventsInfo struct {

	// The expired log events.
	ExpiredLogEventEndIndex *int64 `locationName:"expiredLogEventEndIndex" type:"integer"`

	// The log events that are too new.
	TooNewLogEventStartIndex *int64 `locationName:"tooNewLogEventStartIndex" type:"integer"`

	// The log events that are too old.
	TooOldLogEventEndIndex *int64 `locationName:"tooOldLogEventEndIndex" type:"integer"`
	// contains filtered or unexported fields
}

Represents the rejected events. Please also see https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/RejectedLogEventsInfo

func (RejectedLogEventsInfo) GoString

func (s RejectedLogEventsInfo) GoString() string

GoString returns the string representation

func (*RejectedLogEventsInfo) SetExpiredLogEventEndIndex

func (s *RejectedLogEventsInfo) SetExpiredLogEventEndIndex(v int64) *RejectedLogEventsInfo

SetExpiredLogEventEndIndex sets the ExpiredLogEventEndIndex field's value.

func (*RejectedLogEventsInfo) SetTooNewLogEventStartIndex

func (s *RejectedLogEventsInfo) SetTooNewLogEventStartIndex(v int64) *RejectedLogEventsInfo

SetTooNewLogEventStartIndex sets the TooNewLogEventStartIndex field's value.

func (*RejectedLogEventsInfo) SetTooOldLogEventEndIndex

func (s *RejectedLogEventsInfo) SetTooOldLogEventEndIndex(v int64) *RejectedLogEventsInfo

SetTooOldLogEventEndIndex sets the TooOldLogEventEndIndex field's value.

func (RejectedLogEventsInfo) String

func (s RejectedLogEventsInfo) String() string

String returns the string representation

type ResourcePolicy

type ResourcePolicy struct {

	// Time stamp 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"`
	// contains filtered or unexported fields
}

A policy enabling one or more entities to put logs to a log group in this account. Please also see https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/ResourcePolicy

func (ResourcePolicy) GoString

func (s ResourcePolicy) GoString() string

GoString returns the string representation

func (*ResourcePolicy) SetLastUpdatedTime

func (s *ResourcePolicy) SetLastUpdatedTime(v int64) *ResourcePolicy

SetLastUpdatedTime sets the LastUpdatedTime field's value.

func (*ResourcePolicy) SetPolicyDocument

func (s *ResourcePolicy) SetPolicyDocument(v string) *ResourcePolicy

SetPolicyDocument sets the PolicyDocument field's value.

func (*ResourcePolicy) SetPolicyName

func (s *ResourcePolicy) SetPolicyName(v string) *ResourcePolicy

SetPolicyName sets the PolicyName field's value.

func (ResourcePolicy) String

func (s ResourcePolicy) String() string

String returns the string representation

type SearchedLogStream

type SearchedLogStream struct {

	// 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"`
	// contains filtered or unexported fields
}

Represents the search status of a log stream. Please also see https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/SearchedLogStream

func (SearchedLogStream) GoString

func (s SearchedLogStream) GoString() string

GoString returns the string representation

func (*SearchedLogStream) SetLogStreamName

func (s *SearchedLogStream) SetLogStreamName(v string) *SearchedLogStream

SetLogStreamName sets the LogStreamName field's value.

func (*SearchedLogStream) SetSearchedCompletely

func (s *SearchedLogStream) SetSearchedCompletely(v bool) *SearchedLogStream

SetSearchedCompletely sets the SearchedCompletely field's value.

func (SearchedLogStream) String

func (s SearchedLogStream) String() string

String returns the string representation

type SubscriptionFilter

type SubscriptionFilter struct {

	// 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 Distribution `locationName:"distribution" type:"string" enum:"true"`

	// 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 may contain time stamps, 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"`
	// contains filtered or unexported fields
}

Represents a subscription filter. Please also see https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/SubscriptionFilter

func (SubscriptionFilter) GoString

func (s SubscriptionFilter) GoString() string

GoString returns the string representation

func (*SubscriptionFilter) SetCreationTime

func (s *SubscriptionFilter) SetCreationTime(v int64) *SubscriptionFilter

SetCreationTime sets the CreationTime field's value.

func (*SubscriptionFilter) SetDestinationArn

func (s *SubscriptionFilter) SetDestinationArn(v string) *SubscriptionFilter

SetDestinationArn sets the DestinationArn field's value.

func (*SubscriptionFilter) SetDistribution

func (s *SubscriptionFilter) SetDistribution(v Distribution) *SubscriptionFilter

SetDistribution sets the Distribution field's value.

func (*SubscriptionFilter) SetFilterName

func (s *SubscriptionFilter) SetFilterName(v string) *SubscriptionFilter

SetFilterName sets the FilterName field's value.

func (*SubscriptionFilter) SetFilterPattern

func (s *SubscriptionFilter) SetFilterPattern(v string) *SubscriptionFilter

SetFilterPattern sets the FilterPattern field's value.

func (*SubscriptionFilter) SetLogGroupName

func (s *SubscriptionFilter) SetLogGroupName(v string) *SubscriptionFilter

SetLogGroupName sets the LogGroupName field's value.

func (*SubscriptionFilter) SetRoleArn

func (s *SubscriptionFilter) SetRoleArn(v string) *SubscriptionFilter

SetRoleArn sets the RoleArn field's value.

func (SubscriptionFilter) String

func (s SubscriptionFilter) String() string

String returns the string representation

type TagLogGroupInput

type TagLogGroupInput struct {

	// 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"`
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/TagLogGroupRequest

func (TagLogGroupInput) GoString

func (s TagLogGroupInput) GoString() string

GoString returns the string representation

func (*TagLogGroupInput) SetLogGroupName

func (s *TagLogGroupInput) SetLogGroupName(v string) *TagLogGroupInput

SetLogGroupName sets the LogGroupName field's value.

func (*TagLogGroupInput) SetTags

func (s *TagLogGroupInput) SetTags(v map[string]string) *TagLogGroupInput

SetTags sets the Tags field's value.

func (TagLogGroupInput) String

func (s TagLogGroupInput) String() string

String returns the string representation

func (*TagLogGroupInput) Validate

func (s *TagLogGroupInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type TagLogGroupOutput

type TagLogGroupOutput struct {
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/TagLogGroupOutput

func (TagLogGroupOutput) GoString

func (s TagLogGroupOutput) GoString() string

GoString returns the string representation

func (TagLogGroupOutput) SDKResponseMetadata

func (s TagLogGroupOutput) SDKResponseMetadata() aws.Response

SDKResponseMetdata return sthe response metadata for the API.

func (TagLogGroupOutput) String

func (s TagLogGroupOutput) String() string

String returns the string representation

type TagLogGroupRequest

type TagLogGroupRequest struct {
	*aws.Request
	Input *TagLogGroupInput
}

TagLogGroupRequest is a API request type for the TagLogGroup API operation.

func (TagLogGroupRequest) Send

Send marshals and sends the TagLogGroup API request.

type TestMetricFilterInput

type TestMetricFilterInput struct {

	// A symbolic description of how CloudWatch Logs should interpret the data in
	// each log event. For example, a log event may contain time stamps, 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"`
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/TestMetricFilterRequest

func (TestMetricFilterInput) GoString

func (s TestMetricFilterInput) GoString() string

GoString returns the string representation

func (*TestMetricFilterInput) SetFilterPattern

func (s *TestMetricFilterInput) SetFilterPattern(v string) *TestMetricFilterInput

SetFilterPattern sets the FilterPattern field's value.

func (*TestMetricFilterInput) SetLogEventMessages

func (s *TestMetricFilterInput) SetLogEventMessages(v []string) *TestMetricFilterInput

SetLogEventMessages sets the LogEventMessages field's value.

func (TestMetricFilterInput) String

func (s TestMetricFilterInput) String() string

String returns the string representation

func (*TestMetricFilterInput) Validate

func (s *TestMetricFilterInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type TestMetricFilterOutput

type TestMetricFilterOutput struct {

	// The matched events.
	Matches []MetricFilterMatchRecord `locationName:"matches" type:"list"`
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/TestMetricFilterResponse

func (TestMetricFilterOutput) GoString

func (s TestMetricFilterOutput) GoString() string

GoString returns the string representation

func (TestMetricFilterOutput) SDKResponseMetadata

func (s TestMetricFilterOutput) SDKResponseMetadata() aws.Response

SDKResponseMetdata return sthe response metadata for the API.

func (*TestMetricFilterOutput) SetMatches

SetMatches sets the Matches field's value.

func (TestMetricFilterOutput) String

func (s TestMetricFilterOutput) String() string

String returns the string representation

type TestMetricFilterRequest

type TestMetricFilterRequest struct {
	*aws.Request
	Input *TestMetricFilterInput
}

TestMetricFilterRequest is a API request type for the TestMetricFilter API operation.

func (TestMetricFilterRequest) Send

Send marshals and sends the TestMetricFilter API request.

type UntagLogGroupInput

type UntagLogGroupInput struct {

	// 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"`
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/UntagLogGroupRequest

func (UntagLogGroupInput) GoString

func (s UntagLogGroupInput) GoString() string

GoString returns the string representation

func (*UntagLogGroupInput) SetLogGroupName

func (s *UntagLogGroupInput) SetLogGroupName(v string) *UntagLogGroupInput

SetLogGroupName sets the LogGroupName field's value.

func (*UntagLogGroupInput) SetTags

func (s *UntagLogGroupInput) SetTags(v []string) *UntagLogGroupInput

SetTags sets the Tags field's value.

func (UntagLogGroupInput) String

func (s UntagLogGroupInput) String() string

String returns the string representation

func (*UntagLogGroupInput) Validate

func (s *UntagLogGroupInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type UntagLogGroupOutput

type UntagLogGroupOutput struct {
	// contains filtered or unexported fields
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/UntagLogGroupOutput

func (UntagLogGroupOutput) GoString

func (s UntagLogGroupOutput) GoString() string

GoString returns the string representation

func (UntagLogGroupOutput) SDKResponseMetadata

func (s UntagLogGroupOutput) SDKResponseMetadata() aws.Response

SDKResponseMetdata return sthe response metadata for the API.

func (UntagLogGroupOutput) String

func (s UntagLogGroupOutput) String() string

String returns the string representation

type UntagLogGroupRequest

type UntagLogGroupRequest struct {
	*aws.Request
	Input *UntagLogGroupInput
}

UntagLogGroupRequest is a API request type for the UntagLogGroup API operation.

func (UntagLogGroupRequest) Send

Send marshals and sends the UntagLogGroup API request.

Directories

Path Synopsis
Package cloudwatchlogsiface provides an interface to enable mocking the Amazon CloudWatch Logs service client for testing your code.
Package cloudwatchlogsiface provides an interface to enable mocking the Amazon CloudWatch Logs service client for testing your code.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL