/api/vendor/aws/aws-sdk-php/src/Aws/Sts/Resources/sts-2011-06-15.php

https://gitlab.com/x33n/respond · PHP · 657 lines · 642 code · 1 blank · 14 comment · 0 complexity · 14122bd2af140f8d04fa69e90f6d45e2 MD5 · raw file

  1. <?php
  2. /**
  3. * Copyright 2010-2013 Amazon.com, Inc. or its affiliates. All Rights Reserved.
  4. *
  5. * Licensed under the Apache License, Version 2.0 (the "License").
  6. * You may not use this file except in compliance with the License.
  7. * A copy of the License is located at
  8. *
  9. * http://aws.amazon.com/apache2.0
  10. *
  11. * or in the "license" file accompanying this file. This file is distributed
  12. * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
  13. * express or implied. See the License for the specific language governing
  14. * permissions and limitations under the License.
  15. */
  16. return array (
  17. 'apiVersion' => '2011-06-15',
  18. 'endpointPrefix' => 'sts',
  19. 'serviceFullName' => 'AWS Security Token Service',
  20. 'serviceAbbreviation' => 'AWS STS',
  21. 'serviceType' => 'query',
  22. 'globalEndpoint' => 'sts.amazonaws.com',
  23. 'resultWrapped' => true,
  24. 'signatureVersion' => 'v4',
  25. 'namespace' => 'Sts',
  26. 'regions' => array(
  27. 'us-east-1' => array(
  28. 'http' => false,
  29. 'https' => true,
  30. 'hostname' => 'sts.amazonaws.com',
  31. ),
  32. 'us-west-1' => array(
  33. 'http' => false,
  34. 'https' => true,
  35. 'hostname' => 'sts.amazonaws.com',
  36. ),
  37. 'us-west-2' => array(
  38. 'http' => false,
  39. 'https' => true,
  40. 'hostname' => 'sts.amazonaws.com',
  41. ),
  42. 'eu-west-1' => array(
  43. 'http' => false,
  44. 'https' => true,
  45. 'hostname' => 'sts.amazonaws.com',
  46. ),
  47. 'ap-northeast-1' => array(
  48. 'http' => false,
  49. 'https' => true,
  50. 'hostname' => 'sts.amazonaws.com',
  51. ),
  52. 'ap-southeast-1' => array(
  53. 'http' => false,
  54. 'https' => true,
  55. 'hostname' => 'sts.amazonaws.com',
  56. ),
  57. 'ap-southeast-2' => array(
  58. 'http' => false,
  59. 'https' => true,
  60. 'hostname' => 'sts.amazonaws.com',
  61. ),
  62. 'sa-east-1' => array(
  63. 'http' => false,
  64. 'https' => true,
  65. 'hostname' => 'sts.amazonaws.com',
  66. ),
  67. 'cn-north-1' => array(
  68. 'http' => false,
  69. 'https' => true,
  70. 'hostname' => 'sts.cn-north-1.amazonaws.com.cn',
  71. ),
  72. 'us-gov-west-1' => array(
  73. 'http' => false,
  74. 'https' => true,
  75. 'hostname' => 'sts.us-gov-west-1.amazonaws.com',
  76. ),
  77. ),
  78. 'operations' => array(
  79. 'AssumeRole' => array(
  80. 'httpMethod' => 'POST',
  81. 'uri' => '/',
  82. 'class' => 'Aws\\Common\\Command\\QueryCommand',
  83. 'responseClass' => 'AssumeRoleResponse',
  84. 'responseType' => 'model',
  85. 'parameters' => array(
  86. 'Action' => array(
  87. 'static' => true,
  88. 'location' => 'aws.query',
  89. 'default' => 'AssumeRole',
  90. ),
  91. 'Version' => array(
  92. 'static' => true,
  93. 'location' => 'aws.query',
  94. 'default' => '2011-06-15',
  95. ),
  96. 'RoleArn' => array(
  97. 'required' => true,
  98. 'type' => 'string',
  99. 'location' => 'aws.query',
  100. 'minLength' => 20,
  101. 'maxLength' => 2048,
  102. ),
  103. 'RoleSessionName' => array(
  104. 'required' => true,
  105. 'type' => 'string',
  106. 'location' => 'aws.query',
  107. 'minLength' => 2,
  108. 'maxLength' => 32,
  109. ),
  110. 'Policy' => array(
  111. 'type' => 'string',
  112. 'location' => 'aws.query',
  113. 'minLength' => 1,
  114. 'maxLength' => 2048,
  115. ),
  116. 'DurationSeconds' => array(
  117. 'type' => 'numeric',
  118. 'location' => 'aws.query',
  119. 'minimum' => 900,
  120. 'maximum' => 3600,
  121. ),
  122. 'ExternalId' => array(
  123. 'type' => 'string',
  124. 'location' => 'aws.query',
  125. 'minLength' => 2,
  126. 'maxLength' => 96,
  127. ),
  128. 'SerialNumber' => array(
  129. 'type' => 'string',
  130. 'location' => 'aws.query',
  131. 'minLength' => 9,
  132. 'maxLength' => 256,
  133. ),
  134. 'TokenCode' => array(
  135. 'type' => 'string',
  136. 'location' => 'aws.query',
  137. 'minLength' => 6,
  138. 'maxLength' => 6,
  139. ),
  140. ),
  141. 'errorResponses' => array(
  142. array(
  143. 'reason' => 'The request was rejected because the policy document was malformed. The error message describes the specific error.',
  144. 'class' => 'MalformedPolicyDocumentException',
  145. ),
  146. array(
  147. 'reason' => 'The request was rejected because the policy document was too large. The error message describes how big the policy document is, in packed form, as a percentage of what the API allows.',
  148. 'class' => 'PackedPolicyTooLargeException',
  149. ),
  150. ),
  151. ),
  152. 'AssumeRoleWithSAML' => array(
  153. 'httpMethod' => 'POST',
  154. 'uri' => '/',
  155. 'class' => 'Aws\\Common\\Command\\QueryCommand',
  156. 'responseClass' => 'AssumeRoleWithSAMLResponse',
  157. 'responseType' => 'model',
  158. 'parameters' => array(
  159. 'Action' => array(
  160. 'static' => true,
  161. 'location' => 'aws.query',
  162. 'default' => 'AssumeRoleWithSAML',
  163. ),
  164. 'Version' => array(
  165. 'static' => true,
  166. 'location' => 'aws.query',
  167. 'default' => '2011-06-15',
  168. ),
  169. 'RoleArn' => array(
  170. 'required' => true,
  171. 'type' => 'string',
  172. 'location' => 'aws.query',
  173. 'minLength' => 20,
  174. 'maxLength' => 2048,
  175. ),
  176. 'PrincipalArn' => array(
  177. 'required' => true,
  178. 'type' => 'string',
  179. 'location' => 'aws.query',
  180. 'minLength' => 20,
  181. 'maxLength' => 2048,
  182. ),
  183. 'SAMLAssertion' => array(
  184. 'required' => true,
  185. 'type' => 'string',
  186. 'location' => 'aws.query',
  187. 'minLength' => 4,
  188. 'maxLength' => 50000,
  189. ),
  190. 'Policy' => array(
  191. 'type' => 'string',
  192. 'location' => 'aws.query',
  193. 'minLength' => 1,
  194. 'maxLength' => 2048,
  195. ),
  196. 'DurationSeconds' => array(
  197. 'type' => 'numeric',
  198. 'location' => 'aws.query',
  199. 'minimum' => 900,
  200. 'maximum' => 129600,
  201. ),
  202. ),
  203. 'errorResponses' => array(
  204. array(
  205. 'reason' => 'The request was rejected because the policy document was malformed. The error message describes the specific error.',
  206. 'class' => 'MalformedPolicyDocumentException',
  207. ),
  208. array(
  209. 'reason' => 'The request was rejected because the policy document was too large. The error message describes how big the policy document is, in packed form, as a percentage of what the API allows.',
  210. 'class' => 'PackedPolicyTooLargeException',
  211. ),
  212. array(
  213. 'reason' => 'The identity provider (IdP) reported that authentication failed. This might be because the claim is invalid. If this error is returned for the AssumeRoleWithWebIdentity operation, it can also mean that the claim has expired or has been explicitly revoked.',
  214. 'class' => 'IDPRejectedClaimException',
  215. ),
  216. array(
  217. 'reason' => 'The web identity token that was passed could not be validated by AWS. Get a new identity token from the identity provider and then retry the request.',
  218. 'class' => 'InvalidIdentityTokenException',
  219. ),
  220. array(
  221. 'reason' => 'The web identity token that was passed is expired or is not valid. Get a new identity token from the identity provider and then retry the request.',
  222. 'class' => 'ExpiredTokenException',
  223. ),
  224. ),
  225. ),
  226. 'AssumeRoleWithWebIdentity' => array(
  227. 'httpMethod' => 'POST',
  228. 'uri' => '/',
  229. 'class' => 'Aws\\Common\\Command\\QueryCommand',
  230. 'responseClass' => 'AssumeRoleWithWebIdentityResponse',
  231. 'responseType' => 'model',
  232. 'parameters' => array(
  233. 'Action' => array(
  234. 'static' => true,
  235. 'location' => 'aws.query',
  236. 'default' => 'AssumeRoleWithWebIdentity',
  237. ),
  238. 'Version' => array(
  239. 'static' => true,
  240. 'location' => 'aws.query',
  241. 'default' => '2011-06-15',
  242. ),
  243. 'RoleArn' => array(
  244. 'required' => true,
  245. 'type' => 'string',
  246. 'location' => 'aws.query',
  247. 'minLength' => 20,
  248. 'maxLength' => 2048,
  249. ),
  250. 'RoleSessionName' => array(
  251. 'required' => true,
  252. 'type' => 'string',
  253. 'location' => 'aws.query',
  254. 'minLength' => 2,
  255. 'maxLength' => 32,
  256. ),
  257. 'WebIdentityToken' => array(
  258. 'required' => true,
  259. 'type' => 'string',
  260. 'location' => 'aws.query',
  261. 'minLength' => 4,
  262. 'maxLength' => 2048,
  263. ),
  264. 'ProviderId' => array(
  265. 'type' => 'string',
  266. 'location' => 'aws.query',
  267. 'minLength' => 4,
  268. 'maxLength' => 2048,
  269. ),
  270. 'Policy' => array(
  271. 'type' => 'string',
  272. 'location' => 'aws.query',
  273. 'minLength' => 1,
  274. 'maxLength' => 2048,
  275. ),
  276. 'DurationSeconds' => array(
  277. 'type' => 'numeric',
  278. 'location' => 'aws.query',
  279. 'minimum' => 900,
  280. 'maximum' => 129600,
  281. ),
  282. ),
  283. 'errorResponses' => array(
  284. array(
  285. 'reason' => 'The request was rejected because the policy document was malformed. The error message describes the specific error.',
  286. 'class' => 'MalformedPolicyDocumentException',
  287. ),
  288. array(
  289. 'reason' => 'The request was rejected because the policy document was too large. The error message describes how big the policy document is, in packed form, as a percentage of what the API allows.',
  290. 'class' => 'PackedPolicyTooLargeException',
  291. ),
  292. array(
  293. 'reason' => 'The identity provider (IdP) reported that authentication failed. This might be because the claim is invalid. If this error is returned for the AssumeRoleWithWebIdentity operation, it can also mean that the claim has expired or has been explicitly revoked.',
  294. 'class' => 'IDPRejectedClaimException',
  295. ),
  296. array(
  297. 'reason' => 'The request could not be fulfilled because the non-AWS identity provider (IDP) that was asked to verify the incoming identity token could not be reached. This is often a transient error caused by network conditions. Retry the request a limited number of times so that you don\'t exceed the request rate. If the error persists, the non-AWS identity provider might be down or not responding.',
  298. 'class' => 'IDPCommunicationErrorException',
  299. ),
  300. array(
  301. 'reason' => 'The web identity token that was passed could not be validated by AWS. Get a new identity token from the identity provider and then retry the request.',
  302. 'class' => 'InvalidIdentityTokenException',
  303. ),
  304. array(
  305. 'reason' => 'The web identity token that was passed is expired or is not valid. Get a new identity token from the identity provider and then retry the request.',
  306. 'class' => 'ExpiredTokenException',
  307. ),
  308. ),
  309. ),
  310. 'DecodeAuthorizationMessage' => array(
  311. 'httpMethod' => 'POST',
  312. 'uri' => '/',
  313. 'class' => 'Aws\\Common\\Command\\QueryCommand',
  314. 'responseClass' => 'DecodeAuthorizationMessageResponse',
  315. 'responseType' => 'model',
  316. 'parameters' => array(
  317. 'Action' => array(
  318. 'static' => true,
  319. 'location' => 'aws.query',
  320. 'default' => 'DecodeAuthorizationMessage',
  321. ),
  322. 'Version' => array(
  323. 'static' => true,
  324. 'location' => 'aws.query',
  325. 'default' => '2011-06-15',
  326. ),
  327. 'EncodedMessage' => array(
  328. 'required' => true,
  329. 'type' => 'string',
  330. 'location' => 'aws.query',
  331. 'minLength' => 1,
  332. 'maxLength' => 10240,
  333. ),
  334. ),
  335. 'errorResponses' => array(
  336. array(
  337. 'reason' => 'The error returned if the message passed to DecodeAuthorizationMessage was invalid. This can happen if the token contains invalid characters, such as linebreaks.',
  338. 'class' => 'InvalidAuthorizationMessageException',
  339. ),
  340. ),
  341. ),
  342. 'GetFederationToken' => array(
  343. 'httpMethod' => 'POST',
  344. 'uri' => '/',
  345. 'class' => 'Aws\\Common\\Command\\QueryCommand',
  346. 'responseClass' => 'GetFederationTokenResponse',
  347. 'responseType' => 'model',
  348. 'parameters' => array(
  349. 'Action' => array(
  350. 'static' => true,
  351. 'location' => 'aws.query',
  352. 'default' => 'GetFederationToken',
  353. ),
  354. 'Version' => array(
  355. 'static' => true,
  356. 'location' => 'aws.query',
  357. 'default' => '2011-06-15',
  358. ),
  359. 'Name' => array(
  360. 'required' => true,
  361. 'type' => 'string',
  362. 'location' => 'aws.query',
  363. 'minLength' => 2,
  364. 'maxLength' => 32,
  365. ),
  366. 'Policy' => array(
  367. 'type' => 'string',
  368. 'location' => 'aws.query',
  369. 'minLength' => 1,
  370. 'maxLength' => 2048,
  371. ),
  372. 'DurationSeconds' => array(
  373. 'type' => 'numeric',
  374. 'location' => 'aws.query',
  375. 'minimum' => 900,
  376. 'maximum' => 129600,
  377. ),
  378. ),
  379. 'errorResponses' => array(
  380. array(
  381. 'reason' => 'The request was rejected because the policy document was malformed. The error message describes the specific error.',
  382. 'class' => 'MalformedPolicyDocumentException',
  383. ),
  384. array(
  385. 'reason' => 'The request was rejected because the policy document was too large. The error message describes how big the policy document is, in packed form, as a percentage of what the API allows.',
  386. 'class' => 'PackedPolicyTooLargeException',
  387. ),
  388. ),
  389. ),
  390. 'GetSessionToken' => array(
  391. 'httpMethod' => 'POST',
  392. 'uri' => '/',
  393. 'class' => 'Aws\\Common\\Command\\QueryCommand',
  394. 'responseClass' => 'GetSessionTokenResponse',
  395. 'responseType' => 'model',
  396. 'parameters' => array(
  397. 'Action' => array(
  398. 'static' => true,
  399. 'location' => 'aws.query',
  400. 'default' => 'GetSessionToken',
  401. ),
  402. 'Version' => array(
  403. 'static' => true,
  404. 'location' => 'aws.query',
  405. 'default' => '2011-06-15',
  406. ),
  407. 'DurationSeconds' => array(
  408. 'type' => 'numeric',
  409. 'location' => 'aws.query',
  410. 'minimum' => 900,
  411. 'maximum' => 129600,
  412. ),
  413. 'SerialNumber' => array(
  414. 'type' => 'string',
  415. 'location' => 'aws.query',
  416. 'minLength' => 9,
  417. 'maxLength' => 256,
  418. ),
  419. 'TokenCode' => array(
  420. 'type' => 'string',
  421. 'location' => 'aws.query',
  422. 'minLength' => 6,
  423. 'maxLength' => 6,
  424. ),
  425. ),
  426. ),
  427. ),
  428. 'models' => array(
  429. 'AssumeRoleResponse' => array(
  430. 'type' => 'object',
  431. 'additionalProperties' => true,
  432. 'properties' => array(
  433. 'Credentials' => array(
  434. 'type' => 'object',
  435. 'location' => 'xml',
  436. 'properties' => array(
  437. 'AccessKeyId' => array(
  438. 'type' => 'string',
  439. ),
  440. 'SecretAccessKey' => array(
  441. 'type' => 'string',
  442. ),
  443. 'SessionToken' => array(
  444. 'type' => 'string',
  445. ),
  446. 'Expiration' => array(
  447. 'type' => 'string',
  448. ),
  449. ),
  450. ),
  451. 'AssumedRoleUser' => array(
  452. 'type' => 'object',
  453. 'location' => 'xml',
  454. 'properties' => array(
  455. 'AssumedRoleId' => array(
  456. 'type' => 'string',
  457. ),
  458. 'Arn' => array(
  459. 'type' => 'string',
  460. ),
  461. ),
  462. ),
  463. 'PackedPolicySize' => array(
  464. 'type' => 'numeric',
  465. 'location' => 'xml',
  466. ),
  467. ),
  468. ),
  469. 'AssumeRoleWithSAMLResponse' => array(
  470. 'type' => 'object',
  471. 'additionalProperties' => true,
  472. 'properties' => array(
  473. 'Credentials' => array(
  474. 'type' => 'object',
  475. 'location' => 'xml',
  476. 'properties' => array(
  477. 'AccessKeyId' => array(
  478. 'type' => 'string',
  479. ),
  480. 'SecretAccessKey' => array(
  481. 'type' => 'string',
  482. ),
  483. 'SessionToken' => array(
  484. 'type' => 'string',
  485. ),
  486. 'Expiration' => array(
  487. 'type' => 'string',
  488. ),
  489. ),
  490. ),
  491. 'AssumedRoleUser' => array(
  492. 'type' => 'object',
  493. 'location' => 'xml',
  494. 'properties' => array(
  495. 'AssumedRoleId' => array(
  496. 'type' => 'string',
  497. ),
  498. 'Arn' => array(
  499. 'type' => 'string',
  500. ),
  501. ),
  502. ),
  503. 'PackedPolicySize' => array(
  504. 'type' => 'numeric',
  505. 'location' => 'xml',
  506. ),
  507. 'Subject' => array(
  508. 'type' => 'string',
  509. 'location' => 'xml',
  510. ),
  511. 'SubjectType' => array(
  512. 'type' => 'string',
  513. 'location' => 'xml',
  514. ),
  515. 'Issuer' => array(
  516. 'type' => 'string',
  517. 'location' => 'xml',
  518. ),
  519. 'Audience' => array(
  520. 'type' => 'string',
  521. 'location' => 'xml',
  522. ),
  523. 'NameQualifier' => array(
  524. 'type' => 'string',
  525. 'location' => 'xml',
  526. ),
  527. ),
  528. ),
  529. 'AssumeRoleWithWebIdentityResponse' => array(
  530. 'type' => 'object',
  531. 'additionalProperties' => true,
  532. 'properties' => array(
  533. 'Credentials' => array(
  534. 'type' => 'object',
  535. 'location' => 'xml',
  536. 'properties' => array(
  537. 'AccessKeyId' => array(
  538. 'type' => 'string',
  539. ),
  540. 'SecretAccessKey' => array(
  541. 'type' => 'string',
  542. ),
  543. 'SessionToken' => array(
  544. 'type' => 'string',
  545. ),
  546. 'Expiration' => array(
  547. 'type' => 'string',
  548. ),
  549. ),
  550. ),
  551. 'SubjectFromWebIdentityToken' => array(
  552. 'type' => 'string',
  553. 'location' => 'xml',
  554. ),
  555. 'AssumedRoleUser' => array(
  556. 'type' => 'object',
  557. 'location' => 'xml',
  558. 'properties' => array(
  559. 'AssumedRoleId' => array(
  560. 'type' => 'string',
  561. ),
  562. 'Arn' => array(
  563. 'type' => 'string',
  564. ),
  565. ),
  566. ),
  567. 'PackedPolicySize' => array(
  568. 'type' => 'numeric',
  569. 'location' => 'xml',
  570. ),
  571. 'Provider' => array(
  572. 'type' => 'string',
  573. 'location' => 'xml',
  574. ),
  575. 'Audience' => array(
  576. 'type' => 'string',
  577. 'location' => 'xml',
  578. ),
  579. ),
  580. ),
  581. 'DecodeAuthorizationMessageResponse' => array(
  582. 'type' => 'object',
  583. 'additionalProperties' => true,
  584. 'properties' => array(
  585. 'DecodedMessage' => array(
  586. 'type' => 'string',
  587. 'location' => 'xml',
  588. ),
  589. ),
  590. ),
  591. 'GetFederationTokenResponse' => array(
  592. 'type' => 'object',
  593. 'additionalProperties' => true,
  594. 'properties' => array(
  595. 'Credentials' => array(
  596. 'type' => 'object',
  597. 'location' => 'xml',
  598. 'properties' => array(
  599. 'AccessKeyId' => array(
  600. 'type' => 'string',
  601. ),
  602. 'SecretAccessKey' => array(
  603. 'type' => 'string',
  604. ),
  605. 'SessionToken' => array(
  606. 'type' => 'string',
  607. ),
  608. 'Expiration' => array(
  609. 'type' => 'string',
  610. ),
  611. ),
  612. ),
  613. 'FederatedUser' => array(
  614. 'type' => 'object',
  615. 'location' => 'xml',
  616. 'properties' => array(
  617. 'FederatedUserId' => array(
  618. 'type' => 'string',
  619. ),
  620. 'Arn' => array(
  621. 'type' => 'string',
  622. ),
  623. ),
  624. ),
  625. 'PackedPolicySize' => array(
  626. 'type' => 'numeric',
  627. 'location' => 'xml',
  628. ),
  629. ),
  630. ),
  631. 'GetSessionTokenResponse' => array(
  632. 'type' => 'object',
  633. 'additionalProperties' => true,
  634. 'properties' => array(
  635. 'Credentials' => array(
  636. 'type' => 'object',
  637. 'location' => 'xml',
  638. 'properties' => array(
  639. 'AccessKeyId' => array(
  640. 'type' => 'string',
  641. ),
  642. 'SecretAccessKey' => array(
  643. 'type' => 'string',
  644. ),
  645. 'SessionToken' => array(
  646. 'type' => 'string',
  647. ),
  648. 'Expiration' => array(
  649. 'type' => 'string',
  650. ),
  651. ),
  652. ),
  653. ),
  654. ),
  655. ),
  656. );