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