Documentation
¶
Index ¶
- Constants
- type Client
- func (client *Client) GetAccountSummary() (m *SummaryMap, e error)
- func (client *Client) GetUser(userName string) (user *User, e error)
- func (client *Client) ListAccountAliases() (aliases *ListAccountAliasesResponse, e error)
- func (client *Client) ListMFADevices(username string) (*ListMFADevicesResponse, error)
- func (client *Client) ListUsers() (users *ListUsersResponse, e error)
- type Entry
- type GetAccountSummaryResponse
- type GetUserResponse
- type InstanceProfile
- type ListAccountAliasesResponse
- type ListInstanceProfilesResponse
- type ListMFADevicesResponse
- type ListRolesResponse
- type ListUsersResponse
- type MFADevice
- type Role
- type SummaryMap
- type User
Constants ¶
View Source
const ( ENDPOINT = "https://iam.amazonaws.com" API_VERSION = "2010-05-08" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
func NewFromEnv ¶
func NewFromEnv() *Client
func (*Client) GetAccountSummary ¶
func (client *Client) GetAccountSummary() (m *SummaryMap, e error)
func (*Client) ListAccountAliases ¶
func (client *Client) ListAccountAliases() (aliases *ListAccountAliasesResponse, e error)
func (*Client) ListMFADevices ¶
func (client *Client) ListMFADevices(username string) (*ListMFADevicesResponse, error)
func (*Client) ListUsers ¶
func (client *Client) ListUsers() (users *ListUsersResponse, e error)
type GetAccountSummaryResponse ¶
type GetAccountSummaryResponse struct {
SummaryMap *SummaryMap `xml:"GetAccountSummaryResult>SummaryMap"`
}
type GetUserResponse ¶
type GetUserResponse struct {
User *User `xml:"GetUserResult>User"`
}
type InstanceProfile ¶
type InstanceProfile struct { Id string `xml:"Id"` //AIPACZLSXM2EYYEXAMPLE</Id> Roles []*Role `xml:"Roles>member"` // InstanceProfileName string `xml:"InstanceProfileName"` //Webserver</InstanceProfileName> Path string `xml:"Path"` ///application_abc/component_xyz/</Path> Arn string `xml:"Arn"` CreateDate time.Time `xml:"CreateDate"` }
type ListInstanceProfilesResponse ¶
type ListInstanceProfilesResponse struct { XMLName xml.Name `xml:"ListInstanceProfilesResponse"` InstanceProfiles []*InstanceProfile `xml:"ListInstanceProfilesResult>InstanceProfiles>member"` }
type ListMFADevicesResponse ¶
type ListRolesResponse ¶
type ListUsersResponse ¶
type ListUsersResponse struct {
Users []*User `xml:"ListUsersResult>Users>member"`
}
type Role ¶
type Role struct { Path string `xml:"Path"` ///application_abc/component_xyz/</Path> Arn string `xml:"Arn"` //arn:aws:iam::123456789012:role/application_abc/component_xyz/S3Access</Arn> RoleName string `xml:"RoleName"` //S3Access</RoleName> AssumeRolePolicyDocument string `xml:"AssumeRolePolicyDocument"` //{"Version":"2012-10-17","Statement":[{"Effect":"Allow","Principal":{"Service":["ec2.amazonaws.com"]},"Action":["sts:AssumeRole"]}]}</AssumeRolePolicyDocument> CreateDate string `xml:"CreateDate"` //2012-05-09T15:45:35Z</CreateDate> RoleId string `xml:"RoleId"` //AROACVSVTSZYEXAMPLEYK</RoleId> }
type SummaryMap ¶
type SummaryMap struct {
Entries []*Entry `xml:"entry"`
}
Click to show internal directories.
Click to hide internal directories.