cloudwatchlogs

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2019 License: Apache-2.0 Imports: 7 Imported by: 240

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 use 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 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 (
	ServiceName = "Amazon CloudWatch Logs" // Service's name
	ServiceID   = "CloudWatchLogs"         // Service's identifier
	EndpointsID = "logs"                   // Service's Endpoint identifier
)
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"

	// ErrCodeMalformedQueryException for service response error code
	// "MalformedQueryException".
	//
	// The query string is not valid. Details about this error are displayed in
	// a QueryCompileError object. For more information, see .
	//
	// For more information about valid query syntax, see CloudWatch Logs Insights
	// Query Syntax (https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/CWL_QuerySyntax.html).
	ErrCodeMalformedQueryException = "MalformedQueryException"

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

	// ErrCodeUnrecognizedClientException for service response error code
	// "UnrecognizedClientException".
	//
	// The most likely cause is an invalid AWS access key ID or secret key.
	ErrCodeUnrecognizedClientException = "UnrecognizedClientException"
)

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) (https://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) 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) String

func (s AssociateKmsKeyOutput) String() string

String returns the string representation

type AssociateKmsKeyRequest

type AssociateKmsKeyRequest struct {
	*aws.Request
	Input *AssociateKmsKeyInput
	Copy  func(*AssociateKmsKeyInput) AssociateKmsKeyRequest
}

AssociateKmsKeyRequest is the request type for the AssociateKmsKey API operation.

func (AssociateKmsKeyRequest) Send

Send marshals and sends the AssociateKmsKey API request.

type AssociateKmsKeyResponse added in v0.9.0

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

AssociateKmsKeyResponse is the response type for the AssociateKmsKey API operation.

func (*AssociateKmsKeyResponse) SDKResponseMetdata added in v0.9.0

func (r *AssociateKmsKeyResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the AssociateKmsKey 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) 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) String

func (s CancelExportTaskOutput) String() string

String returns the string representation

type CancelExportTaskRequest

type CancelExportTaskRequest struct {
	*aws.Request
	Input *CancelExportTaskInput
	Copy  func(*CancelExportTaskInput) CancelExportTaskRequest
}

CancelExportTaskRequest is the request type for the CancelExportTask API operation.

func (CancelExportTaskRequest) Send

Send marshals and sends the CancelExportTask API request.

type CancelExportTaskResponse added in v0.9.0

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

CancelExportTaskResponse is the response type for the CancelExportTask API operation.

func (*CancelExportTaskResponse) SDKResponseMetdata added in v0.9.0

func (r *CancelExportTaskResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the CancelExportTask request.

type Client added in v0.9.0

type Client struct {
	*aws.Client
}

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

The client's 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) *Client

New creates a new instance of the client from the provided Config.

Example:

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

func (*Client) AssociateKmsKeyRequest added in v0.9.0

func (c *Client) 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 AssociateKmsKeyRequest.
req := client.AssociateKmsKeyRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

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

func (*Client) CancelExportTaskRequest added in v0.9.0

func (c *Client) 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 CancelExportTaskRequest.
req := client.CancelExportTaskRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

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

func (*Client) CreateExportTaskRequest added in v0.9.0

func (c *Client) 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.

Exporting to S3 buckets that are encrypted with AES-256 is supported. Exporting to S3 buckets encrypted with SSE-KMS is not supported.

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

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

func (*Client) CreateLogGroupRequest added in v0.9.0

func (c *Client) 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 CreateLogGroupRequest.
req := client.CreateLogGroupRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

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

func (*Client) CreateLogStreamRequest added in v0.9.0

func (c *Client) 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 CreateLogStreamRequest. req := client.CreateLogStreamRequest(params) resp, err := req.Send(context.TODO()) if err == nil { fmt.Println(resp) }

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

func (*Client) DeleteDestinationRequest added in v0.9.0

func (c *Client) 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 DeleteDestinationRequest.
req := client.DeleteDestinationRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

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

func (*Client) DeleteLogGroupRequest added in v0.9.0

func (c *Client) 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 DeleteLogGroupRequest.
req := client.DeleteLogGroupRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

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

func (*Client) DeleteLogStreamRequest added in v0.9.0

func (c *Client) 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 DeleteLogStreamRequest.
req := client.DeleteLogStreamRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

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

func (*Client) DeleteMetricFilterRequest added in v0.9.0

func (c *Client) 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 DeleteMetricFilterRequest.
req := client.DeleteMetricFilterRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

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

func (*Client) DeleteResourcePolicyRequest added in v0.9.0

func (c *Client) 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 DeleteResourcePolicyRequest.
req := client.DeleteResourcePolicyRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

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

func (*Client) DeleteRetentionPolicyRequest added in v0.9.0

func (c *Client) 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 DeleteRetentionPolicyRequest.
req := client.DeleteRetentionPolicyRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

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

func (*Client) DeleteSubscriptionFilterRequest added in v0.9.0

func (c *Client) 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 DeleteSubscriptionFilterRequest.
req := client.DeleteSubscriptionFilterRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

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

func (*Client) DescribeDestinationsRequest added in v0.9.0

func (c *Client) 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 DescribeDestinationsRequest.
req := client.DescribeDestinationsRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

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

func (*Client) DescribeExportTasksRequest added in v0.9.0

func (c *Client) 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 DescribeExportTasksRequest.
req := client.DescribeExportTasksRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

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

func (*Client) DescribeLogGroupsRequest added in v0.9.0

func (c *Client) 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 DescribeLogGroupsRequest.
req := client.DescribeLogGroupsRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

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

func (*Client) DescribeLogStreamsRequest added in v0.9.0

func (c *Client) 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 DescribeLogStreamsRequest.
req := client.DescribeLogStreamsRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

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

func (*Client) DescribeMetricFiltersRequest added in v0.9.0

func (c *Client) 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 DescribeMetricFiltersRequest.
req := client.DescribeMetricFiltersRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

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

func (*Client) DescribeQueriesRequest added in v0.9.0

func (c *Client) DescribeQueriesRequest(input *DescribeQueriesInput) DescribeQueriesRequest

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

Returns a list of CloudWatch Logs Insights queries that are scheduled, executing, or have been executed recently in this account. You can request all queries, or limit it to queries of a specific log group or queries with a certain status.

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

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

func (*Client) DescribeResourcePoliciesRequest added in v0.9.0

func (c *Client) 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 DescribeResourcePoliciesRequest.
req := client.DescribeResourcePoliciesRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

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

func (*Client) DescribeSubscriptionFiltersRequest added in v0.9.0

func (c *Client) 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 DescribeSubscriptionFiltersRequest.
req := client.DescribeSubscriptionFiltersRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

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

func (*Client) DisassociateKmsKeyRequest added in v0.9.0

func (c *Client) 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 DisassociateKmsKeyRequest.
req := client.DisassociateKmsKeyRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

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

func (*Client) FilterLogEventsRequest added in v0.9.0

func (c *Client) 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 FilterLogEventsRequest.
req := client.FilterLogEventsRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

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

func (*Client) GetLogEventsRequest added in v0.9.0

func (c *Client) 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 GetLogEventsRequest.
req := client.GetLogEventsRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

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

func (*Client) GetLogGroupFieldsRequest added in v0.9.0

func (c *Client) GetLogGroupFieldsRequest(input *GetLogGroupFieldsInput) GetLogGroupFieldsRequest

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

Returns a list of the fields that are included in log events in the specified log group, along with the percentage of log events that contain each field. The search is limited to a time period that you specify.

In the results, fields that start with @ are fields generated by CloudWatch Logs. For example, @timestamp is the timestamp of each log event.

The response results are sorted by the frequency percentage, starting with the highest percentage.

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

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

func (*Client) GetLogRecordRequest added in v0.9.0

func (c *Client) GetLogRecordRequest(input *GetLogRecordInput) GetLogRecordRequest

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

Retrieves all the fields and values of a single log event. All fields are retrieved, even if the original query that produced the logRecordPointer retrieved only a subset of fields. Fields are returned as field name/field value pairs.

Additionally, the entire unparsed log event is returned within @message.

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

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

func (*Client) GetQueryResultsRequest added in v0.9.0

func (c *Client) GetQueryResultsRequest(input *GetQueryResultsInput) GetQueryResultsRequest

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

Returns the results from the specified query.

Only the fields requested in the query are returned, along with a @ptr field which is the identifier for the log record. You can use the value of @ptr in a operation to get the full log record.

GetQueryResults does not start a query execution. To run a query, use .

If the value of the Status field in the output is Running, this operation returns only partial results. If you see a value of Scheduled or Running for the status, you can retry the operation later to see the final results.

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

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

func (*Client) ListTagsLogGroupRequest added in v0.9.0

func (c *Client) 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 ListTagsLogGroupRequest.
req := client.ListTagsLogGroupRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

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

func (*Client) PutDestinationPolicyRequest added in v0.9.0

func (c *Client) 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 (https://docs.aws.amazon.com/IAM/latest/UserGuide/policies_overview.html) that is used to authorize claims to register a subscription filter against a given destination.

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

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

func (*Client) PutDestinationRequest added in v0.9.0

func (c *Client) 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. A destination can be an Amazon Kinesis stream, Amazon Kinesis Data Firehose strea, or an AWS Lambda function.

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

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

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

func (*Client) PutLogEventsRequest added in v0.9.0

func (c *Client) 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 older than the retention period of the log group.

  • The log events in the batch must be in chronological ordered by their timestamp. The timestamp is the time the event occurred, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC. (In AWS Tools for PowerShell and the AWS SDK for .NET, the timestamp is specified in .NET format: yyyy-mm-ddThh:mm:ss. For example, 2017-09-15T13:45:30.)

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

If a call to PutLogEvents returns "UnrecognizedClientException" the most likely cause is an invalid AWS access key ID or secret key.

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

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

func (*Client) PutMetricFilterRequest added in v0.9.0

func (c *Client) 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 PutMetricFilterRequest.
req := client.PutMetricFilterRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

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

func (*Client) PutResourcePolicyRequest added in v0.9.0

func (c *Client) 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 10 resource policies per region.

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

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

func (*Client) PutRetentionPolicyRequest added in v0.9.0

func (c *Client) 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 PutRetentionPolicyRequest.
req := client.PutRetentionPolicyRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

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

func (*Client) PutSubscriptionFilterRequest added in v0.9.0

func (c *Client) 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 PutSubscriptionFilterRequest.
req := client.PutSubscriptionFilterRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

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

func (*Client) StartQueryRequest added in v0.9.0

func (c *Client) StartQueryRequest(input *StartQueryInput) StartQueryRequest

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

Schedules a query of a log group using CloudWatch Logs Insights. You specify the log group and time range to query, and the query string to use.

For more information, see CloudWatch Logs Insights Query Syntax (https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/CWL_QuerySyntax.html).

Queries time out after 15 minutes of execution. If your queries are timing out, reduce the time range being searched, or partition your query into a number of queries.

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

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

func (*Client) StopQueryRequest added in v0.9.0

func (c *Client) StopQueryRequest(input *StopQueryInput) StopQueryRequest

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

Stops a CloudWatch Logs Insights query that is in progress. If the query has already ended, the operation returns an error indicating that the specified query is not running.

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

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

func (*Client) TagLogGroupRequest added in v0.9.0

func (c *Client) 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 (https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/log-group-tagging.html) in the Amazon CloudWatch Logs User Guide.

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

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

func (*Client) TestMetricFilterRequest added in v0.9.0

func (c *Client) 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 TestMetricFilterRequest.
req := client.TestMetricFilterRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

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

func (*Client) UntagLogGroupRequest added in v0.9.0

func (c *Client) 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 UntagLogGroupRequest.
req := client.UntagLogGroupRequest(params)
resp, err := req.Send(context.TODO())
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 timestamp earlier than this
	// time are not exported.
	//
	// From is a required field
	From *int64 `locationName:"from" type:"long" required:"true"`

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

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

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

	// The end time of the range for the request, expressed as the number of milliseconds
	// after Jan 1, 1970 00:00:00 UTC. Events with a timestamp later than this time
	// are not exported.
	//
	// 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) 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) String

func (s CreateExportTaskOutput) String() string

String returns the string representation

type CreateExportTaskRequest

type CreateExportTaskRequest struct {
	*aws.Request
	Input *CreateExportTaskInput
	Copy  func(*CreateExportTaskInput) CreateExportTaskRequest
}

CreateExportTaskRequest is the request type for the CreateExportTask API operation.

func (CreateExportTaskRequest) Send

Send marshals and sends the CreateExportTask API request.

type CreateExportTaskResponse added in v0.9.0

type CreateExportTaskResponse struct {
	*CreateExportTaskOutput
	// contains filtered or unexported fields
}

CreateExportTaskResponse is the response type for the CreateExportTask API operation.

func (*CreateExportTaskResponse) SDKResponseMetdata added in v0.9.0

func (r *CreateExportTaskResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the CreateExportTask 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) (https://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) 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) String

func (s CreateLogGroupOutput) String() string

String returns the string representation

type CreateLogGroupRequest

type CreateLogGroupRequest struct {
	*aws.Request
	Input *CreateLogGroupInput
	Copy  func(*CreateLogGroupInput) CreateLogGroupRequest
}

CreateLogGroupRequest is the request type for the CreateLogGroup API operation.

func (CreateLogGroupRequest) Send

Send marshals and sends the CreateLogGroup API request.

type CreateLogGroupResponse added in v0.9.0

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

CreateLogGroupResponse is the response type for the CreateLogGroup API operation.

func (*CreateLogGroupResponse) SDKResponseMetdata added in v0.9.0

func (r *CreateLogGroupResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the CreateLogGroup 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) 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) String

func (s CreateLogStreamOutput) String() string

String returns the string representation

type CreateLogStreamRequest

type CreateLogStreamRequest struct {
	*aws.Request
	Input *CreateLogStreamInput
	Copy  func(*CreateLogStreamInput) CreateLogStreamRequest
}

CreateLogStreamRequest is the request type for the CreateLogStream API operation.

func (CreateLogStreamRequest) Send

Send marshals and sends the CreateLogStream API request.

type CreateLogStreamResponse added in v0.9.0

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

CreateLogStreamResponse is the response type for the CreateLogStream API operation.

func (*CreateLogStreamResponse) SDKResponseMetdata added in v0.9.0

func (r *CreateLogStreamResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the CreateLogStream 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) 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) String

func (s DeleteDestinationOutput) String() string

String returns the string representation

type DeleteDestinationRequest

type DeleteDestinationRequest struct {
	*aws.Request
	Input *DeleteDestinationInput
	Copy  func(*DeleteDestinationInput) DeleteDestinationRequest
}

DeleteDestinationRequest is the request type for the DeleteDestination API operation.

func (DeleteDestinationRequest) Send

Send marshals and sends the DeleteDestination API request.

type DeleteDestinationResponse added in v0.9.0

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

DeleteDestinationResponse is the response type for the DeleteDestination API operation.

func (*DeleteDestinationResponse) SDKResponseMetdata added in v0.9.0

func (r *DeleteDestinationResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the DeleteDestination 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) 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) String

func (s DeleteLogGroupOutput) String() string

String returns the string representation

type DeleteLogGroupRequest

type DeleteLogGroupRequest struct {
	*aws.Request
	Input *DeleteLogGroupInput
	Copy  func(*DeleteLogGroupInput) DeleteLogGroupRequest
}

DeleteLogGroupRequest is the request type for the DeleteLogGroup API operation.

func (DeleteLogGroupRequest) Send

Send marshals and sends the DeleteLogGroup API request.

type DeleteLogGroupResponse added in v0.9.0

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

DeleteLogGroupResponse is the response type for the DeleteLogGroup API operation.

func (*DeleteLogGroupResponse) SDKResponseMetdata added in v0.9.0

func (r *DeleteLogGroupResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the DeleteLogGroup 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) 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) String

func (s DeleteLogStreamOutput) String() string

String returns the string representation

type DeleteLogStreamRequest

type DeleteLogStreamRequest struct {
	*aws.Request
	Input *DeleteLogStreamInput
	Copy  func(*DeleteLogStreamInput) DeleteLogStreamRequest
}

DeleteLogStreamRequest is the request type for the DeleteLogStream API operation.

func (DeleteLogStreamRequest) Send

Send marshals and sends the DeleteLogStream API request.

type DeleteLogStreamResponse added in v0.9.0

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

DeleteLogStreamResponse is the response type for the DeleteLogStream API operation.

func (*DeleteLogStreamResponse) SDKResponseMetdata added in v0.9.0

func (r *DeleteLogStreamResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the DeleteLogStream 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) 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) String

func (s DeleteMetricFilterOutput) String() string

String returns the string representation

type DeleteMetricFilterRequest

type DeleteMetricFilterRequest struct {
	*aws.Request
	Input *DeleteMetricFilterInput
	Copy  func(*DeleteMetricFilterInput) DeleteMetricFilterRequest
}

DeleteMetricFilterRequest is the request type for the DeleteMetricFilter API operation.

func (DeleteMetricFilterRequest) Send

Send marshals and sends the DeleteMetricFilter API request.

type DeleteMetricFilterResponse added in v0.9.0

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

DeleteMetricFilterResponse is the response type for the DeleteMetricFilter API operation.

func (*DeleteMetricFilterResponse) SDKResponseMetdata added in v0.9.0

func (r *DeleteMetricFilterResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the DeleteMetricFilter 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) 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) String

String returns the string representation

type DeleteResourcePolicyRequest

type DeleteResourcePolicyRequest struct {
	*aws.Request
	Input *DeleteResourcePolicyInput
	Copy  func(*DeleteResourcePolicyInput) DeleteResourcePolicyRequest
}

DeleteResourcePolicyRequest is the request type for the DeleteResourcePolicy API operation.

func (DeleteResourcePolicyRequest) Send

Send marshals and sends the DeleteResourcePolicy API request.

type DeleteResourcePolicyResponse added in v0.9.0

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

DeleteResourcePolicyResponse is the response type for the DeleteResourcePolicy API operation.

func (*DeleteResourcePolicyResponse) SDKResponseMetdata added in v0.9.0

func (r *DeleteResourcePolicyResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the DeleteResourcePolicy 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) 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) String

String returns the string representation

type DeleteRetentionPolicyRequest

type DeleteRetentionPolicyRequest struct {
	*aws.Request
	Input *DeleteRetentionPolicyInput
	Copy  func(*DeleteRetentionPolicyInput) DeleteRetentionPolicyRequest
}

DeleteRetentionPolicyRequest is the request type for the DeleteRetentionPolicy API operation.

func (DeleteRetentionPolicyRequest) Send

Send marshals and sends the DeleteRetentionPolicy API request.

type DeleteRetentionPolicyResponse added in v0.9.0

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

DeleteRetentionPolicyResponse is the response type for the DeleteRetentionPolicy API operation.

func (*DeleteRetentionPolicyResponse) SDKResponseMetdata added in v0.9.0

func (r *DeleteRetentionPolicyResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the DeleteRetentionPolicy 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) 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) String

String returns the string representation

type DeleteSubscriptionFilterRequest

type DeleteSubscriptionFilterRequest struct {
	*aws.Request
	Input *DeleteSubscriptionFilterInput
	Copy  func(*DeleteSubscriptionFilterInput) DeleteSubscriptionFilterRequest
}

DeleteSubscriptionFilterRequest is the request type for the DeleteSubscriptionFilter API operation.

func (DeleteSubscriptionFilterRequest) Send

Send marshals and sends the DeleteSubscriptionFilter API request.

type DeleteSubscriptionFilterResponse added in v0.9.0

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

DeleteSubscriptionFilterResponse is the response type for the DeleteSubscriptionFilter API operation.

func (*DeleteSubscriptionFilterResponse) SDKResponseMetdata added in v0.9.0

func (r *DeleteSubscriptionFilterResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the DeleteSubscriptionFilter 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) 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) String

String returns the string representation

type DescribeDestinationsPaginator added in v0.9.0

type DescribeDestinationsPaginator struct {
	aws.Pager
}

DescribeDestinationsPaginator is used to paginate the request. This can be done by calling Next and CurrentPage.

func NewDescribeDestinationsPaginator added in v0.9.0

func NewDescribeDestinationsPaginator(req DescribeDestinationsRequest) DescribeDestinationsPaginator

NewDescribeDestinationsRequestPaginator returns a paginator for DescribeDestinations. Use Next method to get the next page, and CurrentPage to get the current response page from the paginator. Next will return false, if there are no more pages, or an error was encountered.

Note: This operation can generate multiple requests to a service.

// Example iterating over pages.
req := client.DescribeDestinationsRequest(input)
p := cloudwatchlogs.NewDescribeDestinationsRequestPaginator(req)

for p.Next(context.TODO()) {
    page := p.CurrentPage()
}

if err := p.Err(); err != nil {
    return err
}

func (*DescribeDestinationsPaginator) CurrentPage added in v0.9.0

type DescribeDestinationsRequest

type DescribeDestinationsRequest struct {
	*aws.Request
	Input *DescribeDestinationsInput
	Copy  func(*DescribeDestinationsInput) DescribeDestinationsRequest
}

DescribeDestinationsRequest is the request type for the DescribeDestinations API operation.

func (DescribeDestinationsRequest) Send

Send marshals and sends the DescribeDestinations API request.

type DescribeDestinationsResponse added in v0.9.0

type DescribeDestinationsResponse struct {
	*DescribeDestinationsOutput
	// contains filtered or unexported fields
}

DescribeDestinationsResponse is the response type for the DescribeDestinations API operation.

func (*DescribeDestinationsResponse) SDKResponseMetdata added in v0.9.0

func (r *DescribeDestinationsResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the DescribeDestinations 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) 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) String

func (s DescribeExportTasksOutput) String() string

String returns the string representation

type DescribeExportTasksRequest

type DescribeExportTasksRequest struct {
	*aws.Request
	Input *DescribeExportTasksInput
	Copy  func(*DescribeExportTasksInput) DescribeExportTasksRequest
}

DescribeExportTasksRequest is the request type for the DescribeExportTasks API operation.

func (DescribeExportTasksRequest) Send

Send marshals and sends the DescribeExportTasks API request.

type DescribeExportTasksResponse added in v0.9.0

type DescribeExportTasksResponse struct {
	*DescribeExportTasksOutput
	// contains filtered or unexported fields
}

DescribeExportTasksResponse is the response type for the DescribeExportTasks API operation.

func (*DescribeExportTasksResponse) SDKResponseMetdata added in v0.9.0

func (r *DescribeExportTasksResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the DescribeExportTasks 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) 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) String

func (s DescribeLogGroupsOutput) String() string

String returns the string representation

type DescribeLogGroupsPaginator added in v0.9.0

type DescribeLogGroupsPaginator struct {
	aws.Pager
}

DescribeLogGroupsPaginator is used to paginate the request. This can be done by calling Next and CurrentPage.

func NewDescribeLogGroupsPaginator added in v0.9.0

func NewDescribeLogGroupsPaginator(req DescribeLogGroupsRequest) DescribeLogGroupsPaginator

NewDescribeLogGroupsRequestPaginator returns a paginator for DescribeLogGroups. Use Next method to get the next page, and CurrentPage to get the current response page from the paginator. Next will return false, if there are no more pages, or an error was encountered.

Note: This operation can generate multiple requests to a service.

// Example iterating over pages.
req := client.DescribeLogGroupsRequest(input)
p := cloudwatchlogs.NewDescribeLogGroupsRequestPaginator(req)

for p.Next(context.TODO()) {
    page := p.CurrentPage()
}

if err := p.Err(); err != nil {
    return err
}

func (*DescribeLogGroupsPaginator) CurrentPage added in v0.9.0

type DescribeLogGroupsRequest

type DescribeLogGroupsRequest struct {
	*aws.Request
	Input *DescribeLogGroupsInput
	Copy  func(*DescribeLogGroupsInput) DescribeLogGroupsRequest
}

DescribeLogGroupsRequest is the request type for the DescribeLogGroups API operation.

func (DescribeLogGroupsRequest) Send

Send marshals and sends the DescribeLogGroups API request.

type DescribeLogGroupsResponse added in v0.9.0

type DescribeLogGroupsResponse struct {
	*DescribeLogGroupsOutput
	// contains filtered or unexported fields
}

DescribeLogGroupsResponse is the response type for the DescribeLogGroups API operation.

func (*DescribeLogGroupsResponse) SDKResponseMetdata added in v0.9.0

func (r *DescribeLogGroupsResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the DescribeLogGroups 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.
	//
	// If orderBy is LastEventTime,you cannot specify this parameter.
	LogStreamNamePrefix *string `locationName:"logStreamNamePrefix" min:"1" type:"string"`

	// The token for the next set of items to return. (You received this token from
	// a previous call.)
	NextToken *string `locationName:"nextToken" min:"1" type:"string"`

	// If the value is LogStreamName, the results are ordered by log stream name.
	// If the value is LastEventTime, the results are ordered by the event time.
	// The default value is LogStreamName.
	//
	// If you order the results by event time, you cannot specify the logStreamNamePrefix
	// parameter.
	//
	// lastEventTimestamp represents the time of the most recent log event in the
	// log stream in CloudWatch Logs. This number is expressed as the number of
	// milliseconds after Jan 1, 1970 00:00:00 UTC. lastEventTimeStamp updates on
	// an eventual consistency basis. It typically updates in less than an hour
	// from ingestion, but 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) 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) String

func (s DescribeLogStreamsOutput) String() string

String returns the string representation

type DescribeLogStreamsPaginator added in v0.9.0

type DescribeLogStreamsPaginator struct {
	aws.Pager
}

DescribeLogStreamsPaginator is used to paginate the request. This can be done by calling Next and CurrentPage.

func NewDescribeLogStreamsPaginator added in v0.9.0

func NewDescribeLogStreamsPaginator(req DescribeLogStreamsRequest) DescribeLogStreamsPaginator

NewDescribeLogStreamsRequestPaginator returns a paginator for DescribeLogStreams. Use Next method to get the next page, and CurrentPage to get the current response page from the paginator. Next will return false, if there are no more pages, or an error was encountered.

Note: This operation can generate multiple requests to a service.

// Example iterating over pages.
req := client.DescribeLogStreamsRequest(input)
p := cloudwatchlogs.NewDescribeLogStreamsRequestPaginator(req)

for p.Next(context.TODO()) {
    page := p.CurrentPage()
}

if err := p.Err(); err != nil {
    return err
}

func (*DescribeLogStreamsPaginator) CurrentPage added in v0.9.0

type DescribeLogStreamsRequest

type DescribeLogStreamsRequest struct {
	*aws.Request
	Input *DescribeLogStreamsInput
	Copy  func(*DescribeLogStreamsInput) DescribeLogStreamsRequest
}

DescribeLogStreamsRequest is the request type for the DescribeLogStreams API operation.

func (DescribeLogStreamsRequest) Send

Send marshals and sends the DescribeLogStreams API request.

type DescribeLogStreamsResponse added in v0.9.0

type DescribeLogStreamsResponse struct {
	*DescribeLogStreamsOutput
	// contains filtered or unexported fields
}

DescribeLogStreamsResponse is the response type for the DescribeLogStreams API operation.

func (*DescribeLogStreamsResponse) SDKResponseMetdata added in v0.9.0

func (r *DescribeLogStreamsResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the DescribeLogStreams 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"`

	// Filters results to include only those with the specified metric name. If
	// you include this parameter in your request, you must also include the metricNamespace
	// parameter.
	MetricName *string `locationName:"metricName" type:"string"`

	// Filters results to include only those in the specified namespace. If you
	// include this parameter in your request, you must also include the metricName
	// parameter.
	MetricNamespace *string `locationName:"metricNamespace" type:"string"`

	// The token for the next set of items to return. (You received this token from
	// a previous call.)
	NextToken *string `locationName:"nextToken" min:"1" type:"string"`
	// contains filtered or unexported fields
}

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

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) String

String returns the string representation

type DescribeMetricFiltersPaginator added in v0.9.0

type DescribeMetricFiltersPaginator struct {
	aws.Pager
}

DescribeMetricFiltersPaginator is used to paginate the request. This can be done by calling Next and CurrentPage.

func NewDescribeMetricFiltersPaginator added in v0.9.0

func NewDescribeMetricFiltersPaginator(req DescribeMetricFiltersRequest) DescribeMetricFiltersPaginator

NewDescribeMetricFiltersRequestPaginator returns a paginator for DescribeMetricFilters. Use Next method to get the next page, and CurrentPage to get the current response page from the paginator. Next will return false, if there are no more pages, or an error was encountered.

Note: This operation can generate multiple requests to a service.

// Example iterating over pages.
req := client.DescribeMetricFiltersRequest(input)
p := cloudwatchlogs.NewDescribeMetricFiltersRequestPaginator(req)

for p.Next(context.TODO()) {
    page := p.CurrentPage()
}

if err := p.Err(); err != nil {
    return err
}

func (*DescribeMetricFiltersPaginator) CurrentPage added in v0.9.0

type DescribeMetricFiltersRequest

type DescribeMetricFiltersRequest struct {
	*aws.Request
	Input *DescribeMetricFiltersInput
	Copy  func(*DescribeMetricFiltersInput) DescribeMetricFiltersRequest
}

DescribeMetricFiltersRequest is the request type for the DescribeMetricFilters API operation.

func (DescribeMetricFiltersRequest) Send

Send marshals and sends the DescribeMetricFilters API request.

type DescribeMetricFiltersResponse added in v0.9.0

type DescribeMetricFiltersResponse struct {
	*DescribeMetricFiltersOutput
	// contains filtered or unexported fields
}

DescribeMetricFiltersResponse is the response type for the DescribeMetricFilters API operation.

func (*DescribeMetricFiltersResponse) SDKResponseMetdata added in v0.9.0

func (r *DescribeMetricFiltersResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the DescribeMetricFilters request.

type DescribeQueriesInput added in v0.6.0

type DescribeQueriesInput struct {

	// Limits the returned queries to only those for the specified log group.
	LogGroupName *string `locationName:"logGroupName" min:"1" type:"string"`

	// Limits the number of returned queries to the specified number.
	MaxResults *int64 `locationName:"maxResults" min:"1" type:"integer"`

	// The token for the next set of items to return. The token expires after 24
	// hours.
	NextToken *string `locationName:"nextToken" min:"1" type:"string"`

	// Limits the returned queries to only those that have the specified status.
	// Valid values are Cancelled, Complete, Failed, Running, and Scheduled.
	Status QueryStatus `locationName:"status" type:"string" enum:"true"`
	// contains filtered or unexported fields
}

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

func (DescribeQueriesInput) String added in v0.6.0

func (s DescribeQueriesInput) String() string

String returns the string representation

func (*DescribeQueriesInput) Validate added in v0.6.0

func (s *DescribeQueriesInput) Validate() error

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

type DescribeQueriesOutput added in v0.6.0

type DescribeQueriesOutput 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 list of queries that match the request.
	Queries []QueryInfo `locationName:"queries" type:"list"`
	// contains filtered or unexported fields
}

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

func (DescribeQueriesOutput) String added in v0.6.0

func (s DescribeQueriesOutput) String() string

String returns the string representation

type DescribeQueriesRequest added in v0.6.0

type DescribeQueriesRequest struct {
	*aws.Request
	Input *DescribeQueriesInput
	Copy  func(*DescribeQueriesInput) DescribeQueriesRequest
}

DescribeQueriesRequest is the request type for the DescribeQueries API operation.

func (DescribeQueriesRequest) Send added in v0.6.0

Send marshals and sends the DescribeQueries API request.

type DescribeQueriesResponse added in v0.9.0

type DescribeQueriesResponse struct {
	*DescribeQueriesOutput
	// contains filtered or unexported fields
}

DescribeQueriesResponse is the response type for the DescribeQueries API operation.

func (*DescribeQueriesResponse) SDKResponseMetdata added in v0.9.0

func (r *DescribeQueriesResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the DescribeQueries 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) 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) String

String returns the string representation

type DescribeResourcePoliciesRequest

type DescribeResourcePoliciesRequest struct {
	*aws.Request
	Input *DescribeResourcePoliciesInput
	Copy  func(*DescribeResourcePoliciesInput) DescribeResourcePoliciesRequest
}

DescribeResourcePoliciesRequest is the request type for the DescribeResourcePolicies API operation.

func (DescribeResourcePoliciesRequest) Send

Send marshals and sends the DescribeResourcePolicies API request.

type DescribeResourcePoliciesResponse added in v0.9.0

type DescribeResourcePoliciesResponse struct {
	*DescribeResourcePoliciesOutput
	// contains filtered or unexported fields
}

DescribeResourcePoliciesResponse is the response type for the DescribeResourcePolicies API operation.

func (*DescribeResourcePoliciesResponse) SDKResponseMetdata added in v0.9.0

func (r *DescribeResourcePoliciesResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the DescribeResourcePolicies 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) 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) String

String returns the string representation

type DescribeSubscriptionFiltersPaginator added in v0.9.0

type DescribeSubscriptionFiltersPaginator struct {
	aws.Pager
}

DescribeSubscriptionFiltersPaginator is used to paginate the request. This can be done by calling Next and CurrentPage.

func NewDescribeSubscriptionFiltersPaginator added in v0.9.0

func NewDescribeSubscriptionFiltersPaginator(req DescribeSubscriptionFiltersRequest) DescribeSubscriptionFiltersPaginator

NewDescribeSubscriptionFiltersRequestPaginator returns a paginator for DescribeSubscriptionFilters. Use Next method to get the next page, and CurrentPage to get the current response page from the paginator. Next will return false, if there are no more pages, or an error was encountered.

Note: This operation can generate multiple requests to a service.

// Example iterating over pages.
req := client.DescribeSubscriptionFiltersRequest(input)
p := cloudwatchlogs.NewDescribeSubscriptionFiltersRequestPaginator(req)

for p.Next(context.TODO()) {
    page := p.CurrentPage()
}

if err := p.Err(); err != nil {
    return err
}

func (*DescribeSubscriptionFiltersPaginator) CurrentPage added in v0.9.0

type DescribeSubscriptionFiltersRequest

type DescribeSubscriptionFiltersRequest struct {
	*aws.Request
	Input *DescribeSubscriptionFiltersInput
	Copy  func(*DescribeSubscriptionFiltersInput) DescribeSubscriptionFiltersRequest
}

DescribeSubscriptionFiltersRequest is the request type for the DescribeSubscriptionFilters API operation.

func (DescribeSubscriptionFiltersRequest) Send

Send marshals and sends the DescribeSubscriptionFilters API request.

type DescribeSubscriptionFiltersResponse added in v0.9.0

type DescribeSubscriptionFiltersResponse struct {
	*DescribeSubscriptionFiltersOutput
	// contains filtered or unexported fields
}

DescribeSubscriptionFiltersResponse is the response type for the DescribeSubscriptionFilters API operation.

func (*DescribeSubscriptionFiltersResponse) SDKResponseMetdata added in v0.9.0

func (r *DescribeSubscriptionFiltersResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the DescribeSubscriptionFilters 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) 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) 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) String

func (s DisassociateKmsKeyOutput) String() string

String returns the string representation

type DisassociateKmsKeyRequest

type DisassociateKmsKeyRequest struct {
	*aws.Request
	Input *DisassociateKmsKeyInput
	Copy  func(*DisassociateKmsKeyInput) DisassociateKmsKeyRequest
}

DisassociateKmsKeyRequest is the request type for the DisassociateKmsKey API operation.

func (DisassociateKmsKeyRequest) Send

Send marshals and sends the DisassociateKmsKey API request.

type DisassociateKmsKeyResponse added in v0.9.0

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

DisassociateKmsKeyResponse is the response type for the DisassociateKmsKey API operation.

func (*DisassociateKmsKeyResponse) SDKResponseMetdata added in v0.9.0

func (r *DisassociateKmsKeyResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the DisassociateKmsKey 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

func (Distribution) MarshalValue added in v0.3.0

func (enum Distribution) MarshalValue() (string, error)

func (Distribution) MarshalValueBuf added in v0.3.0

func (enum Distribution) MarshalValueBuf(b []byte) ([]byte, error)

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 timestamp before this time are not exported.
	From *int64 `locationName:"from" type:"long"`

	// The name of the log group from which logs data was exported.
	LogGroupName *string `locationName:"logGroupName" min:"1" type:"string"`

	// The status of the export task.
	Status *ExportTaskStatus `locationName:"status" type:"structure"`

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

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

	// The end time, expressed as the number of milliseconds after Jan 1, 1970 00:00:00
	// UTC. Events with a timestamp later than this time are not exported.
	To *int64 `locationName:"to" type:"long"`
	// 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) 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) 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) 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

func (ExportTaskStatusCode) MarshalValue added in v0.3.0

func (enum ExportTaskStatusCode) MarshalValue() (string, error)

func (ExportTaskStatusCode) MarshalValueBuf added in v0.3.0

func (enum ExportTaskStatusCode) MarshalValueBuf(b []byte) ([]byte, error)

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 timestamp later than this time are
	// not returned.
	EndTime *int64 `locationName:"endTime" type:"long"`

	// The filter pattern to use. For more information, see Filter and Pattern Syntax
	// (https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/FilterAndPatternSyntax.html).
	//
	// If not provided, all the events are matched.
	FilterPattern *string `locationName:"filterPattern" type:"string"`

	// If the value is true, the operation 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.
	//
	// IMPORTANT: Starting on June 17, 2019, this parameter will be ignored and
	// the value will be assumed to be true. The response from this operation will
	// always interleave events from multiple log streams within a log group.
	Interleaved *bool `locationName:"interleaved" deprecated:"true" type:"boolean"`

	// The maximum number of events to return. The default is 10,000 events.
	Limit *int64 `locationName:"limit" min:"1" type:"integer"`

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

	// Filters the results to include only events from log streams that have names
	// starting with this prefix.
	//
	// If you specify a value for both logStreamNamePrefix and logStreamNames, but
	// the value for logStreamNamePrefix does not match any log stream names specified
	// in logStreamNames, the action returns an InvalidParameterException error.
	LogStreamNamePrefix *string `locationName:"logStreamNamePrefix" min:"1" type:"string"`

	// Filters the results to only logs from the log streams in this list.
	//
	// If you specify a value for both logStreamNamePrefix and logStreamNames, the
	// action returns an InvalidParameterException error.
	LogStreamNames []string `locationName:"logStreamNames" min:"1" type:"list"`

	// The token for the next set of events to return. (You received this token
	// from a previous call.)
	NextToken *string `locationName:"nextToken" min:"1" type:"string"`

	// The start of the time range, expressed as the number of milliseconds after
	// Jan 1, 1970 00:00:00 UTC. Events with a timestamp before this time are not
	// returned.
	StartTime *int64 `locationName:"startTime" type:"long"`
	// contains filtered or unexported fields
}

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

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) String

func (s FilterLogEventsOutput) String() string

String returns the string representation

type FilterLogEventsPaginator added in v0.9.0

type FilterLogEventsPaginator struct {
	aws.Pager
}

FilterLogEventsPaginator is used to paginate the request. This can be done by calling Next and CurrentPage.

func NewFilterLogEventsPaginator added in v0.9.0

func NewFilterLogEventsPaginator(req FilterLogEventsRequest) FilterLogEventsPaginator

NewFilterLogEventsRequestPaginator returns a paginator for FilterLogEvents. Use Next method to get the next page, and CurrentPage to get the current response page from the paginator. Next will return false, if there are no more pages, or an error was encountered.

Note: This operation can generate multiple requests to a service.

// Example iterating over pages.
req := client.FilterLogEventsRequest(input)
p := cloudwatchlogs.NewFilterLogEventsRequestPaginator(req)

for p.Next(context.TODO()) {
    page := p.CurrentPage()
}

if err := p.Err(); err != nil {
    return err
}

func (*FilterLogEventsPaginator) CurrentPage added in v0.9.0

type FilterLogEventsRequest

type FilterLogEventsRequest struct {
	*aws.Request
	Input *FilterLogEventsInput
	Copy  func(*FilterLogEventsInput) FilterLogEventsRequest
}

FilterLogEventsRequest is the request type for the FilterLogEvents API operation.

func (FilterLogEventsRequest) Send

Send marshals and sends the FilterLogEvents API request.

type FilterLogEventsResponse added in v0.9.0

type FilterLogEventsResponse struct {
	*FilterLogEventsOutput
	// contains filtered or unexported fields
}

FilterLogEventsResponse is the response type for the FilterLogEvents API operation.

func (*FilterLogEventsResponse) SDKResponseMetdata added in v0.9.0

func (r *FilterLogEventsResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the FilterLogEvents 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 to which this event belongs.
	LogStreamName *string `locationName:"logStreamName" min:"1" type:"string"`

	// The data contained in the log event.
	Message *string `locationName:"message" min:"1" type:"string"`

	// The time the event occurred, expressed as the number of milliseconds after
	// Jan 1, 1970 00:00:00 UTC.
	Timestamp *int64 `locationName:"timestamp" type:"long"`
	// 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) 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 timestamp equal to or later than
	// this time are not included.
	EndTime *int64 `locationName:"endTime" type:"long"`

	// The maximum number of log events returned. If you don't specify a 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.
	//
	// If you are using nextToken in this operation, you must specify true for startFromHead.
	StartFromHead *bool `locationName:"startFromHead" type:"boolean"`

	// The start of the time range, expressed as the number of milliseconds after
	// Jan 1, 1970 00:00:00 UTC. Events with a timestamp equal to this time or later
	// than this time are included. Events with a timestamp earlier than this time
	// are not included.
	StartTime *int64 `locationName:"startTime" type:"long"`
	// contains filtered or unexported fields
}

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

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. This token will never be null. If you have reached
	// the end of the stream, it will return the same token you passed in.
	NextBackwardToken *string `locationName:"nextBackwardToken" min:"1" type:"string"`

	// The token for the next set of items in the forward direction. The token expires
	// after 24 hours. If you have reached the end of the stream, it will return
	// the same token you passed in.
	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) String

func (s GetLogEventsOutput) String() string

String returns the string representation

type GetLogEventsPaginator added in v0.9.0

type GetLogEventsPaginator struct {
	aws.Pager
}

GetLogEventsPaginator is used to paginate the request. This can be done by calling Next and CurrentPage.

func NewGetLogEventsPaginator added in v0.9.0

func NewGetLogEventsPaginator(req GetLogEventsRequest) GetLogEventsPaginator

NewGetLogEventsRequestPaginator returns a paginator for GetLogEvents. Use Next method to get the next page, and CurrentPage to get the current response page from the paginator. Next will return false, if there are no more pages, or an error was encountered.

Note: This operation can generate multiple requests to a service.

// Example iterating over pages.
req := client.GetLogEventsRequest(input)
p := cloudwatchlogs.NewGetLogEventsRequestPaginator(req)

for p.Next(context.TODO()) {
    page := p.CurrentPage()
}

if err := p.Err(); err != nil {
    return err
}

func (*GetLogEventsPaginator) CurrentPage added in v0.9.0

func (p *GetLogEventsPaginator) CurrentPage() *GetLogEventsOutput

type GetLogEventsRequest

type GetLogEventsRequest struct {
	*aws.Request
	Input *GetLogEventsInput
	Copy  func(*GetLogEventsInput) GetLogEventsRequest
}

GetLogEventsRequest is the request type for the GetLogEvents API operation.

func (GetLogEventsRequest) Send

Send marshals and sends the GetLogEvents API request.

type GetLogEventsResponse added in v0.9.0

type GetLogEventsResponse struct {
	*GetLogEventsOutput
	// contains filtered or unexported fields
}

GetLogEventsResponse is the response type for the GetLogEvents API operation.

func (*GetLogEventsResponse) SDKResponseMetdata added in v0.9.0

func (r *GetLogEventsResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the GetLogEvents request.

type GetLogGroupFieldsInput added in v0.6.0

type GetLogGroupFieldsInput struct {

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

	// The time to set as the center of the query. If you specify time, the 8 minutes
	// before and 8 minutes after this time are searched. If you omit time, the
	// past 15 minutes are queried.
	//
	// The time value is specified as epoch time, the number of seconds since January
	// 1, 1970, 00:00:00 UTC.
	Time *int64 `locationName:"time" type:"long"`
	// contains filtered or unexported fields
}

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

func (GetLogGroupFieldsInput) String added in v0.6.0

func (s GetLogGroupFieldsInput) String() string

String returns the string representation

func (*GetLogGroupFieldsInput) Validate added in v0.6.0

func (s *GetLogGroupFieldsInput) Validate() error

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

type GetLogGroupFieldsOutput added in v0.6.0

type GetLogGroupFieldsOutput struct {

	// The array of fields found in the query. Each object in the array contains
	// the name of the field, along with the percentage of time it appeared in the
	// log events that were queried.
	LogGroupFields []LogGroupField `locationName:"logGroupFields" type:"list"`
	// contains filtered or unexported fields
}

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

func (GetLogGroupFieldsOutput) String added in v0.6.0

func (s GetLogGroupFieldsOutput) String() string

String returns the string representation

type GetLogGroupFieldsRequest added in v0.6.0

type GetLogGroupFieldsRequest struct {
	*aws.Request
	Input *GetLogGroupFieldsInput
	Copy  func(*GetLogGroupFieldsInput) GetLogGroupFieldsRequest
}

GetLogGroupFieldsRequest is the request type for the GetLogGroupFields API operation.

func (GetLogGroupFieldsRequest) Send added in v0.6.0

Send marshals and sends the GetLogGroupFields API request.

type GetLogGroupFieldsResponse added in v0.9.0

type GetLogGroupFieldsResponse struct {
	*GetLogGroupFieldsOutput
	// contains filtered or unexported fields
}

GetLogGroupFieldsResponse is the response type for the GetLogGroupFields API operation.

func (*GetLogGroupFieldsResponse) SDKResponseMetdata added in v0.9.0

func (r *GetLogGroupFieldsResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the GetLogGroupFields request.

type GetLogRecordInput added in v0.6.0

type GetLogRecordInput struct {

	// The pointer corresponding to the log event record you want to retrieve. You
	// get this from the response of a GetQueryResults operation. In that response,
	// the value of the @ptr field for a log event is the value to use as logRecordPointer
	// to retrieve that complete log event record.
	//
	// LogRecordPointer is a required field
	LogRecordPointer *string `locationName:"logRecordPointer" type:"string" required:"true"`
	// contains filtered or unexported fields
}

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

func (GetLogRecordInput) String added in v0.6.0

func (s GetLogRecordInput) String() string

String returns the string representation

func (*GetLogRecordInput) Validate added in v0.6.0

func (s *GetLogRecordInput) Validate() error

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

type GetLogRecordOutput added in v0.6.0

type GetLogRecordOutput struct {

	// The requested log event, as a JSON string.
	LogRecord map[string]string `locationName:"logRecord" type:"map"`
	// contains filtered or unexported fields
}

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

func (GetLogRecordOutput) String added in v0.6.0

func (s GetLogRecordOutput) String() string

String returns the string representation

type GetLogRecordRequest added in v0.6.0

type GetLogRecordRequest struct {
	*aws.Request
	Input *GetLogRecordInput
	Copy  func(*GetLogRecordInput) GetLogRecordRequest
}

GetLogRecordRequest is the request type for the GetLogRecord API operation.

func (GetLogRecordRequest) Send added in v0.6.0

Send marshals and sends the GetLogRecord API request.

type GetLogRecordResponse added in v0.9.0

type GetLogRecordResponse struct {
	*GetLogRecordOutput
	// contains filtered or unexported fields
}

GetLogRecordResponse is the response type for the GetLogRecord API operation.

func (*GetLogRecordResponse) SDKResponseMetdata added in v0.9.0

func (r *GetLogRecordResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the GetLogRecord request.

type GetQueryResultsInput added in v0.6.0

type GetQueryResultsInput struct {

	// The ID number of the query.
	//
	// QueryId is a required field
	QueryId *string `locationName:"queryId" type:"string" required:"true"`
	// contains filtered or unexported fields
}

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

func (GetQueryResultsInput) String added in v0.6.0

func (s GetQueryResultsInput) String() string

String returns the string representation

func (*GetQueryResultsInput) Validate added in v0.6.0

func (s *GetQueryResultsInput) Validate() error

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

type GetQueryResultsOutput added in v0.6.0

type GetQueryResultsOutput struct {

	// The log events that matched the query criteria during the most recent time
	// it ran.
	//
	// The results value is an array of arrays. Each log event is one object in
	// the top-level array. Each of these log event objects is an array of field/value
	// pairs.
	Results [][]ResultField `locationName:"results" type:"list"`

	// Includes the number of log events scanned by the query, the number of log
	// events that matched the query criteria, and the total number of bytes in
	// the log events that were scanned.
	Statistics *QueryStatistics `locationName:"statistics" type:"structure"`

	// The status of the most recent running of the query. Possible values are Cancelled,
	// Complete, Failed, Running, Scheduled, Timeout, and Unknown.
	//
	// Queries time out after 15 minutes of execution. To avoid having your queries
	// time out, reduce the time range being searched, or partition your query into
	// a number of queries.
	Status QueryStatus `locationName:"status" type:"string" enum:"true"`
	// contains filtered or unexported fields
}

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

func (GetQueryResultsOutput) String added in v0.6.0

func (s GetQueryResultsOutput) String() string

String returns the string representation

type GetQueryResultsRequest added in v0.6.0

type GetQueryResultsRequest struct {
	*aws.Request
	Input *GetQueryResultsInput
	Copy  func(*GetQueryResultsInput) GetQueryResultsRequest
}

GetQueryResultsRequest is the request type for the GetQueryResults API operation.

func (GetQueryResultsRequest) Send added in v0.6.0

Send marshals and sends the GetQueryResults API request.

type GetQueryResultsResponse added in v0.9.0

type GetQueryResultsResponse struct {
	*GetQueryResultsOutput
	// contains filtered or unexported fields
}

GetQueryResultsResponse is the response type for the GetQueryResults API operation.

func (*GetQueryResultsResponse) SDKResponseMetdata added in v0.9.0

func (r *GetQueryResultsResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the GetQueryResults 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 after
	// 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) 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) 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) String

func (s ListTagsLogGroupOutput) String() string

String returns the string representation

type ListTagsLogGroupRequest

type ListTagsLogGroupRequest struct {
	*aws.Request
	Input *ListTagsLogGroupInput
	Copy  func(*ListTagsLogGroupInput) ListTagsLogGroupRequest
}

ListTagsLogGroupRequest is the request type for the ListTagsLogGroup API operation.

func (ListTagsLogGroupRequest) Send

Send marshals and sends the ListTagsLogGroup API request.

type ListTagsLogGroupResponse added in v0.9.0

type ListTagsLogGroupResponse struct {
	*ListTagsLogGroupOutput
	// contains filtered or unexported fields
}

ListTagsLogGroupResponse is the response type for the ListTagsLogGroup API operation.

func (*ListTagsLogGroupResponse) SDKResponseMetdata added in v0.9.0

func (r *ListTagsLogGroupResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the ListTagsLogGroup 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) String

func (s LogGroup) String() string

String returns the string representation

type LogGroupField added in v0.6.0

type LogGroupField struct {

	// The name of a log field.
	Name *string `locationName:"name" type:"string"`

	// The percentage of log events queried that contained the field.
	Percent *int64 `locationName:"percent" type:"integer"`
	// contains filtered or unexported fields
}

The fields contained in log events found by a GetLogGroupFields operation, along with the percentage of queried log events in which each field appears. Please also see https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/LogGroupField

func (LogGroupField) String added in v0.6.0

func (s LogGroupField) 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. The lastEventTime value 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.
	//
	// IMPORTANT: Starting on June 17, 2019, this parameter will be deprecated for
	// log streams, and will be reported as zero. This change applies only to log
	// streams. The storedBytes parameter for log groups is not affected.
	StoredBytes *int64 `locationName:"storedBytes" deprecated:"true" type:"long"`

	// The sequence token.
	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) 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 timestamps, IP addresses,
	// strings, and so on. You use the filter pattern to specify what to look for
	// in the log event message.
	FilterPattern *string `locationName:"filterPattern" type:"string"`

	// The name of the log group.
	LogGroupName *string `locationName:"logGroupName" min:"1" type:"string"`

	// The metric transformations.
	MetricTransformations []MetricTransformation `locationName:"metricTransformations" min:"1" type:"list"`
	// 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) 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) 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 to metric data in a CloudWatch metric. Please also see https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/MetricTransformation

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

func (OrderBy) MarshalValue added in v0.3.0

func (enum OrderBy) MarshalValue() (string, error)

func (OrderBy) MarshalValueBuf added in v0.3.0

func (enum OrderBy) MarshalValueBuf(b []byte) ([]byte, error)

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) 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) 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) 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) 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) String

String returns the string representation

type PutDestinationPolicyRequest

type PutDestinationPolicyRequest struct {
	*aws.Request
	Input *PutDestinationPolicyInput
	Copy  func(*PutDestinationPolicyInput) PutDestinationPolicyRequest
}

PutDestinationPolicyRequest is the request type for the PutDestinationPolicy API operation.

func (PutDestinationPolicyRequest) Send

Send marshals and sends the PutDestinationPolicy API request.

type PutDestinationPolicyResponse added in v0.9.0

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

PutDestinationPolicyResponse is the response type for the PutDestinationPolicy API operation.

func (*PutDestinationPolicyResponse) SDKResponseMetdata added in v0.9.0

func (r *PutDestinationPolicyResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the PutDestinationPolicy request.

type PutDestinationRequest

type PutDestinationRequest struct {
	*aws.Request
	Input *PutDestinationInput
	Copy  func(*PutDestinationInput) PutDestinationRequest
}

PutDestinationRequest is the request type for the PutDestination API operation.

func (PutDestinationRequest) Send

Send marshals and sends the PutDestination API request.

type PutDestinationResponse added in v0.9.0

type PutDestinationResponse struct {
	*PutDestinationOutput
	// contains filtered or unexported fields
}

PutDestinationResponse is the response type for the PutDestination API operation.

func (*PutDestinationResponse) SDKResponseMetdata added in v0.9.0

func (r *PutDestinationResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the PutDestination 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) 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) String

func (s PutLogEventsOutput) String() string

String returns the string representation

type PutLogEventsRequest

type PutLogEventsRequest struct {
	*aws.Request
	Input *PutLogEventsInput
	Copy  func(*PutLogEventsInput) PutLogEventsRequest
}

PutLogEventsRequest is the request type for the PutLogEvents API operation.

func (PutLogEventsRequest) Send

Send marshals and sends the PutLogEvents API request.

type PutLogEventsResponse added in v0.9.0

type PutLogEventsResponse struct {
	*PutLogEventsOutput
	// contains filtered or unexported fields
}

PutLogEventsResponse is the response type for the PutLogEvents API operation.

func (*PutLogEventsResponse) SDKResponseMetdata added in v0.9.0

func (r *PutLogEventsResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the PutLogEvents 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) 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) String

func (s PutMetricFilterOutput) String() string

String returns the string representation

type PutMetricFilterRequest

type PutMetricFilterRequest struct {
	*aws.Request
	Input *PutMetricFilterInput
	Copy  func(*PutMetricFilterInput) PutMetricFilterRequest
}

PutMetricFilterRequest is the request type for the PutMetricFilter API operation.

func (PutMetricFilterRequest) Send

Send marshals and sends the PutMetricFilter API request.

type PutMetricFilterResponse added in v0.9.0

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

PutMetricFilterResponse is the response type for the PutMetricFilter API operation.

func (*PutMetricFilterResponse) SDKResponseMetdata added in v0.9.0

func (r *PutMetricFilterResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the PutMetricFilter 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.
	// This parameter is required.
	//
	// The following example creates a resource policy enabling the Route 53 service
	// to put DNS query logs in to the specified log group. Replace "logArn" with
	// the ARN of your CloudWatch Logs resource, such as a log group or log stream.
	//
	// { "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) 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) String

func (s PutResourcePolicyOutput) String() string

String returns the string representation

type PutResourcePolicyRequest

type PutResourcePolicyRequest struct {
	*aws.Request
	Input *PutResourcePolicyInput
	Copy  func(*PutResourcePolicyInput) PutResourcePolicyRequest
}

PutResourcePolicyRequest is the request type for the PutResourcePolicy API operation.

func (PutResourcePolicyRequest) Send

Send marshals and sends the PutResourcePolicy API request.

type PutResourcePolicyResponse added in v0.9.0

type PutResourcePolicyResponse struct {
	*PutResourcePolicyOutput
	// contains filtered or unexported fields
}

PutResourcePolicyResponse is the response type for the PutResourcePolicy API operation.

func (*PutResourcePolicyResponse) SDKResponseMetdata added in v0.9.0

func (r *PutResourcePolicyResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the PutResourcePolicy 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) 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) String

func (s PutRetentionPolicyOutput) String() string

String returns the string representation

type PutRetentionPolicyRequest

type PutRetentionPolicyRequest struct {
	*aws.Request
	Input *PutRetentionPolicyInput
	Copy  func(*PutRetentionPolicyInput) PutRetentionPolicyRequest
}

PutRetentionPolicyRequest is the request type for the PutRetentionPolicy API operation.

func (PutRetentionPolicyRequest) Send

Send marshals and sends the PutRetentionPolicy API request.

type PutRetentionPolicyResponse added in v0.9.0

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

PutRetentionPolicyResponse is the response type for the PutRetentionPolicy API operation.

func (*PutRetentionPolicyResponse) SDKResponseMetdata added in v0.9.0

func (r *PutRetentionPolicyResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the PutRetentionPolicy 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) 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) String

String returns the string representation

type PutSubscriptionFilterRequest

type PutSubscriptionFilterRequest struct {
	*aws.Request
	Input *PutSubscriptionFilterInput
	Copy  func(*PutSubscriptionFilterInput) PutSubscriptionFilterRequest
}

PutSubscriptionFilterRequest is the request type for the PutSubscriptionFilter API operation.

func (PutSubscriptionFilterRequest) Send

Send marshals and sends the PutSubscriptionFilter API request.

type PutSubscriptionFilterResponse added in v0.9.0

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

PutSubscriptionFilterResponse is the response type for the PutSubscriptionFilter API operation.

func (*PutSubscriptionFilterResponse) SDKResponseMetdata added in v0.9.0

func (r *PutSubscriptionFilterResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the PutSubscriptionFilter request.

type QueryCompileError added in v0.6.0

type QueryCompileError struct {

	// Reserved.
	Location *QueryCompileErrorLocation `locationName:"location" type:"structure"`

	// Reserved.
	Message *string `locationName:"message" type:"string"`
	// contains filtered or unexported fields
}

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

func (QueryCompileError) String added in v0.6.0

func (s QueryCompileError) String() string

String returns the string representation

type QueryCompileErrorLocation added in v0.6.0

type QueryCompileErrorLocation struct {

	// Reserved.
	EndCharOffset *int64 `locationName:"endCharOffset" type:"integer"`

	// Reserved.
	StartCharOffset *int64 `locationName:"startCharOffset" type:"integer"`
	// contains filtered or unexported fields
}

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

func (QueryCompileErrorLocation) String added in v0.6.0

func (s QueryCompileErrorLocation) String() string

String returns the string representation

type QueryInfo added in v0.6.0

type QueryInfo struct {

	// The date and time that this query was created.
	CreateTime *int64 `locationName:"createTime" type:"long"`

	// The name of the log group scanned by this query.
	LogGroupName *string `locationName:"logGroupName" min:"1" type:"string"`

	// The unique ID number of this query.
	QueryId *string `locationName:"queryId" type:"string"`

	// The query string used in this query.
	QueryString *string `locationName:"queryString" type:"string"`

	// The status of this query. Possible values are Cancelled, Complete, Failed,
	// Running, Scheduled, and Unknown.
	Status QueryStatus `locationName:"status" type:"string" enum:"true"`
	// contains filtered or unexported fields
}

Information about one CloudWatch Logs Insights query that matches the request in a DescribeQueries operation. Please also see https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/QueryInfo

func (QueryInfo) String added in v0.6.0

func (s QueryInfo) String() string

String returns the string representation

type QueryStatistics added in v0.6.0

type QueryStatistics struct {

	// The total number of bytes in the log events scanned during the query.
	BytesScanned *float64 `locationName:"bytesScanned" type:"double"`

	// The number of log events that matched the query string.
	RecordsMatched *float64 `locationName:"recordsMatched" type:"double"`

	// The total number of log events scanned during the query.
	RecordsScanned *float64 `locationName:"recordsScanned" type:"double"`
	// contains filtered or unexported fields
}

Contains the number of log events scanned by the query, the number of log events that matched the query criteria, and the total number of bytes in the log events that were scanned. Please also see https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/QueryStatistics

func (QueryStatistics) String added in v0.6.0

func (s QueryStatistics) String() string

String returns the string representation

type QueryStatus added in v0.6.0

type QueryStatus string
const (
	QueryStatusScheduled QueryStatus = "Scheduled"
	QueryStatusRunning   QueryStatus = "Running"
	QueryStatusComplete  QueryStatus = "Complete"
	QueryStatusFailed    QueryStatus = "Failed"
	QueryStatusCancelled QueryStatus = "Cancelled"
)

Enum values for QueryStatus

func (QueryStatus) MarshalValue added in v0.6.0

func (enum QueryStatus) MarshalValue() (string, error)

func (QueryStatus) MarshalValueBuf added in v0.6.0

func (enum QueryStatus) MarshalValueBuf(b []byte) ([]byte, error)

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) String

func (s RejectedLogEventsInfo) String() string

String returns the string representation

type ResourcePolicy

type ResourcePolicy struct {

	// Timestamp showing when this policy was last updated, expressed as the number
	// of milliseconds after Jan 1, 1970 00:00:00 UTC.
	LastUpdatedTime *int64 `locationName:"lastUpdatedTime" type:"long"`

	// The details of the policy.
	PolicyDocument *string `locationName:"policyDocument" min:"1" type:"string"`

	// The name of the resource policy.
	PolicyName *string `locationName:"policyName" type:"string"`
	// 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) String

func (s ResourcePolicy) String() string

String returns the string representation

type ResultField added in v0.6.0

type ResultField struct {

	// The log event field.
	Field *string `locationName:"field" type:"string"`

	// The value of this field.
	Value *string `locationName:"value" type:"string"`
	// contains filtered or unexported fields
}

Contains one field from one log event returned by a CloudWatch Logs Insights query, along with the value of that field. Please also see https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/ResultField

func (ResultField) String added in v0.6.0

func (s ResultField) 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) String

func (s SearchedLogStream) String() string

String returns the string representation

type StartQueryInput added in v0.6.0

type StartQueryInput struct {

	// The end of the time range to query. The range is inclusive, so the specified
	// end time is included in the query. Specified as epoch time, the number of
	// seconds since January 1, 1970, 00:00:00 UTC.
	//
	// EndTime is a required field
	EndTime *int64 `locationName:"endTime" type:"long" required:"true"`

	// The maximum number of log events to return in the query. If the query string
	// uses the fields command, only the specified fields and their values are returned.
	Limit *int64 `locationName:"limit" min:"1" type:"integer"`

	// The log group on which to perform the query.
	//
	// A StartQuery operation must include a logGroupNames or a logGroupName parameter,
	// but not both.
	LogGroupName *string `locationName:"logGroupName" min:"1" type:"string"`

	// The list of log groups to be queried. You can include up to 20 log groups.
	//
	// A StartQuery operation must include a logGroupNames or a logGroupName parameter,
	// but not both.
	LogGroupNames []string `locationName:"logGroupNames" type:"list"`

	// The query string to use. For more information, see CloudWatch Logs Insights
	// Query Syntax (https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/CWL_QuerySyntax.html).
	//
	// QueryString is a required field
	QueryString *string `locationName:"queryString" type:"string" required:"true"`

	// The beginning of the time range to query. The range is inclusive, so the
	// specified start time is included in the query. Specified as epoch time, the
	// number of seconds since January 1, 1970, 00:00:00 UTC.
	//
	// StartTime is a required field
	StartTime *int64 `locationName:"startTime" type:"long" required:"true"`
	// contains filtered or unexported fields
}

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

func (StartQueryInput) String added in v0.6.0

func (s StartQueryInput) String() string

String returns the string representation

func (*StartQueryInput) Validate added in v0.6.0

func (s *StartQueryInput) Validate() error

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

type StartQueryOutput added in v0.6.0

type StartQueryOutput struct {

	// The unique ID of the query.
	QueryId *string `locationName:"queryId" type:"string"`
	// contains filtered or unexported fields
}

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

func (StartQueryOutput) String added in v0.6.0

func (s StartQueryOutput) String() string

String returns the string representation

type StartQueryRequest added in v0.6.0

type StartQueryRequest struct {
	*aws.Request
	Input *StartQueryInput
	Copy  func(*StartQueryInput) StartQueryRequest
}

StartQueryRequest is the request type for the StartQuery API operation.

func (StartQueryRequest) Send added in v0.6.0

Send marshals and sends the StartQuery API request.

type StartQueryResponse added in v0.9.0

type StartQueryResponse struct {
	*StartQueryOutput
	// contains filtered or unexported fields
}

StartQueryResponse is the response type for the StartQuery API operation.

func (*StartQueryResponse) SDKResponseMetdata added in v0.9.0

func (r *StartQueryResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the StartQuery request.

type StopQueryInput added in v0.6.0

type StopQueryInput struct {

	// The ID number of the query to stop. If necessary, you can use DescribeQueries
	// to find this ID number.
	//
	// QueryId is a required field
	QueryId *string `locationName:"queryId" type:"string" required:"true"`
	// contains filtered or unexported fields
}

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

func (StopQueryInput) String added in v0.6.0

func (s StopQueryInput) String() string

String returns the string representation

func (*StopQueryInput) Validate added in v0.6.0

func (s *StopQueryInput) Validate() error

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

type StopQueryOutput added in v0.6.0

type StopQueryOutput struct {

	// This is true if the query was stopped by the StopQuery operation.
	Success *bool `locationName:"success" type:"boolean"`
	// contains filtered or unexported fields
}

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

func (StopQueryOutput) String added in v0.6.0

func (s StopQueryOutput) String() string

String returns the string representation

type StopQueryRequest added in v0.6.0

type StopQueryRequest struct {
	*aws.Request
	Input *StopQueryInput
	Copy  func(*StopQueryInput) StopQueryRequest
}

StopQueryRequest is the request type for the StopQuery API operation.

func (StopQueryRequest) Send added in v0.6.0

Send marshals and sends the StopQuery API request.

type StopQueryResponse added in v0.9.0

type StopQueryResponse struct {
	*StopQueryOutput
	// contains filtered or unexported fields
}

StopQueryResponse is the response type for the StopQuery API operation.

func (*StopQueryResponse) SDKResponseMetdata added in v0.9.0

func (r *StopQueryResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the StopQuery request.

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 timestamps, IP addresses,
	// strings, and so on. You use the filter pattern to specify what to look for
	// in the log event message.
	FilterPattern *string `locationName:"filterPattern" type:"string"`

	// The name of the log group.
	LogGroupName *string `locationName:"logGroupName" min:"1" type:"string"`

	RoleArn *string `locationName:"roleArn" min:"1" type:"string"`
	// 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) 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) 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) String

func (s TagLogGroupOutput) String() string

String returns the string representation

type TagLogGroupRequest

type TagLogGroupRequest struct {
	*aws.Request
	Input *TagLogGroupInput
	Copy  func(*TagLogGroupInput) TagLogGroupRequest
}

TagLogGroupRequest is the request type for the TagLogGroup API operation.

func (TagLogGroupRequest) Send

Send marshals and sends the TagLogGroup API request.

type TagLogGroupResponse added in v0.9.0

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

TagLogGroupResponse is the response type for the TagLogGroup API operation.

func (*TagLogGroupResponse) SDKResponseMetdata added in v0.9.0

func (r *TagLogGroupResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the TagLogGroup 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 timestamps, IP addresses,
	// strings, and so on. You use the filter pattern to specify what to look for
	// in the log event message.
	//
	// FilterPattern is a required field
	FilterPattern *string `locationName:"filterPattern" type:"string" required:"true"`

	// The log event messages to test.
	//
	// LogEventMessages is a required field
	LogEventMessages []string `locationName:"logEventMessages" min:"1" type:"list" required:"true"`
	// contains filtered or unexported fields
}

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

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) String

func (s TestMetricFilterOutput) String() string

String returns the string representation

type TestMetricFilterRequest

type TestMetricFilterRequest struct {
	*aws.Request
	Input *TestMetricFilterInput
	Copy  func(*TestMetricFilterInput) TestMetricFilterRequest
}

TestMetricFilterRequest is the request type for the TestMetricFilter API operation.

func (TestMetricFilterRequest) Send

Send marshals and sends the TestMetricFilter API request.

type TestMetricFilterResponse added in v0.9.0

type TestMetricFilterResponse struct {
	*TestMetricFilterOutput
	// contains filtered or unexported fields
}

TestMetricFilterResponse is the response type for the TestMetricFilter API operation.

func (*TestMetricFilterResponse) SDKResponseMetdata added in v0.9.0

func (r *TestMetricFilterResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the TestMetricFilter 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) 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) String

func (s UntagLogGroupOutput) String() string

String returns the string representation

type UntagLogGroupRequest

type UntagLogGroupRequest struct {
	*aws.Request
	Input *UntagLogGroupInput
	Copy  func(*UntagLogGroupInput) UntagLogGroupRequest
}

UntagLogGroupRequest is the request type for the UntagLogGroup API operation.

func (UntagLogGroupRequest) Send

Send marshals and sends the UntagLogGroup API request.

type UntagLogGroupResponse added in v0.9.0

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

UntagLogGroupResponse is the response type for the UntagLogGroup API operation.

func (*UntagLogGroupResponse) SDKResponseMetdata added in v0.9.0

func (r *UntagLogGroupResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the UntagLogGroup 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