-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
/
Copy pathawsume.ts
190 lines (189 loc) · 4.09 KB
/
awsume.ts
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
const completionSpec: Fig.Spec = {
name: "awsume",
description: "Awsume",
parserDirectives: {
flagsArePosixNoncompliant: true,
},
options: [
{
name: ["--help", "-h"],
description: "Show help for awsume",
},
{
name: ["--version", "-v"],
description: "Display the current version of awsume",
},
{
name: ["--output-profile", "-o"],
description: "A profile to output credentials to",
args: {
name: "output_profile",
},
},
{
name: "--clean",
description: "Clean expired output profiles",
},
{
name: ["--refresh", "-r"],
description: "Force refresh credentials",
},
{
name: ["--show-commands", "-s"],
description: "Show the commands to set the credentials",
},
{
name: ["--unset", "-u"],
description: "Unset your aws environment variables",
},
{
name: ["--auto-refresh", "-a"],
description: "Auto refresh credentials",
},
{
name: ["--kill-refresher", "-k"],
description: "Kill autoawsume",
},
{
name: ["--list-profiles", "-l"],
description: 'List profiles, "more" for detail (slow)',
args: {},
},
{
name: "--refresh-autocomplete",
description: "Refresh all plugin autocomplete profiles",
},
{
name: "--role-arn",
description: "Role ARN or <partition>:<account_id>:<role_name>",
args: {
name: "role_arn",
},
},
{
name: "--principal-arn",
description: "Principal ARN or <partition>:<account_id>:<provider_name>",
args: {
name: "principal_arn",
},
},
{
name: "--source-profile",
description: "Source_profile to use(role-arn only)",
args: {
name: "source_profile",
},
},
{
name: "--external-id",
description: "External ID to pass to the assume_role",
args: {
name: "external_id",
},
},
{
name: "--mfa-token",
description: "Your mfa token",
args: {
name: "mfa-token",
},
},
{
name: "--region",
description: "The region you want to awsume into",
args: {
name: "region",
},
},
{
name: "--session-name",
description: "Set a custom role session name",
args: {
name: "session_name",
},
},
{
name: "--role-duration",
description: "Seconds to get role creds for",
args: {
name: "role_duration",
},
},
{
name: "--with-saml",
description: "Use saml (requires plugin)",
},
{
name: "--with-web-identity",
description: "Use web identity (requires plugin)",
},
{
name: "--json",
description: "Use json credentials",
args: {
name: "json",
},
},
{
name: "--credentials-file",
description: "Target a shared credentials file",
args: {
name: "credentials_file",
},
},
{
name: "--config-file",
description: "Target a config file",
args: {
name: "config_file",
},
},
{
name: "--config",
description: "Configure awsume",
args: {
name: "option",
isVariadic: true,
},
},
{
name: "--list-plugins",
description: "List installed plugins",
},
{
name: "--info",
description: "Print any info logs to stderr",
},
{
name: "--debug",
description: "Print any debug logs to stderr",
},
{
name: ["--console", "-c"],
description: "Open AWS console",
},
{
name: ["--console-link", "-cl"],
description: "Get a sign-on url",
},
{
name: ["--console-service", "-cs"],
description: "Open the console to a specific service",
args: {
name: "service",
},
},
{
name: ["-cls", "-csl"],
description: "Get a sign-on url to a specific service",
args: {
name: "service",
},
},
],
args: {
name: "profile",
template: ["history"],
},
};
export default completionSpec;