cloudtrail

package
v1.17.1 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2021 License: MIT Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CloudTrail

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

CloudTrail has CloudTrail client.

func New

func New(conf config.Config) (*CloudTrail, error)

New returns initialized *CloudTrail.

func NewFromSession added in v1.17.0

func NewFromSession(sess *session.Session) *CloudTrail

NewFromSession returns initialized *CloudTrail from aws.Session.

func (*CloudTrail) DoLookupEvents

func (svc *CloudTrail) DoLookupEvents(in *SDK.LookupEventsInput) (LookupEventsResult, error)

DoLookupEvents executes LookupEvents operation.

func (*CloudTrail) Errorf

func (svc *CloudTrail) Errorf(format string, v ...interface{})

Errorf logging error information.

func (*CloudTrail) GetClient added in v1.17.1

func (svc *CloudTrail) GetClient() *SDK.CloudTrail

GetClient gets aws client.

func (*CloudTrail) Infof

func (svc *CloudTrail) Infof(format string, v ...interface{})

Infof logging information.

func (*CloudTrail) LookupEvents

func (svc *CloudTrail) LookupEvents(input LookupEventsInput) (LookupEventsResult, error)

LookupEvents executes LookupEvents operation with customized input.

func (*CloudTrail) LookupEventsAll

func (svc *CloudTrail) LookupEventsAll(input LookupEventsInput) (LookupEventsResult, error)

LookupEventsAll executes LookupEvents operation and fetch all of events.

func (*CloudTrail) SetLogger

func (svc *CloudTrail) SetLogger(logger log.Logger)

SetLogger sets logger.

type Event

type Event struct {
	AccessKeyID     string
	CloudTrailEvent string
	EventID         string
	EventName       string
	EventSource     string
	EventTime       time.Time
	ReadOnly        string
	Username        string

	Resources []Resource
}

type LookupAttribute

type LookupAttribute struct {
	Key   string
	Value string
}

func (LookupAttribute) ToSDKValue

func (a LookupAttribute) ToSDKValue() *SDK.LookupAttribute

type LookupEventsInput

type LookupEventsInput struct {
	StartTime     time.Time
	EndTime       time.Time
	MaxResults    int64 // 1~50
	EventCategory string
	NextToken     string

	LookupAttributes []LookupAttribute
}

LookupEventsInput is optional parameters for `LookupEvents`.

func (LookupEventsInput) ToInput

type LookupEventsResult

type LookupEventsResult struct {
	Events    []Event
	NextToken string
}

LookupEventsResult represents results from `LookupEvents` operation.

func NewLookupEventsResult

func NewLookupEventsResult(output *SDK.LookupEventsOutput) LookupEventsResult

type Resource

type Resource struct {
	Name string
	Type string
}

Jump to

Keyboard shortcuts

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