sts-2011-06-15.examples.json
9.4 KB
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
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
{
"version": "1.0",
"examples": {
"AssumeRole": [
{
"input": {
"ExternalId": "123ABC",
"Policy": "{\"Version\":\"2012-10-17\",\"Statement\":[{\"Sid\":\"Stmt1\",\"Effect\":\"Allow\",\"Action\":\"s3:ListAllMyBuckets\",\"Resource\":\"*\"}]}",
"RoleArn": "arn:aws:iam::123456789012:role/demo",
"RoleSessionName": "testAssumeRoleSession",
"Tags": [
{
"Key": "Project",
"Value": "Unicorn"
},
{
"Key": "Team",
"Value": "Automation"
},
{
"Key": "Cost-Center",
"Value": "12345"
}
],
"TransitiveTagKeys": [
"Project",
"Cost-Center"
]
},
"output": {
"AssumedRoleUser": {
"Arn": "arn:aws:sts::123456789012:assumed-role/demo/Bob",
"AssumedRoleId": "ARO123EXAMPLE123:Bob"
},
"Credentials": {
"AccessKeyId": "AKIAIOSFODNN7EXAMPLE",
"Expiration": "2011-07-15T23:28:33.359Z",
"SecretAccessKey": "wJalrXUtnFEMI/K7MDENG/bPxRfiCYzEXAMPLEKEY",
"SessionToken": "AQoDYXdzEPT//////////wEXAMPLEtc764bNrC9SAPBSM22wDOk4x4HIZ8j4FZTwdQWLWsKWHGBuFqwAeMicRXmxfpSPfIeoIYRqTflfKD8YUuwthAx7mSEI/qkPpKPi/kMcGdQrmGdeehM4IC1NtBmUpp2wUE8phUZampKsburEDy0KPkyQDYwT7WZ0wq5VSXDvp75YU9HFvlRd8Tx6q6fE8YQcHNVXAkiY9q6d+xo0rKwT38xVqr7ZD0u0iPPkUL64lIZbqBAz+scqKmlzm8FDrypNC9Yjc8fPOLn9FX9KSYvKTr4rvx3iSIlTJabIQwj2ICCR/oLxBA=="
},
"PackedPolicySize": 8
},
"comments": {
"input": {
},
"output": {
}
},
"description": "",
"id": "to-assume-a-role-1480532402212",
"title": "To assume a role"
}
],
"AssumeRoleWithWebIdentity": [
{
"input": {
"DurationSeconds": 3600,
"Policy": "{\"Version\":\"2012-10-17\",\"Statement\":[{\"Sid\":\"Stmt1\",\"Effect\":\"Allow\",\"Action\":\"s3:ListAllMyBuckets\",\"Resource\":\"*\"}]}",
"ProviderId": "www.amazon.com",
"RoleArn": "arn:aws:iam::123456789012:role/FederatedWebIdentityRole",
"RoleSessionName": "app1",
"WebIdentityToken": "Atza%7CIQEBLjAsAhRFiXuWpUXuRvQ9PZL3GMFcYevydwIUFAHZwXZXXXXXXXXJnrulxKDHwy87oGKPznh0D6bEQZTSCzyoCtL_8S07pLpr0zMbn6w1lfVZKNTBdDansFBmtGnIsIapjI6xKR02Yc_2bQ8LZbUXSGm6Ry6_BG7PrtLZtj_dfCTj92xNGed-CrKqjG7nPBjNIL016GGvuS5gSvPRUxWES3VYfm1wl7WTI7jn-Pcb6M-buCgHhFOzTQxod27L9CqnOLio7N3gZAGpsp6n1-AJBOCJckcyXe2c6uD0srOJeZlKUm2eTDVMf8IehDVI0r1QOnTV6KzzAI3OY87Vd_cVMQ"
},
"output": {
"AssumedRoleUser": {
"Arn": "arn:aws:sts::123456789012:assumed-role/FederatedWebIdentityRole/app1",
"AssumedRoleId": "AROACLKWSDQRAOEXAMPLE:app1"
},
"Audience": "client.5498841531868486423.1548@apps.example.com",
"Credentials": {
"AccessKeyId": "AKIAIOSFODNN7EXAMPLE",
"Expiration": "2014-10-24T23:00:23Z",
"SecretAccessKey": "wJalrXUtnFEMI/K7MDENG/bPxRfiCYzEXAMPLEKEY",
"SessionToken": "AQoDYXdzEE0a8ANXXXXXXXXNO1ewxE5TijQyp+IEXAMPLE"
},
"PackedPolicySize": 123,
"Provider": "www.amazon.com",
"SubjectFromWebIdentityToken": "amzn1.account.AF6RHO7KZU5XRVQJGXK6HEXAMPLE"
},
"comments": {
"input": {
},
"output": {
}
},
"description": "",
"id": "to-assume-a-role-as-an-openid-connect-federated-user-1480533445696",
"title": "To assume a role as an OpenID Connect-federated user"
}
],
"DecodeAuthorizationMessage": [
{
"input": {
"EncodedMessage": "<encoded-message>"
},
"output": {
"DecodedMessage": "{\"allowed\": \"false\",\"explicitDeny\": \"false\",\"matchedStatements\": \"\",\"failures\": \"\",\"context\": {\"principal\": {\"id\": \"AIDACKCEVSQ6C2EXAMPLE\",\"name\": \"Bob\",\"arn\": \"arn:aws:iam::123456789012:user/Bob\"},\"action\": \"ec2:StopInstances\",\"resource\": \"arn:aws:ec2:us-east-1:123456789012:instance/i-dd01c9bd\",\"conditions\": [{\"item\": {\"key\": \"ec2:Tenancy\",\"values\": [\"default\"]},{\"item\": {\"key\": \"ec2:ResourceTag/elasticbeanstalk:environment-name\",\"values\": [\"Default-Environment\"]}},(Additional items ...)]}}"
},
"comments": {
"input": {
},
"output": {
}
},
"description": "",
"id": "to-decode-information-about-an-authorization-status-of-a-request-1480533854499",
"title": "To decode information about an authorization status of a request"
}
],
"GetCallerIdentity": [
{
"input": {
},
"output": {
"Account": "123456789012",
"Arn": "arn:aws:iam::123456789012:user/Alice",
"UserId": "AKIAI44QH8DHBEXAMPLE"
},
"comments": {
"input": {
},
"output": {
}
},
"description": "This example shows a request and response made with the credentials for a user named Alice in the AWS account 123456789012.",
"id": "to-get-details-about-a-calling-iam-user-1480540050376",
"title": "To get details about a calling IAM user"
},
{
"input": {
},
"output": {
"Account": "123456789012",
"Arn": "arn:aws:sts::123456789012:assumed-role/my-role-name/my-role-session-name",
"UserId": "AKIAI44QH8DHBEXAMPLE:my-role-session-name"
},
"comments": {
"input": {
},
"output": {
}
},
"description": "This example shows a request and response made with temporary credentials created by AssumeRole. The name of the assumed role is my-role-name, and the RoleSessionName is set to my-role-session-name.",
"id": "to-get-details-about-a-calling-user-federated-with-assumerole-1480540158545",
"title": "To get details about a calling user federated with AssumeRole"
},
{
"input": {
},
"output": {
"Account": "123456789012",
"Arn": "arn:aws:sts::123456789012:federated-user/my-federated-user-name",
"UserId": "123456789012:my-federated-user-name"
},
"comments": {
"input": {
},
"output": {
}
},
"description": "This example shows a request and response made with temporary credentials created by using GetFederationToken. The Name parameter is set to my-federated-user-name.",
"id": "to-get-details-about-a-calling-user-federated-with-getfederationtoken-1480540231316",
"title": "To get details about a calling user federated with GetFederationToken"
}
],
"GetFederationToken": [
{
"input": {
"DurationSeconds": 3600,
"Name": "testFedUserSession",
"Policy": "{\"Version\":\"2012-10-17\",\"Statement\":[{\"Sid\":\"Stmt1\",\"Effect\":\"Allow\",\"Action\":\"s3:ListAllMyBuckets\",\"Resource\":\"*\"}]}",
"Tags": [
{
"Key": "Project",
"Value": "Pegasus"
},
{
"Key": "Cost-Center",
"Value": "98765"
}
]
},
"output": {
"Credentials": {
"AccessKeyId": "AKIAIOSFODNN7EXAMPLE",
"Expiration": "2011-07-15T23:28:33.359Z",
"SecretAccessKey": "wJalrXUtnFEMI/K7MDENG/bPxRfiCYzEXAMPLEKEY",
"SessionToken": "AQoDYXdzEPT//////////wEXAMPLEtc764bNrC9SAPBSM22wDOk4x4HIZ8j4FZTwdQWLWsKWHGBuFqwAeMicRXmxfpSPfIeoIYRqTflfKD8YUuwthAx7mSEI/qkPpKPi/kMcGdQrmGdeehM4IC1NtBmUpp2wUE8phUZampKsburEDy0KPkyQDYwT7WZ0wq5VSXDvp75YU9HFvlRd8Tx6q6fE8YQcHNVXAkiY9q6d+xo0rKwT38xVqr7ZD0u0iPPkUL64lIZbqBAz+scqKmlzm8FDrypNC9Yjc8fPOLn9FX9KSYvKTr4rvx3iSIlTJabIQwj2ICCR/oLxBA=="
},
"FederatedUser": {
"Arn": "arn:aws:sts::123456789012:federated-user/Bob",
"FederatedUserId": "123456789012:Bob"
},
"PackedPolicySize": 8
},
"comments": {
"input": {
},
"output": {
}
},
"description": "",
"id": "to-get-temporary-credentials-for-a-role-by-using-getfederationtoken-1480540749900",
"title": "To get temporary credentials for a role by using GetFederationToken"
}
],
"GetSessionToken": [
{
"input": {
"DurationSeconds": 3600,
"SerialNumber": "YourMFASerialNumber",
"TokenCode": "123456"
},
"output": {
"Credentials": {
"AccessKeyId": "AKIAIOSFODNN7EXAMPLE",
"Expiration": "2011-07-11T19:55:29.611Z",
"SecretAccessKey": "wJalrXUtnFEMI/K7MDENG/bPxRfiCYzEXAMPLEKEY",
"SessionToken": "AQoEXAMPLEH4aoAH0gNCAPyJxz4BlCFFxWNE1OPTgk5TthT+FvwqnKwRcOIfrRh3c/LTo6UDdyJwOOvEVPvLXCrrrUtdnniCEXAMPLE/IvU1dYUg2RVAJBanLiHb4IgRmpRV3zrkuWJOgQs8IZZaIv2BXIa2R4OlgkBN9bkUDNCJiBeb/AXlzBBko7b15fjrBs2+cTQtpZ3CYWFXG8C5zqx37wnOE49mRl/+OtkIKGO7fAE"
}
},
"comments": {
"input": {
},
"output": {
}
},
"description": "",
"id": "to-get-temporary-credentials-for-an-iam-user-or-an-aws-account-1480540814038",
"title": "To get temporary credentials for an IAM user or an AWS account"
}
]
}
}