/api/vendor/aws/aws-sdk-php/src/Aws/CloudTrail/Resources/cloudtrail-2013-11-01.php

https://gitlab.com/x33n/respond · PHP · 615 lines · 600 code · 1 blank · 14 comment · 0 complexity · ad592b66a3c400ba1ebaa4ad7860c73c 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' => '2013-11-01',
  18. 'endpointPrefix' => 'cloudtrail',
  19. 'serviceFullName' => 'AWS CloudTrail',
  20. 'serviceAbbreviation' => 'CloudTrail',
  21. 'serviceType' => 'json',
  22. 'jsonVersion' => '1.1',
  23. 'targetPrefix' => 'com.amazonaws.cloudtrail.v20131101.CloudTrail_20131101.',
  24. 'signatureVersion' => 'v4',
  25. 'namespace' => 'CloudTrail',
  26. 'regions' => array(
  27. 'ap-northeast-1' => array(
  28. 'http' => false,
  29. 'https' => true,
  30. 'hostname' => 'cloudtrail.ap-northeast-1.amazonaws.com',
  31. ),
  32. 'ap-southeast-1' => array(
  33. 'http' => false,
  34. 'https' => true,
  35. 'hostname' => 'cloudtrail.ap-southeast-1.amazonaws.com',
  36. ),
  37. 'ap-southeast-2' => array(
  38. 'http' => false,
  39. 'https' => true,
  40. 'hostname' => 'cloudtrail.ap-southeast-2.amazonaws.com',
  41. ),
  42. 'eu-west-1' => array(
  43. 'http' => false,
  44. 'https' => true,
  45. 'hostname' => 'cloudtrail.eu-west-1.amazonaws.com',
  46. ),
  47. 'us-east-1' => array(
  48. 'http' => false,
  49. 'https' => true,
  50. 'hostname' => 'cloudtrail.us-east-1.amazonaws.com',
  51. ),
  52. 'us-west-1' => array(
  53. 'http' => false,
  54. 'https' => true,
  55. 'hostname' => 'cloudtrail.us-west-1.amazonaws.com',
  56. ),
  57. 'us-west-2' => array(
  58. 'http' => false,
  59. 'https' => true,
  60. 'hostname' => 'cloudtrail.us-west-2.amazonaws.com',
  61. ),
  62. 'sa-east-1' => array(
  63. 'http' => false,
  64. 'https' => true,
  65. 'hostname' => 'cloudtrail.sa-east-1.amazonaws.com',
  66. ),
  67. ),
  68. 'operations' => array(
  69. 'CreateTrail' => array(
  70. 'httpMethod' => 'POST',
  71. 'uri' => '/',
  72. 'class' => 'Aws\\Common\\Command\\JsonCommand',
  73. 'responseClass' => 'CreateTrailResponse',
  74. 'responseType' => 'model',
  75. 'parameters' => array(
  76. 'Content-Type' => array(
  77. 'static' => true,
  78. 'location' => 'header',
  79. 'default' => 'application/x-amz-json-1.1',
  80. ),
  81. 'command.expects' => array(
  82. 'static' => true,
  83. 'default' => 'application/json',
  84. ),
  85. 'X-Amz-Target' => array(
  86. 'static' => true,
  87. 'location' => 'header',
  88. 'default' => 'com.amazonaws.cloudtrail.v20131101.CloudTrail_20131101.CreateTrail',
  89. ),
  90. 'Name' => array(
  91. 'required' => true,
  92. 'type' => 'string',
  93. 'location' => 'json',
  94. ),
  95. 'S3BucketName' => array(
  96. 'required' => true,
  97. 'type' => 'string',
  98. 'location' => 'json',
  99. ),
  100. 'S3KeyPrefix' => array(
  101. 'type' => 'string',
  102. 'location' => 'json',
  103. ),
  104. 'SnsTopicName' => array(
  105. 'type' => 'string',
  106. 'location' => 'json',
  107. ),
  108. 'IncludeGlobalServiceEvents' => array(
  109. 'type' => 'boolean',
  110. 'format' => 'boolean-string',
  111. 'location' => 'json',
  112. ),
  113. 'CloudWatchLogsLogGroupArn' => array(
  114. 'type' => 'string',
  115. 'location' => 'json',
  116. ),
  117. 'CloudWatchLogsRoleArn' => array(
  118. 'type' => 'string',
  119. 'location' => 'json',
  120. ),
  121. ),
  122. 'errorResponses' => array(
  123. array(
  124. 'reason' => 'This exception is thrown when the maximum number of trails is reached.',
  125. 'class' => 'MaximumNumberOfTrailsExceededException',
  126. ),
  127. array(
  128. 'reason' => 'This exception is thrown when the specified trail already exists.',
  129. 'class' => 'TrailAlreadyExistsException',
  130. ),
  131. array(
  132. 'reason' => 'This exception is thrown when the specified S3 bucket does not exist.',
  133. 'class' => 'S3BucketDoesNotExistException',
  134. ),
  135. array(
  136. 'reason' => 'This exception is thrown when the policy on the S3 bucket is not sufficient.',
  137. 'class' => 'InsufficientS3BucketPolicyException',
  138. ),
  139. array(
  140. 'reason' => 'This exception is thrown when the policy on the SNS topic is not sufficient.',
  141. 'class' => 'InsufficientSnsTopicPolicyException',
  142. ),
  143. array(
  144. 'reason' => 'This exception is thrown when the provided S3 bucket name is not valid.',
  145. 'class' => 'InvalidS3BucketNameException',
  146. ),
  147. array(
  148. 'reason' => 'This exception is thrown when the provided S3 prefix is not valid.',
  149. 'class' => 'InvalidS3PrefixException',
  150. ),
  151. array(
  152. 'reason' => 'This exception is thrown when the provided SNS topic name is not valid.',
  153. 'class' => 'InvalidSnsTopicNameException',
  154. ),
  155. array(
  156. 'reason' => 'This exception is thrown when the provided trail name is not valid.',
  157. 'class' => 'InvalidTrailNameException',
  158. ),
  159. array(
  160. 'reason' => 'This exception is thrown when the provided CloudWatch log group is not valid.',
  161. 'class' => 'InvalidCloudWatchLogsLogGroupArnException',
  162. ),
  163. array(
  164. 'reason' => 'This exception is thrown when the provided role is not valid.',
  165. 'class' => 'InvalidCloudWatchLogsRoleArnException',
  166. ),
  167. array(
  168. 'reason' => 'Cannot set a CloudWatch Logs delivery for this region.',
  169. 'class' => 'CloudWatchLogsDeliveryUnavailableException',
  170. ),
  171. ),
  172. ),
  173. 'DeleteTrail' => array(
  174. 'httpMethod' => 'POST',
  175. 'uri' => '/',
  176. 'class' => 'Aws\\Common\\Command\\JsonCommand',
  177. 'responseClass' => 'EmptyOutput',
  178. 'responseType' => 'model',
  179. 'parameters' => array(
  180. 'Content-Type' => array(
  181. 'static' => true,
  182. 'location' => 'header',
  183. 'default' => 'application/x-amz-json-1.1',
  184. ),
  185. 'command.expects' => array(
  186. 'static' => true,
  187. 'default' => 'application/json',
  188. ),
  189. 'X-Amz-Target' => array(
  190. 'static' => true,
  191. 'location' => 'header',
  192. 'default' => 'com.amazonaws.cloudtrail.v20131101.CloudTrail_20131101.DeleteTrail',
  193. ),
  194. 'Name' => array(
  195. 'required' => true,
  196. 'type' => 'string',
  197. 'location' => 'json',
  198. ),
  199. ),
  200. 'errorResponses' => array(
  201. array(
  202. 'reason' => 'This exception is thrown when the trail with the given name is not found.',
  203. 'class' => 'TrailNotFoundException',
  204. ),
  205. array(
  206. 'reason' => 'This exception is thrown when the provided trail name is not valid.',
  207. 'class' => 'InvalidTrailNameException',
  208. ),
  209. ),
  210. ),
  211. 'DescribeTrails' => array(
  212. 'httpMethod' => 'POST',
  213. 'uri' => '/',
  214. 'class' => 'Aws\\Common\\Command\\JsonCommand',
  215. 'responseClass' => 'DescribeTrailsResponse',
  216. 'responseType' => 'model',
  217. 'parameters' => array(
  218. 'Content-Type' => array(
  219. 'static' => true,
  220. 'location' => 'header',
  221. 'default' => 'application/x-amz-json-1.1',
  222. ),
  223. 'command.expects' => array(
  224. 'static' => true,
  225. 'default' => 'application/json',
  226. ),
  227. 'X-Amz-Target' => array(
  228. 'static' => true,
  229. 'location' => 'header',
  230. 'default' => 'com.amazonaws.cloudtrail.v20131101.CloudTrail_20131101.DescribeTrails',
  231. ),
  232. 'trailNameList' => array(
  233. 'type' => 'array',
  234. 'location' => 'json',
  235. 'items' => array(
  236. 'name' => 'String',
  237. 'type' => 'string',
  238. ),
  239. ),
  240. ),
  241. ),
  242. 'GetTrailStatus' => array(
  243. 'httpMethod' => 'POST',
  244. 'uri' => '/',
  245. 'class' => 'Aws\\Common\\Command\\JsonCommand',
  246. 'responseClass' => 'GetTrailStatusResponse',
  247. 'responseType' => 'model',
  248. 'parameters' => array(
  249. 'Content-Type' => array(
  250. 'static' => true,
  251. 'location' => 'header',
  252. 'default' => 'application/x-amz-json-1.1',
  253. ),
  254. 'command.expects' => array(
  255. 'static' => true,
  256. 'default' => 'application/json',
  257. ),
  258. 'X-Amz-Target' => array(
  259. 'static' => true,
  260. 'location' => 'header',
  261. 'default' => 'com.amazonaws.cloudtrail.v20131101.CloudTrail_20131101.GetTrailStatus',
  262. ),
  263. 'Name' => array(
  264. 'required' => true,
  265. 'type' => 'string',
  266. 'location' => 'json',
  267. ),
  268. ),
  269. 'errorResponses' => array(
  270. array(
  271. 'reason' => 'This exception is thrown when the trail with the given name is not found.',
  272. 'class' => 'TrailNotFoundException',
  273. ),
  274. array(
  275. 'reason' => 'This exception is thrown when the provided trail name is not valid.',
  276. 'class' => 'InvalidTrailNameException',
  277. ),
  278. ),
  279. ),
  280. 'StartLogging' => array(
  281. 'httpMethod' => 'POST',
  282. 'uri' => '/',
  283. 'class' => 'Aws\\Common\\Command\\JsonCommand',
  284. 'responseClass' => 'EmptyOutput',
  285. 'responseType' => 'model',
  286. 'parameters' => array(
  287. 'Content-Type' => array(
  288. 'static' => true,
  289. 'location' => 'header',
  290. 'default' => 'application/x-amz-json-1.1',
  291. ),
  292. 'command.expects' => array(
  293. 'static' => true,
  294. 'default' => 'application/json',
  295. ),
  296. 'X-Amz-Target' => array(
  297. 'static' => true,
  298. 'location' => 'header',
  299. 'default' => 'com.amazonaws.cloudtrail.v20131101.CloudTrail_20131101.StartLogging',
  300. ),
  301. 'Name' => array(
  302. 'required' => true,
  303. 'type' => 'string',
  304. 'location' => 'json',
  305. ),
  306. ),
  307. 'errorResponses' => array(
  308. array(
  309. 'reason' => 'This exception is thrown when the trail with the given name is not found.',
  310. 'class' => 'TrailNotFoundException',
  311. ),
  312. array(
  313. 'reason' => 'This exception is thrown when the provided trail name is not valid.',
  314. 'class' => 'InvalidTrailNameException',
  315. ),
  316. ),
  317. ),
  318. 'StopLogging' => array(
  319. 'httpMethod' => 'POST',
  320. 'uri' => '/',
  321. 'class' => 'Aws\\Common\\Command\\JsonCommand',
  322. 'responseClass' => 'EmptyOutput',
  323. 'responseType' => 'model',
  324. 'parameters' => array(
  325. 'Content-Type' => array(
  326. 'static' => true,
  327. 'location' => 'header',
  328. 'default' => 'application/x-amz-json-1.1',
  329. ),
  330. 'command.expects' => array(
  331. 'static' => true,
  332. 'default' => 'application/json',
  333. ),
  334. 'X-Amz-Target' => array(
  335. 'static' => true,
  336. 'location' => 'header',
  337. 'default' => 'com.amazonaws.cloudtrail.v20131101.CloudTrail_20131101.StopLogging',
  338. ),
  339. 'Name' => array(
  340. 'required' => true,
  341. 'type' => 'string',
  342. 'location' => 'json',
  343. ),
  344. ),
  345. 'errorResponses' => array(
  346. array(
  347. 'reason' => 'This exception is thrown when the trail with the given name is not found.',
  348. 'class' => 'TrailNotFoundException',
  349. ),
  350. array(
  351. 'reason' => 'This exception is thrown when the provided trail name is not valid.',
  352. 'class' => 'InvalidTrailNameException',
  353. ),
  354. ),
  355. ),
  356. 'UpdateTrail' => array(
  357. 'httpMethod' => 'POST',
  358. 'uri' => '/',
  359. 'class' => 'Aws\\Common\\Command\\JsonCommand',
  360. 'responseClass' => 'UpdateTrailResponse',
  361. 'responseType' => 'model',
  362. 'parameters' => array(
  363. 'Content-Type' => array(
  364. 'static' => true,
  365. 'location' => 'header',
  366. 'default' => 'application/x-amz-json-1.1',
  367. ),
  368. 'command.expects' => array(
  369. 'static' => true,
  370. 'default' => 'application/json',
  371. ),
  372. 'X-Amz-Target' => array(
  373. 'static' => true,
  374. 'location' => 'header',
  375. 'default' => 'com.amazonaws.cloudtrail.v20131101.CloudTrail_20131101.UpdateTrail',
  376. ),
  377. 'Name' => array(
  378. 'required' => true,
  379. 'type' => 'string',
  380. 'location' => 'json',
  381. ),
  382. 'S3BucketName' => array(
  383. 'type' => 'string',
  384. 'location' => 'json',
  385. ),
  386. 'S3KeyPrefix' => array(
  387. 'type' => 'string',
  388. 'location' => 'json',
  389. ),
  390. 'SnsTopicName' => array(
  391. 'type' => 'string',
  392. 'location' => 'json',
  393. ),
  394. 'IncludeGlobalServiceEvents' => array(
  395. 'type' => 'boolean',
  396. 'format' => 'boolean-string',
  397. 'location' => 'json',
  398. ),
  399. 'CloudWatchLogsLogGroupArn' => array(
  400. 'type' => 'string',
  401. 'location' => 'json',
  402. ),
  403. 'CloudWatchLogsRoleArn' => array(
  404. 'type' => 'string',
  405. 'location' => 'json',
  406. ),
  407. ),
  408. 'errorResponses' => array(
  409. array(
  410. 'reason' => 'This exception is thrown when the specified S3 bucket does not exist.',
  411. 'class' => 'S3BucketDoesNotExistException',
  412. ),
  413. array(
  414. 'reason' => 'This exception is thrown when the policy on the S3 bucket is not sufficient.',
  415. 'class' => 'InsufficientS3BucketPolicyException',
  416. ),
  417. array(
  418. 'reason' => 'This exception is thrown when the policy on the SNS topic is not sufficient.',
  419. 'class' => 'InsufficientSnsTopicPolicyException',
  420. ),
  421. array(
  422. 'reason' => 'This exception is thrown when the trail with the given name is not found.',
  423. 'class' => 'TrailNotFoundException',
  424. ),
  425. array(
  426. 'reason' => 'This exception is thrown when the provided S3 bucket name is not valid.',
  427. 'class' => 'InvalidS3BucketNameException',
  428. ),
  429. array(
  430. 'reason' => 'This exception is thrown when the provided S3 prefix is not valid.',
  431. 'class' => 'InvalidS3PrefixException',
  432. ),
  433. array(
  434. 'reason' => 'This exception is thrown when the provided SNS topic name is not valid.',
  435. 'class' => 'InvalidSnsTopicNameException',
  436. ),
  437. array(
  438. 'reason' => 'This exception is thrown when the provided trail name is not valid.',
  439. 'class' => 'InvalidTrailNameException',
  440. ),
  441. array(
  442. 'reason' => 'This exception is thrown when the provided CloudWatch log group is not valid.',
  443. 'class' => 'InvalidCloudWatchLogsLogGroupArnException',
  444. ),
  445. array(
  446. 'reason' => 'This exception is thrown when the provided role is not valid.',
  447. 'class' => 'InvalidCloudWatchLogsRoleArnException',
  448. ),
  449. array(
  450. 'reason' => 'Cannot set a CloudWatch Logs delivery for this region.',
  451. 'class' => 'CloudWatchLogsDeliveryUnavailableException',
  452. ),
  453. ),
  454. ),
  455. ),
  456. 'models' => array(
  457. 'CreateTrailResponse' => array(
  458. 'type' => 'object',
  459. 'additionalProperties' => true,
  460. 'properties' => array(
  461. 'Name' => array(
  462. 'type' => 'string',
  463. 'location' => 'json',
  464. ),
  465. 'S3BucketName' => array(
  466. 'type' => 'string',
  467. 'location' => 'json',
  468. ),
  469. 'S3KeyPrefix' => array(
  470. 'type' => 'string',
  471. 'location' => 'json',
  472. ),
  473. 'SnsTopicName' => array(
  474. 'type' => 'string',
  475. 'location' => 'json',
  476. ),
  477. 'IncludeGlobalServiceEvents' => array(
  478. 'type' => 'boolean',
  479. 'location' => 'json',
  480. ),
  481. 'CloudWatchLogsLogGroupArn' => array(
  482. 'type' => 'string',
  483. 'location' => 'json',
  484. ),
  485. 'CloudWatchLogsRoleArn' => array(
  486. 'type' => 'string',
  487. 'location' => 'json',
  488. ),
  489. ),
  490. ),
  491. 'EmptyOutput' => array(
  492. 'type' => 'object',
  493. 'additionalProperties' => true,
  494. ),
  495. 'DescribeTrailsResponse' => array(
  496. 'type' => 'object',
  497. 'additionalProperties' => true,
  498. 'properties' => array(
  499. 'trailList' => array(
  500. 'type' => 'array',
  501. 'location' => 'json',
  502. 'items' => array(
  503. 'name' => 'Trail',
  504. 'type' => 'object',
  505. 'properties' => array(
  506. 'Name' => array(
  507. 'type' => 'string',
  508. ),
  509. 'S3BucketName' => array(
  510. 'type' => 'string',
  511. ),
  512. 'S3KeyPrefix' => array(
  513. 'type' => 'string',
  514. ),
  515. 'SnsTopicName' => array(
  516. 'type' => 'string',
  517. ),
  518. 'IncludeGlobalServiceEvents' => array(
  519. 'type' => 'boolean',
  520. ),
  521. 'CloudWatchLogsLogGroupArn' => array(
  522. 'type' => 'string',
  523. ),
  524. 'CloudWatchLogsRoleArn' => array(
  525. 'type' => 'string',
  526. ),
  527. ),
  528. ),
  529. ),
  530. ),
  531. ),
  532. 'GetTrailStatusResponse' => array(
  533. 'type' => 'object',
  534. 'additionalProperties' => true,
  535. 'properties' => array(
  536. 'IsLogging' => array(
  537. 'type' => 'boolean',
  538. 'location' => 'json',
  539. ),
  540. 'LatestDeliveryError' => array(
  541. 'type' => 'string',
  542. 'location' => 'json',
  543. ),
  544. 'LatestNotificationError' => array(
  545. 'type' => 'string',
  546. 'location' => 'json',
  547. ),
  548. 'LatestDeliveryTime' => array(
  549. 'type' => 'string',
  550. 'location' => 'json',
  551. ),
  552. 'LatestNotificationTime' => array(
  553. 'type' => 'string',
  554. 'location' => 'json',
  555. ),
  556. 'StartLoggingTime' => array(
  557. 'type' => 'string',
  558. 'location' => 'json',
  559. ),
  560. 'StopLoggingTime' => array(
  561. 'type' => 'string',
  562. 'location' => 'json',
  563. ),
  564. 'LatestCloudWatchLogsDeliveryError' => array(
  565. 'type' => 'string',
  566. 'location' => 'json',
  567. ),
  568. 'LatestCloudWatchLogsDeliveryTime' => array(
  569. 'type' => 'string',
  570. 'location' => 'json',
  571. ),
  572. ),
  573. ),
  574. 'UpdateTrailResponse' => array(
  575. 'type' => 'object',
  576. 'additionalProperties' => true,
  577. 'properties' => array(
  578. 'Name' => array(
  579. 'type' => 'string',
  580. 'location' => 'json',
  581. ),
  582. 'S3BucketName' => array(
  583. 'type' => 'string',
  584. 'location' => 'json',
  585. ),
  586. 'S3KeyPrefix' => array(
  587. 'type' => 'string',
  588. 'location' => 'json',
  589. ),
  590. 'SnsTopicName' => array(
  591. 'type' => 'string',
  592. 'location' => 'json',
  593. ),
  594. 'IncludeGlobalServiceEvents' => array(
  595. 'type' => 'boolean',
  596. 'location' => 'json',
  597. ),
  598. 'CloudWatchLogsLogGroupArn' => array(
  599. 'type' => 'string',
  600. 'location' => 'json',
  601. ),
  602. 'CloudWatchLogsRoleArn' => array(
  603. 'type' => 'string',
  604. 'location' => 'json',
  605. ),
  606. ),
  607. ),
  608. ),
  609. 'iterators' => array(
  610. 'DescribeTrails' => array(
  611. 'result_key' => 'trailList',
  612. ),
  613. ),
  614. );