/api/vendor/aws/aws-sdk-php/src/Aws/CloudFront/Resources/cloudfront-2014-10-21.php

https://gitlab.com/x33n/respond · PHP · 1065 lines · 1050 code · 1 blank · 14 comment · 0 complexity · 11a2246aec1ed4c49cd9e1ef07081688 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-10-21',
  18. 'endpointPrefix' => 'cloudfront',
  19. 'serviceFullName' => 'Amazon CloudFront',
  20. 'serviceAbbreviation' => 'CloudFront',
  21. 'serviceType' => 'rest-xml',
  22. 'globalEndpoint' => 'cloudfront.amazonaws.com',
  23. 'signatureVersion' => 'v4',
  24. 'namespace' => 'CloudFront',
  25. 'regions' => array(
  26. 'us-east-1' => array(
  27. 'http' => true,
  28. 'https' => true,
  29. 'hostname' => 'cloudfront.amazonaws.com',
  30. ),
  31. 'us-west-1' => array(
  32. 'http' => true,
  33. 'https' => true,
  34. 'hostname' => 'cloudfront.amazonaws.com',
  35. ),
  36. 'us-west-2' => array(
  37. 'http' => true,
  38. 'https' => true,
  39. 'hostname' => 'cloudfront.amazonaws.com',
  40. ),
  41. 'eu-west-1' => array(
  42. 'http' => true,
  43. 'https' => true,
  44. 'hostname' => 'cloudfront.amazonaws.com',
  45. ),
  46. 'ap-northeast-1' => array(
  47. 'http' => true,
  48. 'https' => true,
  49. 'hostname' => 'cloudfront.amazonaws.com',
  50. ),
  51. 'ap-southeast-1' => array(
  52. 'http' => true,
  53. 'https' => true,
  54. 'hostname' => 'cloudfront.amazonaws.com',
  55. ),
  56. 'ap-southeast-2' => array(
  57. 'http' => true,
  58. 'https' => true,
  59. 'hostname' => 'cloudfront.amazonaws.com',
  60. ),
  61. 'sa-east-1' => array(
  62. 'http' => true,
  63. 'https' => true,
  64. 'hostname' => 'cloudfront.amazonaws.com',
  65. ),
  66. ),
  67. 'operations' => array(
  68. 'CreateCloudFrontOriginAccessIdentity' => array(
  69. 'httpMethod' => 'POST',
  70. 'uri' => '/2014-10-21/origin-access-identity/cloudfront',
  71. 'class' => 'Guzzle\\Service\\Command\\OperationCommand',
  72. 'responseClass' => 'CreateCloudFrontOriginAccessIdentityResult',
  73. 'responseType' => 'model',
  74. 'data' => array(
  75. 'xmlRoot' => array(
  76. 'name' => 'CloudFrontOriginAccessIdentityConfig',
  77. 'namespaces' => array(
  78. 'http://cloudfront.amazonaws.com/doc/2014-10-21/',
  79. ),
  80. ),
  81. ),
  82. 'parameters' => array(
  83. 'CallerReference' => array(
  84. 'required' => true,
  85. 'type' => 'string',
  86. 'location' => 'xml',
  87. ),
  88. 'Comment' => array(
  89. 'required' => true,
  90. 'type' => 'string',
  91. 'location' => 'xml',
  92. ),
  93. 'command.expects' => array(
  94. 'static' => true,
  95. 'default' => 'application/xml',
  96. ),
  97. ),
  98. 'errorResponses' => array(
  99. array(
  100. 'reason' => 'If the CallerReference is a value you already sent in a previous request to create an identity but the content of the CloudFrontOriginAccessIdentityConfig is different from the original request, CloudFront returns a CloudFrontOriginAccessIdentityAlreadyExists error.',
  101. 'class' => 'CloudFrontOriginAccessIdentityAlreadyExistsException',
  102. ),
  103. array(
  104. 'reason' => 'This operation requires a body. Ensure that the body is present and the Content-Type header is set.',
  105. 'class' => 'MissingBodyException',
  106. ),
  107. array(
  108. 'reason' => 'Processing your request would cause you to exceed the maximum number of origin access identities allowed.',
  109. 'class' => 'TooManyCloudFrontOriginAccessIdentitiesException',
  110. ),
  111. array(
  112. 'reason' => 'The argument is invalid.',
  113. 'class' => 'InvalidArgumentException',
  114. ),
  115. array(
  116. 'reason' => 'The value of Quantity and the size of Items do not match.',
  117. 'class' => 'InconsistentQuantitiesException',
  118. ),
  119. ),
  120. ),
  121. 'CreateDistribution' => array(
  122. 'httpMethod' => 'POST',
  123. 'uri' => '/2014-10-21/distribution',
  124. 'class' => 'Guzzle\\Service\\Command\\OperationCommand',
  125. 'responseClass' => 'CreateDistributionResult',
  126. 'responseType' => 'model',
  127. 'data' => array(
  128. 'xmlRoot' => array(
  129. 'name' => 'DistributionConfig',
  130. 'namespaces' => array(
  131. 'http://cloudfront.amazonaws.com/doc/2014-10-21/',
  132. ),
  133. ),
  134. ),
  135. 'parameters' => array(
  136. 'CallerReference' => array(
  137. 'required' => true,
  138. 'type' => 'string',
  139. 'location' => 'xml',
  140. ),
  141. 'Aliases' => array(
  142. 'required' => true,
  143. 'type' => 'object',
  144. 'location' => 'xml',
  145. 'properties' => array(
  146. 'Quantity' => array(
  147. 'required' => true,
  148. 'type' => 'numeric',
  149. ),
  150. 'Items' => array(
  151. 'type' => 'array',
  152. 'items' => array(
  153. 'name' => 'CNAME',
  154. 'type' => 'string',
  155. ),
  156. ),
  157. ),
  158. ),
  159. 'DefaultRootObject' => array(
  160. 'required' => true,
  161. 'type' => 'string',
  162. 'location' => 'xml',
  163. ),
  164. 'Origins' => array(
  165. 'required' => true,
  166. 'type' => 'object',
  167. 'location' => 'xml',
  168. 'properties' => array(
  169. 'Quantity' => array(
  170. 'required' => true,
  171. 'type' => 'numeric',
  172. ),
  173. 'Items' => array(
  174. 'type' => 'array',
  175. 'minItems' => 1,
  176. 'items' => array(
  177. 'name' => 'Origin',
  178. 'type' => 'object',
  179. 'properties' => array(
  180. 'Id' => array(
  181. 'required' => true,
  182. 'type' => 'string',
  183. ),
  184. 'DomainName' => array(
  185. 'required' => true,
  186. 'type' => 'string',
  187. ),
  188. 'S3OriginConfig' => array(
  189. 'type' => 'object',
  190. 'properties' => array(
  191. 'OriginAccessIdentity' => array(
  192. 'required' => true,
  193. 'type' => 'string',
  194. ),
  195. ),
  196. ),
  197. 'CustomOriginConfig' => array(
  198. 'type' => 'object',
  199. 'properties' => array(
  200. 'HTTPPort' => array(
  201. 'required' => true,
  202. 'type' => 'numeric',
  203. ),
  204. 'HTTPSPort' => array(
  205. 'required' => true,
  206. 'type' => 'numeric',
  207. ),
  208. 'OriginProtocolPolicy' => array(
  209. 'required' => true,
  210. 'type' => 'string',
  211. ),
  212. ),
  213. ),
  214. ),
  215. ),
  216. ),
  217. ),
  218. ),
  219. 'DefaultCacheBehavior' => array(
  220. 'required' => true,
  221. 'type' => 'object',
  222. 'location' => 'xml',
  223. 'properties' => array(
  224. 'TargetOriginId' => array(
  225. 'required' => true,
  226. 'type' => 'string',
  227. ),
  228. 'ForwardedValues' => array(
  229. 'required' => true,
  230. 'type' => 'object',
  231. 'properties' => array(
  232. 'QueryString' => array(
  233. 'required' => true,
  234. 'type' => 'boolean',
  235. 'format' => 'boolean-string',
  236. ),
  237. 'Cookies' => array(
  238. 'required' => true,
  239. 'type' => 'object',
  240. 'properties' => array(
  241. 'Forward' => array(
  242. 'required' => true,
  243. 'type' => 'string',
  244. ),
  245. 'WhitelistedNames' => array(
  246. 'type' => 'object',
  247. 'properties' => array(
  248. 'Quantity' => array(
  249. 'required' => true,
  250. 'type' => 'numeric',
  251. ),
  252. 'Items' => array(
  253. 'type' => 'array',
  254. 'items' => array(
  255. 'name' => 'Name',
  256. 'type' => 'string',
  257. ),
  258. ),
  259. ),
  260. ),
  261. ),
  262. ),
  263. 'Headers' => array(
  264. 'type' => 'object',
  265. 'properties' => array(
  266. 'Quantity' => array(
  267. 'required' => true,
  268. 'type' => 'numeric',
  269. ),
  270. 'Items' => array(
  271. 'type' => 'array',
  272. 'items' => array(
  273. 'name' => 'Name',
  274. 'type' => 'string',
  275. ),
  276. ),
  277. ),
  278. ),
  279. ),
  280. ),
  281. 'TrustedSigners' => array(
  282. 'required' => true,
  283. 'type' => 'object',
  284. 'properties' => array(
  285. 'Enabled' => array(
  286. 'required' => true,
  287. 'type' => 'boolean',
  288. 'format' => 'boolean-string',
  289. ),
  290. 'Quantity' => array(
  291. 'required' => true,
  292. 'type' => 'numeric',
  293. ),
  294. 'Items' => array(
  295. 'type' => 'array',
  296. 'items' => array(
  297. 'name' => 'AwsAccountNumber',
  298. 'type' => 'string',
  299. ),
  300. ),
  301. ),
  302. ),
  303. 'ViewerProtocolPolicy' => array(
  304. 'required' => true,
  305. 'type' => 'string',
  306. ),
  307. 'MinTTL' => array(
  308. 'required' => true,
  309. 'type' => 'numeric',
  310. ),
  311. 'AllowedMethods' => array(
  312. 'type' => 'object',
  313. 'properties' => array(
  314. 'Quantity' => array(
  315. 'required' => true,
  316. 'type' => 'numeric',
  317. ),
  318. 'Items' => array(
  319. 'required' => true,
  320. 'type' => 'array',
  321. 'items' => array(
  322. 'name' => 'Method',
  323. 'type' => 'string',
  324. ),
  325. ),
  326. 'CachedMethods' => array(
  327. 'type' => 'object',
  328. 'properties' => array(
  329. 'Quantity' => array(
  330. 'required' => true,
  331. 'type' => 'numeric',
  332. ),
  333. 'Items' => array(
  334. 'required' => true,
  335. 'type' => 'array',
  336. 'items' => array(
  337. 'name' => 'Method',
  338. 'type' => 'string',
  339. ),
  340. ),
  341. ),
  342. ),
  343. ),
  344. ),
  345. 'SmoothStreaming' => array(
  346. 'type' => 'boolean',
  347. 'format' => 'boolean-string',
  348. ),
  349. ),
  350. ),
  351. 'CacheBehaviors' => array(
  352. 'required' => true,
  353. 'type' => 'object',
  354. 'location' => 'xml',
  355. 'properties' => array(
  356. 'Quantity' => array(
  357. 'required' => true,
  358. 'type' => 'numeric',
  359. ),
  360. 'Items' => array(
  361. 'type' => 'array',
  362. 'items' => array(
  363. 'name' => 'CacheBehavior',
  364. 'type' => 'object',
  365. 'properties' => array(
  366. 'PathPattern' => array(
  367. 'required' => true,
  368. 'type' => 'string',
  369. ),
  370. 'TargetOriginId' => array(
  371. 'required' => true,
  372. 'type' => 'string',
  373. ),
  374. 'ForwardedValues' => array(
  375. 'required' => true,
  376. 'type' => 'object',
  377. 'properties' => array(
  378. 'QueryString' => array(
  379. 'required' => true,
  380. 'type' => 'boolean',
  381. 'format' => 'boolean-string',
  382. ),
  383. 'Cookies' => array(
  384. 'required' => true,
  385. 'type' => 'object',
  386. 'properties' => array(
  387. 'Forward' => array(
  388. 'required' => true,
  389. 'type' => 'string',
  390. ),
  391. 'WhitelistedNames' => array(
  392. 'type' => 'object',
  393. 'properties' => array(
  394. 'Quantity' => array(
  395. 'required' => true,
  396. 'type' => 'numeric',
  397. ),
  398. 'Items' => array(
  399. 'type' => 'array',
  400. 'items' => array(
  401. 'name' => 'Name',
  402. 'type' => 'string',
  403. ),
  404. ),
  405. ),
  406. ),
  407. ),
  408. ),
  409. 'Headers' => array(
  410. 'type' => 'object',
  411. 'properties' => array(
  412. 'Quantity' => array(
  413. 'required' => true,
  414. 'type' => 'numeric',
  415. ),
  416. 'Items' => array(
  417. 'type' => 'array',
  418. 'items' => array(
  419. 'name' => 'Name',
  420. 'type' => 'string',
  421. ),
  422. ),
  423. ),
  424. ),
  425. ),
  426. ),
  427. 'TrustedSigners' => array(
  428. 'required' => true,
  429. 'type' => 'object',
  430. 'properties' => array(
  431. 'Enabled' => array(
  432. 'required' => true,
  433. 'type' => 'boolean',
  434. 'format' => 'boolean-string',
  435. ),
  436. 'Quantity' => array(
  437. 'required' => true,
  438. 'type' => 'numeric',
  439. ),
  440. 'Items' => array(
  441. 'type' => 'array',
  442. 'items' => array(
  443. 'name' => 'AwsAccountNumber',
  444. 'type' => 'string',
  445. ),
  446. ),
  447. ),
  448. ),
  449. 'ViewerProtocolPolicy' => array(
  450. 'required' => true,
  451. 'type' => 'string',
  452. ),
  453. 'MinTTL' => array(
  454. 'required' => true,
  455. 'type' => 'numeric',
  456. ),
  457. 'AllowedMethods' => array(
  458. 'type' => 'object',
  459. 'properties' => array(
  460. 'Quantity' => array(
  461. 'required' => true,
  462. 'type' => 'numeric',
  463. ),
  464. 'Items' => array(
  465. 'required' => true,
  466. 'type' => 'array',
  467. 'items' => array(
  468. 'name' => 'Method',
  469. 'type' => 'string',
  470. ),
  471. ),
  472. 'CachedMethods' => array(
  473. 'type' => 'object',
  474. 'properties' => array(
  475. 'Quantity' => array(
  476. 'required' => true,
  477. 'type' => 'numeric',
  478. ),
  479. 'Items' => array(
  480. 'required' => true,
  481. 'type' => 'array',
  482. 'items' => array(
  483. 'name' => 'Method',
  484. 'type' => 'string',
  485. ),
  486. ),
  487. ),
  488. ),
  489. ),
  490. ),
  491. 'SmoothStreaming' => array(
  492. 'type' => 'boolean',
  493. 'format' => 'boolean-string',
  494. ),
  495. ),
  496. ),
  497. ),
  498. ),
  499. ),
  500. 'CustomErrorResponses' => array(
  501. 'type' => 'object',
  502. 'location' => 'xml',
  503. 'properties' => array(
  504. 'Quantity' => array(
  505. 'required' => true,
  506. 'type' => 'numeric',
  507. ),
  508. 'Items' => array(
  509. 'type' => 'array',
  510. 'items' => array(
  511. 'name' => 'CustomErrorResponse',
  512. 'type' => 'object',
  513. 'properties' => array(
  514. 'ErrorCode' => array(
  515. 'required' => true,
  516. 'type' => 'numeric',
  517. ),
  518. 'ResponsePagePath' => array(
  519. 'type' => 'string',
  520. ),
  521. 'ResponseCode' => array(
  522. 'type' => 'string',
  523. ),
  524. 'ErrorCachingMinTTL' => array(
  525. 'type' => 'numeric',
  526. ),
  527. ),
  528. ),
  529. ),
  530. ),
  531. ),
  532. 'Comment' => array(
  533. 'required' => true,
  534. 'type' => 'string',
  535. 'location' => 'xml',
  536. ),
  537. 'Logging' => array(
  538. 'required' => true,
  539. 'type' => 'object',
  540. 'location' => 'xml',
  541. 'properties' => array(
  542. 'Enabled' => array(
  543. 'required' => true,
  544. 'type' => 'boolean',
  545. 'format' => 'boolean-string',
  546. ),
  547. 'IncludeCookies' => array(
  548. 'required' => true,
  549. 'type' => 'boolean',
  550. 'format' => 'boolean-string',
  551. ),
  552. 'Bucket' => array(
  553. 'required' => true,
  554. 'type' => 'string',
  555. ),
  556. 'Prefix' => array(
  557. 'required' => true,
  558. 'type' => 'string',
  559. ),
  560. ),
  561. ),
  562. 'PriceClass' => array(
  563. 'required' => true,
  564. 'type' => 'string',
  565. 'location' => 'xml',
  566. ),
  567. 'Enabled' => array(
  568. 'required' => true,
  569. 'type' => 'boolean',
  570. 'format' => 'boolean-string',
  571. 'location' => 'xml',
  572. ),
  573. 'ViewerCertificate' => array(
  574. 'type' => 'object',
  575. 'location' => 'xml',
  576. 'properties' => array(
  577. 'IAMCertificateId' => array(
  578. 'type' => 'string',
  579. ),
  580. 'CloudFrontDefaultCertificate' => array(
  581. 'type' => 'boolean',
  582. 'format' => 'boolean-string',
  583. ),
  584. 'SSLSupportMethod' => array(
  585. 'type' => 'string',
  586. ),
  587. 'MinimumProtocolVersion' => array(
  588. 'type' => 'string',
  589. ),
  590. ),
  591. ),
  592. 'Restrictions' => array(
  593. 'type' => 'object',
  594. 'location' => 'xml',
  595. 'properties' => array(
  596. 'GeoRestriction' => array(
  597. 'required' => true,
  598. 'type' => 'object',
  599. 'properties' => array(
  600. 'RestrictionType' => array(
  601. 'required' => true,
  602. 'type' => 'string',
  603. ),
  604. 'Quantity' => array(
  605. 'required' => true,
  606. 'type' => 'numeric',
  607. ),
  608. 'Items' => array(
  609. 'type' => 'array',
  610. 'items' => array(
  611. 'name' => 'Location',
  612. 'type' => 'string',
  613. ),
  614. ),
  615. ),
  616. ),
  617. ),
  618. ),
  619. 'command.expects' => array(
  620. 'static' => true,
  621. 'default' => 'application/xml',
  622. ),
  623. ),
  624. 'errorResponses' => array(
  625. array(
  626. 'class' => 'CNAMEAlreadyExistsException',
  627. ),
  628. array(
  629. 'reason' => 'The caller reference you attempted to create the distribution with is associated with another distribution.',
  630. 'class' => 'DistributionAlreadyExistsException',
  631. ),
  632. array(
  633. 'reason' => 'The Amazon S3 origin server specified does not refer to a valid Amazon S3 bucket.',
  634. 'class' => 'InvalidOriginException',
  635. ),
  636. array(
  637. 'reason' => 'The origin access identity is not valid or doesn\'t exist.',
  638. 'class' => 'InvalidOriginAccessIdentityException',
  639. ),
  640. array(
  641. 'reason' => 'Access denied.',
  642. 'class' => 'AccessDeniedException',
  643. ),
  644. array(
  645. 'reason' => 'Your request contains more trusted signers than are allowed per distribution.',
  646. 'class' => 'TooManyTrustedSignersException',
  647. ),
  648. array(
  649. 'reason' => 'One or more of your trusted signers do not exist.',
  650. 'class' => 'TrustedSignerDoesNotExistException',
  651. ),
  652. array(
  653. 'class' => 'InvalidViewerCertificateException',
  654. ),
  655. array(
  656. 'reason' => 'This operation requires a body. Ensure that the body is present and the Content-Type header is set.',
  657. 'class' => 'MissingBodyException',
  658. ),
  659. array(
  660. 'reason' => 'Your request contains more CNAMEs than are allowed per distribution.',
  661. 'class' => 'TooManyDistributionCNAMEsException',
  662. ),
  663. array(
  664. 'reason' => 'Processing your request would cause you to exceed the maximum number of distributions allowed.',
  665. 'class' => 'TooManyDistributionsException',
  666. ),
  667. array(
  668. 'reason' => 'The default root object file name is too big or contains an invalid character.',
  669. 'class' => 'InvalidDefaultRootObjectException',
  670. ),
  671. array(
  672. 'reason' => 'The relative path is too big, is not URL-encoded, or does not begin with a slash (/).',
  673. 'class' => 'InvalidRelativePathException',
  674. ),
  675. array(
  676. 'class' => 'InvalidErrorCodeException',
  677. ),
  678. array(
  679. 'class' => 'InvalidResponseCodeException',
  680. ),
  681. array(
  682. 'reason' => 'The argument is invalid.',
  683. 'class' => 'InvalidArgumentException',
  684. ),
  685. array(
  686. 'reason' => 'This operation requires the HTTPS protocol. Ensure that you specify the HTTPS protocol in your request, or omit the RequiredProtocols element from your distribution configuration.',
  687. 'class' => 'InvalidRequiredProtocolException',
  688. ),
  689. array(
  690. 'reason' => 'No origin exists with the specified Origin Id.',
  691. 'class' => 'NoSuchOriginException',
  692. ),
  693. array(
  694. 'reason' => 'You cannot create anymore origins for the distribution.',
  695. 'class' => 'TooManyOriginsException',
  696. ),
  697. array(
  698. 'reason' => 'You cannot create anymore cache behaviors for the distribution.',
  699. 'class' => 'TooManyCacheBehaviorsException',
  700. ),
  701. array(
  702. 'reason' => 'Your request contains more cookie names in the whitelist than are allowed per cache behavior.',
  703. 'class' => 'TooManyCookieNamesInWhiteListException',
  704. ),
  705. array(
  706. 'reason' => 'Your request contains forward cookies option which doesn\'t match with the expectation for the whitelisted list of cookie names. Either list of cookie names has been specified when not allowed or list of cookie names is missing when expected.',
  707. 'class' => 'InvalidForwardCookiesException',
  708. ),
  709. array(
  710. 'class' => 'TooManyHeadersInForwardedValuesException',
  711. ),
  712. array(
  713. 'class' => 'InvalidHeadersForS3OriginException',
  714. ),
  715. array(
  716. 'reason' => 'The value of Quantity and the size of Items do not match.',
  717. 'class' => 'InconsistentQuantitiesException',
  718. ),
  719. array(
  720. 'reason' => 'You cannot create anymore custom ssl certificates.',
  721. 'class' => 'TooManyCertificatesException',
  722. ),
  723. array(
  724. 'class' => 'InvalidLocationCodeException',
  725. ),
  726. array(
  727. 'class' => 'InvalidGeoRestrictionParameterException',
  728. ),
  729. array(
  730. 'reason' => 'You cannot specify SSLv3 as the minimum protocol version if you only want to support only clients that Support Server Name Indication (SNI).',
  731. 'class' => 'InvalidProtocolSettingsException',
  732. ),
  733. ),
  734. ),
  735. 'CreateInvalidation' => array(
  736. 'httpMethod' => 'POST',
  737. 'uri' => '/2014-10-21/distribution/{DistributionId}/invalidation',
  738. 'class' => 'Guzzle\\Service\\Command\\OperationCommand',
  739. 'responseClass' => 'CreateInvalidationResult',
  740. 'responseType' => 'model',
  741. 'data' => array(
  742. 'xmlRoot' => array(
  743. 'name' => 'InvalidationBatch',
  744. 'namespaces' => array(
  745. 'http://cloudfront.amazonaws.com/doc/2014-10-21/',
  746. ),
  747. ),
  748. ),
  749. 'parameters' => array(
  750. 'DistributionId' => array(
  751. 'required' => true,
  752. 'type' => 'string',
  753. 'location' => 'uri',
  754. ),
  755. 'Paths' => array(
  756. 'required' => true,
  757. 'type' => 'object',
  758. 'location' => 'xml',
  759. 'properties' => array(
  760. 'Quantity' => array(
  761. 'required' => true,
  762. 'type' => 'numeric',
  763. ),
  764. 'Items' => array(
  765. 'type' => 'array',
  766. 'items' => array(
  767. 'name' => 'Path',
  768. 'type' => 'string',
  769. ),
  770. ),
  771. ),
  772. ),
  773. 'CallerReference' => array(
  774. 'required' => true,
  775. 'type' => 'string',
  776. 'location' => 'xml',
  777. ),
  778. 'command.expects' => array(
  779. 'static' => true,
  780. 'default' => 'application/xml',
  781. ),
  782. ),
  783. 'errorResponses' => array(
  784. array(
  785. 'reason' => 'Access denied.',
  786. 'class' => 'AccessDeniedException',
  787. ),
  788. array(
  789. 'reason' => 'This operation requires a body. Ensure that the body is present and the Content-Type header is set.',
  790. 'class' => 'MissingBodyException',
  791. ),
  792. array(
  793. 'reason' => 'The argument is invalid.',
  794. 'class' => 'InvalidArgumentException',
  795. ),
  796. array(
  797. 'reason' => 'The specified distribution does not exist.',
  798. 'class' => 'NoSuchDistributionException',
  799. ),
  800. array(
  801. 'class' => 'BatchTooLargeException',
  802. ),
  803. array(
  804. 'reason' => 'You have exceeded the maximum number of allowable InProgress invalidation batch requests, or invalidation objects.',
  805. 'class' => 'TooManyInvalidationsInProgressException',
  806. ),
  807. array(
  808. 'reason' => 'The value of Quantity and the size of Items do not match.',
  809. 'class' => 'InconsistentQuantitiesException',
  810. ),
  811. ),
  812. ),
  813. 'CreateStreamingDistribution' => array(
  814. 'httpMethod' => 'POST',
  815. 'uri' => '/2014-10-21/streaming-distribution',
  816. 'class' => 'Guzzle\\Service\\Command\\OperationCommand',
  817. 'responseClass' => 'CreateStreamingDistributionResult',
  818. 'responseType' => 'model',
  819. 'data' => array(
  820. 'xmlRoot' => array(
  821. 'name' => 'StreamingDistributionConfig',
  822. 'namespaces' => array(
  823. 'http://cloudfront.amazonaws.com/doc/2014-10-21/',
  824. ),
  825. ),
  826. ),
  827. 'parameters' => array(
  828. 'CallerReference' => array(
  829. 'required' => true,
  830. 'type' => 'string',
  831. 'location' => 'xml',
  832. ),
  833. 'S3Origin' => array(
  834. 'required' => true,
  835. 'type' => 'object',
  836. 'location' => 'xml',
  837. 'properties' => array(
  838. 'DomainName' => array(
  839. 'required' => true,
  840. 'type' => 'string',
  841. ),
  842. 'OriginAccessIdentity' => array(
  843. 'required' => true,
  844. 'type' => 'string',
  845. ),
  846. ),
  847. ),
  848. 'Aliases' => array(
  849. 'required' => true,
  850. 'type' => 'object',
  851. 'location' => 'xml',
  852. 'properties' => array(
  853. 'Quantity' => array(
  854. 'required' => true,
  855. 'type' => 'numeric',
  856. ),
  857. 'Items' => array(
  858. 'type' => 'array',
  859. 'items' => array(
  860. 'name' => 'CNAME',
  861. 'type' => 'string',
  862. ),
  863. ),
  864. ),
  865. ),
  866. 'Comment' => array(
  867. 'required' => true,
  868. 'type' => 'string',
  869. 'location' => 'xml',
  870. ),
  871. 'Logging' => array(
  872. 'required' => true,
  873. 'type' => 'object',
  874. 'location' => 'xml',
  875. 'properties' => array(
  876. 'Enabled' => array(
  877. 'required' => true,
  878. 'type' => 'boolean',
  879. 'format' => 'boolean-string',
  880. ),
  881. 'Bucket' => array(
  882. 'required' => true,
  883. 'type' => 'string',
  884. ),
  885. 'Prefix' => array(
  886. 'required' => true,
  887. 'type' => 'string',
  888. ),
  889. ),
  890. ),
  891. 'TrustedSigners' => array(
  892. 'required' => true,
  893. 'type' => 'object',
  894. 'location' => 'xml',
  895. 'properties' => array(
  896. 'Enabled' => array(
  897. 'required' => true,
  898. 'type' => 'boolean',
  899. 'format' => 'boolean-string',
  900. ),
  901. 'Quantity' => array(
  902. 'required' => true,
  903. 'type' => 'numeric',
  904. ),
  905. 'Items' => array(
  906. 'type' => 'array',
  907. 'items' => array(
  908. 'name' => 'AwsAccountNumber',
  909. 'type' => 'string',
  910. ),
  911. ),
  912. ),
  913. ),
  914. 'PriceClass' => array(
  915. 'required' => true,
  916. 'type' => 'string',
  917. 'location' => 'xml',
  918. ),
  919. 'Enabled' => array(
  920. 'required' => true,
  921. 'type' => 'boolean',
  922. 'format' => 'boolean-string',
  923. 'location' => 'xml',
  924. ),
  925. 'command.expects' => array(
  926. 'static' => true,
  927. 'default' => 'application/xml',
  928. ),
  929. ),
  930. 'errorResponses' => array(
  931. array(
  932. 'class' => 'CNAMEAlreadyExistsException',
  933. ),
  934. array(
  935. 'class' => 'StreamingDistributionAlreadyExistsException',
  936. ),
  937. array(
  938. 'reason' => 'The Amazon S3 origin server specified does not refer to a valid Amazon S3 bucket.',
  939. 'class' => 'InvalidOriginException',
  940. ),
  941. array(
  942. 'reason' => 'The origin access identity is not valid or doesn\'t exist.',
  943. 'class' => 'InvalidOriginAccessIdentityException',
  944. ),
  945. array(
  946. 'reason' => 'Access denied.',
  947. 'class' => 'AccessDeniedException',
  948. ),
  949. array(
  950. 'reason' => 'Your request contains more trusted signers than are allowed per distribution.',
  951. 'class' => 'TooManyTrustedSignersException',
  952. ),
  953. array(
  954. 'reason' => 'One or more of your trusted signers do not exist.',
  955. 'class' => 'TrustedSignerDoesNotExistException',
  956. ),
  957. array(
  958. 'reason' => 'This operation requires a body. Ensure that the body is present and the Content-Type header is set.',
  959. 'class' => 'MissingBodyException',
  960. ),
  961. array(
  962. 'class' => 'TooManyStreamingDistributionCNAMEsException',
  963. ),
  964. array(
  965. 'reason' => 'Processing your request would cause you to exceed the maximum number of streaming distributions allowed.',
  966. 'class' => 'TooManyStreamingDistributionsException',
  967. ),
  968. array(
  969. 'reason' => 'The argument is invalid.',
  970. 'class' => 'InvalidArgumentException',
  971. ),
  972. array(
  973. 'reason' => 'The value of Quantity and the size of Items do not match.',
  974. 'class' => 'InconsistentQuantitiesException',
  975. ),
  976. ),
  977. ),
  978. 'DeleteCloudFrontOriginAccessIdentity' => array(
  979. 'httpMethod' => 'DELETE',
  980. 'uri' => '/2014-10-21/origin-access-identity/cloudfront/{Id}',
  981. 'class' => 'Guzzle\\Service\\Command\\OperationCommand',
  982. 'responseClass' => 'DeleteCloudFrontOriginAccessIdentity2014_10_21Output',
  983. 'responseType' => 'model',
  984. 'parameters' => array(
  985. 'Id' => array(
  986. 'required' => true,
  987. 'type' => 'string',
  988. 'location' => 'uri',
  989. ),
  990. 'IfMatch' => array(
  991. 'type' => 'string',
  992. 'location' => 'header',
  993. 'sentAs' => 'If-Match',
  994. ),
  995. ),
  996. 'errorResponses' => array(
  997. array(
  998. 'reason' => 'Access denied.',
  999. 'class' => 'AccessDeniedException',
  1000. ),
  1001. array(
  1002. 'reason' => 'The If-Match version is missing or not valid for the distribution.',
  1003. 'class' => 'InvalidIfMatchVersionException',
  1004. ),
  1005. array(
  1006. 'reason' => 'The specified origin access identity does not exist.',
  1007. 'class' => 'NoSuchCloudFrontOriginAccessIdentityException',
  1008. ),
  1009. array(
  1010. 'reason' => 'The precondition given in one or more of the request-header fields evaluated to false.',
  1011. 'class' => 'PreconditionFailedException',
  1012. ),
  1013. array(
  1014. 'class' => 'CloudFrontOriginAccessIdentityInUseException',
  1015. ),
  1016. ),
  1017. ),
  1018. 'DeleteDistribution' => array(
  1019. 'httpMethod' => 'DELETE',
  1020. 'uri' => '/2014-10-21/distribution/{Id}',
  1021. 'class' => 'Guzzle\\Service\\Command\\OperationCommand',
  1022. 'responseClass' => 'DeleteDistribution2014_10_21Output',
  1023. 'responseType' => 'model',
  1024. 'parameters' => array(
  1025. 'Id' => array(
  1026. 'required' => true,
  1027. 'type' => 'string',
  1028. 'location' => 'uri',
  1029. ),
  1030. 'IfMatch' => array(
  1031. 'type' => 'string',
  1032. 'location' => 'header',
  1033. 'sentAs' => 'If-Match',
  1034. ),
  1035. ),
  1036. 'errorResponses' => array(
  1037. array(
  1038. 'reason' => 'Access denied.',
  1039. 'class' => 'AccessDeniedException',
  1040. ),
  1041. array(
  1042. 'class' => 'DistributionNotDisabledException',
  1043. ),
  1044. array(
  1045. 'reason' => 'The If-Match version is missing or not valid for the distribution.',
  1046. 'class' => 'InvalidIfMatchVersionException',
  1047. ),
  1048. array(
  1049. 'reason' => 'The specified distribution does not exist.',
  1050. 'class' => 'NoSuchDistributionException',
  1051. ),
  1052. array(
  1053. 'reason' => 'The precondition given in one or more of the request-header fields evaluated to false.',
  1054. 'class' => 'PreconditionFailedException',
  1055. ),
  1056. ),
  1057. ),
  1058. 'DeleteStreamingDistribution' => array(
  1059. 'httpMethod' => 'DELETE',
  1060. 'uri' => '/2014-10-21/streaming-distribution/{Id}',
  1061. 'class' => 'Guzzle\\Service\\Command\\OperationCommand',
  1062. 'responseClass' => 'DeleteStreamingDistribution2014_10_21Output',
  1063. 'responseType' => 'model',
  1064. 'parameters' => a