docdbelastic.d.ts 32 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706
  1. import {Request} from '../lib/request';
  2. import {Response} from '../lib/response';
  3. import {AWSError} from '../lib/error';
  4. import {Service} from '../lib/service';
  5. import {ServiceConfigurationOptions} from '../lib/service';
  6. import {ConfigBase as Config} from '../lib/config-base';
  7. interface Blob {}
  8. declare class DocDBElastic extends Service {
  9. /**
  10. * Constructs a service object. This object has one method for each API operation.
  11. */
  12. constructor(options?: DocDBElastic.Types.ClientConfiguration)
  13. config: Config & DocDBElastic.Types.ClientConfiguration;
  14. /**
  15. * Copies a snapshot of an elastic cluster.
  16. */
  17. copyClusterSnapshot(params: DocDBElastic.Types.CopyClusterSnapshotInput, callback?: (err: AWSError, data: DocDBElastic.Types.CopyClusterSnapshotOutput) => void): Request<DocDBElastic.Types.CopyClusterSnapshotOutput, AWSError>;
  18. /**
  19. * Copies a snapshot of an elastic cluster.
  20. */
  21. copyClusterSnapshot(callback?: (err: AWSError, data: DocDBElastic.Types.CopyClusterSnapshotOutput) => void): Request<DocDBElastic.Types.CopyClusterSnapshotOutput, AWSError>;
  22. /**
  23. * Creates a new Amazon DocumentDB elastic cluster and returns its cluster structure.
  24. */
  25. createCluster(params: DocDBElastic.Types.CreateClusterInput, callback?: (err: AWSError, data: DocDBElastic.Types.CreateClusterOutput) => void): Request<DocDBElastic.Types.CreateClusterOutput, AWSError>;
  26. /**
  27. * Creates a new Amazon DocumentDB elastic cluster and returns its cluster structure.
  28. */
  29. createCluster(callback?: (err: AWSError, data: DocDBElastic.Types.CreateClusterOutput) => void): Request<DocDBElastic.Types.CreateClusterOutput, AWSError>;
  30. /**
  31. * Creates a snapshot of an elastic cluster.
  32. */
  33. createClusterSnapshot(params: DocDBElastic.Types.CreateClusterSnapshotInput, callback?: (err: AWSError, data: DocDBElastic.Types.CreateClusterSnapshotOutput) => void): Request<DocDBElastic.Types.CreateClusterSnapshotOutput, AWSError>;
  34. /**
  35. * Creates a snapshot of an elastic cluster.
  36. */
  37. createClusterSnapshot(callback?: (err: AWSError, data: DocDBElastic.Types.CreateClusterSnapshotOutput) => void): Request<DocDBElastic.Types.CreateClusterSnapshotOutput, AWSError>;
  38. /**
  39. * Delete an elastic cluster.
  40. */
  41. deleteCluster(params: DocDBElastic.Types.DeleteClusterInput, callback?: (err: AWSError, data: DocDBElastic.Types.DeleteClusterOutput) => void): Request<DocDBElastic.Types.DeleteClusterOutput, AWSError>;
  42. /**
  43. * Delete an elastic cluster.
  44. */
  45. deleteCluster(callback?: (err: AWSError, data: DocDBElastic.Types.DeleteClusterOutput) => void): Request<DocDBElastic.Types.DeleteClusterOutput, AWSError>;
  46. /**
  47. * Delete an elastic cluster snapshot.
  48. */
  49. deleteClusterSnapshot(params: DocDBElastic.Types.DeleteClusterSnapshotInput, callback?: (err: AWSError, data: DocDBElastic.Types.DeleteClusterSnapshotOutput) => void): Request<DocDBElastic.Types.DeleteClusterSnapshotOutput, AWSError>;
  50. /**
  51. * Delete an elastic cluster snapshot.
  52. */
  53. deleteClusterSnapshot(callback?: (err: AWSError, data: DocDBElastic.Types.DeleteClusterSnapshotOutput) => void): Request<DocDBElastic.Types.DeleteClusterSnapshotOutput, AWSError>;
  54. /**
  55. * Returns information about a specific elastic cluster.
  56. */
  57. getCluster(params: DocDBElastic.Types.GetClusterInput, callback?: (err: AWSError, data: DocDBElastic.Types.GetClusterOutput) => void): Request<DocDBElastic.Types.GetClusterOutput, AWSError>;
  58. /**
  59. * Returns information about a specific elastic cluster.
  60. */
  61. getCluster(callback?: (err: AWSError, data: DocDBElastic.Types.GetClusterOutput) => void): Request<DocDBElastic.Types.GetClusterOutput, AWSError>;
  62. /**
  63. * Returns information about a specific elastic cluster snapshot
  64. */
  65. getClusterSnapshot(params: DocDBElastic.Types.GetClusterSnapshotInput, callback?: (err: AWSError, data: DocDBElastic.Types.GetClusterSnapshotOutput) => void): Request<DocDBElastic.Types.GetClusterSnapshotOutput, AWSError>;
  66. /**
  67. * Returns information about a specific elastic cluster snapshot
  68. */
  69. getClusterSnapshot(callback?: (err: AWSError, data: DocDBElastic.Types.GetClusterSnapshotOutput) => void): Request<DocDBElastic.Types.GetClusterSnapshotOutput, AWSError>;
  70. /**
  71. * Returns information about snapshots for a specified elastic cluster.
  72. */
  73. listClusterSnapshots(params: DocDBElastic.Types.ListClusterSnapshotsInput, callback?: (err: AWSError, data: DocDBElastic.Types.ListClusterSnapshotsOutput) => void): Request<DocDBElastic.Types.ListClusterSnapshotsOutput, AWSError>;
  74. /**
  75. * Returns information about snapshots for a specified elastic cluster.
  76. */
  77. listClusterSnapshots(callback?: (err: AWSError, data: DocDBElastic.Types.ListClusterSnapshotsOutput) => void): Request<DocDBElastic.Types.ListClusterSnapshotsOutput, AWSError>;
  78. /**
  79. * Returns information about provisioned Amazon DocumentDB elastic clusters.
  80. */
  81. listClusters(params: DocDBElastic.Types.ListClustersInput, callback?: (err: AWSError, data: DocDBElastic.Types.ListClustersOutput) => void): Request<DocDBElastic.Types.ListClustersOutput, AWSError>;
  82. /**
  83. * Returns information about provisioned Amazon DocumentDB elastic clusters.
  84. */
  85. listClusters(callback?: (err: AWSError, data: DocDBElastic.Types.ListClustersOutput) => void): Request<DocDBElastic.Types.ListClustersOutput, AWSError>;
  86. /**
  87. * Lists all tags on a elastic cluster resource
  88. */
  89. listTagsForResource(params: DocDBElastic.Types.ListTagsForResourceRequest, callback?: (err: AWSError, data: DocDBElastic.Types.ListTagsForResourceResponse) => void): Request<DocDBElastic.Types.ListTagsForResourceResponse, AWSError>;
  90. /**
  91. * Lists all tags on a elastic cluster resource
  92. */
  93. listTagsForResource(callback?: (err: AWSError, data: DocDBElastic.Types.ListTagsForResourceResponse) => void): Request<DocDBElastic.Types.ListTagsForResourceResponse, AWSError>;
  94. /**
  95. * Restores an elastic cluster from a snapshot.
  96. */
  97. restoreClusterFromSnapshot(params: DocDBElastic.Types.RestoreClusterFromSnapshotInput, callback?: (err: AWSError, data: DocDBElastic.Types.RestoreClusterFromSnapshotOutput) => void): Request<DocDBElastic.Types.RestoreClusterFromSnapshotOutput, AWSError>;
  98. /**
  99. * Restores an elastic cluster from a snapshot.
  100. */
  101. restoreClusterFromSnapshot(callback?: (err: AWSError, data: DocDBElastic.Types.RestoreClusterFromSnapshotOutput) => void): Request<DocDBElastic.Types.RestoreClusterFromSnapshotOutput, AWSError>;
  102. /**
  103. * Restarts the stopped elastic cluster that is specified by clusterARN.
  104. */
  105. startCluster(params: DocDBElastic.Types.StartClusterInput, callback?: (err: AWSError, data: DocDBElastic.Types.StartClusterOutput) => void): Request<DocDBElastic.Types.StartClusterOutput, AWSError>;
  106. /**
  107. * Restarts the stopped elastic cluster that is specified by clusterARN.
  108. */
  109. startCluster(callback?: (err: AWSError, data: DocDBElastic.Types.StartClusterOutput) => void): Request<DocDBElastic.Types.StartClusterOutput, AWSError>;
  110. /**
  111. * Stops the running elastic cluster that is specified by clusterArn. The elastic cluster must be in the available state.
  112. */
  113. stopCluster(params: DocDBElastic.Types.StopClusterInput, callback?: (err: AWSError, data: DocDBElastic.Types.StopClusterOutput) => void): Request<DocDBElastic.Types.StopClusterOutput, AWSError>;
  114. /**
  115. * Stops the running elastic cluster that is specified by clusterArn. The elastic cluster must be in the available state.
  116. */
  117. stopCluster(callback?: (err: AWSError, data: DocDBElastic.Types.StopClusterOutput) => void): Request<DocDBElastic.Types.StopClusterOutput, AWSError>;
  118. /**
  119. * Adds metadata tags to an elastic cluster resource
  120. */
  121. tagResource(params: DocDBElastic.Types.TagResourceRequest, callback?: (err: AWSError, data: DocDBElastic.Types.TagResourceResponse) => void): Request<DocDBElastic.Types.TagResourceResponse, AWSError>;
  122. /**
  123. * Adds metadata tags to an elastic cluster resource
  124. */
  125. tagResource(callback?: (err: AWSError, data: DocDBElastic.Types.TagResourceResponse) => void): Request<DocDBElastic.Types.TagResourceResponse, AWSError>;
  126. /**
  127. * Removes metadata tags from an elastic cluster resource
  128. */
  129. untagResource(params: DocDBElastic.Types.UntagResourceRequest, callback?: (err: AWSError, data: DocDBElastic.Types.UntagResourceResponse) => void): Request<DocDBElastic.Types.UntagResourceResponse, AWSError>;
  130. /**
  131. * Removes metadata tags from an elastic cluster resource
  132. */
  133. untagResource(callback?: (err: AWSError, data: DocDBElastic.Types.UntagResourceResponse) => void): Request<DocDBElastic.Types.UntagResourceResponse, AWSError>;
  134. /**
  135. * Modifies an elastic cluster. This includes updating admin-username/password, upgrading the API version, and setting up a backup window and maintenance window
  136. */
  137. updateCluster(params: DocDBElastic.Types.UpdateClusterInput, callback?: (err: AWSError, data: DocDBElastic.Types.UpdateClusterOutput) => void): Request<DocDBElastic.Types.UpdateClusterOutput, AWSError>;
  138. /**
  139. * Modifies an elastic cluster. This includes updating admin-username/password, upgrading the API version, and setting up a backup window and maintenance window
  140. */
  141. updateCluster(callback?: (err: AWSError, data: DocDBElastic.Types.UpdateClusterOutput) => void): Request<DocDBElastic.Types.UpdateClusterOutput, AWSError>;
  142. }
  143. declare namespace DocDBElastic {
  144. export type Arn = string;
  145. export type Auth = "PLAIN_TEXT"|"SECRET_ARN"|string;
  146. export type Boolean = boolean;
  147. export interface Cluster {
  148. /**
  149. * The name of the elastic cluster administrator.
  150. */
  151. adminUserName: String;
  152. /**
  153. * The authentication type for the elastic cluster.
  154. */
  155. authType: Auth;
  156. /**
  157. * The number of days for which automatic snapshots are retained.
  158. */
  159. backupRetentionPeriod?: Integer;
  160. /**
  161. * The ARN identifier of the elastic cluster.
  162. */
  163. clusterArn: String;
  164. /**
  165. * The URL used to connect to the elastic cluster.
  166. */
  167. clusterEndpoint: String;
  168. /**
  169. * The name of the elastic cluster.
  170. */
  171. clusterName: String;
  172. /**
  173. * The time when the elastic cluster was created in Universal Coordinated Time (UTC).
  174. */
  175. createTime: String;
  176. /**
  177. * The KMS key identifier to use to encrypt the elastic cluster.
  178. */
  179. kmsKeyId: String;
  180. /**
  181. * The daily time range during which automated backups are created if automated backups are enabled, as determined by backupRetentionPeriod.
  182. */
  183. preferredBackupWindow?: String;
  184. /**
  185. * The weekly time range during which system maintenance can occur, in Universal Coordinated Time (UTC). Format: ddd:hh24:mi-ddd:hh24:mi
  186. */
  187. preferredMaintenanceWindow: String;
  188. /**
  189. * The number of vCPUs assigned to each elastic cluster shard. Maximum is 64. Allowed values are 2, 4, 8, 16, 32, 64.
  190. */
  191. shardCapacity: Integer;
  192. /**
  193. * The number of shards assigned to the elastic cluster. Maximum is 32.
  194. */
  195. shardCount: Integer;
  196. /**
  197. * The number of replica instances applying to all shards in the cluster. A shardInstanceCount value of 1 means there is one writer instance, and any additional instances are replicas that can be used for reads and to improve availability.
  198. */
  199. shardInstanceCount?: Integer;
  200. /**
  201. * The total number of shards in the cluster.
  202. */
  203. shards?: ShardList;
  204. /**
  205. * The status of the elastic cluster.
  206. */
  207. status: Status;
  208. /**
  209. * The Amazon EC2 subnet IDs for the elastic cluster.
  210. */
  211. subnetIds: StringList;
  212. /**
  213. * A list of EC2 VPC security groups associated with thie elastic cluster.
  214. */
  215. vpcSecurityGroupIds: StringList;
  216. }
  217. export interface ClusterInList {
  218. /**
  219. * The ARN identifier of the elastic cluster.
  220. */
  221. clusterArn: String;
  222. /**
  223. * The name of the elastic cluster.
  224. */
  225. clusterName: String;
  226. /**
  227. * The status of the elastic cluster.
  228. */
  229. status: Status;
  230. }
  231. export type ClusterList = ClusterInList[];
  232. export interface ClusterSnapshot {
  233. /**
  234. * The name of the elastic cluster administrator.
  235. */
  236. adminUserName: String;
  237. /**
  238. * The ARN identifier of the elastic cluster.
  239. */
  240. clusterArn: String;
  241. /**
  242. * The time when the elastic cluster was created in Universal Coordinated Time (UTC).
  243. */
  244. clusterCreationTime: String;
  245. /**
  246. * The KMS key identifier is the Amazon Resource Name (ARN) for the KMS encryption key. If you are creating a cluster using the same Amazon account that owns this KMS encryption key, you can use the KMS key alias instead of the ARN as the KMS encryption key. If an encryption key is not specified here, Amazon DocumentDB uses the default encryption key that KMS creates for your account. Your account has a different default encryption key for each Amazon Region.
  247. */
  248. kmsKeyId: String;
  249. /**
  250. * The ARN identifier of the elastic cluster snapshot.
  251. */
  252. snapshotArn: String;
  253. /**
  254. * The time when the elastic cluster snapshot was created in Universal Coordinated Time (UTC).
  255. */
  256. snapshotCreationTime: String;
  257. /**
  258. * The name of the elastic cluster snapshot.
  259. */
  260. snapshotName: String;
  261. /**
  262. * The type of cluster snapshots to be returned. You can specify one of the following values: automated - Return all cluster snapshots that Amazon DocumentDB has automatically created for your Amazon Web Services account. manual - Return all cluster snapshots that you have manually created for your Amazon Web Services account.
  263. */
  264. snapshotType?: SnapshotType;
  265. /**
  266. * The status of the elastic cluster snapshot.
  267. */
  268. status: Status;
  269. /**
  270. * The Amazon EC2 subnet IDs for the elastic cluster.
  271. */
  272. subnetIds: StringList;
  273. /**
  274. * A list of EC2 VPC security groups to associate with the elastic cluster.
  275. */
  276. vpcSecurityGroupIds: StringList;
  277. }
  278. export interface ClusterSnapshotInList {
  279. /**
  280. * The ARN identifier of the elastic cluster.
  281. */
  282. clusterArn: String;
  283. /**
  284. * The ARN identifier of the elastic cluster snapshot.
  285. */
  286. snapshotArn: String;
  287. /**
  288. * The time when the elastic cluster snapshot was created in Universal Coordinated Time (UTC).
  289. */
  290. snapshotCreationTime: String;
  291. /**
  292. * The name of the elastic cluster snapshot.
  293. */
  294. snapshotName: String;
  295. /**
  296. * The status of the elastic cluster snapshot.
  297. */
  298. status: Status;
  299. }
  300. export type ClusterSnapshotList = ClusterSnapshotInList[];
  301. export interface CopyClusterSnapshotInput {
  302. /**
  303. * Set to true to copy all tags from the source cluster snapshot to the target elastic cluster snapshot. The default is false.
  304. */
  305. copyTags?: Boolean;
  306. /**
  307. * The Amazon Web Services KMS key ID for an encrypted elastic cluster snapshot. The Amazon Web Services KMS key ID is the Amazon Resource Name (ARN), Amazon Web Services KMS key identifier, or the Amazon Web Services KMS key alias for the Amazon Web Services KMS encryption key. If you copy an encrypted elastic cluster snapshot from your Amazon Web Services account, you can specify a value for KmsKeyId to encrypt the copy with a new Amazon Web ServicesS KMS encryption key. If you don't specify a value for KmsKeyId, then the copy of the elastic cluster snapshot is encrypted with the same AWS KMS key as the source elastic cluster snapshot. To copy an encrypted elastic cluster snapshot to another Amazon Web Services region, set KmsKeyId to the Amazon Web Services KMS key ID that you want to use to encrypt the copy of the elastic cluster snapshot in the destination region. Amazon Web Services KMS encryption keys are specific to the Amazon Web Services region that they are created in, and you can't use encryption keys from one Amazon Web Services region in another Amazon Web Services region. If you copy an unencrypted elastic cluster snapshot and specify a value for the KmsKeyId parameter, an error is returned.
  308. */
  309. kmsKeyId?: String;
  310. /**
  311. * The Amazon Resource Name (ARN) identifier of the elastic cluster snapshot.
  312. */
  313. snapshotArn: String;
  314. /**
  315. * The tags to be assigned to the elastic cluster snapshot.
  316. */
  317. tags?: TagMap;
  318. /**
  319. * The identifier of the new elastic cluster snapshot to create from the source cluster snapshot. This parameter is not case sensitive. Constraints: Must contain from 1 to 63 letters, numbers, or hyphens. The first character must be a letter. Cannot end with a hyphen or contain two consecutive hyphens. Example: elastic-cluster-snapshot-5
  320. */
  321. targetSnapshotName: CopyClusterSnapshotInputTargetSnapshotNameString;
  322. }
  323. export type CopyClusterSnapshotInputTargetSnapshotNameString = string;
  324. export interface CopyClusterSnapshotOutput {
  325. snapshot: ClusterSnapshot;
  326. }
  327. export interface CreateClusterInput {
  328. /**
  329. * The name of the Amazon DocumentDB elastic clusters administrator. Constraints: Must be from 1 to 63 letters or numbers. The first character must be a letter. Cannot be a reserved word.
  330. */
  331. adminUserName: String;
  332. /**
  333. * The password for the Amazon DocumentDB elastic clusters administrator. The password can contain any printable ASCII characters. Constraints: Must contain from 8 to 100 characters. Cannot contain a forward slash (/), double quote ("), or the "at" symbol (@).
  334. */
  335. adminUserPassword: Password;
  336. /**
  337. * The authentication type used to determine where to fetch the password used for accessing the elastic cluster. Valid types are PLAIN_TEXT or SECRET_ARN.
  338. */
  339. authType: Auth;
  340. /**
  341. * The number of days for which automatic snapshots are retained.
  342. */
  343. backupRetentionPeriod?: Integer;
  344. /**
  345. * The client token for the elastic cluster.
  346. */
  347. clientToken?: String;
  348. /**
  349. * The name of the new elastic cluster. This parameter is stored as a lowercase string. Constraints: Must contain from 1 to 63 letters, numbers, or hyphens. The first character must be a letter. Cannot end with a hyphen or contain two consecutive hyphens. Example: my-cluster
  350. */
  351. clusterName: String;
  352. /**
  353. * The KMS key identifier to use to encrypt the new elastic cluster. The KMS key identifier is the Amazon Resource Name (ARN) for the KMS encryption key. If you are creating a cluster using the same Amazon account that owns this KMS encryption key, you can use the KMS key alias instead of the ARN as the KMS encryption key. If an encryption key is not specified, Amazon DocumentDB uses the default encryption key that KMS creates for your account. Your account has a different default encryption key for each Amazon Region.
  354. */
  355. kmsKeyId?: String;
  356. /**
  357. * The daily time range during which automated backups are created if automated backups are enabled, as determined by the backupRetentionPeriod.
  358. */
  359. preferredBackupWindow?: String;
  360. /**
  361. * The weekly time range during which system maintenance can occur, in Universal Coordinated Time (UTC). Format: ddd:hh24:mi-ddd:hh24:mi Default: a 30-minute window selected at random from an 8-hour block of time for each Amazon Web Services Region, occurring on a random day of the week. Valid days: Mon, Tue, Wed, Thu, Fri, Sat, Sun Constraints: Minimum 30-minute window.
  362. */
  363. preferredMaintenanceWindow?: String;
  364. /**
  365. * The number of vCPUs assigned to each elastic cluster shard. Maximum is 64. Allowed values are 2, 4, 8, 16, 32, 64.
  366. */
  367. shardCapacity: Integer;
  368. /**
  369. * The number of shards assigned to the elastic cluster. Maximum is 32.
  370. */
  371. shardCount: Integer;
  372. /**
  373. * The number of replica instances applying to all shards in the elastic cluster. A shardInstanceCount value of 1 means there is one writer instance, and any additional instances are replicas that can be used for reads and to improve availability.
  374. */
  375. shardInstanceCount?: Integer;
  376. /**
  377. * The Amazon EC2 subnet IDs for the new elastic cluster.
  378. */
  379. subnetIds?: StringList;
  380. /**
  381. * The tags to be assigned to the new elastic cluster.
  382. */
  383. tags?: TagMap;
  384. /**
  385. * A list of EC2 VPC security groups to associate with the new elastic cluster.
  386. */
  387. vpcSecurityGroupIds?: StringList;
  388. }
  389. export interface CreateClusterOutput {
  390. /**
  391. * The new elastic cluster that has been created.
  392. */
  393. cluster: Cluster;
  394. }
  395. export interface CreateClusterSnapshotInput {
  396. /**
  397. * The ARN identifier of the elastic cluster of which you want to create a snapshot.
  398. */
  399. clusterArn: String;
  400. /**
  401. * The name of the new elastic cluster snapshot.
  402. */
  403. snapshotName: CreateClusterSnapshotInputSnapshotNameString;
  404. /**
  405. * The tags to be assigned to the new elastic cluster snapshot.
  406. */
  407. tags?: TagMap;
  408. }
  409. export type CreateClusterSnapshotInputSnapshotNameString = string;
  410. export interface CreateClusterSnapshotOutput {
  411. /**
  412. * Returns information about the new elastic cluster snapshot.
  413. */
  414. snapshot: ClusterSnapshot;
  415. }
  416. export interface DeleteClusterInput {
  417. /**
  418. * The ARN identifier of the elastic cluster that is to be deleted.
  419. */
  420. clusterArn: String;
  421. }
  422. export interface DeleteClusterOutput {
  423. /**
  424. * Returns information about the newly deleted elastic cluster.
  425. */
  426. cluster: Cluster;
  427. }
  428. export interface DeleteClusterSnapshotInput {
  429. /**
  430. * The ARN identifier of the elastic cluster snapshot that is to be deleted.
  431. */
  432. snapshotArn: String;
  433. }
  434. export interface DeleteClusterSnapshotOutput {
  435. /**
  436. * Returns information about the newly deleted elastic cluster snapshot.
  437. */
  438. snapshot: ClusterSnapshot;
  439. }
  440. export interface GetClusterInput {
  441. /**
  442. * The ARN identifier of the elastic cluster.
  443. */
  444. clusterArn: String;
  445. }
  446. export interface GetClusterOutput {
  447. /**
  448. * Returns information about a specific elastic cluster.
  449. */
  450. cluster: Cluster;
  451. }
  452. export interface GetClusterSnapshotInput {
  453. /**
  454. * The ARN identifier of the elastic cluster snapshot.
  455. */
  456. snapshotArn: String;
  457. }
  458. export interface GetClusterSnapshotOutput {
  459. /**
  460. * Returns information about a specific elastic cluster snapshot.
  461. */
  462. snapshot: ClusterSnapshot;
  463. }
  464. export type Integer = number;
  465. export interface ListClusterSnapshotsInput {
  466. /**
  467. * The ARN identifier of the elastic cluster.
  468. */
  469. clusterArn?: String;
  470. /**
  471. * The maximum number of elastic cluster snapshot results to receive in the response.
  472. */
  473. maxResults?: ListClusterSnapshotsInputMaxResultsInteger;
  474. /**
  475. * A pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond this token, up to the value specified by max-results. If there is no more data in the responce, the nextToken will not be returned.
  476. */
  477. nextToken?: PaginationToken;
  478. /**
  479. * The type of cluster snapshots to be returned. You can specify one of the following values: automated - Return all cluster snapshots that Amazon DocumentDB has automatically created for your Amazon Web Services account. manual - Return all cluster snapshots that you have manually created for your Amazon Web Services account.
  480. */
  481. snapshotType?: String;
  482. }
  483. export type ListClusterSnapshotsInputMaxResultsInteger = number;
  484. export interface ListClusterSnapshotsOutput {
  485. /**
  486. * A pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond this token, up to the value specified by max-results. If there is no more data in the responce, the nextToken will not be returned.
  487. */
  488. nextToken?: PaginationToken;
  489. /**
  490. * A list of snapshots for a specified elastic cluster.
  491. */
  492. snapshots?: ClusterSnapshotList;
  493. }
  494. export interface ListClustersInput {
  495. /**
  496. * The maximum number of elastic cluster snapshot results to receive in the response.
  497. */
  498. maxResults?: ListClustersInputMaxResultsInteger;
  499. /**
  500. * A pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond this token, up to the value specified by max-results. If there is no more data in the responce, the nextToken will not be returned.
  501. */
  502. nextToken?: PaginationToken;
  503. }
  504. export type ListClustersInputMaxResultsInteger = number;
  505. export interface ListClustersOutput {
  506. /**
  507. * A list of Amazon DocumentDB elastic clusters.
  508. */
  509. clusters?: ClusterList;
  510. /**
  511. * A pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond this token, up to the value specified by max-results. If there is no more data in the responce, the nextToken will not be returned.
  512. */
  513. nextToken?: PaginationToken;
  514. }
  515. export interface ListTagsForResourceRequest {
  516. /**
  517. * The ARN identifier of the elastic cluster resource.
  518. */
  519. resourceArn: Arn;
  520. }
  521. export interface ListTagsForResourceResponse {
  522. /**
  523. * The list of tags for the specified elastic cluster resource.
  524. */
  525. tags?: TagMap;
  526. }
  527. export type PaginationToken = string;
  528. export type Password = string;
  529. export interface RestoreClusterFromSnapshotInput {
  530. /**
  531. * The name of the elastic cluster.
  532. */
  533. clusterName: String;
  534. /**
  535. * The KMS key identifier to use to encrypt the new Amazon DocumentDB elastic clusters cluster. The KMS key identifier is the Amazon Resource Name (ARN) for the KMS encryption key. If you are creating a cluster using the same Amazon account that owns this KMS encryption key, you can use the KMS key alias instead of the ARN as the KMS encryption key. If an encryption key is not specified here, Amazon DocumentDB uses the default encryption key that KMS creates for your account. Your account has a different default encryption key for each Amazon Region.
  536. */
  537. kmsKeyId?: String;
  538. /**
  539. * The capacity of each shard in the new restored elastic cluster.
  540. */
  541. shardCapacity?: Integer;
  542. /**
  543. * The number of replica instances applying to all shards in the elastic cluster. A shardInstanceCount value of 1 means there is one writer instance, and any additional instances are replicas that can be used for reads and to improve availability.
  544. */
  545. shardInstanceCount?: Integer;
  546. /**
  547. * The ARN identifier of the elastic cluster snapshot.
  548. */
  549. snapshotArn: String;
  550. /**
  551. * The Amazon EC2 subnet IDs for the elastic cluster.
  552. */
  553. subnetIds?: StringList;
  554. /**
  555. * A list of the tag names to be assigned to the restored elastic cluster, in the form of an array of key-value pairs in which the key is the tag name and the value is the key value.
  556. */
  557. tags?: TagMap;
  558. /**
  559. * A list of EC2 VPC security groups to associate with the elastic cluster.
  560. */
  561. vpcSecurityGroupIds?: StringList;
  562. }
  563. export interface RestoreClusterFromSnapshotOutput {
  564. /**
  565. * Returns information about a the restored elastic cluster.
  566. */
  567. cluster: Cluster;
  568. }
  569. export interface Shard {
  570. /**
  571. * The time when the shard was created in Universal Coordinated Time (UTC).
  572. */
  573. createTime: String;
  574. /**
  575. * The ID of the shard.
  576. */
  577. shardId: String;
  578. /**
  579. * The current status of the shard.
  580. */
  581. status: Status;
  582. }
  583. export type ShardList = Shard[];
  584. export type SnapshotType = "MANUAL"|"AUTOMATED"|string;
  585. export interface StartClusterInput {
  586. /**
  587. * The ARN identifier of the elastic cluster.
  588. */
  589. clusterArn: String;
  590. }
  591. export interface StartClusterOutput {
  592. cluster: Cluster;
  593. }
  594. export type Status = "CREATING"|"ACTIVE"|"DELETING"|"UPDATING"|"VPC_ENDPOINT_LIMIT_EXCEEDED"|"IP_ADDRESS_LIMIT_EXCEEDED"|"INVALID_SECURITY_GROUP_ID"|"INVALID_SUBNET_ID"|"INACCESSIBLE_ENCRYPTION_CREDS"|"INACCESSIBLE_SECRET_ARN"|"INACCESSIBLE_VPC_ENDPOINT"|"INCOMPATIBLE_NETWORK"|"MERGING"|"MODIFYING"|"SPLITTING"|"COPYING"|"STARTING"|"STOPPING"|"STOPPED"|string;
  595. export interface StopClusterInput {
  596. /**
  597. * The ARN identifier of the elastic cluster.
  598. */
  599. clusterArn: String;
  600. }
  601. export interface StopClusterOutput {
  602. cluster: Cluster;
  603. }
  604. export type String = string;
  605. export type StringList = String[];
  606. export type TagKey = string;
  607. export type TagKeyList = TagKey[];
  608. export type TagMap = {[key: string]: TagValue};
  609. export interface TagResourceRequest {
  610. /**
  611. * The ARN identifier of the elastic cluster resource.
  612. */
  613. resourceArn: Arn;
  614. /**
  615. * The tags that are assigned to the elastic cluster resource.
  616. */
  617. tags: TagMap;
  618. }
  619. export interface TagResourceResponse {
  620. }
  621. export type TagValue = string;
  622. export interface UntagResourceRequest {
  623. /**
  624. * The ARN identifier of the elastic cluster resource.
  625. */
  626. resourceArn: Arn;
  627. /**
  628. * The tag keys to be removed from the elastic cluster resource.
  629. */
  630. tagKeys: TagKeyList;
  631. }
  632. export interface UntagResourceResponse {
  633. }
  634. export interface UpdateClusterInput {
  635. /**
  636. * The password associated with the elastic cluster administrator. This password can contain any printable ASCII character except forward slash (/), double quote ("), or the "at" symbol (@). Constraints: Must contain from 8 to 100 characters.
  637. */
  638. adminUserPassword?: Password;
  639. /**
  640. * The authentication type used to determine where to fetch the password used for accessing the elastic cluster. Valid types are PLAIN_TEXT or SECRET_ARN.
  641. */
  642. authType?: Auth;
  643. /**
  644. * The number of days for which automatic snapshots are retained.
  645. */
  646. backupRetentionPeriod?: Integer;
  647. /**
  648. * The client token for the elastic cluster.
  649. */
  650. clientToken?: String;
  651. /**
  652. * The ARN identifier of the elastic cluster.
  653. */
  654. clusterArn: String;
  655. /**
  656. * The daily time range during which automated backups are created if automated backups are enabled, as determined by the backupRetentionPeriod.
  657. */
  658. preferredBackupWindow?: String;
  659. /**
  660. * The weekly time range during which system maintenance can occur, in Universal Coordinated Time (UTC). Format: ddd:hh24:mi-ddd:hh24:mi Default: a 30-minute window selected at random from an 8-hour block of time for each Amazon Web Services Region, occurring on a random day of the week. Valid days: Mon, Tue, Wed, Thu, Fri, Sat, Sun Constraints: Minimum 30-minute window.
  661. */
  662. preferredMaintenanceWindow?: String;
  663. /**
  664. * The number of vCPUs assigned to each elastic cluster shard. Maximum is 64. Allowed values are 2, 4, 8, 16, 32, 64.
  665. */
  666. shardCapacity?: Integer;
  667. /**
  668. * The number of shards assigned to the elastic cluster. Maximum is 32.
  669. */
  670. shardCount?: Integer;
  671. /**
  672. * The number of replica instances applying to all shards in the elastic cluster. A shardInstanceCount value of 1 means there is one writer instance, and any additional instances are replicas that can be used for reads and to improve availability.
  673. */
  674. shardInstanceCount?: Integer;
  675. /**
  676. * The Amazon EC2 subnet IDs for the elastic cluster.
  677. */
  678. subnetIds?: StringList;
  679. /**
  680. * A list of EC2 VPC security groups to associate with the elastic cluster.
  681. */
  682. vpcSecurityGroupIds?: StringList;
  683. }
  684. export interface UpdateClusterOutput {
  685. /**
  686. * Returns information about the updated elastic cluster.
  687. */
  688. cluster: Cluster;
  689. }
  690. /**
  691. * A string in YYYY-MM-DD format that represents the latest possible API version that can be used in this service. Specify 'latest' to use the latest possible version.
  692. */
  693. export type apiVersion = "2022-11-28"|"latest"|string;
  694. export interface ClientApiVersions {
  695. /**
  696. * A string in YYYY-MM-DD format that represents the latest possible API version that can be used in this service. Specify 'latest' to use the latest possible version.
  697. */
  698. apiVersion?: apiVersion;
  699. }
  700. export type ClientConfiguration = ServiceConfigurationOptions & ClientApiVersions;
  701. /**
  702. * Contains interfaces for use with the DocDBElastic client.
  703. */
  704. export import Types = DocDBElastic;
  705. }
  706. export = DocDBElastic;