types

package
v1.35.1 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2024 License: Apache-2.0 Imports: 3 Imported by: 118

Documentation

Index

Examples

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccessDeniedException added in v1.27.0

type AccessDeniedException struct {
	Message *string

	ErrorCodeOverride *string
	// contains filtered or unexported fields
}

You don't have sufficient permissions to perform this action.

func (*AccessDeniedException) Error added in v1.27.0

func (e *AccessDeniedException) Error() string

func (*AccessDeniedException) ErrorCode added in v1.27.0

func (e *AccessDeniedException) ErrorCode() string

func (*AccessDeniedException) ErrorFault added in v1.27.0

func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault

func (*AccessDeniedException) ErrorMessage added in v1.27.0

func (e *AccessDeniedException) ErrorMessage() string

type AccountPolicy added in v1.21.0

type AccountPolicy struct {

	// The Amazon Web Services account ID that the policy applies to.
	AccountId *string

	// The date and time that this policy was most recently updated.
	LastUpdatedTime *int64

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

	// The name of the account policy.
	PolicyName *string

	// The type of policy for this account policy.
	PolicyType PolicyType

	// The scope of the account policy.
	Scope Scope

	// The log group selection criteria for this subscription filter policy.
	SelectionCriteria *string
	// contains filtered or unexported fields
}

A structure that contains information about one CloudWatch Logs account policy.

type Anomaly added in v1.28.0

type Anomaly struct {

	// Specifies whether this anomaly is still ongoing.
	//
	// This member is required.
	Active *bool

	// The ARN of the anomaly detector that identified this anomaly.
	//
	// This member is required.
	AnomalyDetectorArn *string

	// The unique ID that CloudWatch Logs assigned to this anomaly.
	//
	// This member is required.
	AnomalyId *string

	// A human-readable description of the anomaly. This description is generated by
	// CloudWatch Logs.
	//
	// This member is required.
	Description *string

	// The date and time when the anomaly detector first saw this anomaly. It is
	// specified as epoch time, which is the number of seconds since January 1, 1970,
	// 00:00:00 UTC .
	//
	// This member is required.
	FirstSeen int64

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

	// The date and time when the anomaly detector most recently saw this anomaly. It
	// is specified as epoch time, which is the number of seconds since January 1,
	// 1970, 00:00:00 UTC .
	//
	// This member is required.
	LastSeen int64

	// An array of ARNS of the log groups that contained log events considered to be
	// part of this anomaly.
	//
	// This member is required.
	LogGroupArnList []string

	// An array of sample log event messages that are considered to be part of this
	// anomaly.
	//
	// This member is required.
	LogSamples []LogEvent

	// The ID of the pattern used to help identify this anomaly.
	//
	// This member is required.
	PatternId *string

	// The pattern used to help identify this anomaly, in string format.
	//
	// This member is required.
	PatternString *string

	// An array of structures where each structure contains information about one
	// token that makes up the pattern.
	//
	// This member is required.
	PatternTokens []PatternToken

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

	// If this anomaly is suppressed, this field is true if the suppression is because
	// the pattern is suppressed. If false , then only this particular anomaly is
	// suppressed.
	IsPatternLevelSuppression *bool

	// The pattern used to help identify this anomaly, in regular expression format.
	PatternRegex *string

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

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

	// If the anomaly is suppressed, this indicates when it was suppressed.
	SuppressedDate int64

	// If the anomaly is suppressed, this indicates when the suppression will end. If
	// this value is 0 , the anomaly was suppressed with no expiration, with the
	// INFINITE value.
	SuppressedUntil int64
	// contains filtered or unexported fields
}

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

type AnomalyDetector added in v1.28.0

type AnomalyDetector struct {

	// The ARN of the anomaly detector.
	AnomalyDetectorArn *string

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

	// The number of days used as the life cycle of anomalies. After this time,
	// anomalies are automatically baselined and the anomaly detector model will treat
	// new occurrences of similar event as normal.
	AnomalyVisibilityTime *int64

	// The date and time when this anomaly detector was created.
	CreationTimeStamp int64

	// The name of the anomaly detector.
	DetectorName *string

	// Specifies how often the anomaly detector runs and look for anomalies.
	EvaluationFrequency EvaluationFrequency

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

	// The ID of the KMS key assigned to this anomaly detector, if any.
	KmsKeyId *string

	// The date and time when this anomaly detector was most recently modified.
	LastModifiedTimeStamp int64

	// A list of the ARNs of the log groups that this anomaly detector watches.
	LogGroupArnList []string
	// contains filtered or unexported fields
}

Contains information about one anomaly detector in the account.

type AnomalyDetectorStatus added in v1.28.0

type AnomalyDetectorStatus string
const (
	AnomalyDetectorStatusInitializing AnomalyDetectorStatus = "INITIALIZING"
	AnomalyDetectorStatusTraining     AnomalyDetectorStatus = "TRAINING"
	AnomalyDetectorStatusAnalyzing    AnomalyDetectorStatus = "ANALYZING"
	AnomalyDetectorStatusFailed       AnomalyDetectorStatus = "FAILED"
	AnomalyDetectorStatusDeleted      AnomalyDetectorStatus = "DELETED"
	AnomalyDetectorStatusPaused       AnomalyDetectorStatus = "PAUSED"
)

Enum values for AnomalyDetectorStatus

func (AnomalyDetectorStatus) Values added in v1.28.0

Values returns all known values for AnomalyDetectorStatus. Note that this can be expanded in the future, and so it is only as up to date as the client. The ordering of this slice is not guaranteed to be stable across updates.

type ConflictException added in v1.27.0

type ConflictException struct {
	Message *string

	ErrorCodeOverride *string
	// contains filtered or unexported fields
}

This operation attempted to create a resource that already exists.

func (*ConflictException) Error added in v1.27.0

func (e *ConflictException) Error() string

func (*ConflictException) ErrorCode added in v1.27.0

func (e *ConflictException) ErrorCode() string

func (*ConflictException) ErrorFault added in v1.27.0

func (e *ConflictException) ErrorFault() smithy.ErrorFault

func (*ConflictException) ErrorMessage added in v1.27.0

func (e *ConflictException) ErrorMessage() string

type DataAlreadyAcceptedException

type DataAlreadyAcceptedException struct {
	Message *string

	ErrorCodeOverride *string

	ExpectedSequenceToken *string
	// contains filtered or unexported fields
}

The event was already logged. PutLogEvents actions are now always accepted and never return DataAlreadyAcceptedException regardless of whether a given batch of log events has already been accepted.

func (*DataAlreadyAcceptedException) Error

func (*DataAlreadyAcceptedException) ErrorCode

func (e *DataAlreadyAcceptedException) ErrorCode() string

func (*DataAlreadyAcceptedException) ErrorFault

func (*DataAlreadyAcceptedException) ErrorMessage

func (e *DataAlreadyAcceptedException) ErrorMessage() string

type DataProtectionStatus added in v1.17.0

type DataProtectionStatus string
const (
	DataProtectionStatusActivated DataProtectionStatus = "ACTIVATED"
	DataProtectionStatusDeleted   DataProtectionStatus = "DELETED"
	DataProtectionStatusArchived  DataProtectionStatus = "ARCHIVED"
	DataProtectionStatusDisabled  DataProtectionStatus = "DISABLED"
)

Enum values for DataProtectionStatus

func (DataProtectionStatus) Values added in v1.17.0

Values returns all known values for DataProtectionStatus. Note that this can be expanded in the future, and so it is only as up to date as the client. The ordering of this slice is not guaranteed to be stable across updates.

type Delivery added in v1.27.0

type Delivery struct {

	// The Amazon Resource Name (ARN) that uniquely identifies this delivery.
	Arn *string

	// The ARN of the delivery destination that is associated with this delivery.
	DeliveryDestinationArn *string

	// Displays whether the delivery destination associated with this delivery is
	// CloudWatch Logs, Amazon S3, or Firehose.
	DeliveryDestinationType DeliveryDestinationType

	// The name of the delivery source that is associated with this delivery.
	DeliverySourceName *string

	// The unique ID that identifies this delivery in your account.
	Id *string

	// The tags that have been assigned to this delivery.
	Tags map[string]string
	// contains filtered or unexported fields
}

This structure contains information about one delivery in your account. A delivery is a connection between a logical delivery source and a logical delivery destination. For more information, see CreateDelivery (https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_CreateDelivery.html) . You can't update an existing delivery. You can only create and delete deliveries.

type DeliveryDestination added in v1.27.0

type DeliveryDestination struct {

	// The Amazon Resource Name (ARN) that uniquely identifies this delivery
	// destination.
	Arn *string

	// A structure that contains the ARN of the Amazon Web Services resource that will
	// receive the logs.
	DeliveryDestinationConfiguration *DeliveryDestinationConfiguration

	// Displays whether this delivery destination is CloudWatch Logs, Amazon S3, or
	// Firehose.
	DeliveryDestinationType DeliveryDestinationType

	// The name of this delivery destination.
	Name *string

	// The format of the logs that are sent to this delivery destination.
	OutputFormat OutputFormat

	// The tags that have been assigned to this delivery destination.
	Tags map[string]string
	// contains filtered or unexported fields
}

This structure contains information about one delivery destination in your account. A delivery destination is an Amazon Web Services resource that represents an Amazon Web Services service that logs can be sent to. CloudWatch Logs, Amazon S3, are supported as Firehose delivery destinations. To configure logs delivery between a supported Amazon Web Services service and a destination, you must do the following:

You can configure a single delivery source to send logs to multiple destinations by creating multiple deliveries. You can also create multiple deliveries to configure multiple delivery sources to send logs to the same delivery destination.

type DeliveryDestinationConfiguration added in v1.27.0

type DeliveryDestinationConfiguration struct {

	// The ARN of the Amazon Web Services destination that this delivery destination
	// represents. That Amazon Web Services destination can be a log group in
	// CloudWatch Logs, an Amazon S3 bucket, or a delivery stream in Firehose.
	//
	// This member is required.
	DestinationResourceArn *string
	// contains filtered or unexported fields
}

A structure that contains information about one logs delivery destination.

type DeliveryDestinationType added in v1.27.0

type DeliveryDestinationType string
const (
	DeliveryDestinationTypeS3  DeliveryDestinationType = "S3"
	DeliveryDestinationTypeCwl DeliveryDestinationType = "CWL"
	DeliveryDestinationTypeFh  DeliveryDestinationType = "FH"
)

Enum values for DeliveryDestinationType

func (DeliveryDestinationType) Values added in v1.27.0

Values returns all known values for DeliveryDestinationType. Note that this can be expanded in the future, and so it is only as up to date as the client. The ordering of this slice is not guaranteed to be stable across updates.

type DeliverySource added in v1.27.0

type DeliverySource struct {

	// The Amazon Resource Name (ARN) that uniquely identifies this delivery source.
	Arn *string

	// The type of log that the source is sending. For valid values for this
	// parameter, see the documentation for the source service.
	LogType *string

	// The unique name of the delivery source.
	Name *string

	// This array contains the ARN of the Amazon Web Services resource that sends logs
	// and is represented by this delivery source. Currently, only one ARN can be in
	// the array.
	ResourceArns []string

	// The Amazon Web Services service that is sending logs.
	Service *string

	// The tags that have been assigned to this delivery source.
	Tags map[string]string
	// contains filtered or unexported fields
}

This structure contains information about one delivery source in your account. A delivery source is an Amazon Web Services resource that sends logs to an Amazon Web Services destination. The destination can be CloudWatch Logs, Amazon S3, or Firehose. Only some Amazon Web Services services support being configured as a delivery source. These services are listed as Supported [V2 Permissions] in the table at Enabling logging from Amazon Web Services services. (https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/AWS-logs-and-resource-policy.html) To configure logs delivery between a supported Amazon Web Services service and a destination, you must do the following:

You can configure a single delivery source to send logs to multiple destinations by creating multiple deliveries. You can also create multiple deliveries to configure multiple delivery sources to send logs to the same delivery destination.

type Destination

type Destination struct {

	// An IAM policy document that governs which Amazon Web Services accounts can
	// create subscription filters against this destination.
	AccessPolicy *string

	// The ARN of this destination.
	Arn *string

	// The creation time of the destination, expressed as the number of milliseconds
	// after Jan 1, 1970 00:00:00 UTC.
	CreationTime *int64

	// The name of the destination.
	DestinationName *string

	// A role for impersonation, used when delivering log events to the target.
	RoleArn *string

	// The Amazon Resource Name (ARN) of the physical target where the log events are
	// delivered (for example, a Kinesis stream).
	TargetArn *string
	// contains filtered or unexported fields
}

Represents a cross-account destination that receives subscription log events.

type Distribution

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

Enum values for Distribution

func (Distribution) Values added in v0.29.0

func (Distribution) Values() []Distribution

Values returns all known values for Distribution. Note that this can be expanded in the future, and so it is only as up to date as the client. The ordering of this slice is not guaranteed to be stable across updates.

type EvaluationFrequency added in v1.28.0

type EvaluationFrequency string
const (
	EvaluationFrequencyOneMin     EvaluationFrequency = "ONE_MIN"
	EvaluationFrequencyFiveMin    EvaluationFrequency = "FIVE_MIN"
	EvaluationFrequencyTenMin     EvaluationFrequency = "TEN_MIN"
	EvaluationFrequencyFifteenMin EvaluationFrequency = "FIFTEEN_MIN"
	EvaluationFrequencyThirtyMin  EvaluationFrequency = "THIRTY_MIN"
	EvaluationFrequencyOneHour    EvaluationFrequency = "ONE_HOUR"
)

Enum values for EvaluationFrequency

func (EvaluationFrequency) Values added in v1.28.0

Values returns all known values for EvaluationFrequency. Note that this can be expanded in the future, and so it is only as up to date as the client. The ordering of this slice is not guaranteed to be stable across updates.

type ExportTask

type ExportTask struct {

	// The name of the S3 bucket to which the log data was exported.
	Destination *string

	// The prefix that was used as the start of Amazon S3 key for every object
	// exported.
	DestinationPrefix *string

	// Execution information about the export task.
	ExecutionInfo *ExportTaskExecutionInfo

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

	// The name of the log group from which logs data was exported.
	LogGroupName *string

	// The status of the export task.
	Status *ExportTaskStatus

	// The ID of the export task.
	TaskId *string

	// The name of the export task.
	TaskName *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
	// contains filtered or unexported fields
}

Represents an export task.

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

	// The creation time of the export task, expressed as the number of milliseconds
	// after Jan 1, 1970 00:00:00 UTC .
	CreationTime *int64
	// contains filtered or unexported fields
}

Represents the status of an export task.

type ExportTaskStatus

type ExportTaskStatus struct {

	// The status code of the export task.
	Code ExportTaskStatusCode

	// The status message related to the status code.
	Message *string
	// contains filtered or unexported fields
}

Represents the status of an export task.

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) Values added in v0.29.0

Values returns all known values for ExportTaskStatusCode. Note that this can be expanded in the future, and so it is only as up to date as the client. The ordering of this slice is not guaranteed to be stable across updates.

type FilteredLogEvent

type FilteredLogEvent struct {

	// The ID of the event.
	EventId *string

	// The time the event was ingested, expressed as the number of milliseconds after
	// Jan 1, 1970 00:00:00 UTC .
	IngestionTime *int64

	// The name of the log stream to which this event belongs.
	LogStreamName *string

	// The data contained in the log event.
	Message *string

	// The time the event occurred, expressed as the number of milliseconds after Jan
	// 1, 1970 00:00:00 UTC .
	Timestamp *int64
	// contains filtered or unexported fields
}

Represents a matched event.

type InheritedProperty added in v1.21.0

type InheritedProperty string
const (
	InheritedPropertyAccountDataProtection InheritedProperty = "ACCOUNT_DATA_PROTECTION"
)

Enum values for InheritedProperty

func (InheritedProperty) Values added in v1.21.0

Values returns all known values for InheritedProperty. Note that this can be expanded in the future, and so it is only as up to date as the client. The ordering of this slice is not guaranteed to be stable across updates.

type InputLogEvent

type InputLogEvent struct {

	// The raw event message. Each log event can be no larger than 256 KB.
	//
	// This member is required.
	Message *string

	// The time the event occurred, expressed as the number of milliseconds after Jan
	// 1, 1970 00:00:00 UTC .
	//
	// This member is required.
	Timestamp *int64
	// 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.

type InvalidOperationException

type InvalidOperationException struct {
	Message *string

	ErrorCodeOverride *string
	// contains filtered or unexported fields
}

The operation is not valid on the specified resource.

func (*InvalidOperationException) Error

func (e *InvalidOperationException) Error() string

func (*InvalidOperationException) ErrorCode

func (e *InvalidOperationException) ErrorCode() string

func (*InvalidOperationException) ErrorFault

func (*InvalidOperationException) ErrorMessage

func (e *InvalidOperationException) ErrorMessage() string

type InvalidParameterException

type InvalidParameterException struct {
	Message *string

	ErrorCodeOverride *string
	// contains filtered or unexported fields
}

A parameter is specified incorrectly.

func (*InvalidParameterException) Error

func (e *InvalidParameterException) Error() string

func (*InvalidParameterException) ErrorCode

func (e *InvalidParameterException) ErrorCode() string

func (*InvalidParameterException) ErrorFault

func (*InvalidParameterException) ErrorMessage

func (e *InvalidParameterException) ErrorMessage() string

type InvalidSequenceTokenException

type InvalidSequenceTokenException struct {
	Message *string

	ErrorCodeOverride *string

	ExpectedSequenceToken *string
	// contains filtered or unexported fields
}

The sequence token is not valid. You can get the correct sequence token in the expectedSequenceToken field in the InvalidSequenceTokenException message. PutLogEvents actions are now always accepted and never return InvalidSequenceTokenException regardless of receiving an invalid sequence token.

func (*InvalidSequenceTokenException) Error

func (*InvalidSequenceTokenException) ErrorCode

func (e *InvalidSequenceTokenException) ErrorCode() string

func (*InvalidSequenceTokenException) ErrorFault

func (*InvalidSequenceTokenException) ErrorMessage

func (e *InvalidSequenceTokenException) ErrorMessage() string

type LimitExceededException

type LimitExceededException struct {
	Message *string

	ErrorCodeOverride *string
	// contains filtered or unexported fields
}

You have reached the maximum number of resources that can be created.

func (*LimitExceededException) Error

func (e *LimitExceededException) Error() string

func (*LimitExceededException) ErrorCode

func (e *LimitExceededException) ErrorCode() string

func (*LimitExceededException) ErrorFault

func (e *LimitExceededException) ErrorFault() smithy.ErrorFault

func (*LimitExceededException) ErrorMessage

func (e *LimitExceededException) ErrorMessage() string

type LiveTailSessionLogEvent added in v1.30.0

type LiveTailSessionLogEvent struct {

	// The timestamp specifying when this log event was ingested into the log group.
	IngestionTime *int64

	// The name or ARN of the log group that ingested this log event.
	LogGroupIdentifier *string

	// The name of the log stream that ingested this log event.
	LogStreamName *string

	// The log event message text.
	Message *string

	// The timestamp specifying when this log event was created.
	Timestamp *int64
	// contains filtered or unexported fields
}

This object contains the information for one log event returned in a Live Tail stream.

type LiveTailSessionMetadata added in v1.30.0

type LiveTailSessionMetadata struct {

	// If this is true , then more than 500 log events matched the request for this
	// update, and the sessionResults includes a sample of 500 of those events. If
	// this is false , then 500 or fewer log events matched the request for this
	// update, so no sampling was necessary. In this case, the sessionResults array
	// includes all log events that matched your request during this time.
	Sampled bool
	// contains filtered or unexported fields
}

This object contains the metadata for one LiveTailSessionUpdate structure. It indicates whether that update includes only a sample of 500 log events out of a larger number of ingested log events, or if it contains all of the matching log events ingested during that second of time.

type LiveTailSessionStart added in v1.30.0

type LiveTailSessionStart struct {

	// An optional pattern to filter the results to include only log events that match
	// the pattern. For example, a filter pattern of error 404 displays only log
	// events that include both error and 404 . For more information about filter
	// pattern syntax, see Filter and Pattern Syntax (https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/FilterAndPatternSyntax.html)
	// .
	LogEventFilterPattern *string

	// An array of the names and ARNs of the log groups included in this Live Tail
	// session.
	LogGroupIdentifiers []string

	// If your StartLiveTail operation request included a logStreamNamePrefixes
	// parameter that filtered the session to only include log streams that have names
	// that start with certain prefixes, these prefixes are listed here.
	LogStreamNamePrefixes []string

	// If your StartLiveTail operation request included a logStreamNames parameter
	// that filtered the session to only include certain log streams, these streams are
	// listed here.
	LogStreamNames []string

	// The unique ID generated by CloudWatch Logs to identify this Live Tail session
	// request.
	RequestId *string

	// The unique ID generated by CloudWatch Logs to identify this Live Tail session.
	SessionId *string
	// contains filtered or unexported fields
}

This object contains information about this Live Tail session, including the log groups included and the log stream filters, if any.

type LiveTailSessionUpdate added in v1.30.0

type LiveTailSessionUpdate struct {

	// This object contains the session metadata for a Live Tail session.
	SessionMetadata *LiveTailSessionMetadata

	// An array, where each member of the array includes the information for one log
	// event in the Live Tail session. A sessionResults array can include as many as
	// 500 log events. If the number of log events matching the request exceeds 500 per
	// second, the log events are sampled down to 500 log events to be included in each
	// sessionUpdate structure.
	SessionResults []LiveTailSessionLogEvent
	// contains filtered or unexported fields
}

This object contains the log events and metadata for a Live Tail session.

type LogEvent added in v1.35.0

type LogEvent struct {

	// The message content of the log event.
	Message *string

	// The time stamp of the log event.
	Timestamp *int64
	// contains filtered or unexported fields
}

This structure contains the information for one sample log event that is associated with an anomaly found by a log anomaly detector.

type LogGroup

type LogGroup struct {

	// The Amazon Resource Name (ARN) of the log group. This version of the ARN
	// includes a trailing :* after the log group name. Use this version to refer to
	// the ARN in IAM policies when specifying permissions for most API actions. The
	// exception is when specifying permissions for TagResource (https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_TagResource.html)
	// , UntagResource (https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_UntagResource.html)
	// , and ListTagsForResource (https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_ListTagsForResource.html)
	// . The permissions for those three actions require the ARN version that doesn't
	// include a trailing :* .
	Arn *string

	// The creation time of the log group, expressed as the number of milliseconds
	// after Jan 1, 1970 00:00:00 UTC.
	CreationTime *int64

	// Displays whether this log group has a protection policy, or whether it had one
	// in the past. For more information, see PutDataProtectionPolicy (https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_PutDataProtectionPolicy.html)
	// .
	DataProtectionStatus DataProtectionStatus

	// Displays all the properties that this log group has inherited from
	// account-level settings.
	InheritedProperties []InheritedProperty

	// The Amazon Resource Name (ARN) of the KMS key to use when encrypting log data.
	KmsKeyId *string

	// The Amazon Resource Name (ARN) of the log group. This version of the ARN
	// doesn't include a trailing :* after the log group name. Use this version to
	// refer to the ARN in the following situations:
	//   - In the logGroupIdentifier input field in many CloudWatch Logs APIs.
	//   - In the resourceArn field in tagging APIs
	//   - In IAM policies, when specifying permissions for TagResource (https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_TagResource.html)
	//   , UntagResource (https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_UntagResource.html)
	//   , and ListTagsForResource (https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_ListTagsForResource.html)
	//   .
	LogGroupArn *string

	// This specifies the log group class for this log group. There are two classes:
	//   - The Standard log class supports all CloudWatch Logs features.
	//   - The Infrequent Access log class supports a subset of CloudWatch Logs
	//   features and incurs lower costs.
	// For details about the features supported by each class, see Log classes (https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/CloudWatch_Logs_Log_Classes.html)
	LogGroupClass LogGroupClass

	// The name of the log group.
	LogGroupName *string

	// The number of metric filters.
	MetricFilterCount *int32

	// The number of days to retain the log events in the specified log group.
	// Possible values are: 1, 3, 5, 7, 14, 30, 60, 90, 120, 150, 180, 365, 400, 545,
	// 731, 1096, 1827, 2192, 2557, 2922, 3288, and 3653. To set a log group so that
	// its log events do not expire, use DeleteRetentionPolicy (https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_DeleteRetentionPolicy.html)
	// .
	RetentionInDays *int32

	// The number of bytes stored.
	StoredBytes *int64
	// contains filtered or unexported fields
}

Represents a log group.

type LogGroupClass added in v1.28.0

type LogGroupClass string
const (
	LogGroupClassStandard         LogGroupClass = "STANDARD"
	LogGroupClassInfrequentAccess LogGroupClass = "INFREQUENT_ACCESS"
)

Enum values for LogGroupClass

func (LogGroupClass) Values added in v1.28.0

func (LogGroupClass) Values() []LogGroupClass

Values returns all known values for LogGroupClass. Note that this can be expanded in the future, and so it is only as up to date as the client. The ordering of this slice is not guaranteed to be stable across updates.

type LogGroupField

type LogGroupField struct {

	// The name of a log field.
	Name *string

	// The percentage of log events queried that contained the field.
	Percent int32
	// 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.

type LogStream

type LogStream struct {

	// The Amazon Resource Name (ARN) of the log stream.
	Arn *string

	// The creation time of the stream, expressed as the number of milliseconds after
	// Jan 1, 1970 00:00:00 UTC .
	CreationTime *int64

	// The time of the first event, expressed as the number of milliseconds after Jan
	// 1, 1970 00:00:00 UTC .
	FirstEventTimestamp *int64

	// The time of the most recent log event in the log stream in CloudWatch Logs.
	// This number is expressed as the number of milliseconds after Jan 1, 1970
	// 00:00:00 UTC . The lastEventTime value updates on an eventual consistency
	// basis. It typically updates in less than an hour from ingestion, but in rare
	// situations might take longer.
	LastEventTimestamp *int64

	// The ingestion time, expressed as the number of milliseconds after Jan 1, 1970
	// 00:00:00 UTC The lastIngestionTime value updates on an eventual consistency
	// basis. It typically updates in less than an hour after ingestion, but in rare
	// situations might take longer.
	LastIngestionTime *int64

	// The name of the log stream.
	LogStreamName *string

	// The number of bytes stored. Important: As of June 17, 2019, this parameter is
	// no longer supported for log streams, and is always reported as zero. This change
	// applies only to log streams. The storedBytes parameter for log groups is not
	// affected.
	//
	// Deprecated: Starting on June 17, 2019, this parameter will be deprecated for
	// log streams, and will be reported as zero. This change applies only to log
	// streams. The storedBytes parameter for log groups is not affected.
	StoredBytes *int64

	// The sequence token. The sequence token is now ignored in PutLogEvents actions.
	// PutLogEvents actions are always accepted regardless of receiving an invalid
	// sequence token. You don't need to obtain uploadSequenceToken to use a
	// PutLogEvents action.
	UploadSequenceToken *string
	// contains filtered or unexported fields
}

Represents a log stream, which is a sequence of log events from a single emitter of logs.

type MalformedQueryException

type MalformedQueryException struct {
	Message *string

	ErrorCodeOverride *string

	QueryCompileError *QueryCompileError
	// contains filtered or unexported fields
}

The query string is not valid. Details about this error are displayed in a QueryCompileError object. For more information, see QueryCompileError (https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_QueryCompileError.html) . For more information about valid query syntax, see CloudWatch Logs Insights Query Syntax (https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/CWL_QuerySyntax.html) .

func (*MalformedQueryException) Error

func (e *MalformedQueryException) Error() string

func (*MalformedQueryException) ErrorCode

func (e *MalformedQueryException) ErrorCode() string

func (*MalformedQueryException) ErrorFault

func (e *MalformedQueryException) ErrorFault() smithy.ErrorFault

func (*MalformedQueryException) ErrorMessage

func (e *MalformedQueryException) ErrorMessage() string

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

	// The name of the metric filter.
	FilterName *string

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

	// The name of the log group.
	LogGroupName *string

	// The metric transformations.
	MetricTransformations []MetricTransformation
	// 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.

type MetricFilterMatchRecord

type MetricFilterMatchRecord struct {

	// The raw event data.
	EventMessage *string

	// The event number.
	EventNumber int64

	// The values extracted from the event data by the filter.
	ExtractedValues map[string]string
	// contains filtered or unexported fields
}

Represents a matched event.

type MetricTransformation

type MetricTransformation struct {

	// The name of the CloudWatch metric.
	//
	// This member is required.
	MetricName *string

	// A custom namespace to contain your metric in CloudWatch. Use namespaces to
	// group together metrics that are similar. For more information, see Namespaces (https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/cloudwatch_concepts.html#Namespace)
	// .
	//
	// This member is required.
	MetricNamespace *string

	// The value to publish to the CloudWatch metric when a filter pattern matches a
	// log event.
	//
	// This member is required.
	MetricValue *string

	// (Optional) The value to emit when a filter pattern does not match a log event.
	// This value can be null.
	DefaultValue *float64

	// The fields to use as dimensions for the metric. One metric filter can include
	// as many as three dimensions. Metrics extracted from log events are charged as
	// custom metrics. To prevent unexpected high charges, do not specify
	// high-cardinality fields such as IPAddress or requestID as dimensions. Each
	// different value found for a dimension is treated as a separate metric and
	// accrues charges as a separate custom metric. CloudWatch Logs disables a metric
	// filter if it generates 1000 different name/value pairs for your specified
	// dimensions within a certain amount of time. This helps to prevent accidental
	// high charges. You can also set up a billing alarm to alert you if your charges
	// are higher than expected. For more information, see Creating a Billing Alarm to
	// Monitor Your Estimated Amazon Web Services Charges (https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/monitor_estimated_charges_with_cloudwatch.html)
	// .
	Dimensions map[string]string

	// The unit to assign to the metric. If you omit this, the unit is set as None .
	Unit StandardUnit
	// contains filtered or unexported fields
}

Indicates how to transform ingested log events to metric data in a CloudWatch metric.

type OperationAbortedException

type OperationAbortedException struct {
	Message *string

	ErrorCodeOverride *string
	// contains filtered or unexported fields
}

Multiple concurrent requests to update the same resource were in conflict.

func (*OperationAbortedException) Error

func (e *OperationAbortedException) Error() string

func (*OperationAbortedException) ErrorCode

func (e *OperationAbortedException) ErrorCode() string

func (*OperationAbortedException) ErrorFault

func (*OperationAbortedException) ErrorMessage

func (e *OperationAbortedException) ErrorMessage() string

type OrderBy

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

Enum values for OrderBy

func (OrderBy) Values added in v0.29.0

func (OrderBy) Values() []OrderBy

Values returns all known values for OrderBy. Note that this can be expanded in the future, and so it is only as up to date as the client. The ordering of this slice is not guaranteed to be stable across updates.

type OutputFormat added in v1.27.0

type OutputFormat string
const (
	OutputFormatJson    OutputFormat = "json"
	OutputFormatPlain   OutputFormat = "plain"
	OutputFormatW3c     OutputFormat = "w3c"
	OutputFormatRaw     OutputFormat = "raw"
	OutputFormatParquet OutputFormat = "parquet"
)

Enum values for OutputFormat

func (OutputFormat) Values added in v1.27.0

func (OutputFormat) Values() []OutputFormat

Values returns all known values for OutputFormat. Note that this can be expanded in the future, and so it is only as up to date as the client. The ordering of this slice is not guaranteed to be stable across updates.

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

	// The data contained in the log event.
	Message *string

	// The time the event occurred, expressed as the number of milliseconds after Jan
	// 1, 1970 00:00:00 UTC .
	Timestamp *int64
	// contains filtered or unexported fields
}

Represents a log event.

type PatternToken added in v1.28.0

type PatternToken struct {

	// For a dynamic token, this indicates where in the pattern that this token
	// appears, related to other dynamic tokens. The dynamic token that appears first
	// has a value of 1 , the one that appears second is 2 , and so on.
	DynamicTokenPosition int32

	// Contains the values found for a dynamic token, and the number of times each
	// value was found.
	Enumerations map[string]int64

	// Specifies whether this is a dynamic token.
	IsDynamic *bool

	// The string represented by this token. If this is a dynamic token, the value
	// will be <*>
	TokenString *string
	// contains filtered or unexported fields
}

A tructures that contains information about one pattern token related to an anomaly. For more information about patterns and tokens, see CreateLogAnomalyDetector (https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_CreateLogAnomalyDetector.html) .

type Policy added in v1.27.0

type Policy struct {

	// The contents of the delivery destination policy.
	DeliveryDestinationPolicy *string
	// contains filtered or unexported fields
}

A structure that contains information about one delivery destination policy.

type PolicyType added in v1.21.0

type PolicyType string
const (
	PolicyTypeDataProtectionPolicy     PolicyType = "DATA_PROTECTION_POLICY"
	PolicyTypeSubscriptionFilterPolicy PolicyType = "SUBSCRIPTION_FILTER_POLICY"
)

Enum values for PolicyType

func (PolicyType) Values added in v1.21.0

func (PolicyType) Values() []PolicyType

Values returns all known values for PolicyType. Note that this can be expanded in the future, and so it is only as up to date as the client. The ordering of this slice is not guaranteed to be stable across updates.

type QueryCompileError

type QueryCompileError struct {

	// Reserved.
	Location *QueryCompileErrorLocation

	// Reserved.
	Message *string
	// contains filtered or unexported fields
}

Reserved.

type QueryCompileErrorLocation

type QueryCompileErrorLocation struct {

	// Reserved.
	EndCharOffset *int32

	// Reserved.
	StartCharOffset *int32
	// contains filtered or unexported fields
}

Reserved.

type QueryDefinition

type QueryDefinition struct {

	// The date that the query definition was most recently modified.
	LastModified *int64

	// If this query definition contains a list of log groups that it is limited to,
	// that list appears here.
	LogGroupNames []string

	// The name of the query definition.
	Name *string

	// The unique ID of the query definition.
	QueryDefinitionId *string

	// The query string to use for this definition. For more information, see
	// CloudWatch Logs Insights Query Syntax (https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/CWL_QuerySyntax.html)
	// .
	QueryString *string
	// contains filtered or unexported fields
}

This structure contains details about a saved CloudWatch Logs Insights query definition.

type QueryInfo

type QueryInfo struct {

	// The date and time that this query was created.
	CreateTime *int64

	// The name of the log group scanned by this query.
	LogGroupName *string

	// The unique ID number of this query.
	QueryId *string

	// The query string used in this query.
	QueryString *string

	// The status of this query. Possible values are Cancelled , Complete , Failed ,
	// Running , Scheduled , and Unknown .
	Status QueryStatus
	// contains filtered or unexported fields
}

Information about one CloudWatch Logs Insights query that matches the request in a DescribeQueries operation.

type QueryStatistics

type QueryStatistics struct {

	// The total number of bytes in the log events scanned during the query.
	BytesScanned float64

	// The number of log events that matched the query string.
	RecordsMatched float64

	// The total number of log events scanned during the query.
	RecordsScanned float64
	// 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.

type QueryStatus

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

Enum values for QueryStatus

func (QueryStatus) Values added in v0.29.0

func (QueryStatus) Values() []QueryStatus

Values returns all known values for QueryStatus. Note that this can be expanded in the future, and so it is only as up to date as the client. The ordering of this slice is not guaranteed to be stable across updates.

type RejectedLogEventsInfo

type RejectedLogEventsInfo struct {

	// The expired log events.
	ExpiredLogEventEndIndex *int32

	// The index of the first log event that is too new. This field is inclusive.
	TooNewLogEventStartIndex *int32

	// The index of the last log event that is too old. This field is exclusive.
	TooOldLogEventEndIndex *int32
	// contains filtered or unexported fields
}

Represents the rejected events.

type ResourceAlreadyExistsException

type ResourceAlreadyExistsException struct {
	Message *string

	ErrorCodeOverride *string
	// contains filtered or unexported fields
}

The specified resource already exists.

func (*ResourceAlreadyExistsException) Error

func (*ResourceAlreadyExistsException) ErrorCode

func (e *ResourceAlreadyExistsException) ErrorCode() string

func (*ResourceAlreadyExistsException) ErrorFault

func (*ResourceAlreadyExistsException) ErrorMessage

func (e *ResourceAlreadyExistsException) ErrorMessage() string

type ResourceNotFoundException

type ResourceNotFoundException struct {
	Message *string

	ErrorCodeOverride *string
	// contains filtered or unexported fields
}

The specified resource does not exist.

func (*ResourceNotFoundException) Error

func (e *ResourceNotFoundException) Error() string

func (*ResourceNotFoundException) ErrorCode

func (e *ResourceNotFoundException) ErrorCode() string

func (*ResourceNotFoundException) ErrorFault

func (*ResourceNotFoundException) ErrorMessage

func (e *ResourceNotFoundException) ErrorMessage() string

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

	// The details of the policy.
	PolicyDocument *string

	// The name of the resource policy.
	PolicyName *string
	// contains filtered or unexported fields
}

A policy enabling one or more entities to put logs to a log group in this account.

type ResultField

type ResultField struct {

	// The log event field.
	Field *string

	// The value of this field.
	Value *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. For more information about the fields that are generated by CloudWatch logs, see Supported Logs and Discovered Fields (https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/CWL_AnalyzeLogData-discoverable-fields.html) .

type Scope added in v1.21.0

type Scope string
const (
	ScopeAll Scope = "ALL"
)

Enum values for Scope

func (Scope) Values added in v1.21.0

func (Scope) Values() []Scope

Values returns all known values for Scope. Note that this can be expanded in the future, and so it is only as up to date as the client. The ordering of this slice is not guaranteed to be stable across updates.

type SearchedLogStream

type SearchedLogStream struct {

	// The name of the log stream.
	LogStreamName *string

	// Indicates whether all the events in this log stream were searched.
	SearchedCompletely *bool
	// contains filtered or unexported fields
}

Represents the search status of a log stream.

type ServiceQuotaExceededException added in v1.27.0

type ServiceQuotaExceededException struct {
	Message *string

	ErrorCodeOverride *string
	// contains filtered or unexported fields
}

This request exceeds a service quota.

func (*ServiceQuotaExceededException) Error added in v1.27.0

func (*ServiceQuotaExceededException) ErrorCode added in v1.27.0

func (e *ServiceQuotaExceededException) ErrorCode() string

func (*ServiceQuotaExceededException) ErrorFault added in v1.27.0

func (*ServiceQuotaExceededException) ErrorMessage added in v1.27.0

func (e *ServiceQuotaExceededException) ErrorMessage() string

type ServiceUnavailableException

type ServiceUnavailableException struct {
	Message *string

	ErrorCodeOverride *string
	// contains filtered or unexported fields
}

The service cannot complete the request.

func (*ServiceUnavailableException) Error

func (*ServiceUnavailableException) ErrorCode

func (e *ServiceUnavailableException) ErrorCode() string

func (*ServiceUnavailableException) ErrorFault

func (*ServiceUnavailableException) ErrorMessage

func (e *ServiceUnavailableException) ErrorMessage() string

type SessionStreamingException added in v1.30.0

type SessionStreamingException struct {
	Message *string

	ErrorCodeOverride *string
	// contains filtered or unexported fields
}

his exception is returned if an unknown error occurs during a Live Tail session.

func (*SessionStreamingException) Error added in v1.30.0

func (e *SessionStreamingException) Error() string

func (*SessionStreamingException) ErrorCode added in v1.30.0

func (e *SessionStreamingException) ErrorCode() string

func (*SessionStreamingException) ErrorFault added in v1.30.0

func (*SessionStreamingException) ErrorMessage added in v1.30.0

func (e *SessionStreamingException) ErrorMessage() string

type SessionTimeoutException added in v1.30.0

type SessionTimeoutException struct {
	Message *string

	ErrorCodeOverride *string
	// contains filtered or unexported fields
}

This exception is returned in a Live Tail stream when the Live Tail session times out. Live Tail sessions time out after three hours.

func (*SessionTimeoutException) Error added in v1.30.0

func (e *SessionTimeoutException) Error() string

func (*SessionTimeoutException) ErrorCode added in v1.30.0

func (e *SessionTimeoutException) ErrorCode() string

func (*SessionTimeoutException) ErrorFault added in v1.30.0

func (e *SessionTimeoutException) ErrorFault() smithy.ErrorFault

func (*SessionTimeoutException) ErrorMessage added in v1.30.0

func (e *SessionTimeoutException) ErrorMessage() string

type StandardUnit added in v1.4.0

type StandardUnit string
const (
	StandardUnitSeconds         StandardUnit = "Seconds"
	StandardUnitMicroseconds    StandardUnit = "Microseconds"
	StandardUnitMilliseconds    StandardUnit = "Milliseconds"
	StandardUnitBytes           StandardUnit = "Bytes"
	StandardUnitKilobytes       StandardUnit = "Kilobytes"
	StandardUnitMegabytes       StandardUnit = "Megabytes"
	StandardUnitGigabytes       StandardUnit = "Gigabytes"
	StandardUnitTerabytes       StandardUnit = "Terabytes"
	StandardUnitBits            StandardUnit = "Bits"
	StandardUnitKilobits        StandardUnit = "Kilobits"
	StandardUnitMegabits        StandardUnit = "Megabits"
	StandardUnitGigabits        StandardUnit = "Gigabits"
	StandardUnitTerabits        StandardUnit = "Terabits"
	StandardUnitPercent         StandardUnit = "Percent"
	StandardUnitCount           StandardUnit = "Count"
	StandardUnitBytesSecond     StandardUnit = "Bytes/Second"
	StandardUnitKilobytesSecond StandardUnit = "Kilobytes/Second"
	StandardUnitMegabytesSecond StandardUnit = "Megabytes/Second"
	StandardUnitGigabytesSecond StandardUnit = "Gigabytes/Second"
	StandardUnitTerabytesSecond StandardUnit = "Terabytes/Second"
	StandardUnitBitsSecond      StandardUnit = "Bits/Second"
	StandardUnitKilobitsSecond  StandardUnit = "Kilobits/Second"
	StandardUnitMegabitsSecond  StandardUnit = "Megabits/Second"
	StandardUnitGigabitsSecond  StandardUnit = "Gigabits/Second"
	StandardUnitTerabitsSecond  StandardUnit = "Terabits/Second"
	StandardUnitCountSecond     StandardUnit = "Count/Second"
	StandardUnitNone            StandardUnit = "None"
)

Enum values for StandardUnit

func (StandardUnit) Values added in v1.4.0

func (StandardUnit) Values() []StandardUnit

Values returns all known values for StandardUnit. Note that this can be expanded in the future, and so it is only as up to date as the client. The ordering of this slice is not guaranteed to be stable across updates.

type StartLiveTailResponseStream added in v1.30.0

type StartLiveTailResponseStream interface {
	// contains filtered or unexported methods
}

This object includes the stream returned by your StartLiveTail (https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_StartLiveTail.html) request.

The following types satisfy this interface:

StartLiveTailResponseStreamMemberSessionStart
StartLiveTailResponseStreamMemberSessionUpdate
Example (OutputUsage)
// Code generated by smithy-go-codegen DO NOT EDIT.

package main

import (
	"fmt"
	"github.com/aws/aws-sdk-go-v2/service/cloudwatchlogs/types"
)

func main() {
	var union types.StartLiveTailResponseStream
	// type switches can be used to check the union value
	switch v := union.(type) {
	case *types.StartLiveTailResponseStreamMemberSessionStart:
		_ = v.Value // Value is types.LiveTailSessionStart

	case *types.StartLiveTailResponseStreamMemberSessionUpdate:
		_ = v.Value // Value is types.LiveTailSessionUpdate

	case *types.UnknownUnionMember:
		fmt.Println("unknown tag:", v.Tag)

	default:
		fmt.Println("union is nil or unknown type")

	}
}

var _ *types.LiveTailSessionUpdate
var _ *types.LiveTailSessionStart
Output:

type StartLiveTailResponseStreamMemberSessionStart added in v1.30.0

type StartLiveTailResponseStreamMemberSessionStart struct {
	Value LiveTailSessionStart
	// contains filtered or unexported fields
}

This object contains information about this Live Tail session, including the log groups included and the log stream filters, if any.

type StartLiveTailResponseStreamMemberSessionUpdate added in v1.30.0

type StartLiveTailResponseStreamMemberSessionUpdate struct {
	Value LiveTailSessionUpdate
	// contains filtered or unexported fields
}

This object contains the log events and session metadata.

type State added in v1.28.0

type State string
const (
	StateActive     State = "Active"
	StateSuppressed State = "Suppressed"
	StateBaseline   State = "Baseline"
)

Enum values for State

func (State) Values added in v1.28.0

func (State) Values() []State

Values returns all known values for State. Note that this can be expanded in the future, and so it is only as up to date as the client. The ordering of this slice is not guaranteed to be stable across updates.

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

	// The Amazon Resource Name (ARN) of the destination.
	DestinationArn *string

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

	// The name of the subscription filter.
	FilterName *string

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

	// The name of the log group.
	LogGroupName *string

	//
	RoleArn *string
	// contains filtered or unexported fields
}

Represents a subscription filter.

type SuppressionPeriod added in v1.28.0

type SuppressionPeriod struct {

	// Specifies whether the value of value is in seconds, minutes, or hours.
	SuppressionUnit SuppressionUnit

	// Specifies the number of seconds, minutes or hours to suppress this anomaly.
	// There is no maximum.
	Value int32
	// contains filtered or unexported fields
}

If you are suppressing an anomaly temporariliy, this structure defines how long the suppression period is to be.

type SuppressionState added in v1.28.0

type SuppressionState string
const (
	SuppressionStateSuppressed   SuppressionState = "SUPPRESSED"
	SuppressionStateUnsuppressed SuppressionState = "UNSUPPRESSED"
)

Enum values for SuppressionState

func (SuppressionState) Values added in v1.28.0

Values returns all known values for SuppressionState. Note that this can be expanded in the future, and so it is only as up to date as the client. The ordering of this slice is not guaranteed to be stable across updates.

type SuppressionType added in v1.28.0

type SuppressionType string
const (
	SuppressionTypeLimited  SuppressionType = "LIMITED"
	SuppressionTypeInfinite SuppressionType = "INFINITE"
)

Enum values for SuppressionType

func (SuppressionType) Values added in v1.28.0

func (SuppressionType) Values() []SuppressionType

Values returns all known values for SuppressionType. Note that this can be expanded in the future, and so it is only as up to date as the client. The ordering of this slice is not guaranteed to be stable across updates.

type SuppressionUnit added in v1.28.0

type SuppressionUnit string
const (
	SuppressionUnitSeconds SuppressionUnit = "SECONDS"
	SuppressionUnitMinutes SuppressionUnit = "MINUTES"
	SuppressionUnitHours   SuppressionUnit = "HOURS"
)

Enum values for SuppressionUnit

func (SuppressionUnit) Values added in v1.28.0

func (SuppressionUnit) Values() []SuppressionUnit

Values returns all known values for SuppressionUnit. Note that this can be expanded in the future, and so it is only as up to date as the client. The ordering of this slice is not guaranteed to be stable across updates.

type ThrottlingException added in v1.27.0

type ThrottlingException struct {
	Message *string

	ErrorCodeOverride *string
	// contains filtered or unexported fields
}

The request was throttled because of quota limits.

func (*ThrottlingException) Error added in v1.27.0

func (e *ThrottlingException) Error() string

func (*ThrottlingException) ErrorCode added in v1.27.0

func (e *ThrottlingException) ErrorCode() string

func (*ThrottlingException) ErrorFault added in v1.27.0

func (e *ThrottlingException) ErrorFault() smithy.ErrorFault

func (*ThrottlingException) ErrorMessage added in v1.27.0

func (e *ThrottlingException) ErrorMessage() string

type TooManyTagsException added in v1.16.0

type TooManyTagsException struct {
	Message *string

	ErrorCodeOverride *string

	ResourceName *string
	// contains filtered or unexported fields
}

A resource can have no more than 50 tags.

func (*TooManyTagsException) Error added in v1.16.0

func (e *TooManyTagsException) Error() string

func (*TooManyTagsException) ErrorCode added in v1.16.0

func (e *TooManyTagsException) ErrorCode() string

func (*TooManyTagsException) ErrorFault added in v1.16.0

func (e *TooManyTagsException) ErrorFault() smithy.ErrorFault

func (*TooManyTagsException) ErrorMessage added in v1.16.0

func (e *TooManyTagsException) ErrorMessage() string

type UnknownUnionMember added in v1.30.0

type UnknownUnionMember struct {
	Tag   string
	Value []byte
	// contains filtered or unexported fields
}

UnknownUnionMember is returned when a union member is returned over the wire, but has an unknown tag.

type UnrecognizedClientException

type UnrecognizedClientException struct {
	Message *string

	ErrorCodeOverride *string
	// contains filtered or unexported fields
}

The most likely cause is an Amazon Web Services access key ID or secret key that's not valid.

func (*UnrecognizedClientException) Error

func (*UnrecognizedClientException) ErrorCode

func (e *UnrecognizedClientException) ErrorCode() string

func (*UnrecognizedClientException) ErrorFault

func (*UnrecognizedClientException) ErrorMessage

func (e *UnrecognizedClientException) ErrorMessage() string

type ValidationException added in v1.27.0

type ValidationException struct {
	Message *string

	ErrorCodeOverride *string
	// contains filtered or unexported fields
}

One of the parameters for the request is not valid.

func (*ValidationException) Error added in v1.27.0

func (e *ValidationException) Error() string

func (*ValidationException) ErrorCode added in v1.27.0

func (e *ValidationException) ErrorCode() string

func (*ValidationException) ErrorFault added in v1.27.0

func (e *ValidationException) ErrorFault() smithy.ErrorFault

func (*ValidationException) ErrorMessage added in v1.27.0

func (e *ValidationException) ErrorMessage() string

Jump to

Keyboard shortcuts

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