Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Options struct { // VerboseAssumeRoleEvents if true, will log AssumeRoleEvents when are processed VerboseAssumeRoleEvents bool }
Options defines analyzer global options
Functions ¶
Types ¶
type AssumedRoleUser ¶
AssumedRoleUser ...
type Credentials ¶
type Credentials struct { AccessKeyID string `json:"accessKeyId"` Expiration string `json:"expiration"` SessionToken string `json:"sessionToken"` }
Credentials ...
type Event ¶
type Event struct { Source string `json:"eventSource"` ErrorCode string `json:"errorCode"` Name string `json:"eventName"` UserIdentity UserIdentity `json:"userIdentity"` SourceIPAddress string `json:"sourceIPAddress"` UserAgent string `json:"userAgent"` Time time.Time `json:"eventTime"` Region string `json:"awsRegion"` RequestParameters RequestParameters `json:"requestParameters"` ResponseElements ResponseElements `json:"responseElements"` RequestID string `json:"requestID"` ID string `json:"eventID"` Resources []Resource `json:"resources"` Type string `json:"eventType"` RecipientAccountID string `json:"recipientAccountId"` }
Event is AWS cloud trail event
func (*Event) BuildAssumedRoleARN ¶
BuildAssumedRoleARN constructs assumed role ARN from event if applicable
func (*Event) JSONString ¶
JSONString exports event as a JSON string
type RequestParameters ¶
type RequestParameters struct { RoleArn string `json:"roleArn"` RoleSessionName string `json:"roleSessionName"` }
RequestParameters ...
type Resource ¶
type Resource struct { ARN string `json:"ARN"` AccountID string `json:"accountId"` Type string `json:"type"` }
Resource ...
type ResponseElements ¶
type ResponseElements struct { Credentials Credentials `json:"credentials"` AssumedRoleUser AssumedRoleUser `json:"assumedRoleUser"` }
ResponseElements ...
type UserIdentity ¶
type UserIdentity struct { Type string `json:"type"` ARN string `json:"arn"` UserName string `json:"userName"` }
UserIdentity ...
Click to show internal directories.
Click to hide internal directories.