Documentation ¶
Index ¶
- type CloudTrail
- func (svc *CloudTrail) DoLookupEvents(in *SDK.LookupEventsInput) (LookupEventsResult, error)
- func (svc *CloudTrail) Errorf(format string, v ...interface{})
- func (svc *CloudTrail) GetClient() *SDK.CloudTrail
- func (svc *CloudTrail) Infof(format string, v ...interface{})
- func (svc *CloudTrail) LookupEvents(input LookupEventsInput) (LookupEventsResult, error)
- func (svc *CloudTrail) LookupEventsAll(input LookupEventsInput) (LookupEventsResult, error)
- func (svc *CloudTrail) SetLogger(logger log.Logger)
- type Event
- type LookupAttribute
- type LookupEventsInput
- type LookupEventsResult
- type Resource
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 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 LookupAttribute ¶
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 ¶
func (o LookupEventsInput) ToInput() *SDK.LookupEventsInput
type LookupEventsResult ¶
LookupEventsResult represents results from `LookupEvents` operation.
func NewLookupEventsResult ¶
func NewLookupEventsResult(output *SDK.LookupEventsOutput) LookupEventsResult
Click to show internal directories.
Click to hide internal directories.