api-2.json 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521
  1. {
  2. "version":"2.0",
  3. "metadata":{
  4. "apiVersion":"2011-06-15",
  5. "endpointPrefix":"sts",
  6. "globalEndpoint":"sts.amazonaws.com",
  7. "protocol":"query",
  8. "serviceAbbreviation":"AWS STS",
  9. "serviceFullName":"AWS Security Token Service",
  10. "signatureVersion":"v4",
  11. "xmlNamespace":"https://sts.amazonaws.com/doc/2011-06-15/"
  12. },
  13. "operations":{
  14. "AssumeRole":{
  15. "name":"AssumeRole",
  16. "http":{
  17. "method":"POST",
  18. "requestUri":"/"
  19. },
  20. "input":{"shape":"AssumeRoleRequest"},
  21. "output":{
  22. "shape":"AssumeRoleResponse",
  23. "resultWrapper":"AssumeRoleResult"
  24. },
  25. "errors":[
  26. {"shape":"MalformedPolicyDocumentException"},
  27. {"shape":"PackedPolicyTooLargeException"},
  28. {"shape":"RegionDisabledException"}
  29. ]
  30. },
  31. "AssumeRoleWithSAML":{
  32. "name":"AssumeRoleWithSAML",
  33. "http":{
  34. "method":"POST",
  35. "requestUri":"/"
  36. },
  37. "input":{"shape":"AssumeRoleWithSAMLRequest"},
  38. "output":{
  39. "shape":"AssumeRoleWithSAMLResponse",
  40. "resultWrapper":"AssumeRoleWithSAMLResult"
  41. },
  42. "errors":[
  43. {"shape":"MalformedPolicyDocumentException"},
  44. {"shape":"PackedPolicyTooLargeException"},
  45. {"shape":"IDPRejectedClaimException"},
  46. {"shape":"InvalidIdentityTokenException"},
  47. {"shape":"ExpiredTokenException"},
  48. {"shape":"RegionDisabledException"}
  49. ]
  50. },
  51. "AssumeRoleWithWebIdentity":{
  52. "name":"AssumeRoleWithWebIdentity",
  53. "http":{
  54. "method":"POST",
  55. "requestUri":"/"
  56. },
  57. "input":{"shape":"AssumeRoleWithWebIdentityRequest"},
  58. "output":{
  59. "shape":"AssumeRoleWithWebIdentityResponse",
  60. "resultWrapper":"AssumeRoleWithWebIdentityResult"
  61. },
  62. "errors":[
  63. {"shape":"MalformedPolicyDocumentException"},
  64. {"shape":"PackedPolicyTooLargeException"},
  65. {"shape":"IDPRejectedClaimException"},
  66. {"shape":"IDPCommunicationErrorException"},
  67. {"shape":"InvalidIdentityTokenException"},
  68. {"shape":"ExpiredTokenException"},
  69. {"shape":"RegionDisabledException"}
  70. ]
  71. },
  72. "DecodeAuthorizationMessage":{
  73. "name":"DecodeAuthorizationMessage",
  74. "http":{
  75. "method":"POST",
  76. "requestUri":"/"
  77. },
  78. "input":{"shape":"DecodeAuthorizationMessageRequest"},
  79. "output":{
  80. "shape":"DecodeAuthorizationMessageResponse",
  81. "resultWrapper":"DecodeAuthorizationMessageResult"
  82. },
  83. "errors":[
  84. {"shape":"InvalidAuthorizationMessageException"}
  85. ]
  86. },
  87. "GetCallerIdentity":{
  88. "name":"GetCallerIdentity",
  89. "http":{
  90. "method":"POST",
  91. "requestUri":"/"
  92. },
  93. "input":{"shape":"GetCallerIdentityRequest"},
  94. "output":{
  95. "shape":"GetCallerIdentityResponse",
  96. "resultWrapper":"GetCallerIdentityResult"
  97. }
  98. },
  99. "GetFederationToken":{
  100. "name":"GetFederationToken",
  101. "http":{
  102. "method":"POST",
  103. "requestUri":"/"
  104. },
  105. "input":{"shape":"GetFederationTokenRequest"},
  106. "output":{
  107. "shape":"GetFederationTokenResponse",
  108. "resultWrapper":"GetFederationTokenResult"
  109. },
  110. "errors":[
  111. {"shape":"MalformedPolicyDocumentException"},
  112. {"shape":"PackedPolicyTooLargeException"},
  113. {"shape":"RegionDisabledException"}
  114. ]
  115. },
  116. "GetSessionToken":{
  117. "name":"GetSessionToken",
  118. "http":{
  119. "method":"POST",
  120. "requestUri":"/"
  121. },
  122. "input":{"shape":"GetSessionTokenRequest"},
  123. "output":{
  124. "shape":"GetSessionTokenResponse",
  125. "resultWrapper":"GetSessionTokenResult"
  126. },
  127. "errors":[
  128. {"shape":"RegionDisabledException"}
  129. ]
  130. }
  131. },
  132. "shapes":{
  133. "AssumeRoleRequest":{
  134. "type":"structure",
  135. "required":[
  136. "RoleArn",
  137. "RoleSessionName"
  138. ],
  139. "members":{
  140. "RoleArn":{"shape":"arnType"},
  141. "RoleSessionName":{"shape":"roleSessionNameType"},
  142. "Policy":{"shape":"sessionPolicyDocumentType"},
  143. "DurationSeconds":{"shape":"roleDurationSecondsType"},
  144. "ExternalId":{"shape":"externalIdType"},
  145. "SerialNumber":{"shape":"serialNumberType"},
  146. "TokenCode":{"shape":"tokenCodeType"}
  147. }
  148. },
  149. "AssumeRoleResponse":{
  150. "type":"structure",
  151. "members":{
  152. "Credentials":{"shape":"Credentials"},
  153. "AssumedRoleUser":{"shape":"AssumedRoleUser"},
  154. "PackedPolicySize":{"shape":"nonNegativeIntegerType"}
  155. }
  156. },
  157. "AssumeRoleWithSAMLRequest":{
  158. "type":"structure",
  159. "required":[
  160. "RoleArn",
  161. "PrincipalArn",
  162. "SAMLAssertion"
  163. ],
  164. "members":{
  165. "RoleArn":{"shape":"arnType"},
  166. "PrincipalArn":{"shape":"arnType"},
  167. "SAMLAssertion":{"shape":"SAMLAssertionType"},
  168. "Policy":{"shape":"sessionPolicyDocumentType"},
  169. "DurationSeconds":{"shape":"roleDurationSecondsType"}
  170. }
  171. },
  172. "AssumeRoleWithSAMLResponse":{
  173. "type":"structure",
  174. "members":{
  175. "Credentials":{"shape":"Credentials"},
  176. "AssumedRoleUser":{"shape":"AssumedRoleUser"},
  177. "PackedPolicySize":{"shape":"nonNegativeIntegerType"},
  178. "Subject":{"shape":"Subject"},
  179. "SubjectType":{"shape":"SubjectType"},
  180. "Issuer":{"shape":"Issuer"},
  181. "Audience":{"shape":"Audience"},
  182. "NameQualifier":{"shape":"NameQualifier"}
  183. }
  184. },
  185. "AssumeRoleWithWebIdentityRequest":{
  186. "type":"structure",
  187. "required":[
  188. "RoleArn",
  189. "RoleSessionName",
  190. "WebIdentityToken"
  191. ],
  192. "members":{
  193. "RoleArn":{"shape":"arnType"},
  194. "RoleSessionName":{"shape":"roleSessionNameType"},
  195. "WebIdentityToken":{"shape":"clientTokenType"},
  196. "ProviderId":{"shape":"urlType"},
  197. "Policy":{"shape":"sessionPolicyDocumentType"},
  198. "DurationSeconds":{"shape":"roleDurationSecondsType"}
  199. }
  200. },
  201. "AssumeRoleWithWebIdentityResponse":{
  202. "type":"structure",
  203. "members":{
  204. "Credentials":{"shape":"Credentials"},
  205. "SubjectFromWebIdentityToken":{"shape":"webIdentitySubjectType"},
  206. "AssumedRoleUser":{"shape":"AssumedRoleUser"},
  207. "PackedPolicySize":{"shape":"nonNegativeIntegerType"},
  208. "Provider":{"shape":"Issuer"},
  209. "Audience":{"shape":"Audience"}
  210. }
  211. },
  212. "AssumedRoleUser":{
  213. "type":"structure",
  214. "required":[
  215. "AssumedRoleId",
  216. "Arn"
  217. ],
  218. "members":{
  219. "AssumedRoleId":{"shape":"assumedRoleIdType"},
  220. "Arn":{"shape":"arnType"}
  221. }
  222. },
  223. "Audience":{"type":"string"},
  224. "Credentials":{
  225. "type":"structure",
  226. "required":[
  227. "AccessKeyId",
  228. "SecretAccessKey",
  229. "SessionToken",
  230. "Expiration"
  231. ],
  232. "members":{
  233. "AccessKeyId":{"shape":"accessKeyIdType"},
  234. "SecretAccessKey":{"shape":"accessKeySecretType"},
  235. "SessionToken":{"shape":"tokenType"},
  236. "Expiration":{"shape":"dateType"}
  237. }
  238. },
  239. "DecodeAuthorizationMessageRequest":{
  240. "type":"structure",
  241. "required":["EncodedMessage"],
  242. "members":{
  243. "EncodedMessage":{"shape":"encodedMessageType"}
  244. }
  245. },
  246. "DecodeAuthorizationMessageResponse":{
  247. "type":"structure",
  248. "members":{
  249. "DecodedMessage":{"shape":"decodedMessageType"}
  250. }
  251. },
  252. "ExpiredTokenException":{
  253. "type":"structure",
  254. "members":{
  255. "message":{"shape":"expiredIdentityTokenMessage"}
  256. },
  257. "error":{
  258. "code":"ExpiredTokenException",
  259. "httpStatusCode":400,
  260. "senderFault":true
  261. },
  262. "exception":true
  263. },
  264. "FederatedUser":{
  265. "type":"structure",
  266. "required":[
  267. "FederatedUserId",
  268. "Arn"
  269. ],
  270. "members":{
  271. "FederatedUserId":{"shape":"federatedIdType"},
  272. "Arn":{"shape":"arnType"}
  273. }
  274. },
  275. "GetCallerIdentityRequest":{
  276. "type":"structure",
  277. "members":{
  278. }
  279. },
  280. "GetCallerIdentityResponse":{
  281. "type":"structure",
  282. "members":{
  283. "UserId":{"shape":"userIdType"},
  284. "Account":{"shape":"accountType"},
  285. "Arn":{"shape":"arnType"}
  286. }
  287. },
  288. "GetFederationTokenRequest":{
  289. "type":"structure",
  290. "required":["Name"],
  291. "members":{
  292. "Name":{"shape":"userNameType"},
  293. "Policy":{"shape":"sessionPolicyDocumentType"},
  294. "DurationSeconds":{"shape":"durationSecondsType"}
  295. }
  296. },
  297. "GetFederationTokenResponse":{
  298. "type":"structure",
  299. "members":{
  300. "Credentials":{"shape":"Credentials"},
  301. "FederatedUser":{"shape":"FederatedUser"},
  302. "PackedPolicySize":{"shape":"nonNegativeIntegerType"}
  303. }
  304. },
  305. "GetSessionTokenRequest":{
  306. "type":"structure",
  307. "members":{
  308. "DurationSeconds":{"shape":"durationSecondsType"},
  309. "SerialNumber":{"shape":"serialNumberType"},
  310. "TokenCode":{"shape":"tokenCodeType"}
  311. }
  312. },
  313. "GetSessionTokenResponse":{
  314. "type":"structure",
  315. "members":{
  316. "Credentials":{"shape":"Credentials"}
  317. }
  318. },
  319. "IDPCommunicationErrorException":{
  320. "type":"structure",
  321. "members":{
  322. "message":{"shape":"idpCommunicationErrorMessage"}
  323. },
  324. "error":{
  325. "code":"IDPCommunicationError",
  326. "httpStatusCode":400,
  327. "senderFault":true
  328. },
  329. "exception":true
  330. },
  331. "IDPRejectedClaimException":{
  332. "type":"structure",
  333. "members":{
  334. "message":{"shape":"idpRejectedClaimMessage"}
  335. },
  336. "error":{
  337. "code":"IDPRejectedClaim",
  338. "httpStatusCode":403,
  339. "senderFault":true
  340. },
  341. "exception":true
  342. },
  343. "InvalidAuthorizationMessageException":{
  344. "type":"structure",
  345. "members":{
  346. "message":{"shape":"invalidAuthorizationMessage"}
  347. },
  348. "error":{
  349. "code":"InvalidAuthorizationMessageException",
  350. "httpStatusCode":400,
  351. "senderFault":true
  352. },
  353. "exception":true
  354. },
  355. "InvalidIdentityTokenException":{
  356. "type":"structure",
  357. "members":{
  358. "message":{"shape":"invalidIdentityTokenMessage"}
  359. },
  360. "error":{
  361. "code":"InvalidIdentityToken",
  362. "httpStatusCode":400,
  363. "senderFault":true
  364. },
  365. "exception":true
  366. },
  367. "Issuer":{"type":"string"},
  368. "MalformedPolicyDocumentException":{
  369. "type":"structure",
  370. "members":{
  371. "message":{"shape":"malformedPolicyDocumentMessage"}
  372. },
  373. "error":{
  374. "code":"MalformedPolicyDocument",
  375. "httpStatusCode":400,
  376. "senderFault":true
  377. },
  378. "exception":true
  379. },
  380. "NameQualifier":{"type":"string"},
  381. "PackedPolicyTooLargeException":{
  382. "type":"structure",
  383. "members":{
  384. "message":{"shape":"packedPolicyTooLargeMessage"}
  385. },
  386. "error":{
  387. "code":"PackedPolicyTooLarge",
  388. "httpStatusCode":400,
  389. "senderFault":true
  390. },
  391. "exception":true
  392. },
  393. "RegionDisabledException":{
  394. "type":"structure",
  395. "members":{
  396. "message":{"shape":"regionDisabledMessage"}
  397. },
  398. "error":{
  399. "code":"RegionDisabledException",
  400. "httpStatusCode":403,
  401. "senderFault":true
  402. },
  403. "exception":true
  404. },
  405. "SAMLAssertionType":{
  406. "type":"string",
  407. "max":50000,
  408. "min":4
  409. },
  410. "Subject":{"type":"string"},
  411. "SubjectType":{"type":"string"},
  412. "accessKeyIdType":{
  413. "type":"string",
  414. "max":32,
  415. "min":16,
  416. "pattern":"[\\w]*"
  417. },
  418. "accessKeySecretType":{"type":"string"},
  419. "accountType":{"type":"string"},
  420. "arnType":{
  421. "type":"string",
  422. "max":2048,
  423. "min":20,
  424. "pattern":"[\\u0009\\u000A\\u000D\\u0020-\\u007E\\u0085\\u00A0-\\uD7FF\\uE000-\\uFFFD\\u10000-\\u10FFFF]+"
  425. },
  426. "assumedRoleIdType":{
  427. "type":"string",
  428. "max":96,
  429. "min":2,
  430. "pattern":"[\\w+=,.@:-]*"
  431. },
  432. "clientTokenType":{
  433. "type":"string",
  434. "max":2048,
  435. "min":4
  436. },
  437. "dateType":{"type":"timestamp"},
  438. "decodedMessageType":{"type":"string"},
  439. "durationSecondsType":{
  440. "type":"integer",
  441. "max":129600,
  442. "min":900
  443. },
  444. "encodedMessageType":{
  445. "type":"string",
  446. "max":10240,
  447. "min":1
  448. },
  449. "expiredIdentityTokenMessage":{"type":"string"},
  450. "externalIdType":{
  451. "type":"string",
  452. "max":1224,
  453. "min":2,
  454. "pattern":"[\\w+=,.@:\\/-]*"
  455. },
  456. "federatedIdType":{
  457. "type":"string",
  458. "max":96,
  459. "min":2,
  460. "pattern":"[\\w+=,.@\\:-]*"
  461. },
  462. "idpCommunicationErrorMessage":{"type":"string"},
  463. "idpRejectedClaimMessage":{"type":"string"},
  464. "invalidAuthorizationMessage":{"type":"string"},
  465. "invalidIdentityTokenMessage":{"type":"string"},
  466. "malformedPolicyDocumentMessage":{"type":"string"},
  467. "nonNegativeIntegerType":{
  468. "type":"integer",
  469. "min":0
  470. },
  471. "packedPolicyTooLargeMessage":{"type":"string"},
  472. "regionDisabledMessage":{"type":"string"},
  473. "roleDurationSecondsType":{
  474. "type":"integer",
  475. "max":3600,
  476. "min":900
  477. },
  478. "roleSessionNameType":{
  479. "type":"string",
  480. "max":64,
  481. "min":2,
  482. "pattern":"[\\w+=,.@-]*"
  483. },
  484. "serialNumberType":{
  485. "type":"string",
  486. "max":256,
  487. "min":9,
  488. "pattern":"[\\w+=/:,.@-]*"
  489. },
  490. "sessionPolicyDocumentType":{
  491. "type":"string",
  492. "max":2048,
  493. "min":1,
  494. "pattern":"[\\u0009\\u000A\\u000D\\u0020-\\u00FF]+"
  495. },
  496. "tokenCodeType":{
  497. "type":"string",
  498. "max":6,
  499. "min":6,
  500. "pattern":"[\\d]*"
  501. },
  502. "tokenType":{"type":"string"},
  503. "urlType":{
  504. "type":"string",
  505. "max":2048,
  506. "min":4
  507. },
  508. "userIdType":{"type":"string"},
  509. "userNameType":{
  510. "type":"string",
  511. "max":32,
  512. "min":2,
  513. "pattern":"[\\w+=,.@-]*"
  514. },
  515. "webIdentitySubjectType":{
  516. "type":"string",
  517. "max":255,
  518. "min":6
  519. }
  520. }
  521. }