-
Notifications
You must be signed in to change notification settings - Fork 17
/
awsiam_IUser.go
59 lines (52 loc) · 974 Bytes
/
awsiam_IUser.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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
package awsiam
import (
_jsii_ "github.com/aws/jsii-runtime-go/runtime"
)
// Represents an IAM user.
// See: https://docs.aws.amazon.com/IAM/latest/UserGuide/id_users.html
//
// Experimental.
type IUser interface {
IIdentity
// Adds this user to a group.
// Experimental.
AddToGroup(group IGroup)
// The user's ARN.
// Experimental.
UserArn() *string
// The user's name.
// Experimental.
UserName() *string
}
// The jsii proxy for IUser
type jsiiProxy_IUser struct {
jsiiProxy_IIdentity
}
func (i *jsiiProxy_IUser) AddToGroup(group IGroup) {
if err := i.validateAddToGroupParameters(group); err != nil {
panic(err)
}
_jsii_.InvokeVoid(
i,
"addToGroup",
[]interface{}{group},
)
}
func (j *jsiiProxy_IUser) UserArn() *string {
var returns *string
_jsii_.Get(
j,
"userArn",
&returns,
)
return returns
}
func (j *jsiiProxy_IUser) UserName() *string {
var returns *string
_jsii_.Get(
j,
"userName",
&returns,
)
return returns
}