cloudtrail

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2021 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Event

type Event struct {
	EventVersions       string                 `json:"eventVersions"`
	UserIdentity        UserIdentity           `json:userIdentity"`
	EventTime           time.Time              `json:"eventTime"`
	EventSource         string                 `json:"eventSource"`
	EventName           string                 `json:"eventName"`
	AwsRegion           string                 `json:"awsRegion"`
	SourceIPAddress     string                 `json:"sourceIPAddress"`
	UserAgent           string                 `json:"userAgent"`
	RequestParameters   map[string]interface{} `json:"requestParameters"`
	ResponseElements    map[string]interface{} `json:"responseElements"`
	AdditionalEventData map[string]interface{} `json:"additionalEventData"`
	EventID             string                 `json:"eventID"`
	EventType           string                 `json:"eventType"`
	RecipientAccountID  string                 `json:"recipientAccountId"`
	ErrorCode           *string                `json:"ErrorCode"`
	ErrorMessage        *string                `json:"errorMessage"`
	Rest                map[string]interface{} `json:"-"`
}

Event describes a cloudtrail event

type UserIdentity

type UserIdentity struct {
	Type        string `json:"type"`
	PrincipalID string `json:"principalId"`
	ARN         string `json:"arn"`
	AccountID   string `json:"accountId"`
	UserName    string `json:"userName"`
}

UserIdentity describes the user entity in a CloudTrail event

Jump to

Keyboard shortcuts

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