Help us shape the future of Go! Take the 2026 Go Developer Survey

cloudwatchlogs

package
v1.9.0 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client calls cloudwatchlogs over its wire protocol.

func NewFromConfig

func NewFromConfig(cfg aws.Config, optFns ...func(*Options)) *Client

NewFromConfig returns a Client for cfg.

func (*Client) CreateExportTask

func (c *Client) CreateExportTask(ctx context.Context, in *CreateExportTaskInput) (*CreateExportTaskOutput, error)

CreateExportTask calls the CreateExportTask operation.

func (*Client) CreateLogGroup

func (c *Client) CreateLogGroup(ctx context.Context, in *CreateLogGroupInput) (*CreateLogGroupOutput, error)

CreateLogGroup calls the CreateLogGroup operation.

func (*Client) CreateLogStream

func (c *Client) CreateLogStream(ctx context.Context, in *CreateLogStreamInput) (*CreateLogStreamOutput, error)

CreateLogStream calls the CreateLogStream operation.

func (*Client) DeleteLogGroup

func (c *Client) DeleteLogGroup(ctx context.Context, in *DeleteLogGroupInput) (*DeleteLogGroupOutput, error)

DeleteLogGroup calls the DeleteLogGroup operation.

func (*Client) DeleteRetentionPolicy

func (c *Client) DeleteRetentionPolicy(ctx context.Context, in *DeleteRetentionPolicyInput) (*DeleteRetentionPolicyOutput, error)

DeleteRetentionPolicy calls the DeleteRetentionPolicy operation.

func (*Client) DescribeLogGroups

func (c *Client) DescribeLogGroups(ctx context.Context, in *DescribeLogGroupsInput) (*DescribeLogGroupsOutput, error)

DescribeLogGroups calls the DescribeLogGroups operation.

func (*Client) DescribeLogStreams

func (c *Client) DescribeLogStreams(ctx context.Context, in *DescribeLogStreamsInput) (*DescribeLogStreamsOutput, error)

DescribeLogStreams calls the DescribeLogStreams operation.

func (*Client) FilterLogEvents

func (c *Client) FilterLogEvents(ctx context.Context, in *FilterLogEventsInput) (*FilterLogEventsOutput, error)

FilterLogEvents calls the FilterLogEvents operation.

func (*Client) GetLogEvents

func (c *Client) GetLogEvents(ctx context.Context, in *GetLogEventsInput) (*GetLogEventsOutput, error)

GetLogEvents calls the GetLogEvents operation.

func (*Client) ListTagsForResource

func (c *Client) ListTagsForResource(ctx context.Context, in *ListTagsForResourceInput) (*ListTagsForResourceOutput, error)

ListTagsForResource calls the ListTagsForResource operation.

func (*Client) PutLogEvents

func (c *Client) PutLogEvents(ctx context.Context, in *PutLogEventsInput) (*PutLogEventsOutput, error)

PutLogEvents calls the PutLogEvents operation.

func (*Client) PutResourcePolicy

func (c *Client) PutResourcePolicy(ctx context.Context, in *PutResourcePolicyInput) (*PutResourcePolicyOutput, error)

PutResourcePolicy calls the PutResourcePolicy operation.

func (*Client) PutRetentionPolicy

func (c *Client) PutRetentionPolicy(ctx context.Context, in *PutRetentionPolicyInput) (*PutRetentionPolicyOutput, error)

PutRetentionPolicy calls the PutRetentionPolicy operation.

func (*Client) PutSubscriptionFilter

func (c *Client) PutSubscriptionFilter(ctx context.Context, in *PutSubscriptionFilterInput) (*PutSubscriptionFilterOutput, error)

PutSubscriptionFilter calls the PutSubscriptionFilter operation.

type CreateExportTaskInput

type CreateExportTaskInput struct {
	Destination         *string
	From                *int64
	LogGroupName        *string
	To                  *int64
	DestinationPrefix   *string
	LogStreamNamePrefix *string
	TaskName            *string
}

type CreateExportTaskOutput

type CreateExportTaskOutput struct {
	TaskId *string
}

type CreateLogGroupInput

type CreateLogGroupInput struct {
	LogGroupName              *string
	DeletionProtectionEnabled *bool
	KmsKeyId                  *string
	LogGroupClass             types.LogGroupClass `json:",omitempty"`
	Tags                      map[string]string
}

type CreateLogGroupOutput

type CreateLogGroupOutput struct {
}

type CreateLogStreamInput

type CreateLogStreamInput struct {
	LogGroupName  *string
	LogStreamName *string
}

type CreateLogStreamOutput

type CreateLogStreamOutput struct {
}

type DeleteLogGroupInput

type DeleteLogGroupInput struct {
	LogGroupName *string
}

type DeleteLogGroupOutput

type DeleteLogGroupOutput struct {
}

type DeleteRetentionPolicyInput

type DeleteRetentionPolicyInput struct {
	LogGroupName *string
}

type DeleteRetentionPolicyOutput

type DeleteRetentionPolicyOutput struct {
}

type DescribeLogGroupsInput

type DescribeLogGroupsInput struct {
	AccountIdentifiers    []string
	IncludeLinkedAccounts *bool
	Limit                 *int32
	LogGroupClass         types.LogGroupClass `json:",omitempty"`
	LogGroupIdentifiers   []string
	LogGroupNamePattern   *string
	LogGroupNamePrefix    *string
	NextToken             *string
}

type DescribeLogGroupsOutput

type DescribeLogGroupsOutput struct {
	LogGroups []types.LogGroup
	NextToken *string
}

type DescribeLogGroupsPaginator

type DescribeLogGroupsPaginator = awswire.Paginator[DescribeLogGroupsInput, DescribeLogGroupsOutput]

DescribeLogGroupsPaginator pages through DescribeLogGroups.

func NewDescribeLogGroupsPaginator

func NewDescribeLogGroupsPaginator(c *Client, in *DescribeLogGroupsInput) *DescribeLogGroupsPaginator

NewDescribeLogGroupsPaginator returns a paginator over DescribeLogGroups.

type DescribeLogStreamsInput

type DescribeLogStreamsInput struct {
	Descending          *bool
	Limit               *int32
	LogGroupIdentifier  *string
	LogGroupName        *string
	LogStreamNamePrefix *string
	NextToken           *string
	OrderBy             types.OrderBy `json:",omitempty"`
}

type DescribeLogStreamsOutput

type DescribeLogStreamsOutput struct {
	LogStreams []types.LogStream
	NextToken  *string
}

type FilterLogEventsInput

type FilterLogEventsInput struct {
	EndTime             *int64
	FilterPattern       *string
	Interleaved         *bool
	Limit               *int32
	LogGroupIdentifier  *string
	LogGroupName        *string
	LogStreamNamePrefix *string
	LogStreamNames      []string
	NextToken           *string
	StartFromHead       *bool
	StartTime           *int64
	Unmask              bool `json:",omitempty"`
}

type FilterLogEventsOutput

type FilterLogEventsOutput struct {
	Events             []types.FilteredLogEvent
	NextToken          *string
	SearchedLogStreams []types.SearchedLogStream
}

type GetLogEventsInput

type GetLogEventsInput struct {
	LogStreamName      *string
	EndTime            *int64
	Limit              *int32
	LogGroupIdentifier *string
	LogGroupName       *string
	NextToken          *string
	StartFromHead      *bool
	StartTime          *int64
	Unmask             bool `json:",omitempty"`
}

type GetLogEventsOutput

type GetLogEventsOutput struct {
	Events            []types.OutputLogEvent
	NextBackwardToken *string
	NextForwardToken  *string
}

type ListTagsForResourceInput

type ListTagsForResourceInput struct {
	ResourceArn *string
}

type ListTagsForResourceOutput

type ListTagsForResourceOutput struct {
	Tags map[string]string
}

type Options

type Options = awswire.Options

Options configures a Client.

type PutLogEventsInput

type PutLogEventsInput struct {
	LogEvents     []types.InputLogEvent
	LogGroupName  *string
	LogStreamName *string
	Entity        *types.Entity
	SequenceToken *string
}

type PutLogEventsOutput

type PutLogEventsOutput struct {
	NextSequenceToken     *string
	RejectedEntityInfo    *types.RejectedEntityInfo
	RejectedLogEventsInfo *types.RejectedLogEventsInfo
}

type PutResourcePolicyInput

type PutResourcePolicyInput struct {
	ExpectedRevisionId *string
	PolicyDocument     *string
	PolicyName         *string
	ResourceArn        *string
}

type PutResourcePolicyOutput

type PutResourcePolicyOutput struct {
	ResourcePolicy *types.ResourcePolicy
	RevisionId     *string
}

type PutRetentionPolicyInput

type PutRetentionPolicyInput struct {
	LogGroupName    *string
	RetentionInDays *int32
}

type PutRetentionPolicyOutput

type PutRetentionPolicyOutput struct {
}

type PutSubscriptionFilterInput

type PutSubscriptionFilterInput struct {
	DestinationArn         *string
	FilterName             *string
	FilterPattern          *string
	LogGroupName           *string
	ApplyOnTransformedLogs bool               `json:",omitempty"`
	Distribution           types.Distribution `json:",omitempty"`
	EmitSystemFields       []string
	FieldSelectionCriteria *string
	RoleArn                *string
}

type PutSubscriptionFilterOutput

type PutSubscriptionFilterOutput struct {
}

Jump to

Keyboard shortcuts

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