/api/vendor/aws/aws-sdk-php/src/Aws/Kms/Resources/kms-2014-11-01.php

https://gitlab.com/x33n/respond · PHP · 1198 lines · 1183 code · 1 blank · 14 comment · 0 complexity · 673a54a29812ce02ae00f538bfc5a889 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' => '2014-11-01',
  18. 'endpointPrefix' => 'kms',
  19. 'serviceFullName' => 'AWS Key Management Service',
  20. 'serviceAbbreviation' => 'KMS',
  21. 'serviceType' => 'json',
  22. 'jsonVersion' => '1.1',
  23. 'targetPrefix' => 'TrentService.',
  24. 'signatureVersion' => 'v4',
  25. 'namespace' => 'Kms',
  26. 'operations' => array(
  27. 'CreateAlias' => array(
  28. 'httpMethod' => 'POST',
  29. 'uri' => '/',
  30. 'class' => 'Aws\\Common\\Command\\JsonCommand',
  31. 'responseClass' => 'EmptyOutput',
  32. 'responseType' => 'model',
  33. 'parameters' => array(
  34. 'Content-Type' => array(
  35. 'static' => true,
  36. 'location' => 'header',
  37. 'default' => 'application/x-amz-json-1.1',
  38. ),
  39. 'command.expects' => array(
  40. 'static' => true,
  41. 'default' => 'application/json',
  42. ),
  43. 'X-Amz-Target' => array(
  44. 'static' => true,
  45. 'location' => 'header',
  46. 'default' => 'TrentService.CreateAlias',
  47. ),
  48. 'AliasName' => array(
  49. 'required' => true,
  50. 'type' => 'string',
  51. 'location' => 'json',
  52. 'minLength' => 1,
  53. 'maxLength' => 256,
  54. ),
  55. 'TargetKeyId' => array(
  56. 'required' => true,
  57. 'type' => 'string',
  58. 'location' => 'json',
  59. 'minLength' => 1,
  60. 'maxLength' => 256,
  61. ),
  62. ),
  63. 'errorResponses' => array(
  64. array(
  65. 'reason' => 'The system timed out while trying to fulfill the request.',
  66. 'class' => 'DependencyTimeoutException',
  67. ),
  68. array(
  69. 'reason' => 'The request was rejected because it attempted to create a resource that already exists.',
  70. 'class' => 'AlreadyExistsException',
  71. ),
  72. array(
  73. 'reason' => 'The request was rejected because the specified entity or resource could not be found.',
  74. 'class' => 'NotFoundException',
  75. ),
  76. array(
  77. 'reason' => 'The request was rejected because the specified alias name is not valid.',
  78. 'class' => 'InvalidAliasNameException',
  79. ),
  80. array(
  81. 'reason' => 'The request was rejected because an internal exception occurred. This error can be retried.',
  82. 'class' => 'KMSInternalException',
  83. ),
  84. array(
  85. 'reason' => 'The request was rejected because a quota was exceeded.',
  86. 'class' => 'LimitExceededException',
  87. ),
  88. ),
  89. ),
  90. 'CreateGrant' => array(
  91. 'httpMethod' => 'POST',
  92. 'uri' => '/',
  93. 'class' => 'Aws\\Common\\Command\\JsonCommand',
  94. 'responseClass' => 'CreateGrantResponse',
  95. 'responseType' => 'model',
  96. 'parameters' => array(
  97. 'Content-Type' => array(
  98. 'static' => true,
  99. 'location' => 'header',
  100. 'default' => 'application/x-amz-json-1.1',
  101. ),
  102. 'command.expects' => array(
  103. 'static' => true,
  104. 'default' => 'application/json',
  105. ),
  106. 'X-Amz-Target' => array(
  107. 'static' => true,
  108. 'location' => 'header',
  109. 'default' => 'TrentService.CreateGrant',
  110. ),
  111. 'KeyId' => array(
  112. 'required' => true,
  113. 'type' => 'string',
  114. 'location' => 'json',
  115. 'minLength' => 1,
  116. 'maxLength' => 256,
  117. ),
  118. 'GranteePrincipal' => array(
  119. 'required' => true,
  120. 'type' => 'string',
  121. 'location' => 'json',
  122. 'minLength' => 1,
  123. 'maxLength' => 256,
  124. ),
  125. 'RetiringPrincipal' => array(
  126. 'type' => 'string',
  127. 'location' => 'json',
  128. 'minLength' => 1,
  129. 'maxLength' => 256,
  130. ),
  131. 'Operations' => array(
  132. 'type' => 'array',
  133. 'location' => 'json',
  134. 'items' => array(
  135. 'name' => 'GrantOperation',
  136. 'type' => 'string',
  137. ),
  138. ),
  139. 'Constraints' => array(
  140. 'type' => 'object',
  141. 'location' => 'json',
  142. 'properties' => array(
  143. 'EncryptionContextSubset' => array(
  144. 'type' => 'object',
  145. 'additionalProperties' => array(
  146. 'type' => 'string',
  147. 'data' => array(
  148. 'shape_name' => 'EncryptionContextKey',
  149. ),
  150. ),
  151. ),
  152. 'EncryptionContextEquals' => array(
  153. 'type' => 'object',
  154. 'additionalProperties' => array(
  155. 'type' => 'string',
  156. 'data' => array(
  157. 'shape_name' => 'EncryptionContextKey',
  158. ),
  159. ),
  160. ),
  161. ),
  162. ),
  163. 'GrantTokens' => array(
  164. 'type' => 'array',
  165. 'location' => 'json',
  166. 'maxItems' => 10,
  167. 'items' => array(
  168. 'name' => 'GrantTokenType',
  169. 'type' => 'string',
  170. 'minLength' => 1,
  171. 'maxLength' => 8192,
  172. ),
  173. ),
  174. ),
  175. 'errorResponses' => array(
  176. array(
  177. 'reason' => 'The request was rejected because the specified entity or resource could not be found.',
  178. 'class' => 'NotFoundException',
  179. ),
  180. array(
  181. 'reason' => 'A request was rejected because the specified key was marked as disabled.',
  182. 'class' => 'DisabledException',
  183. ),
  184. array(
  185. 'reason' => 'The system timed out while trying to fulfill the request.',
  186. 'class' => 'DependencyTimeoutException',
  187. ),
  188. array(
  189. 'reason' => 'The request was rejected because a specified ARN was not valid.',
  190. 'class' => 'InvalidArnException',
  191. ),
  192. array(
  193. 'reason' => 'The request was rejected because an internal exception occurred. This error can be retried.',
  194. 'class' => 'KMSInternalException',
  195. ),
  196. array(
  197. 'reason' => 'A grant token provided as part of the request is invalid.',
  198. 'class' => 'InvalidGrantTokenException',
  199. ),
  200. array(
  201. 'reason' => 'The request was rejected because a quota was exceeded.',
  202. 'class' => 'LimitExceededException',
  203. ),
  204. ),
  205. ),
  206. 'CreateKey' => array(
  207. 'httpMethod' => 'POST',
  208. 'uri' => '/',
  209. 'class' => 'Aws\\Common\\Command\\JsonCommand',
  210. 'responseClass' => 'CreateKeyResponse',
  211. 'responseType' => 'model',
  212. 'parameters' => array(
  213. 'Content-Type' => array(
  214. 'static' => true,
  215. 'location' => 'header',
  216. 'default' => 'application/x-amz-json-1.1',
  217. ),
  218. 'command.expects' => array(
  219. 'static' => true,
  220. 'default' => 'application/json',
  221. ),
  222. 'X-Amz-Target' => array(
  223. 'static' => true,
  224. 'location' => 'header',
  225. 'default' => 'TrentService.CreateKey',
  226. ),
  227. 'Policy' => array(
  228. 'type' => 'string',
  229. 'location' => 'json',
  230. 'minLength' => 1,
  231. 'maxLength' => 131072,
  232. ),
  233. 'Description' => array(
  234. 'type' => 'string',
  235. 'location' => 'json',
  236. 'maxLength' => 8192,
  237. ),
  238. 'KeyUsage' => array(
  239. 'type' => 'string',
  240. 'location' => 'json',
  241. ),
  242. ),
  243. 'errorResponses' => array(
  244. array(
  245. 'reason' => 'The request was rejected because the specified policy is not syntactically or semantically correct.',
  246. 'class' => 'MalformedPolicyDocumentException',
  247. ),
  248. array(
  249. 'reason' => 'The system timed out while trying to fulfill the request.',
  250. 'class' => 'DependencyTimeoutException',
  251. ),
  252. array(
  253. 'reason' => 'The request was rejected because a specified ARN was not valid.',
  254. 'class' => 'InvalidArnException',
  255. ),
  256. array(
  257. 'reason' => 'The request was rejected because a specified parameter is not supported.',
  258. 'class' => 'UnsupportedOperationException',
  259. ),
  260. array(
  261. 'reason' => 'The request was rejected because an internal exception occurred. This error can be retried.',
  262. 'class' => 'KMSInternalException',
  263. ),
  264. array(
  265. 'reason' => 'The request was rejected because a quota was exceeded.',
  266. 'class' => 'LimitExceededException',
  267. ),
  268. ),
  269. ),
  270. 'Decrypt' => array(
  271. 'httpMethod' => 'POST',
  272. 'uri' => '/',
  273. 'class' => 'Aws\\Common\\Command\\JsonCommand',
  274. 'responseClass' => 'DecryptResponse',
  275. 'responseType' => 'model',
  276. 'parameters' => array(
  277. 'Content-Type' => array(
  278. 'static' => true,
  279. 'location' => 'header',
  280. 'default' => 'application/x-amz-json-1.1',
  281. ),
  282. 'command.expects' => array(
  283. 'static' => true,
  284. 'default' => 'application/json',
  285. ),
  286. 'X-Amz-Target' => array(
  287. 'static' => true,
  288. 'location' => 'header',
  289. 'default' => 'TrentService.Decrypt',
  290. ),
  291. 'CiphertextBlob' => array(
  292. 'required' => true,
  293. 'type' => 'string',
  294. 'location' => 'json',
  295. 'filters' => array(
  296. 'base64_encode',
  297. ),
  298. ),
  299. 'EncryptionContext' => array(
  300. 'type' => 'object',
  301. 'location' => 'json',
  302. 'additionalProperties' => array(
  303. 'type' => 'string',
  304. 'data' => array(
  305. 'shape_name' => 'EncryptionContextKey',
  306. ),
  307. ),
  308. ),
  309. 'GrantTokens' => array(
  310. 'type' => 'array',
  311. 'location' => 'json',
  312. 'maxItems' => 10,
  313. 'items' => array(
  314. 'name' => 'GrantTokenType',
  315. 'type' => 'string',
  316. 'minLength' => 1,
  317. 'maxLength' => 8192,
  318. ),
  319. ),
  320. ),
  321. 'errorResponses' => array(
  322. array(
  323. 'reason' => 'The request was rejected because the specified entity or resource could not be found.',
  324. 'class' => 'NotFoundException',
  325. ),
  326. array(
  327. 'reason' => 'A request was rejected because the specified key was marked as disabled.',
  328. 'class' => 'DisabledException',
  329. ),
  330. array(
  331. 'reason' => 'The request was rejected because the specified ciphertext has been corrupted or is otherwise invalid.',
  332. 'class' => 'InvalidCiphertextException',
  333. ),
  334. array(
  335. 'reason' => 'The request was rejected because the key was disabled, not found, or otherwise not available.',
  336. 'class' => 'KeyUnavailableException',
  337. ),
  338. array(
  339. 'reason' => 'The system timed out while trying to fulfill the request.',
  340. 'class' => 'DependencyTimeoutException',
  341. ),
  342. array(
  343. 'reason' => 'A grant token provided as part of the request is invalid.',
  344. 'class' => 'InvalidGrantTokenException',
  345. ),
  346. array(
  347. 'reason' => 'The request was rejected because an internal exception occurred. This error can be retried.',
  348. 'class' => 'KMSInternalException',
  349. ),
  350. ),
  351. ),
  352. 'DeleteAlias' => array(
  353. 'httpMethod' => 'POST',
  354. 'uri' => '/',
  355. 'class' => 'Aws\\Common\\Command\\JsonCommand',
  356. 'responseClass' => 'EmptyOutput',
  357. 'responseType' => 'model',
  358. 'parameters' => array(
  359. 'Content-Type' => array(
  360. 'static' => true,
  361. 'location' => 'header',
  362. 'default' => 'application/x-amz-json-1.1',
  363. ),
  364. 'command.expects' => array(
  365. 'static' => true,
  366. 'default' => 'application/json',
  367. ),
  368. 'X-Amz-Target' => array(
  369. 'static' => true,
  370. 'location' => 'header',
  371. 'default' => 'TrentService.DeleteAlias',
  372. ),
  373. 'AliasName' => array(
  374. 'required' => true,
  375. 'type' => 'string',
  376. 'location' => 'json',
  377. 'minLength' => 1,
  378. 'maxLength' => 256,
  379. ),
  380. ),
  381. 'errorResponses' => array(
  382. array(
  383. 'reason' => 'The system timed out while trying to fulfill the request.',
  384. 'class' => 'DependencyTimeoutException',
  385. ),
  386. array(
  387. 'reason' => 'The request was rejected because the specified entity or resource could not be found.',
  388. 'class' => 'NotFoundException',
  389. ),
  390. array(
  391. 'reason' => 'The request was rejected because an internal exception occurred. This error can be retried.',
  392. 'class' => 'KMSInternalException',
  393. ),
  394. ),
  395. ),
  396. 'DescribeKey' => array(
  397. 'httpMethod' => 'POST',
  398. 'uri' => '/',
  399. 'class' => 'Aws\\Common\\Command\\JsonCommand',
  400. 'responseClass' => 'DescribeKeyResponse',
  401. 'responseType' => 'model',
  402. 'parameters' => array(
  403. 'Content-Type' => array(
  404. 'static' => true,
  405. 'location' => 'header',
  406. 'default' => 'application/x-amz-json-1.1',
  407. ),
  408. 'command.expects' => array(
  409. 'static' => true,
  410. 'default' => 'application/json',
  411. ),
  412. 'X-Amz-Target' => array(
  413. 'static' => true,
  414. 'location' => 'header',
  415. 'default' => 'TrentService.DescribeKey',
  416. ),
  417. 'KeyId' => array(
  418. 'required' => true,
  419. 'type' => 'string',
  420. 'location' => 'json',
  421. 'minLength' => 1,
  422. 'maxLength' => 256,
  423. ),
  424. ),
  425. 'errorResponses' => array(
  426. array(
  427. 'reason' => 'The request was rejected because the specified entity or resource could not be found.',
  428. 'class' => 'NotFoundException',
  429. ),
  430. array(
  431. 'reason' => 'The request was rejected because a specified ARN was not valid.',
  432. 'class' => 'InvalidArnException',
  433. ),
  434. array(
  435. 'reason' => 'The system timed out while trying to fulfill the request.',
  436. 'class' => 'DependencyTimeoutException',
  437. ),
  438. array(
  439. 'reason' => 'The request was rejected because an internal exception occurred. This error can be retried.',
  440. 'class' => 'KMSInternalException',
  441. ),
  442. ),
  443. ),
  444. 'DisableKey' => array(
  445. 'httpMethod' => 'POST',
  446. 'uri' => '/',
  447. 'class' => 'Aws\\Common\\Command\\JsonCommand',
  448. 'responseClass' => 'EmptyOutput',
  449. 'responseType' => 'model',
  450. 'parameters' => array(
  451. 'Content-Type' => array(
  452. 'static' => true,
  453. 'location' => 'header',
  454. 'default' => 'application/x-amz-json-1.1',
  455. ),
  456. 'command.expects' => array(
  457. 'static' => true,
  458. 'default' => 'application/json',
  459. ),
  460. 'X-Amz-Target' => array(
  461. 'static' => true,
  462. 'location' => 'header',
  463. 'default' => 'TrentService.DisableKey',
  464. ),
  465. 'KeyId' => array(
  466. 'required' => true,
  467. 'type' => 'string',
  468. 'location' => 'json',
  469. 'minLength' => 1,
  470. 'maxLength' => 256,
  471. ),
  472. ),
  473. 'errorResponses' => array(
  474. array(
  475. 'reason' => 'The request was rejected because the specified entity or resource could not be found.',
  476. 'class' => 'NotFoundException',
  477. ),
  478. array(
  479. 'reason' => 'The request was rejected because a specified ARN was not valid.',
  480. 'class' => 'InvalidArnException',
  481. ),
  482. array(
  483. 'reason' => 'The system timed out while trying to fulfill the request.',
  484. 'class' => 'DependencyTimeoutException',
  485. ),
  486. array(
  487. 'reason' => 'The request was rejected because an internal exception occurred. This error can be retried.',
  488. 'class' => 'KMSInternalException',
  489. ),
  490. ),
  491. ),
  492. 'DisableKeyRotation' => array(
  493. 'httpMethod' => 'POST',
  494. 'uri' => '/',
  495. 'class' => 'Aws\\Common\\Command\\JsonCommand',
  496. 'responseClass' => 'EmptyOutput',
  497. 'responseType' => 'model',
  498. 'parameters' => array(
  499. 'Content-Type' => array(
  500. 'static' => true,
  501. 'location' => 'header',
  502. 'default' => 'application/x-amz-json-1.1',
  503. ),
  504. 'command.expects' => array(
  505. 'static' => true,
  506. 'default' => 'application/json',
  507. ),
  508. 'X-Amz-Target' => array(
  509. 'static' => true,
  510. 'location' => 'header',
  511. 'default' => 'TrentService.DisableKeyRotation',
  512. ),
  513. 'KeyId' => array(
  514. 'required' => true,
  515. 'type' => 'string',
  516. 'location' => 'json',
  517. 'minLength' => 1,
  518. 'maxLength' => 256,
  519. ),
  520. ),
  521. 'errorResponses' => array(
  522. array(
  523. 'reason' => 'The request was rejected because the specified entity or resource could not be found.',
  524. 'class' => 'NotFoundException',
  525. ),
  526. array(
  527. 'reason' => 'The request was rejected because a specified ARN was not valid.',
  528. 'class' => 'InvalidArnException',
  529. ),
  530. array(
  531. 'reason' => 'The system timed out while trying to fulfill the request.',
  532. 'class' => 'DependencyTimeoutException',
  533. ),
  534. array(
  535. 'reason' => 'The request was rejected because an internal exception occurred. This error can be retried.',
  536. 'class' => 'KMSInternalException',
  537. ),
  538. ),
  539. ),
  540. 'EnableKey' => array(
  541. 'httpMethod' => 'POST',
  542. 'uri' => '/',
  543. 'class' => 'Aws\\Common\\Command\\JsonCommand',
  544. 'responseClass' => 'EmptyOutput',
  545. 'responseType' => 'model',
  546. 'parameters' => array(
  547. 'Content-Type' => array(
  548. 'static' => true,
  549. 'location' => 'header',
  550. 'default' => 'application/x-amz-json-1.1',
  551. ),
  552. 'command.expects' => array(
  553. 'static' => true,
  554. 'default' => 'application/json',
  555. ),
  556. 'X-Amz-Target' => array(
  557. 'static' => true,
  558. 'location' => 'header',
  559. 'default' => 'TrentService.EnableKey',
  560. ),
  561. 'KeyId' => array(
  562. 'required' => true,
  563. 'type' => 'string',
  564. 'location' => 'json',
  565. 'minLength' => 1,
  566. 'maxLength' => 256,
  567. ),
  568. ),
  569. 'errorResponses' => array(
  570. array(
  571. 'reason' => 'The request was rejected because the specified entity or resource could not be found.',
  572. 'class' => 'NotFoundException',
  573. ),
  574. array(
  575. 'reason' => 'The request was rejected because a specified ARN was not valid.',
  576. 'class' => 'InvalidArnException',
  577. ),
  578. array(
  579. 'reason' => 'The system timed out while trying to fulfill the request.',
  580. 'class' => 'DependencyTimeoutException',
  581. ),
  582. array(
  583. 'reason' => 'The request was rejected because an internal exception occurred. This error can be retried.',
  584. 'class' => 'KMSInternalException',
  585. ),
  586. array(
  587. 'reason' => 'The request was rejected because a quota was exceeded.',
  588. 'class' => 'LimitExceededException',
  589. ),
  590. ),
  591. ),
  592. 'EnableKeyRotation' => array(
  593. 'httpMethod' => 'POST',
  594. 'uri' => '/',
  595. 'class' => 'Aws\\Common\\Command\\JsonCommand',
  596. 'responseClass' => 'EmptyOutput',
  597. 'responseType' => 'model',
  598. 'parameters' => array(
  599. 'Content-Type' => array(
  600. 'static' => true,
  601. 'location' => 'header',
  602. 'default' => 'application/x-amz-json-1.1',
  603. ),
  604. 'command.expects' => array(
  605. 'static' => true,
  606. 'default' => 'application/json',
  607. ),
  608. 'X-Amz-Target' => array(
  609. 'static' => true,
  610. 'location' => 'header',
  611. 'default' => 'TrentService.EnableKeyRotation',
  612. ),
  613. 'KeyId' => array(
  614. 'required' => true,
  615. 'type' => 'string',
  616. 'location' => 'json',
  617. 'minLength' => 1,
  618. 'maxLength' => 256,
  619. ),
  620. ),
  621. 'errorResponses' => array(
  622. array(
  623. 'reason' => 'The request was rejected because the specified entity or resource could not be found.',
  624. 'class' => 'NotFoundException',
  625. ),
  626. array(
  627. 'reason' => 'The request was rejected because a specified ARN was not valid.',
  628. 'class' => 'InvalidArnException',
  629. ),
  630. array(
  631. 'reason' => 'The system timed out while trying to fulfill the request.',
  632. 'class' => 'DependencyTimeoutException',
  633. ),
  634. array(
  635. 'reason' => 'The request was rejected because an internal exception occurred. This error can be retried.',
  636. 'class' => 'KMSInternalException',
  637. ),
  638. ),
  639. ),
  640. 'Encrypt' => array(
  641. 'httpMethod' => 'POST',
  642. 'uri' => '/',
  643. 'class' => 'Aws\\Common\\Command\\JsonCommand',
  644. 'responseClass' => 'EncryptResponse',
  645. 'responseType' => 'model',
  646. 'parameters' => array(
  647. 'Content-Type' => array(
  648. 'static' => true,
  649. 'location' => 'header',
  650. 'default' => 'application/x-amz-json-1.1',
  651. ),
  652. 'command.expects' => array(
  653. 'static' => true,
  654. 'default' => 'application/json',
  655. ),
  656. 'X-Amz-Target' => array(
  657. 'static' => true,
  658. 'location' => 'header',
  659. 'default' => 'TrentService.Encrypt',
  660. ),
  661. 'KeyId' => array(
  662. 'required' => true,
  663. 'type' => 'string',
  664. 'location' => 'json',
  665. 'minLength' => 1,
  666. 'maxLength' => 256,
  667. ),
  668. 'Plaintext' => array(
  669. 'required' => true,
  670. 'type' => 'string',
  671. 'location' => 'json',
  672. 'filters' => array(
  673. 'base64_encode',
  674. ),
  675. ),
  676. 'EncryptionContext' => array(
  677. 'type' => 'object',
  678. 'location' => 'json',
  679. 'additionalProperties' => array(
  680. 'type' => 'string',
  681. 'data' => array(
  682. 'shape_name' => 'EncryptionContextKey',
  683. ),
  684. ),
  685. ),
  686. 'GrantTokens' => array(
  687. 'type' => 'array',
  688. 'location' => 'json',
  689. 'maxItems' => 10,
  690. 'items' => array(
  691. 'name' => 'GrantTokenType',
  692. 'type' => 'string',
  693. 'minLength' => 1,
  694. 'maxLength' => 8192,
  695. ),
  696. ),
  697. ),
  698. 'errorResponses' => array(
  699. array(
  700. 'reason' => 'The request was rejected because the specified entity or resource could not be found.',
  701. 'class' => 'NotFoundException',
  702. ),
  703. array(
  704. 'reason' => 'A request was rejected because the specified key was marked as disabled.',
  705. 'class' => 'DisabledException',
  706. ),
  707. array(
  708. 'reason' => 'The request was rejected because the key was disabled, not found, or otherwise not available.',
  709. 'class' => 'KeyUnavailableException',
  710. ),
  711. array(
  712. 'reason' => 'The system timed out while trying to fulfill the request.',
  713. 'class' => 'DependencyTimeoutException',
  714. ),
  715. array(
  716. 'reason' => 'The request was rejected because the specified KeySpec parameter is not valid. The currently supported value is ENCRYPT/DECRYPT.',
  717. 'class' => 'InvalidKeyUsageException',
  718. ),
  719. array(
  720. 'reason' => 'A grant token provided as part of the request is invalid.',
  721. 'class' => 'InvalidGrantTokenException',
  722. ),
  723. array(
  724. 'reason' => 'The request was rejected because an internal exception occurred. This error can be retried.',
  725. 'class' => 'KMSInternalException',
  726. ),
  727. ),
  728. ),
  729. 'GenerateDataKey' => array(
  730. 'httpMethod' => 'POST',
  731. 'uri' => '/',
  732. 'class' => 'Aws\\Common\\Command\\JsonCommand',
  733. 'responseClass' => 'GenerateDataKeyResponse',
  734. 'responseType' => 'model',
  735. 'parameters' => array(
  736. 'Content-Type' => array(
  737. 'static' => true,
  738. 'location' => 'header',
  739. 'default' => 'application/x-amz-json-1.1',
  740. ),
  741. 'command.expects' => array(
  742. 'static' => true,
  743. 'default' => 'application/json',
  744. ),
  745. 'X-Amz-Target' => array(
  746. 'static' => true,
  747. 'location' => 'header',
  748. 'default' => 'TrentService.GenerateDataKey',
  749. ),
  750. 'KeyId' => array(
  751. 'required' => true,
  752. 'type' => 'string',
  753. 'location' => 'json',
  754. 'minLength' => 1,
  755. 'maxLength' => 256,
  756. ),
  757. 'EncryptionContext' => array(
  758. 'type' => 'object',
  759. 'location' => 'json',
  760. 'additionalProperties' => array(
  761. 'type' => 'string',
  762. 'data' => array(
  763. 'shape_name' => 'EncryptionContextKey',
  764. ),
  765. ),
  766. ),
  767. 'NumberOfBytes' => array(
  768. 'type' => 'numeric',
  769. 'location' => 'json',
  770. 'minimum' => 1,
  771. 'maximum' => 1024,
  772. ),
  773. 'KeySpec' => array(
  774. 'type' => 'string',
  775. 'location' => 'json',
  776. ),
  777. 'GrantTokens' => array(
  778. 'type' => 'array',
  779. 'location' => 'json',
  780. 'maxItems' => 10,
  781. 'items' => array(
  782. 'name' => 'GrantTokenType',
  783. 'type' => 'string',
  784. 'minLength' => 1,
  785. 'maxLength' => 8192,
  786. ),
  787. ),
  788. ),
  789. 'errorResponses' => array(
  790. array(
  791. 'reason' => 'The request was rejected because the specified entity or resource could not be found.',
  792. 'class' => 'NotFoundException',
  793. ),
  794. array(
  795. 'reason' => 'A request was rejected because the specified key was marked as disabled.',
  796. 'class' => 'DisabledException',
  797. ),
  798. array(
  799. 'reason' => 'The request was rejected because the key was disabled, not found, or otherwise not available.',
  800. 'class' => 'KeyUnavailableException',
  801. ),
  802. array(
  803. 'reason' => 'The system timed out while trying to fulfill the request.',
  804. 'class' => 'DependencyTimeoutException',
  805. ),
  806. array(
  807. 'reason' => 'The request was rejected because the specified KeySpec parameter is not valid. The currently supported value is ENCRYPT/DECRYPT.',
  808. 'class' => 'InvalidKeyUsageException',
  809. ),
  810. array(
  811. 'reason' => 'A grant token provided as part of the request is invalid.',
  812. 'class' => 'InvalidGrantTokenException',
  813. ),
  814. array(
  815. 'reason' => 'The request was rejected because an internal exception occurred. This error can be retried.',
  816. 'class' => 'KMSInternalException',
  817. ),
  818. ),
  819. ),
  820. 'GenerateDataKeyWithoutPlaintext' => array(
  821. 'httpMethod' => 'POST',
  822. 'uri' => '/',
  823. 'class' => 'Aws\\Common\\Command\\JsonCommand',
  824. 'responseClass' => 'GenerateDataKeyWithoutPlaintextResponse',
  825. 'responseType' => 'model',
  826. 'parameters' => array(
  827. 'Content-Type' => array(
  828. 'static' => true,
  829. 'location' => 'header',
  830. 'default' => 'application/x-amz-json-1.1',
  831. ),
  832. 'command.expects' => array(
  833. 'static' => true,
  834. 'default' => 'application/json',
  835. ),
  836. 'X-Amz-Target' => array(
  837. 'static' => true,
  838. 'location' => 'header',
  839. 'default' => 'TrentService.GenerateDataKeyWithoutPlaintext',
  840. ),
  841. 'KeyId' => array(
  842. 'required' => true,
  843. 'type' => 'string',
  844. 'location' => 'json',
  845. 'minLength' => 1,
  846. 'maxLength' => 256,
  847. ),
  848. 'EncryptionContext' => array(
  849. 'type' => 'object',
  850. 'location' => 'json',
  851. 'additionalProperties' => array(
  852. 'type' => 'string',
  853. 'data' => array(
  854. 'shape_name' => 'EncryptionContextKey',
  855. ),
  856. ),
  857. ),
  858. 'KeySpec' => array(
  859. 'type' => 'string',
  860. 'location' => 'json',
  861. ),
  862. 'NumberOfBytes' => array(
  863. 'type' => 'numeric',
  864. 'location' => 'json',
  865. 'minimum' => 1,
  866. 'maximum' => 1024,
  867. ),
  868. 'GrantTokens' => array(
  869. 'type' => 'array',
  870. 'location' => 'json',
  871. 'maxItems' => 10,
  872. 'items' => array(
  873. 'name' => 'GrantTokenType',
  874. 'type' => 'string',
  875. 'minLength' => 1,
  876. 'maxLength' => 8192,
  877. ),
  878. ),
  879. ),
  880. 'errorResponses' => array(
  881. array(
  882. 'reason' => 'The request was rejected because the specified entity or resource could not be found.',
  883. 'class' => 'NotFoundException',
  884. ),
  885. array(
  886. 'reason' => 'A request was rejected because the specified key was marked as disabled.',
  887. 'class' => 'DisabledException',
  888. ),
  889. array(
  890. 'reason' => 'The request was rejected because the key was disabled, not found, or otherwise not available.',
  891. 'class' => 'KeyUnavailableException',
  892. ),
  893. array(
  894. 'reason' => 'The system timed out while trying to fulfill the request.',
  895. 'class' => 'DependencyTimeoutException',
  896. ),
  897. array(
  898. 'reason' => 'The request was rejected because the specified KeySpec parameter is not valid. The currently supported value is ENCRYPT/DECRYPT.',
  899. 'class' => 'InvalidKeyUsageException',
  900. ),
  901. array(
  902. 'reason' => 'A grant token provided as part of the request is invalid.',
  903. 'class' => 'InvalidGrantTokenException',
  904. ),
  905. array(
  906. 'reason' => 'The request was rejected because an internal exception occurred. This error can be retried.',
  907. 'class' => 'KMSInternalException',
  908. ),
  909. ),
  910. ),
  911. 'GenerateRandom' => array(
  912. 'httpMethod' => 'POST',
  913. 'uri' => '/',
  914. 'class' => 'Aws\\Common\\Command\\JsonCommand',
  915. 'responseClass' => 'GenerateRandomResponse',
  916. 'responseType' => 'model',
  917. 'parameters' => array(
  918. 'Content-Type' => array(
  919. 'static' => true,
  920. 'location' => 'header',
  921. 'default' => 'application/x-amz-json-1.1',
  922. ),
  923. 'command.expects' => array(
  924. 'static' => true,
  925. 'default' => 'application/json',
  926. ),
  927. 'X-Amz-Target' => array(
  928. 'static' => true,
  929. 'location' => 'header',
  930. 'default' => 'TrentService.GenerateRandom',
  931. ),
  932. 'NumberOfBytes' => array(
  933. 'type' => 'numeric',
  934. 'location' => 'json',
  935. 'minimum' => 1,
  936. 'maximum' => 1024,
  937. ),
  938. ),
  939. 'errorResponses' => array(
  940. array(
  941. 'reason' => 'The system timed out while trying to fulfill the request.',
  942. 'class' => 'DependencyTimeoutException',
  943. ),
  944. array(
  945. 'reason' => 'The request was rejected because an internal exception occurred. This error can be retried.',
  946. 'class' => 'KMSInternalException',
  947. ),
  948. ),
  949. ),
  950. 'GetKeyPolicy' => array(
  951. 'httpMethod' => 'POST',
  952. 'uri' => '/',
  953. 'class' => 'Aws\\Common\\Command\\JsonCommand',
  954. 'responseClass' => 'GetKeyPolicyResponse',
  955. 'responseType' => 'model',
  956. 'parameters' => array(
  957. 'Content-Type' => array(
  958. 'static' => true,
  959. 'location' => 'header',
  960. 'default' => 'application/x-amz-json-1.1',
  961. ),
  962. 'command.expects' => array(
  963. 'static' => true,
  964. 'default' => 'application/json',
  965. ),
  966. 'X-Amz-Target' => array(
  967. 'static' => true,
  968. 'location' => 'header',
  969. 'default' => 'TrentService.GetKeyPolicy',
  970. ),
  971. 'KeyId' => array(
  972. 'required' => true,
  973. 'type' => 'string',
  974. 'location' => 'json',
  975. 'minLength' => 1,
  976. 'maxLength' => 256,
  977. ),
  978. 'PolicyName' => array(
  979. 'required' => true,
  980. 'type' => 'string',
  981. 'location' => 'json',
  982. 'minLength' => 1,
  983. 'maxLength' => 128,
  984. ),
  985. ),
  986. 'errorResponses' => array(
  987. array(
  988. 'reason' => 'The request was rejected because the specified entity or resource could not be found.',
  989. 'class' => 'NotFoundException',
  990. ),
  991. array(
  992. 'reason' => 'The request was rejected because a specified ARN was not valid.',
  993. 'class' => 'InvalidArnException',
  994. ),
  995. array(
  996. 'reason' => 'The system timed out while trying to fulfill the request.',
  997. 'class' => 'DependencyTimeoutException',
  998. ),
  999. array(
  1000. 'reason' => 'The request was rejected because an internal exception occurred. This error can be retried.',
  1001. 'class' => 'KMSInternalException',
  1002. ),
  1003. ),
  1004. ),
  1005. 'GetKeyRotationStatus' => array(
  1006. 'httpMethod' => 'POST',
  1007. 'uri' => '/',
  1008. 'class' => 'Aws\\Common\\Command\\JsonCommand',
  1009. 'responseClass' => 'GetKeyRotationStatusResponse',
  1010. 'responseType' => 'model',
  1011. 'parameters' => array(
  1012. 'Content-Type' => array(
  1013. 'static' => true,
  1014. 'location' => 'header',
  1015. 'default' => 'application/x-amz-json-1.1',
  1016. ),
  1017. 'command.expects' => array(
  1018. 'static' => true,
  1019. 'default' => 'application/json',
  1020. ),
  1021. 'X-Amz-Target' => array(
  1022. 'static' => true,
  1023. 'location' => 'header',
  1024. 'default' => 'TrentService.GetKeyRotationStatus',
  1025. ),
  1026. 'KeyId' => array(
  1027. 'required' => true,
  1028. 'type' => 'string',
  1029. 'location' => 'json',
  1030. 'minLength' => 1,
  1031. 'maxLength' => 256,
  1032. ),
  1033. ),
  1034. 'errorResponses' => array(
  1035. array(
  1036. 'reason' => 'The request was rejected because the specified entity or resource could not be found.',
  1037. 'class' => 'NotFoundException',
  1038. ),
  1039. array(
  1040. 'reason' => 'The request was rejected because a specified ARN was not valid.',
  1041. 'class' => 'InvalidArnException',
  1042. ),
  1043. array(
  1044. 'reason' => 'The system timed out while trying to fulfill the request.',
  1045. 'class' => 'DependencyTimeoutException',
  1046. ),
  1047. array(
  1048. 'reason' => 'The request was rejected because an internal exception occurred. This error can be retried.',
  1049. 'class' => 'KMSInternalException',
  1050. ),
  1051. ),
  1052. ),
  1053. 'ListAliases' => array(
  1054. 'httpMethod' => 'POST',
  1055. 'uri' => '/',
  1056. 'class' => 'Aws\\Common\\Command\\JsonCommand',
  1057. 'responseClass' => 'ListAliasesResponse',
  1058. 'responseType' => 'model',
  1059. 'parameters' => array(
  1060. 'Content-Type' => array(
  1061. 'static' => true,
  1062. 'location' => 'header',
  1063. 'default' => 'application/x-amz-json-1.1',
  1064. ),
  1065. 'command.expects' => array(
  1066. 'static' => true,
  1067. 'default' => 'application/json',
  1068. ),
  1069. 'X-Amz-Target' => array(
  1070. 'static' => true,
  1071. 'location' => 'header',
  1072. 'default' => 'TrentService.ListAliases',
  1073. ),
  1074. 'Limit' => array(
  1075. 'type' => 'numeric',
  1076. 'location' => 'json',
  1077. 'minimum' => 1,
  1078. 'maximum' => 1000,
  1079. ),
  1080. 'Marker' => array(
  1081. 'type' => 'string',
  1082. 'location' => 'json',
  1083. 'minLength' => 1,
  1084. 'maxLength' => 320,
  1085. ),
  1086. ),
  1087. 'errorResponses' => array(
  1088. array(
  1089. 'reason' => 'The system timed out while trying to fulfill the request.',
  1090. 'class' => 'DependencyTimeoutException',
  1091. ),
  1092. array(
  1093. 'reason' => 'The request was rejected because an internal exception occurred. This error can be retried.',
  1094. 'class' => 'KMSInternalException',
  1095. ),
  1096. ),
  1097. ),
  1098. 'ListGrants' => array(
  1099. 'httpMethod' => 'POST',
  1100. 'uri' => '/',
  1101. 'class' => 'Aws\\Common\\Command\\JsonCommand',
  1102. 'responseClass' => 'ListGrantsResponse',
  1103. 'responseType' => 'model',
  1104. 'parameters' => array(
  1105. 'Content-Type' => array(
  1106. 'static' => true,
  1107. 'location' => 'header',
  1108. 'default' => 'application/x-amz-json-1.1',
  1109. ),
  1110. 'command.expects' => array(
  1111. 'static' => true,
  1112. 'default' => 'application/json',
  1113. ),
  1114. 'X-Amz-Target' => array(
  1115. 'static' => true,
  1116. 'location' => 'header',
  1117. 'default' => 'TrentService.ListGrants',
  1118. ),
  1119. 'KeyId' => array(
  1120. 'required' => true,
  1121. 'type' => 'string',
  1122. 'location' => 'json',
  1123. 'minLength' => 1,
  1124. 'maxLength' => 256,
  1125. ),
  1126. 'Limit' => array(
  1127. 'type' => 'numeric',
  1128. 'location' => 'json',
  1129. 'minimum' => 1,
  1130. 'maximum' => 1000,
  1131. ),
  1132. 'Marker' => array(
  1133. 'type' => 'string',
  1134. 'location' => 'json',
  1135. 'minLength' => 1,
  1136. 'maxLength' => 320,
  1137. ),
  1138. ),
  1139. 'errorResponses' => array(
  1140. array(
  1141. 'reason' => 'The system timed out while trying to fulfill the request.',
  1142. 'class' => 'DependencyTimeoutException',
  1143. ),
  1144. array(
  1145. 'reason' => 'The request was rejected because the marker that specifies where pagination should next begin is not valid.',
  1146. 'class' => 'InvalidMarkerException',
  1147. ),
  1148. array(
  1149. 'reason' => 'The request was rejected because an internal exception occurred. This error can be retried.',
  1150. 'class' => 'KMSInternalException',
  1151. ),
  1152. ),
  1153. ),
  1154. 'ListKeyPolicies' => array(
  1155. 'httpMethod' => 'POST',
  1156. 'uri' => '/',
  1157. 'class' => 'Aws\\Common\\Command\\JsonCommand',
  1158. 'responseClass' => 'ListKeyPoliciesResponse',
  1159. 'responseType' => 'model',
  1160. 'parameters' => array(
  1161. 'Content-Type' => array(
  1162. 'static' => true,
  1163. 'location' => 'header',
  1164. 'default' => 'application/x-amz-json-1.1',
  1165. ),
  1166. 'command.expects' => array(
  1167. 'static' => true,
  1168. 'default' => 'application/json',
  1169. ),
  1170. 'X-Amz-Target' => array(
  1171. 'static' => true,
  1172. 'location' => 'header',
  1173. 'default' => 'TrentService.ListKeyPolicies',
  1174. ),
  1175. 'KeyId' => array(
  1176. 'required' => true,
  1177. 'type' => 'string',
  1178. 'location' => 'json',
  1179. 'minLength' => 1,
  1180. 'maxLength' => 256,
  1181. ),
  1182. 'Limit' => array(
  1183. 'type' => 'numeric',
  1184. 'location' => 'json',
  1185. 'minimum' => 1,
  1186. 'maximum' => 1000,
  1187. ),
  1188. 'Marker' => array(
  1189. 'type' => 'string',
  1190. 'location' => 'json',
  1191. 'minLength' => 1,
  1192. 'maxLength' => 320,
  1193. ),
  1194. ),
  1195. 'errorResponses' => array(
  1196. array(
  1197. 'reason' => 'The request was rejected beca