-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathawspc-structs.go
40 lines (36 loc) · 996 Bytes
/
awspc-structs.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
package main
/**
* Structure of the result from 'aws iam list-mfa-devices'
**/
type AWS_MFA struct {
MFADevices []struct {
UserName string `json:"UserName"`
SerialNumber string `json:"SerialNumber"`
EnableDate string `json:"EnableDate"`
} `json:"MFADevices"`
}
/**
* Structure oa an Account
**/
type AWS_ACCOUNT struct {
Accounts []struct {
Status string `json:"Status"`
Name string `json:"Name"`
Email string `json:"Email"`
JoinedMethod string `json:"JoinedMethod"`
JoinedTimestamp float64 `json:"JoinedTimestamp"`
ID string `json:"Id"`
Arn string `json:"Arn"`
} `json:"Accounts"`
}
/**
* Structure of an Credential
**/
type AWS_CREDENTIALS struct {
Credentials struct {
SecretAccessKey string `json:"SecretAccessKey"`
SessionToken string `json:"SessionToken"`
Expiration string `json:"Expiration"`
AccessKeyID string `json:"AccessKeyId"`
} `json:"Credentials"`
}